PageSourceSearch

https://www.examinerlive.co.uk/nav-web-static/main-25e5ee27a94654e…/static/chunks/9564-c09799a01e5e9e21.js

js examinerlive.co.uk collected 2026-09-24 17:47:58 UTC 178,010 bytes, 11 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9564],{15349:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromUtf8:()=>r,toUtf8:()=>i});let r=e=>"function"==typeof TextEncoder?new TextEncoder().encode(e):(e=>{let t=[];for(let n=0,r=e.length;n<r;n++){let r=e.charCodeAt(n);if(r<128)t.push(r);else if(r<2048)t.push(r>>6|192,63&r|128);else if(n+1<e.length&&(64512&r)==55296&&(64512&e.charCodeAt(n+1))==56320){let i=65536+((1023&r)<<10)+(1023&e.charCodeAt(++n));t.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else t.push(r>>12|224,r>>6&63|128,63&r|128)}return Uint8Array.from(t)})(e),i=e=>"function"==typeof TextDecoder?new TextDecoder("utf-8").decode(e):(e=>{let t="";for(let n=0,r=e.length;n<r;n++){let r=e[n];r<128?t+=String.fromCharCode(r):192<=r&&r<224?t+=String.fromCharCode((31&r)<<6|63&e[++n]):240<=r&&r<365?t+=decodeURIComponent("%"+[r,e[++n],e[++n],e[++n]].map(e=>e.toString(16)).join("%")):t+=String.fromCharCode((15&r)<<12|(63&e[++n])<<6|63&e[++n])}return t})(e)},21826:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>w,__asyncGenerator:()=>m,__asyncValues:()=>E,__await:()=>b,__awaiter:()=>f,__classPrivateFieldGet:()=>C,__classPrivateFieldSet:()=>I,__createBinding:()=>h,__decorate:()=>s,__exportStar:()=>d,__extends:()=>i,__generator:()=>l,__importDefault:()=>x,__importStar:()=>
vendor: 5,165 bytes, line 1
1T,__makeTemplateObject:()=>S,__metadata:()=>u,__param:()=>c,__read:()=>g,__rest:()=>a,__spread:()=>y,__spreadArrays:()=>v,__values:()=>p});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){var c=[o,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function h(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function d(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function m(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{var n;(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,u):f(o[0][2],n)}catch(e){f(o[0][3],e)}}function c(e){s("next",e)}function u(e){s("throw",e)}function f(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){var o,a,s;o=r,a=i,s=(t=e[n](t)).done,Promise.resolve(t.value).then(function(e){o({value:e,done:s})},a)})}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
1function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function C(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function I(e,t,n){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},26801:(e,t)=>{"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=c(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),f=0,l=s>0?a-4:a;for(n=0;n<l;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[f++]=t>>16&255,u[f++]=t>>8&255,u[f++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[f++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[f++]=t>>8&255,u[f++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(function(e,t,r){for(var i,o=[],a=t;a<r;a+=3)i=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(n[i>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r[45]=62,r[95]=63},34526:(e,t)=>{"use strict";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([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),t.INIT=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],t.MAX_HASHABLE_LENGTH=0x1fffffffffffff},35223:function(e,t,n){var r;!function(i){"use strict";var o="function",a="undefined",s="object",c="string",u="major",f="model",l="name",h="type",d="vendor",p="version",g="architecture",y="console",v="mobile",b="tablet",m="smarttv",w="wearable",E="embedded",S="Amazon",T="Apple",x="ASUS",C="BlackBerry",I="Browser",A="Chrome",_="Firefox",O="Google",P="Honor",L="Huawei",k="Microsoft",R="Motorola",B="Nvidia",U="OnePlus",j="Opera",M="OPPO",D="Samsung",H="Sharp",q="Sony",N="Xiaomi",F="Zebra",$="Facebook",z="Chromium OS",V="Mac OS",W=" Browser",K=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},G=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},X=function(e,t){return typeof e===c&&-1!==Z(t).indexOf(Z(e))},Z=function(e){return e.toLowerCase()},J=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,500)},Y=function(e,t){for(var n,r,i,a,c,u,f=0;f<t.length&&!c;){var l=t[f],h=t[f+1];for(n=r=0;n<l.length&&!c&&l[n];)if(c=l[n++].exec(e))for(i=0;i<h.length;i++)u=c[++r],typeof(a=h[i])===s&&a.length>0?2===a.length?typeof a[1]==o?this[a[0]]=a[1].call(this,u):this[a[0]]=a[1]:3===a.length?typeof a[1]!==o||a[1].exec&&a[1].test?this[a[0]]=u?u.replace(a[1],a[2]):void 0:this[a[0]]=u?a[1].call(this,u,a[2]):void 0:4===a.length&&(this[a[0]]=u?a[3].call(this,u.replace(a[1],a[2])):void 0):this[a]=u||void 0;f+=2}},Q=function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(X(t[n][r],e))return"?"===n?void 0:n}else if(X(t[n],e))return"?"===n?void 0:n;return t.hasOwnProperty("*")?t["*"]:e},ee={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"},et={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,p],[/opios[\/ ]+([\w\.]+)/i],[p,[l,j+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[p,[l,j+" GX"]],[/\bopr\/([\w\.]+)/i],[p,[l,j]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[p,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,p],[/quark(?:pc)?\/([-\w\.]+)/i],[p,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[p,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[l,"UC"+I]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[l,"Smart Lenovo "+I]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+I],p],[/\bfocus\/([\w\.]+)/i],[p,[l,_+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[l,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[l,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[l,"MIUI"+W]
1],[/fxios\/([\w\.-]+)/i],[p,[l,_]],[/\bqihoobrowser\/?([\w\.]*)/i],[p,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],p],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+W],p],[/samsungbrowser\/([\w\.]+)/i],[p,[l,D+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[p,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,p],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[p,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,$],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[l,A+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,A+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[l,"Android "+I]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[p,Q,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],p],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[l,_+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[l,[p,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[p,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[g,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[g,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[g,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[g,/ower/,"",Z]],[/ sun4\w[;\)]/i],[[g,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[g,Z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[d,D],[h,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[f,[d,D],[h,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[d,T],[h,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[d,T],[h,b]],[/(macintosh);/i],[f,[d,T]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[d,H],[h,v]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[f,[d,P],[h,b]],[/honor([-\w ]+)[;\)]/i],[f,[d,P],[h,v]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[f,[d,L],[h,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[d,L],[h,v]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[f,/_/g," "],[d,N],[h,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[f,/_/g," "],[d,N],[h,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[d,M],[h,v]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[f,[d,Q,{OnePlus:["304","403","203"],"*":M}],[h,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[d,"Vivo"],[h,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[f,[d,"Realme"],[h,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[d,R],[h,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[d,R],[h,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[d,"LG"],[h,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[d,"LG"],[h,v]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
1(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[f,[d,"Lenovo"],[h,b]],[/(nokia) (t[12][01])/i],[d,f,[h,b]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[f,/_/g," "],[h,v],[d,"Nokia"]],[/(pixel (c|tablet))\b/i],[f,[d,O],[h,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[d,O],[h,v]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[d,q],[h,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[d,q],[h,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[d,U],[h,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[d,S],[h,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[d,S],[h,v]],[/(playbook);[-\w\),; ]+(rim)/i],[f,d,[h,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[d,C],[h,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[d,x],[h,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[d,x],[h,v]],[/(nexus 9)/i],[f,[d,"HTC"],[h,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[f,/_/g," "],[h,v]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[f,[d,"TCL"],[h,b]],[/(itel) ((\w+))/i],[[d,Z],f,[h,Q,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[d,"Acer"],[h,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[d,"Meizu"],[h,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[f,[d,"Ulefone"],[h,v]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[f,[d,"Energizer"],[h,v]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[f,[d,"Cat"],[h,v]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[f,[d,"Smartfren"],[h,v]],[/droid.+; (a(?:015|06[35]|142p?))/i],[f,[d,"Nothing"],[h,v]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[f,[d,"Archos"],[h,b]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[f,[d,"Archos"],[h,v]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[d,f,[h,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[d,f,[h,v]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,f,[h,b]],[/(surface duo)/i],[f,[d,k],[h,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[d,"Fairphone"],[h,v]],[/(u304aa)/i],[f,[d,"AT&T"],[h,v]],[/\bsie-(\w*)/i],[f,[d,"Siemens"],[h,v]],[/\b(rct\w+) b/i],[f,[d,"RCA"],[h,b]],[/\b(venue[\d ]{2,7}) b/i],[f,[d,"Dell"],[h,b]],[/\b(q(?:mv|ta)\w+) b/i],[f,[d,"Verizon"],[h,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[d,"Barnes & Noble"],[h,b]],[/\b(tm\d{3}\w+) b/i],[f,[d,"NuVision"],[h,b]],[/\b(k88) b/i],[f,[d,"ZTE"],[h,b]],[/\b(nx\d{3}j) b/i],[f,[d,"ZTE"],[h,v]],[/\b(gen\d{3}) b.+49h/i],[f,[d,"Swiss"],[h,v]],[/\b(zur\d{3}) b/i],[f,[d,"Swiss"],[h,b]],[/\b((zeki)?tb.*\b) b/i],[f,[d,"Zeki"],[h,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],f,[h,b]],[/\b(ns-?\w{0,9}) b/i],[f,[d,"Insignia"],[h,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[d,"NextBook"],[h,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],f,[h,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],f,[h,v]],[/\b(ph-1) /i],[f,[d,"Essential"],[h,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[d,"Envizen"],[h,b]],[/\b(trio[-\w\. ]+) b/i],[f,[d,"MachSpeed"],[h,b]],[/\btu_(1491) b/i],[f,[d,"Rotor"],[h,b]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[f,[d,B],[h,b]],[/(sprint) (\w+)/i],[d,f,[h,v]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[d,k],[h,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[d,F],[h,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[d,F],[h,v]],[/smart-tv.+(samsung)/i],[d,[h,m]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[d,D],[h,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,"LG"],[h,m]],[/(apple) ?tv/i],[d,[f,T+" TV"],[h,m]],[/crkey/i],[[f,A+"cast"],[d,O],[h,m]],[/droid.+aft(\w+)( bui|\))/i],[f,[d,S],[h,m]],[/(shield \w+ tv)/i],[f,[d,B],[h,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[d,H],[h,m]],[/(bravia[\w ]+)( bui|\))/i],[f,[d,q],[h,m]],[/(mi(tv|box)-?\w+) bui/i],[f,[d,N],[h,m]],[/Hbbtv.*(technisat) (.*);/i],[d,f,[h,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,J],[f,J],[h,m]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[f,[h,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,f,[h,y]],[/droid.+; (shield)( bui|\))/i],[f,[d,B],[h,y]],[/(playstation \w+)/i],[f,[d,q],[h,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[d,k],[h,y]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[f,[d,D],[h,w]],[/((pebble))app/i,/(asu
1s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[d,f,[h,w]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[f,[d,M],[h,w]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[d,T],[h,w]],[/(opwwe\d{3})/i],[f,[d,U],[h,w]],[/(moto 360)/i],[f,[d,R],[h,w]],[/(smartwatch 3)/i],[f,[d,q],[h,w]],[/(g watch r)/i],[f,[d,"LG"],[h,w]],[/droid.+; (wt63?0{2,3})\)/i],[f,[d,F],[h,w]],[/droid.+; (glass) \d/i],[f,[d,O],[h,w]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,f,[h,w]],[/; (quest( \d| pro)?)/i],[f,[d,$],[h,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[h,E]],[/(aeobc)\b/i],[f,[d,S],[h,E]],[/(homepod).+mac os/i],[f,[d,T],[h,E]],[/windows iot/i],[[h,E]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[f,[h,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[h,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,v]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[f,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,p],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,p],[/ladybird\//i],[[l,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,p],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[l,[p,Q,ee]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,Q,ee],[l,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,V],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,l],[/(ubuntu) ([\w\.]+) like android/i],[[l,/(.+)/,"$1 Touch"],p],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[l,p],[/\(bb(10);/i],[p,[l,C]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[p,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[l,_+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[l,A+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,z],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,p],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,p]]},en=function(e,t){if(typeof e===s&&(t=e,e=void 0),!(this instanceof en))return new en(e,t).getResult();var n=typeof i!==a&&i.navigator?i.navigator:void 0,r=e||(n&&n.userAgent?n.userAgent:""),y=n&&n.userAgentData?n.userAgentData:void 0,m=t?K(et,t):et,w=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[l]=void 0,t[p]=void 0,Y.call(t,r,m.browser),t[u]=typeof(e=t[p])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,w&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[l]="Brave"),t},this.getCPU=function(){var e={};return e[g]=void 0,Y.call(e,r,m.cpu),e},this.getDevice=function(){var e={};return e[d]=void 0,e[f]=void 0,e[h]=void 0,Y.call(e,r,m.device),w&&
1!e[h]&&y&&y.mobile&&(e[h]=v),w&&"Macintosh"==e[f]&&n&&typeof n.standalone!==a&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[f]="iPad",e[h]=b),e},this.getEngine=function(){var e={};return e[l]=void 0,e[p]=void 0,Y.call(e,r,m.engine),e},this.getOS=function(){var e={};return e[l]=void 0,e[p]=void 0,Y.call(e,r,m.os),w&&!e[l]&&y&&y.platform&&"Unknown"!=y.platform&&(e[l]=y.platform.replace(/chrome os/i,z).replace(/macos/i,V)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?J(e,500):e,this},this.setUA(r),this};en.VERSION="1.0.41",en.BROWSER=G([l,p,u]),en.CPU=G([g]),en.DEVICE=G([f,d,h,y,v,m,b,w,E]),en.ENGINE=en.OS=G([l,p]),typeof t!==a?(e.exports&&(t=e.exports=en),t.UAParser=en):n.amdO?void 0===(r=(function(){return en}).call(t,n,t,e))||(e.exports=r):typeof i!==a&&(i.UAParser=en);var er=typeof i!==a&&(i.jQuery||i.Zepto);if(er&&!er.ua){var ei=new en;er.ua=ei.getResult(),er.ua.get=function(){return ei.getUA()},er.ua.set=function(e){ei.setUA(e);var t=ei.getResult();for(var n in t)er.ua[n]=t[n]}}}("object"==typeof window?window:this)},45790:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var r=n(53974);Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var i=n(84623);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return i.isEmptyData}});var o=n(94905);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return o.numToUint8}});var a=n(55644);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return a.uint32ArrayFrom}})},47947:(e,t,n)=>{"use strict";let r;n.d(t,{mV:()=>is,jF:()=>h});var i,o,a,s,c,u,f,l,h,d="com.amazon.rum",p="".concat(d,".http_event"),g="".concat(d,".xray_trace_event"),y="".concat(d,".largest_contentful_paint_event"),v="".concat(d,".first_input_delay_event"),b="".concat(d,".cumulative_layout_shift_event"),m="".concat(d,".interaction_to_next_paint_event"),w="".concat(d,".performance_navigation_event"),E="".concat(d,".performance_resource_event"),S="".concat(d,".dom_event"),T="".concat(d,".js_error_event"),x="".concat(d,".page_view_event"),C="".concat(d,".session_start_event"),I=function(){function e(t){this.enabled=!0,this.pluginId=e.generatePluginId(t)}return e.generatePluginId=function(t){return"".concat(e.idPrefix,".").concat(t)},e.prototype.load=function(e){var t;this.context=e,null==(t=this.onload)||t.call(this)},e.prototype.getPluginId=function(){return this.pluginId},e.idPrefix="com.amazonaws.rum",e}(),A=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},_="[aws-rum-web:unknown.unknown]",O=function(){function e(){}return e.getCallerInfo=function(){var e,t;try{var n=Error().stack;if(!n)return _;var r=n.split("\n");if(r.length<4)return _;var i=r[3];if(!i)return _;var o=i.match(/at (?:(.+?)\s+\()?/);if(o&&o.length>=2){var a=o[1].trim(),s=a.split(".");if(s.length>=2){var c=null!=(e=s[s.length-2])?e:"unknown",u=null!=(t=s[s.length-1])?t:"unknown";return"[aws-rum-web:".concat(c,".").concat(u,"]")}return"[aws-rum-web:".concat(a,"]")}}catch(e){}return _},e.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.getCallerInfo();console.info.apply(console,A([r,e],t,!1))},e.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.getCallerInfo();console.debug.apply(console,A([r,e],t,!1))},e.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.getCallerInfo();console.warn.apply(console,A([r,e],t,!1))},e.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.getCallerInfo();console.error.apply(console,A([r,e],t,!1))},e}(),P=function(){function e(e){this.context=e,this.plugins=new Map}return e.prototype.addPlugin=function(e){var t=e.getPluginId();if(this.hasPlugin(t))throw Error('Plugin "'.concat(t,'" already defined in the PluginManager'));this.plugins.set(t,e),e.load(this.context),this.context.config.debug&&O.info("Plugin loaded: ".concat(t))},e.prototype.updatePlugin=function(e,t){var n,r=this.getPlugin(e);null==(n=null==r?void 0:r.update)||n.call(r,t)},e.prototype.enable=function(){this.plugins.forEach(function(e){return e.enable()})},e.prototype.disable=function(){this.plugins.forEach(function(e){return e.disable()})},e.prototype.hasPlugin=function(e){return!!this.getPlugin(e)},e.prototype.record=function(e,t){var n=this.getPlugin(e);if((null==n?void 0:n.record)instanceof Function)n.record(t);else throw Error("AWS RUM Client record: Invalid plugin ID")},e.prototype.getPlugin=function(e){var t;return null!=(t=this.plugins.get(e))?t:this.plugins.get(I.generatePluginId(e))},e}(),L=(nr=function(e,t){return(nr=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}nr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),k=function(){return(k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},R="dom-event",B={interactionId:function(){return""},enableMutationObserver:!1,events:[]},U=function(e){function t(t){var n=e.call(this,R)||this;return n.enabled=!1,n.eventListenerMap=new Map,n.config=k(k({},B),t),n}return L(t,e),t.getElementInfo=function(e){var t={name:"UNKNOWN"};return e.target instanceof Node&&(t.name=e.target.nodeName),e.target instanceof Element&&e.target.id&&(t.id=e.target.id),t},t.prototype.enable=function(){var e=this;"complete"!==document.readyState?window.addEventListener("load",function(){return e.enable()}):this.enabled||(this.addListeners(),this.config.enableMutationObserver&&this.observeDOMMutation(),this.enabled=!0)},t.prototype.disable=function(){this.enabled&&(this.removeListeners(),this.observer&&this.observer.disconnect(),this.enabled=!1)},t.prototype.update=function(e){var t=this;e.forEach(function(e){t.addEventHandler(e),t.config.events.push(e)})},t.prototype.onload=function(){this.enable()},t.prototype.removeListeners=function(){var e=this;this.config.events.forEach(function(t){return e.removeEventHandler(t)})},t.prototype.addListeners=function(){var e=this;this.config.events.forEach(function(t){return e.addEventHandler(t)})},t.prototype.getEventListener=function(e){var n=this;return function(r){var i,o=t.getElementInfo(r),a=n.config.interactionId(r),s=k(k(k({version:"1.1.0",event:r.type,element:o.name},o.id?{elementId:o.id}:{}),a?{interactionId:a}:{}),e?{cssLocator:e}:{});(null==(i=n.context)?void 0:i.record)&&n.context.record(S,s)}},t.prototype.addEventHandler=function(e){var t=e.event,n=this.getEventListener(e.cssLocator),r=[],i=this.eventListenerMap.has(e)?this.eventListenerMap.get(e):[];if(e.cssLocator)document.querySelectorAll(e.cssLocator).forEach(function(e){r.push(e)});else if(e.elementId){var o=document.getElementById(e.elementId);o&&r.push(o)}else e.element&&r.push(e.element);r.forEach(function(e){e.addEventListener(t,n),i.push({element:e,eventListener:n})}),this.eventListenerMap.set(e,i)},t.prototype.removeEventHandler=function(e){var t=this.eventListenerMap.get(e);t&&(t.forEach(function(t){var n=t.element,r=t.eventListener;n.removeEventListener(e.event,r)}),this.eventListenerMap.delete(e))},t.prototype.observeDOMMutation=function(){var e=this;this.observer=new MutationObserver(function(){e.removeListeners(),e.addListeners()}),this.observer.observe(document,{childList:!0,subtree:!0})},t}(I),j=function(e){var t=typeof e;return("object"===t||"function"===t)&&!!e},M=function(e){var t={version:"1.0.0",type:"undefined",message:"undefined"};return void 0!==e.type&&(t.type=e.type),void 0!==e.message&&(t.message=e.message),void 0!==e.filename&&(t.filename=e.filename),void 0!==e.lineno&&(t.lineno=e.lineno),void 0!==e.colno&&(t.colno=e.colno),t},D=function(e,t){"unhandledrejection"!==e.type&&(e.type=t.toString()),e.message=t.toString()},H=function(e,t,n){t.name&&(e.type=t.name),t.message&&(e.message=t.message),t.fileName&&(e.filename=t.fileName),t.lineNumber&&(e.lineno=t.lineNumber),t.columnNumber&&(e.colno=t.columnNumber),n&&t.stack&&(e.stack=t.stack.length>n?t.stack.substring(0,n)+"...":t.stack)},q=function(e){return e!==Object(e)&&null!=e},N=function(e,t){var n=M(e),r=e.error;return j(r)?H(n,r,t):q(r)&&D(n,r),n},F=(ni=function(e,t){return(ni=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ni(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),$=function(){return($=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},z="js-error",V={stackTraceLength:1e3,ignore:function(){return!1}},W=function(e){function t(t){var n=e.call(this,z)||this;return n.eventHandler=function(e){n.config.ignore(e)||n.recordJsErrorEvent(e)}
1,n.promiseRejectEventHandler=function(e){n.config.ignore(e)||n.recordJsErrorEvent({type:e.type,error:e.reason})},n.config=$($({},V),t),n}return F(t,e),t.prototype.enable=function(){this.enabled||(this.addEventHandler(),this.enabled=!0)},t.prototype.disable=function(){this.enabled&&(this.removeEventHandler(),this.enabled=!1)},t.prototype.record=function(e){e instanceof ErrorEvent?this.recordJsErrorEvent(e):this.recordJsErrorEvent({type:"error",error:e})},t.prototype.onload=function(){this.addEventHandler()},t.prototype.recordJsErrorEvent=function(e){var t;null==(t=this.context)||t.record(T,N(e,this.config.stackTraceLength))},t.prototype.addEventHandler=function(){window.addEventListener("error",this.eventHandler),window.addEventListener("unhandledrejection",this.promiseRejectEventHandler)},t.prototype.removeEventHandler=function(){window.removeEventListener("error",this.eventHandler),window.removeEventListener("unhandledrejection",this.promiseRejectEventHandler)},t}(I),K=function(e,t,n,r,i){var o=e+"=";o+=t||"",void 0!==i?o+="; Expires=".concat(i.toUTCString()):void 0!==r&&(o+="; Expires=".concat(G(r).toUTCString())),o+="; Domain=".concat(n.domain),o+="; Path=".concat(n.path),o+="; SameSite=".concat(n.sameSite),o+=n.secure?"; Secure":"",document.cookie=o},G=function(e){return new Date(new Date().getTime()+1e3*e)},X=function(e){for(var t=document.cookie.split("; "),n=0;n<t.length;n++){var r=t[n].split("=");if(r[0]===e)return r[1]}return""};let Z="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),J=new Uint8Array(16),Y=[];for(let e=0;e<256;++e)Y.push((e+256).toString(16).slice(1));let Q=function(e,t,n){if(Z&&!t&&!e)return Z();let i=(e=e||{}).random||(e.rng||function(){if(!r&&!(r="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(J)})();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=i[e];return t}return function(e,t=0){return Y[e[t+0]]+Y[e[t+1]]+Y[e[t+2]]+Y[e[t+3]]+"-"+Y[e[t+4]]+Y[e[t+5]]+"-"+Y[e[t+6]]+Y[e[t+7]]+"-"+Y[e[t+8]]+Y[e[t+9]]+"-"+Y[e[t+10]]+Y[e[t+11]]+Y[e[t+12]]+Y[e[t+13]]+Y[e[t+14]]+Y[e[t+15]]}(i)};var ee=n(35223),et="cwr_c",en="cwr_i",er="cwr_s",ei="cwr_u",eo=function(){return(eo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},ea="00000000-0000-0000-0000-000000000000",es="unknown",ec=function(){function e(e,t,n,r){this.appMonitorDetails=e,this.config=t,this.recordEvent=n,this.pageManager=r,this.sessionCookieName=this.config.cookieAttributes.unique?"".concat(er,"_").concat(this.appMonitorDetails.id):er,this.session={sessionId:ea,record:this.sample(),eventCount:0},this.initializeUser(),this.collectAttributes(),this.addSessionAttributes(this.config.sessionAttributes),this.getSessionFromCookie()}return e.prototype.isSampled=function(){return this.session.record},e.prototype.getSession=function(){return(this.session.sessionId===ea||new Date>=this.sessionExpiry)&&this.createSession(),this.session},e.prototype.getAttributes=function(){return this.attributes},e.prototype.addSessionAttributes=function(e){this.attributes=eo(eo({},this.attributes),e)},e.prototype.getUserId=function(){return this.useCookies()?this.userId:ea},e.prototype.incrementSessionEventCount=function(){this.session.eventCount++,this.renewSession()},e.prototype.isLimitExceeded=function(){return this.session.eventCount>=this.config.sessionEventLimit&&this.config.sessionEventLimit>0},e.prototype.canRecord=function(){return this.session.record&&!this.isLimitExceeded()},e.prototype.initializeUser=function(){var e="";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()?(e=this.getUserIdCookie(),this.userId=e||Q(),this.createOrRenewUserCookie(e,this.userExpiry)):this.userId=Q()},e.prototype.createOrRenewSessionCookie=function(e,t){btoa&&K(this.sessionCookieName,btoa(JSON.stringify(e)),this.config.cookieAttributes,void 0,t)},e.prototype.createOrRenewUserCookie=function(e,t){K(ei,e,this.config.cookieAttributes,void 0,t)},e.prototype.getUserIdCookie=function(){return X(ei)},e.prototype.getSessionFromCookie=function(){if(this.useCookies()){var e=X(this.sessionCookieName);if(e&&atob)try{this.session=JSON.parse(atob(e)),this.pageManager.resumeSession(this.session.page),this.config.debug&&O.info("Restored session: ".concat(this.session.sessionId))}catch(e){O.error("Failed to restore session",e)}}}
1,e.prototype.storeSessionAsCookie=function(){this.useCookies()&&this.config.userIdRetentionDays>0&&this.createOrRenewUserCookie(this.userId,this.userExpiry),this.useCookies()&&this.createOrRenewSessionCookie(this.session,this.sessionExpiry)},e.prototype.createSession=function(){this.session={sessionId:Q(),record:this.session.sessionId===ea?this.session.record:this.sample(),eventCount:0},this.session.page=this.pageManager.getPage(),this.sessionExpiry=new Date(new Date().getTime()+1e3*this.config.sessionLengthSeconds),this.storeSessionAsCookie(),this.config.debug&&(O.info("Session start: ".concat(this.session.sessionId)),this.session.record||O.warn("Session is NOT sampled. Consider increasing sessionSampleRate to avoid data loss (currently ".concat(this.config.sessionSampleRate,")"))),this.recordEvent(C,{version:"1.0.0"})},e.prototype.renewSession=function(){this.sessionExpiry=new Date(new Date().getTime()+1e3*this.config.sessionLengthSeconds),this.session.page=this.pageManager.getPage(),this.storeSessionAsCookie()},e.prototype.collectAttributes=function(){var e=new ee.UAParser(navigator.userAgent).getResult();this.attributes={browserLanguage:navigator.language,browserName:e.browser.name?e.browser.name:es,browserVersion:e.browser.version?e.browser.version:es,osName:e.os.name?e.os.name:es,osVersion:e.os.version?e.os.version:es,deviceType:e.device.type?e.device.type:"desktop",platformType:"web",domain:window.location.hostname,"aws:releaseId":this.config.releaseId}},e.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},e.prototype.sample=function(){return Math.random()<this.config.sessionSampleRate},e}(),eu=n(87267),ef=(no=function(e,t){return(no=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}no(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),el=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enable=t.patch.bind(t,!0),t.disable=t.patch.bind(t,!1),t.enabled=!1,t}return ef(t,e),t.prototype.patchAll=function(){for(var e=eu.wrap.bind(eu),t=0,n=this.patches;t<n.length;t++){var r=n[t];e(r.nodule,r.name,r.wrapper())}},t.prototype.unpatchAll=function(){for(var e=eu.unwrap.bind(eu),t=0,n=this.patches;t<n.length;t++){var r=n[t];e(r.nodule,r.name)}},t.prototype.patch=function(e){void 0===e&&(e=!0),this.enabled!==e&&(this.enabled=e,e?this.patchAll():this.unpatchAll())},t}(I),eh=(na=function(e,t){return(na=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}na(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ed=function(e){function t(t,n,r){var i=e.call(this,"virtual-page-load-timer")||this;return i.sendWrapper=function(){return function(e){return function(){return i.recordXhr(this),this.addEventListener("loadend",i.endTracking),e.apply(this,arguments)}}},i.endTracking=function(e){var t=Date.now(),n=e.target;n.removeEventListener("loadend",i.endTracking),i.removeXhr(n,t)},i.fetch=function(e,t,n){return e.apply(t,n).catch(function(e){throw e}).finally(i.decrementFetchCounter)},i.fetchWrapper=function(){return function(e){return function(t,n){return i.fetchCounter+=1,i.fetch(e,this,arguments)}}},i.decrementFetchCounter=function(){i.isPageLoaded||(i.latestEndTime=Date.now()),i.fetchCounter-=1},i.checkLoadStatus=function(){i.config.debug&&O.info("VirtualPageLoadTimer: Checking load status - XHR: ".concat(i.ongoingRequests.size,", Fetch: ").concat(i.fetchCounter)),0===i.ongoingRequests.size&&0===i.fetchCounter&&(i.config.debug&&O.info("Page load completed, recording navigation event"),clearInterval(i.peri
1odicCheckerId),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(){i.config.debug&&O.info("Page load timed out"),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(e){i.ongoingRequests.add(e)},i.updateLatestInteractionTime=function(e){i.latestInteractionTime=Date.now(),i.config.debug&&O.info("Updated interaction time: ".concat(i.latestInteractionTime))},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=t,i.record=r,i.enable(),document.addEventListener("mousedown",i.updateLatestInteractionTime),document.addEventListener("keydown",i.updateLatestInteractionTime),i}return eh(t,e),Object.defineProperty(t.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]},enumerable:!1,configurable:!0}),t.prototype.startTiming=function(){this.latestEndTime=Date.now(),this.config.debug&&O.info("Starting timing for virtual page load"),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(),this.config.debug&&O.info("Moved ".concat(this.requestBuffer.size," requests from buffer to ongoing"))},t.prototype.recordXhr=function(e){this.pageManager.getPage()&&!1===this.isPageLoaded?(this.ongoingRequests.add(e),this.config.debug&&O.info("Added XHR to ongoing requests (total: ".concat(this.ongoingRequests.size,")"))):(this.requestBuffer.add(e),this.config.debug&&O.info("VirtualPageLoadTimer: Added XHR to buffer (total: ".concat(this.requestBuffer.size,")")))},t.prototype.removeXhr=function(e,t){this.pageManager.getPage()&&this.ongoingRequests.has(e)?(this.ongoingRequests.delete(e),this.latestEndTime=t):this.requestBuffer.has(e)&&this.requestBuffer.delete(e)},t.prototype.recordRouteChangeNavigationEvent=function(e){var t={version:"1.0.0",initiatorType:"route_change",navigationType:"navigate",startTime:e.start,duration:this.latestEndTime-e.start};this.record&&this.record(w,t)},t}(el),ep=function(){return(ep=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},eg=function(){function e(e,t){this.TIMEOUT=1e3,this.config=e,this.record=t,this.page=void 0,this.resumed=!1,this.recordInteraction=!1,e.legacySPASupport&&(e.debug&&O.warn("VirtualPageLoadTiming (deprecated) is enabled and may result in innaccurate page load timing for Single Page Applications. Please use with caution after reviewing https://github.com/aws-observability/aws-rum-web/issues/723"),this.virtualPageLoadTimer=new ed(this,e,t))}return e.prototype.getPage=function(){return this.page},e.prototype.getAttributes=function(){return this.attributes},e.prototype.resumeSession=function(e){this.recordInteraction=!0,e&&(this.page=e,this.resumed=!0)},e.prototype.recordPageView=function(e){var t;if(t="string"==typeof e?e:e.pageId,this.config.debug&&O.info("recordPageView called with pageId: ".concat(t)),this.useCookies()&&(this.recordInteraction=!0),this.page)if(this.page.pageId!==t)this.createNextPage(this.page,t),this.config.debug&&O.info("Navigation to new page: ".concat(t));else if(this.resumed){this.config.debug&&O.info("Resumed session for page: ".concat(t)),this.collectAttributes(this.page,"object"==typeof e?e:void 0);return}else{this.config.debug&&O.info("No page change detected for: ".concat(t));return}else this.createLandingPage(t),this.config.debug&&O.info("Landing page created: ".concat(t));this.collectAttributes(this.page,"object"==typeof e?e:void 0),this.recordPageViewEvent(this.page)},e.prototype.createNextPage=function(e,t){var n=Date.now();if(this.config.debug&&O.info("Creating next page ".concat(t,", interaction: ").concat(e.interaction+1)),this.config.legacySPASupport&&this.virtualPageLoadTimer){var r=this.virtualPageLoadTimer.latestInteractionTime;!this.resumed&&n-r<=this.TIMEOUT?(n=r,this.virtualPageLoadTimer.startTiming(),this.config.debug&&O.info("Started virtual page load timing for ".concat(t))):this.config.debug&&O.info("Skipped virtual page load timing for ".concat(t," (resumed: ").concat(this.resumed,", timeDiff: ").concat(n-r,"ms)"))}this.timeOnParentPage=n-e.start,this.resumed=!1,this.page={pageId:t,parentPageId:e.pageId,interaction:e.interaction+1,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:n}},e.prototype.createLandingPage=function(e){this.page={pageId:e,interaction:0,referrer:document.referrer,referrerDomain:this.getDomainFromReferrer(),start:Date.now()}},e.prototype.collectAttributes=function(e,t){var n;this.attributes={title:(null==(n=null==t?void 0:t.pageAttributes)?void 0:n.title)?t.pageAttributes.title:document.title,pageId:e.pageId},this.recordInteraction&&(this.attributes.interaction=e.interaction,void 0!==e.parentPageId&&(this.attributes.parentPageId=e.parentPageId)),(null==t?void 0:t.pageTags)&&(this.attributes.pageTags=t.pageTags),(null==t?void 0:t.pageAttributes)&&(this.attributes=ep(ep({},t.pageAttributes),this.attributes))},e.prototype.createPageViewEvent=function(e){var t={version:"1.0.0",pageId:e.pageId};return this.recordInteraction&&(t.interaction=e.interaction,t.pageInteractionId=e.pageId+"-"+e.interaction,void 0!==e.parentPageId&&(t.parentPageInteractionId=e.parentPageId+"-"+(e.interaction-1),t.timeOnParentPage=this.timeOnParentPage),t.referrer=document.referrer,t.referrerDomain=this.getDomainFromReferrer()),t},e.prototype.recordPageViewEvent=function(e){this.record(x,this.createPageViewEvent(e))},e.prototype.useCookies=function(){return navigator.cookieEnabled&&this.config.allowCookies},e.prototype.getDomainFromReferrer=function(){try{return new URL(document.referrer).hostname}catch(e){return"localhost"===document.referrer?document.referrer:""}},e}();(nE||(nE={})).EVENT="event";var ey=function(){function e(){this.subscribers=new Map}return e.prototype.subscribe=function(e,t){var n,r=null!=(n=this.subscribers.get(e))?n:[];r.length||this.subscribers.set(e,r),r.push(t)},e.prototype.unsubscribe=function(e,t){var n=this.subscribers.get(e);if(n){for(var r=0;r<n.length;r++)if(n[r]===t)return n.splice(r,1),!0}return!1},e.prototype.dispatch=function(e,t){var n=this.subscribers.get(e);if(n)for(var r=0;r<n.length;r++)(0,n[r])(t)},e}(),ev=function(){return(ev=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},eb=function(){function e(e,t,n){void 0===n&&(n=new ey);var r=this;this.eventBus=n,this.events=[],this.candidates=new Map,this.droppedEvent=0,this.sessionLimitExceeded=0,this.recordPageView=function(e){r.isCurrentUrlAllowed()&&r.pageManager.recordPageView(e)},this.recordEvent=function(e,t){r.enabled&&r.isCurrentUrlAllowed()&&(e!==C&&r.sessionManager.getSession(),r.sessionManager.canRecord()?(r.sessionManager.incrementSessionEventCount(),r.addRecordToCache(e,t)):r.config.debug&&r.sessionLimitExceeded++)},this.recordCandidate=function(e,t){var n=r.sessionManager.getSession();if(r.enabled&&r.isCurrentUrlAllowed()&&n.record){var i=r.createEvent(e,t)[0];if(r.candidates.has(e))return void r.candidates.set(e,i);r.candidates.size<r.config.candidatesCacheSize&&!r.sessionManager.isLimitExceeded()&&(r.candidates.set(e,i),r.sessionManager.incrementSessionEventCount())}}
1,this.getSession=function(){if(r.isCurrentUrlAllowed())return r.sessionManager.getSession()},this.addRecordToCache=function(e,t){if(r.enabled){if(r.events.length>=r.config.eventCacheSize){r.config.debug&&(r.droppedEvent+=1);return}var n=r.createEvent(e,t),i=n[0],o=n[1];r.eventBus.dispatch(nE.EVENT,o),r.events.push(i)}},this.createEvent=function(e,t){var n=ev(ev(ev({},r.sessionManager.getAttributes()),r.pageManager.getAttributes()),{version:"1.0.0","aws:client":r.installationMethod,"aws:clientVersion":"2.0.0"}),i={id:Q(),timestamp:new Date,type:e};return[ev(ev({},i),{details:JSON.stringify(t),metadata:JSON.stringify(n)}),ev(ev({},i),{details:t,metadata:n})]},this.appMonitorDetails=e,this.config=t,this.enabled=!0,this.pageManager=new eg(t,this.recordEvent),this.sessionManager=new ec(e,t,this.recordEvent,this.pageManager),this.installationMethod=t.client}return e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.isSessionSampled=function(){return this.sessionManager.isSampled()},e.prototype.hasEvents=function(){if(this.config.debug&&this.sessionLimitExceeded>0){var e=this.events.length+this.sessionLimitExceeded;this.sessionManager.isSampled()?O.warn("Dropped ".concat(this.sessionLimitExceeded," of ").concat(e," recently observed events (").concat((this.sessionLimitExceeded/e*100).toFixed(2),"%) because the session limit has exceeded. Consider increasing sessionEventLimit (currently ").concat(this.config.sessionEventLimit,") to ").concat(e," or more to avoid data loss.")):O.warn("Dropped ".concat(this.sessionLimitExceeded," of ").concat(e," recently observed events (").concat((this.sessionLimitExceeded/e*100).toFixed(2),"%) because current session is not sampled. Consider increasing sessionSampleRate (currently ").concat(this.config.sessionSampleRate,") to capture more user sessions.")),this.sessionLimitExceeded=0}return 0!==this.events.length},e.prototype.hasCandidates=function(){return 0!==this.candidates.size},e.prototype.getEventBatch=function(e){if(void 0===e&&(e=!1),this.config.debug&&this.droppedEvent>0){var t=this.events.length+this.droppedEvent;O.warn("Dropped ".concat(this.droppedEvent," of ").concat(t," recently observed events (").concat((this.droppedEvent/t*100).toFixed(2),"%) due to insufficient in-memory queue. Increase eventCacheSize to ").concat(t," (currently ").concat(this.config.eventCacheSize,") to avoid data loss.")),this.droppedEvent=0}var n=[];if(e&&this.hasCandidates())if(this.candidates.size<=this.config.batchLimit)n=Array.from(this.candidates.values()),this.candidates.clear();else for(var r=0,i=0,o=Array.from(this.candidates.keys());i<o.length;i++){var a=o[i];if(r++>=this.config.batchLimit)break;var s=this.candidates.get(a);s&&(n.push(s),this.candidates.delete(a))}return this.events.length&&(this.events.length<=this.config.batchLimit-n.length?(n.push.apply(n,this.events),this.events=[]):n.push.apply(n,this.events.splice(0,this.config.batchLimit-n.length))),n},e.prototype.getAppMonitorDetails=function(){return this.appMonitorDetails},e.prototype.getUserDetails=function(){return{userId:this.sessionManager.getUserId(),sessionId:this.sessionManager.getSession().sessionId}},e.prototype.addSessionAttributes=function(e){this.sessionManager.addSessionAttributes(e)},e.prototype.isCurrentUrlAllowed=function(){var e=document.location.toString(),t=this.config.pagesToExclude.some(function(t){return t.test(e)});return this.config.pagesToInclude.some(function(t){return t.test(e)})&&!t},e}();let em={},ew={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),em[e]=t,ew[t]=e}function eE(e){let t="";for(let n=0;n<e.byteLength;n++)t+=em[e[n]];return t}(ns=nS||(nS={})).HEADER="header",ns.QUERY="query",(nc=nT||(nT={})).HEADER="header",nc.QUERY="query",(nu=nx||(nx={})).HTTP="http",nu.HTTPS="https",(nf=nC||(nC={})).MD5="md5",nf.CRC32="crc32",nf.CRC32C="crc32c",nf.SHA1="sha1",nf.SHA256="sha256",(nl=nI||(nI={}))[nl.HEADER=0]="HEADER",nl[nl.TRAILER=1]="TRAILER",(nh=nA||(nA={})).PROFILE="profile",nh.SSO_SESSION="sso-session",nh.SERVICES="services",(nd=n_||(n_={})).HTTP_0_9="http/0.9",nd.HTTP_1_0="http/1.0",nd.TDS_8_0="tds/8.0";let eS=e=>{if("function"==typeof e)return e;let t=Promise.resolve(e);return()=>t},eT=e=>encodeURIComponent(e).replace(/[!'()*]/g,ex),ex=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,eC=e=>
1new TextEncoder().encode(e),eI=e=>"string"==typeof e?eC(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),eA="X-Amz-Date",e_="X-Amz-Signature",eO="X-Amz-Security-Token",eP="authorization",eL=eA.toLowerCase(),ek=[eP,eL,"date"],eR=e_.toLowerCase(),eB="x-amz-content-sha256",eU=eO.toLowerCase(),ej={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},eM=/^proxy-/,eD=/^sec-/,eH="AWS4-HMAC-SHA256",eq="aws4_request",eN={},eF=[],e$=(e,t,n)=>`${e}/${t}/${n}/${eq}`,ez=async(e,t,n,r,i)=>{let o=await eV(e,t.secretAccessKey,t.accessKeyId),a=`${n}:${r}:${i}:${eE(o)}:${t.sessionToken}`;if(a in eN)return eN[a];for(eF.push(a);eF.length>50;)delete eN[eF.shift()];let s=`AWS4${t.secretAccessKey}`;for(let t of[n,r,i,eq])s=await eV(e,s,t);return eN[a]=s},eV=(e,t,n)=>{let r=new e(t);return r.update(eI(n)),r.digest()},eW=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){if(void 0==e[i])continue;let o=i.toLowerCase();(!(o in ej||t?.has(o)||eM.test(o)||eD.test(o))||n&&(!n||n.has(o)))&&(r[o]=e[i].trim().replace(/\s+/g," "))}return r},eK=async({headers:e,body:t},n)=>{for(let t of Object.keys(e))if(t.toLowerCase()===eB)return e[t];if(void 0==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(t)){let e=new n;return e.update(eI(t)),eE(await e.digest())}return"UNSIGNED-PAYLOAD"};class eG{format(e){let t=[];for(let n of Object.keys(e)){let r=eC(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}let n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),r=0;for(let e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([+!e.value]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":let i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(i.buffer);return o.set(e.value,3),o;case"string":let a=eC(e.value),s=new DataView(new ArrayBuffer(3+a.byteLength));s.setUint8(0,7),s.setUint16(1,a.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(a,3),c;case"timestamp":let u=new Uint8Array(9);return u[0]=8,u.set(eZ.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!eX.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let f=new Uint8Array(17);return f[0]=9,f.set(function(e){if(e.length%2!=0)throw Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){let r=e.slice(n,n+2).toLowerCase();if(r in ew)t[n/2]=ew[r];else throw Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t}(e.value.replace(/\-/g,"")),1),f}}}(np=nO||(nO={}))[np.boolTrue=0]="boolTrue",np[np.boolFalse=1]="boolFalse",np[np.byte=2]="byte",np[np.short=3]="short",np[np.integer=4]="integer",np[np.long=5]="long",np[np.byteArray=6]="byteArray",np[np.string=7]="string",np[np.timestamp=8]="timestamp",np[np.uuid=9]="uuid";let eX=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class eZ{constructor(e){if(this.bytes=e,8!==e.byteLength)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let n=7,r=Math.abs(Math.round(e));n>-1&&r>0;n--,r/=256)t[n]=r;return e<0&&eJ(t),new eZ(t)}valueOf(){let e=this.bytes.slice(0),t=128&e[0];return t&&eJ(e),parseInt(eE(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function eJ(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class eY{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){var t;let n=new eY({...e,headers:{...e.headers}});return n.query&&(n.query=Object.keys(t=n.query).reduce((e,n)=>{let r=t[n];return{...e,[n]:Array.isArray(r)?[...r]:r}},{})),n}static isInstance(e){return!!e&&"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&"object"==typeof e.query&&"object"==typeof e.headers}clone(){return eY.clone(this)}}class eQ{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){return!!e&&"number"==typeof e.statusCode&&"object"==typeof e.headers}}let e0=e=>{for(let t of Object.keys((e=eY.clone(e)).headers))ek.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};class e1{constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:i,uriEscapePath:o=!0}){this.headerFormatter=new eG,this.service=r,this.sha256=i,this.uriEscapePath=o,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=eS(n),this.credentialProvider=eS(t)}async presign(e,t={}
1){let{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:i,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:s,signingRegion:c,signingService:u}=t,f=await this.credentialProvider();this.validateResolvedCredentials(f);let l=c??await this.regionProvider(),{longDate:h,shortDate:d}=e2(n);if(r>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let p=e$(d,l,u??this.service),g=((e,t={})=>{let{headers:n,query:r={}}=eY.clone(e);for(let e of Object.keys(n)){let i=e.toLowerCase();("x-amz-"===i.slice(0,6)&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}})(e0(e),{unhoistableHeaders:o,hoistableHeaders:s});f.sessionToken&&(g.query[eO]=f.sessionToken),g.query["X-Amz-Algorithm"]=eH,g.query["X-Amz-Credential"]=`${f.accessKeyId}/${p}`,g.query[eA]=h,g.query["X-Amz-Expires"]=r.toString(10);let y=eW(g,i,a);return g.query["X-Amz-SignedHeaders"]=e6(y),g.query[e_]=await this.getSignature(h,p,this.getSigningKey(f,l,d,u),this.createCanonicalRequest(g,y,await eK(e,this.sha256))),g}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:i,signingService:o}){let a=i??await this.regionProvider(),{shortDate:s,longDate:c}=e2(n),u=e$(s,a,o??this.service),f=await eK({headers:{},body:t},this.sha256),l=new this.sha256;l.update(e);let h=["AWS4-HMAC-SHA256-PAYLOAD",c,u,r,eE(await l.digest()),f].join("\n");return this.signString(h,{signingDate:n,signingRegion:a,signingService:o})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r}={}){let i=await this.credentialProvider();this.validateResolvedCredentials(i);let o=n??await this.regionProvider(),{shortDate:a}
1=e2(t),s=new this.sha256(await this.getSigningKey(i,o,a,r));return s.update(eI(e)),eE(await s.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:i,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let s=i??await this.regionProvider(),c=e0(e),{longDate:u,shortDate:f}=e2(t),l=e$(f,s,o??this.service);c.headers[eL]=u,a.sessionToken&&(c.headers[eU]=a.sessionToken);let h=await eK(c,this.sha256);!((e,t)=>{for(let n of(e=e.toLowerCase(),Object.keys(t)))if(e===n.toLowerCase())return!0;return!1})(eB,c.headers)&&this.applyChecksum&&(c.headers[eB]=h);let d=eW(c,r,n),p=await this.getSignature(u,l,this.getSigningKey(a,s,f,o),this.createCanonicalRequest(c,d,h));return c.headers[eP]=`${eH} Credential=${a.accessKeyId}/${l}, SignedHeaders=${e6(d)}, Signature=${p}`,c}createCanonicalRequest(e,t,n){let r=Object.keys(t).sort();return`${e.method}
2${this.getCanonicalPath(e)}
3${(({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e)){if(r.toLowerCase()===eR)continue;let i=eT(r);t.push(i);let o=e[r];"string"==typeof o?n[i]=`${i}=${eT(o)}`:Array.isArray(o)&&(n[i]=o.slice(0).reduce((e,t)=>e.concat([`${i}=${eT(t)}`]),[]).sort().join("&"))}return t.sort().map(e=>n[e]).filter(e=>e).join("&")})(e)}
4${r.map(e=>`${e}:${t[e]}`).join("\n")}
5
6${r.join(";")}
7${n}`}async createStringToSign(e,t,n){let r=new this.sha256;r.update(eI(n));let i=await r.digest();return`${eH}
8${e}
9${t}
10${eE(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let n of e.split("/"))n?.length!==0&&"."!==n&&(".."===n?t.pop():t.push(n));return eT(`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`).replace(/%2F/g,"/")}return e}async getSignature(e,t,n,r){let i=await this.createStringToSign(e,t,r),o=new this.sha256(await n);return o.update(eI(i)),eE(await o.digest())}getSigningKey(e,t,n,r){return ez(this.sha256,e,n,t,r||this.service)}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw Error("Resolved credential object is not valid")}}let e2=e=>{var t;let n=("number"==typeof(t=e)?new Date(1e3*t):"string"==typeof t?new Date(Number(t)?1e3*Number(t):t):t).toISOString().replace(/\.\d{3}Z$/,"Z").replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}},e6=e=>Object.keys(e).sort().join(";");var e3=n(65711),e5=function(){return(e5=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},e8=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},e4=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){var u=[s,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},e9={expiresIn:60},e7=function(e){var t=this;this.sendFetch=function(e){return e8(t,void 0,void 0,function(){var t;return e4(this,function(n){switch(n.label){case 0:return[4,this.getHttpRequestOptions(e,"application/json")];case 1:if(t=new eY(n.sent()),!this.awsSigV4)return[3,3];return[4,this.awsSigV4.sign(t)];case 2:t=n.sent(),n.label=3;case 3:return[2,this.config.fetchRequestHandler.handle(t)]}})})},this.sendBeacon=function(e){return e8(t,void 0,void 0,function(){var t;return e4(this,function(n){switch(n.label){case 0:return[4,this.getHttpRequestOptions(e,"text/plain;charset=UTF-8")];case 1:if(t=new eY(n.sent()),!this.awsSigV4)return[3,3];return[4,this.awsSigV4.presign(t,e9)];case 2:t=n.sent(),n.label=3;case 3:return[2,this.config.beaconRequestHandler.handle(t)]}})})},this.getHttpRequestOptions=function(e,n){return e8(t,void 0,void 0,function(){var t,r,i,o,a,s,c,u;return e4(this,function(f){switch(f.label){case 0:if(t=JSON.stringify(te(e)),r=this.config.endpoint.pathname.replace(/\/$/,""),i={method:"POST",protocol:this.config.endpoint.protocol,port:Number(this.config.endpoint.port)||void 0,headers:e5({"content-type":n,host:this.config.endpoint.host},this.config.headers),hostname:this.config.endpoint.hostname,path:"".concat(r,"/appmonitors/").concat(e.AppMonitorDetails.id),body:t},!this.awsSigV4)return[3,2];return o=[e5({},i)],c={},a=[e5({},i.headers)],u={}
10,s="X-Amz-Content-Sha256",[4,tn(t)];case 1:return[2,e5.apply(void 0,o.concat([(c.headers=e5.apply(void 0,a.concat([(u[s]=f.sent(),u)])),c)]))];case 2:return[2,i]}})})},this.config=e,e.credentials&&(this.awsSigV4=new e1({applyChecksum:!0,credentials:e.credentials,region:e.region,service:"rum",uriEscapePath:!0,sha256:e3.Sha256}))},te=function(e){var t=[];e.RumEvents.forEach(function(e){return t.push(tt(e))});var n={BatchId:e.BatchId,AppMonitorDetails:e.AppMonitorDetails,UserDetails:e.UserDetails,RumEvents:t};return e.Alias&&(n=e5(e5({},n),{Alias:e.Alias})),n},tt=function(e){return{id:e.id,timestamp:Math.round(e.timestamp.getTime()/1e3),type:e.type,metadata:e.metadata,details:e.details}},tn=function(e){return e8(void 0,void 0,void 0,function(){var t,n;return e4(this,function(r){switch(r.label){case 0:return(t=new e3.Sha256).update(e),n=eE,[4,t.digest()];case 1:return[2,n.apply(void 0,[r.sent()]).toLowerCase()]}})})};let tr=e=>encodeURIComponent(e).replace(/[!'()*]/g,ti),ti=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function to(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=tr(n),Array.isArray(r))for(let e=0,i=r.length;e<i;e++)t.push(`${n}=${tr(r[e])}`);else{let e=n;(r||"string"==typeof r)&&(e+=`=${tr(r)}`),t.push(e)}}return t.join("&")}for(var ta=function(){function e(){}return e.prototype.handle=function(e){var t=this.sendBeacon(e);return new Promise(function(e,n){t?e({response:new eQ({statusCode:200})}):n()})},e.prototype.updateHttpClientConfig=function(e,t){},e.prototype.httpHandlerConfigs=function(){return{}},e.prototype.sendBeacon=function(e){var t=e.path;if(e.query){var n=to(e.query);n&&(t+="?".concat(n))}var r=e.port,i="".concat(e.protocol,"//").concat(e.hostname).concat(r?":".concat(r):"").concat(t);return navigator.sendBeacon(i,e.body)},e}(),ts=function(){function e(e){var t=void 0===e?{}:e,n=t.fetchFunction,r=t.requestTimeout;this.requestTimeout=r,this.fetchFunction=n}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n,r=(void 0===t?{}:t).abortSignal,i=this.requestTimeout;if(null==r?void 0:r.aborted){var o=Error("Request aborted");return o.name="AbortError",Promise.reject(o)}var a=e.path;if(e.query){var s=to(e.query);s&&(a+="?".concat(s))}var c=e.port,u=e.method,f="".concat(e.protocol,"//").concat(e.hostname).concat(c?"
10:".concat(c):"").concat(a),l={body:"GET"===u||"HEAD"===u?void 0:e.body,headers:new Headers(e.headers),method:u};"u">typeof AbortController&&(l.signal=r);var h=new Request(f,l),d=[this.fetchFunction.apply(window,[h]).then(function(e){for(var t=e.headers,n={},r=0,i=t.entries();r<i.length;r++){var o=i[r];n[o[0]]=o[1]}return void 0===e.body?e.blob().then(function(t){return{response:new eQ({headers:n,statusCode:e.status,body:t})}}):{response:new eQ({headers:n,statusCode:e.status,body:e.body})}}),(void 0===(n=i)&&(n=0),new Promise(function(e,t){n&&setTimeout(function(){var e=Error("Request did not complete within ".concat(n," ms"));e.name="TimeoutError",t(e)},n)}))];return r&&d.push(new Promise(function(e,t){r.onabort=function(){var e=Error("Request aborted");e.name="AbortError",t(e)}})),Promise.race(d)},e.prototype.updateHttpClientConfig=function(e,t){},e.prototype.httpHandlerConfigs=function(){return{}},e}(),tc=function(e){if(crypto)return crypto.getRandomValues(e);if(msCrypto)return msCrypto.getRandomValues(e);throw Error("No crypto library found.")},tu=[],tf=0;tf<256;tf++)tu[tf]=(tf+256).toString(16).substr(1);var tl="X-Amzn-Trace-Id",th="traceparent",td=function(e,t){return Array.isArray(t)?t.some(function(t){return t.test(e)}):t},tp={logicalServiceName:"rum.aws.amazon.com",urlsToInclude:[/.*/],urlsToExclude:[/cognito\-identity\.([^\.]*\.)?amazonaws\.com/,/sts\.([^\.]*\.)?amazonaws\.com/],stackTraceLength:200,recordAllRequests:!1,addXRayTraceIdHeader:!1},tg=function(e){return 4===Math.floor(e/100)},ty=function(e){return 5===Math.floor(e/100)},tv=function(e){return 429===e},tb=function(e,t){var n=t.urlsToInclude.some(function(t){return t.test(e)}),r=t.urlsToExclude.some(function(t){return t.test(e)});return n&&!r},tm=function(){return Date.now()/1e3},tw=function(e,t,n){var r={request:{}};return r.request.method=(null==t?void 0:t.method)?t.method:"GET",r.request.traced=n,r.request.url=tO(e),r},tE=function(e,t,n,r){var i={version:"1.0.0",name:e,origin:"AWS::RUM::AppMonitor",id:tk(),start_time:t,trace_id:n?tL():tP(),end_time:void 0,subsegments:[],in_progress:!1};return r&&(i.http=r),i},tS=function(e,t,n){var r={id:tk(),name:e,start_time:t,end_time:void 0,in_progress:!1,namespace:e.endsWith("amazonaws.com")?"aws":"remote"};return n&&(r.http=n),r},tT=function(e){try{if(e.hostname)return e.hostname;if(e.url)return new URL(e.url).hostname;return new URL(e.toString()).hostname}catch(e){return window.location.hostname}},tx=function(e,t,n,r){e.headers||(e.headers={}),r?e.headers[th]=tA(t,n):e.headers[tl]=tI(t,n)},tC=function(e,t,n,r){r?e.set(th,tA(t,n)):e.set(tl,tI(t,n))},tI=function(e,t){return"Root="+e+";Parent="+t+";Sampled=1"},tA=function(e,t){return"00-"+e+"-"+t+"-01"},t_=function(e,t){var n,r,i={};if(e)if(t){var o,a=null==(n=e.get(th))?void 0:n.split("-");a&&(null==(o=a)?void 0:o.length)===4&&2===o[0].length&&32===o[1].length&&16===o[2].length&&("00"===o[3]||"01"===o[3])&&(i.traceId=a[1],i.segmentId=a[2])}else{var a=null==(r=e.get(tl))?void 0:r.split(";");(null==a?void 0:a.length)===3&&(i.traceId=a[0].split("Root=")[1],i.segmentId=a[1].split("Parent=")[1])}return i},tO=function(e){return e.url?e.url:e.toString()},tP=function(){return"1-".concat(tR(),"-").concat(tB())},tL=function(){var e=new Uint8Array(16);return tc(e),"".concat(tU(e))},tk=function(){var e=new Uint8Array(8);return tc(e),tU(e)},tR=function(){return Math.floor(Date.now()/1e3).toString(16)},tB=function(){var e=new Uint8Array(12);return tc(e),tU(e)},tU=function(e){for(var t="",n=0;n<e.length;n++)t+=tu[e[n]];return t},tj=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},tM=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){var u=[s,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},tD=function(){function e(e,t,n){void 0===n&&(n=function(e){return 2e3*Math.pow(2,e-1)}),this.handler=e,this.retries=t,this.backoff=n}return e.prototype.handle=function(e){return tj(this,void 0,void 0,function(){var t,n,r;return tM(this,function(i){switch(i.label){case 0:t=this.retries,i.label=1;case 1:i.label=2;case 2:return i.trys.push([2,4,,6]),[4,this.handler.handle(e)];case 3:var o;if(200<=(o=(n=i.sent()).response.statusCode)&&o<300)return[2,n];throw n.response.statusCode;case 4:if("number"==typeof(r=i.sent())&&!tv(r)&&!ty(r))throw Error("".concat(r));if(t<=0)throw r;return t--,[4,this.sleep(this.backoff(this.retries-t))];case 5:return i.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})},e.prototype.sleep=function(e){return tj(this,void 0,void 0,function(){return tM(this,function(t){return[2,new Promise(function(t){return setTimeout(t,e)})]})})},e.prototype.updateHttpClientConfig=function(e,t){},e.prototype.httpHandlerConfigs=function(){return{}},e}();
10function tH(e,t){return new Request(e,t)}let tq={supported:void 0};class tN{static create(e){return"function"==typeof e?.handle?e:new tN(e)}constructor(e){"function"==typeof e?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),void 0===tq.supported&&(tq.supported=!!("u">typeof Request&&"keepalive"in tH("https://[::1]")))}destroy(){}async handle(e,{abortSignal:t}={}){this.config||(this.config=await this.configProvider);let n=this.config.requestTimeout,r=!0===this.config.keepAlive,i=this.config.credentials;if(t?.aborted){let e=Error("Request aborted");return e.name="AbortError",Promise.reject(e)}let o=e.path,a=function(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=eT(n),Array.isArray(r))for(let e=0,i=r.length;e<i;e++)t.push(`${n}=${eT(r[e])}`);else{let e=n;(r||"string"==typeof r)&&(e+=`=${eT(r)}`),t.push(e)}}return t.join("&")}(e.query||{});a&&(o+=`?${a}`),e.fragment&&(o+=`#${e.fragment}`);let s="";if(null!=e.username||null!=e.password){let t=e.username??"",n=e.password??"";s=`${t}:${n}@`}let{port:c,method:u}=e,f=`${e.protocol}//${s}${e.hostname}${c?`:${c}`:""}${o}`,l="GET"===u||"HEAD"===u?void 0:e.body,h={body:l,headers:new Headers(e.headers),method:u,credentials:i};this.config?.cache&&(h.cache=this.config.cache),l&&(h.duplex="half"),"u">typeof AbortController&&(h.signal=t),tq.supported&&(h.keepalive=r),"function"==typeof this.config.requestInit&&Object.assign(h,this.config.requestInit(e));let d=()=>{},p=[fetch(tH(f,h)).then(e=>{let t=e.headers,n={};for(let e of t.entries())n[e[0]]=e[1];return void 0==e.body?e.blob().then(t=>({response:new eQ({headers:n,reason:e.statusText,statusCode:e.status,body:t})})):{response:new eQ({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}}),function(e=0){return new Promise((t,n)=>{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",n(t)},e)})}(n)];return t&&p.push(new Promise((e,n)=>{let r=()=>{let e=Error("Request aborted");e.name="AbortError",n(e)};"function"==typeof t.addEventListener?(t.addEventListener("abort",r,{once:!0}),d=()=>t.removeEventListener("abort",r)):t.onabort=r})),Promise.race(p).finally(d)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}httpHandlerConfigs(){return this.config??{}}}let tF={}
10,t$=Array(64);for(let e=0;e+65<=90;e++){let t=String.fromCharCode(e+65);tF[t]=e,t$[e]=t}for(let e=0;e+97<=122;e++){let t=String.fromCharCode(e+97),n=e+26;tF[t]=n,t$[n]=t}for(let e=0;e<10;e++){tF[e.toString(10)]=e+52;let t=e.toString(10),n=e+52;tF[t]=n,t$[n]=t}tF["+"]=62,t$[62]="+",tF["/"]=63,t$[63]="/";var tz=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},tV=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){var u=[s,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},tW=function(e){return tz(void 0,void 0,void 0,function(){var t;return tV(this,function(n){switch(n.label){case 0:return[4,e.body.getReader().read()];case 1:return t=n.sent().value,[2,JSON.parse(String.fromCharCode.apply(null,t))]}})})},tK=function(){return(tK=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},tG=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){var u=[s,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},tX=function(e){var t=this;this.assumeRoleWithWebIdentity=function(e){var n,r,i;return n=void 0,r=void 0,i=function(){var t,n,r,i;return tG(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),t=new URLSearchParams(Object.entries(tK(tK({},e),{Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}))).toString(),n=new eY({method:"POST",headers:{"content-type":"application/x-www-form-urlencoded",host:this.hostname},protocol:"https:",hostname:this.hostname,body:t}),[4,this.fetchRequestHandler.handle(n)];case 1:var a;return[4,(a=o.sent().response,tz(void 0,void 0,void 0,function(){var e;return tV(this,function(t){switch(t.label){case 0:return[4,a.body.getReader().read()];case 1:return e=t.sent().value,[2,String.fromCharCode.apply(null,e)]}})}))];case 2:return[2,{accessKeyId:(r=o.sent()).split("<AccessKeyId>")[1].split("</AccessKeyId>")[0],secretAccessKey:r.split("<SecretAccessKey>")[1].split("</SecretAccessKey>")[0],sessionToken:r.split("<SessionToken>")[1].split("</SessionToken>")[0],expiration:new Date(r.split("<Expiration>")[1].split("</Expiration>")[0])}];case 3:throw i=o.sent(),Error("CWR: Failed to retrieve credentials from STS: ".concat(i));case 4:return[2]}})},new(r||(r=Promise))(function(e,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(a,s)}c((i=i.apply(t,n||[])).next())})},this.hostname="sts.".concat(e.region,".amazonaws.com"),this.fetchRequestHandler=e.fetchRequestHandler}
10,tZ=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},tJ=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){var u=[s,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},tY=function(e){var t,n=this;this.getId=function(e){return tZ(n,void 0,void 0,function(){var t,n,r,i,o,a,s,c;return tJ(this,function(u){switch(u.label){case 0:t=null;try{t=JSON.parse(localStorage.getItem(this.identityStorageKey))}catch(e){(null==(s=this.config)?void 0:s.debug)&&O.error("Failed to parse stored identity:",e)}if(t&&t.IdentityId)return[2,Promise.resolve(t)];u.label=1;case 1:return u.trys.push([1,4,,5]),n=JSON.stringify(e),r=this.getHttpRequest("AWSCognitoIdentityService.GetId",n),o=tW,[4,this.fetchRequestHandler.handle(r)];case 2:return[4,o.apply(void 0,[u.sent().response])];case 3:i=u.sent();try{localStorage.setItem(this.identityStorageKey,JSON.stringify({IdentityId:i.IdentityId}))}catch(e){(null==(c=this.config)?void 0:c.debug)&&O.error("Failed to store identity:",e)}return[2,i];case 4:throw a=u.sent(),Error("CWR: Failed to retrieve Cognito identity: ".concat(a));case 5:return[2]}})})},this.getOpenIdToken=function(e){return tZ(n,void 0,void 0,function(){var t,n,r,i,o;return tJ(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),t=JSON.stringify(e),n=this.getHttpRequest("AWSCognitoIdentityService.GetOpenIdToken",t),[4,this.fetchRequestHandler.handle(n)];case 1:return r=a.sent().response,i=this.validateOpenIdTokenResponse,[4,tW(r)];case 2:return[2,i.apply(this,[a.sent()])];case 3:throw o=a.sent(),localStorage.removeItem(this.identityStorageKey),Error("CWR: Failed to retrieve Cognito OpenId token: ".concat(o));case 4:return[2]}})})},this.getCredentialsForIdentity=function(e){return tZ(n,void 0,void 0,function(){var t,n,r,i,o,a,s,c;return tJ(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),t=JSON.stringify({IdentityId:e}),n=this.getHttpRequest("AWSCognitoIdentityService.GetCredentialsForIdentity",t),[4,this.fetchRequestHandler.handle(n)];case 1:return r=u.sent().response,s=this.validateCredenentialsResponse,[4,tW(r)];case 2:return o=(i=s.apply(this,[u.sent()])).AccessKeyId,a=i.Expiration,[2,{accessKeyId:o,secretAccessKey:i.SecretKey,sessionToken:i.SessionToken,expiration:new Date(1e3*a)}];case 3:throw c=u.sent(),localStorage.removeItem(this.identityStorageKey),Error("CWR: Failed to retrieve credentials for Cognito identity: ".concat(c));case 4:return[2]}})})},this.validateOpenIdTokenResponse=function(e){if("IdentityId"in e&&"Token"in e)return e;if(e&&"__type"in e&&"message"in e)throw Error("".concat(e.__type,": ").concat(e.message));throw Error("Unknown OpenIdToken response")},this.validateCredenentialsResponse=function(e){if("IdentityId"in e&&"Credentials"in e)return e.Credentials;if(e&&"__type"in e&&"message"in e)throw Error("".concat(e.__type,": ").concat(e.message));throw Error("Unknown Credentials response")},this.getHttpRequest=function(e,t){return new eY({method:"POST",headers:{"content-type":"application/x-amz-json-1.1","x-amz-target":e},protocol:"https:",hostname:n.hostname,body:t})},this.hostname="cognito-identity.".concat(e.region,".amazonaws.com"),this.fetchRequestHandler=e.fetchRequestHandler,this.config=e.clientConfig,this.identityStorageKey=(null==(t=e.clientConfig)?void 0:t.cookieAttributes.unique)?"".concat(en,"_").concat(e.applicationId):en},tQ=function(){return(tQ=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}
10,t0=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},t1=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){var u=[s,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},t2=function(){function e(e,t){var n=this;this.ChainAnonymousCredentialsProvider=function(){return t0(n,void 0,void 0,function(){return t1(this,function(e){return[2,this.AnonymousCredentialsProvider().catch(this.AnonymousStorageCredentialsProvider).catch(this.AnonymousCognitoCredentialsProvider)]})})},this.AnonymousCredentialsProvider=function(){return t0(n,void 0,void 0,function(){var e=this;return t1(this,function(t){return[2,new Promise(function(t,n){if(e.renewCredentials())return n();t(e.credentials)})]})})},this.AnonymousStorageCredentialsProvider=function(){return t0(n,void 0,void 0,function(){var e=this;return t1(this,function(t){return[2,new Promise(function(t,n){var r;try{r=JSON.parse(localStorage.getItem(e.credentialStorageKey))}catch(e){return n()}if(e.credentials=tQ(tQ({},r),{expiration:new Date(r.expiration)}),e.renewCredentials())return n();t(e.credentials)})]})})};var r=e.identityPoolId.split(":")[0];this.config=e,this.cognitoIdentityClient=new tY({fetchRequestHandler:new tN,region:r,clientConfig:e,applicationId:t}),this.credentialStorageKey=this.config.cookieAttributes.unique?"".concat(et,"_").concat(t):et}return e.prototype.renewCredentials=function(){if(!this.credentials||!this.credentials.expiration)return!0;var e=new Date(this.credentials.expiration.getTime()-3e4);return new Date>e},e}(),t6=(ng=function(e,t){return(ng=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ng(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),t3=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){var u=[s,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},t5=function(e){function t(t,n){var r=e.call(this,t,n)||this;r.AnonymousCognitoCredentialsProvider=function(){var e,t,n;return e=void 0,t=void 0,n=function(){var e,t,n,r,i;return t3(this,function(o){switch(o.label){case 0:e=1,o.label=1;case 1:o.label=2;case 2:return o.trys.push([2,6,,7]),[4,this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId})];case 3:return t=o.sent(),[4,this.cognitoIdentityClient.getOpenIdToken(t)];case 4:return n=o.sent(),[4,this.stsClient.assumeRoleWithWebIdentity({RoleArn:this.config.guestRoleArn,RoleSessionName:"
10cwr",WebIdentityToken:n.Token})];case 5:r=o.sent(),this.credentials=r;try{localStorage.setItem(this.credentialStorageKey,JSON.stringify(r))}catch(e){}return this.config.debug&&O.info("AWS credentials fetched successfully"),[2,r];case 6:if(i=o.sent(),e)e--,this.config.debug&&O.warn("AWS credential fetch failed, retrying");else throw this.config.debug&&O.error("AWS credential fetch failed:",i),i;return[3,7];case 7:return[3,1];case 8:return[2]}})},new(t||(t=Promise))(function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?i(e.value):((n=e.value)instanceof t?n:new t(function(e){e(n)})).then(a,s)}c((n=n.apply(r,e||[])).next())})};var i=t.identityPoolId.split(":")[0];return r.stsClient=new tX({fetchRequestHandler:new tN,region:i}),r}return t6(t,e),t}(t2),t8=(ny=function(e,t){return(ny=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ny(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),t4=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){var u=[s,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},t9=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.AnonymousCognitoCredentialsProvider=function(){var e,t,n;return e=void 0,t=void 0,n=function(){var e,t,n,r;return t4(this,function(i){switch(i.label){case 0:e=1,i.label=1;case 1:i.label=2;case 2:return i.trys.push([2,5,,6]),[4,this.cognitoIdentityClient.getId({IdentityPoolId:this.config.identityPoolId})];case 3:return t=i.sent(),[4,this.cognitoIdentityClient.getCredentialsForIdentity(t.IdentityId)];case 4:n=i.sent(),this.credentials=n;try{localStorage.setItem(this.credentialStorageKey,JSON.stringify(n))}catch(e){}return this.config.debug&&O.info("AWS credentials fetched successfully"),[2,n];case 5:if(r=i.sent(),e)e--,this.config.debug&&O.warn("AWS credential fetch failed, retrying");else throw this.config.debug&&O.error("AWS credential fetch failed:",r),r;return[3,6];case 6:return[3,1];case 7:return[2]}})},new(t||(t=Promise))(function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?i(e.value):((n=e.value)instanceof t?n:new t(function(e){e(n)})).then(a,s)}c((n=n.apply(r,e||[])).next())})},r}return t8(t,e),t}(t2),t7=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})},ne=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){var u=[s,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},nt="CWR: Cannot dispatch; no AWS credentials.",nn=function(){function e(e,t,n,r,i){var o=this;this.disableCodes=["403","404"],this.shouldPurgeCredentials=!0,this.dispatchFetch=function(){return t7(o,void 0,void 0,function(){var e;return ne(this,function(t){return this.doRequest()?(e=this.createRequest(),this.config.debug&&O.info("Dispatching ".concat(e.RumEvents.length," events via fetch")),[2,this.rum.sendFetch(e).catch(this.handleReject)]):[2]})})},this.dispatchBeacon=function(){return t7(o,void 0,void 0,function(){var e,t=this;return ne(this,function(n){return this.doRequest()?(e=this.createRequest(),this.config.debug&&O.info("Dispatching ".concat(e.RumEvents.length," events via beacon")),[2,this.rum.sendBeacon(e).catch(function(){return t.rum.sendFetch(e)})]):[2]})})},this.dispatchFetchFailSilent=function(){return t7(o,void 0,void 0,function(){var e=this;return ne(this,function(t){return[2,this.dispatchFetch().catch(function(t){e.config.debug&&O.error("Dispatch fetch failed silently:",t)})]})})},this.dispatchBeaconFailSilent=function(){return t7(o,void 0,void 0,function(){var e=this;return ne(this,function(t){return[2,this.dispatchBeacon().catch(function(t){e.config.debug&&O.error("Dispatch beacon failed silently:",t)})]})})},this.flushSync=function(){var e;if("hidden"===document.visibilityState&&o.doRequest(!0)){var t=o.rum.sendBeacon,n=o.rum.sendFetch;o.config.useBeacon||(t=(e=[n,t])[0],n=e[1]);var r=o.createRequest(!0);o.config.debug&&O.debug("Flushing ".concat(r.RumEvents.length," events on page hide")),t(r).catch(function(){return n(r)}).catch(function(e){o.config.debug&&O.error("Page hide flush failed:",e)})}},this.handleReject=function(e){throw e instanceof Error&&("403"===e.message&&o.config.signing&&o.shouldPurgeCredentials?(o.shouldPurgeCredentials=!1,o.forceRebuildClient()):o.disableCodes.includes(e.message)&&(o.config.debug&&O.error("Dispatch failed with status code:",e.message),o.disable())),e},this.defaultClientBuilder=function(e,t,n){return new e7({fetchRequestHandler:new tD(new ts({fetchFunction:o.config.fetchFunction}),o.config.retries),beaconRequestHandler:new ta,endpoint:e,region:t,credentials:n,headers:o.headers})},this.applicationId=e,this.region=t,this.endpoint=n,this.eventCache=r,this.enabled=!0,this.buildClient=i.clientBuilder||this.defaultClientBuilder,this.config=i,this.headers=i.headers,this.startDispatchTimer(),i.signing?this.rum={sendFetch:function(){return Promise.reject(Error(nt))},sendBeacon:function(){return Promise.reject(Error(nt))}}:this.rum=this.buildClient(this.endpoint,this.region,void 0),this.credentialStorageKey=this.config.cookieAttributes.unique?"".concat(et,"_").concat(e):et,this.identityStorageKey=this.config.cookieAttributes.unique?"".concat(en,"_").concat(e):en}return e.prototype.enable=function(){this.enabled=!0,this.startDispatchTimer()},e.prototype.disable=function(){this.stopDispatchTimer(),this.enabled=!1,this.config.debug&&O.warn("Dispatch disabled")},e.prototype.setAwsCredentials=function(e){this.credentialProvider=e,this.rum=this.buildClient(this.endpoint,this.region,e),"function"==typeof e&&e()},e.prototype.setCognitoCredentials=function(e,t){e&&t?this.setAwsCredentials(new t5(this.config,this.applicationId).ChainAnonymousCredentialsProvider):this.setAwsCredentials(new t9(this.config,this.applicationId).ChainAnonymousCredentialsProvider)},e.prototype.startDispatchTimer=function(){document.addEventListener("visibilitychange",this.flushSync),document.addEventListener("pagehide",this.flushSync),this.config.dispatchInterval<=0||this.dispatchTimerId||(this.dispatchTimerId=window.setInterval(this.dispatchFetchFailSilent,this.config.dispatchInterval))},e.prototype.stopDispatchTimer=function(){document.removeEventListener("visibilitychange",this.flushSync),document.removeEventListener("pagehide",this.flushSync),this.dispatchTimerId&&(window.clearInterval(this.dispatchTimerId),this.dispatchTimerId=void 0)},e.prototype.doRequest=function(e){return void 0===e&&(e=!1),!!this.enabled&&(!!(e&&this.eventCache.hasCandidates())||this.eventCache.hasEvents())},e.prototype.createRequest=function(e){return void 0===e&&(e=!1),{BatchId:Q(),AppMonitorDetails:this.eventCache.getAppMonitorDetails(),UserDetails:this.eventCache.getUserDetails(),RumEvents:this.eventCache.getEventBatch(e),Alias:this.config.alias}},e.prototype.forceRebuildClient=function(){O.warn("Removing credentials from local storage"),localStorage.removeItem(this.credentialStorageKey),this.config.identityPoolId?(O.info("Rebuilding client with fresh cognito credentials"),localStorage.removeItem(this.identityStorageKey),this.setCognitoCredentials(this.config.identityPoolId,this.config.guestRoleArn)):this.credentialProvider&&(O.info("Rebuilding client with most recently passed provider"),this.setAwsCredentials(this.credentialProvider))},e}();(nv=nP||(nP={})).OTHER="other",nv.STYLESHEET="stylesheet",nv.DOCUMENT="document",nv.SCRIPT="script",nv.IMAGE="image",nv.FONT="font",(nb=nL||(nL={})).IMG="img",nb.IMAGE="image",nb.INPUT="input",nb.IFRAME="iframe",nb.FRAME="frame",nb.SCRIPT="script",nb.CSS="css";var nr,ni,no,na,ns,nc,nu,nf,nl,nh,nd,np,ng,ny,nv,nb,nm,nw,nE,nS,nT,nx,nC,nI,nA,n_,nO,
10nP,nL,nk,nR,nB=function(e){return[e.startTime,e.duration].join("#")},nU=[{name:nP.STYLESHEET,list:["css","less"]},{name:nP.DOCUMENT,list:["htm","html","ts","doc","docx","pdf","xls","xlsx"]},{name:nP.SCRIPT,list:["js"]},{name:nP.IMAGE,list:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"]},{name:nP.FONT,list:["fnt","fon","otf","ttf","woff"]}],nj=function(e,t){var n=nP.OTHER;if(e){var r=e.substring(e.lastIndexOf("/")+1),i=r.substring(r.lastIndexOf(".")+1).split(/[?#]/)[0];nU.forEach(function(e){e.list.indexOf(i)>-1&&(n=e.name)})}if(t&&n===nP.OTHER)switch(t){case nL.IMAGE:case nL.IMG:case nL.INPUT:n=nP.IMAGE;break;case nL.IFRAME:case nL.FRAME:n=nP.DOCUMENT;break;case nL.SCRIPT:n=nP.SCRIPT;break;case nL.CSS:n=nP.STYLESHEET}return n},nM=/\/appmonitors\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,nD=function(e,t){try{return new URL(e).hostname===t&&nM.test(e)}catch(e){return!1}},nH={eventLimit:10,ignore:function(e){return"resource"===e.entryType&&(!/^https?:/.test(e.name)||/^(fetch|xmlhttprequest)$/.test(e.initiatorType))},recordAllTypes:[nP.DOCUMENT,nP.SCRIPT,nP.STYLESHEET,nP.FONT],sampleTypes:[nP.IMAGE,nP.OTHER],reportAllLCP:!1,reportAllCLS:!1,reportAllINP:!1},nq=(nm=function(e,t){return(nm=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}nm(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),nN=function(){return(nN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},nF="navigation",n$="load",nz=function(e){function t(t){var n=e.call(this,"navigation")||this;return n.eventListener=function(){0===performance.getEntriesByType(nF).length?n.performanceNavigationEventHandlerTimingLevel1():new PerformanceObserver(function(e){e.getEntries().filter(function(e){return e.entryType===nF}).filter(function(e){return!n.config.ignore(e)}).forEach(function(e){n.performanceNavigationEventHandlerTimingLevel2(e)})}).observe({entryTypes:[nF]})},n.performanceNavigationEventHandlerTimingLevel1=function(){setTimeout(function(){var e,t=performance.timing,r=t.navigationStart,i={version:"1.0.0",initiatorType:"navigation",startTime:0,unloadEventStart:t.unloadEventStart>0?t.unloadEventStart-r:0,promptForUnload:t.unloadEventEnd-t.unloadEventStart,redirectStart:t.redirectStart>0?t.redirectStart-r:0,redirectTime:t.redirectEnd-t.redirectStart,fetchStart:t.fetchStart>0?t.fetchStart-r:0,domainLookupStart:t.domainLookupStart>0?t.domainLookupStart-r:0,dns:t.domainLookupEnd-t.domainLookupStart,connectStart:t.connectStart>0?t.connectStart-r:0,connect:t.connectEnd-t.connectStart,secureConnectionStart:t.secureConnectionStart>0?t.secureConnectionStart-r:0,tlsTime:t.secureConnectionStart>0?t.connectEnd-t.secureConnectionStart:0,requestStart:t.requestStart>0?t.requestStart-r:0,timeToFirstByte:t.responseStart-t.requestStart,responseStart:t.responseStart>0?t.responseStart-r:0,responseTime:t.responseStart>0?t.responseEnd-t.responseStart:0,domInteractive:t.domInteractive>0?t.domInteractive-r:0,domContentLoadedEventStart:t.domContentLoadedEventStart>0?t.domContentLoadedEventStart-r:0,domContentLoaded:t.domContentLoadedEventEnd-t.domContentLoadedEventStart,domComplete:t.domComplete>0?t.domComplete-r:0,domProcessingTime:t.loadEventStart-t.responseEnd,loadEventStart:t.loadEventStart>0?t.loadEventStart-r:0,loadEventTime:t.loadEventEnd-t.loadEventStart,duration:t.loadEventEnd-t.navigationStart,navigationTimingLevel:1};(null==(e=n.context)?void 0:e.record)&&n.context.record(w,i)},0)},n.performanceNavigationEventHandlerTimingLevel2=function(e){var t,r={version:"1.0.0",initiatorType:e.initiatorType,navigationType:e.type,startTime:e.startTime,unloadEventStart:e.unloadEventStart,promptForUnload:e.unloadEventEnd-e.unloadEventStart,redirectCount:e.redirectCount,redirectStart:e.redirectStart,redirectTime:e.redirectEnd-e.redirectStart,workerStart:e.workerStart,workerTime:e.workerStart>0?e.fetchStart-e.workerStart:0,fetchStart:e.fetchStart,domainLookupStart:e.domainLookupStart,dns:e.domainLookupEnd-e.domainLookupStart,nextHopProtocol:e.nextHopProtocol,connectStart:e.connectStart,connect:e.connectEnd-e.connectStart,secureConnectionStart:e.secureConnectionStart,tlsTime:e.secureConnectionStart>0?e.connectEnd-e.secureConnectionStart:0,requestStart:e.requestStart,timeToFirstByte:e.responseStart-e.requestStart,responseStart:e.responseStart,responseTime:e.responseStart>0?e.responseEnd-e.responseStart:0,domInteractive:e.domInteractive,domContentLoadedEventStart:e.domContentLoadedEventStart,domContentLoaded:e.domContentLoadedEventEnd-e.domContentLoadedEventStart,domComplete:e.domComplete,domProcessingTime:e.loadEventStart-e.responseEnd,loadEventStart:e.loadEventStart,loadEventTime:e.loadEventEnd-e.loadEventStart,duration:e.duration,headerSize:e.transferSize>0?e.transferSize-e.encodedBodySize:0,transferSize:e.transferSize,compressionRatio:e.encodedBodySize>0?e.decodedBodySize/e.encodedBodySize:0,navigationTimingLevel:2};(null==(t=n.context)?void 0:t.record)&&n.context.record(w,r)},n.config=nN(nN({},nH),t),n}return nq(t,e),t.prototype.enable=function(){this.enabled||(this.enabled=!0,window.addEventListener(n$,this.eventListener))},t.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.eventListener&&window.removeEventListener(n$,this.eventListener))},t.prototype.hasTheWindowLoadEventFired=function(){return!!window.performance&&!!window.performance.getEntriesByType(nF).length&&!!window.performance.getEntriesByType(nF)[0].loadEventEnd},t.prototype.onload=function(){var e=this;this.enabled&&(this.hasTheWindowLoadEventFired()?window.performance.getEntriesByType(nF).filter(function(t){return!e.config.ignore(t)}
10).forEach(function(t){return e.performanceNavigationEventHandlerTimingLevel2(t)}):window.addEventListener(n$,this.eventListener))},t}(I),nV=(nw=function(e,t){return(nw=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}nw(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),nW=function(){return(nW=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},nK="resource",nG=function(e){function t(t){var n=e.call(this,"resource")||this;return n.performanceEntryHandler=function(e){n.recordPerformanceEntries(e.getEntries())},n.recordPerformanceEntries=function(e){e.forEach(function(e){if(!(e.entryType!==nK||n.config.ignore(e))){var t=nj(e.name,e.initiatorType);n.config.recordAllTypes.includes(t)?n.recordResourceEvent(e):n.config.sampleTypes.includes(t)&&n.eventCount<n.config.eventLimit&&(n.recordResourceEvent(e),n.eventCount++)}})},n.recordResourceEvent=function(e){var t,r=e.name,i=e.startTime,o=e.initiatorType,a=e.duration,s=e.transferSize;if(!nD(r,n.context.config.endpointUrl.hostname)&&(null==(t=n.context)?void 0:t.record)){var c={version:"1.0.0",initiatorType:o,startTime:i,duration:a,fileType:nj(r,o),transferSize:s};n.context.config.recordResourceUrl&&(c.targetUrl=r),n.context.record(E,c)}},n.config=nW(nW({},nH),t),n.eventCount=0,n.resourceObserver=new PerformanceObserver(n.performanceEntryHandler),n}return nV(t,e),t.prototype.enable=function(){this.enabled||(this.enabled=!0,this.resourceObserver.observe({type:nK,buffered:!0}))},t.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.resourceObserver.disconnect())},t.prototype.onload=function(){this.resourceObserver.observe({type:nK,buffered:!0})},t}(I),nX=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},nZ=function(e){if("loading"===document.readyState)return"loading";var t=nX();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},nJ=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},nY=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?"#"+r.id:nJ(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},nQ=-1,n0=function(e){addEventListener("pageshow",function(t){t.persisted&&(nQ=t.timeStamp,e(t))},!0)},n1=function(){var e=nX();return e&&e.activationStart||0},n2=function(e,t){var n=nX(),r="navigate";return nQ>=0?r="back-forward-cache":n&&(document.prerendering||n1()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:r}},n6=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},n3=function(e,t,n,r){var i,o;return function(a){var s;t.value>=0&&(a||r)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,s=t.value,t.rating=s>n[1]?"poor":s>n[0]?"needs-improvement":"good",e(t))}},n5=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},n8=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},n4=function(e){var t=!1;return function(){t||(e(),t=!0)}},n9=-1,n7=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},re=function(e){"hidden"===document.visibilityState&&n9>-1&&(n9="visibilitychange"===e.type?e.timeStamp:0,rn())},rt=function(){addEventListener("visibilitychange",re,!0),addEventListener("prerenderingchange",re,!0)},rn=function(){removeEventListener("visibilitychange",re,!0),removeEventListener("prerenderingchange",re,!0)},rr=function(){return n9<0&&(n9=n7(),rt(),n0(function(){setTimeout(function(){n9=n7(),rt()},0)})),{get firstHiddenTime(){return n9}}},ri=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},ro=[1800,3e3],ra=function(e,t){t=t||{},ri(function(){var n,r=rr(),i=n2("FCP"),o=n6("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-n1(),0),i.entries.push(e),n(!0)))})});o&&(n=n3(e,i,ro,t.reportAllChanges),n0(function(r){n=n3(e,i=n2("FCP"),ro,t.reportAllChanges),n5(function(){i.value=performance.now()-r.timeStamp,n(!0)})}))})},rs=[.1,.25],rc=function(e,t){var n,r;n=function(t){e(function(e){var t,n={};if(e.entries.length){var r=e.entries.reduce(function(e,t){return e&&e.value>t.value?e:t});if(r&&r.sources&&r.sources.length){var i=(t=r.sources).find(function(e){return e.no
10de&&1===e.node.nodeType})||t[0];i&&(n={largestShiftTarget:nY(i.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:i,largestShiftEntry:r,loadState:nZ(r.startTime)})}}return Object.assign(e,{attribution:n})}(t))},r=(r=t)||{},ra(n4(function(){var e,t=n2("CLS",0),i=0,o=[],a=function(n){n.forEach(function(e){if(!e.hadRecentInput){var t=o[0],n=o[o.length-1];i&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e])}}),i>t.value&&(t.value=i,t.entries=o,e())},s=n6("layout-shift",a);s&&(e=n3(n,t,rs,r.reportAllChanges),n8(function(){a(s.takeRecords()),e(!0)}),n0(function(){i=0,e=n3(n,t=n2("CLS",0),rs,r.reportAllChanges),n5(function(){return e()})}),setTimeout(e,0))}))},ru=0,rf=1/0,rl=0,rh=function(e){e.forEach(function(e){e.interactionId&&(rf=Math.min(rf,e.interactionId),ru=(rl=Math.max(rl,e.interactionId))?(rl-rf)/7+1:0)})},rd=function(){return nk?ru:performance.interactionCount||0},rp=function(){"interactionCount"in performance||nk||(nk=n6("event",rh,{type:"event",buffered:!0,durationThreshold:0}))},rg=[],ry=new Map,rv=0,rb=function(){var e=Math.min(rg.length-1,Math.floor((rd()-rv)/50));return rg[e]},rm=[],rw=function(e){if(rm.forEach(function(t){return t(e)}),e.interactionId||"first-input"===e.entryType){var t=rg[rg.length-1],n=ry.get(e.interactionId);if(n||rg.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};ry.set(r.id,r),rg.push(r)}rg.sort(function(e,t){return t.latency-e.latency}),rg.length>10&&rg.splice(10).forEach(function(e){return ry.delete(e.id)})}}},rE=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=n4(e),"hidden"===document.visibilityState?e():(n=t(e),n8(e)),n},rS=[200,500],rT=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},ri(function(){rp();var n,r,i=n2("INP"),o=function(e){rE(function(){e.forEach(rw);var t=rb();t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())})},a=n6("event",o,{durationThreshold:null!=(n=t.durationThreshold)?n:40});r=n3(e,i,rS,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n8(function(){o(a.takeRecords()),r(!0)}),n0(function(){rv=rd(),rg.length=0,ry.clear(),r=n3(e,i=n2("INP"),rS,t.reportAllChanges)}))}))},rx=[],rC=[],rI=0,rA=new WeakMap,r_=new Map,rO=-1,rP=function(e){rx=rx.concat(e),rL()},rL=function(){rO<0&&(rO=rE(rk))},rk=function(){r_.size>10&&r_.forEach(function(e,t){ry.has(t)||r_.delete(t)});var e=rg.map(function(e){return rA.get(e.entries[0])}),t=rC.length-50;rC=rC.filter(function(n,r){return r>=t||e.includes(n)});for(var n=new Set,r=0;r<rC.length;r++){var i=rC[r];rM(i.startTime,i.processingEnd).forEach(function(e){n.add(e)})}var o=rx.length-1-50;rx=rx.filter(function(e,t){return e.startTime>rI&&t>o||n.has(e)}),rO=-1};rm.push(function(e){e.interactionId&&e.target&&!r_.has(e.interactionId)&&r_.set(e.interactionId,e.target)},function(e){var t,n=e.startTime+e.duration;rI=Math.max(rI,e.processingEnd);for(var r=rC.length-1;r>=0;r--){var i=rC[r];if(8>=Math.abs(n-i.renderTime)){(t=i).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:[e]},rC.push(t)),(e.interactionId||"first-input"===e.entryType)&&rA.set(e,t),rL()});var rR,rB,rU,rj,rM=function(e,t){for(var n,r=[],i=0;n=rx[i];i++)if(!(n.startTime+n.duration<e)){if(n.startTime>t)break;r.push(n)}return r},rD=function(e,t){nR||(nR=n6("long-animation-frame",rP)),rT(function(t){var n,r,i,o,a,s,c,u,f,l;e((n=t.entries[0],r=rA.get(n),i=n.processingStart,o=r.processingEnd,a=r.entries.sort(function(e,t){return e.processingStart-t.processingStart}),s=rM(n.startTime,o),u=(c=t.entries.find(function(e){return e.target}))&&c.target||r_.get(n.interactionId),f=[n.startTime+n.duration,o].concat(s.map(function(e){return e.startTime+e.duration})),l=Math.max.apply(Math,f),Object.assign(t,{attribution:{interactionTarget:nY(u),interactionTargetElement:u,interactionType:n.name.startsWith("key")?"keyboard":"pointer",interactionTime:n.startTime,nextPaintTime:l,processedEventEntries:a,longAnimationFrameEntries:s,inputDelay:i-n.startTime,processingDuration:o-i,presentationDelay:Math.max(l-o,0),loadState:nZ(n.startTime)}})))},t)},rH=[2500,4e3],rq={},rN=function(e,t){var n,r;n=function(t){e(function(e){var t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){var n=nX();if(n){var r=n.activationStart||0,i=e.entries[e.entries.length-1],o=i.url&&performance.getEntriesByType("resource").filter(function(e){return e.name===i.url})[0],a=Math.max(0,n.responseStart-r),s=Math.max(a,o?(o.requestStart||o.startTime)-r:0),c=Math.max(s,o?o.responseEnd-r:0),u=Math.max(c,i.startTime-r);t={element:nY(i.element),timeToFirstByte:a,resourceLoadDelay:s-a,resourceLoadDuration:c-s,elementRenderDelay:u-c,navigationEntry:n,lcpEntry:i},i.url&&(t.url=i.url),o&&(t.lcpResourceEntry=o)}}return Object.assign(e,{attribution:t})}(t))},r=(r=t)||{},ri(function(){var e,t=rr(),i=n2("LCP"),o=function(n){r.reportAllChanges||(n=n.slice(-1)),n.forEac
10h(function(n){n.startTime<t.firstHiddenTime&&(i.value=Math.max(n.startTime-n1(),0),i.entries=[n],e())})},a=n6("largest-contentful-paint",o);if(a){e=n3(n,i,rH,r.reportAllChanges);var s=n4(function(){rq[i.id]||(o(a.takeRecords()),a.disconnect(),rq[i.id]=!0,e(!0))});["keydown","click"].forEach(function(e){addEventListener(e,function(){return rE(s)},{once:!0,capture:!0})}),n8(s),n0(function(t){e=n3(n,i=n2("LCP"),rH,r.reportAllChanges),n5(function(){i.value=performance.now()-t.timeStamp,rq[i.id]=!0,e(!0)})})}})},rF={passive:!0,capture:!0},r$=new Date,rz=function(e,t){rR||(rR=t,rB=e,rU=new Date,rK(removeEventListener),rV())},rV=function(){if(rB>=0&&rB<rU-r$){var e={entryType:"first-input",name:rR.type,target:rR.target,cancelable:rR.cancelable,startTime:rR.timeStamp,processingStart:rR.timeStamp+rB};rj.forEach(function(t){t(e)}),rj=[]}},rW=function(e){if(e.cancelable){var t,n,r,i=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){rz(i,e),r()},n=function(){r()},r=function(){removeEventListener("pointerup",t,rF),removeEventListener("pointercancel",n,rF)},addEventListener("pointerup",t,rF),addEventListener("pointercancel",n,rF)):rz(i,e)}},rK=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,rW,rF)})},rG=[100,300],rX=function(e,t){t=t||{},ri(function(){var n,r=rr(),i=n2("FID"),o=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},a=function(e){e.forEach(o)},s=n6("first-input",a);n=n3(e,i,rG,t.reportAllChanges),s&&(n8(n4(function(){a(s.takeRecords()),s.disconnect()})),n0(function(){n=n3(e,i=n2("FID"),rG,t.reportAllChanges),rj=[],rB=-1,rR=null,rK(addEventListener),rj.push(o),rV()}))})},rZ=function(e,t){rX(function(t){var n;e((n=t.entries[0],Object.assign(t,{attribution:{eventTarget:nY(n.target),eventType:n.name,eventTime:n.startTime,eventEntry:n,loadState:nZ(n.startTime)}})))},t)},rJ=(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),rY=function(){return(rY=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},rQ=function(e){function t(t){var n=e.call(this,"web-vitals")||this;return n.resourceEventIds=new Map,n.cacheLCPCandidates=PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint"),n.handleEvent=function(e){switch(e.type){case E:var t=e.details;n.cacheLCPCandidates&&t.fileType===nP.IMAGE&&n.resourceEventIds.set(nB(e.details),e.id);break;case w:n.navigationEventId=e.id}},n.config=rY(rY({},nH),t),n}return rJ(t,e),t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.onload=function(){var e=this;this.context.eventBus.subscribe(nE.EVENT,this.handleEvent),rN(function(t){return e.handleLCP(t)},{reportAllChanges:this.config.reportAllLCP}),rZ(function(t){return e.handleFID(t)}),rc(function(t){return e.handleCLS(t)},{reportAllChanges:!0}),rD(function(t){return e.handleINP(t)},{reportAllChanges:!0})},t.prototype.handleLCP=function(e){var t,n,r=e.attribution,i={element:null==r?void 0:r.element,url:null==r?void 0:r.url,t
10imeToFirstByte:null==r?void 0:r.timeToFirstByte,resourceLoadDelay:null==r?void 0:r.resourceLoadDelay,resourceLoadTime:null==r?void 0:r.resourceLoadDuration,elementRenderDelay:null==r?void 0:r.elementRenderDelay};if(null==r?void 0:r.lcpResourceEntry){var o=nB(null==r?void 0:r.lcpResourceEntry);i.lcpResourceEntry=this.resourceEventIds.get(o)}this.navigationEventId&&(i.navigationEntry=this.navigationEventId),null==(t=this.context)||t.record(y,{version:"1.0.0",value:e.value,attribution:i}),null==(n=this.context)||n.eventBus.unsubscribe(nE.EVENT,this.handleEvent),this.resourceEventIds.clear(),this.navigationEventId=void 0},t.prototype.handleCLS=function(e){var t=e.attribution,n=this.context,r=n.record,i=n.recordCandidate;(this.config.reportAllCLS?r:i)(b,{version:"1.0.0",value:e.value,attribution:{largestShiftTarget:null==t?void 0:t.largestShiftTarget,largestShiftValue:null==t?void 0:t.largestShiftValue,largestShiftTime:null==t?void 0:t.largestShiftTime,loadState:null==t?void 0:t.loadState}})},t.prototype.handleFID=function(e){var t,n=e.attribution;null==(t=this.context)||t.record(v,{version:"1.0.0",value:e.value,attribution:{eventTarget:null==n?void 0:n.eventTarget,eventType:null==n?void 0:n.eventType,eventTime:null==n?void 0:n.eventTime,loadState:null==n?void 0:n.loadState}})},t.prototype.handleINP=function(e){var t=e.attribution,n=this.context,r=n.record,i=n.recordCandidate;(this.config.reportAllINP?r:i)(m,{version:"1.0.0",value:e.value,attribution:{interactionTarget:null==t?void 0:t.interactionTarget,interactionTime:null==t?void 0:t.interactionTime,nextPaintTime:null==t?void 0:t.nextPaintTime,interactionType:null==t?void 0:t.interactionType,inputDelay:null==t?void 0:t.inputDelay,processingDuration:null==t?void 0:t.processingDuration,presentationDelay:null==t?void 0:t.presentationDelay,loadState:null==t?void 0:t.loadState}})},t}(I),r0=(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r1=function(e){function t(t){var n=e.call(this,t)||this;return n.name="XMLHttpRequest error",n}return r0(t,e),t}(Error),r2=(a=function(e,t){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r6=function(){return(r6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},r3=function(e){function t(t){var n=e.call(this,"xhr")||this;return n.addXRayTraceIdHeader=function(e){return td(e,n.config.addXRayTraceIdHeader)},n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var e;return(null==(e=n.context.getSession())?void 0:e.record)||!1},n.handleXhrLoadEvent=function(e){var t=e.target,r=n.xhrMap.get(t);if(r){var i=tm();r.trace.end_time=i,r.trace.subsegments[0].end_time=i,r.trace.subsegments[0].http.response={status:t.status},tv(t.status)?(r.trace.subsegments[0].throttle=!0,r.trace.throttle=!0):tg(t.status)?(r.trace.subsegments[0].error=!0,r.trace.error=!0):ty(t.status)&&(r.trace.subsegments[0].fault=!0,r.trace.fault=!0);var o=t.getResponseHeader("Content-Length"),a=o?parseInt(o,10):NaN;isNaN(a)||(r.trace.subsegments[0].http.response.content_length=a),n.recordTraceEvent(r.trace),n.recordHttpEventWithResponse(r,t)}},n.handleXhrErrorEvent=function(e){var t=e.target,r=n.xhrMap.get(t),i=t.statusText?t.status.toString()+": "+t.statusText:t.status.toString();if(r){var o=tm();r.trace.fault=!0,r.trace.end_time=o,r.trace.subsegments[0].end_time=o,r.trace.subsegments[0].fault=!0,r.trace.subsegments[0].cause={exceptions:[{type:"XMLHttpRequest error",message:i}]},n.recordTraceEvent(r.trace),n.recordHttpEventWithError(r,t,new r1(i))}},n.handleXhrAbortEvent=function(e){var t=e.target,r=n.xhrMap.get(t);r&&n.handleXhrDetailsOnError(r,t,"XMLHttpRequest abort")},n.handleXhrTimeoutEvent=function(e){var t=e.target,r=n.xhrMap.get(t);n.handleXhrDetailsOnError(r,t,"XMLHttpRequest timeout")},n.initializeTrace=function(e){var t=tm();e.trace=tE(n.config.logicalServiceName,t,n.context.config.enableW3CTraceId),e.trace.subsegments.push(tS(tT(e.url),t,{request:{method:e.method,url:e.url,traced:!0}}))},n.sendWrapper=function(){return function(e){return function(){var t=n.xhrMap.get(this);return t&&(this.addEventListener("load",n.handleXhrLoadEvent),this.addEventListener("error",n.handleXhrErrorEvent),this.addEventListener("abort",n.handleXhrAbortEvent),this.addEventListener("timeout",n.handleXhrTimeoutEvent),n.initializeTrace(t),!n.isSyntheticsUA&&n.isTracingEnabled()&&n.addXRayTraceIdHeader(t.url)&&n.isSessionRecorded()&&(n.context.config.enableW3CTraceId?this.setRequestHeader(th,tA(t.trace.trace_id,t.trace.subsegments[0].id)):this.setRequestHeader(tl,tI(t.trace.trace_id,t.trace.subsegments[0].id)))),e.apply(this,arguments)}}},n.openWrapper=function(){return function(e){return function(t,r,i){return tb(r,n.config)&&n.xhrMap.set(this,{url:r,method:t,async:i}),e.apply(this,arguments)}}},n.config=r6(r6({},tp),t),n.xhrMap=new Map,n.isSyntheticsUA=navigator.userAgent.includes("CloudWatchSynthetics"),n}return r2(t,e),t.prototype.onload=function(){this.enable()},Object.defineProperty(t.prototype,"patches",{get:function(){return[{nodule:XMLHttpRequest.prototype,name:"send",wrapper:this.sendWrapper},{nodule:XMLHttpRequest.prototype,name:"open",wrapper:this.openWrapper}]}
10,enumerable:!1,configurable:!0}),t.prototype.handleXhrDetailsOnError=function(e,t,n){if(e){var r=tm();e.trace.end_time=r,e.trace.subsegments[0].end_time=r,e.trace.subsegments[0].error=!0,e.trace.subsegments[0].cause={exceptions:[{type:n}]},this.recordTraceEvent(e.trace),this.recordHttpEventWithError(e,t,n)}},t.prototype.statusOk=function(e){return e>=200&&e<300},t.prototype.recordHttpEventWithResponse=function(e,t){this.xhrMap.delete(t);var n={version:"1.0.0",request:{method:e.method,url:e.url},response:{status:t.status,statusText:t.statusText}};this.isTracingEnabled()&&(n.trace_id=e.trace.trace_id,n.segment_id=e.trace.subsegments[0].id),(this.config.recordAllRequests||!this.statusOk(t.status))&&this.context.record(p,n)},t.prototype.recordHttpEventWithError=function(e,t,n){this.xhrMap.delete(t);var r={version:"1.0.0",request:{method:e.method,url:e.url},error:N({type:"error",error:n},this.config.stackTraceLength)};this.isTracingEnabled()&&(r.trace_id=e.trace.trace_id,r.segment_id=e.trace.subsegments[0].id),this.context.record(p,r)},t.prototype.recordTraceEvent=function(e){!this.isSyntheticsUA&&this.isTracingEnabled()&&this.isSessionRecorded()&&this.context.record(g,e)},t}(el),r5=(s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r8=function(){return(r8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},r4=function(e){function t(t){var n=e.call(this,"fetch")||this;return n.isTracingEnabled=function(){return n.context.config.enableXRay},n.isSessionRecorded=function(){var e;return(null==(e=n.context.getSession())?void 0:e.record)||!1},n.beginTrace=function(e,t,r){var i=tm(),o=tw(e,t,!0),a=tE(n.config.logicalServiceName,i,n.context.config.enableW3CTraceId),s=tS(tT(e),i,o);return a.subsegments.push(s),n.isTraceIdHeaderEnabled(e)&&n.addXRayTraceIdHeader(e,t,r,a),a},n.addXRayTraceIdHeader=function(e,t,r,i){if(e.headers)return tC(e.headers,i.trace_id,i.subsegments[0].id,n.context.config.enableW3CTraceId);t||(t={},[].push.call(r,t)),tx(t,i.trace_id,i.subsegments[0].id,n.context.config.enableW3CTraceId)},n.endTrace=function(e,t,r){if(e){var i=tm();if(e.subsegments[0].end_time=i,e.end_time=i,t){e.subsegments[0].http.response={status:t.status},tv(t.status)?(e.subsegments[0].throttle=!0,e.throttle=!0):tg(t.status)?(e.subsegments[0].error=!0,e.error=!0):ty(t.status)&&(e.subsegments[0].fault=!0,e.fault=!0);var o=t.headers.get("Content-Length"),a=o?parseInt(o,10):NaN;isNaN(a)||(e.subsegments[0].http.response.content_length=a)}r&&(e.fault=!0,e.subsegments[0].fault=!0,r instanceof Object?n.appendErrorCauseFromObject(e.subsegments[0],r):q(r)&&n.appendErrorCauseFromPrimitive(e.subsegments[0],r.toString())),n.context.record(g,e)}},n.createHttpEvent=function(e,t){return{version:"1.0.0",request:{url:tO(e),method:(null==t?void 0:t.method)?t.method:e.method?e.method:"GET"}}},n.recordHttpEventWithResponse=function(e,t){(n.config.recordAllRequests||!t.ok)&&(e.response={status:t.status,statusText:t.statusText},n.context.record(p,e))},n.recordHttpEventWithError=function(e,t){e.error=N({type:"error",error:t},n.config.stackTraceLength),n.context.record(p,e)},n.fetch=function(e,t,r,i,o){var a,s=n.createHttpEvent(i,o);if(!tb(tO(i),n.config))return e.apply(t,r);var c=t_(i.headers,n.context.config.enableW3CTraceId);return c.traceId&&c.segmentId?(s.trace_id=c.traceId,s.segment_id=c.segmentId):n.isTracingEnabled()&&n.isSessionRecorded()&&(s.trace_id=(a=n.beginTrace(i,o,r)).trace_id,s.segment_id=a.subsegments[0].id),e.apply(t,r).then(function(e){return n.endTrace(a,e,void 0),n.recordHttpEventWithResponse(s,e),e}).catch(function(e){throw n.endTrace(a,void 0,e),n.recordHttpEventWithError(s,e),e})},n.fetchWrapper=function(){return function(e){return function(t,r){return n.fetch(e,this,arguments,t,r)}}},n.config=r8(r8({},tp),t),n}return r5(t,e),Object.defineProperty(t.prototype,"patches",{get:function(){return[{nodule:window,name:"fetch",wrapper:this.fetchWrapper}]}
10,enumerable:!1,configurable:!0}),t.prototype.onload=function(){this.enable()},t.prototype.isTraceIdHeaderEnabled=function(e){return td(tO(e),this.config.addXRayTraceIdHeader)},t.prototype.appendErrorCauseFromPrimitive=function(e,t){e.cause={exceptions:[{type:t}]}},t.prototype.appendErrorCauseFromObject=function(e,t){e.cause={exceptions:[{type:t.name,message:t.message}]}},t}(el),r9=(c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r7=function(e){function t(){var t=e.call(this,"page-view")||this;return t.pushState=function(){return function(e){return function(n,r,i){var o=e.apply(this,arguments);return t.recordPageView(),o}}},t.replaceState=function(){return function(e){return function(n,r,i){var o=e.apply(this,arguments);return t.recordPageView(),o}}},t.popstateListener=function(e){t.recordPageView()},t.recordPageView=function(){t.context.recordPageView(t.createIdForCurrentPage())},t.enable(),t}return r9(t,e),t.prototype.onload=function(){this.addListener(),this.recordPageView()},Object.defineProperty(t.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}),t.prototype.addListener=function(){window.addEventListener("popstate",this.popstateListener)},t.prototype.createIdForCurrentPage=function(){var e=window.location.pathname,t=window.location.hash;switch(this.context.config.pageIdFormat){case h.PathAndHash:if(e&&t)return e+t;if(e)return e;if(t)return t;return"";case h.Hash:return t||"";case h.Path:default:return e||""}},t}(el),ie=function(){return(ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},it=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},ir=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},ii="us-west-2",io="https://dataplane.rum.".concat(ii,".amazonaws.com");(u=l||(l={})).Errors="errors",u.Performance="performance",u.Interaction="interaction",u.Http="http",(f=h||(h={})).Path="PATH",f.Hash="HASH",f.PathAndHash="PATH_AND_HASH";var ia={candidatesCacheSize:10},is=function(){function e(e,t,n,r){void 0===r&&(r={});var i=r.cookieAttributes,o=it(r,["cookieAttributes"]);this.eventBus=new ey,void 0===n&&(n="us-west-2");var a=ie(ie({},{unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}),i);this.config=ie(ie(ie({fetchFunction:fetch},ie({allowCookies:!1,batchLimit:100,client:"arw-module",cookieAttributes:a,debug:!1,disableAutoPageView:!1,dispatchInterval:5e3,enableRumClient:!0,enableXRay:!1,endpoint:io,endpointUrl:new URL(io),eventCacheSize:1e3,eventPluginsToLoad:[],pageIdFormat:h.Path,pagesToExclude:[],pagesToInclude:[/.*/],signing:!0,recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionAttributes:{},sessionEventLimit:200,sessionLengthSeconds:1800,sessionSampleRate:1,telemetries:[],useBeacon:!0,userIdRetentionDays:30,enableW3CTraceId:!1,legacySPASupport:!1},ia)),o),ia),this.config.endpoint=this.getDataPlaneEndpoint(n,o),this.config.endpointUrl=new URL(this.config.endpoint),this.eventCache=this.initEventCache(e,t),this.dispatchManager=this.initDispatch(n,e),this.pluginManager=this.initPluginManager(e,t),this.config.debug&&(O.info("RUM client initialized for app: ".concat(e)),O.info("Telemetries enabled: ".concat(this.config.telemetries.join(", ")||"none"))),this.config.enableRumClient?this.enable():this.disable()}return e.prototype.setAwsCredentials=function(e){this.dispatchManager.setAwsCredentials(e)},e.prototype.addSessionAttributes=function(e){this.eventCache.addSessionAttributes(e)},e.prototype.addPlugin=function(e){this.pluginManager.addPlugin(e)},e.prototype.dispatch=function(){this.dispatchManager.dispatchFetch()},e.prototype.dispatchBeacon=function(){this.dispatchManager.dispatchBeacon()},e.prototype.enable=function(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()},e.prototype.disable=function(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()},e.prototype.allowCookies=function(e){this.config.allowCookies=e},e.prototype.recordPageView=function(e){this.eventCache.recordPageView(e)},e.prototype.recordError=function(e){this.pluginManager.record(z,e)},e.prototype.registerDomEvents=function(e){this.pluginManager.updatePlugin(R,e)},e.prototype.recordEvent=function(e,t){this.eventCache.recordEvent(e,t)},e.prototype.initEventCache=function(e,t){return new eb({id:e,version:t},this.config,this.eventBus)},e.prototype.initDispatch=function(e,t){var n=new nn(t,e,this.config.endpointUrl,this.eventCache,this.config);return this.config.signing&&this.config.identityPoolId&&n.setCognitoCredentials(this.config.identityPoolId,this.config.guestRoleArn),n}
10,e.prototype.initPluginManager=function(e,t){var n=ir(ir([],this.constructBuiltinPlugins(),!0),this.config.eventPluginsToLoad,!0),r=new P({applicationId:e,applicationVersion:t,config:this.config,record:this.eventCache.recordEvent,recordCandidate:this.eventCache.recordCandidate,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession,eventBus:this.eventBus});return this.config.disableAutoPageView||r.addPlugin(new r7),n.forEach(function(e){r.addPlugin(e)}),r},e.prototype.constructBuiltinPlugins=function(){var e=[],t=this.telemetryFunctor();return this.config.telemetries.forEach(function(n){"string"==typeof n&&t[n.toLowerCase()]?e=ir(ir([],e,!0),t[n.toLowerCase()]({}),!0):Array.isArray(n)&&t[n[0].toLowerCase()]&&(e=ir(ir([],e,!0),t[n[0].toLowerCase()](n[1]),!0))}),e},e.prototype.getDataPlaneEndpoint=function(e,t){return t.endpoint?t.endpoint:io.replace(ii,e)},e.prototype.telemetryFunctor=function(){var e;return(e={})[l.Errors]=function(e){return[new W(e)]},e[l.Performance]=function(e){return[new nz(e),new nG(e),new rQ(e)]},e[l.Interaction]=function(e){return[new U(e)]},e[l.Http]=function(e){return[new r3(e),new r4(e)]},e},e}()},49304:(e,t,n)=>{"use strict";let r=n(26801),i=n(81852),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return f(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e){var r=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);let n=0|p(r,i),o=a(n),c=o.write(r,i);return c!==n&&(o=o.slice(0,c)),o}if(ArrayBuffer.isView(e)){var o=e;if(M(o,Uint8Array)){let e=new Uint8Array(o);return h(e.buffer,e.byteOffset,e.byteLength)}return l(o)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return s.from(c,t,n);let u=function(e){if(s.isBuffer(e)){let t=0|d(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):l(e):"Buffer"===e.type&&Array.isArray(e.data)?l(e.data):void 0}(e);if(u)return u;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return u(e),a(e<0?0:0|d(e))}function l(e){let t=e.length<0?0:0|d(e.length),n=a(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){let r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}function d(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(i)return r?-1:B(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=D[e[r]];return i}(this,t,n);case"utf8":case"utf-8":return m(this,t,n);case"ascii":return function(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":var o,a,s;return o=this,a=t,s=n,0===a&&s===o.length?r.fromByteArray(o):r.fromByteArray(o.slice(a,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){let r=e.slice(t,n),i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}(this,t,n);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function y(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){var o;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(o=n*=1)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(i)return -1;else n=e.length-1;else if(n<0)if(!i)return -1;else n=0;if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return b(e,[t],n,r,i)}throw TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*a}else -1!==r&&(o-=o-r),r=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(u(e,o+r)!==u(t,r)){n=!1;break}if(n)return o}return -1}function m(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(n=e[i+1]))==128&&(c=(31&t)<<6|63&n)>127&&(o=c);break;case 3:n=e[i+1],r=e[i+2],(192&n)==128&&(192&r)==128&&(c=(15&t)<<12|(63&n)<<6|63&r)>
vendor: 15,372 bytes, line 10
102047&&(c<55296||c>57343)&&(o=c);break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(192&n)==128&&(192&r)==128&&(192&s)==128&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s)>65535&&c<1114112&&(o=c)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}var o=r;let a=o.length;if(a<=4096)return String.fromCharCode.apply(String,o);let s="",c=0;for(;c<a;)s+=String.fromCharCode.apply(String,o.slice(c,c+=4096));return s}function w(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function E(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function S(e,t,n,r,i){P(t,r,i,e,n,7);let o=Number(t&BigInt(0xffffffff));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function T(e,t,n,r,i){P(t,r,i,e,n,7);let o=Number(t&BigInt(0xffffffff));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function x(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function C(e,t,n,r,o){return t*=1,n>>>=0,o||x(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,o){return t*=1,n>>>=0,o||x(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.hp=s,t.IS=50,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return f(e)},s.allocUnsafeSlow=function(e){return f(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){let n;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(M(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?m(this,0,e):g.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let e="",n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let o=i-r,a=n-t,c=Math.min(o,a),u=this.slice(r,i),f=e.slice(t,n);for(let e=0;e<c;++e)if(u[e]!==f[e]){o=u[e],a=f[e];break}return o<a?-1:+(a<o)},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){var i,o,a,s,c,u,f,l;if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let h=this.length-t;if((void 0===n||n>h)&&(n=h),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let d=!1;for(;;)switch(r){case"hex":return function(e,t,n,r){let i;n=Number(n)||0;let o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;let a=t.length;for(r>a/2&&(r=a/2),i=0;i<r;++i){var s;let r=parseInt(t.substr(2*i,2),16);if((s=r)!=s)break;e[n+i]=r}return i}(this,e,t,n);case"utf8":case"utf-8":return i=t,o=n,j(B(e,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return a=t,s=n,j(function(e){let t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,a,s);case"base64":return c=t,u=n,j(U(e),this,c,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f=t,l=n,j(function(e,t){let n,r,i=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,this.length-f),this,f,l);default:if(d)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=H(function(e){L(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&k(e,this.length-8);let r=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*n;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=H(function(e){L(e>>>=0,"offset");let t=this[e],n=this[e+7];(void 0===t||void 0===n)&&k(e,this.length-8);let r=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],i=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=H(function(e){L(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&k(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+0x1000000*this[++e])}),s.prototype.readBigInt64BE=H(function(e){L(e>>>=0,"offset");let t=this[e],n=this[e+7];return(void 0===t||void 0===n)&&k(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(0x1000000*this[++e]+65536*this[++e]+256*this[++e]+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;E(this,e,t,n,r,0)}let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;E(this,e,t,n,r,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e*=1,t>>>=0,n||E(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e*=1,t>>>=0,n||E(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e*=1,t>>>=0,n||E(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e*=1,t>>>=0,n||E(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e*=1,t>>>=0,n||E(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=H(function(e,t=0){return S(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=H(function(e,t=0){return T(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t>>>=0,!r){let r=Math.pow(2,8*n-1);E(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t>>>=0,!r){let r=Math.pow(2,8*n-1);E(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e*=1,t>>>=0,n||E(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e*=1,t>>>=0,n||E(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e*=1,t>>>=0,n||E(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e*=1,t>>>=0,n||E(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e*=1,t>>>=0,n||E(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=H(function(e,t=0){return S(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=H(function(e,t=0){return T(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,n){return C(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return C(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){let i;if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){let t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{let o=s.isBuffer(e)?e:s.from(e,r),a=o.length;
10if(0===a)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};let A={};function _(e,t,n){A[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function O(e){let t="",n=e.length,r=+("-"===e[0]);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function P(e,t,n,r,i,o){if(e>n||e<t){let r,i="bigint"==typeof t?"n":"";throw r=o>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${n}${i}`,new A.ERR_OUT_OF_RANGE("value",r,e)}L(i,"offset"),(void 0===r[i]||void 0===r[i+o])&&k(i,r.length-(o+1))}function L(e,t){if("number"!=typeof e)throw new A.ERR_INVALID_ARG_TYPE(t,"number",e)}function k(e,t,n){if(Math.floor(e)!==e)throw L(e,n),new A.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new A.ERR_BUFFER_OUT_OF_BOUNDS;throw new A.ERR_OUT_OF_RANGE(n||"offset",`>= ${+!!n} and <= ${t}`,e)}_("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),_("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),_("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>0x100000000?i=O(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=O(i)),i+="n"),r+=` It must be ${t}. Received ${i}`},RangeError);let R=/[^+/0-9A-Za-z-_]/g;function B(e,t){let n;t=t||1/0;let r=e.length,i=null,o=[];for(let a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function U(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let D=function(){let e="0123456789abcdef",t=Array(256);for(let n=0;n<16;++n){let r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function H(e){return"u"<typeof BigInt?q:e}function q(){throw Error("BigInt not supported")}},50185:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=n(21826),i=n(34526),o=n(56886),a=n(45790);t.Sha256=function(){function e(e){this.secret=e,this.hash=new o.RawSha256,this.reset()}return e.prototype.update=function(e){if(!(0,a.isEmptyData)(e)&&!this.error)try{this.hash.update((0,a.convertToBuffer)(e))}catch(e){this.error=e}},e.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()},e.prototype.digest=function(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new o.RawSha256,this.secret){this.outer=new o.RawSha256;var e=function(e){var t=(0,a.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var n=new o.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(i.BLOCK_SIZE);return r.set(t),r}(this.secret),t=new Uint8Array(i.BLOCK_SIZE);t.set(e);for(var n=0;n<i.BLOCK_SIZE;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(var n=0;n<e.byteLength;n++)e[n]=0}},e}()}
10,53974:(e,t,n)=>{"use strict";var r=n(49304).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var i=n(15349),o=void 0!==r&&r.from?function(e){return r.from(e,"utf8")}:i.fromUtf8;t.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?o(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},55644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0,t.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n<e.length;)t[n]=e[n],n+=1;return t}return Uint32Array.from(e)}},56886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var r=n(34526);t.RawSha256=function(){function e(){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 e.prototype.update=function(e){if(this.finished)throw Error("Attempted to update an already finished hash.");var t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)throw Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var i=this.bufferLength;i<r.BLOCK_SIZE;i++)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<r.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(r.BLOCK_SIZE-8,Math.floor(e/0x100000000),!0),t.setUint32(r.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}for(var o=new Uint8Array(r.DIGEST_LENGTH),i=0;i<8;i++)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],c=t[5],u=t[6],f=t[7],l=0;l<r.BLOCK_SIZE;l++){if(l<16)this.temp[l]=(255&e[4*l])<<24|(255&e[4*l+1])<<16|(255&e[4*l+2])<<8|255&e[4*l+3];else{var h=this.temp[l-2],d=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,p=((h=this.temp[l-15])>>>7|h<<25)^(h>>>18|h<<14)^h>>>3;this.temp[l]=(d+this.temp[l-7]|0)+(p+this.temp[l-16]|0)}var g=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&u)|0)+(f+(r.KEY[l]+this.temp[l]|0)|0)|0,y=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&i^n&o^i&o)|0;f=u,u=c,c=s,s=a+g|0,a=o,o=i,i=n,n=g+y|0}t[0]+=n,t[1]+=i,t[2]+=o,t[3]+=a,t[4]+=s,t[5]+=c,t[6]+=u,t[7]+=f},e}()},65711:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(21826).__exportStar(n(50185),t)},74214:(e,t,n)=>{"use strict";n.d(t,{tH:()=>a});var r=n(12115);let i=(0,r.createContext)(null),o={didCatch:!1,error:null};class a extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=o}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];null==(t=(n=this.props).onReset)||t.call(n,{args:i,reason:"imperative-api"}),this.setState(o)}}componentDidCatch(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)}componentDidUpdate(e,t){let{didCatch:n}=this.state,{resetKeys:r}=this.props;if(n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)){var i,a;null==(i=(a=this.props).onReset)||i.call(a,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(o)}}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:o}=this.props,{didCatch:a,error:s}=this.state,c=e;if(a){let e={error:s,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)c=t(e);else if(n)c=(0,r.createElement)(n,e);else if(void 0!==o)c=o;else throw s}return(0,r.createElement)(i.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}}},81852:(e,t)=>
10{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,f=-7,l=n?i-1:0,h=n?-1:1,d=e[t+l];for(l+=h,o=d&(1<<-f)-1,d>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=r;f>0;a=256*a+e[t+l],l+=h,f-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,f=(1<<u)-1,l=f>>1,h=5960464477539062e-23*(23===i),d=r?0:o-1,p=r?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+l>=1?t+=h/c:t+=h*Math.pow(2,1-l),t*c>=2&&(a++,c/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*c-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+d]=255&a,d+=p,a/=256,u-=8);e[n+d-p]|=128*g}},84623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},87267:e=>{"use strict";function t(e){return"function"==typeof e}var n=console.error.bind(console);function r(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function i(e){e&&e.logger&&(t(e.logger)?n=e.logger:n("new logger isn't a function, not replacing"))}function o(e,i,o){if(!e||!e[i])return void n("no original function "+i+" to wrap");if(!o){n("no wrapper function"),n(Error().stack);return}if(!t(e[i])||!t(o))return void n("original object and wrapper must be functions");var a=e[i],s=o(a,i);return r(s,"__original",a),r(s,"__unwrap",function(){e[i]===s&&r(e,i,a)}),r(s,"__wrapped",!0),r(e,i,s),s}function a(e,t){if(!e||!e[t]){n("no function to unwrap."),n(Error().stack);return}if(e[t].__unwrap)return e[t].__unwrap();n("no original to unwrap to -- has "+t+" already been unwrapped?")}i.wrap=o,i.massWrap=function(e,t,r){if(e)Array.isArray(e)||(e=[e]);else{n("must provide one or more modules to patch"),n(Error().stack);return}t&&Array.isArray(t)?e.forEach(function(e){t.forEach(function(t){o(e,t,r)})}):n("must provide one or more functions to wrap on modules")},i.unwrap=a,i.massUnwrap=function(e,t){if(e)Array.isArray(e)||(e=[e]);else{n("must provide one or more modules to patch"),n(Error().stack);return}t&&Array.isArray(t)?e.forEach(function(e){t.forEach(function(t){a(e,t)})}):n("must provide one or more functions to unwrap on modules")},e.exports=i},94905:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0,t.numToUint8=function(e){return new Uint8Array([(0xff000000&e)>>24,(0xff0000&e)>>16,(65280&e)>>8,255&e])}}}]);
11//# sourceMappingURL=9564-c09799a01e5e9e21.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.