@20minutes/tyr 0.1.39 → 0.1.41

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 (30) 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.d.ts +0 -1
  27. package/dist/index.es.js +29331 -21034
  28. package/dist/index.umd.js +121 -221
  29. package/dist/js/awsRum.min.js +7 -7
  30. package/package.json +9 -9
@@ -1,12 +1,12 @@
1
- (function(){"use strict";var er=Object.create,Bt=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,Ft=Object.getOwnPropertyNames,nr=Object.getPrototypeOf,rr=Object.prototype.hasOwnProperty,z=(t,i)=>function(){return i||(0,t[Ft(t)[0]])((i={exports:{}}).exports,i),i.exports},ir=(t,i,e,n)=>{if(i&&typeof i=="object"||typeof i=="function")for(let o of Ft(i))!rr.call(t,o)&&o!==e&&Bt(t,o,{get:()=>i[o],enumerable:!(n=tr(i,o))||n.enumerable});return t},ht=(t,i,e)=>(e=t!=null?er(nr(t)):{},ir(i||!t||!t.__esModule?Bt(e,"default",{value:t,enumerable:!0}):e,t)),or=z({"node_modules/ua-parser-js/src/ua-parser.js"(t,i){(function(e,n){var o="0.7.31",r="",a="?",c="function",u="undefined",s="object",f="string",l="major",d="model",p="name",h="type",v="vendor",m="version",k="architecture",M="console",S="mobile",T="tablet",x="smarttv",K="wearable",fe="embedded",be=255,R="Amazon",Q="Apple",g="ASUS",y="BlackBerry",w="Browser",_="Chrome",E="Edge",b="Firefox",C="Google",N="Huawei",W="LG",A="Microsoft",G="Motorola",Y="Opera",U="Samsung",ee="Sony",_e="Xiaomi",ke="Zebra",$n="Facebook",ia=function(O,L){var P={};for(var H in O)L[H]&&L[H].length%2===0?P[H]=L[H].concat(O[H]):P[H]=O[H];return P},ft=function(O){for(var L={},P=0;P<O.length;P++)L[O[P].toUpperCase()]=O[P];return L},Kn=function(O,L){return typeof O===f?Ne(L).indexOf(Ne(O))!==-1:!1},Ne=function(O){return O.toLowerCase()},oa=function(O){return typeof O===f?O.replace(/[^\d\.]/g,r).split(".")[0]:n},Dt=function(O,L){if(typeof O===f)return O=O.replace(/^\s\s*/,r).replace(/\s\s*$/,r),typeof L===u?O:O.substring(0,be)},je=function(O,L){for(var P=0,H,I,dt,j,Me,te;P<L.length&&!Me;){var Zn=L[P],Qn=L[P+1];for(H=I=0;H<Zn.length&&!Me;)if(Me=Zn[H++].exec(O),Me)for(dt=0;dt<Qn.length;dt++)te=Me[++I],j=Qn[dt],typeof j===s&&j.length>0?j.length===2?typeof j[1]==c?this[j[0]]=j[1].call(this,te):this[j[0]]=j[1]:j.length===3?typeof j[1]===c&&!(j[1].exec&&j[1].test)?this[j[0]]=te?j[1].call(this,te,j[2]):n:this[j[0]]=te?te.replace(j[1],j[2]):n:j.length===4&&(this[j[0]]=te?j[3].call(this,te.replace(j[1],j[2])):n):this[j]=te||n;P+=2}},qt=function(O,L){for(var P in L)if(typeof L[P]===s&&L[P].length>0){for(var H=0;H<L[P].length;H++)if(Kn(L[P][H],O))return P===a?n:P}else if(Kn(L[P],O))return P===a?n:P;return O},aa={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Yn={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"},Jn={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,m],[/opios[\/ ]+([\w\.]+)/i],[m,[p,Y+" Mini"]],[/\bopr\/([\w\.]+)/i],[m,[p,Y]],[/(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|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[p,m],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[p,"UC"+w]],[/\bqbcore\/([\w\.]+)/i],[m,[p,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[m,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[p,"IE"]],[/yabrowser\/([\w\.]+)/i],[m,[p,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+w],m],[/\bfocus\/([\w\.]+)/i],[m,[p,b+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[p,Y+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[p,Y+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[p,"MIUI "+w]],[/fxios\/([-\w\.]+)/i],[m,[p,b]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+w]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 "+w],m],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[p,m],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,$n],m],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[p,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[p,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[p,_+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,_+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[p,"Android "+w]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,m],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[m,[p,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[m,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[m,qt,aa]],[/(webkit|khtml)\/([\w\.]+)/i],[p,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[p,b+" 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],[p,m]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[k,"amd64"]],[/(ia32(?=;))/i],[[k,Ne]],[/((?:i[346]|x)86)[;\)]/i],[[k,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[k,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[k,"armhf"]],[/windows (ce|mobile); ppc;/i],[[k,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[k,/ower/,r,Ne]],[/(sun4\w)[;\)]/i],[[k,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[k,Ne]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[v,U],[h,T]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[v,U],[h,S]],[/\((ip(?:hone|od)[\w ]*);/i],[d,[v,Q],[h,S]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[v,Q],[h,T]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[v,N],[h,T]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[d,[v,N],[h,S]],[/\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)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[v,_e],[h,S]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[v,_e],[h,T]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[v,"OPPO"],[h,S]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[v,"Vivo"],[h,S]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[d,[v,"Realme"],[h,S]],[/\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],[d,[v,G],[h,S]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[v,G],[h,T]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[v,W],[h,T]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[v,W],[h,S]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[v,"Lenovo"],[h,T]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[v,"Nokia"],[h,S]],[/(pixel c)\b/i],[d,[v,C],[h,T]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[v,C],[h,S]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[v,ee],[h,S]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[v,ee],[h,T]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[v,"OnePlus"],[h,S]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[v,R],[h,T]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[v,R],[h,S]],[/(playbook);[-\w\),; ]+(rim)/i],[d,v,[h,T]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[v,y],[h,S]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[v,g],[h,T]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[v,g],[h,S]],[/(nexus 9)/i],[d,[v,"HTC"],[h,T]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[v,[d,/_/g," "],[h,S]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[v,"Acer"],[h,T]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[v,"Meizu"],[h,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[v,"Sharp"],[h,S]],[/(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,d,[h,S]],[/(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,d,[h,T]],[/(surface duo)/i],[d,[v,A],[h,T]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[v,"Fairphone"],[h,S]],[/(u304aa)/i],[d,[v,"AT&T"],[h,S]],[/\bsie-(\w*)/i],[d,[v,"Siemens"],[h,S]],[/\b(rct\w+) b/i],[d,[v,"RCA"],[h,T]],[/\b(venue[\d ]{2,7}) b/i],[d,[v,"Dell"],[h,T]],[/\b(q(?:mv|ta)\w+) b/i],[d,[v,"Verizon"],[h,T]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[v,"Barnes & Noble"],[h,T]],[/\b(tm\d{3}\w+) b/i],[d,[v,"NuVision"],[h,T]],[/\b(k88) b/i],[d,[v,"ZTE"],[h,T]],[/\b(nx\d{3}j) b/i],[d,[v,"ZTE"],[h,S]],[/\b(gen\d{3}) b.+49h/i],[d,[v,"Swiss"],[h,S]],[/\b(zur\d{3}) b/i],[d,[v,"Swiss"],[h,T]],[/\b((zeki)?tb.*\b) b/i],[d,[v,"Zeki"],[h,T]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[v,"Dragon Touch"],d,[h,T]],[/\b(ns-?\w{0,9}) b/i],[d,[v,"Insignia"],[h,T]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[v,"NextBook"],[h,T]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[v,"Voice"],d,[h,S]],[/\b(lvtel\-)?(v1[12]) b/i],[[v,"LvTel"],d,[h,S]],[/\b(ph-1) /i],[d,[v,"Essential"],[h,S]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[v,"Envizen"],[h,T]],[/\b(trio[-\w\. ]+) b/i],[d,[v,"MachSpeed"],[h,T]],[/\btu_(1491) b/i],[d,[v,"Rotor"],[h,T]],[/(shield[\w ]+) b/i],[d,[v,"Nvidia"],[h,T]],[/(sprint) (\w+)/i],[v,d,[h,S]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[v,A],[h,S]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[v,ke],[h,T]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[v,ke],[h,S]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[v,d,[h,M]],[/droid.+; (shield) bui/i],[d,[v,"Nvidia"],[h,M]],[/(playstation [345portablevi]+)/i],[d,[v,ee],[h,M]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[v,A],[h,M]],[/smart-tv.+(samsung)/i],[v,[h,x]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[v,U],[h,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,W],[h,x]],[/(apple) ?tv/i],[v,[d,Q+" TV"],[h,x]],[/crkey/i],[[d,_+"cast"],[v,C],[h,x]],[/droid.+aft(\w)( bui|\))/i],[d,[v,R],[h,x]],[/\(dtv[\);].+(aquos)/i],[d,[v,"Sharp"],[h,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[v,Dt],[d,Dt],[h,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,x]],[/((pebble))app/i],[v,d,[h,K]],[/droid.+; (glass) \d/i],[d,[v,C],[h,K]],[/droid.+; (wt63?0{2,3})\)/i],[d,[v,ke],[h,K]],[/(quest( 2)?)/i],[d,[v,$n],[h,K]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[h,fe]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[d,[h,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,T]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,T]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[h,S]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[v,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[p,E+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[p,"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],[p,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,m],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[p,[m,qt,Yn]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,"Windows"],[m,qt,Yn]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,"Mac OS"],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[m,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,m],[/\(bb(10);/i],[m,[p,y]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[p,b+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[p,"webOS"]],[/crkey\/([\d\.]+)/i],[m,[p,_+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[p,"Chromium OS"],m],[/(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],[p,m],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[p,m]]},$=function(O,L){if(typeof O===s&&(L=O,O=n),!(this instanceof $))return new $(O,L).getResult();var P=O||(typeof e!==u&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:r),H=L?ia(Jn,L):Jn;return this.getBrowser=function(){var I={};return I[p]=n,I[m]=n,je.call(I,P,H.browser),I.major=oa(I.version),I},this.getCPU=function(){var I={};return I[k]=n,je.call(I,P,H.cpu),I},this.getDevice=function(){var I={};return I[v]=n,I[d]=n,I[h]=n,je.call(I,P,H.device),I},this.getEngine=function(){var I={};return I[p]=n,I[m]=n,je.call(I,P,H.engine),I},this.getOS=function(){var I={};return I[p]=n,I[m]=n,je.call(I,P,H.os),I},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 P},this.setUA=function(I){return P=typeof I===f&&I.length>be?Dt(I,be):I,this},this.setUA(P),this};$.VERSION=o,$.BROWSER=ft([p,m,l]),$.CPU=ft([k]),$.DEVICE=ft([d,v,h,M,S,x,T,K,fe]),$.ENGINE=$.OS=ft([p,m]),typeof t!==u?(typeof i!==u&&i.exports&&(t=i.exports=$),t.UAParser=$):typeof define===c&&define.amd?define(function(){return $}):typeof e!==u&&(e.UAParser=$);var Ee=typeof e!==u&&(e.jQuery||e.Zepto);if(Ee&&!Ee.ua){var lt=new $;Ee.ua=lt.getResult(),Ee.ua.get=function(){return lt.getUA()},Ee.ua.set=function(O){lt.setUA(O);var L=lt.getResult();for(var P in L)Ee.ua[P]=L[P]}}})(typeof window=="object"?window:t)}}),ar=z({"node_modules/shimmer/index.js"(t,i){function e(f){return typeof f=="function"}var n=console.error.bind(console);function o(f,l,d){var p=!!f[l]&&f.propertyIsEnumerable(l);Object.defineProperty(f,l,{configurable:!0,enumerable:p,writable:!0,value:d})}function r(f){f&&f.logger&&(e(f.logger)?n=f.logger:n("new logger isn't a function, not replacing"))}function a(f,l,d){if(!f||!f[l]){n("no original function "+l+" to wrap");return}if(!d){n("no wrapper function"),n(new Error().stack);return}if(!e(f[l])||!e(d)){n("original object and wrapper must be functions");return}var p=f[l],h=d(p,l);return o(h,"__original",p),o(h,"__unwrap",function(){f[l]===h&&o(f,l,p)}),o(h,"__wrapped",!0),o(f,l,h),h}function c(f,l,d){if(f)Array.isArray(f)||(f=[f]);else{n("must provide one or more modules to patch"),n(new Error().stack);return}if(!(l&&Array.isArray(l))){n("must provide one or more functions to wrap on modules");return}f.forEach(function(p){l.forEach(function(h){a(p,h,d)})})}function u(f,l){if(!f||!f[l]){n("no function to unwrap."),n(new Error().stack);return}if(!f[l].__unwrap)n("no original to unwrap to -- has "+l+" already been unwrapped?");else return f[l].__unwrap()}function s(f,l){if(f)Array.isArray(f)||(f=[f]);else{n("must provide one or more modules to patch"),n(new Error().stack);return}if(!(l&&Array.isArray(l))){n("must provide one or more functions to unwrap on modules");return}f.forEach(function(d){l.forEach(function(p){u(d,p)})})}r.wrap=a,r.massWrap=c,r.unwrap=u,r.massUnwrap=s,i.exports=r}}),Vt=z({"node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.js"(t,i){var e,n,o,r,a,c,u,s,f,l,d,p,h,v,m,k,M,S,T,x,K,fe,be;(function(R){var Q=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(y){R(g(Q,g(y)))}):typeof i=="object"&&typeof i.exports=="object"?R(g(Q,g(i.exports))):R(g(Q));function g(y,w){return y!==Q&&(typeof Object.create=="function"?Object.defineProperty(y,"__esModule",{value:!0}):y.__esModule=!0),function(_,E){return y[_]=w?w(_,E):E}}})(function(R){var Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var w in y)y.hasOwnProperty(w)&&(g[w]=y[w])};e=function(g,y){Q(g,y);function w(){this.constructor=g}g.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)},n=Object.assign||function(g){for(var y,w=1,_=arguments.length;w<_;w++){y=arguments[w];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(g[E]=y[E])}return g},o=function(g,y){var w={};for(var _ in g)Object.prototype.hasOwnProperty.call(g,_)&&y.indexOf(_)<0&&(w[_]=g[_]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,_=Object.getOwnPropertySymbols(g);E<_.length;E++)y.indexOf(_[E])<0&&Object.prototype.propertyIsEnumerable.call(g,_[E])&&(w[_[E]]=g[_[E]]);return w},r=function(g,y,w,_){var E=arguments.length,b=E<3?y:_===null?_=Object.getOwnPropertyDescriptor(y,w):_,C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(g,y,w,_);else for(var N=g.length-1;N>=0;N--)(C=g[N])&&(b=(E<3?C(b):E>3?C(y,w,b):C(y,w))||b);return E>3&&b&&Object.defineProperty(y,w,b),b},a=function(g,y){return function(w,_){y(w,_,g)}},c=function(g,y){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(g,y)},u=function(g,y,w,_){function E(b){return b instanceof w?b:new w(function(C){C(b)})}return new(w||(w=Promise))(function(b,C){function N(G){try{A(_.next(G))}catch(Y){C(Y)}}function W(G){try{A(_.throw(G))}catch(Y){C(Y)}}function A(G){G.done?b(G.value):E(G.value).then(N,W)}A((_=_.apply(g,y||[])).next())})},s=function(g,y){var w={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},_,E,b,C;return C={next:N(0),throw:N(1),return:N(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function N(A){return function(G){return W([A,G])}}function W(A){if(_)throw new TypeError("Generator is already executing.");for(;w;)try{if(_=1,E&&(b=A[0]&2?E.return:A[0]?E.throw||((b=E.return)&&b.call(E),0):E.next)&&!(b=b.call(E,A[1])).done)return b;switch(E=0,b&&(A=[A[0]&2,b.value]),A[0]){case 0:case 1:b=A;break;case 4:return w.label++,{value:A[1],done:!1};case 5:w.label++,E=A[1],A=[0];continue;case 7:A=w.ops.pop(),w.trys.pop();continue;default:if(b=w.trys,!(b=b.length>0&&b[b.length-1])&&(A[0]===6||A[0]===2)){w=0;continue}if(A[0]===3&&(!b||A[1]>b[0]&&A[1]<b[3])){w.label=A[1];break}if(A[0]===6&&w.label<b[1]){w.label=b[1],b=A;break}if(b&&w.label<b[2]){w.label=b[2],w.ops.push(A);break}b[2]&&w.ops.pop(),w.trys.pop();continue}A=y.call(g,w)}catch(G){A=[6,G],E=0}finally{_=b=0}if(A[0]&5)throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}},be=function(g,y,w,_){_===void 0&&(_=w),g[_]=y[w]},f=function(g,y){for(var w in g)w!=="default"&&!y.hasOwnProperty(w)&&(y[w]=g[w])},l=function(g){var y=typeof Symbol=="function"&&Symbol.iterator,w=y&&g[y],_=0;if(w)return w.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&_>=g.length&&(g=void 0),{value:g&&g[_++],done:!g}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(g,y){var w=typeof Symbol=="function"&&g[Symbol.iterator];if(!w)return g;var _=w.call(g),E,b=[],C;try{for(;(y===void 0||y-- >0)&&!(E=_.next()).done;)b.push(E.value)}catch(N){C={error:N}}finally{try{E&&!E.done&&(w=_.return)&&w.call(_)}finally{if(C)throw C.error}}return b},p=function(){for(var g=[],y=0;y<arguments.length;y++)g=g.concat(d(arguments[y]));return g},h=function(){for(var g=0,y=0,w=arguments.length;y<w;y++)g+=arguments[y].length;for(var _=Array(g),E=0,y=0;y<w;y++)for(var b=arguments[y],C=0,N=b.length;C<N;C++,E++)_[E]=b[C];return _},v=function(g){return this instanceof v?(this.v=g,this):new v(g)},m=function(g,y,w){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _=w.apply(g,y||[]),E,b=[];return E={},C("next"),C("throw"),C("return"),E[Symbol.asyncIterator]=function(){return this},E;function C(U){_[U]&&(E[U]=function(ee){return new Promise(function(_e,ke){b.push([U,ee,_e,ke])>1||N(U,ee)})})}function N(U,ee){try{W(_[U](ee))}catch(_e){Y(b[0][3],_e)}}function W(U){U.value instanceof v?Promise.resolve(U.value.v).then(A,G):Y(b[0][2],U)}function A(U){N("next",U)}function G(U){N("throw",U)}function Y(U,ee){U(ee),b.shift(),b.length&&N(b[0][0],b[0][1])}},k=function(g){var y,w;return y={},_("next"),_("throw",function(E){throw E}),_("return"),y[Symbol.iterator]=function(){return this},y;function _(E,b){y[E]=g[E]?function(C){return(w=!w)?{value:v(g[E](C)),done:E==="return"}:b?b(C):C}:b}},M=function(g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=g[Symbol.asyncIterator],w;return y?y.call(g):(g=typeof l=="function"?l(g):g[Symbol.iterator](),w={},_("next"),_("throw"),_("return"),w[Symbol.asyncIterator]=function(){return this},w);function _(b){w[b]=g[b]&&function(C){return new Promise(function(N,W){C=g[b](C),E(N,W,C.done,C.value)})}}function E(b,C,N,W){Promise.resolve(W).then(function(A){b({value:A,done:N})},C)}},S=function(g,y){return Object.defineProperty?Object.defineProperty(g,"raw",{value:y}):g.raw=y,g},T=function(g){if(g&&g.__esModule)return g;var y={};if(g!=null)for(var w in g)Object.hasOwnProperty.call(g,w)&&(y[w]=g[w]);return y.default=g,y},x=function(g){return g&&g.__esModule?g:{default:g}},K=function(g,y){if(!y.has(g))throw new TypeError("attempted to get private field on non-instance");return y.get(g)},fe=function(g,y,w){if(!y.has(g))throw new TypeError("attempted to set private field on non-instance");return y.set(g,w),w},R("__extends",e),R("__assign",n),R("__rest",o),R("__decorate",r),R("__param",a),R("__metadata",c),R("__awaiter",u),R("__generator",s),R("__exportStar",f),R("__createBinding",be),R("__values",l),R("__read",d),R("__spread",p),R("__spreadArrays",h),R("__await",v),R("__asyncGenerator",m),R("__asyncDelegator",k),R("__asyncValues",M),R("__makeTemplateObject",S),R("__importStar",T),R("__importDefault",x),R("__classPrivateFieldGet",K),R("__classPrivateFieldSet",fe)})}}),Gt=z({"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}}),sr=z({"node_modules/@aws-crypto/sha256-js/build/RawSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var i=Gt(),e=function(){function n(){this.state=Int32Array.from(i.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 r=0,a=o.byteLength;if(this.bytesHashed+=a,this.bytesHashed*8>i.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;a>0;)this.buffer[this.bufferLength++]=o[r++],a--,this.bufferLength===i.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},n.prototype.digest=function(){if(!this.finished){var o=this.bytesHashed*8,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),a=this.bufferLength;if(r.setUint8(this.bufferLength++,128),a%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var c=this.bufferLength;c<i.BLOCK_SIZE;c++)r.setUint8(c,0);this.hashBuffer(),this.bufferLength=0}for(var c=this.bufferLength;c<i.BLOCK_SIZE-8;c++)r.setUint8(c,0);r.setUint32(i.BLOCK_SIZE-8,Math.floor(o/4294967296),!0),r.setUint32(i.BLOCK_SIZE-4,o),this.hashBuffer(),this.finished=!0}for(var u=new Uint8Array(i.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,r=o.buffer,a=o.state,c=a[0],u=a[1],s=a[2],f=a[3],l=a[4],d=a[5],p=a[6],h=a[7],v=0;v<i.BLOCK_SIZE;v++){if(v<16)this.temp[v]=(r[v*4]&255)<<24|(r[v*4+1]&255)<<16|(r[v*4+2]&255)<<8|r[v*4+3]&255;else{var m=this.temp[v-2],k=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10;m=this.temp[v-15];var M=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3;this.temp[v]=(k+this.temp[v-7]|0)+(M+this.temp[v-16]|0)}var S=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&d^~l&p)|0)+(h+(i.KEY[v]+this.temp[v]|0)|0)|0,T=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&u^c&s^u&s)|0;h=p,p=d,d=l,l=f+S|0,f=s,s=u,u=c,c=S+T|0}a[0]+=c,a[1]+=u,a[2]+=s,a[3]+=f,a[4]+=l,a[5]+=d,a[6]+=p,a[7]+=h},n}();t.RawSha256=e}}),cr=z({"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 i=n=>{const o=[];for(let r=0,a=n.length;r<a;r++){const c=n.charCodeAt(r);if(c<128)o.push(c);else if(c<2048)o.push(c>>6|192,c&63|128);else if(r+1<n.length&&(c&64512)===55296&&(n.charCodeAt(r+1)&64512)===56320){const u=65536+((c&1023)<<10)+(n.charCodeAt(++r)&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=i;var e=n=>{let o="";for(let r=0,a=n.length;r<a;r++){const c=n[r];if(c<128)o+=String.fromCharCode(c);else if(192<=c&&c<224){const u=n[++r];o+=String.fromCharCode((c&31)<<6|u&63)}else if(240<=c&&c<365){const u=[c,n[++r],n[++r],n[++r]],s="%"+u.map(f=>f.toString(16)).join("%");o+=decodeURIComponent(s)}else o+=String.fromCharCode((c&15)<<12|(n[++r]&63)<<6|n[++r]&63)}return o};t.toUtf8=e}}),ur=z({"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 i(n){return new TextEncoder().encode(n)}t.fromUtf8=i;function e(n){return new TextDecoder("utf-8").decode(n)}t.toUtf8=e}}),fr=z({"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 i=cr(),e=ur(),n=r=>typeof TextEncoder=="function"?(0,e.fromUtf8)(r):(0,i.fromUtf8)(r);t.fromUtf8=n;var o=r=>typeof TextDecoder=="function"?(0,e.toUtf8)(r):(0,i.toUtf8)(r);t.toUtf8=o}}),lr=z({"node_modules/@aws-crypto/util/build/convertToBuffer.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var i=fr(),e=typeof Buffer<"u"&&Buffer.from?function(o){return Buffer.from(o,"utf8")}:i.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}}),dr=z({"node_modules/@aws-crypto/util/build/isEmptyData.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0;function i(e){return typeof e=="string"?e.length===0:e.byteLength===0}t.isEmptyData=i}}),hr=z({"node_modules/@aws-crypto/util/build/numToUint8.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0;function i(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}t.numToUint8=i}}),vr=z({"node_modules/@aws-crypto/util/build/uint32ArrayFrom.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0;function i(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=i}}),pr=z({"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 i=lr();Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return i.convertToBuffer}});var e=dr();Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return e.isEmptyData}});var n=hr();Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return n.numToUint8}});var o=vr();Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return o.uint32ArrayFrom}})}}),gr=z({"node_modules/@aws-crypto/sha256-js/build/jsSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var i=Vt(),e=Gt(),n=sr(),o=pr(),r=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 l=0;l<e.BLOCK_SIZE;l++)s[l]^=54,f[l]^=92;this.hash.update(s),this.outer.update(f);for(var l=0;l<s.byteLength;l++)s[l]=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 i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(u){return[2,this.digestSync()]})})},c}();t.Sha256=r;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}}}),mr=z({"node_modules/@aws-crypto/sha256-js/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var i=Vt();i.__exportStar(gr(),t)}}),Se=class{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/"}static isInstance(t){if(!t)return!1;const i=t;return"method"in i&&"protocol"in i&&"hostname"in i&&"path"in i&&typeof i.query=="object"&&typeof i.headers=="object"}clone(){const t=new Se({...this,headers:{...this.headers}});return t.query&&(t.query=yr(t.query)),t}};function yr(t){return Object.keys(t).reduce((i,e)=>{const n=t[e];return{...i,[e]:Array.isArray(n)?[...n]:n}},{})}var Te=class{constructor(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const i=t;return typeof i.statusCode=="number"&&typeof i.headers=="object"}},zt=function(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(f){try{s(n.next(f))}catch(l){a(l)}}function u(f){try{s(n.throw(f))}catch(l){a(l)}}function s(f){f.done?r(f.value):o(f.value).then(c,u)}s((n=n.apply(t,i||[])).next())})},Xt=function(t,i){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,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&&(r=s[0]&2?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=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(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1],r=s;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(s);break}r[2]&&e.ops.pop(),e.trys.pop();continue}s=i.call(t,e)}catch(f){s=[6,f],o=0}finally{n=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},vt=function(t){return zt(void 0,void 0,void 0,function(){var i;return Xt(this,function(e){switch(e.label){case 0:return[4,t.body.getReader().read()];case 1:return i=e.sent().value,[2,JSON.parse(String.fromCharCode.apply(null,i))]}})})},wr=function(t){return zt(void 0,void 0,void 0,function(){var i;return Xt(this,function(e){switch(e.label){case 0:return[4,t.body.getReader().read()];case 1:return i=e.sent().value,[2,String.fromCharCode.apply(null,i)]}})})},pt=function(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(f){try{s(n.next(f))}catch(l){a(l)}}function u(f){try{s(n.throw(f))}catch(l){a(l)}}function s(f){f.done?r(f.value):o(f.value).then(c,u)}s((n=n.apply(t,i||[])).next())})},gt=function(t,i){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,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&&(r=s[0]&2?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=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(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1],r=s;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(s);break}r[2]&&e.ops.pop(),e.trys.pop();continue}s=i.call(t,e)}catch(f){s=[6,f],o=0}finally{n=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},br="POST",_r="application/x-amz-json-1.1",Er="https:",Sr="AWSCognitoIdentityService.GetId",Tr="AWSCognitoIdentityService.GetOpenIdToken",Cr="AWSCognitoIdentityService.GetCredentialsForIdentity",Ar=function(t){return function(){return t.client.getCredentialsForIdentity(t.identityPoolId)}},Wt=function(){function t(i){var e=this;this.getId=function(n){return pt(e,void 0,void 0,function(){var o,r,a,c;return gt(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),o=JSON.stringify(n),r=this.getHttpRequest(Sr,o),[4,this.fetchRequestHandler.handle(r)];case 1:return a=u.sent().response,[4,vt(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 pt(e,void 0,void 0,function(){var o,r,a,c;return gt(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),o=JSON.stringify(n),r=this.getHttpRequest(Tr,o),[4,this.fetchRequestHandler.handle(r)];case 1:return a=u.sent().response,[4,vt(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 pt(e,void 0,void 0,function(){var o,r,a,c,u,s,f,l,d;return gt(this,function(p){switch(p.label){case 0:return p.trys.push([0,3,,4]),o=JSON.stringify({IdentityId:n}),r=this.getHttpRequest(Cr,o),[4,this.fetchRequestHandler.handle(r)];case 1:return a=p.sent().response,[4,vt(a)];case 2:return c=p.sent().Credentials,u=c.AccessKeyId,s=c.Expiration,f=c.SecretAccessKey,l=c.SessionToken,[2,{accessKeyId:u,secretAccessKey:f,sessionToken:l,expiration:new Date(s*1e3)}];case 3:throw d=p.sent(),new Error("CWR: Failed to retrieve credentials for Cognito identity: ".concat(d));case 4:return[2]}})})},this.getHttpRequest=function(n,o){return new Se({method:br,headers:{"content-type":_r,"x-amz-target":n},protocol:Er,hostname:e.hostname,body:o})},this.hostname="cognito-identity.".concat(i.region,".amazonaws.com"),this.fetchRequestHandler=i.fetchRequestHandler}return t}(),ae=t=>encodeURIComponent(t).replace(/[!'()*]/g,Or),Or=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function mt(t){const i=[];for(let e of Object.keys(t).sort()){const n=t[e];if(e=ae(e),Array.isArray(n))for(let o=0,r=n.length;o<r;o++)i.push(`${e}=${ae(n[o])}`);else{let o=e;(n||typeof n=="string")&&(o+=`=${ae(n)}`),i.push(o)}}return i.join("&")}function Pr(t=0){return new Promise((i,e)=>{t&&setTimeout(()=>{const n=new Error(`Request did not complete within ${t} ms`);n.name="TimeoutError",e(n)},t)})}var yt=class{constructor(t){typeof t=="function"?this.configProvider=t().then(i=>i||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(t,{abortSignal:i}={}){this.config||(this.config=await this.configProvider);const e=this.config.requestTimeout;if(i?.aborted){const l=new Error("Request aborted");return l.name="AbortError",Promise.reject(l)}let n=t.path;if(t.query){const l=mt(t.query);l&&(n+=`?${l}`)}const{port:o,method:r}=t,a=`${t.protocol}//${t.hostname}${o?`:${o}`:""}${n}`,u={body:r==="GET"||r==="HEAD"?void 0:t.body,headers:new Headers(t.headers),method:r};typeof AbortController<"u"&&(u.signal=i);const s=new Request(a,u),f=[fetch(s).then(l=>{const d=l.headers,p={};for(const v of d.entries())p[v[0]]=v[1];return l.body!==void 0?{response:new Te({headers:p,statusCode:l.status,body:l.body})}:l.blob().then(v=>({response:new Te({headers:p,statusCode:l.status,body:v})}))}),Pr(e)];return i&&f.push(new Promise((l,d)=>{i.onabort=()=>{const p=new Error("Request aborted");p.name="AbortError",d(p)}})),Promise.race(f)}},le={},Ce=new Array(64);for(let t=0,i="A".charCodeAt(0),e="Z".charCodeAt(0);t+i<=e;t++){const n=String.fromCharCode(t+i);le[n]=t,Ce[t]=n}for(let t=0,i="a".charCodeAt(0),e="z".charCodeAt(0);t+i<=e;t++){const n=String.fromCharCode(t+i),o=t+26;le[n]=o,Ce[o]=n}for(let t=0;t<10;t++){le[t.toString(10)]=t+52;const i=t.toString(10),e=t+52;le[i]=e,Ce[e]=i}le["+"]=62,Ce[62]="+",le["/"]=63,Ce[63]="/";var He=function(){return He=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},He.apply(this,arguments)},Ir=function(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(f){try{s(n.next(f))}catch(l){a(l)}}function u(f){try{s(n.throw(f))}catch(l){a(l)}}function s(f){f.done?r(f.value):o(f.value).then(c,u)}s((n=n.apply(t,i||[])).next())})},Rr=function(t,i){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,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&&(r=s[0]&2?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=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(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1],r=s;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(s);break}r[2]&&e.ops.pop(),e.trys.pop();continue}s=i.call(t,e)}catch(f){s=[6,f],o=0}finally{n=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Lr="POST",kr="application/x-www-form-urlencoded",Nr="https:",jr="AssumeRoleWithWebIdentity",Mr="2011-06-15",Hr=function(){function t(i){var e=this;this.assumeRoleWithWebIdentity=function(n){return Ir(e,void 0,void 0,function(){var o,r,a,c,u,s;return Rr(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),o=He(He({},n),{Action:jr,Version:Mr}),r=new URLSearchParams(Object.entries(o)).toString(),a=new Se({method:Lr,headers:{"content-type":kr,host:this.hostname},protocol:Nr,hostname:this.hostname,body:r}),[4,this.fetchRequestHandler.handle(a)];case 1:return c=f.sent().response,[4,wr(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(i.region,".amazonaws.com"),this.fetchRequestHandler=i.fetchRequestHandler}return t}(),Ue="cwr_c",$t="cwr_s",Kt="cwr_u",Yt=3e4,xe=function(){return xe=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},xe.apply(this,arguments)},De=function(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(f){try{s(n.next(f))}catch(l){a(l)}}function u(f){try{s(n.throw(f))}catch(l){a(l)}}function s(f){f.done?r(f.value):o(f.value).then(c,u)}s((n=n.apply(t,i||[])).next())})},qe=function(t,i){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,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&&(r=s[0]&2?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=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(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1],r=s;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(s);break}r[2]&&e.ops.pop(),e.trys.pop();continue}s=i.call(t,e)}catch(f){s=[6,f],o=0}finally{n=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Ur=function(){function t(i){var e=this;this.ChainAnonymousCredentialsProvider=function(){return De(e,void 0,void 0,function(){return qe(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return De(e,void 0,void 0,function(){var o=this;return qe(this,function(r){return[2,new Promise(function(a,c){if(o.renewCredentials())return c();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return De(e,void 0,void 0,function(){var o=this;return qe(this,function(r){return[2,new Promise(function(a,c){var u;try{u=JSON.parse(localStorage.getItem(Ue))}catch{return c()}if(o.credentials=xe(xe({},u),{expiration:new Date(u.expiration)}),o.renewCredentials())return c();o.credentials=u,a(u)})]})})},this.AnonymousCognitoCredentialsProvider=function(){return De(e,void 0,void 0,function(){var o=this;return qe(this,function(r){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(Ue,JSON.stringify(a))}catch{}return a})]})})};var n=i.identityPoolId.split(":")[0];this.config=i,this.stsClient=new Hr({fetchRequestHandler:new yt,region:n}),this.cognitoIdentityClient=new Wt({fetchRequestHandler:new yt,region:n})}return t.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var i=new Date(this.credentials.expiration.getTime()-Yt);return new Date>i},t}(),Be=function(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(f){try{s(n.next(f))}catch(l){a(l)}}function u(f){try{s(n.throw(f))}catch(l){a(l)}}function s(f){f.done?r(f.value):o(f.value).then(c,u)}s((n=n.apply(t,i||[])).next())})},Fe=function(t,i){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,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&&(r=s[0]&2?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=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(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1],r=s;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(s);break}r[2]&&e.ops.pop(),e.trys.pop();continue}s=i.call(t,e)}catch(f){s=[6,f],o=0}finally{n=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},xr=function(){function t(i){var e=this;this.ChainAnonymousCredentialsProvider=function(){return Be(e,void 0,void 0,function(){return Fe(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return Be(e,void 0,void 0,function(){var o=this;return Fe(this,function(r){return[2,new Promise(function(a,c){if(o.renewCredentials())return c();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return Be(e,void 0,void 0,function(){var o=this;return Fe(this,function(r){return[2,new Promise(function(a,c){var u;try{u=JSON.parse(localStorage.getItem(Ue))}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 Be(e,void 0,void 0,function(){var o,r=this;return Fe(this,function(a){return o=Ar({client:this.cognitoIdentityClient,identityPoolId:this.config.identityPoolId}),[2,o().then(function(c){r.credentials=c;try{localStorage.setItem(Ue,JSON.stringify(c))}catch{}return c})]})})};var n=i.identityPoolId.split(":")[0];this.config=i,this.cognitoIdentityClient=new Wt({fetchRequestHandler:new yt,region:n})}return t.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var i=new Date(this.credentials.expiration.getTime()-Yt);return new Date>i},t}(),J="com.amazon.rum",Dr="com.amazonaws.rum",Ve="".concat(J,".http_event"),Jt="".concat(J,".xray_trace_event"),qr="".concat(J,".largest_contentful_paint_event"),Br="".concat(J,".first_input_delay_event"),Fr="".concat(J,".cumulative_layout_shift_event"),wt="".concat(J,".performance_navigation_event"),Vr="".concat(J,".performance_resource_event"),Gr="".concat(J,".dom_event"),zr="".concat(J,".js_error_event"),Xr="".concat(J,".page_view_event"),se=function(){function t(i){this.enabled=!0,this.pluginId=t.generatePluginId(i)}return t.generatePluginId=function(i){return"".concat(t.idPrefix,".").concat(i)},t.prototype.load=function(i){var e;this.context=i,(e=this.onload)===null||e===void 0||e.call(this)},t.prototype.getPluginId=function(){return this.pluginId},t.idPrefix=Dr,t}(),Wr=function(){function t(i){this.context=i,this.plugins=new Map}return t.prototype.addPlugin=function(i){var e=i.getPluginId();if(this.hasPlugin(e))throw new Error('Plugin "'.concat(e,'" already defined in the PluginManager'));this.plugins.set(e,i),i.load(this.context)},t.prototype.updatePlugin=function(i,e){var n,o=this.getPlugin(i);(n=o?.update)===null||n===void 0||n.call(o,e)},t.prototype.enable=function(){this.plugins.forEach(function(i){return i.enable()})},t.prototype.disable=function(){this.plugins.forEach(function(i){return i.disable()})},t.prototype.hasPlugin=function(i){return Boolean(this.getPlugin(i))},t.prototype.record=function(i,e){var n=this.getPlugin(i);if(n?.record instanceof Function)n.record(e);else throw new Error("AWS RUM Client record: Invalid plugin ID")},t.prototype.getPlugin=function(i){var e;return(e=this.plugins.get(i))!==null&&e!==void 0?e:this.plugins.get(se.generatePluginId(i))},t}(),$r=function(){var t=function(i,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},t(i,e)};return function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ce=function(){return ce=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},ce.apply(this,arguments)},Zt="dom-event",Kr={interactionId:function(){return""},enableMutationObserver:!1,events:[]},Yr=function(t){$r(i,t);function i(e){var n=t.call(this,Zt)||this;return n.enabled=!1,n.eventListenerMap=new Map,n.config=ce(ce({},Kr),e),n}return i.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},i.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)},i.prototype.disable=function(){!this.enabled||(this.removeListeners(),this.observer&&this.observer.disconnect(),this.enabled=!1)},i.prototype.update=function(e){var n=this;e.forEach(function(o){n.addEventHandler(o),n.config.events.push(o)})},i.prototype.onload=function(){this.enable()},i.prototype.removeListeners=function(){var e=this;this.config.events.forEach(function(n){return e.removeEventHandler(n)})},i.prototype.addListeners=function(){var e=this;this.config.events.forEach(function(n){return e.addEventHandler(n)})},i.prototype.getEventListener=function(e){var n=this;return function(o){var r,a=i.getElementInfo(o),c=n.config.interactionId(o),u=ce(ce(ce({version:"1.1.0",event:o.type,element:a.name},a.id?{elementId:a.id}:{}),c?{interactionId:c}:{}),e?{cssLocator:e}:{});!((r=n.context)===null||r===void 0)&&r.record&&n.context.record(Gr,u)}},i.prototype.addEventHandler=function(e){var n=e.event,o=this.getEventListener(e.cssLocator),r=[],a=this.eventListenerMap.has(e)?this.eventListenerMap.get(e):[];if(e.cssLocator){var c=document.querySelectorAll(e.cssLocator);c.forEach(function(s){r.push(s)})}else if(e.elementId){var u=document.getElementById(e.elementId);u&&r.push(u)}else e.element&&r.push(e.element);r.forEach(function(s){s.addEventListener(n,o),a.push({element:s,eventListener:o})}),this.eventListenerMap.set(e,a)},i.prototype.removeEventHandler=function(e){var n=this.eventListenerMap.get(e);n&&(n.forEach(function(o){var r=o.element,a=o.eventListener;r.removeEventListener(e.event,a)}),this.eventListenerMap.delete(e))},i.prototype.observeDOMMutation=function(){var e=this;this.observer=new MutationObserver(function(){e.removeListeners(),e.addListeners()}),this.observer.observe(document,{childList:!0,subtree:!0})},i}(se),Jr=function(t){var i=typeof t;return(i==="object"||i==="function")&&!!t},Zr=function(t){var i={version:"1.0.0",type:"undefined",message:"undefined"};return t.type!==void 0&&(i.type=t.type),t.message!==void 0&&(i.message=t.message),t.filename!==void 0&&(i.filename=t.filename),t.lineno!==void 0&&(i.lineno=t.lineno),t.colno!==void 0&&(i.colno=t.colno),i},Qr=function(t,i){t.type!=="unhandledrejection"&&(t.type=i.toString()),t.message=i.toString()},ei=function(t,i,e){i.name&&(t.type=i.name),i.message&&(t.message=i.message),i.fileName&&(t.filename=i.fileName),i.lineNumber&&(t.lineno=i.lineNumber),i.columnNumber&&(t.colno=i.columnNumber),e&&i.stack&&(t.stack=i.stack.length>e?i.stack.substring(0,e)+"...":i.stack)},Qt=function(t){return t!==Object(t)&&t!==void 0&&t!==null},bt=function(t,i){var e=Zr(t),n=t.error;return Jr(n)?ei(e,n,i):Qt(n)&&Qr(e,n),e},ti=function(){var t=function(i,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},t(i,e)};return function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ge=function(){return Ge=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},Ge.apply(this,arguments)},en="js-error",ni={stackTraceLength:200,ignore:function(){return!1}},ri=function(t){ti(i,t);function i(e){var n=t.call(this,en)||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=Ge(Ge({},ni),e),n}return i.prototype.enable=function(){this.enabled||(this.addEventHandler(),this.enabled=!0)},i.prototype.disable=function(){!this.enabled||(this.removeEventHandler(),this.enabled=!1)},i.prototype.record=function(e){e instanceof ErrorEvent?this.recordJsErrorEvent(e):this.recordJsErrorEvent({type:"error",error:e})},i.prototype.onload=function(){this.addEventHandler()},i.prototype.recordJsErrorEvent=function(e){var n;(n=this.context)===null||n===void 0||n.record(zr,bt(e,this.config.stackTraceLength))},i.prototype.addEventHandler=function(){window.addEventListener("error",this.eventHandler),window.addEventListener("unhandledrejection",this.promiseRejectEventHandler)},i.prototype.removeEventHandler=function(){window.removeEventListener("error",this.eventHandler),window.removeEventListener("unhandledrejection",this.promiseRejectEventHandler)},i}(se),tn=function(t,i,e,n,o){var r=t+"=";r+=i||"",o!==void 0?r+="; Expires=".concat(o.toUTCString()):n!==void 0&&(r+="; Expires=".concat(ii(n).toUTCString())),r+="; Domain=".concat(e.domain),r+="; Path=".concat(e.path),r+="; SameSite=".concat(e.sameSite),r+=e.secure?"; Secure":"",document.cookie=r},ii=function(t){return new Date(new Date().getTime()+t*1e3)},nn=function(t){for(var i=document.cookie.split("; "),e=0,n=i;e<n.length;e++){var o=n[e],r=o.split("=");if(r[0]===t)return r[1]}return""},ze,oi=new Uint8Array(16);function ai(){if(!ze&&(ze=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ze))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ze(oi)}var si=/^(?:[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 ci(t){return typeof t=="string"&&si.test(t)}var rn=ci,D=[];for(Z=0;Z<256;++Z)D.push((Z+256).toString(16).substr(1));var Z;function ui(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=(D[t[i+0]]+D[t[i+1]]+D[t[i+2]]+D[t[i+3]]+"-"+D[t[i+4]]+D[t[i+5]]+"-"+D[t[i+6]]+D[t[i+7]]+"-"+D[t[i+8]]+D[t[i+9]]+"-"+D[t[i+10]]+D[t[i+11]]+D[t[i+12]]+D[t[i+13]]+D[t[i+14]]+D[t[i+15]]).toLowerCase();if(!rn(e))throw TypeError("Stringified UUID is invalid");return e}var on=ui;function fi(t){if(!rn(t))throw TypeError("Invalid UUID");var i,e=new Uint8Array(16);return e[0]=(i=parseInt(t.slice(0,8),16))>>>24,e[1]=i>>>16&255,e[2]=i>>>8&255,e[3]=i&255,e[4]=(i=parseInt(t.slice(9,13),16))>>>8,e[5]=i&255,e[6]=(i=parseInt(t.slice(14,18),16))>>>8,e[7]=i&255,e[8]=(i=parseInt(t.slice(19,23),16))>>>8,e[9]=i&255,e[10]=(i=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=i/4294967296&255,e[12]=i>>>24&255,e[13]=i>>>16&255,e[14]=i>>>8&255,e[15]=i&255,e}var li=fi;function di(t){t=unescape(encodeURIComponent(t));for(var i=[],e=0;e<t.length;++e)i.push(t.charCodeAt(e));return i}var hi="6ba7b810-9dad-11d1-80b4-00c04fd430c8",vi="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function an(t,i,e){function n(o,r,a,c){if(typeof o=="string"&&(o=di(o)),typeof r=="string"&&(r=li(r)),r.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+o.length);if(u.set(r),u.set(o,r.length),u=e(u),u[6]=u[6]&15|i,u[8]=u[8]&63|128,a){c=c||0;for(var s=0;s<16;++s)a[c+s]=u[s];return a}return on(u)}try{n.name=t}catch{}return n.DNS=hi,n.URL=vi,n}function pi(t){if(typeof t=="string"){var i=unescape(encodeURIComponent(t));t=new Uint8Array(i.length);for(var e=0;e<i.length;++e)t[e]=i.charCodeAt(e)}return gi(mi(yi(t),t.length*8))}function gi(t){for(var i=[],e=t.length*32,n="0123456789abcdef",o=0;o<e;o+=8){var r=t[o>>5]>>>o%32&255,a=parseInt(n.charAt(r>>>4&15)+n.charAt(r&15),16);i.push(a)}return i}function sn(t){return(t+64>>>9<<4)+14+1}function mi(t,i){t[i>>5]|=128<<i%32,t[sn(i)-1]=i;for(var e=1732584193,n=-271733879,o=-1732584194,r=271733878,a=0;a<t.length;a+=16){var c=e,u=n,s=o,f=r;e=q(e,n,o,r,t[a],7,-680876936),r=q(r,e,n,o,t[a+1],12,-389564586),o=q(o,r,e,n,t[a+2],17,606105819),n=q(n,o,r,e,t[a+3],22,-1044525330),e=q(e,n,o,r,t[a+4],7,-176418897),r=q(r,e,n,o,t[a+5],12,1200080426),o=q(o,r,e,n,t[a+6],17,-1473231341),n=q(n,o,r,e,t[a+7],22,-45705983),e=q(e,n,o,r,t[a+8],7,1770035416),r=q(r,e,n,o,t[a+9],12,-1958414417),o=q(o,r,e,n,t[a+10],17,-42063),n=q(n,o,r,e,t[a+11],22,-1990404162),e=q(e,n,o,r,t[a+12],7,1804603682),r=q(r,e,n,o,t[a+13],12,-40341101),o=q(o,r,e,n,t[a+14],17,-1502002290),n=q(n,o,r,e,t[a+15],22,1236535329),e=B(e,n,o,r,t[a+1],5,-165796510),r=B(r,e,n,o,t[a+6],9,-1069501632),o=B(o,r,e,n,t[a+11],14,643717713),n=B(n,o,r,e,t[a],20,-373897302),e=B(e,n,o,r,t[a+5],5,-701558691),r=B(r,e,n,o,t[a+10],9,38016083),o=B(o,r,e,n,t[a+15],14,-660478335),n=B(n,o,r,e,t[a+4],20,-405537848),e=B(e,n,o,r,t[a+9],5,568446438),r=B(r,e,n,o,t[a+14],9,-1019803690),o=B(o,r,e,n,t[a+3],14,-187363961),n=B(n,o,r,e,t[a+8],20,1163531501),e=B(e,n,o,r,t[a+13],5,-1444681467),r=B(r,e,n,o,t[a+2],9,-51403784),o=B(o,r,e,n,t[a+7],14,1735328473),n=B(n,o,r,e,t[a+12],20,-1926607734),e=F(e,n,o,r,t[a+5],4,-378558),r=F(r,e,n,o,t[a+8],11,-2022574463),o=F(o,r,e,n,t[a+11],16,1839030562),n=F(n,o,r,e,t[a+14],23,-35309556),e=F(e,n,o,r,t[a+1],4,-1530992060),r=F(r,e,n,o,t[a+4],11,1272893353),o=F(o,r,e,n,t[a+7],16,-155497632),n=F(n,o,r,e,t[a+10],23,-1094730640),e=F(e,n,o,r,t[a+13],4,681279174),r=F(r,e,n,o,t[a],11,-358537222),o=F(o,r,e,n,t[a+3],16,-722521979),n=F(n,o,r,e,t[a+6],23,76029189),e=F(e,n,o,r,t[a+9],4,-640364487),r=F(r,e,n,o,t[a+12],11,-421815835),o=F(o,r,e,n,t[a+15],16,530742520),n=F(n,o,r,e,t[a+2],23,-995338651),e=V(e,n,o,r,t[a],6,-198630844),r=V(r,e,n,o,t[a+7],10,1126891415),o=V(o,r,e,n,t[a+14],15,-1416354905),n=V(n,o,r,e,t[a+5],21,-57434055),e=V(e,n,o,r,t[a+12],6,1700485571),r=V(r,e,n,o,t[a+3],10,-1894986606),o=V(o,r,e,n,t[a+10],15,-1051523),n=V(n,o,r,e,t[a+1],21,-2054922799),e=V(e,n,o,r,t[a+8],6,1873313359),r=V(r,e,n,o,t[a+15],10,-30611744),o=V(o,r,e,n,t[a+6],15,-1560198380),n=V(n,o,r,e,t[a+13],21,1309151649),e=V(e,n,o,r,t[a+4],6,-145523070),r=V(r,e,n,o,t[a+11],10,-1120210379),o=V(o,r,e,n,t[a+2],15,718787259),n=V(n,o,r,e,t[a+9],21,-343485551),e=ne(e,c),n=ne(n,u),o=ne(o,s),r=ne(r,f)}return[e,n,o,r]}function yi(t){if(t.length===0)return[];for(var i=t.length*8,e=new Uint32Array(sn(i)),n=0;n<i;n+=8)e[n>>5]|=(t[n/8]&255)<<n%32;return e}function ne(t,i){var e=(t&65535)+(i&65535),n=(t>>16)+(i>>16)+(e>>16);return n<<16|e&65535}function wi(t,i){return t<<i|t>>>32-i}function Xe(t,i,e,n,o,r){return ne(wi(ne(ne(i,t),ne(n,r)),o),e)}function q(t,i,e,n,o,r,a){return Xe(i&e|~i&n,t,i,o,r,a)}function B(t,i,e,n,o,r,a){return Xe(i&n|e&~n,t,i,o,r,a)}function F(t,i,e,n,o,r,a){return Xe(i^e^n,t,i,o,r,a)}function V(t,i,e,n,o,r,a){return Xe(e^(i|~n),t,i,o,r,a)}var bi=pi;an("v3",48,bi);function _i(t,i,e){t=t||{};var n=t.random||(t.rng||ai)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,i){e=e||0;for(var o=0;o<16;++o)i[e+o]=n[o];return i}return on(n)}var Ae=_i;function Ei(t,i,e,n){switch(t){case 0:return i&e^~i&n;case 1:return i^e^n;case 2:return i&e^i&n^e&n;case 3:return i^e^n}}function _t(t,i){return t<<i|t>>>32-i}function Si(t){var i=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){var n=unescape(encodeURIComponent(t));t=[];for(var o=0;o<n.length;++o)t.push(n.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var r=t.length/4+2,a=Math.ceil(r/16),c=new Array(a),u=0;u<a;++u){for(var s=new Uint32Array(16),f=0;f<16;++f)s[f]=t[u*64+f*4]<<24|t[u*64+f*4+1]<<16|t[u*64+f*4+2]<<8|t[u*64+f*4+3];c[u]=s}c[a-1][14]=(t.length-1)*8/Math.pow(2,32),c[a-1][14]=Math.floor(c[a-1][14]),c[a-1][15]=(t.length-1)*8&4294967295;for(var l=0;l<a;++l){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=c[l][p];for(var h=16;h<80;++h)d[h]=_t(d[h-3]^d[h-8]^d[h-14]^d[h-16],1);for(var v=e[0],m=e[1],k=e[2],M=e[3],S=e[4],T=0;T<80;++T){var x=Math.floor(T/20),K=_t(v,5)+Ei(x,m,k,M)+S+i[x]+d[T]>>>0;S=M,M=k,k=_t(m,30)>>>0,m=v,v=K}e[0]=e[0]+v>>>0,e[1]=e[1]+m>>>0,e[2]=e[2]+k>>>0,e[3]=e[3]+M>>>0,e[4]=e[4]+S>>>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 Ti=Si;an("v5",80,Ti);var Ci=ht(or()),We=function(){return We=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},We.apply(this,arguments)},de="00000000-0000-0000-0000-000000000000",$e="unknown",Ai="desktop",Oi="web",Pi="com.amazon.rum.session_start_event",Ii=function(){function t(i,e,n,o){this.appMonitorDetails=i,this.config=e,this.record=n,this.pageManager=o,this.session={sessionId:de,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!==de&&!this.useCookies()?this.session={sessionId:de,record:this.sample(),eventCount:0,page:this.session.page}:this.session.sessionId===de&&this.useCookies()?this.createSession():this.session.sessionId!==de&&new Date>this.sessionExpiry&&this.createSession(),this.session},t.prototype.getAttributes=function(){return this.attributes},t.prototype.addSessionAttributes=function(i){this.attributes=We(We({},i),this.attributes)},t.prototype.getUserId=function(){return this.useCookies()?this.userId:de},t.prototype.incrementSessionEventCount=function(){this.session.eventCount++,this.renewSession()},t.prototype.initializeUser=function(){var i="";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()?(i=this.getUserIdCookie(),this.userId=i||Ae(),this.createOrRenewUserCookie(i,this.userExpiry)):this.userId=Ae()},t.prototype.createOrRenewSessionCookie=function(i,e){btoa&&tn(this.sessionCookieName(),btoa(JSON.stringify(i)),this.config.cookieAttributes,void 0,e)},t.prototype.createOrRenewUserCookie=function(i,e){tn(Kt,i,this.config.cookieAttributes,void 0,e)},t.prototype.getUserIdCookie=function(){return nn(Kt)},t.prototype.getSessionFromCookie=function(){if(this.useCookies()){var i=nn(this.sessionCookieName());if(i&&atob)try{this.session=JSON.parse(atob(i)),this.pageManager.resumeSession(this.session.page.pageId,this.session.page.interaction)}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:Ae(),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,Pi,{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 i=new Ci.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:i.browser.name?i.browser.name:$e,browserVersion:i.browser.version?i.browser.version:$e,osName:i.os.name?i.os.name:$e,osVersion:i.os.version?i.os.version:$e,deviceType:i.device.type?i.device.type:Ai,platformType:Oi,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($t,"_").concat(this.appMonitorDetails.id):$t},t}(),Ke=ht(ar()),Ri=function(){var t=function(i,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},t(i,e)};return function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ye=function(t){Ri(i,t);function i(){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 i.prototype.patchAll=function(){for(var e=Ke.wrap.bind(Ke),n=0,o=this.patches;n<o.length;n++){var r=o[n];e(r.nodule,r.name,r.wrapper())}},i.prototype.unpatchAll=function(){for(var e=Ke.unwrap.bind(Ke),n=0,o=this.patches;n<o.length;n++){var r=o[n];e(r.nodule,r.name)}},i.prototype.patch=function(e){e===void 0&&(e=!0),this.enabled!==e&&(this.enabled=e,e?this.patchAll():this.unpatchAll())},i}(se),Li=function(){var t=function(i,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},t(i,e)};return function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ki=function(t){Li(i,t);function i(e,n,o){var r=t.call(this,"virtual-page-load-timer")||this;return r.sendWrapper=function(){var a=r;return function(c){return function(){return a.recordXhr(this),this.addEventListener("loadend",a.endTracking),c.apply(this,arguments)}}},r.endTracking=function(a){var c=Date.now(),u=a.target;u.removeEventListener("loadend",r.endTracking),r.removeXhr(u,c)},r.fetch=function(a,c,u){return a.apply(c,u).catch(function(s){throw s}).finally(r.decrementFetchCounter)},r.fetchWrapper=function(){var a=r;return function(c){return function(u,s){return a.fetchCounter+=1,a.fetch(c,this,arguments)}}},r.decrementFetchCounter=function(){r.isPageLoaded||(r.latestEndTime=Date.now()),r.fetchCounter-=1},r.checkLoadStatus=function(){r.ongoingRequests.size===0&&r.fetchCounter===0&&(clearInterval(r.periodicCheckerId),clearTimeout(r.timeoutCheckerId),r.domMutationObserver.disconnect(),r.recordRouteChangeNavigationEvent(r.pageManager.getPage()),r.periodicCheckerId=void 0,r.timeoutCheckerId=void 0,r.isPageLoaded=!0)},r.declareTimeout=function(){clearInterval(r.periodicCheckerId),r.periodicCheckerId=void 0,r.timeoutCheckerId=void 0,r.domMutationObserver.disconnect(),r.isPageLoaded=!0},r.resetInterval=function(){r.latestEndTime=Date.now(),clearInterval(r.periodicCheckerId),r.periodicCheckerId=setInterval(r.checkLoadStatus,r.config.routeChangeComplete)},r.moveItemsFromBuffer=function(a){r.ongoingRequests.add(a)},r.updateLatestInteractionTime=function(a){r.latestInteractionTime=Date.now()},r.periodicCheckerId=void 0,r.timeoutCheckerId=void 0,r.domMutationObserver=new MutationObserver(r.resetInterval),r.ongoingRequests=new Set,r.requestBuffer=new Set,r.fetchCounter=0,r.isPageLoaded=!0,r.latestEndTime=0,r.latestInteractionTime=0,r.config=n,r.pageManager=e,r.record=o,r.enable(),document.addEventListener("mousedown",r.updateLatestInteractionTime),document.addEventListener("keydown",r.updateLatestInteractionTime),r}return Object.defineProperty(i.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),i.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()},i.prototype.recordXhr=function(e){var n=this.pageManager.getPage();n&&this.isPageLoaded===!1?this.ongoingRequests.add(e):this.requestBuffer.add(e)},i.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)},i.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(wt,n)},i}(Ye),Je=function(){return Je=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},Je.apply(this,arguments)},Ni=function(){function t(i,e){this.TIMEOUT=1e3,this.config=i,this.record=e,this.page=void 0,this.resumed=void 0,this.recordInteraction=!1,this.virtualPageLoadTimer=new ki(this,i,e)}return t.prototype.getPage=function(){return this.page},t.prototype.getAttributes=function(){return this.attributes},t.prototype.resumeSession=function(i,e){this.recordInteraction=!0,this.resumed={pageId:i,interaction:e,start:0}},t.prototype.recordPageView=function(i){var e;if(typeof i=="string"?e=i:e=i.pageId,this.useCookies()&&(this.recordInteraction=!0),!this.page&&this.resumed)this.createResumedPage(e,this.resumed);else if(!this.page)this.createLandingPage(e);else if(this.page.pageId!==e)this.createNextPage(this.page,e);else return;this.collectAttributes(this.page,typeof i=="object"?i:void 0),this.recordPageViewEvent(this.page)},t.prototype.createResumedPage=function(i,e){this.page={pageId:i,parentPageId:e.pageId,interaction:e.interaction+1,start:Date.now()},this.resumed=void 0},t.prototype.createNextPage=function(i,e){var n=Date.now(),o=this.virtualPageLoadTimer.latestInteractionTime;n-o<=this.TIMEOUT&&(n=o,this.virtualPageLoadTimer.startTiming()),this.page={pageId:e,parentPageId:i.pageId,interaction:i.interaction+1,start:n}},t.prototype.createLandingPage=function(i){this.page={pageId:i,interaction:0,start:Date.now()}},t.prototype.collectAttributes=function(i,e){this.attributes={title:document.title,pageId:i.pageId},this.recordInteraction&&(this.attributes.interaction=i.interaction,i.parentPageId!==void 0&&(this.attributes.parentPageId=i.parentPageId)),e?.pageTags&&(this.attributes.pageTags=e.pageTags),e?.pageAttributes&&(this.attributes=Je(Je({},e.pageAttributes),this.attributes))},t.prototype.createPageViewEvent=function(i){var e={version:"1.0.0",pageId:i.pageId};return this.recordInteraction&&(e.interaction=i.interaction,e.pageInteractionId=i.pageId+"-"+i.interaction,i.parentPageId!==void 0&&(e.parentPageInteractionId=i.parentPageId+"-"+(i.interaction-1))),e},t.prototype.recordPageViewEvent=function(i){this.record(Xr,this.createPageViewEvent(i))},t.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},t}(),Oe=function(){return Oe=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},Oe.apply(this,arguments)},ji=function(){function t(i,e){var n=this;this.events=[],this.recordPageView=function(o){n.isCurrentUrlAllowed()&&n.pageManager.recordPageView(o)},this.recordEvent=function(o,r){if(!!n.enabled&&n.isCurrentUrlAllowed()){var a=n.sessionManager.getSession();n.sessionManager.incrementSessionEventCount(),n.canRecord(a)&&n.addRecordToCache(o,r)}},this.getSession=function(){if(n.isCurrentUrlAllowed())return n.sessionManager.getSession()},this.recordSessionInitEvent=function(o,r,a){!n.enabled||(n.sessionManager.incrementSessionEventCount(),n.canRecord(o)&&n.addRecordToCache(r,a))},this.canRecord=function(o){return o.record&&(o.eventCount<=n.config.sessionEventLimit||n.config.sessionEventLimit<=0)},this.addRecordToCache=function(o,r){if(!!n.enabled){n.events.length===n.config.eventCacheSize&&n.events.shift();var a=Oe(Oe(Oe({},n.sessionManager.getAttributes()),n.pageManager.getAttributes()),{version:"1.0.0"});n.events.push({details:JSON.stringify(r),id:Ae(),metadata:JSON.stringify(a),timestamp:new Date,type:o})}},this.appMonitorDetails=i,this.config=e,this.enabled=!0,this.pageManager=new Ni(e,this.recordEvent),this.sessionManager=new Ii(i,e,this.recordSessionInitEvent,this.pageManager)}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 i=[];return this.events.length===0||(this.events.length<=this.config.batchLimit?(i=this.events,this.events=[]):i=this.events.splice(0,this.config.batchLimit)),i},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(i){this.sessionManager.addSessionAttributes(i)},t.prototype.isCurrentUrlAllowed=function(){var i=document.location.toString(),e=this.config.pagesToExclude.some(function(o){return o.test(i)}),n=this.config.pagesToInclude.some(function(o){return o.test(i)});return n&&!e},t}(),cn={};for(let t=0;t<256;t++){let i=t.toString(16).toLowerCase();i.length===1&&(i=`0${i}`),cn[t]=i}function ue(t){let i="";for(let e=0;e<t.byteLength;e++)i+=cn[t[e]];return i}var un=t=>{if(typeof t=="function")return t;const i=Promise.resolve(t);return()=>i},Mi="X-Amz-Algorithm",Hi="X-Amz-Credential",fn="X-Amz-Date",Ui="X-Amz-SignedHeaders",xi="X-Amz-Expires",ln="X-Amz-Signature",dn="X-Amz-Security-Token",hn="authorization",vn=fn.toLowerCase(),Di="date",qi=[hn,vn,Di],Bi=ln.toLowerCase(),Et="x-amz-content-sha256",Fi=dn.toLowerCase(),Vi={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},Gi=/^proxy-/,zi=/^sec-/,St="AWS4-HMAC-SHA256",Xi="AWS4-HMAC-SHA256-PAYLOAD",Wi="UNSIGNED-PAYLOAD",$i=50,pn="aws4_request",Ki=60*60*24*7,Ze={},Tt=[],Ct=(t,i,e)=>`${t}/${i}/${e}/${pn}`,Yi=async(t,i,e,n,o)=>{const r=await gn(t,i.secretAccessKey,i.accessKeyId),a=`${e}:${n}:${o}:${ue(r)}:${i.sessionToken}`;if(a in Ze)return Ze[a];for(Tt.push(a);Tt.length>$i;)delete Ze[Tt.shift()];let c=`AWS4${i.secretAccessKey}`;for(const u of[e,n,o,pn])c=await gn(t,c,u);return Ze[a]=c},gn=(t,i,e)=>{const n=new t(i);return n.update(e),n.digest()},mn=({headers:t},i,e)=>{const n={};for(const o of Object.keys(t).sort()){if(t[o]==null)continue;const r=o.toLowerCase();(r in Vi||i?.has(r)||Gi.test(r)||zi.test(r))&&(!e||e&&!e.has(r))||(n[r]=t[o].trim().replace(/\s+/g," "))}return n},Ji=({query:t={}})=>{const i=[],e={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===Bi)continue;i.push(n);const o=t[n];typeof o=="string"?e[n]=`${ae(n)}=${ae(o)}`:Array.isArray(o)&&(e[n]=o.slice(0).sort().reduce((r,a)=>r.concat([`${ae(n)}=${ae(a)}`]),[]).join("&"))}return i.map(n=>e[n]).filter(n=>n).join("&")},Zi=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",At=async({headers:t,body:i},e)=>{for(const n of Object.keys(t))if(n.toLowerCase()===Et)return t[n];if(i==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof i=="string"||ArrayBuffer.isView(i)||Zi(i)){const n=new e;return n.update(i),ue(await n.digest())}return Wi},Qi=(t,i)=>{t=t.toLowerCase();for(const e of Object.keys(i))if(t===e.toLowerCase())return!0;return!1},yn=({headers:t,query:i,...e})=>({...e,headers:{...t},query:i?eo(i):void 0}),eo=t=>Object.keys(t).reduce((i,e)=>{const n=t[e];return{...i,[e]:Array.isArray(n)?[...n]:n}},{}),to=(t,i={})=>{const{headers:e,query:n={}}=typeof t.clone=="function"?t.clone():yn(t);for(const o of Object.keys(e)){const r=o.toLowerCase();r.slice(0,6)==="x-amz-"&&!i.unhoistableHeaders?.has(r)&&(n[o]=e[o],delete e[o])}return{...t,headers:e,query:n}},wn=t=>{t=typeof t.clone=="function"?t.clone():yn(t);for(const i of Object.keys(t.headers))qi.indexOf(i.toLowerCase())>-1&&delete t.headers[i];return t},no=t=>ro(t).toISOString().replace(/\.\d{3}Z$/,"Z"),ro=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,io=class{constructor({applyChecksum:t,credentials:i,region:e,service:n,sha256:o,uriEscapePath:r=!0}){this.service=n,this.sha256=o,this.uriEscapePath=r,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=un(e),this.credentialProvider=un(i)}async presign(t,i={}){const{signingDate:e=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:r,signableHeaders:a,signingRegion:c,signingService:u}=i,s=await this.credentialProvider();this.validateResolvedCredentials(s);const f=c??await this.regionProvider(),{longDate:l,shortDate:d}=Qe(e);if(n>Ki)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const p=Ct(d,f,u??this.service),h=to(wn(t),{unhoistableHeaders:r});s.sessionToken&&(h.query[dn]=s.sessionToken),h.query[Mi]=St,h.query[Hi]=`${s.accessKeyId}/${p}`,h.query[fn]=l,h.query[xi]=n.toString(10);const v=mn(h,o,a);return h.query[Ui]=bn(v),h.query[ln]=await this.getSignature(l,p,this.getSigningKey(s,f,d,u),this.createCanonicalRequest(h,v,await At(t,this.sha256))),h}async sign(t,i){return typeof t=="string"?this.signString(t,i):t.headers&&t.payload?this.signEvent(t,i):this.signRequest(t,i)}async signEvent({headers:t,payload:i},{signingDate:e=new Date,priorSignature:n,signingRegion:o,signingService:r}){const a=o??await this.regionProvider(),{shortDate:c,longDate:u}=Qe(e),s=Ct(c,a,r??this.service),f=await At({headers:{},body:i},this.sha256),l=new this.sha256;l.update(t);const d=ue(await l.digest()),p=[Xi,u,s,n,d,f].join(`
2
- `);return this.signString(p,{signingDate:e,signingRegion:a,signingService:r})}async signString(t,{signingDate:i=new Date,signingRegion:e,signingService:n}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const r=e??await this.regionProvider(),{shortDate:a}=Qe(i),c=new this.sha256(await this.getSigningKey(o,r,a,n));return c.update(t),ue(await c.digest())}async signRequest(t,{signingDate:i=new Date,signableHeaders:e,unsignableHeaders:n,signingRegion:o,signingService:r}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const c=o??await this.regionProvider(),u=wn(t),{longDate:s,shortDate:f}=Qe(i),l=Ct(f,c,r??this.service);u.headers[vn]=s,a.sessionToken&&(u.headers[Fi]=a.sessionToken);const d=await At(u,this.sha256);!Qi(Et,u.headers)&&this.applyChecksum&&(u.headers[Et]=d);const p=mn(u,n,e),h=await this.getSignature(s,l,this.getSigningKey(a,c,f,r),this.createCanonicalRequest(u,p,d));return u.headers[hn]=`${St} Credential=${a.accessKeyId}/${l}, SignedHeaders=${bn(p)}, Signature=${h}`,u}createCanonicalRequest(t,i,e){const n=Object.keys(i).sort();return`${t.method}
1
+ (function(){"use strict";var sr=Object.create,ye=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,rt=Object.getOwnPropertyNames,ur=Object.getPrototypeOf,fr=Object.prototype.hasOwnProperty,lr=(t,r)=>function(){return t&&(r=(0,t[rt(t)[0]])(t=0)),r},N=(t,r)=>function(){return r||(0,t[rt(t)[0]])((r={exports:{}}).exports,r),r.exports},dr=(t,r)=>{for(var e in r)ye(t,e,{get:r[e],enumerable:!0})},Ft=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of rt(r))!fr.call(t,o)&&o!==e&&ye(t,o,{get:()=>r[o],enumerable:!(n=cr(r,o))||n.enumerable});return t},it=(t,r,e)=>(e=t!=null?sr(ur(t)):{},Ft(r||!t||!t.__esModule?ye(e,"default",{value:t,enumerable:!0}):e,t)),Vt=t=>Ft(ye({},"__esModule",{value:!0}),t),hr=N({"node_modules/ua-parser-js/src/ua-parser.js"(t,r){(function(e,n){var o="0.7.31",i="",a="?",c="function",f="undefined",s="object",u="string",l="major",d="model",v="name",h="type",p="vendor",g="version",T="architecture",A="console",m="mobile",y="tablet",k="smarttv",D="wearable",Ke="embedded",kt=255,Nt="Amazon",jt="Apple",Yn="ASUS",Jn="BlackBerry",re="Browser",Ye="Chrome",La="Edge",Je="Firefox",Ze="Google",Zn="Huawei",Mt="LG",Ht="Microsoft",Qn="Motorola",Qe="Opera",Ut="Samsung",xt="Sony",er="Xiaomi",Dt="Zebra",tr="Facebook",ka=function(w,E){var b={};for(var C in w)E[C]&&E[C].length%2===0?b[C]=E[C].concat(w[C]):b[C]=w[C];return b},et=function(w){for(var E={},b=0;b<w.length;b++)E[w[b].toUpperCase()]=w[b];return E},nr=function(w,E){return typeof w===u?pe(E).indexOf(pe(w))!==-1:!1},pe=function(w){return w.toLowerCase()},Na=function(w){return typeof w===u?w.replace(/[^\d\.]/g,i).split(".")[0]:n},qt=function(w,E){if(typeof w===u)return w=w.replace(/^\s\s*/,i).replace(/\s\s*$/,i),typeof E===f?w:w.substring(0,kt)},ge=function(w,E){for(var b=0,C,_,nt,S,me,x;b<E.length&&!me;){var or=E[b],ar=E[b+1];for(C=_=0;C<or.length&&!me;)if(me=or[C++].exec(w),me)for(nt=0;nt<ar.length;nt++)x=me[++_],S=ar[nt],typeof S===s&&S.length>0?S.length===2?typeof S[1]==c?this[S[0]]=S[1].call(this,x):this[S[0]]=S[1]:S.length===3?typeof S[1]===c&&!(S[1].exec&&S[1].test)?this[S[0]]=x?S[1].call(this,x,S[2]):n:this[S[0]]=x?x.replace(S[1],S[2]):n:S.length===4&&(this[S[0]]=x?S[3].call(this,x.replace(S[1],S[2])):n):this[S]=x||n;b+=2}},Bt=function(w,E){for(var b in E)if(typeof E[b]===s&&E[b].length>0){for(var C=0;C<E[b].length;C++)if(nr(E[b][C],w))return b===a?n:b}else if(nr(E[b],w))return b===a?n:b;return w},ja={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},rr={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"},ir={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[v,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,g],[/opios[\/ ]+([\w\.]+)/i],[g,[v,Qe+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[v,Qe]],[/(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|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[v,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[v,"UC"+re]],[/\bqbcore\/([\w\.]+)/i],[g,[v,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[g,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[v,"IE"]],[/yabrowser\/([\w\.]+)/i],[g,[v,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure "+re],g],[/\bfocus\/([\w\.]+)/i],[g,[v,Je+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[v,Qe+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[v,Qe+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[v,"MIUI "+re]],[/fxios\/([-\w\.]+)/i],[g,[v,Je]],[/\bqihu|(qi?ho?o?|360)browser/i],[[v,"360 "+re]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1 "+re],g],[/(comodo_dragon)\/([\w\.]+)/i],[[v,/_/g," "],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[v,g],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,tr],g],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[v,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[v,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[v,Ye+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,Ye+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[v,"Android "+re]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,g],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[g,[v,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[g,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[g,Bt,ja]],[/(webkit|khtml)\/([\w\.]+)/i],[v,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[v,Je+" 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],[v,g]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[T,"amd64"]],[/(ia32(?=;))/i],[[T,pe]],[/((?:i[346]|x)86)[;\)]/i],[[T,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[T,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[T,"armhf"]],[/windows (ce|mobile); ppc;/i],[[T,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[T,/ower/,i,pe]],[/(sun4\w)[;\)]/i],[[T,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[T,pe]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[p,Ut],[h,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[p,Ut],[h,m]],[/\((ip(?:hone|od)[\w ]*);/i],[d,[p,jt],[h,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[p,jt],[h,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[p,Zn],[h,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[d,[p,Zn],[h,m]],[/\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)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[p,er],[h,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[p,er],[h,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[p,"OPPO"],[h,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[p,"Vivo"],[h,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[d,[p,"Realme"],[h,m]],[/\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],[d,[p,Qn],[h,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[p,Qn],[h,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,Mt],[h,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[p,Mt],[h,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[p,"Lenovo"],[h,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[p,"Nokia"],[h,m]],[/(pixel c)\b/i],[d,[p,Ze],[h,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[p,Ze],[h,m]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[p,xt],[h,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[p,xt],[h,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[p,"OnePlus"],[h,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[p,Nt],[h,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[p,Nt],[h,m]],[/(playbook);[-\w\),; ]+(rim)/i],[d,p,[h,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[p,Jn],[h,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[p,Yn],[h,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[p,Yn],[h,m]],[/(nexus 9)/i],[d,[p,"HTC"],[h,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[p,[d,/_/g," "],[h,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[p,"Acer"],[h,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[p,"Meizu"],[h,m]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[p,"Sharp"],[h,m]],[/(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],[p,d,[h,m]],[/(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],[p,d,[h,y]],[/(surface duo)/i],[d,[p,Ht],[h,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[p,"Fairphone"],[h,m]],[/(u304aa)/i],[d,[p,"AT&T"],[h,m]],[/\bsie-(\w*)/i],[d,[p,"Siemens"],[h,m]],[/\b(rct\w+) b/i],[d,[p,"RCA"],[h,y]],[/\b(venue[\d ]{2,7}) b/i],[d,[p,"Dell"],[h,y]],[/\b(q(?:mv|ta)\w+) b/i],[d,[p,"Verizon"],[h,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[p,"Barnes & Noble"],[h,y]],[/\b(tm\d{3}\w+) b/i],[d,[p,"NuVision"],[h,y]],[/\b(k88) b/i],[d,[p,"ZTE"],[h,y]],[/\b(nx\d{3}j) b/i],[d,[p,"ZTE"],[h,m]],[/\b(gen\d{3}) b.+49h/i],[d,[p,"Swiss"],[h,m]],[/\b(zur\d{3}) b/i],[d,[p,"Swiss"],[h,y]],[/\b((zeki)?tb.*\b) b/i],[d,[p,"Zeki"],[h,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],d,[h,y]],[/\b(ns-?\w{0,9}) b/i],[d,[p,"Insignia"],[h,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[p,"NextBook"],[h,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],d,[h,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],d,[h,m]],[/\b(ph-1) /i],[d,[p,"Essential"],[h,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[p,"Envizen"],[h,y]],[/\b(trio[-\w\. ]+) b/i],[d,[p,"MachSpeed"],[h,y]],[/\btu_(1491) b/i],[d,[p,"Rotor"],[h,y]],[/(shield[\w ]+) b/i],[d,[p,"Nvidia"],[h,y]],[/(sprint) (\w+)/i],[p,d,[h,m]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[p,Ht],[h,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[p,Dt],[h,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[p,Dt],[h,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[h,A]],[/droid.+; (shield) bui/i],[d,[p,"Nvidia"],[h,A]],[/(playstation [345portablevi]+)/i],[d,[p,xt],[h,A]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[p,Ht],[h,A]],[/smart-tv.+(samsung)/i],[p,[h,k]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[p,Ut],[h,k]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,Mt],[h,k]],[/(apple) ?tv/i],[p,[d,jt+" TV"],[h,k]],[/crkey/i],[[d,Ye+"cast"],[p,Ze],[h,k]],[/droid.+aft(\w)( bui|\))/i],[d,[p,Nt],[h,k]],[/\(dtv[\);].+(aquos)/i],[d,[p,"Sharp"],[h,k]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[p,qt],[d,qt],[h,k]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,k]],[/((pebble))app/i],[p,d,[h,D]],[/droid.+; (glass) \d/i],[d,[p,Ze],[h,D]],[/droid.+; (wt63?0{2,3})\)/i],[d,[p,Dt],[h,D]],[/(quest( 2)?)/i],[d,[p,tr],[h,D]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[h,Ke]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[d,[h,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,y]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[h,m]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[v,La+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[v,"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],[v,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,g],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[v,[g,Bt,rr]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,"Windows"],[g,Bt,rr]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,"Mac OS"],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[g,v],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[v,g],[/\(bb(10);/i],[g,[v,Jn]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[v,Je+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[v,"webOS"]],[/crkey\/([\d\.]+)/i],[g,[v,Ye+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[v,"Chromium OS"],g],[/(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],[v,g],[/(sunos) ?([\w\.\d]*)/i],[[v,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[v,g]]},M=function(w,E){if(typeof w===s&&(E=w,w=n),!(this instanceof M))return new M(w,E).getResult();var b=w||(typeof e!==f&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:i),C=E?ka(ir,E):ir;return this.getBrowser=function(){var _={};return _[v]=n,_[g]=n,ge.call(_,b,C.browser),_.major=Na(_.version),_},this.getCPU=function(){var _={};return _[T]=n,ge.call(_,b,C.cpu),_},this.getDevice=function(){var _={};return _[p]=n,_[d]=n,_[h]=n,ge.call(_,b,C.device),_},this.getEngine=function(){var _={};return _[v]=n,_[g]=n,ge.call(_,b,C.engine),_},this.getOS=function(){var _={};return _[v]=n,_[g]=n,ge.call(_,b,C.os),_},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 b},this.setUA=function(_){return b=typeof _===u&&_.length>kt?qt(_,kt):_,this},this.setUA(b),this};M.VERSION=o,M.BROWSER=et([v,g,l]),M.CPU=et([T]),M.DEVICE=et([d,p,h,A,m,k,y,D,Ke]),M.ENGINE=M.OS=et([v,g]),typeof t!==f?(typeof r!==f&&r.exports&&(t=r.exports=M),t.UAParser=M):typeof define===c&&define.amd?define(function(){return M}):typeof e!==f&&(e.UAParser=M);var ie=typeof e!==f&&(e.jQuery||e.Zepto);if(ie&&!ie.ua){var tt=new M;ie.ua=tt.getResult(),ie.ua.get=function(){return tt.getUA()},ie.ua.set=function(w){tt.setUA(w);var E=tt.getResult();for(var b in E)ie.ua[b]=E[b]}}})(typeof window=="object"?window:t)}}),vr=N({"node_modules/shimmer/index.js"(t,r){function e(u){return typeof u=="function"}var n=console.error.bind(console);function o(u,l,d){var v=!!u[l]&&u.propertyIsEnumerable(l);Object.defineProperty(u,l,{configurable:!0,enumerable:v,writable:!0,value:d})}function i(u){u&&u.logger&&(e(u.logger)?n=u.logger:n("new logger isn't a function, not replacing"))}function a(u,l,d){if(!u||!u[l]){n("no original function "+l+" to wrap");return}if(!d){n("no wrapper function"),n(new Error().stack);return}if(!e(u[l])||!e(d)){n("original object and wrapper must be functions");return}var v=u[l],h=d(v,l);return o(h,"__original",v),o(h,"__unwrap",function(){u[l]===h&&o(u,l,v)}),o(h,"__wrapped",!0),o(u,l,h),h}function c(u,l,d){if(u)Array.isArray(u)||(u=[u]);else{n("must provide one or more modules to patch"),n(new Error().stack);return}if(!(l&&Array.isArray(l))){n("must provide one or more functions to wrap on modules");return}u.forEach(function(v){l.forEach(function(h){a(v,h,d)})})}function f(u,l){if(!u||!u[l]){n("no function to unwrap."),n(new Error().stack);return}if(!u[l].__unwrap)n("no original to unwrap to -- has "+l+" already been unwrapped?");else return u[l].__unwrap()}function s(u,l){if(u)Array.isArray(u)||(u=[u]);else{n("must provide one or more modules to patch"),n(new Error().stack);return}if(!(l&&Array.isArray(l))){n("must provide one or more functions to unwrap on modules");return}u.forEach(function(d){l.forEach(function(v){f(d,v)})})}i.wrap=a,i.massWrap=c,i.unwrap=f,i.massUnwrap=s,r.exports=i}}),ot={};dr(ot,{__assign:()=>be,__asyncDelegator:()=>Or,__asyncGenerator:()=>Ar,__asyncValues:()=>Pr,__await:()=>oe,__awaiter:()=>br,__classPrivateFieldGet:()=>kr,__classPrivateFieldSet:()=>Nr,__createBinding:()=>Er,__decorate:()=>mr,__exportStar:()=>Sr,__extends:()=>pr,__generator:()=>_r,__importDefault:()=>Lr,__importStar:()=>Rr,__makeTemplateObject:()=>Ir,__metadata:()=>wr,__param:()=>yr,__read:()=>Gt,__rest:()=>gr,__spread:()=>Tr,__spreadArrays:()=>Cr,__values:()=>at});function pr(t,r){we(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}function gr(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 mr(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 yr(t,r){return function(e,n){r(e,n,t)}}function wr(t,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,r)}function br(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(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})}function _r(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(u){return f([s,u])}}function f(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(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Er(t,r,e,n){n===void 0&&(n=e),t[n]=r[e]}function Sr(t,r){for(var e in t)e!=="default"&&!r.hasOwnProperty(e)&&(r[e]=t[e])}function at(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 Gt(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 Tr(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(Gt(arguments[r]));return t}function Cr(){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 Ar(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(d){n[d]&&(o[d]=function(v){return new Promise(function(h,p){i.push([d,v,h,p])>1||c(d,v)})})}function c(d,v){try{f(n[d](v))}catch(h){l(i[0][3],h)}}function f(d){d.value instanceof oe?Promise.resolve(d.value.v).then(s,u):l(i[0][2],d)}function s(d){c("next",d)}function u(d){c("throw",d)}function l(d,v){d(v),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Or(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 Pr(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 at=="function"?at(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,f){a=t[i](a),o(c,f,a.done,a.value)})}}function o(i,a,c,f){Promise.resolve(f).then(function(s){i({value:s,done:c})},a)}}function Ir(t,r){return Object.defineProperty?Object.defineProperty(t,"raw",{value:r}):t.raw=r,t}function Rr(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 Lr(t){return t&&t.__esModule?t:{default:t}}function kr(t,r){if(!r.has(t))throw new TypeError("attempted to get private field on non-instance");return r.get(t)}function Nr(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 we,be,zt=lr({"node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.js"(){we=function(t,r){return we=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])},we(t,r)},be=function(){return be=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},be.apply(this,arguments)}}}),Xt=N({"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}}),jr=N({"node_modules/@aws-crypto/sha256-js/build/RawSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var r=Xt(),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 f=new Uint8Array(r.DIGEST_LENGTH),c=0;c<8;c++)f[c*4]=this.state[c]>>>24&255,f[c*4+1]=this.state[c]>>>16&255,f[c*4+2]=this.state[c]>>>8&255,f[c*4+3]=this.state[c]>>>0&255;return f},n.prototype.hashBuffer=function(){for(var o=this,i=o.buffer,a=o.state,c=a[0],f=a[1],s=a[2],u=a[3],l=a[4],d=a[5],v=a[6],h=a[7],p=0;p<r.BLOCK_SIZE;p++){if(p<16)this.temp[p]=(i[p*4]&255)<<24|(i[p*4+1]&255)<<16|(i[p*4+2]&255)<<8|i[p*4+3]&255;else{var g=this.temp[p-2],T=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10;g=this.temp[p-15];var A=(g>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;this.temp[p]=(T+this.temp[p-7]|0)+(A+this.temp[p-16]|0)}var m=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&d^~l&v)|0)+(h+(r.KEY[p]+this.temp[p]|0)|0)|0,y=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&f^c&s^f&s)|0;h=v,v=d,d=l,l=u+m|0,u=s,s=f,f=c,c=m+y|0}a[0]+=c,a[1]+=f,a[2]+=s,a[3]+=u,a[4]+=l,a[5]+=d,a[6]+=v,a[7]+=h},n}();t.RawSha256=e}}),Mr=N({"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 f=65536+((c&1023)<<10)+(n.charCodeAt(++i)&1023);o.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&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 f=n[++i];o+=String.fromCharCode((c&31)<<6|f&63)}else if(240<=c&&c<365){const s="%"+[c,n[++i],n[++i],n[++i]].map(u=>u.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}}),Hr=N({"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}}),Ur=N({"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=Mr(),e=Hr(),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}}),xr=N({"node_modules/@aws-crypto/util/build/convertToBuffer.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var r=Ur(),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}}),Dr=N({"node_modules/@aws-crypto/util/build/isEmptyData.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0;function r(e){return typeof e=="string"?e.length===0:e.byteLength===0}t.isEmptyData=r}}),qr=N({"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}}),Br=N({"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}}),Fr=N({"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=xr();Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var e=Dr();Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return e.isEmptyData}});var n=qr();Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return n.numToUint8}});var o=Br();Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return o.uint32ArrayFrom}})}}),Vr=N({"node_modules/@aws-crypto/sha256-js/build/jsSha256.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=(zt(),Vt(ot)),e=Xt(),n=jr(),o=Fr(),i=function(){function c(f){if(this.hash=new n.RawSha256,f){this.outer=new n.RawSha256;var s=a(f),u=new Uint8Array(e.BLOCK_SIZE);u.set(s);for(var l=0;l<e.BLOCK_SIZE;l++)s[l]^=54,u[l]^=92;this.hash.update(s),this.outer.update(u);for(var l=0;l<s.byteLength;l++)s[l]=0}}return c.prototype.update=function(f){if(!((0,o.isEmptyData)(f)||this.error))try{this.hash.update((0,o.convertToBuffer)(f))}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(f){return[2,this.digestSync()]})})},c}();t.Sha256=i;function a(c){var f=(0,o.convertToBuffer)(c);if(f.byteLength>e.BLOCK_SIZE){var s=new n.RawSha256;s.update(f),f=s.digest()}var u=new Uint8Array(e.BLOCK_SIZE);return u.set(f),u}}}),Gr=N({"node_modules/@aws-crypto/sha256-js/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var r=(zt(),Vt(ot));r.__exportStar(Vr(),t)}}),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=zr(t.query)),t}};function zr(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"}},Wt=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(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},$t=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(u){return f([s,u])}}function f(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(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},st=function(t){return Wt(void 0,void 0,void 0,function(){var r;return $t(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))]}})})},Xr=function(t){return Wt(void 0,void 0,void 0,function(){var r;return $t(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)]}})})},ct=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(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},ut=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(u){return f([s,u])}}function f(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(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Wr="POST",$r="application/x-amz-json-1.1",Kr="https:",Yr="AWSCognitoIdentityService.GetId",Jr="AWSCognitoIdentityService.GetOpenIdToken",Zr="AWSCognitoIdentityService.GetCredentialsForIdentity",Qr=function(t){return function(){return t.client.getCredentialsForIdentity(t.identityPoolId)}},Kt=function(){function t(r){var e=this;this.getId=function(n){return ct(e,void 0,void 0,function(){var o,i,a,c;return ut(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),o=JSON.stringify(n),i=this.getHttpRequest(Yr,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=f.sent().response,[4,st(a)];case 2:return[2,f.sent()];case 3:throw c=f.sent(),new Error("CWR: Failed to retrieve Cognito identity: ".concat(c));case 4:return[2]}})})},this.getOpenIdToken=function(n){return ct(e,void 0,void 0,function(){var o,i,a,c;return ut(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),o=JSON.stringify(n),i=this.getHttpRequest(Jr,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=f.sent().response,[4,st(a)];case 2:return[2,f.sent()];case 3:throw c=f.sent(),new Error("CWR: Failed to retrieve Cognito OpenId token: ".concat(c));case 4:return[2]}})})},this.getCredentialsForIdentity=function(n){return ct(e,void 0,void 0,function(){var o,i,a,c,f,s,u,l,d;return ut(this,function(v){switch(v.label){case 0:return v.trys.push([0,3,,4]),o=JSON.stringify({IdentityId:n}),i=this.getHttpRequest(Zr,o),[4,this.fetchRequestHandler.handle(i)];case 1:return a=v.sent().response,[4,st(a)];case 2:return c=v.sent().Credentials,f=c.AccessKeyId,s=c.Expiration,u=c.SecretAccessKey,l=c.SessionToken,[2,{accessKeyId:f,secretAccessKey:u,sessionToken:l,expiration:new Date(s*1e3)}];case 3:throw d=v.sent(),new Error("CWR: Failed to retrieve credentials for Cognito identity: ".concat(d));case 4:return[2]}})})},this.getHttpRequest=function(n,o){return new ae({method:Wr,headers:{"content-type":$r,"x-amz-target":n},protocol:Kr,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,ei),ei=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function ft(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 ti(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 lt=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 l=new Error("Request aborted");return l.name="AbortError",Promise.reject(l)}let n=t.path;if(t.query){const l=ft(t.query);l&&(n+=`?${l}`)}const{port:o,method:i}=t,a=`${t.protocol}//${t.hostname}${o?`:${o}`:""}${n}`,f={body:i==="GET"||i==="HEAD"?void 0:t.body,headers:new Headers(t.headers),method:i};typeof AbortController<"u"&&(f.signal=r);const s=new Request(a,f),u=[fetch(s).then(l=>{const d=l.headers,v={};for(const p of d.entries())v[p[0]]=p[1];return l.body!==void 0?{response:new se({headers:v,statusCode:l.status,body:l.body})}:l.blob().then(p=>({response:new se({headers:v,statusCode:l.status,body:p})}))}),ti(e)];return r&&u.push(new Promise((l,d)=>{r.onabort=()=>{const v=new Error("Request aborted");v.name="AbortError",d(v)}})),Promise.race(u)}},$={},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);$[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;$[n]=o,ce[o]=n}for(let t=0;t<10;t++){$[t.toString(10)]=t+52;const r=t.toString(10),e=t+52;$[r]=e,ce[e]=r}$["+"]=62,ce[62]="+",$["/"]=63,ce[63]="/";var _e=function(){return _e=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},_e.apply(this,arguments)},ni=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(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},ri=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(u){return f([s,u])}}function f(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(u){s=[6,u],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-www-form-urlencoded",ai="https:",si="AssumeRoleWithWebIdentity",ci="2011-06-15",ui=function(){function t(r){var e=this;this.assumeRoleWithWebIdentity=function(n){return ni(e,void 0,void 0,function(){var o,i,a,c,f,s;return ri(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),o=_e(_e({},n),{Action:si,Version:ci}),i=new URLSearchParams(Object.entries(o)).toString(),a=new ae({method:ii,headers:{"content-type":oi,host:this.hostname},protocol:ai,hostname:this.hostname,body:i}),[4,this.fetchRequestHandler.handle(a)];case 1:return c=u.sent().response,[4,Xr(c)];case 2:return f=u.sent(),[2,{accessKeyId:f.split("<AccessKeyId>")[1].split("</AccessKeyId>")[0],secretAccessKey:f.split("<SecretAccessKey>")[1].split("</SecretAccessKey>")[0],sessionToken:f.split("<SessionToken>")[1].split("</SessionToken>")[0],expiration:new Date(f.split("<Expiration>")[1].split("</Expiration>")[0])}];case 3:throw s=u.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}(),Ee="cwr_c",Yt="cwr_s",Jt="cwr_u",Zt=3e4,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)},Te=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(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Ce=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(u){return f([s,u])}}function f(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(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},fi=function(){function t(r){var e=this;this.ChainAnonymousCredentialsProvider=function(){return Te(e,void 0,void 0,function(){return Ce(this,function(o){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return Te(e,void 0,void 0,function(){var o=this;return Ce(this,function(i){return[2,new Promise(function(a,c){if(o.renewCredentials())return c();a(o.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return Te(e,void 0,void 0,function(){var o=this;return Ce(this,function(i){return[2,new Promise(function(a,c){var f;try{f=JSON.parse(localStorage.getItem(Ee))}catch{return c()}if(o.credentials=Se(Se({},f),{expiration:new Date(f.expiration)}),o.renewCredentials())return c();o.credentials=f,a(f)})]})})},this.AnonymousCognitoCredentialsProvider=function(){return Te(e,void 0,void 0,function(){var o=this;return Ce(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(Ee,JSON.stringify(a))}catch{}return a})]})})};var n=r.identityPoolId.split(":")[0];this.config=r,this.stsClient=new ui({fetchRequestHandler:new lt,region:n}),this.cognitoIdentityClient=new Kt({fetchRequestHandler:new lt,region:n})}return t.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var r=new Date(this.credentials.expiration.getTime()-Zt);return new Date>r},t}(),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(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}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(u){return f([s,u])}}function f(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(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},li=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 f;try{f=JSON.parse(localStorage.getItem(Ee))}catch{c()}if(f.expiration=new Date(f.expiration),o.credentials=f,o.renewCredentials())return c();o.credentials=f,a(f)})]})})},this.AnonymousCognitoCredentialsProvider=function(){return Ae(e,void 0,void 0,function(){var o,i=this;return Oe(this,function(a){return o=Qr({client:this.cognitoIdentityClient,identityPoolId:this.config.identityPoolId}),[2,o().then(function(c){i.credentials=c;try{localStorage.setItem(Ee,JSON.stringify(c))}catch{}return c})]})})};var n=r.identityPoolId.split(":")[0];this.config=r,this.cognitoIdentityClient=new Kt({fetchRequestHandler:new lt,region:n})}return t.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var r=new Date(this.credentials.expiration.getTime()-Zt);return new Date>r},t}(),H="com.amazon.rum",di="com.amazonaws.rum",Pe="".concat(H,".http_event"),Qt="".concat(H,".xray_trace_event"),hi="".concat(H,".largest_contentful_paint_event"),vi="".concat(H,".first_input_delay_event"),pi="".concat(H,".cumulative_layout_shift_event"),dt="".concat(H,".performance_navigation_event"),gi="".concat(H,".performance_resource_event"),mi="".concat(H,".dom_event"),yi="".concat(H,".js_error_event"),wi="".concat(H,".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=di,t}(),bi=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 Boolean(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}(),_i=function(){var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(r,e)};return function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),X=function(){return X=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},X.apply(this,arguments)},en="dom-event",Ei={interactionId:function(){return""},enableMutationObserver:!1,events:[]},Si=function(t){_i(r,t);function r(e){var n=t.call(this,en)||this;return n.enabled=!1,n.eventListenerMap=new Map,n.config=X(X({},Ei),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),f=X(X(X({version:"1.1.0",event:o.type,element:a.name},a.id?{elementId:a.id}:{}),c?{interactionId:c}:{}),e?{cssLocator:e}:{});!((i=n.context)===null||i===void 0)&&i.record&&n.context.record(mi,f)}},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 f=document.getElementById(e.elementId);f&&i.push(f)}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),Ti=function(t){var r=typeof t;return(r==="object"||r==="function")&&!!t},Ci=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},Ai=function(t,r){t.type!=="unhandledrejection"&&(t.type=r.toString()),t.message=r.toString()},Oi=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)},tn=function(t){return t!==Object(t)&&t!==void 0&&t!==null},ht=function(t,r){var e=Ci(t),n=t.error;return Ti(n)?Oi(e,n,r):tn(n)&&Ai(e,n),e},Pi=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)}}(),Ie=function(){return Ie=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},Ie.apply(this,arguments)},nn="js-error",Ii={stackTraceLength:200,ignore:function(){return!1}},Ri=function(t){Pi(r,t);function r(e){var n=t.call(this,nn)||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=Ie(Ie({},Ii),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(yi,ht(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),rn=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(Li(n).toUTCString())),i+="; Domain=".concat(e.domain),i+="; Path=".concat(e.path),i+="; SameSite=".concat(e.sameSite),i+=e.secure?"; Secure":"",document.cookie=i},Li=function(t){return new Date(new Date().getTime()+t*1e3)},on=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""},Re,ki=new Uint8Array(16);function Ni(){if(!Re&&(Re=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Re))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Re(ki)}var ji=/^(?:[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 Mi(t){return typeof t=="string"&&ji.test(t)}var an=Mi,O=[];for(U=0;U<256;++U)O.push((U+256).toString(16).substr(1));var U;function Hi(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=(O[t[r+0]]+O[t[r+1]]+O[t[r+2]]+O[t[r+3]]+"-"+O[t[r+4]]+O[t[r+5]]+"-"+O[t[r+6]]+O[t[r+7]]+"-"+O[t[r+8]]+O[t[r+9]]+"-"+O[t[r+10]]+O[t[r+11]]+O[t[r+12]]+O[t[r+13]]+O[t[r+14]]+O[t[r+15]]).toLowerCase();if(!an(e))throw TypeError("Stringified UUID is invalid");return e}var sn=Hi;function Ui(t){if(!an(t))throw TypeError("Invalid UUID");var r,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 xi=Ui;function Di(t){t=unescape(encodeURIComponent(t));for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e));return r}var qi="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Bi="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function cn(t,r,e){function n(o,i,a,c){if(typeof o=="string"&&(o=Di(o)),typeof i=="string"&&(i=xi(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var f=new Uint8Array(16+o.length);if(f.set(i),f.set(o,i.length),f=e(f),f[6]=f[6]&15|r,f[8]=f[8]&63|128,a){c=c||0;for(var s=0;s<16;++s)a[c+s]=f[s];return a}return sn(f)}try{n.name=t}catch{}return n.DNS=qi,n.URL=Bi,n}function Fi(t){if(typeof t=="string"){var r=unescape(encodeURIComponent(t));t=new Uint8Array(r.length);for(var e=0;e<r.length;++e)t[e]=r.charCodeAt(e)}return Vi(Gi(zi(t),t.length*8))}function Vi(t){for(var r=[],e=t.length*32,n="0123456789abcdef",o=0;o<e;o+=8){var 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 un(t){return(t+64>>>9<<4)+14+1}function Gi(t,r){t[r>>5]|=128<<r%32,t[un(r)-1]=r;for(var e=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<t.length;a+=16){var c=e,f=n,s=o,u=i;e=P(e,n,o,i,t[a],7,-680876936),i=P(i,e,n,o,t[a+1],12,-389564586),o=P(o,i,e,n,t[a+2],17,606105819),n=P(n,o,i,e,t[a+3],22,-1044525330),e=P(e,n,o,i,t[a+4],7,-176418897),i=P(i,e,n,o,t[a+5],12,1200080426),o=P(o,i,e,n,t[a+6],17,-1473231341),n=P(n,o,i,e,t[a+7],22,-45705983),e=P(e,n,o,i,t[a+8],7,1770035416),i=P(i,e,n,o,t[a+9],12,-1958414417),o=P(o,i,e,n,t[a+10],17,-42063),n=P(n,o,i,e,t[a+11],22,-1990404162),e=P(e,n,o,i,t[a+12],7,1804603682),i=P(i,e,n,o,t[a+13],12,-40341101),o=P(o,i,e,n,t[a+14],17,-1502002290),n=P(n,o,i,e,t[a+15],22,1236535329),e=I(e,n,o,i,t[a+1],5,-165796510),i=I(i,e,n,o,t[a+6],9,-1069501632),o=I(o,i,e,n,t[a+11],14,643717713),n=I(n,o,i,e,t[a],20,-373897302),e=I(e,n,o,i,t[a+5],5,-701558691),i=I(i,e,n,o,t[a+10],9,38016083),o=I(o,i,e,n,t[a+15],14,-660478335),n=I(n,o,i,e,t[a+4],20,-405537848),e=I(e,n,o,i,t[a+9],5,568446438),i=I(i,e,n,o,t[a+14],9,-1019803690),o=I(o,i,e,n,t[a+3],14,-187363961),n=I(n,o,i,e,t[a+8],20,1163531501),e=I(e,n,o,i,t[a+13],5,-1444681467),i=I(i,e,n,o,t[a+2],9,-51403784),o=I(o,i,e,n,t[a+7],14,1735328473),n=I(n,o,i,e,t[a+12],20,-1926607734),e=R(e,n,o,i,t[a+5],4,-378558),i=R(i,e,n,o,t[a+8],11,-2022574463),o=R(o,i,e,n,t[a+11],16,1839030562),n=R(n,o,i,e,t[a+14],23,-35309556),e=R(e,n,o,i,t[a+1],4,-1530992060),i=R(i,e,n,o,t[a+4],11,1272893353),o=R(o,i,e,n,t[a+7],16,-155497632),n=R(n,o,i,e,t[a+10],23,-1094730640),e=R(e,n,o,i,t[a+13],4,681279174),i=R(i,e,n,o,t[a],11,-358537222),o=R(o,i,e,n,t[a+3],16,-722521979),n=R(n,o,i,e,t[a+6],23,76029189),e=R(e,n,o,i,t[a+9],4,-640364487),i=R(i,e,n,o,t[a+12],11,-421815835),o=R(o,i,e,n,t[a+15],16,530742520),n=R(n,o,i,e,t[a+2],23,-995338651),e=L(e,n,o,i,t[a],6,-198630844),i=L(i,e,n,o,t[a+7],10,1126891415),o=L(o,i,e,n,t[a+14],15,-1416354905),n=L(n,o,i,e,t[a+5],21,-57434055),e=L(e,n,o,i,t[a+12],6,1700485571),i=L(i,e,n,o,t[a+3],10,-1894986606),o=L(o,i,e,n,t[a+10],15,-1051523),n=L(n,o,i,e,t[a+1],21,-2054922799),e=L(e,n,o,i,t[a+8],6,1873313359),i=L(i,e,n,o,t[a+15],10,-30611744),o=L(o,i,e,n,t[a+6],15,-1560198380),n=L(n,o,i,e,t[a+13],21,1309151649),e=L(e,n,o,i,t[a+4],6,-145523070),i=L(i,e,n,o,t[a+11],10,-1120210379),o=L(o,i,e,n,t[a+2],15,718787259),n=L(n,o,i,e,t[a+9],21,-343485551),e=q(e,c),n=q(n,f),o=q(o,s),i=q(i,u)}return[e,n,o,i]}function zi(t){if(t.length===0)return[];for(var r=t.length*8,e=new Uint32Array(un(r)),n=0;n<r;n+=8)e[n>>5]|=(t[n/8]&255)<<n%32;return e}function q(t,r){var e=(t&65535)+(r&65535),n=(t>>16)+(r>>16)+(e>>16);return n<<16|e&65535}function Xi(t,r){return t<<r|t>>>32-r}function Le(t,r,e,n,o,i){return q(Xi(q(q(r,t),q(n,i)),o),e)}function P(t,r,e,n,o,i,a){return Le(r&e|~r&n,t,r,o,i,a)}function I(t,r,e,n,o,i,a){return Le(r&n|e&~n,t,r,o,i,a)}function R(t,r,e,n,o,i,a){return Le(r^e^n,t,r,o,i,a)}function L(t,r,e,n,o,i,a){return Le(e^(r|~n),t,r,o,i,a)}var Wi=Fi;cn("v3",48,Wi);function $i(t,r,e){t=t||{};var n=t.random||(t.rng||Ni)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r){e=e||0;for(var o=0;o<16;++o)r[e+o]=n[o];return r}return sn(n)}var ue=$i;function Ki(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 vt(t,r){return t<<r|t>>>32-r}function Yi(t){var r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){var n=unescape(encodeURIComponent(t));t=[];for(var o=0;o<n.length;++o)t.push(n.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var i=t.length/4+2,a=Math.ceil(i/16),c=new Array(a),f=0;f<a;++f){for(var s=new Uint32Array(16),u=0;u<16;++u)s[u]=t[f*64+u*4]<<24|t[f*64+u*4+1]<<16|t[f*64+u*4+2]<<8|t[f*64+u*4+3];c[f]=s}c[a-1][14]=(t.length-1)*8/Math.pow(2,32),c[a-1][14]=Math.floor(c[a-1][14]),c[a-1][15]=(t.length-1)*8&4294967295;for(var l=0;l<a;++l){for(var d=new Uint32Array(80),v=0;v<16;++v)d[v]=c[l][v];for(var h=16;h<80;++h)d[h]=vt(d[h-3]^d[h-8]^d[h-14]^d[h-16],1);for(var p=e[0],g=e[1],T=e[2],A=e[3],m=e[4],y=0;y<80;++y){var k=Math.floor(y/20),D=vt(p,5)+Ki(k,g,T,A)+m+r[k]+d[y]>>>0;m=A,A=T,T=vt(g,30)>>>0,g=p,p=D}e[0]=e[0]+p>>>0,e[1]=e[1]+g>>>0,e[2]=e[2]+T>>>0,e[3]=e[3]+A>>>0,e[4]=e[4]+m>>>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 Ji=Yi;cn("v5",80,Ji);var Zi=it(hr()),ke=function(){return ke=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},ke.apply(this,arguments)},K="00000000-0000-0000-0000-000000000000",Ne="unknown",Qi="desktop",eo="web",to="com.amazon.rum.session_start_event",no=function(){function t(r,e,n,o){this.appMonitorDetails=r,this.config=e,this.record=n,this.pageManager=o,this.session={sessionId:K,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!==K&&!this.useCookies()?this.session={sessionId:K,record:this.sample(),eventCount:0,page:this.session.page}:this.session.sessionId===K&&this.useCookies()?this.createSession():this.session.sessionId!==K&&new Date>this.sessionExpiry&&this.createSession(),this.session},t.prototype.getAttributes=function(){return this.attributes},t.prototype.addSessionAttributes=function(r){this.attributes=ke(ke({},r),this.attributes)},t.prototype.getUserId=function(){return this.useCookies()?this.userId:K},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&&rn(this.sessionCookieName(),btoa(JSON.stringify(r)),this.config.cookieAttributes,void 0,e)},t.prototype.createOrRenewUserCookie=function(r,e){rn(Jt,r,this.config.cookieAttributes,void 0,e)},t.prototype.getUserIdCookie=function(){return on(Jt)},t.prototype.getSessionFromCookie=function(){if(this.useCookies()){var r=on(this.sessionCookieName());if(r&&atob)try{this.session=JSON.parse(atob(r)),this.pageManager.resumeSession(this.session.page.pageId,this.session.page.interaction)}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,to,{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 Zi.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:r.browser.name?r.browser.name:Ne,browserVersion:r.browser.version?r.browser.version:Ne,osName:r.os.name?r.os.name:Ne,osVersion:r.os.version?r.os.version:Ne,deviceType:r.device.type?r.device.type:Qi,platformType:eo,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(Yt,"_").concat(this.appMonitorDetails.id):Yt},t}(),je=it(vr()),ro=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)}}(),Me=function(t){ro(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=je.wrap.bind(je),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=je.unwrap.bind(je),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),io=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)}}(),oo=function(t){io(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(),f=a.target;f.removeEventListener("loadend",i.endTracking),i.removeXhr(f,c)},i.fetch=function(a,c,f){return a.apply(c,f).catch(function(s){throw s}).finally(i.decrementFetchCounter)},i.fetchWrapper=function(){var a=i;return function(c){return function(f,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(dt,n)},r}(Me),He=function(){return He=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},He.apply(this,arguments)},ao=function(){function t(r,e){this.TIMEOUT=1e3,this.config=r,this.record=e,this.page=void 0,this.resumed=void 0,this.recordInteraction=!1,this.virtualPageLoadTimer=new oo(this,r,e)}return t.prototype.getPage=function(){return this.page},t.prototype.getAttributes=function(){return this.attributes},t.prototype.resumeSession=function(r,e){this.recordInteraction=!0,this.resumed={pageId:r,interaction:e,start: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.resumed)this.createResumedPage(e,this.resumed);else if(!this.page)this.createLandingPage(e);else if(this.page.pageId!==e)this.createNextPage(this.page,e);else return;this.collectAttributes(this.page,typeof r=="object"?r:void 0),this.recordPageViewEvent(this.page)},t.prototype.createResumedPage=function(r,e){this.page={pageId:r,parentPageId:e.pageId,interaction:e.interaction+1,start:Date.now()},this.resumed=void 0},t.prototype.createNextPage=function(r,e){var n=Date.now(),o=this.virtualPageLoadTimer.latestInteractionTime;n-o<=this.TIMEOUT&&(n=o,this.virtualPageLoadTimer.startTiming()),this.page={pageId:e,parentPageId:r.pageId,interaction:r.interaction+1,start:n}},t.prototype.createLandingPage=function(r){this.page={pageId:r,interaction:0,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=He(He({},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},t.prototype.recordPageViewEvent=function(r){this.record(wi,this.createPageViewEvent(r))},t.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},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)},so=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"});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 ao(e,this.recordEvent),this.sessionManager=new no(r,e,this.recordSessionInitEvent,this.pageManager)}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}(),fn={};for(let t=0;t<256;t++){let r=t.toString(16).toLowerCase();r.length===1&&(r=`0${r}`),fn[t]=r}function W(t){let r="";for(let e=0;e<t.byteLength;e++)r+=fn[t[e]];return r}var ln=t=>{if(typeof t=="function")return t;const r=Promise.resolve(t);return()=>r},co="X-Amz-Algorithm",uo="X-Amz-Credential",dn="X-Amz-Date",fo="X-Amz-SignedHeaders",lo="X-Amz-Expires",hn="X-Amz-Signature",vn="X-Amz-Security-Token",pn="authorization",gn=dn.toLowerCase(),ho="date",vo=[pn,gn,ho],po=hn.toLowerCase(),pt="x-amz-content-sha256",go=vn.toLowerCase(),mo={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},yo=/^proxy-/,wo=/^sec-/,gt="AWS4-HMAC-SHA256",bo="AWS4-HMAC-SHA256-PAYLOAD",_o="UNSIGNED-PAYLOAD",Eo=50,mn="aws4_request",So=60*60*24*7,Ue={},mt=[],yt=(t,r,e)=>`${t}/${r}/${e}/${mn}`,To=async(t,r,e,n,o)=>{const i=await yn(t,r.secretAccessKey,r.accessKeyId),a=`${e}:${n}:${o}:${W(i)}:${r.sessionToken}`;if(a in Ue)return Ue[a];for(mt.push(a);mt.length>Eo;)delete Ue[mt.shift()];let c=`AWS4${r.secretAccessKey}`;for(const f of[e,n,o,mn])c=await yn(t,c,f);return Ue[a]=c},yn=(t,r,e)=>{const n=new t(r);return n.update(e),n.digest()},wn=({headers:t},r,e)=>{const n={};for(const o of Object.keys(t).sort()){if(t[o]==null)continue;const i=o.toLowerCase();(i in mo||r?.has(i)||yo.test(i)||wo.test(i))&&(!e||e&&!e.has(i))||(n[i]=t[o].trim().replace(/\s+/g," "))}return n},Co=({query:t={}})=>{const r=[],e={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===po)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("&")},Ao=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",wt=async({headers:t,body:r},e)=>{for(const n of Object.keys(t))if(n.toLowerCase()===pt)return t[n];if(r==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof r=="string"||ArrayBuffer.isView(r)||Ao(r)){const n=new e;return n.update(r),W(await n.digest())}return _o},Oo=(t,r)=>{t=t.toLowerCase();for(const e of Object.keys(r))if(t===e.toLowerCase())return!0;return!1},bn=({headers:t,query:r,...e})=>({...e,headers:{...t},query:r?Po(r):void 0}),Po=t=>Object.keys(t).reduce((r,e)=>{const n=t[e];return{...r,[e]:Array.isArray(n)?[...n]:n}},{}),Io=(t,r={})=>{const{headers:e,query:n={}}=typeof t.clone=="function"?t.clone():bn(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}},_n=t=>{t=typeof t.clone=="function"?t.clone():bn(t);for(const r of Object.keys(t.headers))vo.indexOf(r.toLowerCase())>-1&&delete t.headers[r];return t},Ro=t=>Lo(t).toISOString().replace(/\.\d{3}Z$/,"Z"),Lo=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,ko=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=ln(e),this.credentialProvider=ln(r)}async presign(t,r={}){const{signingDate:e=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:a,signingRegion:c,signingService:f}=r,s=await this.credentialProvider();this.validateResolvedCredentials(s);const u=c??await this.regionProvider(),{longDate:l,shortDate:d}=xe(e);if(n>So)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const v=yt(d,u,f??this.service),h=Io(_n(t),{unhoistableHeaders:i});s.sessionToken&&(h.query[vn]=s.sessionToken),h.query[co]=gt,h.query[uo]=`${s.accessKeyId}/${v}`,h.query[dn]=l,h.query[lo]=n.toString(10);const p=wn(h,o,a);return h.query[fo]=En(p),h.query[hn]=await this.getSignature(l,v,this.getSigningKey(s,u,d,f),this.createCanonicalRequest(h,p,await wt(t,this.sha256))),h}async sign(t,r){return typeof t=="string"?this.signString(t,r):t.headers&&t.payload?this.signEvent(t,r):this.signRequest(t,r)}async signEvent({headers:t,payload:r},{signingDate:e=new Date,priorSignature:n,signingRegion:o,signingService:i}){const a=o??await this.regionProvider(),{shortDate:c,longDate:f}=xe(e),s=yt(c,a,i??this.service),u=await wt({headers:{},body:r},this.sha256),l=new this.sha256;l.update(t);const d=W(await l.digest()),v=[bo,f,s,n,d,u].join(`
2
+ `);return this.signString(v,{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}=xe(r),c=new this.sha256(await this.getSigningKey(o,i,a,n));return c.update(t),W(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(),f=_n(t),{longDate:s,shortDate:u}=xe(r),l=yt(u,c,i??this.service);f.headers[gn]=s,a.sessionToken&&(f.headers[go]=a.sessionToken);const d=await wt(f,this.sha256);!Oo(pt,f.headers)&&this.applyChecksum&&(f.headers[pt]=d);const v=wn(f,n,e),h=await this.getSignature(s,l,this.getSigningKey(a,c,u,i),this.createCanonicalRequest(f,v,d));return f.headers[pn]=`${gt} Credential=${a.accessKeyId}/${l}, SignedHeaders=${En(v)}, Signature=${h}`,f}createCanonicalRequest(t,r,e){const n=Object.keys(r).sort();return`${t.method}
3
3
  ${this.getCanonicalPath(t)}
4
- ${Ji(t)}
5
- ${n.map(o=>`${o}:${i[o]}`).join(`
4
+ ${Co(t)}
5
+ ${n.map(o=>`${o}:${r[o]}`).join(`
6
6
  `)}
7
7
 
8
8
  ${n.join(";")}
9
- ${e}`}async createStringToSign(t,i,e){const n=new this.sha256;n.update(e);const o=await n.digest();return`${St}
9
+ ${e}`}async createStringToSign(t,r,e){const n=new this.sha256;n.update(e);const o=await n.digest();return`${gt}
10
10
  ${t}
11
- ${i}
12
- ${ue(o)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const i=[];for(const o of t.split("/"))o?.length!==0&&o!=="."&&(o===".."?i.pop():i.push(o));const e=`${t?.startsWith("/")?"/":""}${i.join("/")}${i.length>0&&t?.endsWith("/")?"/":""}`;return encodeURIComponent(e).replace(/%2F/g,"/")}return t}async getSignature(t,i,e,n){const o=await this.createStringToSign(t,i,n),r=new this.sha256(await e);return r.update(o),ue(await r.digest())}getSigningKey(t,i,e,n){return Yi(this.sha256,t,e,i,n||this.service)}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}},Qe=t=>{const i=no(t).replace(/[\-:]/g,"");return{longDate:i,shortDate:i.slice(0,8)}},bn=t=>Object.keys(t).sort().join(";"),_n=ht(mr()),he=function(){return he=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},he.apply(this,arguments)},et=function(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(f){try{s(n.next(f))}catch(l){a(l)}}function u(f){try{s(n.throw(f))}catch(l){a(l)}}function s(f){f.done?r(f.value):o(f.value).then(c,u)}s((n=n.apply(t,i||[])).next())})},tt=function(t,i){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,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&&(r=s[0]&2?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=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(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1],r=s;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(s);break}r[2]&&e.ops.pop(),e.trys.pop();continue}s=i.call(t,e)}catch(f){s=[6,f],o=0}finally{n=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},oo="rum",ao="POST",so="application/json",co="text/plain;charset=UTF-8",uo={expiresIn:60},fo=function(){function t(i){var e=this;this.sendFetch=function(n){return et(e,void 0,void 0,function(){var o,r,a;return tt(this,function(c){switch(c.label){case 0:return[4,this.getHttpRequestOptions(n,so)];case 1:return o=c.sent(),r=new Se(o),this.awsSigV4?[4,this.awsSigV4.sign(r)]:[3,3];case 2:r=c.sent(),c.label=3;case 3:return a=this.config.fetchRequestHandler.handle(r),[2,a]}})})},this.sendBeacon=function(n){return et(e,void 0,void 0,function(){var o,r,a;return tt(this,function(c){switch(c.label){case 0:return[4,this.getHttpRequestOptions(n,co)];case 1:return o=c.sent(),r=new Se(o),this.awsSigV4?[4,this.awsSigV4.presign(r,uo)]:[3,3];case 2:r=c.sent(),c.label=3;case 3:return a=this.config.beaconRequestHandler.handle(r),[2,a]}})})},this.getHttpRequestOptions=function(n,o){return et(e,void 0,void 0,function(){var r,a,c,u,s,f,l,d;return tt(this,function(p){switch(p.label){case 0:return r=JSON.stringify(lo(n)),a=this.config.endpoint.pathname.replace(/\/$/,""),c={method:ao,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:r},this.awsSigV4?(u=[he({},c)],l={},s=[he({},c.headers)],d={},f="X-Amz-Content-Sha256",[4,vo(r)]):[3,2];case 1:return[2,he.apply(void 0,u.concat([(l.headers=he.apply(void 0,s.concat([(d[f]=p.sent(),d)])),l)]))];case 2:return[2,c]}})})},this.config=i,i.credentials&&(this.awsSigV4=new io({applyChecksum:!0,credentials:i.credentials,region:i.region,service:oo,uriEscapePath:!0,sha256:_n.Sha256}))}return t}(),lo=function(t){var i=[];t.RumEvents.forEach(function(n){return i.push(ho(n))});var e={BatchId:t.BatchId,AppMonitorDetails:t.AppMonitorDetails,UserDetails:t.UserDetails,RumEvents:i};return e},ho=function(t){return{id:t.id,timestamp:Math.round(t.timestamp.getTime()/1e3),type:t.type,metadata:t.metadata,details:t.details}},vo=function(t){return et(void 0,void 0,void 0,function(){var i,e;return tt(this,function(n){switch(n.label){case 0:return i=new _n.Sha256,i.update(t),e=ue,[4,i.digest()];case 1:return[2,e.apply(void 0,[n.sent()]).toLowerCase()]}})})},po=function(){function t(){}return t.prototype.handle=function(i){var e=this.sendBeacon(i);return new Promise(function(n,o){e?n({response:new Te({statusCode:200})}):o()})},t.prototype.sendBeacon=function(i){var e=i.path;if(i.query){var n=mt(i.query);n&&(e+="?".concat(n))}var o=i.port,r="".concat(i.protocol,"//").concat(i.hostname).concat(o?":".concat(o):"").concat(e);return navigator.sendBeacon(r,i.body)},t}(),go=function(t){return t===void 0&&(t=0),new Promise(function(i,e){t&&setTimeout(function(){var n=new Error("Request did not complete within ".concat(t," ms"));n.name="TimeoutError",e(n)},t)})},mo=function(){function t(i){var e=i===void 0?{}:i,n=e.fetchFunction,o=e.requestTimeout;this.requestTimeout=o,this.fetchFunction=n}return t.prototype.destroy=function(){},t.prototype.handle=function(i,e){var n=e===void 0?{}:e,o=n.abortSignal,r=this.requestTimeout;if(o?.aborted){var a=new Error("Request aborted");return a.name="AbortError",Promise.reject(a)}var c=i.path;if(i.query){var u=mt(i.query);u&&(c+="?".concat(u))}var s=i.port,f=i.method,l="".concat(i.protocol,"//").concat(i.hostname).concat(s?":".concat(s):"").concat(c),d=f==="GET"||f==="HEAD"?void 0:i.body,p={body:d,headers:new Headers(i.headers),method:f};typeof AbortController<"u"&&(p.signal=o);var h=new Request(l,p),v=[this.fetchFunction.apply(window,[h]).then(function(m){for(var k=m.headers,M={},S=0,T=k.entries();S<T.length;S++){var x=T[S];M[x[0]]=x[1]}var K=m.body!==void 0;return K?{response:new Te({headers:M,statusCode:m.status,body:m.body})}:m.blob().then(function(fe){return{response:new Te({headers:M,statusCode:m.status,body:fe})}})}),go(r)];return o&&v.push(new Promise(function(m,k){o.onabort=function(){var M=new Error("Request aborted");M.name="AbortError",k(M)}})),Promise.race(v)},t}(),En=function(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(f){try{s(n.next(f))}catch(l){a(l)}}function u(f){try{s(n.throw(f))}catch(l){a(l)}}function s(f){f.done?r(f.value):o(f.value).then(c,u)}s((n=n.apply(t,i||[])).next())})},Sn=function(t,i){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,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&&(r=s[0]&2?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=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(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1],r=s;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(s);break}r[2]&&e.ops.pop(),e.trys.pop();continue}s=i.call(t,e)}catch(f){s=[6,f],o=0}finally{n=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},yo=function(){function t(i,e,n){n===void 0&&(n=function(o){return o*2e3}),this.isStatusCode2xx=function(o){return o>=200&&o<300},this.handler=i,this.retries=e,this.backoff=n}return t.prototype.handle=function(i){return En(this,void 0,void 0,function(){var e,n,o;return Sn(this,function(r){switch(r.label){case 0:e=this.retries,r.label=1;case 1:r.label=2;case 2:return r.trys.push([2,4,,6]),[4,this.handler.handle(i)];case 3:if(n=r.sent(),this.isStatusCode2xx(n.response.statusCode))return[2,n];throw new Error("".concat(n.response.statusCode));case 4:if(o=r.sent(),!e)throw o;return e--,[4,this.sleep(this.backoff(this.retries-e))];case 5:return r.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})},t.prototype.sleep=function(i){return En(this,void 0,void 0,function(){return Sn(this,function(e){return[2,new Promise(function(n){return setTimeout(n,i)})]})})},t}(),nt=function(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function c(f){try{s(n.next(f))}catch(l){a(l)}}function u(f){try{s(n.throw(f))}catch(l){a(l)}}function s(f){f.done?r(f.value):o(f.value).then(c,u)}s((n=n.apply(t,i||[])).next())})},rt=function(t,i){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,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&&(r=s[0]&2?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[s[0]&2,r.value]),s[0]){case 0:case 1:r=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(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1],r=s;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(s);break}r[2]&&e.ops.pop(),e.trys.pop();continue}s=i.call(t,e)}catch(f){s=[6,f],o=0}finally{n=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Tn="CWR: Cannot dispatch; no AWS credentials.",wo=function(){function t(i,e,n,o){var r=this;this.dispatchFetch=function(){return nt(r,void 0,void 0,function(){return rt(this,function(a){return this.doRequest()?[2,this.rum.sendFetch(this.createRequest()).catch(this.handleReject)]:[2]})})},this.dispatchBeacon=function(){return nt(r,void 0,void 0,function(){var a,c=this;return rt(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 nt(r,void 0,void 0,function(){return rt(this,function(a){return[2,this.dispatchFetch().catch(function(){})]})})},this.dispatchBeaconFailSilent=function(){return nt(r,void 0,void 0,function(){return rt(this,function(a){return[2,this.dispatchBeacon().catch(function(){})]})})},this.handleReject=function(a){throw r.disable(),a},this.defaultClientBuilder=function(a,c,u){return new fo({fetchRequestHandler:new yo(new mo({fetchFunction:r.config.fetchFunction}),r.config.retries),beaconRequestHandler:new po,endpoint:a,region:c,credentials:u})},this.region=i,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(Tn))},sendBeacon:function(){return Promise.reject(new Error(Tn))}}: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(i){this.rum=this.buildClient(this.endpoint,this.region,i),typeof i=="function"&&i()},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:Ae(),AppMonitorDetails:this.eventCache.getAppMonitorDetails(),UserDetails:this.eventCache.getUserDetails(),RumEvents:this.eventCache.getEventBatch()}},t}(),bo=function(){var t=function(i,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},t(i,e)};return function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_o="navigation",ve="navigation",Ot="load",Eo=function(t){bo(i,t);function i(){var e=t.call(this,_o)||this;return e.eventListener=function(){if(performance.getEntriesByType(ve).length===0)e.performanceNavigationEventHandlerTimingLevel1();else{var n=new PerformanceObserver(function(o){o.getEntries().forEach(function(r){r.entryType===ve&&e.performanceNavigationEventHandlerTimingLevel2(r)})});n.observe({entryTypes:[ve]})}},e.performanceNavigationEventHandlerTimingLevel1=function(){var n=function(){var o,r=performance.timing,a=r.navigationStart,c={version:"1.0.0",initiatorType:"navigation",startTime:0,unloadEventStart:r.unloadEventStart>0?r.unloadEventStart-a:0,promptForUnload:r.unloadEventEnd-r.unloadEventStart,redirectStart:r.redirectStart>0?r.redirectStart-a:0,redirectTime:r.redirectEnd-r.redirectStart,fetchStart:r.fetchStart>0?r.fetchStart-a:0,domainLookupStart:r.domainLookupStart>0?r.domainLookupStart-a:0,dns:r.domainLookupEnd-r.domainLookupStart,connectStart:r.connectStart>0?r.connectStart-a:0,connect:r.connectEnd-r.connectStart,secureConnectionStart:r.secureConnectionStart>0?r.secureConnectionStart-a:0,tlsTime:r.secureConnectionStart>0?r.connectEnd-r.secureConnectionStart:0,requestStart:r.requestStart>0?r.requestStart-a:0,timeToFirstByte:r.responseStart-r.requestStart,responseStart:r.responseStart>0?r.responseStart-a:0,responseTime:r.responseStart>0?r.responseEnd-r.responseStart:0,domInteractive:r.domInteractive>0?r.domInteractive-a:0,domContentLoadedEventStart:r.domContentLoadedEventStart>0?r.domContentLoadedEventStart-a:0,domContentLoaded:r.domContentLoadedEventEnd-r.domContentLoadedEventStart,domComplete:r.domComplete>0?r.domComplete-a:0,domProcessingTime:r.loadEventStart-r.responseEnd,loadEventStart:r.loadEventStart>0?r.loadEventStart-a:0,loadEventTime:r.loadEventEnd-r.loadEventStart,duration:r.loadEventEnd-r.navigationStart,navigationTimingLevel:1};!((o=e.context)===null||o===void 0)&&o.record&&e.context.record(wt,c)};setTimeout(n,0)},e.performanceNavigationEventHandlerTimingLevel2=function(n){var o,r={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(wt,r)},e}return i.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(Ot,this.eventListener))},i.prototype.disable=function(){!this.enabled||(this.enabled=!1,this.eventListener&&window.removeEventListener(Ot,this.eventListener))},i.prototype.hasTheWindowLoadEventFired=function(){if(window.performance&&window.performance.getEntriesByType(ve).length){var e=window.performance.getEntriesByType(ve)[0];return Boolean(e.loadEventEnd)}return!1},i.prototype.onload=function(){if(this.enabled)if(this.hasTheWindowLoadEventFired()){var e=window.performance.getEntriesByType(ve)[0];this.performanceNavigationEventHandlerTimingLevel2(e)}else window.addEventListener(Ot,this.eventListener)},i}(se),X;(function(t){t.OTHER="other",t.STYLESHEET="stylesheet",t.DOCUMENT="document",t.SCRIPT="script",t.IMAGE="image",t.FONT="font"})(X||(X={}));var So=[{name:X.STYLESHEET,list:["css","less"]},{name:X.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:X.SCRIPT,list:["js"]},{name:X.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:X.FONT,list:["fnt","fon","otf","ttf","woff"]}],Cn=function(t){for(var i=t.length-1;i>0;i--){var e=Math.floor(Math.random()*(i+1)),n=t[i];t[i]=t[e],t[e]=n}},Pt=function(t){var i=t.substring(t.lastIndexOf("/")+1),e=i.substring(i.lastIndexOf(".")+1).split(/[?#]/)[0],n=X.OTHER;return So.forEach(function(o){o.list.indexOf(e)>-1&&(n=o.name)}),n},To=function(){var t=function(i,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},t(i,e)};return function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),it=function(){return it=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},it.apply(this,arguments)},Co="resource",It="resource",Rt="load",Ao={eventLimit:10,recordAllTypes:[X.DOCUMENT,X.SCRIPT],sampleTypes:[X.STYLESHEET,X.IMAGE,X.FONT,X.OTHER]},Oo=function(t){To(i,t);function i(e){var n=t.call(this,Co)||this;return n.resourceEventListener=function(o){var r=[],a=[],c=0,u=new PerformanceObserver(function(f){f.getEntries().filter(function(l){return l.entryType===It}).forEach(function(l){var d=Pt(l.name);n.config.recordAllTypes.includes(d)?r.push(l):n.config.sampleTypes.includes(d)&&a.push(l)})});u.observe({entryTypes:[It]});var s=performance.getEntriesByType(It);for(s!==void 0&&s.length>0&&s.forEach(function(f){var l=Pt(f.name);n.config.recordAllTypes.includes(l)?r.push(f):n.config.sampleTypes.includes(l)&&a.push(f)}),Cn(r);r.length>0&&c<n.config.eventLimit;)n.recordResourceEvent(r.pop()),c++;for(Cn(a);a.length>0&&c<n.config.eventLimit;)n.recordResourceEvent(a.pop()),c++},n.recordResourceEvent=function(o){var r,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))&&!((r=n.context)===null||r===void 0)&&r.record){var u={version:"1.0.0",initiatorType:o.initiatorType,duration:o.duration,fileType:Pt(o.name),transferSize:o.transferSize};n.context.config.recordResourceUrl&&(u.targetUrl=o.name),n.context.record(Vr,u)}},n.config=it(it({},Ao),e),n}return i.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(Rt,this.resourceEventListener))},i.prototype.disable=function(){!this.enabled||(this.enabled=!1,this.resourceEventListener&&window.removeEventListener(Rt,this.resourceEventListener))},i.prototype.onload=function(){window.addEventListener(Rt,this.resourceEventListener)},i}(se),re,Pe,An,ot,On=-1,Ie=function(t){addEventListener("pageshow",function(i){i.persisted&&(On=i.timeStamp,t(i))},!0)},Pn=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Lt=function(){var t=Pn();return t&&t.activationStart||0},ie=function(t,i){var e=Pn(),n="navigate";return On>=0?n="back-forward-cache":e&&(n=document.prerendering||Lt()>0?"prerender":e.type.replace(/_/g,"-")),{name:t,value:i===void 0?-1:i,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},at=function(t,i,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver(function(o){i(o.getEntries())});return n.observe(Object.assign({type:t,buffered:!0},e||{})),n}}catch{}},st=function(t,i){var e=function n(o){o.type!=="pagehide"&&document.visibilityState!=="hidden"||(t(o),i&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},oe=function(t,i,e,n){var o,r;return function(a){i.value>=0&&(a||n)&&((r=i.value-(o||0))||o===void 0)&&(o=i.value,i.delta=r,i.rating=function(c,u){return c>u[1]?"poor":c>u[0]?"needs-improvement":"good"}(i.value,e),t(i))}},Re=-1,In=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Rn=function(){st(function(t){var i=t.timeStamp;Re=i},!0)},kt=function(){return Re<0&&(Re=In(),Rn(),Ie(function(){setTimeout(function(){Re=In(),Rn()},0)})),{get firstHiddenTime(){return Re}}},Po=function(t,i){i=i||{};var e,n=[1800,3e3],o=kt(),r=ie("FCP"),a=function(s){s.forEach(function(f){f.name==="first-contentful-paint"&&(u&&u.disconnect(),f.startTime<o.firstHiddenTime&&(r.value=f.startTime-Lt(),r.entries.push(f),e(!0)))})},c=window.performance&&window.performance.getEntriesByName&&window.performance.getEntriesByName("first-contentful-paint")[0],u=c?null:at("paint",a);(c||u)&&(e=oe(t,r,n,i.reportAllChanges),c&&a([c]),Ie(function(s){r=ie("FCP"),e=oe(t,r,n,i.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){r.value=performance.now()-s.timeStamp,e(!0)})})}))},Ln=!1,Nt=-1,Io=function(t,i){i=i||{};var e=[.1,.25];Ln||(Po(function(f){Nt=f.value}),Ln=!0);var n,o=function(f){Nt>-1&&t(f)},r=ie("CLS",0),a=0,c=[],u=function(f){f.forEach(function(l){if(!l.hadRecentInput){var d=c[0],p=c[c.length-1];a&&l.startTime-p.startTime<1e3&&l.startTime-d.startTime<5e3?(a+=l.value,c.push(l)):(a=l.value,c=[l]),a>r.value&&(r.value=a,r.entries=c,n())}})},s=at("layout-shift",u);s&&(n=oe(o,r,e,i.reportAllChanges),st(function(){u(s.takeRecords()),n(!0)}),Ie(function(){a=0,Nt=-1,r=ie("CLS",0),n=oe(o,r,e,i.reportAllChanges)}))},Le={passive:!0,capture:!0},Ro=new Date,kn=function(t,i){re||(re=i,Pe=t,An=new Date,jn(removeEventListener),Nn())},Nn=function(){if(Pe>=0&&Pe<An-Ro){var t={entryType:"first-input",name:re.type,target:re.target,cancelable:re.cancelable,startTime:re.timeStamp,processingStart:re.timeStamp+Pe};ot.forEach(function(i){i(t)}),ot=[]}},Lo=function(t){if(t.cancelable){var i=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;t.type=="pointerdown"?function(e,n){var o=function(){kn(e,n),a()},r=function(){a()},a=function(){removeEventListener("pointerup",o,Le),removeEventListener("pointercancel",r,Le)};addEventListener("pointerup",o,Le),addEventListener("pointercancel",r,Le)}(i,t):kn(i,t)}},jn=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(i){return t(i,Lo,Le)})},ko=function(t,i){i=i||{};var e,n=[100,300],o=kt(),r=ie("FID"),a=function(s){s.startTime<o.firstHiddenTime&&(r.value=s.processingStart-s.startTime,r.entries.push(s),e(!0))},c=function(s){s.forEach(a)},u=at("first-input",c);e=oe(t,r,n,i.reportAllChanges),u&&st(function(){c(u.takeRecords()),u.disconnect()},!0),u&&Ie(function(){var s;r=ie("FID"),e=oe(t,r,n,i.reportAllChanges),ot=[],Pe=-1,re=null,jn(addEventListener),s=a,ot.push(s),Nn()})},jt={},No=function(t,i){i=i||{};var e,n=[2500,4e3],o=kt(),r=ie("LCP"),a=function(s){var f=s[s.length-1];if(f){var l=f.startTime-Lt();l<o.firstHiddenTime&&(r.value=l,r.entries=[f],e())}},c=at("largest-contentful-paint",a);if(c){e=oe(t,r,n,i.reportAllChanges);var u=function(){jt[r.id]||(a(c.takeRecords()),c.disconnect(),jt[r.id]=!0,e(!0))};["keydown","click"].forEach(function(s){addEventListener(s,u,{once:!0,capture:!0})}),st(u,!0),Ie(function(s){r=ie("LCP"),e=oe(t,r,n,i.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){r.value=performance.now()-s.timeStamp,jt[r.id]=!0,e(!0)})})})}},jo=function(){var t=function(i,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},t(i,e)};return function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Mo="web-vitals",Ho=function(t){jo(i,t);function i(){return t.call(this,Mo)||this}return i.prototype.enable=function(){},i.prototype.disable=function(){},i.prototype.configure=function(e){},i.prototype.getWebVitalData=function(e,n){var o,r={version:"1.0.0",value:e.value};(o=this.context)===null||o===void 0||o.record(n,r)},i.prototype.onload=function(){var e=this;No(function(n){return e.getWebVitalData(n,qr)}),ko(function(n){return e.getWebVitalData(n,Br)}),Io(function(n){return e.getWebVitalData(n,Fr)})},i}(se),Mn=function(t){if(crypto)return crypto.getRandomValues(t);if(msCrypto)return msCrypto.getRandomValues(t);throw new Error("No crypto library found.")},Hn=[];for(Z=0;Z<256;Z++)Hn[Z]=(Z+256).toString(16).substr(1);var Z,Mt="X-Amzn-Trace-Id",Un={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},xn=function(t){return Math.floor(t/100)===4},Dn=function(t){return Math.floor(t/100)===5},qn=function(t){return t===429},Bn=function(t,i){var e=i.urlsToInclude.some(function(o){return o.test(t)}),n=i.urlsToExclude.some(function(o){return o.test(t)});return e&&!n},pe=function(){return Date.now()/1e3},Uo=function(t,i,e){var n={request:{}};return n.request.method=i?.method?i.method:"GET",n.request.traced=e,n.request.url=Ut(t),n},Fn=function(t,i,e){var n={version:"1.0.0",name:t,origin:"AWS::RUM::AppMonitor",id:zn(),start_time:i,trace_id:qo(),end_time:void 0,subsegments:[],in_progress:!1};return e&&(n.http=e),n},Vn=function(t,i,e){var n={id:zn(),name:t,start_time:i,end_time:void 0,in_progress:!1,namespace:t.endsWith("amazonaws.com")?"aws":"remote"};return e&&(n.http=e),n},Gn=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}},xo=function(t,i,e){t.headers||(t.headers={}),t.headers[Mt]=Ht(i,e)},Do=function(t,i,e){t.set(Mt,Ht(i,e))},Ht=function(t,i){return"Root="+t+";Parent="+i+";Sampled=1"},Ut=function(t){return t.url?t.url:t.toString()},qo=function(){return"1-".concat(Bo(),"-").concat(Fo())},zn=function(){var t=new Uint8Array(8);return Mn(t),Xn(t)},Bo=function(){return Math.floor(Date.now()/1e3).toString(16)},Fo=function(){var t=new Uint8Array(12);return Mn(t),Xn(t)},Xn=function(t){for(var i="",e=0;e<t.length;e++)i+=Hn[t[e]];return i},Vo=function(){var t=function(i,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},t(i,e)};return function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Go=function(t){Vo(i,t);function i(e){var n=t.call(this,e)||this;return n.name="XMLHttpRequest error",n}return i}(Error),zo=function(){var t=function(i,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},t(i,e)};return function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ct=function(){return ct=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},ct.apply(this,arguments)},Xo="xhr",Wo=function(t){zo(i,t);function i(e){var n=t.call(this,Xo)||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 r=o.target,a=n.xhrMap.get(r);if(a){var c=pe();a.trace.end_time=c,a.trace.subsegments[0].end_time=c,a.trace.subsegments[0].http.response={status:r.status},qn(r.status)?(a.trace.subsegments[0].throttle=!0,a.trace.throttle=!0):xn(r.status)?(a.trace.subsegments[0].error=!0,a.trace.error=!0):Dn(r.status)&&(a.trace.subsegments[0].fault=!0,a.trace.fault=!0);var u=r.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,r)}},n.handleXhrErrorEvent=function(o){var r=o.target,a=n.xhrMap.get(r),c="XMLHttpRequest error",u=r.statusText?r.status.toString()+": "+r.statusText:r.status.toString();if(a){var s=pe();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 Go(u))}},n.handleXhrAbortEvent=function(o){var r=o.target,a=n.xhrMap.get(r),c="XMLHttpRequest abort";n.handleXhrDetailsOnError(a,c)},n.handleXhrTimeoutEvent=function(o){var r=o.target,a=n.xhrMap.get(r),c="XMLHttpRequest timeout";n.handleXhrDetailsOnError(a,c)},n.initializeTrace=function(o){var r=pe();o.trace=Fn(n.config.logicalServiceName,r),o.trace.subsegments.push(Vn(Gn(o.url),r,{request:{method:o.method,url:o.url,traced:!0}}))},n.sendWrapper=function(){var o=n;return function(r){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,Ht(a.trace.trace_id,a.trace.subsegments[0].id))),r.apply(this,arguments)}}},n.openWrapper=function(){var o=n;return function(r){return function(a,c,u){return Bn(c,o.config)&&o.xhrMap.set(this,{url:c,method:a,async:u}),r.apply(this,arguments)}}},n.config=ct(ct({},Un),e),n.xhrMap=new Map,n}return i.prototype.onload=function(){this.enable()},Object.defineProperty(i.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}),i.prototype.handleXhrDetailsOnError=function(e,n){if(e){var o=pe();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)}},i.prototype.statusOk=function(e){return e>=200&&e<300},i.prototype.recordHttpEventWithResponse=function(e,n){(this.config.recordAllRequests||!this.statusOk(n.status))&&this.context.record(Ve,{version:"1.0.0",request:{method:e.method,url:e.url},response:{status:n.status,statusText:n.statusText}})},i.prototype.recordHttpEventWithError=function(e,n){var o={version:"1.0.0",request:{method:e.method,url:e.url}};o.error=bt({type:"error",error:n},this.config.stackTraceLength),this.context.record(Ve,o)},i.prototype.recordTraceEvent=function(e){this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(Jt,e)},i}(Ye),$o=function(){var t=function(i,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},t(i,e)};return function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ut=function(){return ut=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},ut.apply(this,arguments)},Ko="fetch",Yo=function(t){$o(i,t);function i(e){var n=t.call(this,Ko)||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,r,a){var c=pe(),u=Uo(o,r,!0),s=Fn(n.config.logicalServiceName,c),f=Vn(Gn(o),c,u);return s.subsegments.push(f),n.config.addXRayTraceIdHeader&&n.addXRayTraceIdHeader(o,r,a,s),s},n.addXRayTraceIdHeader=function(o,r,a,c){if(o.headers)return Do(o.headers,c.trace_id,c.subsegments[0].id);r||(r={},[].push.call(a,r)),xo(r,c.trace_id,c.subsegments[0].id)},n.endTrace=function(o,r,a){if(o){var c=pe();if(o.subsegments[0].end_time=c,o.end_time=c,r){o.subsegments[0].http.response={status:r.status},qn(r.status)?(o.subsegments[0].throttle=!0,o.throttle=!0):xn(r.status)?(o.subsegments[0].error=!0,o.error=!0):Dn(r.status)&&(o.subsegments[0].fault=!0,o.fault=!0);var u=r.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):Qt(a)&&n.appendErrorCauseFromPrimitive(o.subsegments[0],a.toString())),n.context.record(Jt,o)}},n.createHttpEvent=function(o,r){var a=o;return{version:"1.0.0",request:{url:Ut(o),method:r?.method?r.method:a.method?a.method:"GET"}}},n.recordHttpEventWithResponse=function(o,r){(n.config.recordAllRequests||!r.ok)&&(o.response={status:r.status,statusText:r.statusText},n.context.record(Ve,o))},n.recordHttpEventWithError=function(o,r){o.error=bt({type:"error",error:r},n.config.stackTraceLength),n.context.record(Ve,o)},n.fetch=function(o,r,a,c,u){var s=n.createHttpEvent(c,u),f;return Bn(Ut(c),n.config)?(n.isTracingEnabled()&&n.isSessionRecorded()&&(f=n.beginTrace(c,u,a)),o.apply(r,a).then(function(l){return n.endTrace(f,l,void 0),n.recordHttpEventWithResponse(s,l),l}).catch(function(l){throw n.endTrace(f,void 0,l),n.recordHttpEventWithError(s,l),l})):o.apply(r,a)},n.fetchWrapper=function(){var o=n;return function(r){return function(a,c){return o.fetch(r,this,arguments,a,c)}}},n.config=ut(ut({},Un),e),n}return Object.defineProperty(i.prototype,"patches",{get:function(){return[{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),i.prototype.onload=function(){this.enable()},i.prototype.appendErrorCauseFromPrimitive=function(e,n){e.cause={exceptions:[{type:n}]}},i.prototype.appendErrorCauseFromObject=function(e,n){e.cause={exceptions:[{type:n.name,message:n.message}]}},i}(Ye),Jo=function(){var t=function(i,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])},t(i,e)};return function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Zo="page-view",Qo=function(t){Jo(i,t);function i(){var e=t.call(this,Zo)||this;return e.pushState=function(){var n=e;return function(o){return function(r,a,c){var u=o.apply(this,arguments);return n.recordPageView(),u}}},e.replaceState=function(){var n=e;return function(o){return function(r,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 i.prototype.onload=function(){this.addListener(),this.recordPageView()},Object.defineProperty(i.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}),i.prototype.addListener=function(){window.addEventListener("popstate",this.popstateListener)},i.prototype.createIdForCurrentPage=function(){var e=window.location.pathname,n=window.location.hash;switch(this.context.config.pageIdFormat){case we.PathAndHash:return e&&n?e+n:e||n||"";case we.Hash:return n||"";case we.Path:default:return e||""}},i}(Ye),ge=function(){return ge=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},ge.apply(this,arguments)},ea=function(t,i){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&i.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++)i.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e},me=function(t,i,e){if(e||arguments.length===2)for(var n=0,o=i.length,r;n<o;n++)(r||!(n in i))&&(r||(r=Array.prototype.slice.call(i,0,n)),r[n]=i[n]);return t.concat(r||Array.prototype.slice.call(i))},Wn="us-west-2",xt="https://dataplane.rum.".concat(Wn,".amazonaws.com"),ye;(function(t){t.Errors="errors",t.Performance="performance",t.Interaction="interaction",t.Http="http"})(ye||(ye={}));var we;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(we||(we={}));var ta=function(){return{unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}},na=function(t){return{allowCookies:!1,batchLimit:100,cookieAttributes:t,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:xt,endpointUrl:new URL(xt),eventCacheSize:200,eventPluginsToLoad:[],pageIdFormat:we.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}},ra=function(){function t(i,e,n,o){o===void 0&&(o={});var r=o.cookieAttributes,a=ea(o,["cookieAttributes"]);typeof n>"u"&&(n="us-west-2");var c=ge(ge({},ta()),r);this.config=ge(ge({fetchFunction:fetch},na(c)),a),this.config.endpoint=this.getDataPlaneEndpoint(n,a),this.config.endpointUrl=new URL(this.config.endpoint),this.eventCache=this.initEventCache(i,e),this.dispatchManager=this.initDispatch(n),this.pluginManager=this.initPluginManager(i,e),this.config.enableRumClient?this.enable():this.disable()}return t.prototype.setAwsCredentials=function(i){this.dispatchManager.setAwsCredentials(i)},t.prototype.addSessionAttributes=function(i){this.eventCache.addSessionAttributes(i)},t.prototype.addPlugin=function(i){this.pluginManager.addPlugin(i)},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(i){this.config.allowCookies=i},t.prototype.recordPageView=function(i){this.eventCache.recordPageView(i)},t.prototype.recordError=function(i){this.pluginManager.record(en,i)},t.prototype.registerDomEvents=function(i){this.pluginManager.updatePlugin(Zt,i)},t.prototype.recordEvent=function(i,e){this.eventCache.recordEvent(i,e)},t.prototype.initEventCache=function(i,e){return new ji({id:i,version:e},this.config)},t.prototype.initDispatch=function(i){var e=new wo(i,this.config.endpointUrl,this.eventCache,this.config);return this.config.identityPoolId&&this.config.guestRoleArn?e.setAwsCredentials(new Ur(this.config).ChainAnonymousCredentialsProvider):this.config.identityPoolId&&e.setAwsCredentials(new xr(this.config).ChainAnonymousCredentialsProvider),e},t.prototype.initPluginManager=function(i,e){var n=this.constructBuiltinPlugins(),o=me(me([],n,!0),this.config.eventPluginsToLoad,!0),r={applicationId:i,applicationVersion:e,config:this.config,record:this.eventCache.recordEvent,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession},a=new Wr(r);return this.config.disableAutoPageView||a.addPlugin(new Qo),o.forEach(function(c){a.addPlugin(c)}),a},t.prototype.constructBuiltinPlugins=function(){var i=[],e=this.telemetryFunctor();return this.config.telemetries.forEach(function(n){typeof n=="string"&&e[n.toLowerCase()]?i=me(me([],i,!0),e[n.toLowerCase()]({}),!0):Array.isArray(n)&&e[n[0].toLowerCase()]&&(i=me(me([],i,!0),e[n[0].toLowerCase()](n[1]),!0))}),i},t.prototype.getDataPlaneEndpoint=function(i,e){return e.endpoint?e.endpoint:xt.replace(Wn,i)},t.prototype.telemetryFunctor=function(){var i;return i={},i[ye.Errors]=function(e){return[new ri(e)]},i[ye.Performance]=function(e){return[new Eo,new Oo(e),new Ho]},i[ye.Interaction]=function(e){return[new Yr(e)]},i[ye.Http]=function(e){return[new Wo(e),new Yo(e)]},i},t}();try{window.awsRum=new ra(window.awsRumVariables.APPLICATION_ID,window.awsRumVariables.APPLICATION_VERSION,window.awsRumVariables.APPLICATION_REGION,window.awsRumVariables.config)}catch{}})();
11
+ ${r}
12
+ ${W(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(o),W(await i.digest())}getSigningKey(t,r,e,n){return To(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")}},xe=t=>{const r=Ro(t).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}},En=t=>Object.keys(t).sort().join(";"),Sn=it(Gr()),Y=function(){return Y=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Y.apply(this,arguments)},De=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(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},qe=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(u){return f([s,u])}}function f(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(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},No="rum",jo="POST",Mo="application/json",Ho="text/plain;charset=UTF-8",Uo={expiresIn:60},xo=function(){function t(r){var e=this;this.sendFetch=function(n){return De(e,void 0,void 0,function(){var o,i,a;return qe(this,function(c){switch(c.label){case 0:return[4,this.getHttpRequestOptions(n,Mo)];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 De(e,void 0,void 0,function(){var o,i,a;return qe(this,function(c){switch(c.label){case 0:return[4,this.getHttpRequestOptions(n,Ho)];case 1:return o=c.sent(),i=new ae(o),this.awsSigV4?[4,this.awsSigV4.presign(i,Uo)]:[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 De(e,void 0,void 0,function(){var i,a,c,f,s,u,l,d;return qe(this,function(v){switch(v.label){case 0:return i=JSON.stringify(Do(n)),a=this.config.endpoint.pathname.replace(/\/$/,""),c={method:jo,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?(f=[Y({},c)],l={},s=[Y({},c.headers)],d={},u="X-Amz-Content-Sha256",[4,Bo(i)]):[3,2];case 1:return[2,Y.apply(void 0,f.concat([(l.headers=Y.apply(void 0,s.concat([(d[u]=v.sent(),d)])),l)]))];case 2:return[2,c]}})})},this.config=r,r.credentials&&(this.awsSigV4=new ko({applyChecksum:!0,credentials:r.credentials,region:r.region,service:No,uriEscapePath:!0,sha256:Sn.Sha256}))}return t}(),Do=function(t){var r=[];t.RumEvents.forEach(function(n){return r.push(qo(n))});var e={BatchId:t.BatchId,AppMonitorDetails:t.AppMonitorDetails,UserDetails:t.UserDetails,RumEvents:r};return e},qo=function(t){return{id:t.id,timestamp:Math.round(t.timestamp.getTime()/1e3),type:t.type,metadata:t.metadata,details:t.details}},Bo=function(t){return De(void 0,void 0,void 0,function(){var r,e;return qe(this,function(n){switch(n.label){case 0:return r=new Sn.Sha256,r.update(t),e=W,[4,r.digest()];case 1:return[2,e.apply(void 0,[n.sent()]).toLowerCase()]}})})},Fo=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=ft(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}(),Vo=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)})},Go=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 f=ft(r.query);f&&(c+="?".concat(f))}var s=r.port,u=r.method,l="".concat(r.protocol,"//").concat(r.hostname).concat(s?":".concat(s):"").concat(c),d=u==="GET"||u==="HEAD"?void 0:r.body,v={body:d,headers:new Headers(r.headers),method:u};typeof AbortController<"u"&&(v.signal=o);var h=new Request(l,v),p=[this.fetchFunction.apply(window,[h]).then(function(g){for(var T=g.headers,A={},m=0,y=T.entries();m<y.length;m++){var k=y[m];A[k[0]]=k[1]}var D=g.body!==void 0;return D?{response:new se({headers:A,statusCode:g.status,body:g.body})}:g.blob().then(function(Ke){return{response:new se({headers:A,statusCode:g.status,body:Ke})}})}),Vo(i)];return o&&p.push(new Promise(function(g,T){o.onabort=function(){var A=new Error("Request aborted");A.name="AbortError",T(A)}})),Promise.race(p)},t}(),Tn=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(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Cn=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(u){return f([s,u])}}function f(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(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},zo=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 Tn(this,void 0,void 0,function(){var e,n,o;return Cn(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 Tn(this,void 0,void 0,function(){return Cn(this,function(e){return[2,new Promise(function(n){return setTimeout(n,r)})]})})},t}(),Be=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(u){try{s(n.next(u))}catch(l){a(l)}}function f(u){try{s(n.throw(u))}catch(l){a(l)}}function s(u){u.done?i(u.value):o(u.value).then(c,f)}s((n=n.apply(t,r||[])).next())})},Fe=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(u){return f([s,u])}}function f(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(u){s=[6,u],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},An="CWR: Cannot dispatch; no AWS credentials.",Xo=function(){function t(r,e,n,o){var i=this;this.dispatchFetch=function(){return Be(i,void 0,void 0,function(){return Fe(this,function(a){return this.doRequest()?[2,this.rum.sendFetch(this.createRequest()).catch(this.handleReject)]:[2]})})},this.dispatchBeacon=function(){return Be(i,void 0,void 0,function(){var a,c=this;return Fe(this,function(f){return this.doRequest()?(a=this.createRequest(),[2,this.rum.sendBeacon(a).catch(function(){return c.rum.sendFetch(a)})]):[2]})})},this.dispatchFetchFailSilent=function(){return Be(i,void 0,void 0,function(){return Fe(this,function(a){return[2,this.dispatchFetch().catch(function(){})]})})},this.dispatchBeaconFailSilent=function(){return Be(i,void 0,void 0,function(){return Fe(this,function(a){return[2,this.dispatchBeacon().catch(function(){})]})})},this.handleReject=function(a){throw i.disable(),a},this.defaultClientBuilder=function(a,c,f){return new xo({fetchRequestHandler:new zo(new Go({fetchFunction:i.config.fetchFunction}),i.config.retries),beaconRequestHandler:new Fo,endpoint:a,region:c,credentials:f})},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(An))},sendBeacon:function(){return Promise.reject(new Error(An))}}: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}(),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)}}(),$o="navigation",J="navigation",bt="load",Ko=function(t){Wo(r,t);function r(){var e=t.call(this,$o)||this;return e.eventListener=function(){if(performance.getEntriesByType(J).length===0)e.performanceNavigationEventHandlerTimingLevel1();else{var n=new PerformanceObserver(function(o){o.getEntries().forEach(function(i){i.entryType===J&&e.performanceNavigationEventHandlerTimingLevel2(i)})});n.observe({entryTypes:[J]})}},e.performanceNavigationEventHandlerTimingLevel1=function(){var n=function(){var o,i=performance.timing,a=i.navigationStart,c={version:"1.0.0",initiatorType:"navigation",startTime:0,unloadEventStart:i.unloadEventStart>0?i.unloadEventStart-a:0,promptForUnload:i.unloadEventEnd-i.unloadEventStart,redirectStart:i.redirectStart>0?i.redirectStart-a:0,redirectTime:i.redirectEnd-i.redirectStart,fetchStart:i.fetchStart>0?i.fetchStart-a:0,domainLookupStart:i.domainLookupStart>0?i.domainLookupStart-a:0,dns:i.domainLookupEnd-i.domainLookupStart,connectStart:i.connectStart>0?i.connectStart-a:0,connect:i.connectEnd-i.connectStart,secureConnectionStart:i.secureConnectionStart>0?i.secureConnectionStart-a:0,tlsTime:i.secureConnectionStart>0?i.connectEnd-i.secureConnectionStart:0,requestStart:i.requestStart>0?i.requestStart-a:0,timeToFirstByte:i.responseStart-i.requestStart,responseStart:i.responseStart>0?i.responseStart-a:0,responseTime:i.responseStart>0?i.responseEnd-i.responseStart:0,domInteractive:i.domInteractive>0?i.domInteractive-a:0,domContentLoadedEventStart:i.domContentLoadedEventStart>0?i.domContentLoadedEventStart-a:0,domContentLoaded:i.domContentLoadedEventEnd-i.domContentLoadedEventStart,domComplete:i.domComplete>0?i.domComplete-a:0,domProcessingTime:i.loadEventStart-i.responseEnd,loadEventStart:i.loadEventStart>0?i.loadEventStart-a:0,loadEventTime:i.loadEventEnd-i.loadEventStart,duration:i.loadEventEnd-i.navigationStart,navigationTimingLevel:1};!((o=e.context)===null||o===void 0)&&o.record&&e.context.record(dt,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(dt,i)},e}return r.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(bt,this.eventListener))},r.prototype.disable=function(){!this.enabled||(this.enabled=!1,this.eventListener&&window.removeEventListener(bt,this.eventListener))},r.prototype.hasTheWindowLoadEventFired=function(){if(window.performance&&window.performance.getEntriesByType(J).length){var e=window.performance.getEntriesByType(J)[0];return Boolean(e.loadEventEnd)}return!1},r.prototype.onload=function(){if(this.enabled)if(this.hasTheWindowLoadEventFired()){var e=window.performance.getEntriesByType(J)[0];this.performanceNavigationEventHandlerTimingLevel2(e)}else window.addEventListener(bt,this.eventListener)},r}(z),j;(function(t){t.OTHER="other",t.STYLESHEET="stylesheet",t.DOCUMENT="document",t.SCRIPT="script",t.IMAGE="image",t.FONT="font"})(j||(j={}));var Yo=[{name:j.STYLESHEET,list:["css","less"]},{name:j.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:j.SCRIPT,list:["js"]},{name:j.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:j.FONT,list:["fnt","fon","otf","ttf","woff"]}],On=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}},_t=function(t){var r=t.substring(t.lastIndexOf("/")+1),e=r.substring(r.lastIndexOf(".")+1).split(/[?#]/)[0],n=j.OTHER;return Yo.forEach(function(o){o.list.indexOf(e)>-1&&(n=o.name)}),n},Jo=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)}}(),Ve=function(){return Ve=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},Ve.apply(this,arguments)},Zo="resource",Et="resource",St="load",Qo={eventLimit:10,recordAllTypes:[j.DOCUMENT,j.SCRIPT],sampleTypes:[j.STYLESHEET,j.IMAGE,j.FONT,j.OTHER]},ea=function(t){Jo(r,t);function r(e){var n=t.call(this,Zo)||this;return n.resourceEventListener=function(o){var i=[],a=[],c=0,f=new PerformanceObserver(function(u){u.getEntries().filter(function(l){return l.entryType===Et}).forEach(function(l){var d=_t(l.name);n.config.recordAllTypes.includes(d)?i.push(l):n.config.sampleTypes.includes(d)&&a.push(l)})});f.observe({entryTypes:[Et]});var s=performance.getEntriesByType(Et);for(s!==void 0&&s.length>0&&s.forEach(function(u){var l=_t(u.name);n.config.recordAllTypes.includes(l)?i.push(u):n.config.sampleTypes.includes(l)&&a.push(u)}),On(i);i.length>0&&c<n.config.eventLimit;)n.recordResourceEvent(i.pop()),c++;for(On(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 f={version:"1.0.0",initiatorType:o.initiatorType,duration:o.duration,fileType:_t(o.name),transferSize:o.transferSize};n.context.config.recordResourceUrl&&(f.targetUrl=o.name),n.context.record(gi,f)}},n.config=Ve(Ve({},Qo),e),n}return r.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(St,this.resourceEventListener))},r.prototype.disable=function(){!this.enabled||(this.enabled=!1,this.resourceEventListener&&window.removeEventListener(St,this.resourceEventListener))},r.prototype.onload=function(){window.addEventListener(St,this.resourceEventListener)},r}(z),B,le,Pn,Ge,In=-1,de=function(t){addEventListener("pageshow",function(r){r.persisted&&(In=r.timeStamp,t(r))},!0)},Rn=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Tt=function(){var t=Rn();return t&&t.activationStart||0},F=function(t,r){var e=Rn(),n="navigate";return In>=0?n="back-forward-cache":e&&(n=document.prerendering||Tt()>0?"prerender":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}},ze=function(t,r,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver(function(o){r(o.getEntries())});return n.observe(Object.assign({type:t,buffered:!0},e||{})),n}}catch{}},Xe=function(t,r){var e=function n(o){o.type!=="pagehide"&&document.visibilityState!=="hidden"||(t(o),r&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},V=function(t,r,e,n){var o,i;return function(a){r.value>=0&&(a||n)&&((i=r.value-(o||0))||o===void 0)&&(o=r.value,r.delta=i,r.rating=function(c,f){return c>f[1]?"poor":c>f[0]?"needs-improvement":"good"}(r.value,e),t(r))}},he=-1,Ln=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},kn=function(){Xe(function(t){var r=t.timeStamp;he=r},!0)},Ct=function(){return he<0&&(he=Ln(),kn(),de(function(){setTimeout(function(){he=Ln(),kn()},0)})),{get firstHiddenTime(){return he}}},ta=function(t,r){r=r||{};var e,n=[1800,3e3],o=Ct(),i=F("FCP"),a=function(s){s.forEach(function(u){u.name==="first-contentful-paint"&&(f&&f.disconnect(),u.startTime<o.firstHiddenTime&&(i.value=u.startTime-Tt(),i.entries.push(u),e(!0)))})},c=window.performance&&window.performance.getEntriesByName&&window.performance.getEntriesByName("first-contentful-paint")[0],f=c?null:ze("paint",a);(c||f)&&(e=V(t,i,n,r.reportAllChanges),c&&a([c]),de(function(s){i=F("FCP"),e=V(t,i,n,r.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){i.value=performance.now()-s.timeStamp,e(!0)})})}))},Nn=!1,At=-1,na=function(t,r){r=r||{};var e=[.1,.25];Nn||(ta(function(u){At=u.value}),Nn=!0);var n,o=function(u){At>-1&&t(u)},i=F("CLS",0),a=0,c=[],f=function(u){u.forEach(function(l){if(!l.hadRecentInput){var d=c[0],v=c[c.length-1];a&&l.startTime-v.startTime<1e3&&l.startTime-d.startTime<5e3?(a+=l.value,c.push(l)):(a=l.value,c=[l]),a>i.value&&(i.value=a,i.entries=c,n())}})},s=ze("layout-shift",f);s&&(n=V(o,i,e,r.reportAllChanges),Xe(function(){f(s.takeRecords()),n(!0)}),de(function(){a=0,At=-1,i=F("CLS",0),n=V(o,i,e,r.reportAllChanges)}))},ve={passive:!0,capture:!0},ra=new Date,jn=function(t,r){B||(B=r,le=t,Pn=new Date,Hn(removeEventListener),Mn())},Mn=function(){if(le>=0&&le<Pn-ra){var t={entryType:"first-input",name:B.type,target:B.target,cancelable:B.cancelable,startTime:B.timeStamp,processingStart:B.timeStamp+le};Ge.forEach(function(r){r(t)}),Ge=[]}},ia=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(){jn(e,n),a()},i=function(){a()},a=function(){removeEventListener("pointerup",o,ve),removeEventListener("pointercancel",i,ve)};addEventListener("pointerup",o,ve),addEventListener("pointercancel",i,ve)}(r,t):jn(r,t)}},Hn=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(r){return t(r,ia,ve)})},oa=function(t,r){r=r||{};var e,n=[100,300],o=Ct(),i=F("FID"),a=function(s){s.startTime<o.firstHiddenTime&&(i.value=s.processingStart-s.startTime,i.entries.push(s),e(!0))},c=function(s){s.forEach(a)},f=ze("first-input",c);e=V(t,i,n,r.reportAllChanges),f&&Xe(function(){c(f.takeRecords()),f.disconnect()},!0),f&&de(function(){var s;i=F("FID"),e=V(t,i,n,r.reportAllChanges),Ge=[],le=-1,B=null,Hn(addEventListener),s=a,Ge.push(s),Mn()})},Ot={},aa=function(t,r){r=r||{};var e,n=[2500,4e3],o=Ct(),i=F("LCP"),a=function(s){var u=s[s.length-1];if(u){var l=u.startTime-Tt();l<o.firstHiddenTime&&(i.value=l,i.entries=[u],e())}},c=ze("largest-contentful-paint",a);if(c){e=V(t,i,n,r.reportAllChanges);var f=function(){Ot[i.id]||(a(c.takeRecords()),c.disconnect(),Ot[i.id]=!0,e(!0))};["keydown","click"].forEach(function(s){addEventListener(s,f,{once:!0,capture:!0})}),Xe(f,!0),de(function(s){i=F("LCP"),e=V(t,i,n,r.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){i.value=performance.now()-s.timeStamp,Ot[i.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)}}(),ca="web-vitals",ua=function(t){sa(r,t);function r(){return t.call(this,ca)||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;aa(function(n){return e.getWebVitalData(n,hi)}),oa(function(n){return e.getWebVitalData(n,vi)}),na(function(n){return e.getWebVitalData(n,pi)})},r}(z),Un=function(t){if(crypto)return crypto.getRandomValues(t);if(msCrypto)return msCrypto.getRandomValues(t);throw new Error("No crypto library found.")},xn=[];for(U=0;U<256;U++)xn[U]=(U+256).toString(16).substr(1);var U,Pt="X-Amzn-Trace-Id",Dn={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},qn=function(t){return Math.floor(t/100)===4},Bn=function(t){return Math.floor(t/100)===5},Fn=function(t){return t===429},Vn=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},fa=function(t,r,e){var n={request:{}};return n.request.method=r?.method?r.method:"GET",n.request.traced=e,n.request.url=Rt(t),n},Gn=function(t,r,e){var n={version:"1.0.0",name:t,origin:"AWS::RUM::AppMonitor",id:Wn(),start_time:r,trace_id:ha(),end_time:void 0,subsegments:[],in_progress:!1};return e&&(n.http=e),n},zn=function(t,r,e){var n={id:Wn(),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},Xn=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}},la=function(t,r,e){t.headers||(t.headers={}),t.headers[Pt]=It(r,e)},da=function(t,r,e){t.set(Pt,It(r,e))},It=function(t,r){return"Root="+t+";Parent="+r+";Sampled=1"},Rt=function(t){return t.url?t.url:t.toString()},ha=function(){return"1-".concat(va(),"-").concat(pa())},Wn=function(){var t=new Uint8Array(8);return Un(t),$n(t)},va=function(){return Math.floor(Date.now()/1e3).toString(16)},pa=function(){var t=new Uint8Array(12);return Un(t),$n(t)},$n=function(t){for(var r="",e=0;e<t.length;e++)r+=xn[t[e]];return r},ga=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)}}(),ma=function(t){ga(r,t);function r(e){var n=t.call(this,e)||this;return n.name="XMLHttpRequest error",n}return r}(Error),ya=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)},wa="xhr",ba=function(t){ya(r,t);function r(e){var n=t.call(this,wa)||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},Fn(i.status)?(a.trace.subsegments[0].throttle=!0,a.trace.throttle=!0):qn(i.status)?(a.trace.subsegments[0].error=!0,a.trace.error=!0):Bn(i.status)&&(a.trace.subsegments[0].fault=!0,a.trace.fault=!0);var f=i.getResponseHeader("Content-Length"),s=f?parseInt(f,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",f=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:f}]},n.recordTraceEvent(a.trace),n.recordHttpEventWithError(a,new ma(f))}},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=Gn(n.config.logicalServiceName,i),o.trace.subsegments.push(zn(Xn(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(Pt,It(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,f){return Vn(c,o.config)&&o.xhrMap.set(this,{url:c,method:a,async:f}),i.apply(this,arguments)}}},n.config=We(We({},Dn),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(Pe,{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=ht({type:"error",error:n},this.config.stackTraceLength),this.context.record(Pe,o)},r.prototype.recordTraceEvent=function(e){this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(Qt,e)},r}(Me),_a=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)}}(),$e=function(){return $e=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},$e.apply(this,arguments)},Ea="fetch",Sa=function(t){_a(r,t);function r(e){var n=t.call(this,Ea)||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(),f=fa(o,i,!0),s=Gn(n.config.logicalServiceName,c),u=zn(Xn(o),c,f);return s.subsegments.push(u),n.config.addXRayTraceIdHeader&&n.addXRayTraceIdHeader(o,i,a,s),s},n.addXRayTraceIdHeader=function(o,i,a,c){if(o.headers)return da(o.headers,c.trace_id,c.subsegments[0].id);i||(i={},[].push.call(a,i)),la(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},Fn(i.status)?(o.subsegments[0].throttle=!0,o.throttle=!0):qn(i.status)?(o.subsegments[0].error=!0,o.error=!0):Bn(i.status)&&(o.subsegments[0].fault=!0,o.fault=!0);var f=i.headers.get("Content-Length"),s=f?parseInt(f,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):tn(a)&&n.appendErrorCauseFromPrimitive(o.subsegments[0],a.toString())),n.context.record(Qt,o)}},n.createHttpEvent=function(o,i){var a=o;return{version:"1.0.0",request:{url:Rt(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(Pe,o))},n.recordHttpEventWithError=function(o,i){o.error=ht({type:"error",error:i},n.config.stackTraceLength),n.context.record(Pe,o)},n.fetch=function(o,i,a,c,f){var s=n.createHttpEvent(c,f),u;return Vn(Rt(c),n.config)?(n.isTracingEnabled()&&n.isSessionRecorded()&&(u=n.beginTrace(c,f,a)),o.apply(i,a).then(function(l){return n.endTrace(u,l,void 0),n.recordHttpEventWithResponse(s,l),l}).catch(function(l){throw n.endTrace(u,void 0,l),n.recordHttpEventWithError(s,l),l})):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=$e($e({},Dn),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}(Me),Ta=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)}}(),Ca="page-view",Aa=function(t){Ta(r,t);function r(){var e=t.call(this,Ca)||this;return e.pushState=function(){var n=e;return function(o){return function(i,a,c){var f=o.apply(this,arguments);return n.recordPageView(),f}}},e.replaceState=function(){var n=e;return function(o){return function(i,a,c){var f=o.apply(this,arguments);return n.recordPageView(),f}}},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}(Me),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)},Oa=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))},Kn="us-west-2",Lt="https://dataplane.rum.".concat(Kn,".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 Pa=function(){return{unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}},Ia=function(t){return{allowCookies:!1,batchLimit:100,cookieAttributes:t,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:Lt,endpointUrl:new URL(Lt),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}},Ra=function(){function t(r,e,n,o){o===void 0&&(o={});var i=o.cookieAttributes,a=Oa(o,["cookieAttributes"]);typeof n>"u"&&(n="us-west-2");var c=Q(Q({},Pa()),i);this.config=Q(Q({fetchFunction:fetch},Ia(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(nn,r)},t.prototype.registerDomEvents=function(r){this.pluginManager.updatePlugin(en,r)},t.prototype.recordEvent=function(r,e){this.eventCache.recordEvent(r,e)},t.prototype.initEventCache=function(r,e){return new so({id:r,version:e},this.config)},t.prototype.initDispatch=function(r){var e=new Xo(r,this.config.endpointUrl,this.eventCache,this.config);return this.config.identityPoolId&&this.config.guestRoleArn?e.setAwsCredentials(new fi(this.config).ChainAnonymousCredentialsProvider):this.config.identityPoolId&&e.setAwsCredentials(new li(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 bi(i);return this.config.disableAutoPageView||a.addPlugin(new Aa),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:Lt.replace(Kn,r)},t.prototype.telemetryFunctor=function(){var r;return r={},r[te.Errors]=function(e){return[new Ri(e)]},r[te.Performance]=function(e){return[new Ko,new ea(e),new ua]},r[te.Interaction]=function(e){return[new Si(e)]},r[te.Http]=function(e){return[new ba(e),new Sa(e)]},r},t}();try{window.awsRum=new Ra(window.awsRumVariables.APPLICATION_ID,window.awsRumVariables.APPLICATION_VERSION,window.awsRumVariables.APPLICATION_REGION,window.awsRumVariables.config)}catch{}})();