(()=>{var e={8341:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}n.d(t,{Z:()=>r,e:()=>o})},6284:(e,t,n)=>{"use strict";n.d(t,{wD:()=>o});var r=n(8341);function o(){return!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}e=n.hmd(e)},9085:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},298:(e,t,n)=>{var r=n(1602),o=n(3105),i=n(3610),s=r("unscopables"),a=Array.prototype;null==a[s]&&i.f(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},7234:(e,t,n)=>{"use strict";var r=n(7804).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},3938:(e,t,n)=>{var r=n(5335);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},516:(e,t,n)=>{"use strict";var r=n(1344).forEach,o=n(2349)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},8186:(e,t,n)=>{var r=n(5476),o=n(3747),i=n(6539),s=function(e){return function(t,n,s){var a,c=r(t),u=o(c.length),l=i(s,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},1344:(e,t,n)=>{var r=n(6885),o=n(8664),i=n(2612),s=n(3747),a=n(2998),c=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,l=4==e,d=6==e,p=7==e,f=5==e||d;return function(h,m,g,v){for(var y,_,b=i(h),S=o(b),w=r(m,g,3),k=s(S.length),x=0,E=v||a,T=t?E(h,k):n||p?E(h,0):void 0;k>x;x++)if((f||x in S)&&(_=w(y=S[x],x,b),e))if(t)T[x]=_;else if(_)switch(e){case 3:return!0;case 5:return y;case 6:return x;case 2:c.call(T,y)}else switch(e){case 4:return!1;case 7:c.call(T,y)}return d?-1:u||l?l:T}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterOut:u(7)}},5634:(e,t,n)=>{var r=n(2074),o=n(1602),i=n(6845),s=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},2349:(e,t,n)=>{"use strict";var r=n(2074);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},2998:(e,t,n)=>{var r=n(5335),o=n(8679),i=n(1602)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},8569:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},3062:(e,t,n)=>{var r=n(3129),o=n(8569),i=n(1602)("toStringTag"),s="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:s?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},4361:(e,t,n)=>{var r=n(1883),o=n(5816),i=n(7632),s=n(3610);e.exports=function(e,t){for(var n=o(t),a=s.f,c=i.f,u=0;u{var r=n(1602)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},7712:(e,t,n)=>{var r=n(5077),o=n(3610),i=n(6843);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},6843:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2057:(e,t,n)=>{"use strict";var r=n(874),o=n(3610),i=n(6843);e.exports=function(e,t,n){var s=r(t);s in e?o.f(e,s,i(0,n)):e[s]=n}},1272:(e,t,n)=>{var r=n(9720),o=n(1883),i=n(802),s=n(3610).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||s(t,e,{value:i.f(e)})}},5077:(e,t,n)=>{var r=n(2074);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3262:(e,t,n)=>{var r=n(200),o=n(5335),i=r.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},5549:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7061:(e,t,n)=>{var r=n(6492);e.exports=r("navigator","userAgent")||""},6845:(e,t,n)=>{var r,o,i=n(200),s=n(7061),a=i.process,c=a&&a.versions,u=c&&c.v8;u?o=(r=u.split("."))[0]<4?1:r[0]+r[1]:s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},290:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1605:(e,t,n)=>{var r=n(200),o=n(7632).f,i=n(7712),s=n(7485),a=n(5975),c=n(4361),u=n(4977);e.exports=function(e,t){var n,l,d,p,f,h=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[h]||a(h,{}):(r[h]||{}).prototype)for(l in t){if(p=t[l],d=e.noTargetGet?(f=o(n,l))&&f.value:n[l],!u(m?l:h+(g?".":"#")+l,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),s(n,l,p,e)}}},2074:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},779:(e,t,n)=>{"use strict";n(7136);var r=n(7485),o=n(54),i=n(2074),s=n(1602),a=n(7712),c=s("species"),u=RegExp.prototype,l=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),d="$0"==="a".replace(/./,"$0"),p=s("replace"),f=!!/./[p]&&""===/./[p]("a","$0"),h=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,p){var m=s(e),g=!i((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),v=g&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t}));if(!g||!v||"replace"===e&&(!l||!d||f)||"split"===e&&!h){var y=/./[m],_=n(m,""[e],(function(e,t,n,r,i){var s=t.exec;return s===o||s===u.exec?g&&!i?{done:!0,value:y.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:d,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),b=_[0],S=_[1];r(String.prototype,e,b),r(u,m,2==t?function(e,t){return S.call(e,this,t)}:function(e){return S.call(e,this)})}p&&a(u[m],"sham",!0)}},6885:(e,t,n)=>{var r=n(9085);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},6492:(e,t,n)=>{var r=n(9720),o=n(200),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},4433:(e,t,n)=>{var r=n(2612),o=Math.floor,i="".replace,s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,c,u,l){var d=n+e.length,p=c.length,f=a;return void 0!==u&&(u=r(u),f=s),i.call(l,f,(function(r,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":s=u[i.slice(1,-1)];break;default:var a=+i;if(0===a)return r;if(a>p){var l=o(a/10);return 0===l?r:l<=p?void 0===c[l-1]?i.charAt(1):c[l-1]+i.charAt(1):r}s=c[a-1]}return void 0===s?"":s}))}},200:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},1883:(e,t,n)=>{var r=n(2612),o={}.hasOwnProperty;e.exports=function(e,t){return o.call(r(e),t)}},7708:e=>{e.exports={}},8890:(e,t,n)=>{var r=n(6492);e.exports=r("document","documentElement")},7694:(e,t,n)=>{var r=n(5077),o=n(2074),i=n(3262);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8664:(e,t,n)=>{var r=n(2074),o=n(8569),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},9965:(e,t,n)=>{var r=n(9310),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},9206:(e,t,n)=>{var r,o,i,s=n(2886),a=n(200),c=n(5335),u=n(7712),l=n(1883),d=n(9310),p=n(5904),f=n(7708),h="Object already initialized",m=a.WeakMap;if(s||d.state){var g=d.state||(d.state=new m),v=g.get,y=g.has,_=g.set;r=function(e,t){if(y.call(g,e))throw new TypeError(h);return t.facade=e,_.call(g,e,t),t},o=function(e){return v.call(g,e)||{}},i=function(e){return y.call(g,e)}}else{var b=p("state");f[b]=!0,r=function(e,t){if(l(e,b))throw new TypeError(h);return t.facade=e,u(e,b,t),t},o=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},8679:(e,t,n)=>{var r=n(8569);e.exports=Array.isArray||function(e){return"Array"==r(e)}},4977:(e,t,n)=>{var r=n(2074),o=/#|\.prototype\./,i=function(e,t){var n=a[s(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},s=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},a=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},5335:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},6926:e=>{e.exports=!1},2449:(e,t,n)=>{var r=n(5335),o=n(8569),i=n(1602)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},1849:(e,t,n)=>{var r=n(6845),o=n(2074);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())||!Symbol.sham&&r&&r<41}))},2886:(e,t,n)=>{var r=n(200),o=n(9965),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},2588:(e,t,n)=>{var r=n(2449);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},3105:(e,t,n)=>{var r,o=n(3938),i=n(5318),s=n(290),a=n(7708),c=n(8890),u=n(3262),l=n(5904),d="prototype",p="script",f=l("IE_PROTO"),h=function(){},m=function(e){return"<"+p+">"+e+""},g=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g=r?function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):(t=u("iframe"),n="java"+p+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F);for(var o=s.length;o--;)delete g[d][s[o]];return g()};a[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[d]=o(e),n=new h,h[d]=null,n[f]=e):n=g(),void 0===t?n:i(n,t)}},5318:(e,t,n)=>{var r=n(5077),o=n(3610),i=n(3938),s=n(1641);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=s(t),a=r.length,c=0;a>c;)o.f(e,n=r[c++],t[n]);return e}},3610:(e,t,n)=>{var r=n(5077),o=n(7694),i=n(3938),s=n(874),a=Object.defineProperty;t.f=r?a:function(e,t,n){if(i(e),t=s(t,!0),i(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7632:(e,t,n)=>{var r=n(5077),o=n(9304),i=n(6843),s=n(5476),a=n(874),c=n(1883),u=n(7694),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=s(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return i(!o.f.call(e,t),e[t])}},6509:(e,t,n)=>{var r=n(5476),o=n(4789).f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return s.slice()}}(e):o(r(e))}},4789:(e,t,n)=>{var r=n(6347),o=n(290).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},8916:(e,t)=>{t.f=Object.getOwnPropertySymbols},6347:(e,t,n)=>{var r=n(1883),o=n(5476),i=n(8186).indexOf,s=n(7708);e.exports=function(e,t){var n,a=o(e),c=0,u=[];for(n in a)!r(s,n)&&r(a,n)&&u.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~i(u,n)||u.push(n));return u}},1641:(e,t,n)=>{var r=n(6347),o=n(290);e.exports=Object.keys||function(e){return r(e,o)}},9304:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},4972:(e,t,n)=>{"use strict";var r=n(3129),o=n(3062);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},5816:(e,t,n)=>{var r=n(6492),o=n(4789),i=n(8916),s=n(3938);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=i.f;return n?t.concat(n(e)):t}},9720:(e,t,n)=>{var r=n(200);e.exports=r},7485:(e,t,n)=>{var r=n(200),o=n(7712),i=n(1883),s=n(5975),a=n(9965),c=n(9206),u=c.get,l=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,a){var c,u=!!a&&!!a.unsafe,p=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),(c=l(n)).source||(c.source=d.join("string"==typeof t?t:""))),e!==r?(u?!f&&e[t]&&(p=!0):delete e[t],p?e[t]=n:o(e,t,n)):p?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||a(this)}))},6793:(e,t,n)=>{var r=n(8569),o=n(54);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},54:(e,t,n)=>{"use strict";var r,o,i=n(6844),s=n(2192),a=n(2),c=RegExp.prototype.exec,u=a("native-string-replace",String.prototype.replace),l=c,d=(r=/a/,o=/b*/g,c.call(r,"a"),c.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),p=s.UNSUPPORTED_Y||s.BROKEN_CARET,f=void 0!==/()??/.exec("")[1];(d||f||p)&&(l=function(e){var t,n,r,o,s=this,a=p&&s.sticky,l=i.call(s),h=s.source,m=0,g=e;return a&&(-1===(l=l.replace("y","")).indexOf("g")&&(l+="g"),g=String(e).slice(s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==e[s.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,m++),n=new RegExp("^(?:"+h+")",l)),f&&(n=new RegExp("^"+h+"$(?!\\s)",l)),d&&(t=s.lastIndex),r=c.call(a?n:s,g),a?r?(r.input=r.input.slice(m),r[0]=r[0].slice(m),r.index=s.lastIndex,s.lastIndex+=r[0].length):s.lastIndex=0:d&&r&&(s.lastIndex=s.global?r.index+r[0].length:t),f&&r&&r.length>1&&u.call(r[0],n,(function(){for(o=1;o{"use strict";var r=n(3938);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},2192:(e,t,n)=>{"use strict";var r=n(2074);function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},1229:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},5975:(e,t,n)=>{var r=n(200),o=n(7712);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},5282:(e,t,n)=>{var r=n(3610).f,o=n(1883),i=n(1602)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},5904:(e,t,n)=>{var r=n(2),o=n(665),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},9310:(e,t,n)=>{var r=n(200),o=n(5975),i="__core-js_shared__",s=r[i]||o(i,{});e.exports=s},2:(e,t,n)=>{var r=n(6926),o=n(9310);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.12.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},7804:(e,t,n)=>{var r=n(7317),o=n(1229),i=function(e){return function(t,n){var i,s,a=String(o(t)),c=r(n),u=a.length;return c<0||c>=u?e?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):i:e?a.slice(c,c+2):s-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},9233:(e,t,n)=>{var r=n(2074),o=n(5073);e.exports=function(e){return r((function(){return!!o[e]()||"​…᠎"!="​…᠎"[e]()||o[e].name!==e}))}},9163:(e,t,n)=>{var r=n(1229),o="["+n(5073)+"]",i=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),a=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:a(1),end:a(2),trim:a(3)}},6539:(e,t,n)=>{var r=n(7317),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5476:(e,t,n)=>{var r=n(8664),o=n(1229);e.exports=function(e){return r(o(e))}},7317:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},3747:(e,t,n)=>{var r=n(7317),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},2612:(e,t,n)=>{var r=n(1229);e.exports=function(e){return Object(r(e))}},874:(e,t,n)=>{var r=n(5335);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},3129:(e,t,n)=>{var r={};r[n(1602)("toStringTag")]="z",e.exports="[object z]"===String(r)},665:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},5225:(e,t,n)=>{var r=n(1849);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},802:(e,t,n)=>{var r=n(1602);t.f=r},1602:(e,t,n)=>{var r=n(200),o=n(2),i=n(1883),s=n(665),a=n(1849),c=n(5225),u=o("wks"),l=r.Symbol,d=c?l:l&&l.withoutSetter||s;e.exports=function(e){return i(u,e)&&(a||"string"==typeof u[e])||(a&&i(l,e)?u[e]=l[e]:u[e]=d("Symbol."+e)),u[e]}},5073:e=>{e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},115:(e,t,n)=>{"use strict";var r=n(1605),o=n(2074),i=n(8679),s=n(5335),a=n(2612),c=n(3747),u=n(2057),l=n(2998),d=n(5634),p=n(1602),f=n(6845),h=p("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",v=f>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),y=d("concat"),_=function(e){if(!s(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!v||!y},{concat:function(e){var t,n,r,o,i,s=a(this),d=l(s,0),p=0;for(t=-1,r=arguments.length;tm)throw TypeError(g);for(n=0;n=m)throw TypeError(g);u(d,p++,i)}return d.length=p,d}})},17:(e,t,n)=>{"use strict";var r=n(1605),o=n(1344).filter;r({target:"Array",proto:!0,forced:!n(5634)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},8636:(e,t,n)=>{"use strict";var r=n(1605),o=n(1344).find,i=n(298),s="find",a=!0;s in[]&&Array(1)[s]((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},9693:(e,t,n)=>{"use strict";var r=n(1605),o=n(8186).indexOf,i=n(2349),s=[].indexOf,a=!!s&&1/[1].indexOf(1,-0)<0,c=i("indexOf");r({target:"Array",proto:!0,forced:a||!c},{indexOf:function(e){return a?s.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},9581:(e,t,n)=>{"use strict";var r=n(1605),o=n(1344).map;r({target:"Array",proto:!0,forced:!n(5634)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},4913:(e,t,n)=>{"use strict";var r=n(1605),o=n(5335),i=n(8679),s=n(6539),a=n(3747),c=n(5476),u=n(2057),l=n(1602),d=n(5634)("slice"),p=l("species"),f=[].slice,h=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,r,l,d=c(this),m=a(d.length),g=s(e,m),v=s(void 0===t?m:t,m);if(i(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[p])&&(n=void 0):n=void 0,n===Array||void 0===n))return f.call(d,g,v);for(r=new(void 0===n?Array:n)(h(v-g,0)),l=0;g{var r=n(1605),o=n(2612),i=n(1641);r({target:"Object",stat:!0,forced:n(2074)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},5086:(e,t,n)=>{var r=n(3129),o=n(7485),i=n(4972);r||o(Object.prototype,"toString",i,{unsafe:!0})},7136:(e,t,n)=>{"use strict";var r=n(1605),o=n(54);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},6048:(e,t,n)=>{"use strict";var r=n(7485),o=n(3938),i=n(2074),s=n(6844),a="toString",c=RegExp.prototype,u=c[a],l=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=u.name!=a;(l||d)&&r(RegExp.prototype,a,(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in c)?s.call(e):n)}),{unsafe:!0})},6255:(e,t,n)=>{"use strict";var r=n(779),o=n(3938),i=n(3747),s=n(1229),a=n(7234),c=n(6793);r("match",1,(function(e,t,n){return[function(t){var n=s(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var s=o(e),u=String(this);if(!s.global)return c(s,u);var l=s.unicode;s.lastIndex=0;for(var d,p=[],f=0;null!==(d=c(s,u));){var h=String(d[0]);p[f]=h,""===h&&(s.lastIndex=a(u,i(s.lastIndex),l)),f++}return 0===f?null:p}]}))},173:(e,t,n)=>{"use strict";var r=n(779),o=n(3938),i=n(3747),s=n(7317),a=n(1229),c=n(7234),u=n(4433),l=n(6793),d=Math.max,p=Math.min;r("replace",2,(function(e,t,n,r){var f=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,h=r.REPLACE_KEEPS_$0,m=f?"$":"$0";return[function(n,r){var o=a(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!f&&h||"string"==typeof r&&-1===r.indexOf(m)){var a=n(t,e,this,r);if(a.done)return a.value}var g=o(e),v=String(this),y="function"==typeof r;y||(r=String(r));var _=g.global;if(_){var b=g.unicode;g.lastIndex=0}for(var S=[];;){var w=l(g,v);if(null===w)break;if(S.push(w),!_)break;""===String(w[0])&&(g.lastIndex=c(v,i(g.lastIndex),b))}for(var k,x="",E=0,T=0;T=E&&(x+=v.slice(E,I)+P,E=I+C.length)}return x+v.slice(E)}]}))},4989:(e,t,n)=>{"use strict";var r,o=n(1605),i=n(7632).f,s=n(3747),a=n(2588),c=n(1229),u=n(4177),l=n(6926),d="".startsWith,p=Math.min,f=u("startsWith");o({target:"String",proto:!0,forced:!(!l&&!f&&(r=i(String.prototype,"startsWith"),r&&!r.writable)||f)},{startsWith:function(e){var t=String(c(this));a(e);var n=s(p(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return d?d.call(t,r,n):t.slice(n,n+r.length)===r}})},8329:(e,t,n)=>{"use strict";var r=n(1605),o=n(9163).trim;r({target:"String",proto:!0,forced:n(9233)("trim")},{trim:function(){return o(this)}})},590:(e,t,n)=>{"use strict";var r=n(1605),o=n(5077),i=n(200),s=n(1883),a=n(5335),c=n(3610).f,u=n(4361),l=i.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var d={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new l(e):void 0===e?l():l(e);return""===e&&(d[t]=!0),t};u(p,l);var f=p.prototype=l.prototype;f.constructor=p;var h=f.toString,m="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;c(f,"description",{configurable:!0,get:function(){var e=a(this)?this.valueOf():this,t=h.call(e);if(s(d,e))return"";var n=m?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},3534:(e,t,n)=>{"use strict";var r=n(1605),o=n(200),i=n(6492),s=n(6926),a=n(5077),c=n(1849),u=n(5225),l=n(2074),d=n(1883),p=n(8679),f=n(5335),h=n(3938),m=n(2612),g=n(5476),v=n(874),y=n(6843),_=n(3105),b=n(1641),S=n(4789),w=n(6509),k=n(8916),x=n(7632),E=n(3610),T=n(9304),C=n(7712),I=n(7485),O=n(2),A=n(5904),R=n(7708),M=n(665),P=n(1602),j=n(802),D=n(1272),N=n(5282),L=n(9206),z=n(1344).forEach,F=A("hidden"),$="Symbol",B="prototype",U=P("toPrimitive"),q=L.set,H=L.getterFor($),W=Object[B],V=o.Symbol,G=i("JSON","stringify"),K=x.f,Y=E.f,J=w.f,X=T.f,Z=O("symbols"),Q=O("op-symbols"),ee=O("string-to-symbol-registry"),te=O("symbol-to-string-registry"),ne=O("wks"),re=o.QObject,oe=!re||!re[B]||!re[B].findChild,ie=a&&l((function(){return 7!=_(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(W,t);r&&delete W[t],Y(e,t,n),r&&e!==W&&Y(W,t,r)}:Y,se=function(e,t){var n=Z[e]=_(V[B]);return q(n,{type:$,tag:e,description:t}),a||(n.description=t),n},ae=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof V},ce=function(e,t,n){e===W&&ce(Q,t,n),h(e);var r=v(t,!0);return h(n),d(Z,r)?(n.enumerable?(d(e,F)&&e[F][r]&&(e[F][r]=!1),n=_(n,{enumerable:y(0,!1)})):(d(e,F)||Y(e,F,y(1,{})),e[F][r]=!0),ie(e,r,n)):Y(e,r,n)},ue=function(e,t){h(e);var n=g(t),r=b(n).concat(fe(n));return z(r,(function(t){a&&!le.call(n,t)||ce(e,t,n[t])})),e},le=function(e){var t=v(e,!0),n=X.call(this,t);return!(this===W&&d(Z,t)&&!d(Q,t))&&(!(n||!d(this,t)||!d(Z,t)||d(this,F)&&this[F][t])||n)},de=function(e,t){var n=g(e),r=v(t,!0);if(n!==W||!d(Z,r)||d(Q,r)){var o=K(n,r);return!o||!d(Z,r)||d(n,F)&&n[F][r]||(o.enumerable=!0),o}},pe=function(e){var t=J(g(e)),n=[];return z(t,(function(e){d(Z,e)||d(R,e)||n.push(e)})),n},fe=function(e){var t=e===W,n=J(t?Q:g(e)),r=[];return z(n,(function(e){!d(Z,e)||t&&!d(W,e)||r.push(Z[e])})),r};c||(I((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=M(e),n=function(e){this===W&&n.call(Q,e),d(this,F)&&d(this[F],t)&&(this[F][t]=!1),ie(this,t,y(1,e))};return a&&oe&&ie(W,t,{configurable:!0,set:n}),se(t,e)})[B],"toString",(function(){return H(this).tag})),I(V,"withoutSetter",(function(e){return se(M(e),e)})),T.f=le,E.f=ce,x.f=de,S.f=w.f=pe,k.f=fe,j.f=function(e){return se(P(e),e)},a&&(Y(V[B],"description",{configurable:!0,get:function(){return H(this).description}}),s||I(W,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:V}),z(b(ne),(function(e){D(e)})),r({target:$,stat:!0,forced:!c},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var n=V(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!a},{create:function(e,t){return void 0===t?_(e):ue(_(e),t)},defineProperty:ce,defineProperties:ue,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pe,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:l((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(m(e))}}),G&&r({target:"JSON",stat:!0,forced:!c||l((function(){var e=V();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(f(t)||void 0!==e)&&!ae(e))return p(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ae(t))return t}),o[1]=t,G.apply(null,o)}}),V[B][U]||C(V[B],U,V[B].valueOf),N(V,$),R[F]=!0},8379:(e,t,n)=>{var r=n(200),o=n(5549),i=n(516),s=n(7712);for(var a in o){var c=r[a],u=c&&c.prototype;if(u&&u.forEach!==i)try{s(u,"forEach",i)}catch(e){u.forEach=i}}},5158:e=>{var t;self,t=()=>(()=>{var e={2690:(e,t,n)=>{"use strict";function r(){for(var e=document.cookie.split(";"),t=[],n=new RegExp("^\\s*([^=]+)\\s*=\\s*(.*?)$"),r=0;rA}),n(9305),n(2733),n(4701),n(1678),n(4776),n(4382),n(9892),n(4962),n(6584),n(9336),n(4754),n(1908),n(94),n(7132),n(6457),n(8908),n(3810),n(8557),n(646),n(5021),n(3687),n(2745),n(3994),n(3062),n(4062),n(3630),n(2367);var i=n(5482);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function a(e,t,n){return t=u(t),function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||E(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0)return t[0]}},{key:"getDefaultConsent",value:function(e){var t=e.default||e.required;return void 0===t&&(t=this.config.default),void 0===t&&(t=!1),t}},{key:"changeAll",value:function(e){var t=this,n=0;return this.config.services.filter((function(e){return!e.contextualConsentOnly})).map((function(r){r.required||t.config.required||e?t.updateConsent(r.name,!0)&&n++:t.updateConsent(r.name,!1)&&n++})),n}},{key:"updateConsent",value:function(e,t){var n=(this.consents[e]||!1)!==t;return this.consents[e]=t,this.notify("consents",this.consents),n}},{key:"resetConsents",value:function(){this.consents=this.defaultConsents,this.states={},this.confirmed=!1,this.applyConsents(),this.savedConsents=I({},this.consents),this.store.delete(),this.notify("consents",this.consents)}},{key:"getConsent",value:function(e){return this.consents[e]||!1}},{key:"loadConsents",value:function(){var e=this.store.get();return null!==e&&(this.consents=JSON.parse(decodeURIComponent(e)),this._checkConsents(),this.notify("consents",this.consents)),this.consents}},{key:"saveAndApplyConsents",value:function(e){this.saveConsents(e),this.applyConsents()}},{key:"changedConsents",value:function(){for(var e={},t=0,n=Object.entries(this.consents);t0)for(var n=r(),i=0;i{"use strict";function r(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==t.return||t.return()}finally{if(a)throw i}}}}(document.querySelectorAll("style[data-context=klaro-styles]"));try{for(n.s();!(t=n.n()).done;){var o=t.value,i=o.innerText;void 0!==o.styleSheet&&(i=o.styleSheet.cssText);for(var s=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=c[a])||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,s=[],a=!0,c=!1;try{for(o=(t=t.call(e)).next;!(a=(n=o.call(t)).done)&&(s.push(n.value),2!==s.length);a=!0);}catch(e){c=!0,r=e}finally{try{if(!a&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw r}}return s}}(e)||r(e,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],o=t[1],s=new RegExp("([a-z0-9-]+):[^;]+;[\\s\\n]*\\1:\\s*var\\(--"+n+",\\s*[^\\)]+\\)","g");i=i.replace(s,(function(e,t){return"".concat(t,": ").concat(o,"; ").concat(t,": var(--").concat(n,", ").concat(o,")")}))},a=0,c=Object.entries(e);ac,RT:()=>s,X7:()=>a,XZ:()=>i}),n(9305),n(2733),n(4701),n(4776),n(9892),n(6281),n(4962),n(9336),n(1908),n(7132),n(3810),n(8557),n(646),n(5021),n(3687),n(9425),n(3994),n(3062),n(4062),n(2367)},362:(e,t,n)=>{"use strict";var r=n(6441);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2688:(e,t,n)=>{e.exports=n(362)()},6441:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8120:(e,t,n)=>{"use strict";var r=n(1483),o=n(8761),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},2374:(e,t,n)=>{"use strict";var r=n(943),o=n(8761),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a constructor")}},3852:(e,t,n)=>{"use strict";var r=n(735),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},7095:(e,t,n)=>{"use strict";var r=n(1),o=n(5290),i=n(5835).f,s=r("unscopables"),a=Array.prototype;void 0===a[s]&&i(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},4419:(e,t,n)=>{"use strict";var r=n(9105).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},6021:(e,t,n)=>{"use strict";var r=n(4815),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o("Incorrect invocation")}},2293:(e,t,n)=>{"use strict";var r=n(1704),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},9214:(e,t,n)=>{"use strict";var r=n(8473);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},4793:(e,t,n)=>{"use strict";var r=n(2867).forEach,o=n(3152)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},6142:(e,t,n)=>{"use strict";var r=n(2914),o=n(1807),i=n(2347),s=n(8901),a=n(5299),c=n(943),u=n(6960),l=n(670),d=n(4887),p=n(6665),f=Array;e.exports=function(e){var t=i(e),n=c(this),h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m;g&&(m=r(m,h>2?arguments[2]:void 0));var v,y,_,b,S,w,k=p(t),x=0;if(!k||this===f&&a(k))for(v=u(t),y=n?new this(v):f(v);v>x;x++)w=g?m(t[x],x):t[x],l(y,x,w);else for(S=(b=d(t,k)).next,y=n?new this:[];!(_=o(S,b)).done;x++)w=g?s(b,m,[_.value,x],!0):_.value,l(y,x,w);return y.length=x,y}},6651:(e,t,n)=>{"use strict";var r=n(5599),o=n(3392),i=n(6960),s=function(e){return function(t,n,s){var a=r(t),c=i(a);if(0===c)return!e&&-1;var u,l=o(s,c);if(e&&n!=n){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((e||l in a)&&a[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},2867:(e,t,n)=>{"use strict";var r=n(2914),o=n(4762),i=n(2121),s=n(2347),a=n(6960),c=n(4551),u=o([].push),l=function(e){var t=1===e,n=2===e,o=3===e,l=4===e,d=6===e,p=7===e,f=5===e||d;return function(h,m,g,v){for(var y,_,b=s(h),S=i(b),w=a(S),k=r(m,g),x=0,E=v||c,T=t?E(h,w):n||p?E(h,0):void 0;w>x;x++)if((f||x in S)&&(_=k(y=S[x],x,b),e))if(t)T[x]=_;else if(_)switch(e){case 3:return!0;case 5:return y;case 6:return x;case 2:u(T,y)}else switch(e){case 4:return!1;case 7:u(T,y)}return d?-1:o||l?l:T}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},4595:(e,t,n)=>{"use strict";var r=n(8473),o=n(1),i=n(6170),s=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},3152:(e,t,n)=>{"use strict";var r=n(8473);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},1698:(e,t,n)=>{"use strict";var r=n(4762);e.exports=r([].slice)},7354:(e,t,n)=>{"use strict";var r=n(1698),o=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var s,a,c=1;c0;)e[a]=e[--a];a!==c++&&(e[a]=s)}else for(var u=o(n/2),l=i(r(e,0,u),t),d=i(r(e,u),t),p=l.length,f=d.length,h=0,m=0;h{"use strict";var r=n(4914),o=n(943),i=n(1704),s=n(1)("species"),a=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===a||r(t.prototype))||i(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?a:t}},4551:(e,t,n)=>{"use strict";var r=n(9703);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},8901:(e,t,n)=>{"use strict";var r=n(2293),o=n(6721);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},1554:(e,t,n)=>{"use strict";var r=n(1)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},1278:(e,t,n)=>{"use strict";var r=n(4762),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},6145:(e,t,n)=>{"use strict";var r=n(4338),o=n(1483),i=n(1278),s=n(1)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?n:c?i(t):"Object"===(r=i(t))&&o(t.callee)?"Arguments":r}},4092:(e,t,n)=>{"use strict";var r=n(5290),o=n(3864),i=n(2313),s=n(2914),a=n(6021),c=n(5983),u=n(1506),l=n(5662),d=n(5247),p=n(240),f=n(382),h=n(8041).fastKey,m=n(4483),g=m.set,v=m.getterFor;e.exports={getConstructor:function(e,t,n,l){var d=e((function(e,o){a(e,p),g(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),f||(e.size=0),c(o)||u(o,e[l],{that:e,AS_ENTRIES:n})})),p=d.prototype,m=v(t),y=function(e,t,n){var r,o,i=m(e),s=_(e,t);return s?s.value=n:(i.last=s={index:o=h(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=s),r&&(r.next=s),f?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},_=function(e,t){var n,r=m(e),o=h(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===t)return n};return i(p,{clear:function(){for(var e=m(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=r(null),f?e.size=0:this.size=0},delete:function(e){var t=this,n=m(t),r=_(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first===r&&(n.first=o),n.last===r&&(n.last=i),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=m(this),r=s(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!_(this,e)}}),i(p,n?{get:function(e){var t=_(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),f&&o(p,"size",{configurable:!0,get:function(){return m(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",o=v(t),i=v(r);l(e,t,(function(e,t){g(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,d(void 0,!0))}),n?"entries":"values",!n,!0),p(t)}}},7446:(e,t,n)=>{"use strict";var r=n(8612),o=n(8389),i=n(4762),s=n(8730),a=n(7914),c=n(8041),u=n(1506),l=n(6021),d=n(1483),p=n(5983),f=n(1704),h=n(8473),m=n(1554),g=n(2277),v=n(2429);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),_=-1!==e.indexOf("Weak"),b=y?"set":"add",S=o[e],w=S&&S.prototype,k=S,x={},E=function(e){var t=i(w[e]);a(w,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(_&&!f(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return _&&!f(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(_&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(s(e,!d(S)||!(_||w.forEach&&!h((function(){(new S).entries().next()})))))k=n.getConstructor(t,e,y,b),c.enable();else if(s(e,!0)){var T=new k,C=T[b](_?{}:-0,1)!==T,I=h((function(){T.has(1)})),O=m((function(e){new S(e)})),A=!_&&h((function(){for(var e=new S,t=5;t--;)e[b](t,t);return!e.has(-0)}));O||((k=t((function(e,t){l(e,w);var n=v(new S,e,k);return p(t)||u(t,n[b],{that:n,AS_ENTRIES:y}),n}))).prototype=w,w.constructor=k),(I||A)&&(E("delete"),E("has"),y&&E("get")),(A||C)&&E(b),_&&w.clear&&delete w.clear}return x[e]=k,r({global:!0,constructor:!0,forced:k!==S},x),g(k,e),_||n.setStrong(k,e,y),k}},6726:(e,t,n)=>{"use strict";var r=n(5755),o=n(9497),i=n(4961),s=n(5835);e.exports=function(e,t,n){for(var a=o(t),c=s.f,u=i.f,l=0;l{"use strict";var r=n(1)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},9441:(e,t,n)=>{"use strict";var r=n(8473);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5247:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},9037:(e,t,n)=>{"use strict";var r=n(382),o=n(5835),i=n(7738);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},7738:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},670:(e,t,n)=>{"use strict";var r=n(382),o=n(5835),i=n(7738);e.exports=function(e,t,n){r?o.f(e,t,i(0,n)):e[t]=n}},6446:(e,t,n)=>{"use strict";var r=n(2293),o=n(348),i=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},3864:(e,t,n)=>{"use strict";var r=n(169),o=n(5835);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},7914:(e,t,n)=>{"use strict";var r=n(1483),o=n(5835),i=n(169),s=n(2095);e.exports=function(e,t,n,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:t;if(r(n)&&i(n,u,a),a.global)c?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},2313:(e,t,n)=>{"use strict";var r=n(7914);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},2095:(e,t,n)=>{"use strict";var r=n(8389),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6060:(e,t,n)=>{"use strict";var r=n(8761),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+r(t)+" of "+r(e))}},382:(e,t,n)=>{"use strict";var r=n(8473);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3145:(e,t,n)=>{"use strict";var r=n(8389),o=n(1704),i=r.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},1091:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},4842:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},1902:(e,t,n)=>{"use strict";var r=n(3145)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},7332:(e,t,n)=>{"use strict";var r=n(9966).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},6956:(e,t,n)=>{"use strict";var r=n(938),o=n(4334);e.exports=!r&&!o&&"object"==typeof window&&"object"==typeof document},5413:e=>{"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},938:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},8996:(e,t,n)=>{"use strict";var r=n(9966);e.exports=/MSIE|Trident/.test(r)},4466:(e,t,n)=>{"use strict";var r=n(9966);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},8417:(e,t,n)=>{"use strict";var r=n(9966);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},4334:(e,t,n)=>{"use strict";var r=n(8389),o=n(1278);e.exports="process"===o(r.process)},6639:(e,t,n)=>{"use strict";var r=n(9966);e.exports=/web0s(?!.*chrome)/i.test(r)},9966:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},6170:(e,t,n)=>{"use strict";var r,o,i=n(8389),s=n(9966),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},5158:(e,t,n)=>{"use strict";var r=n(9966).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},4741:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8612:(e,t,n)=>{"use strict";var r=n(8389),o=n(4961).f,i=n(9037),s=n(7914),a=n(2095),c=n(6726),u=n(8730);e.exports=function(e,t){var n,l,d,p,f,h=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[h]||a(h,{}):r[h]&&r[h].prototype)for(l in t){if(p=t[l],d=e.dontCallGetSet?(f=o(n,l))&&f.value:n[l],!u(m?l:h+(g?".":"#")+l,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),s(n,l,p,e)}}},8473:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},3358:(e,t,n)=>{"use strict";n(5021);var r=n(1807),o=n(7914),i=n(8865),s=n(8473),a=n(1),c=n(9037),u=a("species"),l=RegExp.prototype;e.exports=function(e,t,n,d){var p=a(e),f=!s((function(){var t={};return t[p]=function(){return 7},7!==""[e](t)})),h=f&&!s((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!f||!h||n){var m=/./[p],g=t(p,""[e],(function(e,t,n,o,s){var a=t.exec;return a===i||a===l.exec?f&&!s?{done:!0,value:r(m,t,n,o)}:{done:!0,value:r(e,n,t,o)}:{done:!1}}));o(String.prototype,e,g[0]),o(l,p,g[1])}d&&c(l[p],"sham",!0)}},6530:(e,t,n)=>{"use strict";var r=n(8473);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},3067:(e,t,n)=>{"use strict";var r=n(274),o=Function.prototype,i=o.apply,s=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(i):function(){return s.apply(i,arguments)})},2914:(e,t,n)=>{"use strict";var r=n(3786),o=n(8120),i=n(274),s=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}},274:(e,t,n)=>{"use strict";var r=n(8473);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},2164:(e,t,n)=>{"use strict";var r=n(4762),o=n(8120),i=n(1704),s=n(5755),a=n(1698),c=n(274),u=Function,l=r([].concat),d=r([].join),p={};e.exports=c?u.bind:function(e){var t=o(this),n=t.prototype,r=a(arguments,1),c=function(){var n=l(r,a(arguments));return this instanceof c?function(e,t,n){if(!s(p,t)){for(var r=[],o=0;o{"use strict";var r=n(274),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},2048:(e,t,n)=>{"use strict";var r=n(382),o=n(5755),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&s(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},680:(e,t,n)=>{"use strict";var r=n(4762),o=n(8120);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},3786:(e,t,n)=>{"use strict";var r=n(1278),o=n(4762);e.exports=function(e){if("Function"===r(e))return o(e)}},4762:(e,t,n)=>{"use strict";var r=n(274),o=Function.prototype,i=o.call,s=r&&o.bind.bind(i,i);e.exports=r?s:function(e){return function(){return i.apply(e,arguments)}}},1409:(e,t,n)=>{"use strict";var r=n(8389),o=n(1483);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},6665:(e,t,n)=>{"use strict";var r=n(6145),o=n(2564),i=n(5983),s=n(6775),a=n(1)("iterator");e.exports=function(e){if(!i(e))return o(e,a)||o(e,"@@iterator")||s[r(e)]}},4887:(e,t,n)=>{"use strict";var r=n(1807),o=n(8120),i=n(2293),s=n(8761),a=n(6665),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(o(n))return i(r(n,e));throw new c(s(e)+" is not iterable")}},5215:(e,t,n)=>{"use strict";var r=n(4762),o=n(4914),i=n(1483),s=n(1278),a=n(6261),c=r([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,n=[],r=0;r{"use strict";var r=n(8120),o=n(5983);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},708:(e,t,n)=>{"use strict";var r=n(4762),o=n(2347),i=Math.floor,s=r("".charAt),a=r("".replace),c=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,p){var f=n+e.length,h=r.length,m=l;return void 0!==d&&(d=o(d),m=u),a(p,m,(function(o,a){var u;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,n);case"'":return c(t,f);case"<":u=d[c(a,1,-1)];break;default:var l=+a;if(0===l)return o;if(l>h){var p=i(l/10);return 0===p?o:p<=h?void 0===r[p-1]?s(a,1):r[p-1]+s(a,1):o}u=r[l-1]}return void 0===u?"":u}))}},8389:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},5755:(e,t,n)=>{"use strict";var r=n(4762),o=n(2347),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},1507:e=>{"use strict";e.exports={}},1339:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},2811:(e,t,n)=>{"use strict";var r=n(1409);e.exports=r("document","documentElement")},1799:(e,t,n)=>{"use strict";var r=n(382),o=n(8473),i=n(3145);e.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2121:(e,t,n)=>{"use strict";var r=n(4762),o=n(8473),i=n(1278),s=Object,a=r("".split);e.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):s(e)}:s},2429:(e,t,n)=>{"use strict";var r=n(1483),o=n(1704),i=n(1953);e.exports=function(e,t,n){var s,a;return i&&r(s=t.constructor)&&s!==n&&o(a=s.prototype)&&a!==n.prototype&&i(e,a),e}},7268:(e,t,n)=>{"use strict";var r=n(4762),o=n(1483),i=n(1831),s=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},8041:(e,t,n)=>{"use strict";var r=n(8612),o=n(4762),i=n(1507),s=n(1704),a=n(5755),c=n(5835).f,u=n(2278),l=n(2020),d=n(706),p=n(1866),f=n(6530),h=!1,m=p("meta"),g=0,v=function(e){c(e,m,{value:{objectID:"O"+g++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},h=!0;var e=u.f,t=o([].splice),n={};n[m]=1,e(n).length&&(u.f=function(n){for(var r=e(n),o=0,i=r.length;o{"use strict";var r,o,i,s=n(4644),a=n(8389),c=n(1704),u=n(9037),l=n(5755),d=n(1831),p=n(5409),f=n(1507),h="Object already initialized",m=a.TypeError,g=a.WeakMap;if(s||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw new m(h);return t.facade=e,v.set(e,t),t},o=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var y=p("state");f[y]=!0,r=function(e,t){if(l(e,y))throw new m(h);return t.facade=e,u(e,y,t),t},o=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},5299:(e,t,n)=>{"use strict";var r=n(1),o=n(6775),i=r("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[i]===e)}},4914:(e,t,n)=>{"use strict";var r=n(1278);e.exports=Array.isArray||function(e){return"Array"===r(e)}},1483:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},943:(e,t,n)=>{"use strict";var r=n(4762),o=n(8473),i=n(1483),s=n(6145),a=n(1409),c=n(7268),u=function(){},l=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=r(d.exec),f=!d.test(u),h=function(e){if(!i(e))return!1;try{return l(u,[],e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!p(d,c(e))}catch(e){return!0}};m.sham=!0,e.exports=!l||o((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?m:h},8730:(e,t,n)=>{"use strict";var r=n(8473),o=n(1483),i=/#|\.prototype\./,s=function(e,t){var n=c[a(e)];return n===l||n!==u&&(o(t)?r(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},5983:e=>{"use strict";e.exports=function(e){return null==e}},1704:(e,t,n)=>{"use strict";var r=n(1483);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},735:(e,t,n)=>{"use strict";var r=n(1704);e.exports=function(e){return r(e)||null===e}},9557:e=>{"use strict";e.exports=!1},4786:(e,t,n)=>{"use strict";var r=n(1704),o=n(1278),i=n(1)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},1423:(e,t,n)=>{"use strict";var r=n(1409),o=n(1483),i=n(4815),s=n(5022),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,a(e))}},1506:(e,t,n)=>{"use strict";var r=n(2914),o=n(1807),i=n(2293),s=n(8761),a=n(5299),c=n(6960),u=n(4815),l=n(4887),d=n(6665),p=n(6721),f=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,n){var g,v,y,_,b,S,w,k=n&&n.that,x=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),I=r(t,k),O=function(e){return g&&p(g,"normal",e),new h(!0,e)},A=function(e){return x?(i(e),C?I(e[0],e[1],O):I(e[0],e[1])):C?I(e,O):I(e)};if(E)g=e.iterator;else if(T)g=e;else{if(!(v=d(e)))throw new f(s(e)+" is not iterable");if(a(v)){for(y=0,_=c(e);_>y;y++)if((b=A(e[y]))&&u(m,b))return b;return new h(!1)}g=l(e,v)}for(S=E?e.next:g.next;!(w=o(S,g)).done;){try{b=A(w.value)}catch(e){p(g,"throw",e)}if("object"==typeof b&&b&&u(m,b))return b}return new h(!1)}},6721:(e,t,n)=>{"use strict";var r=n(1807),o=n(2293),i=n(2564);e.exports=function(e,t,n){var s,a;o(e);try{if(!(s=i(e,"return"))){if("throw"===t)throw n;return n}s=r(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw n;if(a)throw s;return o(s),n}},1040:(e,t,n)=>{"use strict";var r=n(1851).IteratorPrototype,o=n(5290),i=n(7738),s=n(2277),a=n(6775),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),s(e,l,!1,!0),a[l]=c,e}},5662:(e,t,n)=>{"use strict";var r=n(8612),o=n(1807),i=n(9557),s=n(2048),a=n(1483),c=n(1040),u=n(3181),l=n(1953),d=n(2277),p=n(9037),f=n(7914),h=n(1),m=n(6775),g=n(1851),v=s.PROPER,y=s.CONFIGURABLE,_=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,S=h("iterator"),w="keys",k="values",x="entries",E=function(){return this};e.exports=function(e,t,n,s,h,g,T){c(n,t,s);var C,I,O,A=function(e){if(e===h&&D)return D;if(!b&&e&&e in P)return P[e];switch(e){case w:case k:case x:return function(){return new n(this,e)}}return function(){return new n(this)}},R=t+" Iterator",M=!1,P=e.prototype,j=P[S]||P["@@iterator"]||h&&P[h],D=!b&&j||A(h),N="Array"===t&&P.entries||j;if(N&&(C=u(N.call(new e)))!==Object.prototype&&C.next&&(i||u(C)===_||(l?l(C,_):a(C[S])||f(C,S,E)),d(C,R,!0,!0),i&&(m[R]=E)),v&&h===k&&j&&j.name!==k&&(!i&&y?p(P,"name",k):(M=!0,D=function(){return o(j,this)})),h)if(I={values:A(k),keys:g?D:A(w),entries:A(x)},T)for(O in I)(b||M||!(O in P))&&f(P,O,I[O]);else r({target:t,proto:!0,forced:b||M},I);return i&&!T||P[S]===D||f(P,S,D,{name:h}),m[t]=D,I}},1851:(e,t,n)=>{"use strict";var r,o,i,s=n(8473),a=n(1483),c=n(1704),u=n(5290),l=n(3181),d=n(7914),p=n(1),f=n(9557),h=p("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):m=!0),!c(r)||s((function(){var e={};return r[h].call(e)!==e}))?r={}:f&&(r=u(r)),a(r[h])||d(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},6775:e=>{"use strict";e.exports={}},6960:(e,t,n)=>{"use strict";var r=n(8324);e.exports=function(e){return r(e.length)}},169:(e,t,n)=>{"use strict";var r=n(4762),o=n(8473),i=n(1483),s=n(5755),a=n(382),c=n(2048).CONFIGURABLE,u=n(7268),l=n(4483),d=l.enforce,p=l.get,f=String,h=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),y=a&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),_=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===m(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||c&&e.name!==t)&&(a?h(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&s(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return s(r,"source")||(r.source=v(_,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return i(this)&&p(this).source||u(this)}),"toString")},1703:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},553:(e,t,n)=>{"use strict";var r,o,i,s,a,c=n(8389),u=n(8123),l=n(2914),d=n(7007).set,p=n(5459),f=n(8417),h=n(4466),m=n(6639),g=n(4334),v=c.MutationObserver||c.WebKitMutationObserver,y=c.document,_=c.process,b=c.Promise,S=u("queueMicrotask");if(!S){var w=new p,k=function(){var e,t;for(g&&(e=_.domain)&&e.exit();t=w.get();)try{t()}catch(e){throw w.head&&r(),e}e&&e.enter()};f||g||m||!v||!y?!h&&b&&b.resolve?((s=b.resolve(void 0)).constructor=b,a=l(s.then,s),r=function(){a(k)}):g?r=function(){_.nextTick(k)}:(d=l(d,c),r=function(){d(k)}):(o=!0,i=y.createTextNode(""),new v(k).observe(i,{characterData:!0}),r=function(){i.data=o=!o}),S=function(e){w.head||r(),w.add(e)}}e.exports=S},1173:(e,t,n)=>{"use strict";var r=n(8120),o=TypeError,i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new o("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},4989:(e,t,n)=>{"use strict";var r=n(4786),o=TypeError;e.exports=function(e){if(r(e))throw new o("The method doesn't accept regular expressions");return e}},1439:(e,t,n)=>{"use strict";var r=n(382),o=n(4762),i=n(1807),s=n(8473),a=n(3658),c=n(4347),u=n(7611),l=n(2347),d=n(2121),p=Object.assign,f=Object.defineProperty,h=o([].concat);e.exports=!p||s((function(){if(r&&1!==p({b:1},p(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!==p({},e)[n]||a(p({},t)).join("")!==o}))?function(e,t){for(var n=l(e),o=arguments.length,s=1,p=c.f,f=u.f;o>s;)for(var m,g=d(arguments[s++]),v=p?h(a(g),p(g)):a(g),y=v.length,_=0;y>_;)m=v[_++],r&&!i(f,g,m)||(n[m]=g[m]);return n}:p},5290:(e,t,n)=>{"use strict";var r,o=n(2293),i=n(5799),s=n(4741),a=n(1507),c=n(2811),u=n(3145),l=n(5409),d="prototype",p="script",f=l("IE_PROTO"),h=function(){},m=function(e){return"<"+p+">"+e+""},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&r?g(r):(t=u("iframe"),n="java"+p+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(r);for(var o=s.length;o--;)delete v[d][s[o]];return v()};a[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[d]=o(e),n=new h,h[d]=null,n[f]=e):n=v(),void 0===t?n:i.f(n,t)}},5799:(e,t,n)=>{"use strict";var r=n(382),o=n(3896),i=n(5835),s=n(2293),a=n(5599),c=n(3658);t.f=r&&!o?Object.defineProperties:function(e,t){s(e);for(var n,r=a(t),o=c(t),u=o.length,l=0;u>l;)i.f(e,n=o[l++],r[n]);return e}},5835:(e,t,n)=>{"use strict";var r=n(382),o=n(1799),i=n(3896),s=n(2293),a=n(3815),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="writable";t.f=r?i?function(e,t,n){if(s(e),t=a(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=l(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(s(e),t=a(t),s(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},4961:(e,t,n)=>{"use strict";var r=n(382),o=n(1807),i=n(7611),s=n(7738),a=n(5599),c=n(3815),u=n(5755),l=n(1799),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=c(t),l)try{return d(e,t)}catch(e){}if(u(e,t))return s(!o(i.f,e,t),e[t])}},2020:(e,t,n)=>{"use strict";var r=n(1278),o=n(5599),i=n(2278).f,s=n(1698),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"Window"===r(e)?function(e){try{return i(e)}catch(e){return s(a)}}(e):i(o(e))}},2278:(e,t,n)=>{"use strict";var r=n(6742),o=n(4741).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},4347:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3181:(e,t,n)=>{"use strict";var r=n(5755),o=n(1483),i=n(2347),s=n(5409),a=n(9441),c=s("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},706:(e,t,n)=>{"use strict";var r=n(8473),o=n(1704),i=n(1278),s=n(9214),a=Object.isExtensible,c=r((function(){a(1)}));e.exports=c||s?function(e){return!!o(e)&&(!s||"ArrayBuffer"!==i(e))&&(!a||a(e))}:a},4815:(e,t,n)=>{"use strict";var r=n(4762);e.exports=r({}.isPrototypeOf)},6742:(e,t,n)=>{"use strict";var r=n(4762),o=n(5755),i=n(5599),s=n(6651).indexOf,a=n(1507),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!o(a,n)&&o(r,n)&&c(l,n);for(;t.length>u;)o(r,n=t[u++])&&(~s(l,n)||c(l,n));return l}},3658:(e,t,n)=>{"use strict";var r=n(6742),o=n(4741);e.exports=Object.keys||function(e){return r(e,o)}},7611:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},1953:(e,t,n)=>{"use strict";var r=n(680),o=n(2293),i=n(3852);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},5627:(e,t,n)=>{"use strict";var r=n(382),o=n(8473),i=n(4762),s=n(3181),a=n(3658),c=n(5599),u=i(n(7611).f),l=i([].push),d=r&&o((function(){var e=Object.create(null);return e[2]=2,!u(e,2)})),p=function(e){return function(t){for(var n,o=c(t),i=a(o),p=d&&null===s(o),f=i.length,h=0,m=[];f>h;)n=i[h++],r&&!(p?n in o:u(o,n))||l(m,e?[n,o[n]]:o[n]);return m}};e.exports={entries:p(!0),values:p(!1)}},5685:(e,t,n)=>{"use strict";var r=n(4338),o=n(6145);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},348:(e,t,n)=>{"use strict";var r=n(1807),o=n(1483),i=n(1704),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&o(n=e.toString)&&!i(a=r(n,e)))return a;if(o(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&o(n=e.toString)&&!i(a=r(n,e)))return a;throw new s("Can't convert object to primitive value")}},9497:(e,t,n)=>{"use strict";var r=n(1409),o=n(4762),i=n(2278),s=n(4347),a=n(2293),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=s.f;return n?c(t,n(e)):t}},6589:(e,t,n)=>{"use strict";var r=n(8389);e.exports=r},4193:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},5502:(e,t,n)=>{"use strict";var r=n(8389),o=n(2832),i=n(1483),s=n(8730),a=n(7268),c=n(1),u=n(6956),l=n(938),d=n(9557),p=n(6170),f=o&&o.prototype,h=c("species"),m=!1,g=i(r.PromiseRejectionEvent),v=s("Promise",(function(){var e=a(o),t=e!==String(o);if(!t&&66===p)return!0;if(d&&(!f.catch||!f.finally))return!0;if(!p||p<51||!/native code/.test(e)){var n=new o((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[h]=r,!(m=n.then((function(){}))instanceof r))return!0}return!t&&(u||l)&&!g}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:g,SUBCLASSING:m}},2832:(e,t,n)=>{"use strict";var r=n(8389);e.exports=r.Promise},2172:(e,t,n)=>{"use strict";var r=n(2293),o=n(1704),i=n(1173);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},1407:(e,t,n)=>{"use strict";var r=n(2832),o=n(1554),i=n(5502).CONSTRUCTOR;e.exports=i||!o((function(e){r.all(e).then(void 0,(function(){}))}))},7150:(e,t,n)=>{"use strict";var r=n(5835).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},5459:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},2428:(e,t,n)=>{"use strict";var r=n(1807),o=n(2293),i=n(1483),s=n(1278),a=n(8865),c=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var u=r(n,e,t);return null!==u&&o(u),u}if("RegExp"===s(e))return r(a,e,t);throw new c("RegExp#exec called on incompatible receiver")}},8865:(e,t,n)=>{"use strict";var r,o,i=n(1807),s=n(4762),a=n(6261),c=n(6653),u=n(7435),l=n(7255),d=n(5290),p=n(4483).get,f=n(3933),h=n(4528),m=l("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,v=g,y=s("".charAt),_=s("".indexOf),b=s("".replace),S=s("".slice),w=(o=/b*/g,i(g,r=/a/,"a"),i(g,o,"a"),0!==r.lastIndex||0!==o.lastIndex),k=u.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(w||x||k||f||h)&&(v=function(e){var t,n,r,o,s,u,l,f=this,h=p(f),E=a(e),T=h.raw;if(T)return T.lastIndex=f.lastIndex,t=i(v,T,E),f.lastIndex=T.lastIndex,t;var C=h.groups,I=k&&f.sticky,O=i(c,f),A=f.source,R=0,M=E;if(I&&(O=b(O,"y",""),-1===_(O,"g")&&(O+="g"),M=S(E,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==y(E,f.lastIndex-1))&&(A="(?: "+A+")",M=" "+M,R++),n=new RegExp("^(?:"+A+")",O)),x&&(n=new RegExp("^"+A+"$(?!\\s)",O)),w&&(r=f.lastIndex),o=i(g,I?n:f,M),I?o?(o.input=S(o.input,R),o[0]=S(o[0],R),o.index=f.lastIndex,f.lastIndex+=o[0].length):f.lastIndex=0:w&&o&&(f.lastIndex=f.global?o.index+o[0].length:r),x&&o&&o.length>1&&i(m,o[0],n,(function(){for(s=1;s{"use strict";var r=n(2293);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},9736:(e,t,n)=>{"use strict";var r=n(1807),o=n(5755),i=n(4815),s=n(6653),a=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in a||o(e,"flags")||!i(a,e)?t:r(s,e)}},7435:(e,t,n)=>{"use strict";var r=n(8473),o=n(8389).RegExp,i=r((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),s=i||r((function(){return!o("a","y").sticky})),a=i||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:i}},3933:(e,t,n)=>{"use strict";var r=n(8473),o=n(8389).RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},4528:(e,t,n)=>{"use strict";var r=n(8473),o=n(8389).RegExp;e.exports=r((function(){var e=o("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},3312:(e,t,n)=>{"use strict";var r=n(5983),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},8123:(e,t,n)=>{"use strict";var r=n(8389),o=n(382),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return r[e];var t=i(r,e);return t&&t.value}},9570:(e,t,n)=>{"use strict";var r,o=n(8389),i=n(3067),s=n(1483),a=n(5413),c=n(9966),u=n(1698),l=n(4066),d=o.Function,p=/MSIE .\./.test(c)||a&&((r=o.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));e.exports=function(e,t){var n=t?2:1;return p?function(r,o){var a=l(arguments.length,1)>n,c=s(r)?r:d(r),p=a?u(arguments,n):[],f=a?function(){i(c,this,p)}:c;return t?e(f,o):e(f)}:e}},240:(e,t,n)=>{"use strict";var r=n(1409),o=n(3864),i=n(1),s=n(382),a=i("species");e.exports=function(e){var t=r(e);s&&t&&!t[a]&&o(t,a,{configurable:!0,get:function(){return this}})}},2277:(e,t,n)=>{"use strict";var r=n(5835).f,o=n(5755),i=n(1)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},5409:(e,t,n)=>{"use strict";var r=n(7255),o=n(1866),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},1831:(e,t,n)=>{"use strict";var r=n(9557),o=n(8389),i=n(2095),s="__core-js_shared__",a=e.exports=o[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.36.0",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7255:(e,t,n)=>{"use strict";var r=n(1831);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},483:(e,t,n)=>{"use strict";var r=n(2293),o=n(2374),i=n(5983),s=n(1)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||i(n=r(a)[s])?t:o(n)}},9105:(e,t,n)=>{"use strict";var r=n(4762),o=n(3005),i=n(6261),s=n(3312),a=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,d=i(s(t)),p=o(n),f=d.length;return p<0||p>=f?e?"":void 0:(r=c(d,p))<55296||r>56319||p+1===f||(l=c(d,p+1))<56320||l>57343?e?a(d,p):r:e?u(d,p,p+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4544:(e,t,n)=>{"use strict";var r=n(4762),o=n(3312),i=n(6261),s=n(5870),a=r("".replace),c=RegExp("^["+s+"]+"),u=RegExp("(^|[^"+s+"])["+s+"]+$"),l=function(e){return function(t){var n=i(o(t));return 1&e&&(n=a(n,c,"")),2&e&&(n=a(n,u,"$1")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},6029:(e,t,n)=>{"use strict";var r=n(6170),o=n(8473),i=n(8389).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8192:(e,t,n)=>{"use strict";var r=n(1807),o=n(1409),i=n(1),s=n(7914);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,a=i("toPrimitive");t&&!t[a]&&s(t,a,(function(e){return r(n,this)}),{arity:1})}},3218:(e,t,n)=>{"use strict";var r=n(6029);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},7007:(e,t,n)=>{"use strict";var r,o,i,s,a=n(8389),c=n(3067),u=n(2914),l=n(1483),d=n(5755),p=n(8473),f=n(2811),h=n(1698),m=n(3145),g=n(4066),v=n(8417),y=n(4334),_=a.setImmediate,b=a.clearImmediate,S=a.process,w=a.Dispatch,k=a.Function,x=a.MessageChannel,E=a.String,T=0,C={},I="onreadystatechange";p((function(){r=a.location}));var O=function(e){if(d(C,e)){var t=C[e];delete C[e],t()}},A=function(e){return function(){O(e)}},R=function(e){O(e.data)},M=function(e){a.postMessage(E(e),r.protocol+"//"+r.host)};_&&b||(_=function(e){g(arguments.length,1);var t=l(e)?e:k(e),n=h(arguments,1);return C[++T]=function(){c(t,void 0,n)},o(T),T},b=function(e){delete C[e]},y?o=function(e){S.nextTick(A(e))}:w&&w.now?o=function(e){w.now(A(e))}:x&&!v?(s=(i=new x).port2,i.port1.onmessage=R,o=u(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!p(M)?(o=M,a.addEventListener("message",R,!1)):o=I in m("script")?function(e){f.appendChild(m("script"))[I]=function(){f.removeChild(this),O(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:_,clear:b}},2430:(e,t,n)=>{"use strict";var r=n(4762);e.exports=r(1..valueOf)},3392:(e,t,n)=>{"use strict";var r=n(3005),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5599:(e,t,n)=>{"use strict";var r=n(2121),o=n(3312);e.exports=function(e){return r(o(e))}},3005:(e,t,n)=>{"use strict";var r=n(1703);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8324:(e,t,n)=>{"use strict";var r=n(3005),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},2347:(e,t,n)=>{"use strict";var r=n(3312),o=Object;e.exports=function(e){return o(r(e))}},2355:(e,t,n)=>{"use strict";var r=n(1807),o=n(1704),i=n(1423),s=n(2564),a=n(348),c=n(1),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,c=s(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!o(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},3815:(e,t,n)=>{"use strict";var r=n(2355),o=n(1423);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},4338:(e,t,n)=>{"use strict";var r={};r[n(1)("toStringTag")]="z",e.exports="[object z]"===String(r)},6261:(e,t,n)=>{"use strict";var r=n(6145),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},8761:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1866:(e,t,n)=>{"use strict";var r=n(4762),o=0,i=Math.random(),s=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+i,36)}},5022:(e,t,n)=>{"use strict";var r=n(6029);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3896:(e,t,n)=>{"use strict";var r=n(382),o=n(8473);e.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4066:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e{"use strict";var r=n(8389),o=n(1483),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},7849:(e,t,n)=>{"use strict";var r=n(6589),o=n(5755),i=n(5373),s=n(5835).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||s(t,e,{value:i.f(e)})}},5373:(e,t,n)=>{"use strict";var r=n(1);t.f=r},1:(e,t,n)=>{"use strict";var r=n(8389),o=n(7255),i=n(5755),s=n(1866),a=n(6029),c=n(5022),u=r.Symbol,l=o("wks"),d=c?u.for||u:u&&u.withoutSetter||s;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:d("Symbol."+e)),l[e]}},5870:e=>{"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},4776:(e,t,n)=>{"use strict";var r=n(8612),o=n(8473),i=n(4914),s=n(1704),a=n(2347),c=n(6960),u=n(1091),l=n(670),d=n(4551),p=n(4595),f=n(1),h=n(6170),m=f("isConcatSpreadable"),g=h>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),v=function(e){if(!s(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!g||!p("concat")},{concat:function(e){var t,n,r,o,i,s=a(this),p=d(s,0),f=0;for(t=-1,r=arguments.length;t{"use strict";var r=n(8612),o=n(2867).filter;r({target:"Array",proto:!0,forced:!n(4595)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},2084:(e,t,n)=>{"use strict";var r=n(8612),o=n(2867).find,i=n(7095),s="find",a=!0;s in[]&&Array(1)[s]((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},9892:(e,t,n)=>{"use strict";var r=n(8612),o=n(6142);r({target:"Array",stat:!0,forced:!n(1554)((function(e){Array.from(e)}))},{from:o})},6281:(e,t,n)=>{"use strict";var r=n(8612),o=n(6651).includes,i=n(8473),s=n(7095);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},4962:(e,t,n)=>{"use strict";var r=n(5599),o=n(7095),i=n(6775),s=n(4483),a=n(5835).f,c=n(5662),u=n(5247),l=n(9557),d=n(382),p="Array Iterator",f=s.set,h=s.getterFor(p);e.exports=c(Array,"Array",(function(e,t){f(this,{type:p,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var m=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&d&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(e){}},6216:(e,t,n)=>{"use strict";var r=n(8612),o=n(4762),i=n(2121),s=n(5599),a=n(3152),c=o([].join);r({target:"Array",proto:!0,forced:i!==Object||!a("join",",")},{join:function(e){return c(s(this),void 0===e?",":e)}})},6584:(e,t,n)=>{"use strict";var r=n(8612),o=n(2867).map;r({target:"Array",proto:!0,forced:!n(4595)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},9336:(e,t,n)=>{"use strict";var r=n(8612),o=n(4914),i=n(943),s=n(1704),a=n(3392),c=n(6960),u=n(5599),l=n(670),d=n(1),p=n(4595),f=n(1698),h=p("slice"),m=d("species"),g=Array,v=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,d,p=u(this),h=c(p),y=a(e,h),_=a(void 0===t?h:t,h);if(o(p)&&(n=p.constructor,(i(n)&&(n===g||o(n.prototype))||s(n)&&null===(n=n[m]))&&(n=void 0),n===g||void 0===n))return f(p,y,_);for(r=new(void 0===n?g:n)(v(_-y,0)),d=0;y<_;y++,d++)y in p&&l(r,d,p[y]);return r.length=d,r}})},6448:(e,t,n)=>{"use strict";var r=n(8612),o=n(4762),i=n(8120),s=n(2347),a=n(6960),c=n(6060),u=n(6261),l=n(8473),d=n(7354),p=n(3152),f=n(7332),h=n(8996),m=n(6170),g=n(5158),v=[],y=o(v.sort),_=o(v.push),b=l((function(){v.sort(void 0)})),S=l((function(){v.sort(null)})),w=p("sort"),k=!l((function(){if(m)return m<70;if(!(f&&f>3)){if(h)return!0;if(g)return g<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort((function(e,t){return t.v-e.v})),r=0;ru(n)?1:-1}}(e)),n=a(o),r=0;r{"use strict";var r=n(5755),o=n(7914),i=n(6446),s=n(1)("toPrimitive"),a=Date.prototype;r(a,s)||o(a,s,i)},1908:(e,t,n)=>{"use strict";var r=n(382),o=n(2048).EXISTS,i=n(4762),s=n(3864),a=Function.prototype,c=i(a.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(u.exec);r&&!o&&s(a,"name",{configurable:!0,get:function(){try{return l(u,c(this))[1]}catch(e){return""}}})},6184:(e,t,n)=>{"use strict";var r=n(8612),o=n(1409),i=n(3067),s=n(1807),a=n(4762),c=n(8473),u=n(1483),l=n(1423),d=n(1698),p=n(5215),f=n(6029),h=String,m=o("JSON","stringify"),g=a(/./.exec),v=a("".charAt),y=a("".charCodeAt),_=a("".replace),b=a(1..toString),S=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,x=!f||c((function(){var e=o("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),E=c((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),T=function(e,t){var n=d(arguments),r=p(t);if(u(r)||void 0!==e&&!l(e))return n[1]=function(e,t){if(u(r)&&(t=s(r,this,h(e),t)),!l(t))return t},i(m,null,n)},C=function(e,t,n){var r=v(n,t-1),o=v(n,t+1);return g(w,e)&&!g(k,o)||g(k,e)&&!g(w,r)?"\\u"+b(y(e,0),16):e};m&&r({target:"JSON",stat:!0,arity:3,forced:x||E},{stringify:function(e,t,n){var r=d(arguments),o=i(x?T:m,null,r);return E&&"string"==typeof o?_(o,S,C):o}})},2725:(e,t,n)=>{"use strict";n(7446)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(4092))},8551:(e,t,n)=>{"use strict";n(2725)},94:(e,t,n)=>{"use strict";var r=n(8612),o=n(9557),i=n(382),s=n(8389),a=n(6589),c=n(4762),u=n(8730),l=n(5755),d=n(2429),p=n(4815),f=n(1423),h=n(2355),m=n(8473),g=n(2278).f,v=n(4961).f,y=n(5835).f,_=n(2430),b=n(4544).trim,S="Number",w=s[S],k=a[S],x=w.prototype,E=s.TypeError,T=c("".slice),C=c("".charCodeAt),I=u(S,!w(" 0o1")||!w("0b1")||w("+0x1")),O=function(e){var t,n=arguments.length<1?0:w(function(e){var t=h(e,"number");return"bigint"==typeof t?t:function(e){var t,n,r,o,i,s,a,c,u=h(e,"number");if(f(u))throw new E("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=b(u),43===(t=C(u,0))||45===t){if(88===(n=C(u,2))||120===n)return NaN}else if(48===t){switch(C(u,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(s=(i=T(u,2)).length,a=0;ao)return NaN;return parseInt(i,r)}return+u}(t)}(e));return p(x,t=this)&&m((function(){_(t)}))?d(Object(n),this,O):n};O.prototype=x,I&&!o&&(x.constructor=O),r({global:!0,constructor:!0,wrap:!0,forced:I},{Number:O});var A=function(e,t){for(var n,r=i?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)l(t,n=r[o])&&!l(e,n)&&y(e,n,v(t,n))};o&&k&&A(a[S],k),(I||o)&&A(a[S],w)},7575:(e,t,n)=>{"use strict";var r=n(8612),o=n(1439);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},7132:(e,t,n)=>{"use strict";var r=n(8612),o=n(5627).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},6457:(e,t,n)=>{"use strict";var r=n(8612),o=n(8473),i=n(5599),s=n(4961).f,a=n(382);r({target:"Object",stat:!0,forced:!a||o((function(){s(1)})),sham:!a},{getOwnPropertyDescriptor:function(e,t){return s(i(e),t)}})},8908:(e,t,n)=>{"use strict";var r=n(8612),o=n(382),i=n(9497),s=n(5599),a=n(4961),c=n(670);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=s(e),o=a.f,u=i(r),l={},d=0;u.length>d;)void 0!==(n=o(r,t=u[d++]))&&c(l,t,n);return l}})},7859:(e,t,n)=>{"use strict";var r=n(8612),o=n(6029),i=n(8473),s=n(4347),a=n(2347);r({target:"Object",stat:!0,forced:!o||i((function(){s.f(1)}))},{getOwnPropertySymbols:function(e){var t=s.f;return t?t(a(e)):[]}})},6437:(e,t,n)=>{"use strict";var r=n(8612),o=n(8473),i=n(2347),s=n(3181),a=n(9441);r({target:"Object",stat:!0,forced:o((function(){s(1)})),sham:!a},{getPrototypeOf:function(e){return s(i(e))}})},3810:(e,t,n)=>{"use strict";var r=n(8612),o=n(2347),i=n(3658);r({target:"Object",stat:!0,forced:n(8473)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},2697:(e,t,n)=>{"use strict";n(8612)({target:"Object",stat:!0},{setPrototypeOf:n(1953)})},8557:(e,t,n)=>{"use strict";var r=n(4338),o=n(7914),i=n(5685);r||o(Object.prototype,"toString",i,{unsafe:!0})},6249:(e,t,n)=>{"use strict";var r=n(8612),o=n(1807),i=n(8120),s=n(1173),a=n(4193),c=n(1506);r({target:"Promise",stat:!0,forced:n(1407)},{all:function(e){var t=this,n=s.f(t),r=n.resolve,u=n.reject,l=a((function(){var n=i(t.resolve),s=[],a=0,l=1;c(e,(function(e){var i=a++,c=!1;l++,o(n,t,e).then((function(e){c||(c=!0,s[i]=e,--l||r(s))}),u)})),--l||r(s)}));return l.error&&u(l.value),n.promise}})},6681:(e,t,n)=>{"use strict";var r=n(8612),o=n(9557),i=n(5502).CONSTRUCTOR,s=n(2832),a=n(1409),c=n(1483),u=n(7914),l=s&&s.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&c(s)){var d=a("Promise").prototype.catch;l.catch!==d&&u(l,"catch",d,{unsafe:!0})}},8786:(e,t,n)=>{"use strict";var r,o,i,s=n(8612),a=n(9557),c=n(4334),u=n(8389),l=n(1807),d=n(7914),p=n(1953),f=n(2277),h=n(240),m=n(8120),g=n(1483),v=n(1704),y=n(6021),_=n(483),b=n(7007).set,S=n(553),w=n(1339),k=n(4193),x=n(5459),E=n(4483),T=n(2832),C=n(5502),I=n(1173),O="Promise",A=C.CONSTRUCTOR,R=C.REJECTION_EVENT,M=C.SUBCLASSING,P=E.getterFor(O),j=E.set,D=T&&T.prototype,N=T,L=D,z=u.TypeError,F=u.document,$=u.process,B=I.f,U=B,q=!!(F&&F.createEvent&&u.dispatchEvent),H="unhandledrejection",W=function(e){var t;return!(!v(e)||!g(t=e.then))&&t},V=function(e,t){var n,r,o,i=t.value,s=1===t.state,a=s?e.ok:e.fail,c=e.resolve,u=e.reject,d=e.domain;try{a?(s||(2===t.rejection&&X(t),t.rejection=1),!0===a?n=i:(d&&d.enter(),n=a(i),d&&(d.exit(),o=!0)),n===e.promise?u(new z("Promise-chain cycle")):(r=W(n))?l(r,n,c,u):c(n)):u(i)}catch(e){d&&!o&&d.exit(),u(e)}},G=function(e,t){e.notified||(e.notified=!0,S((function(){for(var n,r=e.reactions;n=r.get();)V(n,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},K=function(e,t,n){var r,o;q?((r=F.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!R&&(o=u["on"+e])?o(r):e===H&&w("Unhandled promise rejection",n)},Y=function(e){l(b,u,(function(){var t,n=e.facade,r=e.value;if(J(e)&&(t=k((function(){c?$.emit("unhandledRejection",r,n):K(H,n,r)})),e.rejection=c||J(e)?2:1,t.error))throw t.value}))},J=function(e){return 1!==e.rejection&&!e.parent},X=function(e){l(b,u,(function(){var t=e.facade;c?$.emit("rejectionHandled",t):K("rejectionhandled",t,e.value)}))},Z=function(e,t,n){return function(r){e(t,r,n)}},Q=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,G(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new z("Promise can't be resolved itself");var r=W(t);r?S((function(){var n={done:!1};try{l(r,t,Z(ee,n,e),Z(Q,n,e))}catch(t){Q(n,t,e)}})):(e.value=t,e.state=1,G(e,!1))}catch(t){Q({done:!1},t,e)}}};if(A&&(L=(N=function(e){y(this,L),m(e),l(r,this);var t=P(this);try{e(Z(ee,t),Z(Q,t))}catch(e){Q(t,e)}}).prototype,(r=function(e){j(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new x,rejection:!1,state:0,value:void 0})}).prototype=d(L,"then",(function(e,t){var n=P(this),r=B(_(this,N));return n.parent=!0,r.ok=!g(e)||e,r.fail=g(t)&&t,r.domain=c?$.domain:void 0,0===n.state?n.reactions.add(r):S((function(){V(r,n)})),r.promise})),o=function(){var e=new r,t=P(e);this.promise=e,this.resolve=Z(ee,t),this.reject=Z(Q,t)},I.f=B=function(e){return e===N||void 0===e?new o(e):U(e)},!a&&g(T)&&D!==Object.prototype)){i=D.then,M||d(D,"then",(function(e,t){var n=this;return new N((function(e,t){l(i,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete D.constructor}catch(e){}p&&p(D,L)}s({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:N}),f(N,O,!1,!0),h(O)},76:(e,t,n)=>{"use strict";n(8786),n(6249),n(6681),n(1681),n(9231),n(5774)},1681:(e,t,n)=>{"use strict";var r=n(8612),o=n(1807),i=n(8120),s=n(1173),a=n(4193),c=n(1506);r({target:"Promise",stat:!0,forced:n(1407)},{race:function(e){var t=this,n=s.f(t),r=n.reject,u=a((function(){var s=i(t.resolve);c(e,(function(e){o(s,t,e).then(n.resolve,r)}))}));return u.error&&r(u.value),n.promise}})},9231:(e,t,n)=>{"use strict";var r=n(8612),o=n(1173);r({target:"Promise",stat:!0,forced:n(5502).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},5774:(e,t,n)=>{"use strict";var r=n(8612),o=n(1409),i=n(9557),s=n(2832),a=n(5502).CONSTRUCTOR,c=n(2172),u=o("Promise"),l=i&&!a;r({target:"Promise",stat:!0,forced:i||a},{resolve:function(e){return c(l&&this===u?s:this,e)}})},1359:(e,t,n)=>{"use strict";var r=n(8612),o=n(1409),i=n(3067),s=n(2164),a=n(2374),c=n(2293),u=n(1704),l=n(5290),d=n(8473),p=o("Reflect","construct"),f=Object.prototype,h=[].push,m=d((function(){function e(){}return!(p((function(){}),[],e)instanceof e)})),g=!d((function(){p((function(){}))})),v=m||g;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){a(e),c(t);var n=arguments.length<3?e:a(arguments[2]);if(g&&!m)return p(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(h,r,t),new(i(s,e,r))}var o=n.prototype,d=l(u(o)?o:f),v=i(e,d,t);return u(v)?v:d}})},646:(e,t,n)=>{"use strict";var r=n(382),o=n(8389),i=n(4762),s=n(8730),a=n(2429),c=n(9037),u=n(5290),l=n(2278).f,d=n(4815),p=n(4786),f=n(6261),h=n(9736),m=n(7435),g=n(7150),v=n(7914),y=n(8473),_=n(5755),b=n(4483).enforce,S=n(240),w=n(1),k=n(3933),x=n(4528),E=w("match"),T=o.RegExp,C=T.prototype,I=o.SyntaxError,O=i(C.exec),A=i("".charAt),R=i("".replace),M=i("".indexOf),P=i("".slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,N=/a/g,L=new T(D)!==D,z=m.MISSED_STICKY,F=m.UNSUPPORTED_Y;if(s("RegExp",r&&(!L||z||k||x||y((function(){return N[E]=!1,T(D)!==D||T(N)===N||"/a/i"!==String(T(D,"i"))}))))){for(var $=function(e,t){var n,r,o,i,s,l,m=d(C,this),g=p(e),v=void 0===t,y=[],S=e;if(!m&&g&&v&&e.constructor===$)return e;if((g||d(C,e))&&(e=e.source,v&&(t=h(S))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),S=e,k&&"dotAll"in D&&(r=!!t&&M(t,"s")>-1)&&(t=R(t,/s/g,"")),n=t,z&&"sticky"in D&&(o=!!t&&M(t,"y")>-1)&&F&&(t=R(t,/y/g,"")),x&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],s=u(null),a=!1,c=!1,l=0,d="";r<=n;r++){if("\\"===(t=A(e,r)))t+=A(e,++r);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:O(j,P(e,r+1))&&(r+=2,c=!0),o+=t,l++;continue;case">"===t&&c:if(""===d||_(s,d))throw new I("Invalid capture group name");s[d]=!0,i[i.length]=[d,l],c=!1,d="";continue}c?d+=t:o+=t}return[o,i]}(e),e=i[0],y=i[1]),s=a(T(e,t),m?this:C,$),(r||o||y.length)&&(l=b(s),r&&(l.dotAll=!0,l.raw=$(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=A(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+A(e,++r);return o}(e),n)),o&&(l.sticky=!0),y.length&&(l.groups=y)),e!==S)try{c(s,"source",""===S?"(?:)":S)}catch(e){}return s},B=l(T),U=0;B.length>U;)g($,T,B[U++]);C.constructor=$,$.prototype=C,v(o,"RegExp",$,{constructor:!0})}S("RegExp")},5021:(e,t,n)=>{"use strict";var r=n(8612),o=n(8865);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},3687:(e,t,n)=>{"use strict";var r=n(2048).PROPER,o=n(7914),i=n(2293),s=n(6261),a=n(8473),c=n(9736),u="toString",l=RegExp.prototype,d=l[u],p=a((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),f=r&&d.name!==u;(p||f)&&o(l,u,(function(){var e=i(this);return"/"+s(e.source)+"/"+s(c(e))}),{unsafe:!0})},9203:(e,t,n)=>{"use strict";n(7446)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(4092))},2745:(e,t,n)=>{"use strict";n(9203)},987:(e,t,n)=>{"use strict";var r,o=n(8612),i=n(3786),s=n(4961).f,a=n(8324),c=n(6261),u=n(4989),l=n(3312),d=n(4522),p=n(9557),f=i("".slice),h=Math.min,m=d("endsWith");o({target:"String",proto:!0,forced:!(!p&&!m&&(r=s(String.prototype,"endsWith"),r&&!r.writable)||m)},{endsWith:function(e){var t=c(l(this));u(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:h(a(n),r),i=c(e);return f(t,o-i.length,o)===i}})},9425:(e,t,n)=>{"use strict";var r=n(8612),o=n(4762),i=n(4989),s=n(3312),a=n(6261),c=n(4522),u=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(a(s(this)),a(i(e)),arguments.length>1?arguments[1]:void 0)}})},3994:(e,t,n)=>{"use strict";var r=n(9105).charAt,o=n(6261),i=n(4483),s=n(5662),a=n(5247),c="String Iterator",u=i.set,l=i.getterFor(c);s(String,"String",(function(e){u(this,{type:c,string:o(e),index:0})}),(function(){var e,t=l(this),n=t.string,o=t.index;return o>=n.length?a(void 0,!0):(e=r(n,o),t.index+=e.length,a(e,!1))}))},3819:(e,t,n)=>{"use strict";var r=n(1807),o=n(3358),i=n(2293),s=n(5983),a=n(8324),c=n(6261),u=n(3312),l=n(2564),d=n(4419),p=n(2428);o("match",(function(e,t,n){return[function(t){var n=u(this),o=s(t)?void 0:l(t,e);return o?r(o,t,n):new RegExp(t)[e](c(n))},function(e){var r=i(this),o=c(e),s=n(t,r,o);if(s.done)return s.value;if(!r.global)return p(r,o);var u=r.unicode;r.lastIndex=0;for(var l,f=[],h=0;null!==(l=p(r,o));){var m=c(l[0]);f[h]=m,""===m&&(r.lastIndex=d(o,a(r.lastIndex),u)),h++}return 0===h?null:f}]}))},3062:(e,t,n)=>{"use strict";var r=n(3067),o=n(1807),i=n(4762),s=n(3358),a=n(8473),c=n(2293),u=n(1483),l=n(5983),d=n(3005),p=n(8324),f=n(6261),h=n(3312),m=n(4419),g=n(2564),v=n(708),y=n(2428),_=n(1)("replace"),b=Math.max,S=Math.min,w=i([].concat),k=i([].push),x=i("".indexOf),E=i("".slice),T="$0"==="a".replace(/./,"$0"),C=!!/./[_]&&""===/./[_]("a","$0");s("replace",(function(e,t,n){var i=C?"$":"$0";return[function(e,n){var r=h(this),i=l(e)?void 0:g(e,_);return i?o(i,e,r,n):o(t,f(r),e,n)},function(e,o){var s=c(this),a=f(e);if("string"==typeof o&&-1===x(o,i)&&-1===x(o,"$<")){var l=n(t,s,a,o);if(l.done)return l.value}var h=u(o);h||(o=f(o));var g,_=s.global;_&&(g=s.unicode,s.lastIndex=0);for(var T,C=[];null!==(T=y(s,a))&&(k(C,T),_);)""===f(T[0])&&(s.lastIndex=m(a,p(s.lastIndex),g));for(var I,O="",A=0,R=0;R=A&&(O+=E(a,A,j)+M,A=j+P.length)}return O+E(a,A)}]}),!!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!T||C)},4062:(e,t,n)=>{"use strict";var r,o=n(8612),i=n(3786),s=n(4961).f,a=n(8324),c=n(6261),u=n(4989),l=n(3312),d=n(4522),p=n(9557),f=i("".slice),h=Math.min,m=d("startsWith");o({target:"String",proto:!0,forced:!(!p&&!m&&(r=s(String.prototype,"startsWith"),r&&!r.writable)||m)},{startsWith:function(e){var t=c(l(this));u(e);var n=a(h(arguments.length>1?arguments[1]:void 0,t.length)),r=c(e);return f(t,n,n+r.length)===r}})},5443:(e,t,n)=>{"use strict";var r=n(8612),o=n(8389),i=n(1807),s=n(4762),a=n(9557),c=n(382),u=n(6029),l=n(8473),d=n(5755),p=n(4815),f=n(2293),h=n(5599),m=n(3815),g=n(6261),v=n(7738),y=n(5290),_=n(3658),b=n(2278),S=n(2020),w=n(4347),k=n(4961),x=n(5835),E=n(5799),T=n(7611),C=n(7914),I=n(3864),O=n(7255),A=n(5409),R=n(1507),M=n(1866),P=n(1),j=n(5373),D=n(7849),N=n(8192),L=n(2277),z=n(4483),F=n(2867).forEach,$=A("hidden"),B="Symbol",U="prototype",q=z.set,H=z.getterFor(B),W=Object[U],V=o.Symbol,G=V&&V[U],K=o.RangeError,Y=o.TypeError,J=o.QObject,X=k.f,Z=x.f,Q=S.f,ee=T.f,te=s([].push),ne=O("symbols"),re=O("op-symbols"),oe=O("wks"),ie=!J||!J[U]||!J[U].findChild,se=function(e,t,n){var r=X(W,t);r&&delete W[t],Z(e,t,n),r&&e!==W&&Z(W,t,r)},ae=c&&l((function(){return 7!==y(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?se:Z,ce=function(e,t){var n=ne[e]=y(G);return q(n,{type:B,tag:e,description:t}),c||(n.description=t),n},ue=function(e,t,n){e===W&&ue(re,t,n),f(e);var r=m(t);return f(n),d(ne,r)?(n.enumerable?(d(e,$)&&e[$][r]&&(e[$][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,$)||Z(e,$,v(1,y(null))),e[$][r]=!0),ae(e,r,n)):Z(e,r,n)},le=function(e,t){f(e);var n=h(t),r=_(n).concat(he(n));return F(r,(function(t){c&&!i(de,n,t)||ue(e,t,n[t])})),e},de=function(e){var t=m(e),n=i(ee,this,t);return!(this===W&&d(ne,t)&&!d(re,t))&&(!(n||!d(this,t)||!d(ne,t)||d(this,$)&&this[$][t])||n)},pe=function(e,t){var n=h(e),r=m(t);if(n!==W||!d(ne,r)||d(re,r)){var o=X(n,r);return!o||!d(ne,r)||d(n,$)&&n[$][r]||(o.enumerable=!0),o}},fe=function(e){var t=Q(h(e)),n=[];return F(t,(function(e){d(ne,e)||d(R,e)||te(n,e)})),n},he=function(e){var t=e===W,n=Q(t?re:h(e)),r=[];return F(n,(function(e){!d(ne,e)||t&&!d(W,e)||te(r,ne[e])})),r};u||(C(G=(V=function(){if(p(G,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=M(e),n=function(e){var r=void 0===this?o:this;r===W&&i(n,re,e),d(r,$)&&d(r[$],t)&&(r[$][t]=!1);var s=v(1,e);try{ae(r,t,s)}catch(e){if(!(e instanceof K))throw e;se(r,t,s)}};return c&&ie&&ae(W,t,{configurable:!0,set:n}),ce(t,e)})[U],"toString",(function(){return H(this).tag})),C(V,"withoutSetter",(function(e){return ce(M(e),e)})),T.f=de,x.f=ue,E.f=le,k.f=pe,b.f=S.f=fe,w.f=he,j.f=function(e){return ce(P(e),e)},c&&(I(G,"description",{configurable:!0,get:function(){return H(this).description}}),a||C(W,"propertyIsEnumerable",de,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:V}),F(_(oe),(function(e){D(e)})),r({target:B,stat:!0,forced:!u},{useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(e,t){return void 0===t?y(e):le(y(e),t)},defineProperty:ue,defineProperties:le,getOwnPropertyDescriptor:pe}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:fe}),N(),L(V,B),R[$]=!0},2733:(e,t,n)=>{"use strict";var r=n(8612),o=n(382),i=n(8389),s=n(4762),a=n(5755),c=n(1483),u=n(4815),l=n(6261),d=n(3864),p=n(6726),f=i.Symbol,h=f&&f.prototype;if(o&&c(f)&&(!("description"in h)||void 0!==f().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=u(h,this)?new f(e):void 0===e?f():f(e);return""===e&&(m[t]=!0),t};p(g,f),g.prototype=h,h.constructor=g;var v="Symbol(description detection)"===String(f("description detection")),y=s(h.valueOf),_=s(h.toString),b=/^Symbol\((.*)\)[^)]+$/,S=s("".replace),w=s("".slice);d(h,"description",{configurable:!0,get:function(){var e=y(this);if(a(m,e))return"";var t=_(e),n=v?w(t,7,-1):S(t,b,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},2484:(e,t,n)=>{"use strict";var r=n(8612),o=n(1409),i=n(5755),s=n(6261),a=n(7255),c=n(3218),u=a("string-to-symbol-registry"),l=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=s(e);if(i(u,t))return u[t];var n=o("Symbol")(t);return u[t]=n,l[n]=t,n}})},4701:(e,t,n)=>{"use strict";n(7849)("iterator")},9305:(e,t,n)=>{"use strict";n(5443),n(2484),n(1894),n(6184),n(7859)},1894:(e,t,n)=>{"use strict";var r=n(8612),o=n(5755),i=n(1423),s=n(8761),a=n(7255),c=n(3218),u=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!i(e))throw new TypeError(s(e)+" is not a symbol");if(o(u,e))return u[e]}})},1678:(e,t,n)=>{"use strict";var r=n(7849),o=n(8192);r("toPrimitive"),o()},3630:(e,t,n)=>{"use strict";var r=n(8389),o=n(4842),i=n(1902),s=n(4793),a=n(9037),c=function(e){if(e&&e.forEach!==s)try{a(e,"forEach",s)}catch(t){e.forEach=s}};for(var u in o)o[u]&&c(r[u]&&r[u].prototype);c(i)},2367:(e,t,n)=>{"use strict";var r=n(8389),o=n(4842),i=n(1902),s=n(4962),a=n(9037),c=n(2277),u=n(1)("iterator"),l=s.values,d=function(e,t){if(e){if(e[u]!==l)try{a(e,u,l)}catch(t){e[u]=l}if(c(e,t,!0),o[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(t){e[n]=s[n]}}};for(var p in o)d(r[p]&&r[p].prototype,p);d(i,"DOMTokenList")},9833:(e,t,n)=>{"use strict";var r=n(8612),o=n(8389),i=n(9570)(o.setInterval,!0);r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},3989:(e,t,n)=>{"use strict";var r=n(8612),o=n(8389),i=n(9570)(o.setTimeout,!0);r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},7089:(e,t,n)=>{"use strict";n(9833),n(3989)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{addEventListener:()=>Yn,defaultConfig:()=>Nn,defaultTranslations:()=>Hn,getConfigTranslations:()=>Xn,getElement:()=>Kn,getElementID:()=>Gn,getManager:()=>ar,language:()=>at,render:()=>Qn,renderContextualConsentNotices:()=>er,resetManagers:()=>sr,setup:()=>rr,show:()=>or,updateConfig:()=>tn,validateConfig:()=>nr,version:()=>cr}),n(9305),n(2733),n(4701),n(1678),n(4776),n(4382),n(2084),n(9892),n(4962),n(6584),n(9336),n(4754),n(1908),n(8551),n(94),n(6457),n(8908),n(3810),n(8557),n(5021),n(3687),n(3994),n(3630),n(2367);var e,t,o,i,s,a,c,u,l={},d=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,f=Array.isArray;function h(e,t){for(var n in t)e[n]=t[n];return e}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function g(t,n,r){var o,i,s,a={};for(s in n)"key"==s?o=n[s]:"ref"==s?i=n[s]:a[s]=n[s];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===a[s]&&(a[s]=t.defaultProps[s]);return v(t,a,o,i,null)}function v(e,n,r,i,s){var a={type:e,props:n,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++o:s,__i:-1,__u:0};return null==s&&null!=t.vnode&&t.vnode(a),a}function y(e){return e.children}function _(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__i+1):null;for(var n;tr?(D(o,n,s),s.length=o.length=0,n=void 0,i.sort(c)):n&&t.__c&&t.__c(n,d));n&&D(o,n,s),x.__r=0}function E(e,t,n,r,o,i,s,a,c,u,p){var f,h,m,g,v,y=r&&r.__k||d,_=t.length;for(n.__d=c,T(n,t,y),c=n.__d,f=0;f<_;f++)null!=(m=n.__k[f])&&"boolean"!=typeof m&&"function"!=typeof m&&(h=-1===m.__i?l:y[m.__i]||l,m.__i=f,j(e,m,h,o,i,s,a,c,u,p),g=m.__e,m.ref&&h.ref!=m.ref&&(h.ref&&L(h.ref,null,m),p.push(m.ref,m.__c||g,m)),null==v&&null!=g&&(v=g),65536&m.__u||h.__k===m.__k?c=C(m,c,e):"function"==typeof m.type&&void 0!==m.__d?c=m.__d:g&&(c=g.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=c,n.__e=v}function T(e,t,n){var r,o,i,s,a,c=t.length,u=n.length,l=u,d=0;for(e.__k=[],r=0;r0?v(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,a=O(o,n,s,l),o.__i=a,i=null,-1!==a&&(l--,(i=n[a])&&(i.__u|=131072)),null==i||null===i.__v?(-1==a&&d--,"function"!=typeof o.type&&(o.__u|=65536)):a!==s&&(a===s+1?d++:a>s?l>c-s?d+=a-s:d--:a(null==c||131072&c.__u?0:1))for(;s>=0||a=0){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&i===c.type)return s;s--}if(a2&&(c.children=arguments.length>3?e.call(arguments,2):r),v(t.type,c,o||t.key,i||t.ref,null)}e=d.slice,t={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},o=0,_.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},n),this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),k(this))},_.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},_.prototype.render=y,i=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},x.__r=0,u=0;var q,H,W,V,G=0,K=[],Y=[],J=t,X=J.__b,Z=J.__r,Q=J.diffed,ee=J.__c,te=J.unmount,ne=J.__;function re(e,t){J.__h&&J.__h(H,e,G||t),G=0;var n=H.__H||(H.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Y}),n.__[e]}function oe(e){return G=1,ie(me,e)}function ie(e,t,n){var r=re(q++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):me(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=H,!H.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var s=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};H.u=!0;var i=H.shouldComponentUpdate,s=H.componentWillUpdate;H.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}s&&s.call(this,e,t,n)},H.shouldComponentUpdate=o}return r.__N||r.__}function se(e,t){var n=re(q++,3);!J.__s&&he(n.__H,t)&&(n.__=e,n.i=t,H.__H.__h.push(n))}function ae(e,t){var n=re(q++,4);!J.__s&&he(n.__H,t)&&(n.__=e,n.i=t,H.__h.push(n))}function ce(e,t){var n=re(q++,7);return he(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ue(){for(var e;e=K.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(pe),e.__H.__h.forEach(fe),e.__H.__h=[]}catch(t){e.__H.__h=[],J.__e(t,e.__v)}}J.__b=function(e){H=null,X&&X(e)},J.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ne&&ne(e,t)},J.__r=function(e){Z&&Z(e),q=0;var t=(H=e.__c).__H;t&&(W===H?(t.__h=[],H.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Y,e.__N=e.i=void 0}))):(t.__h.forEach(pe),t.__h.forEach(fe),t.__h=[],q=0)),W=H},J.diffed=function(e){Q&&Q(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==K.push(t)&&V===J.requestAnimationFrame||((V=J.requestAnimationFrame)||de)(ue)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Y&&(e.__=e.__V),e.i=void 0,e.__V=Y}))),W=H=null},J.__c=function(e,t){t.some((function(e){try{e.__h.forEach(pe),e.__h=e.__h.filter((function(e){return!e.__||fe(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],J.__e(n,e.__v)}})),ee&&ee(e,t)},J.unmount=function(e){te&&te(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{pe(e)}catch(e){t=e}})),n.__H=void 0,t&&J.__e(t,n.__v))};var le="function"==typeof requestAnimationFrame;function de(e){var t,n=function(){clearTimeout(r),le&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);le&&(t=requestAnimationFrame(n))}function pe(e){var t=H,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),H=t}function fe(e){var t=H;e.__c=e.__(),H=t}function he(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function me(e,t){return"function"==typeof t?t(e):t}function ge(e,t){for(var n in t)e[n]=t[n];return e}function ve(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function ye(e,t){this.props=e,this.context=t}(ye.prototype=new _).isPureReactComponent=!0,ye.prototype.shouldComponentUpdate=function(e,t){return ve(this.props,e)||ve(this.state,t)};var _e=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),_e&&_e(e)};var be="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Se=function(e,t){return null==e?null:I(I(e).map(t))},we={map:Se,forEach:Se,count:function(e){return e?I(e).length:0},only:function(e){var t=I(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:I},ke=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);ke(e,t,n,r)};var xe=t.unmount;function Ee(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=ge({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ee(e,t,n)}))),e}function Te(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Te(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Ce(){this.__u=0,this.t=null,this.__b=null}function Ie(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Oe(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),xe&&xe(e)},(Ce.prototype=new _).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Ie(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Te(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Ce.prototype.componentWillUnmount=function(){this.t=[]},Ce.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Ee(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&g(y,null,e.fallback);return o&&(o.__u&=-33),[g(y,null,t.__a?null:e.children),o]};var Ae=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),$(g(Re,{context:t.context},e.__v),t.l)}(Oe.prototype=new _).__a=function(e){var t=this,n=Ie(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ae(t,e,r)):o()};n?n(i):i()}},Oe.prototype.render=function(e){this.u=null,this.o=new Map;var t=I(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Oe.prototype.componentDidUpdate=Oe.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ae(e,n,t)}))};var Pe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,je=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,De=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ne=/[A-Z0-9]/g,Le="undefined"!=typeof document,ze=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Fe(e,t,n){return null==t.__k&&(t.textContent=""),$(e,t),"function"==typeof n&&n(),e?e.__c:null}_.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(_.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var $e=t.event;function Be(){}function Ue(){return this.cancelBubble}function qe(){return this.defaultPrevented}t.event=function(e){return $e&&(e=$e(e)),e.persist=Be,e.isPropagationStopped=Ue,e.isDefaultPrevented=qe,e.nativeEvent=e};var He,We={enumerable:!1,configurable:!0,get:function(){return this.class}},Ve=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||Le&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var s=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"translate"===s&&"no"===i?i=!1:"ondoubleclick"===s?o="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||ze(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":De.test(o)?o=s:-1===n.indexOf("-")&&je.test(o)?o=o.replace(Ne,"-$&").toLowerCase():null===i&&(i=void 0):s=o="oninput","oninput"===s&&r[o=s]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=I(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=I(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",We)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Pe,Ve&&Ve(e)};var Ge=t.__r;t.__r=function(e){Ge&&Ge(e),He=e.__c};var Ke=t.diffed;t.diffed=function(e){Ke&&Ke(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),He=null};var Ye={ReactCurrentDispatcher:{current:{readContext:function(e){return He.__n[e.__c].props.value}}}};function Je(e){return!!e&&e.$$typeof===Pe}function Xe(e){e()}function Ze(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var Qe={useState:oe,useId:function(){var e=re(q++,11);if(!e.__){for(var t=H.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useReducer:ie,useEffect:se,useLayoutEffect:ae,useInsertionEffect:ae,useTransition:function(){return[!1,Xe]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,t){var n=t(),r=oe({h:{__:n,v:t}}),o=r[0].h,i=r[1];return ae((function(){o.__=n,o.v=t,Ze(o)&&i({h:o})}),[e,n,t]),se((function(){return Ze(o)&&i({h:o}),e((function(){Ze(o)&&i({h:o})}))}),[e]),n},startTransition:Xe,useRef:function(e){return G=5,ce((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){G=6,ae((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useMemo:ce,useCallback:function(e,t){return G=8,ce((function(){return e}),t)},useContext:function(e){var t=H.context[e.__c],n=re(q++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(H)),t.props.value):e.__},useDebugValue:function(e,t){J.useDebugValue&&J.useDebugValue(t?t(e):e)},version:"17.0.2",Children:we,render:Fe,hydrate:function(e,t,n){return B(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&($(null,e),!0)},createPortal:function(e,t){var n=g(Me,{__v:e,i:t});return n.containerInfo=t,n},createElement:g,createContext:function(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,k(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return g.bind(null,e)},cloneElement:function(e){return Je(e)?U.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:y,isValidElement:Je,isElement:Je,isFragment:function(e){return Je(e)&&e.type===y},findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:_,PureComponent:ye,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:ve(this.props,e)}function r(t){return this.shouldComponentUpdate=n,g(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t){var n=ge({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=be,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:y,Suspense:Ce,SuspenseList:Oe,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return g(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ye},et=(n(6437),n(2697),n(1359),n(6216),n(6448),n(7089),n(2688)),tt=function(e){var t=e.t;return Qe.createElement("svg",{role:"img","aria-label":t(["close"]),width:"12",height:"12",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Qe.createElement("title",null,t(["close"])),Qe.createElement("line",{x1:"1",y1:"11",x2:"11",y2:"1",strokeWidth:"1"}),Qe.createElement("line",{x1:"1",y1:"1",x2:"11",y2:"11",strokeWidth:"1"}))};function nt(e){return e.split("-").map((function(e){return e.slice(0,1).toUpperCase()+e.slice(1)})).join(" ")}function rt(e){return function(e){if(Array.isArray(e))return ot(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?t-1:0),r=1;r0;){var c=a.match(/\{(?!\{)([\w\d]+)\}(?!\})/);if(null!==c){var u=a.substr(0,c.index);a=a.substr(c.index+c[0].length);var l=parseInt(c[1]);s.push(u),l!=l?s.push(o[c[1]]):s.push(o[l])}else s.push(a),a=""}return s};function at(e){if(void 0!==e&&void 0!==e.lang&&"zz"!==e.lang)return e.lang;var t=(("string"==typeof window.language?window.language:null)||document.documentElement.lang||(void 0!==e&&void 0!==e.languages&&void 0!==e.languages[0]?e.languages[0]:"en")).toLowerCase(),n=new RegExp("^([\\w]+)-([\\w]+)$").exec(t);return null===n?t:n[1]}function ct(e,t,n){var r=t;Array.isArray(r)||(r=[r]);for(var o=e,i=0;i4?a-4:0),u=4;u0?st.apply(void 0,[s].concat(c)):s}const lt=function(e){var t=e.text,n=e.config;if(t instanceof Array||(t=[t]),!0===n.htmlTexts){var r=!1;"<"===t[0][0]&&(r=!0);var o=t.map((function(e,t){return"string"==typeof e?Qe.createElement("span",{key:t,dangerouslySetInnerHTML:{__html:e}}):e}));return r?Qe.createElement(Qe.Fragment,null,o):Qe.createElement("span",null,o)}return Qe.createElement("span",null,t)};function dt(e){return dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dt(e)}function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&(e=Qe.createElement("p",{className:"purposes"},p(["service",m.length>1?"purposes":"purpose"]),": ",y));var S=l||ut(c,s,"zz",["!","description"])||p(["!",i,"description?"]);return Qe.createElement("div",null,Qe.createElement("input",{id:g,className:"cm-list-input"+(f?" required":"")+(r?" half-checked only-required":""),"aria-labelledby":"".concat(v),"aria-describedby":"".concat(g,"-description"),disabled:f,checked:n||f,tabIndex:d?"0":"-1",type:"checkbox",onChange:function(e){o(e.target.checked)}}),Qe.createElement("label",pt({htmlFor:g,className:"cm-list-label"},f?{tabIndex:"0"}:{}),Qe.createElement("span",{className:"cm-list-title",id:"".concat(v)},u||ut(c,s,"zz",["!","title"])||p(["!",i,"title?"])||nt(i)),b,_,Qe.createElement("span",{className:"cm-switch"},Qe.createElement("div",{className:"slider round active"}))),Qe.createElement("div",{id:"".concat(g,"-description")},S&&Qe.createElement("p",{className:"cm-list-description"},Qe.createElement(lt,{config:a,text:S})),e))}}],r&&function(e,t){for(var n=0;n1&&Qe.createElement("li",{className:"cm-service cm-toggle-all"},Qe.createElement(yt,{name:"disableAll",title:n(["service","disableAll","title"]),description:n(["service","disableAll","description"]),checked:p,config:t,onlyRequiredEnabled:!p&&d>0,onToggle:function(e){a(s,e)},lang:o,t:n})))}}])&&function(e,t){for(var n=0;n0&&(e=Qe.createElement("p",{className:"purposes"},m(["purpose",y.length>1?"purposes":"purpose"]),": ",S));var k=function(e){e.preventDefault();var n="false"!==e.currentTarget.getAttribute("aria-expanded");e.currentTarget.setAttribute("aria-expanded",!n),t.setState({servicesVisible:!g})},x=Qe.createElement(Ct,{config:a,lang:l,services:s,toggle:function(e,t){e.map((function(e){e.required||d.updateConsent(e.name,t)}))},consents:p,visible:g,t:m}),E=h||m(["!","purposes",u,"description"]);return Qe.createElement(Qe.Fragment,null,Qe.createElement("input",{id:_,className:"cm-list-input"+(v?" required":"")+(r?"":o?" only-required":" half-checked"),"aria-labelledby":"".concat(b),"aria-describedby":"".concat(_,"-description"),disabled:v,checked:r||!i&&!o,type:"checkbox",onChange:function(e){c(e.target.checked)}}),Qe.createElement("label",At({htmlFor:_,className:"cm-list-label"},v?{tabIndex:"0"}:{}),Qe.createElement("span",{className:"cm-list-title",id:"".concat(b)},f||m(["!","purposes",u,"title?"])||nt(u)),w,Qe.createElement("span",{className:"cm-switch"},Qe.createElement("div",{className:"slider round active"}))),Qe.createElement("div",{id:"".concat(_,"-description")},E&&Qe.createElement("p",{className:"cm-list-description"},Qe.createElement(lt,{config:a,text:E})),e),s.length>0&&Qe.createElement("div",{className:"cm-services"},Qe.createElement("div",{className:"cm-caret"},Qe.createElement("a",{href:"#","aria-haspopup":"true","aria-expanded":"false",tabIndex:"0",onClick:k,onKeyDown:function(e){32===e.keyCode&&k(e)}},g&&Qe.createElement("span",null,"↑")||Qe.createElement("span",null,"↓")," ",s.length," ",m(["purposeItem",s.length>1?"services":"service"]))),Qe.createElement("ul",{className:"cm-content"+(g?" expanded":"")},x)))}}],r&&function(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&Qe.createElement("li",{className:"cm-purpose cm-toggle-all"},Qe.createElement(Nt,{name:"disableAll",title:r(["service","disableAll","title"]),description:r(["service","disableAll","description"]),allDisabled:_.allDisabled,allEnabled:_.allEnabled,onlyRequiredEnabled:_.onlyRequiredEnabled,onToggle:function(e){h(Object.keys(c),e)},manager:o,consents:s,config:n,lang:i,services:[],t:r})))}}],r&&function(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0||!e.manager.confirmed},n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_n(e,t)}(t,e),n=t,r=[{key:"componentWillUnmount",value:function(){this.props.manager.unwatch(this)}},{key:"update",value:function(e,t){e===this.props.manager&&"applyConsents"===t&&(!this.props.config.embedded&&this.props.manager.confirmed?this.setState({show:!1}):this.forceUpdate())}},{key:"notifyApi",value:function(){var e=this.props,t=e.api,n=e.modal,r=e.show,o=e.config;if(void 0!==t){if(n||r>0)return;this.props.manager.confirmed||this.props.manager.auxiliaryStore.getWithKey("shown-before")||(t.update(this,"showNotice",{config:o}),this.props.manager.auxiliaryStore.setWithKey("shown-before",!0))}}},{key:"componentDidMount",value:function(){this.notifyApi()}},{key:"componentDidUpdate",value:function(e){if(e.show!==this.props.show){this.notifyApi();var t=this.props.show>0||!this.props.manager.confirmed;t!==this.state.show&&this.setState({show:t})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.config,r=t.t,o=t.lang,i=t.testing,s=t.manager,a=t.modal,c=this.state.show,u=n.additionalClass,l=n.embedded,d=n.stylePrefix;return Qe.createElement("div",{lang:o,className:(d||"klaro")+(void 0!==u?" "+u:"")},Qe.createElement(pn,{key:"app-"+this.props.show,t:r,testing:i,show:c,lang:o,modal:a,hide:function(){l||e.setState({show:!1})},config:n,manager:s}))}}],r&&function(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=300?(e.status=u.status,s(e)):i(e,u.status)})),u.addEventListener("error",(function(){s({status:0,xhr:u})})),void 0!==n&&("GET"===e?t+="?"+(c=n,"?"+Object.keys(c).map((function(e){return e+"="+encodeURIComponent(c[e])})).join("&")):a=JSON.stringify(n)),u.open(e,o.url+t),void 0!==a&&u.setRequestHeader("Content-Type",r||"application/json;charset=UTF-8"),u.send(a)}))}},{key:"submitConsentData",value:function(e){return this.apiRequest("POST","/v1/privacy-managers/"+this.id+"/submit",e,"text/plain;charset=UTF-8")}},{key:"loadConfig",value:function(e){return this.apiRequest("GET","/v1/privacy-managers/"+this.id+"/config.json?name="+e+(this.opts.testing?"&testing=true":""))}},{key:"loadConfigs",value:function(){return this.apiRequest("GET","/v1/privacy-managers/"+this.id+"/configs.json"+(this.opts.testing?"&testing=true":""))}}])&&function(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(s)throw o}}}}(t.keys());try{for(s.s();!(i=s.n()).done;){var a=i.value,c=t.get(a),u=e.get(a);if(e.has(a))if(c instanceof Map&&u instanceof Map)e.set(a,Dn(u,c,n,r));else{if(!n)continue;o(e,a,c)}else o(e,a,c)}}catch(e){s.e(e)}finally{s.f()}return e}var Nn,Ln={top:{_meta:{incompatibleWith:["bottom"]},"notice-top":"20px","notice-bottom":"auto"},bottom:{_meta:{incompatibleWith:["top"]},"notice-bottom":"20px","notice-top":"auto"},left:{_meta:{incompatibleWith:["wide"]},"notice-left":"20px","notice-right":"auto"},right:{_meta:{incompatibleWith:["wide"]},"notice-right":"20px","notice-left":"auto"},wide:{"notice-left":"20px","notice-right":"auto","notice-max-width":"calc(100vw - 60px)","notice-position":"fixed"},light:{"button-text-color":"#fff",dark1:"#fafafa",dark2:"#777",dark3:"#555",light1:"#444",light2:"#666",light3:"#111",green3:"#f00"}};function zn(e){return zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zn(e)}function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function Un(e,t){if(e){if("string"==typeof e)return qn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qn(e,t):void 0}}function qn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),o=1;o=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(s)throw o}}}}(o);try{for(s.s();!(i=s.n()).done;){var a=t[i.value];if(void 0!==a)for(var c=0,u=Object.entries(a);c{privacyPolicy}.'},consentModal:{title:"Služby, které bychom rádi využili",description:"Zde můžete posoudit a přizpůsobit služby, které bychom rádi na tomto webu používali. Máte to pod kontrolou! Povolte nebo zakažte služby, jak uznáte za vhodné."},consentNotice:{testing:"Testing mode!",changeDescription:"Od vaší poslední návštěvy došlo ke změnám, obnovte prosím svůj souhlas.",description:"„Dobrý den! Můžeme povolit některé další služby pro {purposes}? Svůj souhlas můžete kdykoliv změnit nebo odvolat.“","learnMore|capitalize":"Vyberu si"},účely:{functional:{"title|capitalize":"Poskytování služeb",description:"Tyto služby jsou nezbytné pro správné fungování tohoto webu. Nelze je zde deaktivovat, protože služba by jinak nefungovala správně.\n"},performance:{"title|capitalize":"Optimalizace výkonu",description:"V rámci těchto služeb jsou zpracovávány osobní údaje za účelem optimalizace služeb, které jsou na tomto webu poskytovány.\n"},marketing:{"title|capitalize":"Marketing",description:"V rámci těchto služeb jsou zpracovávány osobní údaje, aby se vám zobrazoval relevantní obsah o produktech, službách nebo tématech, které by vás mohly zajímat."},advertising:{"title|capitalize":"Reklama",description:"V rámci těchto služeb jsou zpracovávány osobní údaje, aby vám zobrazovaly personalizované nebo zájmově orientované reklamy."}},purposeItem:{service:"Jednoduchá služba , kterou nainstaluji do svého počítače.",services:"Několik jednoduchých služeb , které nainstaluji do svého počítače."},"ok|capitalize":"To je v pořádku",save:"uložit","decline|capitalize":"Nepřijímám",close:"zavřít",acceptAll:"přijmout vše",acceptSelected:"přijmout vybrané",service:{disableAll:{title:"povolit nebo zakázat všechny služby",description:"Pomocí tohoto přepínače můžete povolit nebo zakázat všechny služby."},optOut:{title:"(opt-out)",description:"Tato služba se načítá ve výchozím nastavení (ale můžete ji zrušit)"},required:{title:"(vždy vyžadováno)",description:"Tato služba je vždy vyžadována"},purposes:"Zpracování pro účely ",purpose:"Zpracování pro účely "},poweredBy:"Realizováno pomocí Klaro!",contextualConsent:{description:"Chcete načíst externí obsah dodávaný prostřednictvím {title}?",acceptOnce:"Ano",acceptAlways:"Vždy"}},da:{acceptAll:"Tillad alle",acceptSelected:"Tillad udvalgte",service:{disableAll:{description:"Brug denne kontakt til at aktivere/deaktivere alle apps.",title:"Aktiver/deaktiver alle applikatione"},optOut:{description:"Denne applikation indlæses som standard (men du kan deaktivere den)",title:"Opt-Out"},purpose:"Formål",purposes:"Formål",required:{description:"Denne applikation er altid nødvendig",title:"(Altid nødvendig)"}},close:"Luk",consentModal:{description:"Her kan du se og ændre, hvilke informationer vi gemmer om dig.",privacyPolicy:{name:"Flere informationer finde du under {privacyPolicy}",text:"databeskyttelseserklæring."},title:"Informationer, som vi gemmer"},consentNotice:{changeDescription:"Der har været ændringer siden dit sidste besøg. Opdater dit valg.",description:"Vi gemmer og behandler dine personlige oplysninger til følgende formål: {purposes}.",imprint:{name:""},learnMore:"Læs mere",privacyPolicy:{name:"Datenschutzerklärung"}},decline:"Afvis",ok:"Ok",poweredBy:"Realiseret med Klaro!",purposeItem:{service:"",services:""},save:"Gem"},de:{acceptAll:"Alle akzeptieren",acceptSelected:"Ausgewählte akzeptieren",close:"Schließen",consentModal:{description:"Hier können Sie die Dienste, die wir auf dieser Website nutzen möchten, bewerten und anpassen. Sie haben das Sagen! Aktivieren oder deaktivieren Sie die Dienste, wie Sie es für richtig halten.",privacyPolicy:{name:"Datenschutzerklärung",text:"Um mehr zu erfahren, lesen Sie bitte unsere {privacyPolicy}."},title:"Dienste, die wir nutzen möchten"},consentNotice:{changeDescription:"Seit Ihrem letzten Besuch gab es Änderungen, bitte erneuern Sie Ihre Zustimmung.",title:"Cookie-Einstellungen",description:"Hallo! Könnten wir bitte einige zusätzliche Dienste für {purposes} aktivieren? Sie können Ihre Zustimmung später jederzeit ändern oder zurückziehen.",imprint:{name:"Impressum"},learnMore:"Lassen Sie mich wählen",privacyPolicy:{name:"Datenschutzerklärung"},testing:"Testmodus!"},contextualConsent:{acceptAlways:"Immer",acceptOnce:"Ja",description:"Möchten Sie von {title} bereitgestellte externe Inhalte laden?",descriptionEmptyStore:"Um diesem Dienst dauerhaft zustimmen zu können, müssen Sie {title} in den {link} zustimmen.",modalLinkText:"Cookie-Einstellungen"},decline:"Ich lehne ab",ok:"Das ist ok",poweredBy:"Realisiert mit Klaro!",privacyPolicy:{name:"Datenschutzerklärung",text:"Um mehr zu erfahren, lesen Sie bitte unsere {privacyPolicy}."},purposeItem:{service:"Dienst",services:"Dienste"},purposes:{advertising:{description:"Diese Dienste verarbeiten persönliche Informationen, um Ihnen personalisierte oder interessenbezogene Werbung zu zeigen.",title:"Werbung"},functional:{description:"Diese Dienste sind für die korrekte Funktion dieser Website unerlässlich. Sie können sie hier nicht deaktivieren, da der Dienst sonst nicht richtig funktionieren würde.\n",title:"Dienstbereitstellung"},marketing:{description:"Diese Dienste verarbeiten persönliche Daten, um Ihnen relevante Inhalte über Produkte, Dienstleistungen oder Themen zu zeigen, die Sie interessieren könnten.",title:"Marketing"},performance:{description:"Diese Dienste verarbeiten personenbezogene Daten, um den von dieser Website angebotenen Service zu optimieren.\n",title:"Optimierung der Leistung"}},save:"Speichern",service:{disableAll:{description:"Mit diesem Schalter können Sie alle Dienste aktivieren oder deaktivieren.",title:"Alle Dienste aktivieren oder deaktivieren"},optOut:{description:"Diese Dienste werden standardmäßig geladen (Sie können sich jedoch abmelden)",title:"(Opt-out)"},purpose:"Zweck",purposes:"Zwecke",required:{description:"Dieser Service ist immer erforderlich",title:"(immer erforderlich)"}}},el:{acceptAll:"",acceptAll_en:"Accept all",acceptSelected:"",acceptSelected_en:"Accept selected",service:{disableAll:{description:"Χρησιμοποίησε αυτό τον διακόπτη για να ενεργοποιήσεις/απενεργοποιήσεις όλες τις εφαρμογές.",title:"Για όλες τις εφαρμογές"},optOut:{description:"Είναι προκαθορισμένο να φορτώνεται, άλλα μπορεί να παραληφθεί",title:"(μη απαιτούμενο)"},purpose:"Σκοπός",purposes:"Σκοποί",required:{description:"Δεν γίνεται να λειτουργήσει σωστά η εφαρμογή χωρίς αυτό",title:"(απαιτούμενο)"}},close:"Κλείσιμο",consentModal:{description:"Εδώ μπορείς να δεις και να ρυθμίσεις τις πληροφορίες που συλλέγουμε σχετικά με εσένα.",privacyPolicy:{name:"Πολιτική Απορρήτου",text:"Για περισσότερες πληροφορίες, παρακαλώ διαβάστε την {privacyPolicy}."},title:"Πληροφορίες που συλλέγουμε"},consentNotice:{changeDescription:"Πραγματοποιήθηκαν αλλαγές μετά την τελευταία σας επίσκεψη παρακαλούμε ανανεώστε την συγκατάθεση σας.",description:"Συγκεντρώνουμε και επεξεργαζόμαστε τα προσωπικά δεδομένα σας για τους παρακάτω λόγους: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"Περισσότερα",privacyPolicy:{name:"Πολιτική Απορρήτου"}},decline:"Απόρριπτω",ok:"OK",poweredBy:"Υποστηρίζεται από το Klaro!",purposeItem:{service:"",services:""},save:"Αποθήκευση"},en:{acceptAll:"Accept all",acceptSelected:"Accept selected",close:"Close",consentModal:{description:"Here you can assess and customize the services that we'd like to use on this website. You're in charge! Enable or disable services as you see fit.",title:"Services we would like to use"},consentNotice:{changeDescription:"There were changes since your last visit, please renew your consent.",title:"Cookie Consent",description:"Hi! Could we please enable some additional services for {purposes}? You can always change or withdraw your consent later.",learnMore:"Let me choose",testing:"Testing mode!"},contextualConsent:{acceptAlways:"Always",acceptOnce:"Yes",description:"Do you want to load external content supplied by {title}?",descriptionEmptyStore:"To agree to this service permanently, you must accept {title} in the {link}.",modalLinkText:"Consent Manager"},decline:"I decline",ok:"That's ok",poweredBy:"Realized with Klaro!",privacyPolicy:{name:"privacy policy",text:"To learn more, please read our {privacyPolicy}."},purposeItem:{service:"service",services:"services"},purposes:{advertising:{description:"These services process personal information to show you personalized or interest-based advertisements.",title:"Advertising"},functional:{description:"These services are essential for the correct functioning of this website. You cannot disable them here as the service would not work correctly otherwise.\n",title:"Service Provision"},marketing:{description:"These services process personal information to show you relevant content about products, services or topics that you might be interested in.",title:"Marketing"},performance:{description:"These services process personal information to optimize the service that this website offers.\n",title:"Performance Optimization"}},save:"Save",service:{disableAll:{description:"Use this switch to enable or disable all services.",title:"Enable or disable all services"},optOut:{description:"This services is loaded by default (but you can opt out)",title:"(opt-out)"},purpose:"purpose",purposes:"purposes",required:{description:"This services is always required",title:"(always required)"}}},zh:{acceptAll:"照单全收",acceptSelected:"接受选择",close:"密切",consentModal:{description:"在这里,您可以评估和定制我们希望在本网站上使用的服务。您是负责人!您可以根据自己的需要启用或禁用服务。启用或禁用您认为合适的服务。",privacyPolicy:{name:"隐私政策",text:"要了解更多,请阅读我们的{privacyPolicy} 。"},title:"我们想使用的服务"},consentNotice:{changeDescription:"自上次访问后有变化,请更新您的同意。",description:"你好!我们可以为{purposes} 启用一些额外的服务吗?您可以随时更改或撤回您的同意。",imprint:{name:"印记"},learnMore:"让我来选",privacyPolicy:{name:"隐私政策"},testing:"测试模式!"},contextualConsent:{acceptAlways:"总是",acceptOnce:"是的,是的",description:"你想加载由{title} 提供的外部内容吗?"},decline:"我拒绝",ok:"没事的",poweredBy:"与Klaro一起实现!",privacyPolicy:{name:"隐私政策",text:"要了解更多,请阅读我们的{privacyPolicy} 。"},purposeItem:{service:"服务",services:"服务"},purposes:{advertising:{description:"这些服务处理个人信息,向您展示个性化或基于兴趣的广告。",title:"广告宣传"},functional:{description:"这些服务对于本网站的正常运行是必不可少的。您不能在这里禁用它们,否则服务将无法正常运行。\n",title:"服务提供"},marketing:{description:"这些服务会处理个人信息,向您展示您可能感兴趣的产品、服务或主题的相关内容。",title:"市场营销"},performance:{description:"这些服务处理个人信息是为了优化本网站提供的服务。\n",title:"性能优化"}},save:"挽救",service:{disableAll:{description:"使用此开关可启用或禁用所有服务。",title:"启用或停用所有服务"},optOut:{description:"这个服务是默认加载的(但你可以选择退出)",title:"(选择退出)"},purpose:"目的",purposes:"目的",required:{description:"这种服务是必须的",title:"(总是需要)"}}},pt:{acceptAll:"Aceitar todos",acceptSelected:"Aceitar selecionados",close:"Fechar",consentModal:{description:"Aqui você pode avaliar e personalizar os serviços que gostaríamos de usar neste website. Você está no comando! Habilite ou desabilite os serviços como julgar conveniente.",privacyPolicy:{name:"política de privacidade",text:"Para saber mais, por favor, leia nossa {privacyPolicy}."},title:"Serviços que gostaríamos de utilizar"},consentNotice:{changeDescription:"Houve mudanças desde sua última visita, queira renovar seu consentimento.",description:"Olá! Poderíamos, por favor, habilitar alguns serviços adicionais para {purposes}? Você pode sempre mudar ou retirar seu consentimento mais tarde.",imprint:{name:"imprimir"},learnMore:"Deixe-me escolher",privacyPolicy:{name:"política de privacidade"},testing:"Modo de teste!"},contextualConsent:{acceptAlways:"Sempre",acceptOnce:"Sim",description:"Você deseja carregar conteúdo externo fornecido por {title}?"},decline:"Recusar",ok:"Aceito.",poweredBy:"Realizado com Klaro!",privacyPolicy:{name:"política de privacidade",text:"Para saber mais, por favor, leia nossa {privacyPolicy}."},purposeItem:{service:"serviço",services:"serviços"},purposes:{advertising:{description:"Esses serviços processam informações pessoais para mostrar a você anúncios personalizados ou baseados em interesses.",title:"Publicidade"},functional:{description:"Esses serviços são essenciais para o correto funcionamento deste website. Você não pode desativá-los aqui, pois de outra forma o serviço não funcionaria corretamente.\n",title:"Prestação de serviços"},marketing:{description:"Esses serviços processam informações pessoais para mostrar a você conteúdo relevante sobre produtos, serviços ou tópicos que possam ser do seu interesse.",title:"Marketing"},performance:{description:"Esses serviços processam informações pessoais para otimizar o serviço que este website oferece.\n",title:"Otimização do desempenho"}},save:"Salvar",service:{disableAll:{description:"Use essa chave para habilitar ou desabilitar todos os serviços.",title:"Habilitar ou desabilitar todos os serviços"},optOut:{description:"Estes serviços são carregados por padrão (mas o você pode optar por não participar).",title:"(opt-out)"},purpose:"Objetivo",purposes:"Objetivos",required:{description:"Esses serviços são sempre necessários",title:"(sempre necessário)"}}},es:{acceptAll:"Aceptar todas",acceptSelected:"Aceptar seleccionadas",close:"Cerrar",consentModal:{description:"Aquí puede evaluar y personalizar los servicios que nos gustaría utilizar en este sitio web. ¡Usted decide! Habilite o deshabilite los servicios como considere oportuno.",privacyPolicy:{name:"política de privacidad",text:"Para saber más, por favor lea nuestra {privacyPolicy}."},title:"Servicios que nos gustaría utilizar"},consentNotice:{changeDescription:"Ha habido cambios en las cookies desde su última visita. Debe renovar su consentimiento.",description:"¡Hola! ¿Podríamos habilitar algunos servicios adicionales para {purposes}? Siempre podrá cambiar o retirar su consentimiento más tarde.",imprint:{name:"Imprimir"},learnMore:"Quiero elegir",privacyPolicy:{name:"política de privacidad"},testing:"¡Modo de prueba!"},contextualConsent:{acceptAlways:"Siempre",acceptOnce:"Sí",description:"¿Quieres cargar el contenido externo suministrado por {title}?"},decline:"Descartar todas",ok:"De acuerdo",poweredBy:"¡Realizado con Klaro!",privacyPolicy:{name:"política de privacidad",text:"Para saber más, por favor lea nuestra {privacyPolicy}."},purposeItem:{service:"servicio",services:"servicios"},purposes:{advertising:{description:"Estos servicios procesan información personal para mostrarle anuncios personalizados o basados en intereses.",title:"Publicidad"},functional:{description:"Estos servicios son esenciales para el correcto funcionamiento de este sitio web. No puede desactivarlos ya que la página no funcionaría correctamente.",title:"Prestación de servicios"},marketing:{description:"Estos servicios procesan información personal para mostrarle contenido relevante sobre productos, servicios o temas que puedan interesarle.",title:"Marketing"},performance:{description:"Estos servicios procesan información personal para optimizar el servicio que ofrece este sitio.",title:"Optimización del rendimiento"}},save:"Guardar",service:{disableAll:{description:"Utilice este interruptor para activar o desactivar todos los servicios.",title:"Activar o desactivar todos los servicios"},optOut:{description:"Este servicio está habilitado por defecto (pero puede optar por lo contrario)",title:"(desactivar)"},purpose:"Finalidad",purposes:"Finalidades",required:{description:"Este servicio es necesario siempre",title:"(siempre requerido)"}}},fi:{acceptAll:"",acceptAll_en:"Accept all",acceptSelected:"",acceptSelected_en:"Accept selected",service:{disableAll:{description:"Aktivoi kaikki päälle/pois.",title:"Valitse kaikki"},optOut:{description:"Ladataan oletuksena (mutta voit ottaa sen pois päältä)",title:"(ladataan oletuksena)"},purpose:"Käyttötarkoitus",purposes:"Käyttötarkoitukset",required:{description:"Sivusto vaatii tämän aina",title:"(vaaditaan)"}},close:"Sulje",consentModal:{description:"Voit tarkastella ja muokata sinusta keräämiämme tietoja.",privacyPolicy:{name:"tietosuojasivultamme",text:"Voit lukea lisätietoja {privacyPolicy}."},title:"Keräämämme tiedot"},consentNotice:{changeDescription:"Olemme tehneet muutoksia ehtoihin viime vierailusi jälkeen, tarkista ehdot.",description:"Keräämme ja käsittelemme henkilötietoja seuraaviin tarkoituksiin: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"Lue lisää",privacyPolicy:{name:"tietosuojasivultamme"}},decline:"Hylkää",ok:"Hyväksy",poweredBy:"Palvelun tarjoaa Klaro!",purposeItem:{service:"",services:""},save:"Tallenna"},fr:{acceptAll:"Accepter tout",acceptSelected:"Accepter sélectionné",close:"Fermer",consentModal:{description:"Vous pouvez ici évaluer et personnaliser les services que nous aimerions utiliser sur ce site. C'est vous qui décidez ! Activez ou désactivez les services comme bon vous semble.",privacyPolicy:{name:"politique de confidentialité",text:"Pour en savoir plus, veuillez lire notre {privacyPolicy}."},title:"Services que nous souhaitons utiliser"},consentNotice:{changeDescription:"Il y a eu des changements depuis votre dernière visite, veuillez renouveler votre consentement.",description:"Bonjour ! Pourrions-nous activer des services supplémentaires pour {purposes}? Vous pouvez toujours modifier ou retirer votre consentement plus tard.",imprint:{name:"mentions légales"},learnMore:"Laissez-moi choisir",privacyPolicy:{name:"politique de confidentialité"},testing:"Mode test !"},contextualConsent:{acceptAlways:"Toujours",acceptOnce:"Oui",description:"Vous souhaitez charger un contenu externe fourni par {title}?"},decline:"Je refuse",ok:"C'est bon.",poweredBy:"Réalisé avec Klaro !",privacyPolicy:{name:"politique de confidentialité",text:"Pour en savoir plus, veuillez lire notre {privacyPolicy}."},purposeItem:{service:"service",services:"services"},purposes:{advertising:{description:"Ces services traitent les informations personnelles pour vous présenter des publicités personnalisées ou basées sur des intérêts.",title:"Publicité"},functional:{description:"Ces services sont essentiels au bon fonctionnement de ce site. Vous ne pouvez pas les désactiver ici car le service ne fonctionnerait pas correctement autrement.\n",title:"Prestation de services"},marketing:{description:"Ces services traitent les informations personnelles afin de vous présenter un contenu pertinent sur les produits, les services ou les sujets qui pourraient vous intéresser.",title:"Marketing"},performance:{description:"Ces services traitent les informations personnelles afin d'optimiser le service que ce site Web offre.\n",title:"Optimisation de la performance"}},save:"Enregistrer",service:{disableAll:{description:"Utilisez ce commutateur pour activer ou désactiver tous les services.",title:"Activer ou désactiver tous les services"},optOut:{description:"Ce service est chargé par défaut (mais vous pouvez le désactiver)",title:"(opt-out)"},purpose:"Objet",purposes:"Fins",required:{description:"Ce service est toujours nécessaire",title:"(toujours requis)"}}},gl:{acceptAll:"Aceptar todas",acceptSelected:"Aceptar seleccionadas",close:"Pechar",consentModal:{description:"Aquí pode avaliar e personalizar os servizos que nos gustaría utilizar neste sitio web. ¡Vostede decide! Habilite ou deshabilite os servicios como lle conveña.",privacyPolicy:{name:"política de privacidade",text:"Para saber máis, por favor lea a nosa {privacyPolicy}."},title:"Servizos que nos gustaría utilizar"},consentNotice:{changeDescription:"Houbo cambios nas cookies dende a súa última visita. Debe renovar o seu consentimento.",description:"¡Ola! ¿Poderíamos habilitar algúns servizos adicionais para {purposes}? Sempre poderá cambiar ou retirar o séu consentimento máis tarde.",imprint:{name:"Imprimir"},learnMore:"Quero elixir",privacyPolicy:{name:"política de privacidade"},testing:"¡Modo de proba!"},decline:"Descartar todas",ok:"De acordo",poweredBy:"¡Realizado con Klaro!",privacyPolicy:{name:"política de privacidade",text:"Para saber máis, por favor lea a nosa {privacyPolicy}."},purposeItem:{service:"servizo",services:"servizos"},purposes:{advertising:{description:"Estes servizos procesan información persoal para mostrarlle anuncios personalizados ou basados en intereses.",title:"Publicidade"},functional:{description:"Estes servizos son esenciais para o correcto funcionamiento deste sitio web. Non pode desactivalos xa que a páxina non funcionaría correctamente.",title:"Prestación de servizos"},marketing:{description:"Estes servizos procesan información persoal para mostrarlle contido relevante sobre produtos, servizos ou temas que poidan interesarlle.",title:"Marketing"},performance:{description:"Estes servizos procesan información persoal para optimizar o servizo que ofrece este sitio.",title:"Optimización do rendimento"}},save:"Gardar",service:{disableAll:{description:"Utilice este interruptor para activar ou desactivar todos os servizos.",title:"Activar ou desactivar todos os servizos"},optOut:{description:"Este servizo está habilitado por defecto (pero pode optar polo contrario)",title:"(desactivar)"},purpose:"Finalidade",purposes:"Finalidades",required:{description:"Este servizo é necesario sempre",title:"(sempre requirido)"}}},hu:{acceptAll:"Mind elfogad",acceptAll_en:"Accept all",acceptSelected:"Kiválasztottat elfogad",acceptSelected_en:"Accept selected",service:{disableAll:{description:"Használja ezt a kapcsolót az összes alkalmazás engedélyezéséhez/letiltásához.",title:"Összes app átkapcsolása"},optOut:{description:"Ez az alkalmazás alapértelmezés szerint betöltött (de ki lehet kapcsolni)",title:"(leiratkozás)"},purpose:"Cél",purposes:"Célok",required:{description:"Ez az alkalmazás mindig szükséges",title:"(mindig szükséges)"}},close:"Elvet",consentModal:{description:"Itt láthatja és testreszabhatja az önről gyűjtött információkat.",privacyPolicy:{name:"adatvédelmi irányelveinket",text:"További információért kérjük, olvassa el az {privacyPolicy}."},title:"Információk, amiket gyűjtünk"},consentNotice:{changeDescription:"Az utolsó látogatás óta változások történtek, kérjük, frissítse a hozzájárulását.",description:"Személyes adatait összegyűjtjük és feldolgozzuk az alábbi célokra: {purposes}.",imprint:{name:"impresszum",name_en:"imprint"},learnMore:"Tudjon meg többet",privacyPolicy:{name:"adatvédelmi irányelveinket"}},contextualConsent:{acceptAlways:"Mindig",acceptOnce:"Igen",description:"Be akarod tölteni a {title} által szolgáltatott külső tartalmakat?"},decline:"Elutasít",ok:"Elfogad",poweredBy:"Powered by Klaro!",purposeItem:{service:"",services:""},save:"Mentés"},hr:{acceptAll:"",acceptAll_en:"Prihvati sve",acceptSelected:"",acceptSelected_en:"Prihvati odabrane",service:{disableAll:{description:"Koristite ovaj prekidač da omogućite/onemogućite sve aplikacije odjednom.",title:"Izmeijeni sve"},optOut:{description:"Ova aplikacija je učitana automatski (ali je možete onemogućiti)",title:"(onemogućite)"},purpose:"Svrha",purposes:"Svrhe",required:{description:"Ova aplikacija je uvijek obavezna",title:"(obavezna)"}},close:"Zatvori",consentModal:{description:"Ovdje možete vidjeti i podesiti informacije koje prikupljamo o Vama.",privacyPolicy:{name:"pravila privatnosti",text:"Za više informacije pročitajte naša {privacyPolicy}."},title:"Informacije koje prikupljamo"},consentNotice:{changeDescription:"Došlo je do promjena od Vaše posljednjeg posjećivanja web stranice, molimo Vas da ažurirate svoja odobrenja.",description:"Mi prikupljamo i procesiramo Vaše osobne podatke radi slijedećeg: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"Saznajte više",privacyPolicy:{name:"pravila privatnosti"}},decline:"Odbij",ok:"U redu",poweredBy:"Pokreće Klaro!",purposeItem:{service:"",services:""},save:"Spremi"},it:{acceptAll:"Accettare tutti",acceptSelected:"Accettare selezionato",close:"Chiudi",consentModal:{description:"Qui può valutare e personalizzare i servizi che vorremmo utilizzare su questo sito web. È lei il responsabile! Abilitare o disabilitare i servizi come meglio crede.",privacyPolicy:{name:"informativa sulla privacy",text:"Per saperne di più, legga la nostra {privacyPolicy}."},title:"Servizi che desideriamo utilizzare"},consentNotice:{changeDescription:"Ci sono stati dei cambiamenti rispetto alla sua ultima visita, la preghiamo di rinnovare il suo consenso.",description:"Salve, possiamo attivare alcuni servizi aggiuntivi per {purposes}? Può sempre modificare o ritirare il suo consenso in un secondo momento.",imprint:{name:"impronta"},learnMore:"Lasciatemi scegliere",privacyPolicy:{name:"informativa sulla privacy"},testing:"Modalità di test!"},contextualConsent:{acceptAlways:"Sempre",acceptOnce:"Sì",description:"Vuole caricare contenuti esterni forniti da {title}?"},decline:"Rifiuto",ok:"Va bene così",poweredBy:"Realizzato con Klaro!",privacyPolicy:{name:"informativa sulla privacy",text:"Per saperne di più, legga la nostra {privacyPolicy}."},purposeItem:{service:"servizio",services:"servizi"},purposes:{advertising:{description:"Questi servizi elaborano le informazioni personali per mostrarle annunci pubblicitari personalizzati o basati su interessi.",title:"Pubblicità"},functional:{description:"Questi servizi sono essenziali per il corretto funzionamento di questo sito web. Non può disattivarli qui perché altrimenti il servizio non funzionerebbe correttamente.\n",title:"Fornitura di servizi"},marketing:{description:"Questi servizi elaborano le informazioni personali per mostrarle contenuti rilevanti su prodotti, servizi o argomenti che potrebbero interessarla.",title:"Marketing"},performance:{description:"Questi servizi elaborano le informazioni personali per ottimizzare il servizio offerto da questo sito web.\n",title:"Ottimizzazione delle prestazioni"}},save:"Salva",service:{disableAll:{description:"Utilizzi questo interruttore per attivare o disattivare tutti i servizi.",title:"Attivare o disattivare tutti i servizi"},optOut:{description:"Questo servizio è caricato di default (ma è possibile scegliere di non usufruirne)",title:"(opt-out)"},purpose:"Scopo dell",purposes:"Finalità",required:{description:"Questo servizio è sempre richiesto",title:"(sempre richiesto)"}}},nl:{acceptAll:"Accepteer alle",acceptSelected:"Geselecteerde",close:"Sluit",consentModal:{description:"Hier kunt u de diensten die wij op deze website willen gebruiken beoordelen en aanpassen. U heeft de leiding! Schakel de diensten naar eigen inzicht in of uit.",privacyPolicy:{name:"privacybeleid",text:"Voor meer informatie kunt u ons {privacyPolicy} lezen."},title:"Diensten die we graag willen gebruiken"},consentNotice:{changeDescription:"Er waren veranderingen sinds uw laatste bezoek, gelieve uw toestemming te hernieuwen.",description:"Hallo, kunnen wij u een aantal extra diensten aanbieden voor {purposes}? U kunt uw toestemming later altijd nog wijzigen of intrekken.",imprint:{name:"impressum"},learnMore:"Laat me kiezen",privacyPolicy:{name:"privacybeleid"},testing:"Testmodus!"},contextualConsent:{acceptAlways:"Altijd",acceptOnce:"Ja",description:"Wilt u externe content laden die door {title} wordt aangeleverd ?"},decline:"Ik weiger",ok:"Dat is oké",poweredBy:"Gerealiseerd met Klaro!",privacyPolicy:{name:"privacybeleid",text:"Voor meer informatie kunt u ons {privacyPolicy} lezen."},purposeItem:{service:"service",services:"diensten"},purposes:{advertising:{description:"Deze diensten verwerken persoonlijke informatie om u gepersonaliseerde of op interesse gebaseerde advertenties te tonen.",title:"Reclame"},functional:{description:"Deze diensten zijn essentieel voor het correct functioneren van deze website. U kunt ze hier niet uitschakelen omdat de dienst anders niet correct zou werken.\n",title:"Dienstverlening"},marketing:{description:"Deze diensten verwerken persoonlijke informatie om u relevante inhoud te tonen over producten, diensten of onderwerpen waarin u geïnteresseerd zou kunnen zijn.",title:"Marketing"},performance:{description:"Deze diensten verwerken persoonlijke informatie om de service die deze website biedt te optimaliseren.\n",title:"Optimalisatie van de prestaties"}},save:"Opslaan",service:{disableAll:{description:"Gebruik deze schakelaar om alle diensten in of uit te schakelen.",title:"Alle diensten in- of uitschakelen"},optOut:{description:"Deze diensten worden standaard geladen (maar u kunt zich afmelden)",title:"(opt-out)"},purpose:"Verwerkingsdoel",purposes:"Verwerkingsdoeleinden",required:{description:"Deze diensten zijn altijd nodig",title:"(altijd nodig)"}}},no:{acceptAll:"Godtar alle",acceptSelected:"Godtar valgt",service:{disableAll:{description:"Bruk denne for å skru av/på alle apper.",title:"Bytt alle apper"},optOut:{description:"Denne appen er lastet som standard (men du kan skru det av)",title:"(opt-out)"},purpose:"Årsak",purposes:"Årsaker",required:{description:"Denne applikasjonen er alltid påkrevd",title:"(alltid påkrevd)"}},close:"",close_en:"Close",consentModal:{description:"Her kan du se og velge hvilken informasjon vi samler inn om deg.",privacyPolicy:{name:"personvernerklæring",text:"For å lære mer, vennligst les vår {privacyPolicy}."},title:"Informasjon vi samler inn"},consentNotice:{changeDescription:"Det har skjedd endringer siden ditt siste besøk, vennligst oppdater ditt samtykke.",description:"Vi samler inn og prosesserer din personlige informasjon av følgende årsaker: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"Lær mer",privacyPolicy:{name:"personvernerklæring"}},decline:"Avslå",ok:"OK",poweredBy:"Laget med Klaro!",purposeItem:{service:"",services:""},save:"Opslaan"},oc:{acceptAll:"Tot acceptar",acceptSelected:"Acceptar çò seleccionat",close:"Tampar",consentModal:{description:"Aquí podètz mesurar e personalizar los servicis que volriam utilizar sus aqueste site web. Avètz lo darrièr mot ! Activatz o desactivatz segon vòstra causida.",title:"Servicis que volriam utilizar"},consentNotice:{changeDescription:"I aguèt de modificacions dempuèi vòstra darrièra visita, mercés de repassar vòstre consentiment.",description:"Adieu ! Poiriam activar mai de servici per {purposes} ? Podètz totjorn modificar o tirar vòstre consentiment mai tard.",learnMore:"Me daissar causir",testing:"Mòde tèst !"},contextualConsent:{acceptAlways:"Totjorn",acceptOnce:"Òc",description:"Volètz cargar de contenguts extèrn provesits per {title} ?"},decline:"Refusi",ok:"Es bon",poweredBy:"Realizat amb Klaro !",privacyPolicy:{name:"politica de confidencialitat",text:"Per ne saber mai, vejatz nòstra {privacyPolicy}."},purposeItem:{service:"servici",services:"servicis"},purposes:{advertising:{description:"Aquestes servicis tractan d’informacions personalas per vos mostrar de reclamas personalizadas o basadas suls interèsses.",title:"Reclama"},functional:{description:"Aquestes servicis son essencials pel foncionament corrèct d’aqueste site web. Los podètz pas desactivar aquí pr’amor que lo servici foncionariá pas coma cal autrament.\n",title:"Servici de provision"},marketing:{description:"Aquestes servicis tractan d’informacions personalas per vos mostrar de contenguts a prepaus de produits, de servicis o tèmas que poirián vos interessar.",title:"Marketing"},performance:{description:"Aquestes servicis tractan d’informacions per optimizar lo servici qu’aqueste site web prepausa.\n",title:"Optimizacion de las performanças"}},save:"Salvar",service:{disableAll:{description:"Utilizatz aqueste alternator per activar o desactivar totes los servicis.",title:"Activar o desactivar totes los servicis"},optOut:{description:"Aqueste servici es cargar per defaut (mas lo podètz desactivar)",title:"(opt-out)"},purpose:"finalitat",purposes:"finalitat",required:{description:"Aqueste servici es totjorn requesit",title:"(totjorn requesit)"}}},ro:{acceptAll:"",acceptAll_en:"Accept all",acceptSelected:"",acceptSelected_en:"Accept selected",service:{disableAll:{description:"Utilizați acest switch pentru a activa/dezactiva toate aplicațiile.",title:"Comutați între toate aplicațiile"},optOut:{description:"Această aplicație este încărcată în mod implicit (dar puteți renunța)",title:"(opt-out)"},purpose:"Scop",purposes:"Scopuri",required:{description:"Această aplicație este întotdeauna necesară",title:"(întotdeauna necesar)"}},close:"",close_en:"Close",consentModal:{description:"Aici puteți vedea și personaliza informațiile pe care le colectăm despre dvs.",privacyPolicy:{name:"politica privacy",text:"Pentru a afla mai multe, vă rugăm să citiți {privacyPolicy}."},title:"Informațiile pe care le colectăm"},consentNotice:{changeDescription:"Au existat modificări de la ultima vizită, vă rugăm să actualizați consimțământul.",description:"Colectăm și procesăm informațiile dvs. personale în următoarele scopuri: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"Află mai multe",privacyPolicy:{name:"politica privacy"}},decline:"Renunță",ok:"OK",poweredBy:"Realizat de Klaro!",purposeItem:{service:"",services:""},save:"Salvează"},sr:{acceptAll:"",acceptAll_en:"Accept all",acceptSelected:"",acceptSelected_en:"Accept selected",service:{disableAll:{description:"Koristite ovaj prekidač da omogućite/onesposobite sve aplikacije odjednom.",title:"Izmeni sve"},optOut:{description:"Ova aplikacija je učitana automatski (ali je možete onesposobiti)",title:"(onesposobite)"},purpose:"Svrha",purposes:"Svrhe",required:{description:"Ova aplikacija je uvek neophodna",title:"(neophodna)"}},close:"Zatvori",consentModal:{description:"Ovde možete videti i podesiti informacije koje prikupljamo o Vama.",privacyPolicy:{name:"politiku privatnosti",text:"Za više informacije pročitajte našu {privacyPolicy}."},title:"Informacije koje prikupljamo"},consentNotice:{changeDescription:"Došlo je do promena od Vaše poslednje posete, molimo Vas da ažurirate svoja odobrenja.",description:"Mi prikupljamo i procesiramo Vaše lične podatke radi sledećeg: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"Saznajte više",privacyPolicy:{name:"politiku privatnosti"}},decline:"Odbij",ok:"U redu",poweredBy:"Pokreće Klaro!",purposeItem:{service:"",services:""},save:"Sačuvaj"},sr_cyrl:{consentModal:{title:"Информације које прикупљамо",description:"Овде можете видет и подесити информације које прикупљамо о Вама.\n",privacyPolicy:{name:"политику приватности",text:"За више информација прочитајте нашу {privacyPolicy}.\n"}},consentNotice:{changeDescription:"Дошло је до промена од Ваше последнје посете, молимо Вас да ажурирате своја одобрења.",description:"Ми прикупљамо и процесирамо Ваше личне податке ради следећег: {purposes}.\n",learnMore:"Сазнајте више",privacyPolicy:{name:"политику приватности"}},ok:"У реду",save:"Сачувај",decline:"Одбиј",close:"Затвори",service:{disableAll:{title:"Измени све",description:"Користите овај прекидач да омогућите/онеспособите све апликације одједном."},optOut:{title:"(онеспособите)",description:"Ова апликација је учитана аутоматски (али је можете онеспособити)"},required:{title:"(неопходна)",description:"Ова апликација је увек неопходна."},purposes:"Сврхе",purpose:"Сврха"},poweredBy:"Покреће Кларо!"},sv:{acceptAll:"Acceptera alla",acceptSelected:"Acceptera markerat",service:{disableAll:{description:"Använd detta reglage för att aktivera/avaktivera samtliga appar.",title:"Ändra för alla appar"},optOut:{description:"Den här appen laddas som standardinställning (men du kan avaktivera den)",title:"(Avaktivera)"},purpose:"Syfte",purposes:"Syften",required:{description:"Den här applikationen krävs alltid",title:"(Krävs alltid)"}},close:"Stäng",consentModal:{description:"Här kan du se och anpassa vilken information vi samlar om dig.",privacyPolicy:{name:"Integritetspolicy",text:"För att veta mer, läs vår {privacyPolicy}."},title:"Information som vi samlar"},consentNotice:{changeDescription:"Det har skett förändringar sedan ditt senaste besök, var god uppdatera ditt medgivande.",description:"Vi samlar och bearbetar din personliga data i följande syften: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"Läs mer",privacyPolicy:{name:"Integritetspolicy"}},decline:"Avböj",ok:"OK",poweredBy:"Körs på Klaro!",purposeItem:{service:"",services:""},save:"Spara"},tr:{acceptAll:"",acceptAll_en:"Accept all",acceptSelected:"",acceptSelected_en:"Accept selected",service:{disableAll:{description:"Toplu açma/kapama için bu düğmeyi kullanabilirsin.",title:"Tüm uygulamaları aç/kapat"},optOut:{description:"Bu uygulama varsayılanda yüklendi (ancak iptal edebilirsin)",title:"(isteğe bağlı)"},purpose:"Amaç",purposes:"Amaçlar",required:{description:"Bu uygulama her zaman gerekli",title:"(her zaman gerekli)"}},close:"Kapat",consentModal:{description:"Hakkınızda topladığımız bilgileri burada görebilir ve özelleştirebilirsiniz.",privacyPolicy:{name:"Gizlilik Politikası",text:"Daha fazlası için lütfen {privacyPolicy} sayfamızı okuyun."},title:"Sakladığımız bilgiler"},consentNotice:{changeDescription:"Son ziyaretinizden bu yana değişiklikler oldu, lütfen seçiminizi güncelleyin.",description:"Kişisel bilgilerinizi aşağıdaki amaçlarla saklıyor ve işliyoruz: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"Daha fazla bilgi",privacyPolicy:{name:"Gizlilik Politikası"}},decline:"Reddet",ok:"Tamam",poweredBy:"Klaro tarafından geliştirildi!",purposeItem:{service:"",services:""},save:"Kaydet"},pl:{acceptAll:"Zaakceptuj wszystkie",acceptSelected:"Zaakceptuj wybrane",close:"Zamknij",consentModal:{description:"Tutaj mogą Państwo ocenić i dostosować usługi, które chcielibyśmy wykorzystać na tej stronie. Włączaj lub wyłączaj usługi według własnego uznania.",privacyPolicy:{name:"polityką prywatności",text:"Aby dowiedzieć się więcej, prosimy o zapoznanie się z naszą {privacyPolicy}."},title:"Usługi, z których chcielibyśmy skorzystać"},consentNotice:{changeDescription:"Od Twojej ostatniej wizyty nastąpiły zmiany, prosimy o odnowienie zgody.",description:"Czy możemy włączyć dodatkowe usługi dla {purposes}? W każdej chwili mogą Państwo później zmienić lub wycofać swoją zgodę.",imprint:{name:"Imprint"},learnMore:"Pozwól mi wybrać",privacyPolicy:{name:"polityka prywatności"},testing:"Tryb testowy!"},contextualConsent:{acceptAlways:"Zawsze",acceptOnce:"Tak",description:"Czy chcą Państwo załadować treści zewnętrzne dostarczane przez {title}?"},decline:"Odmawiam",ok:"Ok",poweredBy:"Technologia dostarczona przez Klaro",privacyPolicy:{name:"polityka prywatności",text:"Aby dowiedzieć się więcej, prosimy o zapoznanie się z naszą {privacyPolicy}."},purposeItem:{service:"usługa",services:"usługi"},purposes:{advertising:{description:"Usługi te przetwarzają dane osobowe w celu pokazania Państwu spersonalizowanych lub opartych na zainteresowaniach reklam.",title:"Reklama"},functional:{description:"Usługi te są niezbędne do prawidłowego funkcjonowania niniejszej strony internetowej. Nie mogą Państwo ich tutaj wyłączyć, ponieważ w przeciwnym razie strona nie działałaby prawidłowo.\n",title:"Świadczenie usług"},marketing:{description:"Usługi te przetwarzają dane osobowe w celu pokazania Państwu istotnych treści dotyczących produktów, usług lub tematów, którymi mogą być Państwo zainteresowani.",title:"Marketing"},performance:{description:"Usługi te przetwarzają dane osobowe w celu optymalizacji usług oferowanych przez tę stronę.\n",title:"Optymalizacja wydajności"}},save:"Zapisz",service:{disableAll:{description:"Za pomocą tego przełącznika można włączać lub wyłączać wszystkie usługi.",title:"Włącz lub wyłącz wszystkie usługi"},optOut:{description:"Ta usługa jest domyślnie załadowana (ale mogą Państwo z niej zrezygnować)",title:"(opt-out)"},purpose:"Cel",purposes:"Cele",required:{description:"Usługi te są zawsze wymagane",title:"(zawsze wymagane)"}}},ru:{acceptAll:"Принять всё",acceptSelected:"Принять выбранные",service:{disableAll:{description:"Используйте этот переключатель, чтобы включить/отключить все приложения.",title:"Переключить все приложения"},optOut:{description:"Это приложение включено по умолчанию (но вы можете отказаться)",title:"(отказаться)"},purpose:"Намерение",purposes:"Намерения",required:{description:"Это обязательное приложение",title:"(всегда обязательный)"}},close:"Закрыть",consentModal:{description:"Здесь вы можете просмотреть и настроить, какую информацию о вас мы храним.",privacyPolicy:{name:"Соглашение",text:"Чтобы узнать больше, пожалуйста, прочитайте наше {privacyPolicy}."},title:"Информация, которую мы сохраняем"},consentNotice:{changeDescription:"Со времени вашего последнего визита произошли изменения, обновите своё согласие.",description:"Мы собираем и обрабатываем вашу личную информацию для следующих целей: {purposes}.",imprint:{name:"",name_en:"imprint"},learnMore:"Настроить",privacyPolicy:{name:"политика конфиденциальности"}},decline:"Отклонить",ok:"Принять",poweredBy:"Работает на Кларо!",purposeItem:{service:"",services:""},save:"Сохранить"}});Dn(Hn,ur),rr()})(),r})(),e.exports=t()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r](i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{FunctionToString:()=>un,InboundFilters:()=>nn,LinkedErrors:()=>ui});var t={};n.r(t),n.d(t,{Breadcrumbs:()=>$r,Dedupe:()=>qr,GlobalHandlers:()=>no,HttpContext:()=>co,LinkedErrors:()=>go,TryCatch:()=>bo});var r={};function o(e){(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?e():document.addEventListener("DOMContentLoaded",e)}function i(e){if(!document.cookie)return null;var t=document.cookie.split(";").map((function(e){return e.trim()})).find((function(t){return 0===t.indexOf("".concat(e,"="))}));return t?decodeURIComponent("".concat(t.substring(e.length+1))):null}n.r(r),n.d(r,{Breadcrumbs:()=>$r,BrowserClient:()=>gr,BrowserProfilingIntegration:()=>Hf,BrowserTracing:()=>Qp,Dedupe:()=>qr,Feedback:()=>Vd,FunctionToString:()=>un,GlobalHandlers:()=>no,HttpContext:()=>co,Hub:()=>tt,InboundFilters:()=>nn,Integrations:()=>Vf,LinkedErrors:()=>go,ModuleMetadata:()=>gi,Replay:()=>Fl,ReplayCanvas:()=>yd,SDK_VERSION:()=>Ze,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>_i,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>bi,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>yi,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>vi,Scope:()=>Je,TryCatch:()=>bo,WINDOW:()=>dr,addBreadcrumb:()=>Et,addEventProcessor:()=>Zn,addGlobalEventProcessor:()=>he,addIntegration:()=>Jt,addTracingExtensions:()=>ns,breadcrumbsIntegration:()=>Fr,browserApiErrorsIntegration:()=>_o,browserProfilingIntegration:()=>qf,browserTracingIntegration:()=>rf,captureConsoleIntegration:()=>Kd,captureEvent:()=>kt,captureException:()=>St,captureMessage:()=>wt,captureSession:()=>Wt,captureUserFeedback:()=>si,chromeStackLineParser:()=>Oo,close:()=>Lt,configureScope:()=>xt,contextLinesIntegration:()=>Xd,continueTrace:()=>Mi,createTransport:()=>Go,createUserFeedbackEnvelope:()=>mr,debugIntegration:()=>Qd,dedupeIntegration:()=>np,defaultIntegrations:()=>Qo,defaultRequestInstrumentationOptions:()=>Gp,defaultStackLineParsers:()=>Fo,defaultStackParser:()=>$o,endSession:()=>qt,eventFromException:()=>sr,eventFromMessage:()=>ar,exceptionFromError:()=>tr,extraErrorDataIntegration:()=>cp,extractTraceparentData:()=>wi,feedbackIntegration:()=>Wd,flush:()=>Nt,forceLoad:()=>ri,functionToStringIntegration:()=>cn,geckoStackLineParser:()=>Mo,getActiveSpan:()=>Ri,getActiveTransaction:()=>Si,getClient:()=>Ft,getCurrentHub:()=>ot,getCurrentScope:()=>Bt,getDefaultIntegrations:()=>ei,getHubFromCarrier:()=>at,getReplay:()=>Bl,getSpanStatusFromHttpCode:()=>Bi,globalHandlersIntegration:()=>to,httpClientIntegration:()=>lp,httpContextIntegration:()=>ao,inboundFiltersIntegration:()=>tn,init:()=>ti,instrumentOutgoingRequests:()=>Kp,isInitialized:()=>$t,lastEventId:()=>zt,linkedErrorsIntegration:()=>mo,makeBrowserOfflineTransport:()=>yf,makeFetchTransport:()=>Jo,makeMain:()=>rt,makeMultiplexedTransport:()=>os,makeXHRTransport:()=>Zo,metrics:()=>hs,moduleMetadataIntegration:()=>mi,onLoad:()=>oi,onProfilingStartRouteTransaction:()=>$f,opera10StackLineParser:()=>No,opera11StackLineParser:()=>zo,parameterize:()=>ms,replayCanvasIntegration:()=>vd,replayIntegration:()=>zl,reportingObserverIntegration:()=>_p,rewriteFramesIntegration:()=>xp,sendFeedback:()=>Id,sessionTimingIntegration:()=>Tp,setContext:()=>Tt,setCurrentClient:()=>ln,setExtra:()=>It,setExtras:()=>Ct,setHttpStatus:()=>qi,setMeasurement:()=>gs,setTag:()=>At,setTags:()=>Ot,setUser:()=>Rt,showReportDialog:()=>ni,spanStatusfromHttpCode:()=>Ui,startBrowserTracingNavigationSpan:()=>sf,startBrowserTracingPageLoadSpan:()=>of,startInactiveSpan:()=>Ai,startSession:()=>Ut,startSpan:()=>Ii,startSpanManual:()=>Oi,startTransaction:()=>Dt,trace:()=>Ci,winjsStackLineParser:()=>jo,withActiveSpan:()=>jt,withIsolationScope:()=>Pt,withScope:()=>Mt,wrap:()=>ii}),n(5086),n(4989),n(9693),n(3534),n(590),n(115),n(17),n(7899),n(8379),n(8636),n(9581),n(8329);var s=i("django_language"),a={description:{de:"Marketing und personalisierte Inhalte",en:"Marketing and personalised content"},cookies:["scarab.visitor","scarab.profile","s"]};function c(e,t){var n=e.description,r=e.cookies;return[n[t],(null==r?void 0:r.length)&&"".concat(1===r.length?"Cookie":"Cookies",": ").concat(r.join(", ")),"de"===t?"Speicherdauer: ".concat(365," Tage"):"Storage Period: ".concat(365," Days")].filter(Boolean).join("
\n")}const u={version:1,elementID:"klaro-consent",storageName:"klaro",storageMethod:"localStorage",htmlTexts:!0,mustConsent:!0,acceptAll:!1,default:!1,cookieExpiresAfterDays:365,lang:s,showDescriptionEmptyStore:!0,noAutoLoad:!1,embedded:!1,groupByPurpose:!1,autoFocus:!0,showNoticeTitle:!1,hideDeclineAll:!1,hideLearnMore:!1,noticeAsModal:!1,translations:{zz:{privacyPolicyUrl:"/privacy-policy"},de:{consentModal:{title:"Wir benötigen Ihr Einverständnis",description:"Wir nutzen Cookies, um Ihr Erlebnis zu verbessern und personalisierte Inhalte zu ermöglichen. Ihre Präferenzen können Sie hier individuell speichern."},purposes:{marketing:{title:"Marketing"}},emarsys:{description:c(a,"de")}},en:{consentModal:{title:"We need your consent!",description:"We use cookies to enhance your experience and enable personalized content. You can save your preferences for them individually here."},purposes:{marketing:{title:"Marketing"}},emarsys:{description:c(a,"en")}}},services:[{name:"emarsys",title:"Emarsys Web Extend",default:!1,required:!1,onlyOnce:!1,purposes:["marketing"],cookies:a.cookies,optOut:!1,onDecline:function(){var e=document.getElementById("scarab-js-api");e&&e.parentNode&&window.location.reload(),window.ScarabQueue=[],Object.keys(localStorage).filter((function(e){return e.startsWith("wps-")||e.startsWith("_wp")||e.startsWith("scarab")})).forEach((function(e){return localStorage.removeItem(e)})),Object.keys(sessionStorage).filter((function(e){return e.startsWith("wps")})).forEach((function(e){return sessionStorage.removeItem(e)}))}}]};var l=n(5158);function d(){var e=document.getElementById("klaro-consent");if(e){var t=window.location.pathname;["/dashboard/","/accounts/","/privacy-policy/","/agb/","/impressum/","/wellhub/"].some((function(e){return t.startsWith(e)}))?e.classList.add("klaro-hide"):e.classList.remove("klaro-hide")}}window.klaroConfig=u,window.klaro=l,o((function(){var e;document.getElementById(u.elementID)&&(null===(e=window.klaro)||void 0===e||e.setup(window.klaroConfig),d(),window.addEventListener("popstate",d),["replaceState"].forEach((function(e){var t=history[e];history[e]=function(){for(var n=arguments.length,r=new Array(n),o=0;o{const r=y[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const b=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return p?v.forEach((n=>{t[n]=(...t)=>{e&&_((()=>{h.console[n](`Sentry Logger [${n}]:`,...t)}))}})):v.forEach((e=>{t[e]=()=>{}})),t}(),S=Object.prototype.toString;function w(e){switch(S.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return P(e,Error)}}function k(e,t){return S.call(e)===`[object ${t}]`}function x(e){return k(e,"ErrorEvent")}function E(e){return k(e,"DOMError")}function T(e){return k(e,"String")}function C(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function I(e){return null===e||C(e)||"object"!=typeof e&&"function"!=typeof e}function O(e){return k(e,"Object")}function A(e){return"undefined"!=typeof Event&&P(e,Event)}function R(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function M(e){return"number"==typeof e&&e!=e}function P(e,t){try{return e instanceof t}catch(e){return!1}}function j(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const D=m(),N=80;function L(e,t={}){if(!e)return"";try{let n=e;const r=5,o=[];let i=0,s=0;const a=" > ",c=a.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||N;for(;n&&i++1&&s+o.length*c+u.length>=d));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(a)}catch(e){return""}}function z(e,t){const n=e,r=[];let o,i,s,a,c;if(!n||!n.tagName)return"";if(D.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(u&&u.length)u.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&T(o))for(i=o.split(/\s+/),c=0;cr&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n=`'{snip} ${n}`),ifunction(e,t,n=!1){return!!T(e)&&(k(t,"RegExp")?t.test(e):!!T(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}function V(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&K(o,r),e[t]=o}function G(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){p&&b.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function K(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,G(e,"__sentry_original__",t)}catch(e){}}function Y(e){return e.__sentry_original__}function J(e){if(w(e))return{message:e.message,name:e.name,stack:e.stack,...Z(e)};if(A(e)){const t={type:e.type,target:X(e.target),currentTarget:X(e.currentTarget),...Z(e)};return"undefined"!=typeof CustomEvent&&P(e,CustomEvent)&&(t.detail=e.detail),t}return e}function X(e){try{return"undefined"!=typeof Element&&P(e,Element)?L(e):Object.prototype.toString.call(e)}catch(e){return""}}function Z(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Q(e){return ee(e,new Map)}function ee(e,t){if(function(e){if(!O(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=ee(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(ee(e,t))})),r}return e}function te(){const e=h,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function ne(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function re(e){const{message:t,event_id:n}=e;if(t)return t;const r=ne(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function oe(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function ie(e,t){const n=ne(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function se(e){if(e&&e.__sentry_captured__)return!0;try{G(e,"__sentry_captured__",!0)}catch(e){}return!1}function ae(e){return Array.isArray(e)?e:[e]}const ce="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var ue;function le(e){return new pe((t=>{t(e)}))}function de(e){return new pe(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(ue||(ue={}));class pe{constructor(e){pe.prototype.__init.call(this),pe.prototype.__init2.call(this),pe.prototype.__init3.call(this),pe.prototype.__init4.call(this),this._state=ue.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new pe(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new pe(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(ue.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(ue.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===ue.PENDING&&(R(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===ue.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===ue.RESOLVED&&e[1](this._value),this._state===ue.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function fe(){return g("globalEventProcessors",(()=>[]))}function he(e){fe().push(e)}function me(e,t,n,r=0){return new pe(((o,i)=>{const s=e[r];if(null===t||"function"!=typeof s)o(t);else{const a=s({...t},n);ce&&s.id&&null===a&&b.log(`Event processor "${s.id}" dropped event`),R(a)?a.then((t=>me(e,t,n,r+1).then(o))).then(null,i):me(e,a,n,r+1).then(o).then(null,i)}}))}const ge="production",ve=1e3;function ye(){return Date.now()/ve}const _e=function(){const{performance:e}=h;if(!e||!e.now)return ye;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/ve}();let be;const Se=(()=>{const{performance:e}=h;if(!e||!e.now)return void(be="none");const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=ofunction(e){return Q({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&ke(n,e),n}function ke(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||_e(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:te()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function xe(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),ke(e,n)}function Ee(e){return e.transaction}const Te="baggage",Ce="sentry-",Ie=/^sentry-/,Oe=8192;function Ae(e){if(!T(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const n=Me(t);for(const t of Object.keys(n))e[t]=n[t];return e}),{});else{if(!e)return;t=Me(e)}const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(Ie)&&(e[t.slice(Ce.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}function Re(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,n],r)=>{const o=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,i=0===r?o:`${e},${o}`;return i.length>Oe?(p&&b.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):i}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${Ce}${t}`]=n),e)),{}))}function Me(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}const Pe=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function je(e){if(!e)return;const t=e.match(Pe);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function De(e,t){const n=je(e),r=Ae(t),{traceId:o,parentSpanId:i,parentSampled:s}=n||{};return n?{traceId:o||te(),parentSpanId:i||te().substring(16),spanId:te().substring(16),sampled:s,dsc:r||{}}:{traceId:o||te(),spanId:te().substring(16)}}function Ne(e=te(),t=te().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const Le=1;function ze(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,tags:a,origin:c}=Ue(e);return Q({data:r,op:o,parent_span_id:i,span_id:t,status:s,tags:a,trace_id:n,origin:c})}function Fe(e){const{traceId:t,spanId:n}=e.spanContext();return Ne(t,n,qe(e))}function $e(e){return"number"==typeof e?Be(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Be(e.getTime()):_e()}function Be(e){return e>9999999999?e/1e3:e}function Ue(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function qe(e){const{traceFlags:t}=e.spanContext();return Boolean(t&Le)}function He(e,t,n){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},s=Q({environment:r.environment||ge,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function We(e){const t=Ft();if(!t)return{};const n=He(Ue(e).trace_id||"",t,Bt()),r=Ee(e);if(!r)return n;const o=r&&r._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:i,source:s}=r.metadata;null!=i&&(n.sample_rate=`${i}`);const a=Ue(r);return s&&"url"!==s&&(n.transaction=a.description),n.sampled=String(qe(r)),t.emit&&t.emit("createDsc",n),n}function Ve(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t,c=Q(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=Q(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const l=Q(o);l&&Object.keys(l).length&&(e.user={...l,...e.user});const d=Q(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),a&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:ze(t),...e.contexts};const n=Ee(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:We(t),...e.sdkProcessingMetadata};const r=Ue(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,r),function(e,t){e.fingerprint=e.fingerprint?ae(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,i)}function Ge(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:p,transactionName:f,span:h}=t;Ke(e,"extra",n),Ke(e,"tags",r),Ke(e,"user",o),Ke(e,"contexts",i),Ke(e,"sdkProcessingMetadata",a),s&&(e.level=s),f&&(e.transactionName=f),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function Ke(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}let Ye;class Je{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Xe()}static clone(e){return e?e.clone():new Je}clone(){const e=new Je;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&ke(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e;if(t instanceof Je){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(O(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Xe(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:ye(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:o,_user:i,_level:s,_fingerprint:a,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:l,_transactionName:d,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:o,user:i,level:s,fingerprint:a||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:l,transactionName:d,span:p}}applyToEvent(e,t={},n=[]){return Ve(e,this.getScopeData()),me([...n,...fe(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:te();if(!this._client)return b.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:te();if(!this._client)return b.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:te();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(b.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function Xe(){return{traceId:te(),spanId:te().substring(16)}}const Ze="7.119.1",Qe=parseFloat(Ze),et=100;class tt{constructor(e,t,n,r=Qe){let o,i;this._version=r,t?o=t:(o=new Je,o.setClient(e)),n?i=n:(i=new Je,i.setClient(e)),this._stack=[{scope:o}],e&&this.bindClient(e),this._isolationScope=i}isOlderThan(e){return this._version(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:te(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:te(),o=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:te();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=et}=r.getOptions&&r.getOptions()||{};if(i<=0)return;const s={timestamp:ye(),...e},a=o?_((()=>o(s,t))):s;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,t),n.addBreadcrumb(a,i))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=rt(this);try{e(this)}finally{rt(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return ce&&b.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return ce&&!n&&(this.getClient()?b.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):b.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&xe(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:o=ge}=n&&n.getOptions()||{},{userAgent:i}=h.navigator||{},s=we({release:r,environment:o,user:t.getUser(),...i&&{userAgent:i},...e}),a=t.getSession&&t.getSession();return a&&"ok"===a.status&&ke(a,{status:"exited"}),this.endSession(),t.setSession(s),s}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=nt().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);ce&&b.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function nt(){return h.__SENTRY__=h.__SENTRY__||{extensions:{},hub:void 0},h}function rt(e){const t=nt(),n=at(t);return ct(t,e),n}function ot(){const e=nt();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=nt()){return t=e,!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)&&!at(e).isOlderThan(Qe)||ct(e,new tt),at(e);var t}(e)}function it(){return ot().getIsolationScope()}function st(e,t={}){const n=nt();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function at(e){return g("hub",(()=>new tt),e)}function ct(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}const ut=50,lt=/\(error: (.*)\)/,dt=/captureMessage|captureException/;function pt(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const r=[],o=e.split("\n");for(let e=n;e1024)continue;const i=lt.test(n)?n.replace(lt,"$1"):n;if(!i.match(/\S*Error: /)){for(const e of t){const t=e(i);if(t){r.push(t);break}}if(r.length>=ut)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),dt.test(t[t.length-1].function||"")&&(t.pop(),dt.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,ut).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(r)}}const ft="";function ht(e){try{return e&&"function"==typeof e&&e.name||ft}catch(e){return ft}}function mt(e,t=100,n=1/0){try{return vt("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function gt(e,t=3,n=102400){const r=mt(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?gt(e,t-1,n):r;var o}function vt(e,t,r=1/0,o=1/0,i=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e=o){d[e]="[MaxProperties ~]";break}const t=f[e];d[e]=vt(e,t,u-1,o,i),p++}return a(t),d}function yt(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||te(),timestamp:t.timestamp||ye()},u=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:ge),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=U(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=U(s.value,i));const a=e.request;a&&a.url&&(a.url=U(a.url,i))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,u),void 0===t.type&&function(e,t){const n=h._sentryDebugIds;if(!n)return;let r;const o=_t.get(t);o?r=o:(r=new Map,_t.set(t,r));const i=Object.keys(n).reduce(((e,o)=>{let i;const s=r.get(o);s?i=s:(i=t(o),r.set(o,i));for(let t=i.length-1;t>=0;t--){const r=i[t];if(r.filename){e[r.filename]=n[o];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=i[e.filename])}))}))}catch(e){}}(c,e.stackParser);const l=function(e,t){if(!t)return e;const n=e?e.clone():new Je;return n.update(t),n}(r,n.captureContext);n.mechanism&&ie(c,n.mechanism);const d=o&&o.getEventProcessors?o.getEventProcessors():[],p=(Ye||(Ye=new Je),Ye).getScopeData();i&&Ge(p,i.getScopeData()),l&&Ge(p,l.getScopeData());const f=[...n.attachments||[],...p.attachments];return f.length&&(n.attachments=f),Ve(c,p),me([...d,...fe(),...p.eventProcessors],c,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:mt(e.data,t,n)}})))},...e.user&&{user:mt(e.user,t,n)},...e.contexts&&{contexts:mt(e.contexts,t,n)},...e.extra&&{extra:mt(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=mt(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>{const r=Ue(e).data;return r&&(e.data=mt(r,t,n)),e}))),r}(e,s,a):e)))}const _t=new WeakMap;const bt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function St(e,t){return ot().captureException(e,function(e){if(e)return function(e){return e instanceof Je||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>bt.includes(e)))}(e)?{captureContext:e}:e}(t))}function wt(e,t){const n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return ot().captureMessage(e,n,r)}function kt(e,t){return ot().captureEvent(e,t)}function xt(e){ot().configureScope(e)}function Et(e,t){ot().addBreadcrumb(e,t)}function Tt(e,t){ot().setContext(e,t)}function Ct(e){ot().setExtras(e)}function It(e,t){ot().setExtra(e,t)}function Ot(e){ot().setTags(e)}function At(e,t){ot().setTag(e,t)}function Rt(e){ot().setUser(e)}function Mt(...e){const t=ot();if(2===e.length){const[n,r]=e;return n?t.withScope((()=>(t.getStackTop().scope=n,r(n)))):t.withScope(r)}return t.withScope(e[0])}function Pt(e){return st((()=>e(it())))}function jt(e,t){return Mt((n=>(n.setSpan(e),t(n))))}function Dt(e,t){return ot().startTransaction({...e},t)}async function Nt(e){const t=Ft();return t?t.flush(e):(ce&&b.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function Lt(e){const t=Ft();return t?t.close(e):(ce&&b.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function zt(){return ot().lastEventId()}function Ft(){return ot().getClient()}function $t(){return!!Ft()}function Bt(){return ot().getScope()}function Ut(e){const t=Ft(),n=it(),r=Bt(),{release:o,environment:i=ge}=t&&t.getOptions()||{},{userAgent:s}=h.navigator||{},a=we({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&"ok"===c.status&&ke(c,{status:"exited"}),qt(),n.setSession(a),r.setSession(a),a}function qt(){const e=it(),t=Bt(),n=t.getSession()||e.getSession();n&&xe(n),Ht(),e.setSession(),t.setSession()}function Ht(){const e=it(),t=Bt(),n=Ft(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Wt(e=!1){e?qt():Ht()}const Vt=[];function Gt(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?ae(n(t)):t;const o=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(r),i=function(e){for(let t=0;tn(t,r,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}ce&&b.log(`Integration installed: ${t.name}`)}}function Jt(e){const t=Ft();t&&t.addIntegration?t.addIntegration(e):ce&&b.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function Xt(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}const Zt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Qt=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],en="InboundFilters",tn=(e={})=>({name:en,setupOnce(){},processEvent(t,n,r){const o=r.getOptions(),i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Zt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Qt],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,o);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(ce&&b.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${re(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];let n;e.message&&t.push(e.message);try{n=e.exception.values[e.exception.values.length-1]}catch(e){}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),ce&&0===t.length&&b.error(`Could not extract message for event ${re(e)}`),t}(e).some((e=>W(e,t)))}(e,t.ignoreErrors)?(ce&&b.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${re(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&W(n,t)}(e,t.ignoreTransactions)?(ce&&b.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${re(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=rn(e);return!!n&&W(n,t)}(e,t.denyUrls)?(ce&&b.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${re(e)}.\nUrl: ${rn(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=rn(e);return!n||W(n,t)}(e,t.allowUrls)&&(ce&&b.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${re(e)}.\nUrl: ${rn(e)}`),!0)}(t,i)?null:t}}),nn=Xt(en,tn);function rn(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return ce&&b.error(`Cannot extract url for event ${re(e)}`),null}}let on;const sn="FunctionToString",an=new WeakMap,cn=()=>({name:sn,setupOnce(){on=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Y(this),n=an.has(Ft())&&void 0!==t?t:this;return on.apply(n,e)}}catch(e){}},setup(e){an.set(e,!0)}}),un=Xt(sn,cn);function ln(e){const t=ot().getStackTop();t.client=e,t.scope.setClient(e)}const dn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function pn(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function fn(e){const t=dn.exec(e);if(!t)return void _((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,o="",i,s="",a]=t.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const e=u.match(/^\d+/);e&&(u=e[0])}return hn({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function hn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function mn(e){const t="string"==typeof e?fn(e):hn(e);if(t&&function(e){if(!p)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(b.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(b.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(b.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(b.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}const gn="7";function vn(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function yn(e,t={}){const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${vn(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:gn,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,r)}`}const _n=m();function bn(){if(!("fetch"in _n))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Sn(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function wn(){if("string"==typeof EdgeRuntime)return!0;if(!bn())return!1;if(Sn(_n.fetch))return!0;let e=!1;const t=_n.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Sn(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){p&&b.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}const kn=m(),xn={},En={};function Tn(e,t){xn[e]=xn[e]||[],xn[e].push(t)}function Cn(e,t){En[e]||(t(),En[e]=!0)}function In(e,t){const n=e&&xn[e];if(n)for(const r of n)try{r(t)}catch(t){p&&b.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ht(r)}\nError:`,t)}}const On=h;let An;function Rn(e){const t="history";Tn(t,e),Cn(t,Mn)}function Mn(){if(!function(){const e=kn.chrome,t=e&&e.app&&e.app.runtime,n="history"in kn&&!!kn.history.pushState&&!!kn.history.replaceState;return!t&&n}())return;const e=On.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=An,t=String(n);An=t,In("history",{from:e,to:t})}return e.apply(this,t)}}On.onpopstate=function(...t){const n=On.location.href,r=An;if(An=n,In("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},V(On.history,"pushState",t),V(On.history,"replaceState",t)}function Pn(e,t=[]){return[e,t]}function jn(e,t){const[n,r]=e;return[n,[...r,t]]}function Dn(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function Nn(e,t){return(t||new TextEncoder).encode(e)}function Ln(e,t){const[n,r]=e;let o=JSON.stringify(n);function i(e){"string"==typeof o?o="string"==typeof e?o+e:[Nn(o,t),e]:o.push("string"==typeof e?Nn(e,t):e)}for(const e of r){const[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(mt(n))}i(e)}}return"string"==typeof o?o:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(o)}function zn(e,t){const n="string"==typeof e.data?Nn(e.data,t):e.data;return[Q({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Fn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function $n(e){return Fn[e]}function Bn(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Un(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:pn(r)},...o&&{trace:Q({...o})}}}class qn extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Hn(e,t,n,r){const o=Bn(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const s=Un(e,o,r,t);return delete e.sdkProcessingMetadata,Pn(s,[[{type:i},e]])}function Wn(e){return e.replace(/[^\w\-./]+/gi,"")}const Vn=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Gn(e){return[...e].reduce(((e,t)=>e+function(e){for(const[t,n]of Vn)if(e===t)return n;return e}(t)),"")}const Kn="Not capturing exception because it's already been captured.";class Yn{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=mn(e.dsn):ce&&b.warn("No DSN provided, client will not send events."),this._dsn){const t=yn(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(se(e))return void(ce&&b.log(Kn));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let o=n&&n.event_id;const i=C(e)?e:String(e),s=I(e)?this.eventFromMessage(i,t,n):this.eventFromException(e,n);return this._process(s.then((e=>this._captureEvent(e,n,r))).then((e=>{o=e}))),o}captureEvent(e,t,n){if(t&&t.originalException&&se(t.originalException))return void(ce&&b.log(Kn));let r=t&&t.event_id;const o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,o||n).then((e=>{r=e}))),r}captureSession(e){"string"!=typeof e.release?ce&&b.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),ke(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):le(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return ce&&b.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];Yt(this,e,this._integrations),t||Kt(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=Hn(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=jn(n,zn(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const o=Bn(n);return Pn({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:pn(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,o=`${e}:${t}`;ce&&b.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}captureAggregateMetrics(e){ce&&b.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=function(e,t,n,r){const o={sent_at:(new Date).toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=pn(t));const i=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return Pn(o,[i])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&Yt(e,t,n)})),n}(this,e),Kt(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(ke(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new pe((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=it()){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),yt(o,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if((!e.contexts||!e.contexts.trace)&&t){const{traceId:r,spanId:o,parentSpanId:i,dsc:s}=t;e.contexts={trace:{trace_id:r,span_id:o,parent_span_id:i},...e.contexts};const a=s||He(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(ce){const t=e;"log"===t.logLevel?b.log(t.message):b.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,i=Xn(e),s=Jn(e),a=e.type||"error",c=`before send for type \`${a}\``;if(s&&"number"==typeof o&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),de(new qn(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const u="replay_event"===a?"replay":a,l=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,l).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new qn("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;if(Jn(t)&&r)return r(t,n);if(Xn(t)&&o){if(t.spans){const e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(t,n)}return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(R(e))return e.then((e=>{if(!O(e)&&null!==e)throw new qn(n);return e}),(e=>{throw new qn(`${t} rejected with ${e}`)}));if(!O(e)&&null!==e)throw new qn(n);return e}(o,c)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",u,e),i){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new qn(`${c} returned \`null\`, will not send event.`,"log")}const o=n&&n.getSession();if(!i&&o&&this._updateSessionFromEvent(o,r),i){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const s=r.transaction_info;if(i&&s&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...s,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof qn)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new qn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{ce&&b.error("Error while sending event:",e)}));ce&&b.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function Jn(e){return void 0===e.type}function Xn(e){return"transaction"===e.type}function Zn(e){const t=Ft();t&&t.addEventProcessor&&t.addEventProcessor(e)}var Qn=n(8341);const er="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function tr(e,t){const n=rr(e,t),r={type:t&&t.name,value:ir(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function nr(e,t){return{exception:{values:[tr(e,t)]}}}function rr(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(or.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const or=/Minified React error #\d+;/i;function ir(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function sr(e,t,n,r){const o=cr(e,t,n&&n.syntheticException||void 0,r);return ie(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),le(o)}function ar(e,t,n="info",r,o){const i=ur(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),le(i)}function cr(e,t,n,r,o){let i;if(x(t)&&t.error)return nr(e,t.error);if(E(t)||k(t,"DOMException")){const o=t;if("stack"in t)i=nr(e,t);else{const t=o.name||(E(o)?"DOMError":"DOMException"),s=o.message?`${t}: ${o.message}`:t;i=ur(e,s,n,r),oe(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return w(t)?nr(e,t):O(t)||A(t)?(i=function(e,t,n,r){const o=Ft(),i=o&&o.getOptions().normalizeDepth,s={exception:{values:[{type:A(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:lr(t,{isUnhandledRejection:r})}]},extra:{__serialized__:gt(t,i)}};if(n){const t=rr(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}(e,t,n,o),ie(i,{synthetic:!0}),i):(i=ur(e,t,n,r),oe(i,`${t}`,void 0),ie(i,{synthetic:!0}),i)}function ur(e,t,n,r){const o={};if(r&&n){const r=rr(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(C(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function lr(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(J(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return U(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:U(r,t)}return""}(e),r=t?"promise rejection":"exception";return x(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:A(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}const dr=h;let pr=0;function fr(){return pr>0}function hr(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(Y(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const o=r.map((e=>hr(e,t)));return e.apply(this,o)}catch(e){throw pr++,setTimeout((()=>{pr--})),Mt((n=>{n.addEventProcessor((e=>(t.mechanism&&(oe(e,void 0,void 0),ie(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),St(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}K(r,e),G(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}function mr(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:pn(r)}},i=function(e){return[{type:"user_report"},e]}(e);return Pn(o,[i])}class gr extends Yn{constructor(e){!function(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:Ze}))),version:Ze}),e._metadata=o}(e,"browser",["browser"],dr.SENTRY_SDK_SOURCE||(0,Qn.e)()),super(e),e.sendClientReports&&dr.document&&dr.document.addEventListener("visibilitychange",(()=>{"hidden"===dr.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return sr(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return ar(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(er&&b.warn("SDK not enabled, will not capture user feedback."));const t=mr(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(er&&b.log("No outcomes to send"));if(!this._dsn)return void(er&&b.log("No dsn provided, will not send outcomes"));er&&b.log("Sending outcomes:",e);const t=function(e,t){return Pn(t?{dsn:t}:{},[[{type:"client_report"},{timestamp:ye(),discarded_events:e}]])}(e,this._options.tunnel&&pn(this._dsn));this._sendEnvelope(t)}}function vr(e){const t="console";Tn(t,e),Cn(t,yr)}function yr(){"console"in h&&v.forEach((function(e){e in h.console&&V(h.console,e,(function(t){return y[e]=t,function(...t){In("console",{args:t,level:e});const n=y[e];n&&n.apply(h.console,t)}}))}))}const _r=h,br=1e3;let Sr,wr,kr;function xr(e){Tn("dom",e),Cn("dom",Er)}function Er(){if(!_r.document)return;const e=In.bind(null,"dom"),t=Tr(e,!0);_r.document.addEventListener("click",t,!1),_r.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=_r[t]&&_r[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(V(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this,i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},s=i[n]=i[n]||{refCount:0};if(!s.handler){const r=Tr(e);s.handler=r,t.call(this,n,r,o)}s.refCount++}catch(e){}return t.call(this,n,r,o)}})),V(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,o=n.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function Tr(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;G(n,"_sentryCaptured",!0),r&&!r._sentryId&&G(r,"_sentryId",te());const o="keypress"===n.type?"input":n.type;(function(e){if(e.type!==wr)return!1;try{if(!e.target||e.target._sentryId!==kr)return!1}catch(e){}return!0})(n)||(e({event:n,name:o,global:t}),wr=n.type,kr=r?r._sentryId:void 0),clearTimeout(Sr),Sr=_r.setTimeout((()=>{kr=void 0,wr=void 0}),br)}}const Cr=h,Ir="__sentry_xhr_v3__";function Or(e){Tn("xhr",e),Cn("xhr",Ar)}function Ar(){if(!Cr.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;V(e,"open",(function(e){return function(...t){const n=Date.now(),r=T(t[0])?t[0].toUpperCase():void 0,o=function(e){if(T(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!r||!o)return e.apply(this,t);this[Ir]={method:r,url:o,request_headers:{}},"POST"===r&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const e=this[Ir];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}In("xhr",{args:[r,o],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?V(this,"onreadystatechange",(function(e){return function(...t){return i(),e.apply(this,t)}})):this.addEventListener("readystatechange",i),V(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,o=this[Ir];return o&&T(n)&&T(r)&&(o.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),V(e,"send",(function(e){return function(...t){const n=this[Ir];return n?(void 0!==t[0]&&(n.body=t[0]),In("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)):e.apply(this,t)}}))}function Rr(e){const t="fetch";Tn(t,e),Cn(t,Mr)}function Mr(){wn()&&V(h,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:jr(t),method:Pr(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:jr(t),method:Pr(t,"method")?String(t.method).toUpperCase():"GET"}}(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return In("fetch",{...o}),e.apply(h,t).then((e=>(In("fetch",{...o,endTimestamp:Date.now(),response:e}),e)),(e=>{throw In("fetch",{...o,endTimestamp:Date.now(),error:e}),e}))}}))}function Pr(e,t){return!!e&&"object"==typeof e&&!!e[t]}function jr(e){return"string"==typeof e?e:e?Pr(e,"url")?e.url:e.toString?e.toString():"":""}const Dr=["fatal","error","warning","log","info","debug"];function Nr(e){return"warn"===e?"warning":Dr.includes(e)?e:"log"}function Lr(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const zr="Breadcrumbs",Fr=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:zr,setupOnce(){},setup(e){t.console&&vr(function(e){return function(t){if(Ft()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:Nr(t.level),message:H(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${H(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Et(n,{input:t.args,level:t.level})}}(e)),t.dom&&xr(function(e,t){return function(n){if(Ft()!==e)return;let r,o,i="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>1024&&(er&&b.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof i&&(i=[i]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=L(t,{keyAttrs:i,maxStringLength:s}),o=B(t)}catch(e){r=""}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};o&&(a.data={"ui.component_name":o}),Et(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&Or(function(e){return function(t){if(Ft()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[Ir];if(!n||!r||!o)return;const{method:i,url:s,status_code:a,body:c}=o;Et({category:"xhr",data:{method:i,url:s,status_code:a},type:"http"},{xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r})}}(e)),t.fetch&&Rr(function(e){return function(t){if(Ft()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)Et({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{const e=t.response;Et({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}(e)),t.history&&Rn(function(e){return function(t){if(Ft()!==e)return;let n=t.from,r=t.to;const o=Lr(dr.location.href);let i=n?Lr(n):void 0;const s=Lr(r);i&&i.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),Et({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){Ft()===e&&Et({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:re(t)},{event:t})}}(e))}}},$r=Xt(zr,Fr),Br="Dedupe",Ur=()=>{let e;return{name:Br,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Wr(e,t)&&!!Hr(e,t))))}(e,t)||!!function(e,t){const n=Vr(t),r=Vr(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Wr(e,t)&&!!Hr(e,t)))}(e,t))}(t,e))return er&&b.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}},qr=Xt(Br,Ur);function Hr(e,t){let n=Gr(e),r=Gr(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:eo,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){Yr((t=>{const{stackParser:n,attachStacktrace:r}=io();if(Ft()!==e||fr())return;const{msg:o,url:i,line:s,column:a,error:c}=t,u=void 0===c&&T(o)?function(e,t,n,r){let o=x(e)?e.message:e,i="Error";const s=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(i=s[1],o=s[2]);return ro({exception:{values:[{type:i,value:o}]}},t,n,r)}(o,i,s,a):ro(cr(n,c||o,void 0,r,!1),i,s,a);u.level="error",kt(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(e),oo("onerror")),t.onunhandledrejection&&(function(e){Zr((t=>{const{stackParser:n,attachStacktrace:r}=io();if(Ft()!==e||fr())return;const o=function(e){if(I(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),i=I(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:cr(n,o,void 0,r,!0);i.level="error",kt(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),oo("onunhandledrejection"))}}},no=Xt(eo,to);function ro(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=T(t)&&t.length>0?t:F();return 0===c.length&&c.push({colno:u,filename:d,function:"?",in_app:!0,lineno:l}),e}function oo(e){er&&b.log(`Global Handler attached: ${e}`)}function io(){const e=Ft();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const so="HttpContext",ao=()=>({name:so,setupOnce(){},preprocessEvent(e){if(!dr.navigator&&!dr.location&&!dr.document)return;const t=e.request&&e.request.url||dr.location&&dr.location.href,{referrer:n}=dr.document||{},{userAgent:r}=dr.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}}),co=Xt(so,ao);function uo(e,t,n=250,r,o,i,s){if(!(i.exception&&i.exception.values&&s&&P(s.originalException,Error)))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var c,u;a&&(i.exception.values=(c=lo(e,t,o,s.originalException,r,i.exception.values,a,0),u=n,c.map((e=>(e.value&&(e.value=U(e.value,u)),e)))))}function lo(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(P(r[o],Error)){po(s,a);const i=e(t,r[o]),u=c.length;fo(i,o,u,a),c=lo(e,t,n,r[o],o,[i,...c],i,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if(P(r,Error)){po(s,a);const u=e(t,r),l=c.length;fo(u,`errors[${i}]`,l,a),c=lo(e,t,n,r,o,[u,...c],u,l)}})),c}function po(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function fo(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const ho="LinkedErrors",mo=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:ho,setupOnce(){},preprocessEvent(e,r,o){const i=o.getOptions();uo(tr,i.stackParser,i.maxValueLength,n,t,e,r)}}},go=Xt(ho,mo),vo=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],yo="TryCatch",_o=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:yo,setupOnce(){t.setTimeout&&V(dr,"setTimeout",So),t.setInterval&&V(dr,"setInterval",So),t.requestAnimationFrame&&V(dr,"requestAnimationFrame",wo),t.XMLHttpRequest&&"XMLHttpRequest"in dr&&V(XMLHttpRequest.prototype,"send",ko);const e=t.eventTarget;e&&(Array.isArray(e)?e:vo).forEach(xo)}}},bo=Xt(yo,_o);function So(e){return function(...t){const n=t[0];return t[0]=hr(n,{mechanism:{data:{function:ht(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function wo(e){return function(t){return e.apply(this,[hr(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ht(e)},handled:!1,type:"instrument"}})])}}function ko(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&V(n,e,(function(t){const n={mechanism:{data:{function:e,handler:ht(t)},handled:!1,type:"instrument"}},r=Y(t);return r&&(n.mechanism.data.handler=ht(r)),hr(t,n)}))})),e.apply(this,t)}}function xo(e){const t=dr,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(V(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=hr(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ht(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,hr(r,{mechanism:{data:{function:"addEventListener",handler:ht(r),target:e},handled:!1,type:"instrument"}}),o])}})),V(n,"removeEventListener",(function(e){return function(t,n,r){const o=n;try{const n=o&&o.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,o,r)}})))}const Eo="?";function To(e,t,n,r){const o={filename:e,function:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const Co=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Io=/\((\S*)(?::(\d+))(?::(\d+))\)/,Oo=[30,e=>{const t=Co.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Io.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Bo(t[1]||Eo,t[2]);return To(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],Ao=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ro=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Mo=[50,e=>{const t=Ao.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Ro.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Eo;return[n,e]=Bo(n,e),To(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Po=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,jo=[40,e=>{const t=Po.exec(e);return t?To(t[2],t[1]||Eo,+t[3],t[4]?+t[4]:void 0):void 0}],Do=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,No=[10,e=>{const t=Do.exec(e);return t?To(t[2],t[3]||Eo,+t[1]):void 0}],Lo=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,zo=[20,e=>{const t=Lo.exec(e);return t?To(t[5],t[3]||t[4]||Eo,+t[1],+t[2]):void 0}],Fo=[Oo,Mo,jo],$o=pt(...Fo),Bo=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Eo,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};const Uo=6e4;function qo(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?Uo:r-t}function Ho(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function Wo(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n,,,i]=e.split(":",5),s=parseInt(t,10),a=1e3*(isNaN(s)?60:s);if(n)for(const e of n.split(";"))"metric_bucket"===e&&i&&!i.split(";").includes("custom")||(o[e]=r+a);else o.all=r+a}else s?o.all=r+qo(s,r):429===t&&(o.all=r+6e4);return o}const Vo=30;function Go(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new pe(((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{le(e).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}(e.bufferSize||Vo)){let r={};function o(o){const i=[];if(Dn(o,((t,n)=>{const o=$n(n);if(Ho(r,o)){const r=Ko(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else i.push(t)})),0===i.length)return le();const s=Pn(o[0],i),a=t=>{Dn(s,((n,r)=>{const o=Ko(n,r);e.recordDroppedEvent(t,$n(r),o)}))};return n.add((()=>t({body:Ln(s,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&ce&&b.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Wo(r,e),e)),(e=>{throw a("network_error"),e})))).then((e=>e),(e=>{if(e instanceof qn)return ce&&b.error("Skipped sending event because buffer is full."),a("queue_overflow"),le();throw e}))}return o.__sentry__baseTransport__=!0,{send:o,flush:e=>n.drain(e)}}function Ko(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let Yo;function Jo(e,t=function(){if(Yo)return Yo;if(Sn(dr.fetch))return Yo=dr.fetch.bind(dr);const e=dr.document;let t=dr.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){er&&b.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Yo=t.bind(dr)}()){let n=0,r=0;return Go(e,(function(o){const i=o.body.length;n+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,s).then((e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return Yo=void 0,n-=i,r--,de(e)}}))}const Xo=4;function Zo(e){return Go(e,(function(t){return new pe(((n,r)=>{const o=new XMLHttpRequest;o.onerror=r,o.onreadystatechange=()=>{o.readyState===Xo&&n({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&o.setRequestHeader(t,e.headers[t]);o.send(t.body)}))}))}const Qo=[tn(),cn(),_o(),Fr(),to(),mo(),Ur(),ao()];function ei(e){return[...Qo]}function ti(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=ei()),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),dr.SENTRY_RELEASE&&dr.SENTRY_RELEASE.id&&(e.release=dr.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||$o,Array.isArray(n)?pt(...n):n),integrations:Gt(e),transport:e.transport||(bn()?Jo:Zo)};var n;!function(e,t){!0===t.debug&&(ce?b.enable():_((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),Bt().update(t.initialScope);const n=new e(t);ln(n),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(n)}(gr,t),e.autoSessionTracking&&(void 0!==dr.document?(Ut({ignoreDuration:!0}),Wt(),Rn((({from:e,to:t})=>{void 0!==e&&e!==t&&(Ut({ignoreDuration:!0}),Wt())}))):er&&b.warn("Session tracking in non-browser environment with @sentry/browser is not supported."))}const ni=(e={},t=ot())=>{if(!dr.document)return void(er&&b.error("Global document not defined in showReportDialog call"));const{client:n,scope:r}=t.getStackTop(),o=e.dsn||n&&n.getDsn();if(!o)return void(er&&b.error("DSN not configured for showReportDialog call"));r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const i=dr.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=function(e,t){const n=mn(e);if(!n)return"";const r=`${vn(n)}embed/error-page/`;let o=`dsn=${pn(n)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${o}`}(o,e),e.onLoad&&(i.onload=e.onLoad);const{onClose:s}=e;if(s){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{s()}finally{dr.removeEventListener("message",e)}};dr.addEventListener("message",e)}const a=dr.document.head||dr.document.body;a?a.appendChild(i):er&&b.error("Not injecting report dialog. No injection point found in HTML")};function ri(){}function oi(e){e()}function ii(e){return hr(e)()}function si(e){const t=Ft();t&&t.captureUserFeedback(e)}function ai(e,t){const n={type:t.name||t.constructor.name,value:t.message},r=function(e,t){return e(t.stack||"",1)}(e,t);return r.length&&(n.stacktrace={frames:r}),n}const ci="LinkedErrors",ui=Xt(ci,((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:ci,setupOnce(){},preprocessEvent(e,r,o){const i=o.getOptions();uo(ai,i.stackParser,i.maxValueLength,n,t,e,r)}}})),li=e,di=new Map,pi=new Set;function fi(e,t){return function(e){if(h._sentryModuleMetadata)for(const t of Object.keys(h._sentryModuleMetadata)){const n=h._sentryModuleMetadata[t];if(pi.has(t))continue;pi.add(t);const r=e(t);for(const e of r.reverse())if(e.filename){di.set(e.filename,n);break}}}(e),di.get(t)}const hi="ModuleMetadata",mi=()=>({name:hi,setupOnce(){},setup(e){"function"==typeof e.on&&e.on("beforeEnvelope",(e=>{Dn(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(function(e){try{e.exception.values.forEach((e=>{if(e.stacktrace)for(const t of e.stacktrace.frames||[])delete t.module_metadata}))}catch(e){}}(t),e[1]=t)}}))}))},processEvent:(e,t,n)=>(function(e,t){try{t.exception.values.forEach((t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[]){if(!n.filename)continue;const t=fi(e,n.filename);t&&(n.module_metadata=t)}}))}catch(e){}}(n.getOptions().stackParser,e),e)}),gi=Xt(hi,mi),vi="sentry.source",yi="sentry.sample_rate",_i="sentry.op",bi="sentry.origin";function Si(e){return(e||ot()).getScope().getTransaction()}const wi=je;let ki=!1;function xi(){const e=Si();if(e){const t="internal_error";ce&&b.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}function Ei(e,t,n=()=>{}){let r;try{r=e()}catch(e){throw t(e),n(),e}return function(e,t,n){return R(e)?e.then((e=>(n(),e)),(e=>{throw t(e),n(),e})):(n(),e)}(r,t,n)}function Ti(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Ft(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Ci(e,t,n=()=>{},r=()=>{}){const o=ot(),i=Bt(),s=i.getSpan(),a=ji(e),c=Pi(o,{parentSpan:s,spanContext:a,forceTransaction:!1,scope:i});return i.setSpan(c),Ei((()=>t(c)),(e=>{c&&c.setStatus("internal_error"),n(e,c)}),(()=>{c&&c.end(),i.setSpan(s),r()}))}function Ii(e,t){const n=ji(e);return st((()=>Mt(e.scope,(r=>{const o=ot(),i=r.getSpan(),s=e.onlyIfParent&&!i?void 0:Pi(o,{parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r});return Ei((()=>t(s)),(()=>{if(s){const{status:e}=Ue(s);e&&"ok"!==e||s.setStatus("internal_error")}}),(()=>s&&s.end()))}))))}function Oi(e,t){const n=ji(e);return st((()=>Mt(e.scope,(r=>{const o=ot(),i=r.getSpan(),s=e.onlyIfParent&&!i?void 0:Pi(o,{parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r});function a(){s&&s.end()}return Ei((()=>t(s,a)),(()=>{if(s&&s.isRecording()){const{status:e}=Ue(s);e&&"ok"!==e||s.setStatus("internal_error")}}))}))))}function Ai(e){if(!Ti())return;const t=ji(e),n=ot(),r=e.scope?e.scope.getSpan():Ri();if(e.onlyIfParent&&!r)return;const o=(e.scope||Bt()).clone();return Pi(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:o})}function Ri(){return Bt().getSpan()}xi.tag="sentry_tracingErrorCallback";const Mi=({sentryTrace:e,baggage:t},n)=>{const r=Bt(),{traceparentData:o,dynamicSamplingContext:i,propagationContext:s}=function(e,t){const n=je(e),r=Ae(t),{traceId:o,parentSpanId:i,parentSampled:s}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:o||te(),parentSpanId:i||te().substring(16),spanId:te().substring(16),sampled:s,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:o||te(),spanId:te().substring(16)}}}(e,t);r.setPropagationContext(s),ce&&o&&b.log(`[Tracing] Continuing trace ${o.traceId}.`);const a={...o,metadata:Q({dynamicSamplingContext:i})};return n?st((()=>n(a))):a};function Pi(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:o}){if(!Ti())return;const i=it();let s;if(t&&!r)s=t.startChild(n);else if(t){const r=We(t),{traceId:o,spanId:i}=t.spanContext(),a=qe(t);s=e.startTransaction({traceId:o,parentSpanId:i,parentSampled:a,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{const{traceId:t,dsc:r,parentSpanId:a,sampled:c}={...i.getPropagationContext(),...o.getPropagationContext()};s=e.startTransaction({traceId:t,parentSpanId:a,parentSampled:c,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return o.setSpan(s),function(e,t,n){e&&(G(e,Ni,n),G(e,Di,t))}(s,o,i),s}function ji(e){if(e.startTime){const t={...e};return t.startTimestamp=$e(e.startTime),delete t.startTime,t}return e}const Di="_sentryScope",Ni="_sentryIsolationScope";let Li;function zi(e){return Li?Li.get(e):void 0}function Fi(e){const t=zi(e);if(!t)return;const n={};for(const[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push(Q(r));return n}var $i;function Bi(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}!function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}($i||($i={}));const Ui=Bi;function qi(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=Bi(t);"unknown_error"!==n&&e.setStatus(n)}class Hi{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class Wi{constructor(e={}){this._traceId=e.traceId||te(),this._spanId=e.spanId||te().substring(16),this._startTime=e.startTimestamp||_e(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[bi]:e.origin||"manual",[_i]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),void 0!==e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[_i]}set op(e){this.setAttribute(_i,e)}get origin(){return this._attributes[bi]}set origin(e){this.setAttribute(bi,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?Le:0}}startChild(e){const t=new Wi({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const n=Ee(this);if(t.transaction=n,ce&&n){const r=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${Ue(t).description||"< unknown name >"}' (${n.spanContext().spanId}).`;b.log(r),this._logMessage=r}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}setStatus(e){return this._status=e,this}setHttpStatus(e){return qi(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=Ee(this);if(ce&&t&&t.spanContext().spanId!==this._spanId){const e=this._logMessage;e&&b.log(e.replace("Starting","Finishing"))}this._endTime=$e(e)}toTraceparent(){return Fe(this)}toContext(){return Q({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return ze(this)}getSpanJSON(){return Q({data:this._getData(),description:this._name,op:this._attributes[_i],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[bi],_metrics_summary:Fi(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,n=Object.keys(e).length>0,r=Object.keys(t).length>0;if(n||r)return n&&r?{...e,...t}:n?e:t}}class Vi extends Wi{constructor(e,t){super(e),this._contexts={},this._hub=t||ot(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[vi]&&{source:this._attributes[vi]},...this._attributes[yi]&&{sampleRate:this._attributes[yi]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(vi,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new Hi(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=$e(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){return Q({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return We(this)}setHub(e){this._hub=e}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(ce&&b.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return ce&&b.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&Ue(e).timestamp)):[];if(this._trimEnd&&n.length>0){const e=n.map((e=>Ue(e).timestamp)).filter(Boolean);this._endTime=e.reduce(((e,t)=>e>t?e:t))}const{scope:r,isolationScope:o}={scope:this[Di],isolationScope:this[Ni]};const{metadata:i}=this,{source:s}=i,a={contexts:{...this._contexts,trace:ze(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...i,capturedSpanScope:r,capturedSpanIsolationScope:o,...Q({dynamicSamplingContext:We(this)})},_metrics_summary:Fi(this),...s&&{transaction_info:{source:s}}};return Object.keys(this._measurements).length>0&&(ce&&b.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),a.measurements=this._measurements),ce&&b.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),a}}const Gi={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Ki=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Yi extends Hi{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),void 0===Ue(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class Ji extends Vi{constructor(e,t,n=Gi.idleTimeout,r=Gi.finalTimeout,o=Gi.heartbeatInterval,i=!1,s=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=o,this._onScope=i,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Ki[4],this._autoFinishAllowed=!s,i&&(ce&&b.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),s||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Ki[3],this.end())}),this._finalTimeout)}end(e){const t=$e(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){ce&&b.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;Ue(e).timestamp||(e.setStatus("cancelled"),e.end(t),ce&&b.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const{start_timestamp:n,timestamp:r}=Ue(e),o=n&&n{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new Yi(t,n,this.spanContext().spanId,e),ce&&b.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Ki[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(ce&&b.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=Ki[1],this.end(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),ce&&b.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,ce&&b.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(ce&&b.log(`[Tracing] popActivity ${e}`),delete this.activities[e],ce&&b.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=_e();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Ki[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(ce&&b.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Ki[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){ce&&b.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function Xi(e,t,n){if(!Ti(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setAttribute(yi,Number(e.sampled)),e;let r;return"function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setAttribute(yi,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==t.tracesSampleRate?(r=t.tracesSampleRate,e.setAttribute(yi,Number(r))):(r=1,e.setAttribute(yi,r)),Zi(r)?r?(e.sampled=Math.random()1)||(ce&&b.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1)}function Qi(){const e=this.getScope().getSpan();return e?{"sentry-trace":Fe(e)}:{}}function es(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},o=r.instrumenter||"sentry",i=e.instrumenter||"sentry";o!==i&&(ce&&b.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${o}\` instrumenter.\nThe transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),e.sampled=!1);let s=new Vi(e,this);return s=Xi(s,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function ts(e,t,n,r,o,i,s,a=!1){const c=e.getClient(),u=c&&c.getOptions()||{};let l=new Ji(t,e,n,r,s,o,a);return l=Xi(l,u,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...i}),l.isRecording()&&l.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",l),l}function ns(){const e=nt();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=es),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=Qi),ki||(ki=!0,Yr(xi),Zr(xi)))}function rs(e,t){let n;return Dn(e,((e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n))),n}function os(e,t){return n=>{const r=e(n),o=new Map;function i(t,r){const i=r?`${t}:${r}`:t;let s=o.get(i);if(!s){const a=fn(t);if(!a)return;const c=yn(a,n.tunnel);s=r?function(e,t){return n=>{const r=e(n);return{...r,send:async e=>{const n=rs(e,["event","transaction","profile","replay_event"]);return n&&(n.release=t),r.send(e)}}}}(e,r)({...n,url:c}):e({...n,url:c}),o.set(i,s)}return[t,s]}return{send:async function(e){const n=t({envelope:e,getEvent:function(t){const n=t&&t.length?t:["event"];return rs(e,n)}}).map((e=>"string"==typeof e?i(e,void 0):i(e.dsn,e.release))).filter((e=>!!e));0===n.length&&n.push(["",r]);const o=await Promise.all(n.map((([t,n])=>n.send(function(e,t){return Pn(t?{...e[0],dsn:t}:e[0],e[1])}(e,t)))));return o[0]},flush:async function(e){const t=[await r.flush(e)];for(const[,n]of o)t.push(await n.flush(e));return t.every((e=>e))}}}}const is="c",ss="g",as="s",cs="d",us={[is]:class{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}},[ss]:class{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,ethis._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}},[cs]:class{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}},[as]:class{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map((e=>"string"==typeof e?function(e){let t=0;for(let n=0;n>>0}(e):e)).join(":")}}};class ls{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval((()=>this.flush()),5e3)}add(e,t,n,r="none",o={},i=_e()){const s=Math.floor(i),a=t.replace(/[^\w\-.]+/gi,"_"),c=function(e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[Wn(n)]=Gn(String(e[n])));return t}(o),u=function(e){return e.replace(/[^\w]+/gi,"_")}(r),l=function(e,t,n,r){return`${e}${t}${n}${Object.entries(Q(r)).sort(((e,t)=>e[0].localeCompare(t[0])))}`}(e,a,u,c);let d=this._buckets.get(l);const p=d&&"s"===e?d.metric.weight:0;d?(d.metric.add(n),d.timestampe));this._client.captureAggregateMetrics(e)}this._buckets.clear()}}close(){clearInterval(this._interval),this.flush()}}const ds="MetricsAggregator",ps=()=>({name:ds,setupOnce(){},setup(e){e.metricsAggregator=new ls(e)}});function fs(e,t,n,r={}){const o=Ft(),i=Bt();if(o){if(!o.metricsAggregator)return void(ce&&b.warn("No metrics aggregator enabled. Please add the MetricsAggregator integration to use metrics APIs"));const{unit:s,tags:a,timestamp:c}=r,{release:u,environment:l}=o.getOptions(),d=i.getTransaction(),p={};u&&(p.release=u),l&&(p.environment=l),d&&(p.transaction=Ue(d).description||""),ce&&b.log(`Adding value of ${n} to ${e} metric ${t}`),o.metricsAggregator.add(e,t,n,s,{...p,...a},c)}}const hs={increment:function(e,t=1,n){fs("c",e,t,n)},distribution:function(e,t,n){fs("d",e,t,n)},set:function(e,t,n){fs("s",e,t,n)},gauge:function(e,t,n){fs("g",e,t,n)},MetricsAggregator:Xt(ds,ps),metricsAggregatorIntegration:ps};function ms(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}function gs(e,t,n){const r=Si();r&&r.setMeasurement(e,t,n)}function vs(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}function ys(e,t){const n=t&&function(e){return void 0!==e.getClient}(t)?t.getClient():t,r=n&&n.getDsn(),o=n&&n.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,r)||function(e,t){return!!t&&_s(e)===_s(t)}(e,o)}function _s(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var bs=n(6284);function Ss(){return"undefined"!=typeof window&&(!(0,bs.wD)()||void 0!==h.process&&"renderer"===h.process.type)}const ws="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ks=(e,t,n)=>{let r,o;return i=>{t.value>=0&&(i||n)&&(o=t.value-(r||0),(o||void 0===r)&&(r=t.value,t.delta=o,e(t)))}},xs=h,Es=()=>xs.__WEB_VITALS_POLYFILL__?xs.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=xs.performance.timing,t=xs.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):xs.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Ts=()=>{const e=Es();return e&&e.activationStart||0},Cs=(e,t)=>{const n=Es();let r="navigate";return n&&(r=xs.document&&xs.document.prerendering||Ts()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},Is=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},Os=(e,t)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==xs.document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};xs.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},As=(e,t={})=>{const n=Cs("CLS",0);let r,o=0,i=[];const s=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=i[0],s=i[i.length-1];o&&0!==i.length&&e.startTime-s.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,i.push(e)):(o=e.value,i=[e]),o>n.value&&(n.value=o,n.entries=i,r&&r())}}))},a=Is("layout-shift",s);if(a){r=ks(e,n,t.reportAllChanges);const o=()=>{s(a.takeRecords()),r(!0)};return Os(o),o}};let Rs=-1;const Ms=()=>(Rs<0&&(xs.document&&xs.document.visibilityState&&(Rs="hidden"!==xs.document.visibilityState||xs.document.prerendering?1/0:0),Os((({timeStamp:e})=>{Rs=e}),!0)),{get firstHiddenTime(){return Rs}}),Ps=e=>{const t=Ms(),n=Cs("FID");let r;const o=e=>{e.startTime{e.forEach(o)},s=Is("first-input",i);r=ks(e,n),s&&Os((()=>{i(s.takeRecords()),s.disconnect()}),!0)};let js=0,Ds=1/0,Ns=0;const Ls=e=>{e.forEach((e=>{e.interactionId&&(Ds=Math.min(Ds,e.interactionId),Ns=Math.max(Ns,e.interactionId),js=Ns?(Ns-Ds)/7+1:0)}))};let zs;const Fs=()=>{"interactionCount"in performance||zs||(zs=Is("event",Ls,{type:"event",buffered:!0,durationThreshold:0}))},$s=()=>zs?js:performance.interactionCount||0,Bs=[],Us={},qs=e=>{const t=Bs[Bs.length-1],n=Us[e.interactionId];if(n||Bs.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};Us[t.id]=t,Bs.push(t)}Bs.sort(((e,t)=>t.latency-e.latency)),Bs.splice(10).forEach((e=>{delete Us[e.id]}))}},Hs=(e,t)=>{t=t||{},Fs();const n=Cs("INP");let r;const o=e=>{e.forEach((e=>{e.interactionId&&qs(e),"first-input"===e.entryType&&!Bs.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&qs(e)}));const t=(()=>{const e=Math.min(Bs.length-1,Math.floor($s()/50));return Bs[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},i=Is("event",o,{durationThreshold:t.durationThreshold||40});r=ks(e,n,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),Os((()=>{o(i.takeRecords()),n.value<0&&$s()>0&&(n.value=0,n.entries=[]),r(!0)})))},Ws={},Vs=e=>{const t=Ms(),n=Cs("LCP");let r;const o=e=>{const o=e[e.length-1];if(o){const e=Math.max(o.startTime-Ts(),0);e{Ws[n.id]||(o(i.takeRecords()),i.disconnect(),Ws[n.id]=!0,r(!0))};return["keydown","click"].forEach((e=>{xs.document&&addEventListener(e,t,{once:!0,capture:!0})})),Os(t,!0),t}},Gs=e=>{xs.document&&(xs.document.prerendering?addEventListener("prerenderingchange",(()=>Gs(e)),!0):"complete"!==xs.document.readyState?addEventListener("load",(()=>Gs(e)),!0):setTimeout(e,0))},Ks=(e,t)=>{t=t||{};const n=Cs("TTFB"),r=ks(e,n,t.reportAllChanges);Gs((()=>{const e=Es();if(e){if(n.value=Math.max(e.responseStart-Ts(),0),n.value<0||n.value>performance.now())return;n.entries=[e],r(!0)}}))},Ys={},Js={};let Xs,Zs,Qs,ea,ta;function na(e,t=!1){return la("lcp",e,aa,Qs,t)}function ra(e,t){return da(e,t),Js[e]||(function(e){const t={};"event"===e&&(t.durationThreshold=0),Is(e,(t=>{oa(e,{entries:t})}),t)}(e),Js[e]=!0),pa(e,t)}function oa(e,t){const n=Ys[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){ws&&b.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ht(r)}\nError:`,t)}}function ia(){return As((e=>{oa("cls",{metric:e}),Xs=e}),{reportAllChanges:!0})}function sa(){return Ps((e=>{oa("fid",{metric:e}),Zs=e}))}function aa(){return Vs((e=>{oa("lcp",{metric:e}),Qs=e}))}function ca(){return Ks((e=>{oa("ttfb",{metric:e}),ea=e}))}function ua(){return Hs((e=>{oa("inp",{metric:e}),ta=e}))}function la(e,t,n,r,o=!1){let i;return da(e,t),Js[e]||(i=n(),Js[e]=!0),r&&t({metric:r}),pa(e,t,o?i:void 0)}function da(e,t){Ys[e]=Ys[e]||[],Ys[e].push(t)}function pa(e,t,n){return()=>{n&&n();const r=Ys[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}const fa=h,ha="sentryReplaySession",ma="replay_event",ga="Unable to send Replay",va=15e4,ya=5e3,_a=2e7;function ba(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}var Sa;function wa(e){const t=ba([e,"optionalAccess",e=>e.host]);return Boolean(ba([t,"optionalAccess",e=>e.shadowRoot])===e)}function ka(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function xa(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,Ea).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function Ea(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=xa(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Sa||(Sa={}));class Ta{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return null!=(t=ba([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]))?t:-1;var t}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Ca({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function Ia({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Oa(e){return e.toLowerCase()}function Aa(e){return e.toUpperCase()}const Ra="__rrweb_original__";function Ma(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Oa(t):null}function Pa(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let ja=1;const Da=new RegExp("[^a-z0-9-_:]"),Na=-2;function La(){return ja++}let za,Fa;const $a=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ba=/^(?:[a-z+]+:)?\/\//i,Ua=/^www\..*/i,qa=/^(data:)([^,]*),(.*)/i;function Ha(e,t){return(e||"").replace($a,((e,n,r,o,i,s)=>{const a=r||i||s,c=n||o||"";if(!a)return e;if(Ba.test(a)||Ua.test(a))return`url(${c}${a}${c})`;if(qa.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const u=t.split("/"),l=a.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${c}${u.join("/")}${c})`}))}const Wa=/^[^ \t\n\r\u000c]+/,Va=/^[, \t\n\r\u000c]+/;function Ga(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function Ka(){const e=document.createElement("a");return e.href="",e.href}function Ya(e,t,n,r,o,i){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Ga(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(Va),!(n>=t.length);){let i=r(Wa);if(","===i.slice(-1))i=Ga(e,i.substring(0,i.length-1)),o.push(i);else{let r="";i=Ga(e,i);let s=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((i+r).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){n+=1,o.push((i+r).trim());break}"("===e&&(s=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?Ha(r,Ka()):"object"===t&&"data"===n?Ga(e,r):"function"==typeof i?i(n,r,o):r:Ga(e,r):r}function Ja(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Xa(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Xa(e.parentNode,t,n,r+1):-1}function Za(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}function Qa(e,t,n,r,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){const e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(i){if(c=Xa(s,Za(r,o)),c<0)return!0;a=Xa(s,Za(t,n),c>=0?c:1/0)}else{if(a=Xa(s,Za(t,n)),a<0)return!1;c=Xa(s,Za(r,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0||!i)}catch(e){}return!!i}function ec(e){return null==e?"":e.toLowerCase()}function tc(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:f=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:_={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:O=!0}=t;const A=function(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:v={},inlineImages:y,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:S=!1}=t,w=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Sa.Document,childNodes:[],compatMode:e.compatMode}:{type:Sa.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Sa.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:h=!1,rootId:m,maskAllText:g,maskTextClass:v,unmaskTextClass:y,maskTextSelector:_,unmaskTextSelector:b}=t,S=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o,i),w=function(e){if(e instanceof HTMLFormElement)return"form";const t=Oa(e.tagName);return Da.test(t)?"div":t}(e);let k={};const x=e.attributes.length;for(let t=0;tt.href===e.href));let r=null;t&&(r=xa(t)),r&&(delete k.rel,delete k.href,k._cssText=Ha(r,t.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=xa(e.sheet);t&&(k._cssText=Ha(t,Ka()))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const t=e,n=Ma(t),r=Pa(t,Aa(w),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=Qa(t,v,_,y,b,Ca({type:n,tagName:Aa(w),maskInputOptions:a}));k.value=Ia({isMasked:e,element:t,value:r,maskInputFn:u})}o&&(k.checked=o)}if("option"===w&&(e.selected&&!a.select?k.selected=!0:delete k.selected),"canvas"===w&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n0!==e)))return!1}return!0})(e)||(k.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(l.type,l.quality)&&(k.rr_dataURL=t)}if("img"===w&&d){za||(za=n.createElement("canvas"),Fa=za.getContext("2d"));const t=e,r=t.crossOrigin;t.crossOrigin="anonymous";const o=()=>{t.removeEventListener("load",o);try{za.width=t.naturalWidth,za.height=t.naturalHeight,Fa.drawImage(t,0,0),k.rr_dataURL=za.toDataURL(l.type,l.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}r?k.crossOrigin=r:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if("audio"!==w&&"video"!==w||(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop)),S){const{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}let E;"iframe"!==w||f(k.src)||(e.contentDocument||(k.rr_src=k.src),delete k.src);try{customElements.get(w)&&(E=!0)}catch(e){}return{type:Sa.Element,tagName:w,attributes:k,childNodes:[],isSVG:(T=e,Boolean("svg"===T.tagName||T.ownerSVGElement)||void 0),needBlock:S,rootId:m,isCustom:E};var T}(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:f,maskAttributeFn:c,maskInputOptions:h,maskInputFn:g,dataURLOptions:v,inlineImages:y,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:S,rootId:w,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||ba([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=xa(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=Ha(p,Ka())}h&&(p="SCRIPT_PLACEHOLDER");const g=Qa(e,r,i,o,s,n);return f||h||m||!p||!g||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(c.textarea||g)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=Ia({isMasked:Qa(e,r,i,o,s,Ca({type:null,tagName:d,maskInputOptions:c})),element:e,value:p,maskInputFn:u})),{type:Sa.Text,textContent:p||"",isStyle:f,rootId:l}}(e,{maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:w});case e.CDATA_SECTION_NODE:return{type:Sa.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:Sa.Comment,textContent:e.textContent||"",rootId:w};default:return!1}}(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,dataURLOptions:_,inlineImages:b,recordCanvas:S,keepIframeSrcFn:C,newlyAddedElement:I});if(!A)return console.warn(e,"not serialized"),null;let R;R=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===Sa.Comment)return!0;if(e.type===Sa.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ec(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ec(e.attributes.name)||"icon"===ec(e.attributes.rel)||"apple-touch-icon"===ec(e.attributes.rel)||"shortcut icon"===ec(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ec(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ec(e.attributes.property).match(/^(og|twitter|fb):/)||ec(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ec(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ec(e.attributes.name)||"googlebot"===ec(e.attributes.name)||"bingbot"===ec(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ec(e.attributes.name)||"generator"===ec(e.attributes.name)||"framework"===ec(e.attributes.name)||"publisher"===ec(e.attributes.name)||"progid"===ec(e.attributes.name)||ec(e.attributes.property).match(/^article:/)||ec(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ec(e.attributes.name)||"yandex-verification"===ec(e.attributes.name)||"csrf-token"===ec(e.attributes.name)||"p:domain_verify"===ec(e.attributes.name)||"verify-v1"===ec(e.attributes.name)||"verification"===ec(e.attributes.name)||"shopify-checkout-api-token"===ec(e.attributes.name)))return!0}}return!1}(A,y)&&(O||A.type!==Sa.Text||A.isStyle||A.textContent.replace(/^\s+|\s+$/gm,"").length)?La():Na;const M=Object.assign(A,{id:R});if(r.add(e,M),R===Na)return null;w&&w(e);let P=!p;if(M.type===Sa.Element){P=P&&!M.needBlock,delete M.needBlock;const t=e.shadowRoot;t&&ka(t)&&(M.isShadowHost=!0)}if((M.type===Sa.Document||M.type===Sa.Element)&&P){y.headWhitespace&&M.type===Sa.Element&&"head"===M.tagName&&(O=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:T,keepIframeSrcFn:C};for(const n of Array.from(e.childNodes)){const e=tc(n,t);e&&M.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=tc(n,t);r&&(ka(e.shadowRoot)&&(r.isShadow=!0),M.childNodes.push(r))}}return e.parentNode&&wa(e.parentNode)&&ka(e.parentNode)&&(M.isShadow=!0),M.type===Sa.Element&&"iframe"===M.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let o,i=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=setTimeout((()=>{i||(t(),i=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(r),i=!0,t()}))}const s="about:blank";if(r.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&k){const n=tc(t,{doc:t,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:T,keepIframeSrcFn:C});n&&k(e,n)}}),x),M.type===Sa.Element&&"link"===M.tagName&&"stylesheet"===M.attributes.rel&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const i=setTimeout((()=>{o||(t(),o=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(i),o=!0,t()}))}(e,(()=>{if(E){const t=tc(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:O,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:T,keepIframeSrcFn:C});t&&E(e,t)}}),T),M}function nc(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}function rc(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const oc="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let ic={map:{},getId:()=>(console.error(oc),-1),getNode:()=>(console.error(oc),null),removeNodeFromMap(){console.error(oc)},has:()=>(console.error(oc),!1),reset(){console.error(oc)}};function sc(e,t,n={}){let r=null,o=0;return function(...i){const s=Date.now();o||!1!==n.leading||(o=s);const a=t-(s-o),c=this;a<=0||a>t?(r&&(function(...e){Ec("clearTimeout")(...e)}(r),r=null),o=s,e.apply(c,i)):r||!1===n.trailing||(r=Tc((()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(c,i)}),a))}}function ac(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){Tc((()=>{n.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>ac(e,t,i||{},!0)}function cc(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ic=new Proxy(ic,{get:(e,t,n)=>("map"===t&&console.error(oc),Reflect.get(e,t,n))}));let uc=Date.now;function lc(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:nc([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||nc([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||nc([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:nc([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||nc([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||nc([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function dc(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function pc(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function fc(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function hc(e,t,n,r,o){if(!e)return!1;const i=fc(e);if(!i)return!1;const s=Za(t,n);if(!o){const e=r&&i.matches(r);return s(i)&&!e}const a=Xa(i,s);let c=-1;return!(a<0)&&(r&&(c=Xa(i,Za(null,r))),a>-1&&c<0||ae.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(uc=()=>(new Date).getTime());class Sc{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return null!=(t=this.styleIDMap.get(e))?t:-1;var t}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function wc(e){let t=null;return nc([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function kc(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=wc(n);)n=t;return n}(e);return t.contains(n)}(e))}const xc={};function Ec(e){const t=xc[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return xc[e]=r.bind(window)}function Tc(...e){return Ec("setTimeout")(...e)}var Cc=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Cc||{}),Ic=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Ic||{}),Oc=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Oc||{}),Ac=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ac||{});function Rc(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}function Mc(e){return"__ln"in e}class Pc{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;ne.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Mc(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Mc(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const jc=(e,t)=>`${e}@${t}`;class Dc{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Pc,r=e=>{let t=e,n=Na;for(;n===Na;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!kc(o))return;const i=wa(o.parentNode)?this.mirror.getId(wc(o)):this.mirror.getId(o.parentNode),s=r(o);if(-1===i||-1===s)return n.addNode(o);const a=tc(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{yc(e,this.mirror)&&this.iframeManager.addIframe(e),_c(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),bc(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:i,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Lc(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)Fc(this.droppedSet,e)||Lc(this.removes,e,this.mirror)?Fc(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let i=null;for(;n.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==t&&-1!==n&&(e=i)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}i=e.previous,n.removeNode(e.value),o(e.value)}const s={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!mc(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;hc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Qa(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,fc(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=Ma(t),o=t.tagName;r=Pa(t,o,n);const i=Ca({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=Ia({isMasked:Qa(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:r,maskInputFn:this.maskInputFn})}if(hc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Ja(t.tagName,n)&&(o.attributes[n]=Ya(this.doc,Oa(t.tagName),Oa(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||i!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===i?r:[r,i]:o._unchangedStyles[e]=[r,i]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(hc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=wa(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);hc(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||mc(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Nc(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||gc(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[jc(n,r)]?Nc(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!wa(e.target)||!ka(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(mc(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[jc(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);hc(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),bc(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Nc(e,t){e.delete(t),t.childNodes.forEach((t=>Nc(e,t)))}function Lc(e,t,n){return 0!==e.length&&zc(e,t,n)}function zc(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return!!e.some((e=>e.id===o))||zc(e,r,n)}function Fc(e,t){return 0!==e.size&&$c(e,t)}function $c(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||$c(e,n))}let Bc;function Uc(e){Bc=e}function qc(){Bc=void 0}const Hc=e=>Bc?(...t)=>{try{return e(...t)}catch(e){if(Bc&&!0===Bc(e))return()=>{};throw e}}:e;function Wc(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const Vc=[];function Gc(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function Kc(e,t){const n=new Dc;Vc.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=Wc([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);o&&window[o]&&(r=window[o]);const i=new r(Hc((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Yc({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){return rc("scroll",Hc(sc(Hc((s=>{const a=Gc(s);if(!a||hc(a,r,o,i,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=lc(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})})),s.scroll||100)),t)}const Jc=["INPUT","TEXTAREA","SELECT"],Xc=new WeakMap;function Zc({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=Gc(e);const l=e.isTrusted,g=n&&Aa(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||Jc.indexOf(g)<0||hc(n,r,o,i,!0))return;const y=n;if(y.classList.contains(s)||a&&y.matches(a))return;const _=Ma(n);let b=Pa(y,g,_),S=!1;const w=Ca({maskInputOptions:c,tagName:g,type:_}),k=Qa(n,p,h,f,m,w);"radio"!==_&&"checkbox"!==_||(S=n.checked),b=Ia({isMasked:k,element:n,value:b,maskInputFn:u}),v(n,d?{text:b,isChecked:S,userTriggered:l}:{text:b,isChecked:S});const x=n.name;"radio"===_&&x&&S&&t.querySelectorAll(`input[type="radio"][name="${x}"]`).forEach((e=>{if(e!==n){const t=Ia({isMasked:k,element:e,value:Pa(e,g,_),maskInputFn:u});v(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function v(t,r){const o=Xc.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){Xc.set(t,r);const o=n.getId(t);Hc(e)({...r,id:o})}}const y=("last"===l.input?["change"]:["input","change"]).map((e=>rc(e,Hc(g),t))),_=t.defaultView;if(!_)return()=>{y.forEach((e=>e()))};const b=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),S=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&y.push(...S.map((e=>ac(e[0],e[1],{set(){Hc(g)({target:this,isTrusted:!1})}},!1,_)))),Hc((()=>{y.forEach((e=>e()))}))}function Qc(e){return function(e,t){if(ru("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||ru("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||ru("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||ru("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function eu(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function tu({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?Wc([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Wc([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),i=Wc([o,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Wc([o,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return Wc([i,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=Wc([i,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),Hc((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))):()=>{}}function nu(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=Kc(e,e.doc),o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let s,a=[];const c=sc(Hc((t=>{const n=Date.now()-s;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],s=null})),i),u=Hc(sc(Hc((e=>{const t=Gc(e),{clientX:n,clientY:o}=vc(e)?e.changedTouches[0]:e;s||(s=uc()),a.push({x:n,y:o,id:r.getId(t),timeOffset:uc()-s}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Ic.Drag:e instanceof MouseEvent?Ic.MouseMove:Ic.TouchMove)})),o,{trailing:!1})),l=[rc("mousemove",u,n),rc("touchmove",u,n),rc("drag",u,n)];return Hc((()=>{l.forEach((e=>e()))}))}(e),i=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[];let u=null;return Object.keys(Oc).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((s=>{let a=Oa(s);const l=(t=>s=>{const a=Gc(s);if(hc(a,r,o,i,!0))return;let c=null,l=t;if("pointerType"in s){switch(s.pointerType){case"mouse":c=Ac.Mouse;break;case"touch":c=Ac.Touch;break;case"pen":c=Ac.Pen}c===Ac.Touch?Oc[t]===Oc.MouseDown?l="TouchStart":Oc[t]===Oc.MouseUp&&(l="TouchEnd"):Ac.Pen}else vc(s)&&(c=Ac.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===Ac.Touch||l.startsWith("Mouse")&&c===Ac.Mouse)&&(c=null)):Oc[t]===Oc.Click&&(c=u,u=null);const d=vc(s)?s.changedTouches[0]:s;if(!d)return;const p=n.getId(a),{clientX:f,clientY:h}=d;Hc(e)({type:Oc[l],id:p,x:f,y:h,...null!==c&&{pointerType:c}})})(s);if(window.PointerEvent)switch(Oc[s]){case Oc.MouseDown:case Oc.MouseUp:a=a.replace("mouse","pointer");break;case Oc.TouchStart:case Oc.TouchEnd:return}c.push(rc(a,l,t))})),Hc((()=>{c.forEach((e=>e()))}))}(e),s=Yc(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return rc("resize",Hc(sc(Hc((()=>{const t=dc(),o=pc();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)})),200)),t)}(e,{win:n}),c=Zc(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){const a=Hc((s=>sc(Hc((i=>{const a=Gc(i);if(!a||hc(a,t,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;e({type:s,id:o.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})})),i.media||500))),c=[rc("play",a(0),s),rc("pause",a(1),s),rc("seeked",a(2),s),rc("volumechange",a(3),s),rc("ratechange",a(4),s)];return Hc((()=>{c.forEach((e=>e()))}))}(e),l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Hc(((r,o,i)=>{const[s,a]=i,{id:c,styleId:u}=eu(o,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:a}]}),r.apply(o,i)}))});const i=r.CSSStyleSheet.prototype.deleteRule;let s,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Hc(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=eu(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:s}]}),r.apply(o,i)}))}),r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Hc(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=eu(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:s}),r.apply(o,i)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Hc(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=eu(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:s}),r.apply(o,i)}))}));const c={};ou("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(ou("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),ou("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),ou("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach((([r,o])=>{u[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(u[r].insertRule,{apply:Hc(((r,o,i)=>{const[s,a]=i,{id:c,styleId:u}=eu(o.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:[...Qc(o),a||0]}]}),r.apply(o,i)}))}),o.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:Hc(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=eu(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...Qc(o),s]}]}),r.apply(o,i)}))})})),Hc((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule}))}))}(e,{win:n}),d=tu(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Hc(((o,s,a)=>{const[c,u,l]=a;if(n.has(c))return i.apply(s,[c,u,l]);const{id:d,styleId:p}=eu(Wc([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:u,priority:l},index:Qc(s.parentRule)}),o.apply(s,a)}))});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Hc(((o,i,a)=>{const[c]=a;if(n.has(c))return s.apply(i,[c]);const{id:u,styleId:l}=eu(Wc([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:Qc(i.parentRule)}),o.apply(i,a)}))}),Hc((()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s}))}(e,{win:n}),f=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(e,t,n){const r=new i(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const s=cc(t.fonts,"add",(function(t){return function(n){return Tc(Hc((()=>{const t=o.get(n);t&&(e(t),o.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=i})),r.push(s),Hc((()=>{r.forEach((e=>e()))}))}(e):()=>{},h=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let a=!0;const c=Hc((()=>{const e=t.getSelection();if(!e||a&&Wc([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;const c=[],u=e.rangeCount||0;for(let t=0;t{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return Hc((()=>{Vc.forEach((e=>e.reset())),r.disconnect(),o(),i(),s(),a(),c(),u(),l(),d(),p(),f(),h(),m(),g.forEach((e=>e()))}))}function ru(e){return void 0!==window[e]}function ou(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class iu{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e);let s=o.get(t);return s||(s=this.generateIdFn(),o.set(t,s),i.set(s,t)),s}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function su(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}class au{constructor(){this.crossOriginIframeMirror=new iu(La),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class cu{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new iu(La),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new iu(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),su([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Cc.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Cc.IncrementalSnapshot,data:{source:Ic.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Cc.Meta:case Cc.Load:case Cc.DomContentLoaded:return!1;case Cc.Plugin:return t;case Cc.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Cc.IncrementalSnapshot:switch(t.data.source){case Ic.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Ic.Drag:case Ic.TouchMove:case Ic.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Ic.ViewportResize:return!1;case Ic.MediaInteraction:case Ic.MouseInteraction:case Ic.Scroll:case Ic.CanvasMutation:case Ic.Input:return this.replaceIds(t.data,e,["id"]),t;case Ic.StyleSheetRule:case Ic.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Ic.Font:return t;case Ic.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Ic.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),su([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===Sa.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class uu{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class lu{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!ka(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=Kc({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Yc({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Tc((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(tu({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(cc(e.prototype,"attachShadow",(function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&kc(this)&&n.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class du{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class pu{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Sc,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:Ea(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class fu{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){Ec("requestAnimationFrame")(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let hu,mu;const gu=new Ta;function vu(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:v,maskAttributeFn:y,maskInputFn:_,maskTextFn:b,maxCanvasSize:S=null,packFn:w,sampling:k={},dataURLOptions:x={},mousemoveWait:E,recordCanvas:T=!1,recordCrossOriginIframes:C=!1,recordAfter:I=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:O=!1,collectFonts:A=!1,inlineImages:R=!1,plugins:M,keepIframeSrcFn:P=()=>!1,ignoreCSSAttributes:j=new Set([]),errorHandler:D,onMutation:N,getCanvasManager:L}=e;Uc(D);const z=!C||window.parent===window;let F=!1;if(!z)try{window.parent.document&&(F=!1)}catch(e){F=!0}if(z&&!t)throw new Error("emit function is required");void 0!==E&&void 0===k.mousemove&&(k.mousemove=E),gu.reset();const $=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},B=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};let U;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let q=0;const H=e=>{for(const t of M||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!F&&(e=w(e)),e};hu=(e,o)=>{const i=e;if(i.timestamp=uc(),!vs([Vc,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||i.type===Cc.FullSnapshot||i.type===Cc.IncrementalSnapshot&&i.data.source===Ic.Mutation||Vc.forEach((e=>e.unfreeze())),z)vs([t,"optionalCall",e=>e(H(i),o)]);else if(F){const e={type:"rrweb",event:H(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===Cc.FullSnapshot)U=i,q=0;else if(i.type===Cc.IncrementalSnapshot){if(i.data.source===Ic.Mutation&&i.data.isAttachIframe)return;q++;const e=r&&q>=r,t=n&&U&&i.timestamp-U.timestamp>n;(e||t)&&Q(!0)}};const W=e=>{hu({type:Cc.IncrementalSnapshot,data:{source:Ic.Mutation,...e}})},V=e=>hu({type:Cc.IncrementalSnapshot,data:{source:Ic.Scroll,...e}}),G=e=>hu({type:Cc.IncrementalSnapshot,data:{source:Ic.CanvasMutation,...e}}),K=new pu({mutationCb:W,adoptedStyleSheetCb:e=>hu({type:Cc.IncrementalSnapshot,data:{source:Ic.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new au:new cu({mirror:gu,mutationCb:W,stylesheetManager:K,recordCrossOriginIframes:C,wrappedEmit:hu});for(const e of M||[])e.getMirror&&e.getMirror({nodeMirror:gu,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const J=new fu,X=function(e,t){try{return e?e(t):new du}catch(e){return console.warn("Unable to initialize CanvasManager"),new du}}(L,{mirror:gu,win:window,mutationCb:e=>hu({type:Cc.IncrementalSnapshot,data:{source:Ic.CanvasMutation,...e}}),recordCanvas:T,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:S,sampling:k.canvas,dataURLOptions:x,errorHandler:D}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new uu:new lu({mutationCb:W,scrollCb:V,bypassOptions:{onMutation:N,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:$,dataURLOptions:x,maskAttributeFn:y,maskTextFn:b,maskInputFn:_,recordCanvas:T,inlineImages:R,sampling:k,slimDOMOptions:B,iframeManager:Y,stylesheetManager:K,canvasManager:X,keepIframeSrcFn:P,processedNodeManager:J},mirror:gu}),Q=(e=!1)=>{hu({type:Cc.Meta,data:{href:window.location.href,width:pc(),height:dc()}},e),K.reset(),Z.init(),Vc.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new Ta,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOM:y=!1,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:x,stylesheetLoadTimeout:E,keepIframeSrcFn:T=()=>!1}=t||{};return tc(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:_,inlineImages:p,recordCanvas:f,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:x,stylesheetLoadTimeout:E,keepIframeSrcFn:T,newlyAddedElement:!1})}(document,{mirror:gu,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskAllInputs:$,maskAttributeFn:y,maskInputFn:_,maskTextFn:b,slimDOM:B,dataURLOptions:x,recordCanvas:T,inlineImages:R,onSerialize:e=>{yc(e,gu)&&Y.addIframe(e),_c(e,gu)&&K.trackLinkElement(e),bc(e)&&Z.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),Z.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:P});if(!t)return console.warn("Failed to snapshot the document");hu({type:Cc.FullSnapshot,data:{node:t,initialOffset:lc(window)}}),Vc.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,gu.getId(document))};mu=Q;try{const e=[],t=e=>Hc(nu)({onMutation:N,mutationCb:W,mousemoveCb:(e,t)=>hu({type:Cc.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>hu({type:Cc.IncrementalSnapshot,data:{source:Ic.MouseInteraction,...e}}),scrollCb:V,viewportResizeCb:e=>hu({type:Cc.IncrementalSnapshot,data:{source:Ic.ViewportResize,...e}}),inputCb:e=>hu({type:Cc.IncrementalSnapshot,data:{source:Ic.Input,...e}}),mediaInteractionCb:e=>hu({type:Cc.IncrementalSnapshot,data:{source:Ic.MediaInteraction,...e}}),styleSheetRuleCb:e=>hu({type:Cc.IncrementalSnapshot,data:{source:Ic.StyleSheetRule,...e}}),styleDeclarationCb:e=>hu({type:Cc.IncrementalSnapshot,data:{source:Ic.StyleDeclaration,...e}}),canvasMutationCb:G,fontCb:e=>hu({type:Cc.IncrementalSnapshot,data:{source:Ic.Font,...e}}),selectionCb:e=>{hu({type:Cc.IncrementalSnapshot,data:{source:Ic.Selection,...e}})},customElementCb:e=>{hu({type:Cc.IncrementalSnapshot,data:{source:Ic.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:$,inlineStylesheet:h,sampling:k,recordCanvas:T,inlineImages:R,userTriggeredOnInput:O,collectFonts:A,doc:e,maskAttributeFn:y,maskInputFn:_,maskTextFn:b,keepIframeSrcFn:P,blockSelector:i,unblockSelector:s,slimDOMOptions:B,dataURLOptions:x,mirror:gu,iframeManager:Y,stylesheetManager:K,shadowDomManager:Z,processedNodeManager:J,canvasManager:X,ignoreCSSAttributes:j,plugins:vs([M,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>hu({type:Cc.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Y.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{Q(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(rc("DOMContentLoaded",(()=>{hu({type:Cc.DomContentLoaded,data:{}}),"DOMContentLoaded"===I&&n()}))),e.push(rc("load",(()=>{hu({type:Cc.Load,data:{}}),"load"===I&&n()}),window))),()=>{e.forEach((e=>e())),J.destroy(),mu=void 0,qc()}}catch(e){console.warn(e)}}vu.mirror=gu,vu.takeFullSnapshot=function(e){if(!mu)throw new Error("please take full snapshot after start recording");mu(e)};const yu=3;function _u(e){return e>9999999999?e:1e3*e}function bu(e){return e>9999999999?e/1e3:e}function Su(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Cc.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:mt(t,10,1e3)}}),"console"===t.category))))}const wu="button,a";function ku(e){return e.closest(wu)||e}function xu(e){const t=Eu(e);return t&&t instanceof Element?ku(t):t}function Eu(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Tu;class Cu{constructor(e,t,n=Su){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=(t=()=>{this._lastMutation=Ou()},Tu||(Tu=[],V(fa,"open",(function(e){return function(...t){if(Tu)try{Tu.forEach((e=>e()))}catch(e){}return e.apply(fa,t)}}))),Tu.push(t),()=>{const e=Tu?Tu.indexOf(t):-1;e>-1&&Tu.splice(e,1)});var t;this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){return!Iu.includes(e.tagName)||("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||(!("A"!==e.tagName||!(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))||!(!t||!e.matches(t))))}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:bu(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=bu(e)}registerScroll(e=Date.now()){this._lastScroll=bu(e)}registerClick(e){const t=ku(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=Ou();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:i,clickBreadcrumb:s}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:fa.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,o)}else if(i>1){const e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:fa.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const Iu=["A","BUTTON","INPUT"];function Ou(){return Date.now()/1e3}function Au(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Ru;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Ru||(Ru={}));const Mu=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Pu(e){const t={};for(const n in e)if(Mu.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}function ju(e,t){const n=vu.mirror.getId(e),r=n&&vu.mirror.getNode(n),o=r&&vu.mirror.getMeta(r),i=o&&function(e){return e.type===Ru.Element}(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map((e=>e.type===Ru.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Pu(i.attributes)}}:{}}}const Du={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Lu(i),end:Lu(o),name:r,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=Lu(o);return{type:n,name:r,start:i,end:i+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e;return 0===o?null:{type:`${t}.${m}`,start:Lu(f),end:Lu(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:p}}}};function Nu(e){return Du[e.entryType]?Du[e.entryType](e):null}function Lu(e){return((Se||fa.performance.timeOrigin)+e)/1e3}const zu="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Fu(e,t){zu&&(b.info(e),t&&Bu(e))}function $u(e,t){zu&&(b.info(e),t&&setTimeout((()=>{Bu(e)}),0))}function Bu(e){Et({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class Uu extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class qu{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>_a)throw new Uu;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?_u(e):null}}class Hu{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Fu("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const i=({data:t})=>{const s=t;if(s.method===e&&s.id===n){if(this._worker.removeEventListener("message",i),!s.success)return zu&&b.error("[Replay]",s.response),void o(new Error("Error in compression worker"));r(s.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Wu{constructor(e){this._worker=new Hu(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=_u(e.timestamp);(!this._earliestTimestamp||t_a?Promise.reject(new Uu):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{zu&&b.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Vu{constructor(e){this._fallback=new qu,this._compression=new Wu(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void Fu("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){zu&&b.warn("[Replay] Failed to add events when switching buffers.",e)}}}function Gu(){try{return"sessionStorage"in fa&&!!fa.sessionStorage}catch(e){return!1}}function Ku(e){return void 0!==e&&Math.random()e.getContext().initialTimestamp+e.getOptions().maxReplayDuration&&(Fu(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),1))}function il(e){return!e.type}function sl(e){return"transaction"===e.type}function al(e){return"feedback"===e.type}function cl(e){const t=function(){const e=Ft();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}();return(n,r)=>{if(!e.isEnabled()||!il(n)&&!sl(n))return;const o=r&&r.statusCode;t&&(!o||o<200||o>=300)||(sl(n)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n):function(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,n))}}function ul(e,t){return t.map((({type:t,start:n,end:r,name:o,data:i})=>{const s=e.throttledAddEvent({type:Cc.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:i}}});return"string"==typeof s?Promise.resolve(null):s}))}function ll(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!zu||!e.getOptions()._experiments.traceInternals)&&ys(t,Ft())}(e,t.name)||e.addUpdate((()=>(ul(e,[t]),!0))))}function dl(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=_l(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function pl(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function fl(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[_l(e)];if(!e)return[void 0]}catch(t){return zu&&b.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return zu&&b.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function hl(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function ml(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:Q({method:i,statusCode:s,request:a,response:c})}}function gl(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function vl(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>va,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,va);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=o,i&&i.length>0&&(r._meta={warnings:i}),r}function yl(e,t){return Object.keys(e).reduce(((n,r)=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=e[r]),n}),{})}function _l(e){return new URLSearchParams(e).toString()}function bl(e,t){const n=function(e,t=fa.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(fa.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return W(n,t)}function Sl(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function wl(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function kl(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?wl(n,t):Array.isArray(n)?{}:yl(n,t):{}}function xl(e){const t=Ft();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:a}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:a};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(t.data)try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(function(e,t,n){const{xhr:r,input:o}=t;if(!r)return;const i=dl(o,n.textEncoder),s=r.getResponseHeader("content-length")?pl(r.getResponseHeader("content-length")):function(e,t,n){try{return dl("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e,n)}catch(e){return}}(r.response,r.responseType,n.textEncoder);void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,n,e),async function(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:a}=t,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:p}=e.data;if(!c)return null;if(!a||!bl(c,n.networkDetailAllowUrls)||bl(c,n.networkDetailDenyUrls))return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:gl(d),response:gl(p)};const f=a[Ir],h=f?yl(f.request_headers,n.networkRequestHeaders):{},m=yl(function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e}),{}):{}}(a),n.networkResponseHeaders),[g,v]=n.networkCaptureBodies?fl(s):[void 0],[y,_]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return zu&&b.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return zu&&b.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return zu&&b.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(a):[void 0],S=vl(h,d,g),w=vl(m,p,y);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:v?hl(S,v):S,response:_?hl(w,_):w}}(e,t,n),o=ml("resource.xhr",r);ll(n.replay,o)}catch(e){zu&&b.error("[Replay] Failed to capture xhr breadcrumb",e)}}(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(function(e,t,n){const{input:r,response:o}=t,i=dl(r?Sl(r):void 0,n.textEncoder),s=o?pl(o.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,n,e),async function(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=e.data,d=bl(s,n.networkDetailAllowUrls)&&!bl(s,n.networkDetailDenyUrls),p=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?(s=t,1===(i=n).length&&"string"!=typeof i[0]?kl(i[0],s):2===i.length?kl(i[1],s):{}):{};var i,s;if(!e)return vl(o,r,void 0);const a=Sl(n),[c,u]=fl(a),l=vl(o,r,c);return u?hl(l,u):l}(n,t.input,u):gl(u),f=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},o,i){if(!e&&void 0!==i)return gl(i);const s=o?wl(o.headers,r):{};if(!o||!t&&void 0!==i)return vl(s,i,void 0);const[a,c]=await async function(e){const t=function(e){try{return e.clone()}catch(e){zu&&b.warn("[Replay] Failed to clone response body",e)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=setTimeout((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(e){return zu&&b.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}(o),u=function(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:o,headers:i}){try{const s=e&&e.length&&void 0===r?dl(e,n):r;return o?vl(i,s,t?e:void 0):gl(s)}catch(e){return zu&&b.warn("[Replay] Failed to serialize response body",e),vl(i,r,void 0)}}(a,{networkCaptureBodies:t,textEncoder:n,responseBodySize:i,captureDetails:e,headers:s});return c?hl(u,c):u}(d,n,t.response,l);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:c,request:p,response:f}}(e,t,n),o=ml("resource.fetch",r);ll(n.replay,o)}catch(e){zu&&b.error("[Replay] Failed to capture fetch breadcrumb",e)}}(t,n,e))}catch(e){zu&&b.warn("Error when enriching network breadcrumb")}}(c,e,t))):(Rr(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:o}=e;if(!n)return null;const{method:i,url:s}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:s,data:{method:i,statusCode:o?o.status:void 0}}}(t);ll(e,n)}}(e)),Or(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,o=r[Ir];if(!t||!n||!o)return null;const{method:i,url:s,status_code:a}=o;return void 0===s?null:{type:"resource.xhr",name:s,start:t/1e3,end:n/1e3,data:{method:i,statusCode:a}}}(t);ll(e,n)}}(e)))}catch(e){}}let El=null;function Tl(e){return!(!e||!e.on)}function Cl(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Il(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(zu&&b.warn("[Replay] Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(!function(e){return e.type===yu}(t))return;const{source:n}=t.data;if(n===Ic.Mutation&&e.registerMutation(t.timestamp),n===Ic.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Ic.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=vu.mirror.getNode(r);o instanceof HTMLElement&&n===Oc.Click&&e.registerClick(o)}}catch(e){}}(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!nl(e,n,o))return!0;if(!o)return!1;if(function(e,t){t&&e.session&&0===e.session.segmentId&&nl(e,function(e){const t=e.getOptions();return{type:Cc.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,o),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(Fu(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Ju(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}class Ol extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Al extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Rl(e,t={count:0,interval:5e3}){const{recordingData:n,options:r}=e;if(n.length)try{return await async function({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const s=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=Ft(),p=Bt(),f=d&&d.getTransport(),h=d&&d.getDsn();if(!(d&&f&&h&&i.sampled))return;const m={type:ma,replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},g=await async function({client:e,scope:t,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",r,o);const i=await yt(e.getOptions(),r,o,t,e,it());if(!i)return null;i.platform=i.platform||"javascript";const s=e.getSdkMetadata&&e.getSdkMetadata(),{name:a,version:c}=s&&s.sdk||{};return i.sdk={...i.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},i}({scope:p,client:d,replayId:t,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay",m),void Fu("An event processor returned `null`, will not send event.");delete g.sdkProcessingMetadata;const v=function(e,t,n,r){return Pn(Un(e,Bn(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,s,h,d.getOptions().tunnel);let y;try{y=await f.send(v)}catch(e){const t=new Error(ga);try{t.cause=e}catch(e){}throw t}if(!y)return y;if("number"==typeof y.statusCode&&(y.statusCode<200||y.statusCode>=300))throw new Ol(y.statusCode);const _=Wo({},y);if(Ho(_,"replay"))throw new Al(_);return y}(e),!0}catch(n){if(n instanceof Ol||n instanceof Al)throw n;if(Tt("Replays",{_retryCount:t.count}),zu&&r._experiments&&r._experiments.captureExceptions&&St(n),t.count>=3){const e=new Error(`${ga} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{setTimeout((async()=>{try{await Rl(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const Ml="__THROTTLED";class Pl{constructor({options:e,recordingOptions:t}){Pl.prototype.__init.call(this),Pl.prototype.__init2.call(this),Pl.prototype.__init3.call(this),Pl.prototype.__init4.call(this),Pl.prototype.__init5.call(this),Pl.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,o,i;const s=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function u(){return o&&clearTimeout(o),o=setTimeout(a,t),s&&void 0===i&&(i=setTimeout(a,s)),r}return u.cancel=c,u.flush=function(){return void 0!==o||void 0!==i?a():r},u}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){const r=new Map;let o=!1;return(...i)=>{const s=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{ne+t),0)>=t){const e=o;return o=!0,e?"__SKIPPED":Ml}o=!1;const a=r.get(s)||0;return r.set(s,a+1),e(...i)}}(((e,t)=>function(e,t,n){return ol(e,t)?rl(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;o&&(this.clickDetector=new Cu(this,o))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options;t<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",$u(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");$u("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=tl({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");$u("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=tl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=vu({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Il(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{Fu("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,n=this,function(){if(Gu())try{fa.sessionStorage.removeItem(ha)}catch(e){}}(),n.session=void 0}catch(e){this._handleException(e)}}var n}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Fu("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Fu("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Fu("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Zu(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${fa.location.pathname}${fa.location.hash}${fa.location.search}`,t=`${fa.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===Ml){const e=Au({category:"replay.throttled"});this.addUpdate((()=>!nl(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastTransaction||Bt().getTransaction(),t=(e&&Ue(e).data||{})[vi];if(e&&t&&["route","custom"].includes(t))return Ue(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;Fu("[Replay] Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Vu(n)}catch(e){Fu("[Replay] Failed to create compression worker")}}(t);if(e)return e}return Fu("[Replay] Using simple buffer"),new qu}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){zu&&b.error("[Replay]",e),zu&&this._options._experiments&&this._options._experiments.captureExceptions&&St(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=tl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!el(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{fa.document.addEventListener("visibilitychange",this._handleVisibilityChange),fa.addEventListener("blur",this._handleWindowBlur),fa.addEventListener("focus",this._handleWindowFocus),fa.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){const t=Bt(),n=Ft();t.addScopeListener((e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return El!==t&&t?(El=t,!t.category||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Au(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>ya?(n=!0,`${e.slice(0,ya)}…`):e;if("object"==typeof e)try{const t=mt(e,7);return JSON.stringify(t).length>ya?(n=!0,`${JSON.stringify(t,null,2).slice(0,ya)}…`):t}catch(e){}return e}));return Au({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):Au(t)):null}(t);n&&Su(e,n)})(e)),xr((e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?xu(e.event):Eu(e.event),n=L(r,{maxStringLength:200})||""}catch(e){n=""}return{target:r,message:n}}(e);return Au({category:`ui.${e.name}`,...ju(t,n)})}(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;var i,s,a;!(r&&e.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(i=e.clickDetector,s=n,a=xu(t.event),i.handleClick(s,a)),Su(e,n)})(e)),Rn(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(ul(e,[n]),!1))))}}(e)),xl(e);const r=function(e,t=!1){const n=t?cl(e):void 0;return Object.assign(((t,r)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!il(t)&&!sl(t)&&!al(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(al(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Cc.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,r)&&!e.getOptions()._experiments.captureExceptions)return zu&&b.log("[Replay] Ignoring error from rrweb internals",t),null;const o=function(e,t){return"buffer"===e.recordingMode&&t.message!==ga&&!(!t.exception||t.type)&&Ku(e.getOptions().errorSampleRate)}(e,t);return(o||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}),{id:"Replay"})}(e,!Tl(n));n&&n.addEventProcessor?n.addEventProcessor(r):Zn(r),Tl(n)&&(n.on("beforeSendEvent",function(e){return t=>{e.isEnabled()&&il(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;"string"==typeof n&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&Su(e,Au({category:"replay.hydrate-error"}))}(e,t)}}(e)),n.on("afterSendEvent",cl(e)),n.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),n.on("startTransaction",(t=>{e.lastTransaction=t})),n.on("finishTransaction",(t=>{e.lastTransaction=t})),n.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(ra(e,n))})),r.push(na((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,o=e.value,i=Lu(o);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:i,end:i,data:{value:o,size:o,nodeId:r?vu.mirror.getId(r):void 0}}}(t))}))),()=>{r.forEach((e=>e()))}}(this)}_removeListeners(){try{fa.document.removeEventListener("visibilitychange",this._handleVisibilityChange),fa.removeEventListener("blur",this._handleWindowBlur),fa.removeEventListener("focus",this._handleWindowFocus),fa.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===fa.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Au({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Au({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(s)||!i)return null;const a=t||r||o,c=1===i.length;if(!a&&c)return null;const u=L(s,{maxStringLength:200})||"";return Au({category:"ui.keyDown",message:u,data:{...ju(s,u).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}(t);n&&Su(e,n)}(this,e)}}_doChangeToBackgroundTasks(e){this.session&&(Qu(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Fu("[Replay] Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Cc.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(Nu).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(ul(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&nthis._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await Rl({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=Ft();t&&t.recordDroppedEvent("send_error","replay")}}else zu&&b.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(zu&&b.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=nthis._options.maxReplayDuration+5e3;if(r||o)return Fu(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(r&&this._debouncedFlush());const i=this.eventBuffer;if(i&&0===this.session.segmentId&&!i.hasCheckout&&Fu("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){zu&&b.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Ju(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=Au({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function jl(e,t,n,r){const o=[...e,..."string"==typeof r?r.split(","):[],...t];return void 0!==n&&("string"==typeof n&&o.push(`.${n}`),_((()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")}))),o.join(",")}const Dl='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Nl=["content-length","content-type","accept"];let Ll=!1;const zl=e=>new Fl(e);class Fl{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:i=!0,workerUrl:s,_experiments:a={},sessionSampleRate:c,errorSampleRate:u,maskAllText:l=!0,maskAllInputs:d=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:f=750,mutationLimit:h=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:v=[],networkDetailDenyUrls:y=[],networkCaptureBodies:_=!0,networkRequestHeaders:b=[],networkResponseHeaders:S=[],mask:w=[],maskAttributes:k=["title","placeholder"],unmask:x=[],block:E=[],unblock:T=[],ignore:C=[],maskFn:I,beforeAddRecordingEvent:O,beforeErrorSampling:A,blockClass:R,blockSelector:M,maskInputOptions:P,maskTextClass:j,maskTextSelector:D,ignoreClass:N}={}){this.name=Fl.id;const L=function({mask:e,unmask:t,block:n,unblock:r,ignore:o,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:c,ignoreClass:u}){const l={maskTextSelector:jl(e,[".sentry-mask","[data-sentry-mask]"],a,c),unmaskTextSelector:jl(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:jl(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],i,s),unblockSelector:jl(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:jl(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],u)};return i instanceof RegExp&&(l.blockClass=i),a instanceof RegExp&&(l.maskTextClass=a),l}({mask:w,unmask:x,block:E,unblock:T,ignore:C,blockClass:R,blockSelector:M,maskTextClass:j,maskTextSelector:D,ignoreClass:N});if(this._recordingOptions={maskAllInputs:d,maskAllText:l,maskInputOptions:{...P||{},password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return r?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}({maskAttributes:k,maskAllText:l,privacyOptions:L,key:e,value:t,el:n}),...L,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:o,sessionSampleRate:c,errorSampleRate:u,useCompression:i,workerUrl:s,blockAllMedia:p,maskAllInputs:d,maskAllText:l,mutationBreadcrumbLimit:f,mutationLimit:h,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:v,networkDetailDenyUrls:y,networkCaptureBodies:_,networkRequestHeaders:$l(b),networkResponseHeaders:$l(S),beforeAddRecordingEvent:O,beforeErrorSampling:A,_experiments:a},"number"==typeof c&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),"number"==typeof u&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${u} })`),this._initialOptions.errorSampleRate=u),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Dl}`:Dl),this._isInitialized&&Ss())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Ll}set _isInitialized(e){Ll=e}setupOnce(){Ss()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=Ft(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Q(e)};return n?(null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&_((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),"number"==typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate),"number"==typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(_((()=>{console.warn("SDK client is not available.")})),r)}(this._initialOptions);this._replay=new Pl({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=Ft().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function $l(e){return[...Nl,...e.map((e=>e.toLowerCase()))]}function Bl(){const e=Ft();return e&&e.getIntegrationByName&&e.getIntegrationByName("Replay")}var Ul;function ql(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ql(e.parentNode,t,n,r+1):-1}function Hl(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}Fl.__initStatic(),function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Ul||(Ul={}));const Wl="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Vl={map:{},getId:()=>(console.error(Wl),-1),getNode:()=>(console.error(Wl),null),removeNodeFromMap(){console.error(Wl)},has:()=>(console.error(Wl),!1),reset(){console.error(Wl)}};function Gl(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){Ql((()=>{n.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>Gl(e,t,i||{},!0)}function Kl(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}function Yl(e,t,n,r,o){if(!e)return!1;const i=function(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}(e);if(!i)return!1;const s=Hl(t,n);if(!o){const e=r&&i.matches(r);return s(i)&&!e}const a=ql(i,s);let c=-1;return!(a<0)&&(r&&(c=ql(i,Hl(null,r))),a>-1&&c<0||a("map"===t&&console.error(Wl),Reflect.get(e,t,n))})),/[1-9][0-9]{12}/.test(Date.now().toString());const Jl={};function Xl(e){const t=Jl[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Jl[e]=r.bind(window)}function Zl(...e){return Xl("requestAnimationFrame")(...e)}function Ql(...e){return Xl("setTimeout")(...e)}var ed=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(ed||{});let td;const nd=e=>td?(...t)=>{try{return e(...t)}catch(e){if(td&&!0===td(e))return()=>{};throw e}}:e;for(var rd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",od="undefined"==typeof Uint8Array?[]:new Uint8Array(256),id=0;id<64;id++)od[rd.charCodeAt(id)]=id;const sd=new Map,ad=(e,t,n)=>{if(!e||!ld(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=sd.get(e);return n||(n=new Map,sd.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let o=r.indexOf(e);return-1===o&&(o=r.length,r.push(e)),o};function cd(e,t,n){if(e instanceof Array)return e.map((e=>cd(e,t,n)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t>2],o+=rd[(3&n[t])<<4|n[t+1]>>4],o+=rd[(15&n[t+1])<<2|n[t+2]>>6],o+=rd[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e);return{rr_type:t,base64:n}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[cd(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}return e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[cd(e.data,t,n),e.width,e.height]}:ld(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:ad(e,t,n)}:e}const ud=(e,t,n)=>e.map((e=>cd(e,t,n))),ld=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(n.find((n=>e instanceof t[n])))};function dd(e,t,n,r,o){const i=[];try{const s=Kl(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(i,...s){if(!Yl(this,t,n,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=e),o&&["webgl","webgl2"].includes(e))if(s[0]&&"object"==typeof s[0]){const e=s[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[i,...s])}}));i.push(s)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach((e=>e()))}}function pd(e,t,n,r,o,i,s,a){const c=[],u=Object.getOwnPropertyNames(e);for(const s of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(s))try{if("function"!=typeof e[s])continue;const u=Kl(e,s,(function(e){return function(...c){const u=e.apply(this,c);if(ad(u,a,this),"tagName"in this.canvas&&!Yl(this.canvas,r,o,i,!0)){const e=ud(c,a,this),r={type:t,property:s,args:e};n(this.canvas,r)}return u}}));c.push(u)}catch(r){const o=Gl(e,s,{set(e){n(this.canvas,{type:t,property:s,args:[e],setter:!0})}});c.push(o)}return c}class fd{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{sampling:t="all",win:n,blockClass:r,blockSelector:o,unblockSelector:i,maxCanvasSize:s,recordCanvas:a,dataURLOptions:c,errorHandler:u}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,u&&(td=u),e.enableManualSnapshot||nd((()=>{a&&"all"===t&&this.initCanvasMutationObserver(n,r,o,i),a&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,r,o,i,s,{dataURLOptions:c})}))()}initCanvasFPSObserver(e,t,n,r,o,i,s){const a=dd(t,n,r,o,!0),c=this.takeSnapshot(!1,e,t,n,r,o,i,s.dataURLOptions);this.resetObservers=()=>{a(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const o=dd(e,t,n,r,!1),i=function(e,t,n,r,o){const i=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of s)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;const s=Kl(t.CanvasRenderingContext2D.prototype,a,(function(i){return function(...s){return Yl(this.canvas,n,r,o,!0)||Ql((()=>{const n=ud(s,t,this);e(this.canvas,{type:ed["2D"],property:a,args:n})}),0),i.apply(this,s)}}));i.push(s)}catch(n){const r=Gl(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:ed["2D"],property:a,args:[t],setter:!0})}});i.push(r)}return()=>{i.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r),s=function(e,t,n,r,o){const i=[];return i.push(...pd(t.WebGLRenderingContext.prototype,ed.WebGL,e,n,r,o,0,t)),void 0!==t.WebGL2RenderingContext&&i.push(...pd(t.WebGL2RenderingContext.prototype,ed.WebGL2,e,n,r,o,0,t)),()=>{i.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.resetObservers=()=>{o(),i(),s()}}snapshot(e){const{options:t}=this,n=this.takeSnapshot(!0,"all"===t.sampling?2:t.sampling||2,t.win,t.blockClass,t.blockSelector,t.unblockSelector,t.maxCanvasSize,t.dataURLOptions,e);this.resetObservers=()=>{cancelAnimationFrame(n)}}takeSnapshot(e,t,n,r,o,i,s,a,c){const u=new Map,l=new Worker(function(){const e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());l.onmessage=e=>{const t=e.data,{id:n}=t;if(u.set(n,!1),!("base64"in t))return;const{base64:r,type:o,width:i,height:s}=t;this.mutationCb({id:n,type:ed["2D"],commands:[{property:"clearRect",args:[0,0,i,s]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:o}]},0,0,i,s]}]})};const d=1e3/t;let p,f=0;const h=t=>{f&&t-f{if(e)return[e];const t=[];return n.document.querySelectorAll("canvas").forEach((e=>{Yl(e,r,o,i,!0)||t.push(e)})),t})(c).forEach((t=>{const n=this.mirror.getId(t);if(!u.get(n)&&t.width&&t.height){if(u.set(n,!0),!e&&["webgl","webgl2"].includes(t.__context)){const e=t.getContext(t.__context);!1===vs([e,"optionalAccess",e=>e.getContextAttributes,"call",e=>e(),"optionalAccess",e=>e.preserveDrawingBuffer])&&e.clear(e.COLOR_BUFFER_BIT)}createImageBitmap(t).then((e=>{l.postMessage({id:n,bitmap:e,width:t.width,height:t.height,dataURLOptions:a,maxCanvasSize:s},[e])})).catch((e=>{nd((()=>{throw e}))()}))}}))),p=Zl(h)};return p=Zl(h),p}startPendingCanvasMutationFlusher(){Zl((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,Zl(e)};Zl(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),Zl((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const r=n.map((e=>{const{type:t,...n}=e;return n})),{type:o}=n[0];this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}const hd={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},md="ReplayCanvas",gd=1280,vd=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,gd):gd,n?Math.min(n,gd):gd]};let o;const i=new Promise((e=>o=e));return{name:md,setupOnce(){},getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const r=new fd({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch(e){}}});return o(r),r},...hd[e||"medium"]||hd.medium}},async snapshot(e){(await i).snapshot(e)}}},yd=Xt(md,vd),_d=h,bd="#ffffff",Sd="inherit",wd="rgba(108, 95, 199, 1)",kd={fontFamily:"system-ui, 'Helvetica Neue', Arial, sans-serif",fontSize:"14px",background:bd,backgroundHover:"#f6f6f7",foreground:"#2b2233",border:"1.5px solid rgba(41, 35, 47, 0.13)",borderRadius:"25px",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",success:"#268d75",error:"#df3338",submitBackground:"rgba(88, 74, 192, 1)",submitBackgroundHover:wd,submitBorder:wd,submitOutlineFocus:"#29232f",submitForeground:bd,submitForegroundHover:bd,cancelBackground:"transparent",cancelBackgroundHover:"var(--background-hover)",cancelBorder:"var(--border)",cancelOutlineFocus:"var(--input-outline-focus)",cancelForeground:"var(--foreground)",cancelForegroundHover:"var(--foreground)",inputBackground:Sd,inputForeground:Sd,inputBorder:"var(--border)",inputOutlineFocus:wd,formBorderRadius:"20px",formContentBorderRadius:"6px"},xd=kd,Ed={...kd,background:"#29232f",backgroundHover:"#352f3b",foreground:"#ebe6ef",border:"1.5px solid rgba(235, 230, 239, 0.15)",success:"#2da98c",error:"#f55459"},Td="widget",Cd="api";function Id({name:e,email:t,message:n,source:r=Cd,url:o=F()},i={}){if(!n)throw new Error("Unable to submit feedback with empty message");return async function({feedback:{message:e,email:t,name:n,source:r,url:o}},{includeReplay:i=!0}={}){const s=Ft(),a=s&&s.getTransport(),c=s&&s.getDsn();if(!s||!a||!c)return;const u={contexts:{feedback:{contact_email:t,name:n,message:e,url:o,source:r}},type:"feedback"};return Mt((async e=>{e.clearBreadcrumbs(),[Cd,Td].includes(String(r))&&e.setLevel("info");const t=await async function({client:e,scope:t,event:n}){const r={};e.emit&&e.emit("preprocessEvent",n,r);const o=await yt(e.getOptions(),n,r,t,e,it());return null===o?(e.recordDroppedEvent("event_processor","feedback",n),null):(o.platform=o.platform||"javascript",o)}({scope:e,client:s,event:u});if(!t)return;s.emit&&s.emit("beforeSendFeedback",t,{includeReplay:Boolean(i)});const n=Hn(t,c,s.getOptions()._metadata,s.getOptions().tunnel);let o;try{o=await a.send(n)}catch(e){const t=new Error("Unable to send Feedback");try{t.cause=e}catch(e){}throw t}if(o){if("number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))throw new Error("Unable to send Feedback");return o}}))}({feedback:{name:e,email:t,message:n,url:o,source:r}},i)}const Od="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Ad(e,t){return{...e,...t,themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Rd(e){return`\n --background: ${e.background};\n --background-hover: ${e.backgroundHover};\n --foreground: ${e.foreground};\n --error: ${e.error};\n --success: ${e.success};\n --border: ${e.border};\n --border-radius: ${e.borderRadius};\n --box-shadow: ${e.boxShadow};\n\n --submit-background: ${e.submitBackground};\n --submit-background-hover: ${e.submitBackgroundHover};\n --submit-border: ${e.submitBorder};\n --submit-outline-focus: ${e.submitOutlineFocus};\n --submit-foreground: ${e.submitForeground};\n --submit-foreground-hover: ${e.submitForegroundHover};\n\n --cancel-background: ${e.cancelBackground};\n --cancel-background-hover: ${e.cancelBackgroundHover};\n --cancel-border: ${e.cancelBorder};\n --cancel-outline-focus: ${e.cancelOutlineFocus};\n --cancel-foreground: ${e.cancelForeground};\n --cancel-foreground-hover: ${e.cancelForegroundHover};\n\n --input-background: ${e.inputBackground};\n --input-foreground: ${e.inputForeground};\n --input-border: ${e.inputBorder};\n --input-outline-focus: ${e.inputOutlineFocus};\n\n --form-border-radius: ${e.formBorderRadius};\n --form-content-border-radius: ${e.formContentBorderRadius};\n `}function Md(e,t){return Object.entries(t).forEach((([t,n])=>{e.setAttributeNS(null,t,n)})),e}const Pd=20,jd="http://www.w3.org/2000/svg";function Dd(e,t,...n){const r=_d.document.createElement(e);t&&Object.entries(t).forEach((([e,t])=>{"className"===e&&"string"==typeof t?r.setAttribute("class",t):"boolean"==typeof t&&t?r.setAttribute(e,""):"string"==typeof t?r.setAttribute(e,t):e.startsWith("on")&&"function"==typeof t&&r.addEventListener(e.substring(2).toLowerCase(),t)}));for(const e of n)Nd(r,e);return r}function Nd(e,t){const n=_d.document;if(null!=t)if(Array.isArray(t))for(const n of t)Nd(e,n);else!1===t||("string"==typeof t?e.appendChild(n.createTextNode(t)):t instanceof Node?e.appendChild(t):e.appendChild(n.createTextNode(String(t))))}function Ld(e,t){const n=e.get(t);return"string"==typeof n?n.trim():""}const zd="http://www.w3.org/2000/svg";function Fd({formTitle:e,showBranding:t,showName:n,showEmail:r,isNameRequired:o,isEmailRequired:i,colorScheme:s,defaultName:a,defaultEmail:c,onClosed:u,onCancel:l,onSubmit:d,...p}){let f=null;function h(){f&&(f.open=!1)}const{el:m,showError:g,hideError:v}=function({nameLabel:e,namePlaceholder:t,emailLabel:n,emailPlaceholder:r,messageLabel:o,messagePlaceholder:i,isRequiredLabel:s,cancelButtonLabel:a,submitButtonLabel:c,showName:u,showEmail:l,isNameRequired:d,isEmailRequired:p,defaultName:f,defaultEmail:h,onCancel:m,onSubmit:g}){const{el:v}=function({label:e}){return{el:Dd("button",{type:"submit",className:"btn btn--primary","aria-label":e},e)}}({label:c}),y=Dd("div",{className:"form__error-container form__error-container--hidden","aria-hidden":"true"}),_=Dd("input",{id:"name",type:u?"text":"hidden","aria-hidden":u?"false":"true",name:"name",required:d,className:"form__input",placeholder:t,value:f}),b=Dd("input",{id:"email",type:l?"text":"hidden","aria-hidden":l?"false":"true",name:"email",required:p,className:"form__input",placeholder:r,value:h}),S=Dd("textarea",{id:"message",autoFocus:"true",rows:"5",name:"message",required:!0,className:"form__input form__input--textarea",placeholder:i}),w=Dd("button",{type:"button",className:"btn btn--default","aria-label":a,onClick:e=>{m&&m(e)}},a),k=Dd("form",{className:"form",onSubmit:function(e){if(e.preventDefault(),e.target instanceof HTMLFormElement)try{if(g){const t=new FormData(e.target),n={name:Ld(t,"name"),email:Ld(t,"email"),message:Ld(t,"message")};g(n)}}catch(e){}}},[y,u&&Dd("label",{htmlFor:"name",className:"form__label"},[Dd("span",{className:"form__label__text"},e,d&&Dd("span",{className:"form__label__text--required"},` ${s}`)),_]),!u&&_,l&&Dd("label",{htmlFor:"email",className:"form__label"},[Dd("span",{className:"form__label__text"},n,p&&Dd("span",{className:"form__label__text--required"},` ${s}`)),b]),!l&&b,Dd("label",{htmlFor:"message",className:"form__label"},[Dd("span",{className:"form__label__text"},o,Dd("span",{className:"form__label__text--required"},` ${s}`)),S]),Dd("div",{className:"btn-group"},[v,w])]);return{get el(){return k},showError:function(e){y.textContent=e,y.classList.remove("form__error-container--hidden"),y.setAttribute("aria-hidden","false")},hideError:function(){y.textContent="",y.classList.add("form__error-container--hidden"),y.setAttribute("aria-hidden","true")}}}({showEmail:r,showName:n,isEmailRequired:i,isNameRequired:o,defaultName:a,defaultEmail:c,onSubmit:d,onCancel:l,...p});return f=Dd("dialog",{className:"dialog",open:!0,onClick:function(){h(),u&&u()}},Dd("div",{className:"dialog__content",onClick:e=>{e.stopPropagation()}},Dd("h2",{className:"dialog__header"},e,t&&Dd("a",{className:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer"},function({colorScheme:e}){const t=e=>_d.document.createElementNS(zd,e),n=Md(t("svg"),{class:"sentry-logo",width:"32",height:"30",viewBox:"0 0 72 66",fill:"none"}),r=Md(t("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});n.append(r);const o=t("defs"),i=t("style");return i.textContent=`\n path {\n fill: ${"dark"===e?"#fff":"#362d59"};\n }`,"system"===e&&(i.textContent+="\n @media (prefers-color-scheme: dark) {\n path: {\n fill: '#fff';\n }\n }\n "),o.append(i),n.append(o),{get el(){return n}}}({colorScheme:s}).el)),m)),{get el(){return f},showError:g,hideError:v,open:function(){f&&(f.open=!0)},close:h,checkIsOpen:function(){return f&&!0===f.open||!1}}}const $d=16,Bd=17,Ud="http://www.w3.org/2000/svg";function qd({shadow:e,options:{shouldCreateActor:t=!0,...n},attachTo:r}){let o,i,s=!1;async function a(t){if(!i)return;const r=[];n.isNameRequired&&!t.name&&r.push(n.nameLabel),n.isEmailRequired&&!t.email&&r.push(n.emailLabel),t.message||r.push(n.messageLabel),r.length>0?i.showError(`Please enter in the following required fields: ${r.join(", ")}`):await async function(e,t,n){if(e){e.hideError();try{return await Id({...t,source:Td},n)}catch(t){Od&&b.error(t),e&&e.showError("There was a problem submitting feedback, please wait and try again.")}}}(i,t)?(f(),function(){if(e)try{const t=function({message:e,onRemove:t}){function n(){r&&(r.remove(),t&&t())}const r=Dd("div",{className:"success-message",onClick:n},function(){const e=e=>_d.document.createElementNS(Ud,e),t=Md(e("svg"),{class:"success-icon",width:`${$d}`,height:`${Bd}`,viewBox:`0 0 ${$d} ${Bd}`,fill:"none"}),n=Md(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Md(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=Md(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(o,r);const i=e("defs"),s=Md(e("clipPath"),{id:"clip0_57_156"}),a=Md(e("rect"),{width:`${$d}`,height:`${$d}`,fill:"white",transform:"translate(0 0.5)"});return s.appendChild(a),i.appendChild(s),t.appendChild(i).appendChild(s).appendChild(a),{get el(){return t}}}().el,e);return{el:r,remove:n}}({message:n.successMessageText,onRemove:()=>{r&&clearTimeout(r),u()}});if(!t.el)throw new Error("Unable to show success message");e.appendChild(t.el);const r=setTimeout((()=>{t&&t.remove()}),5e3)}catch(e){b.error(e)}}(),n.onSubmitSuccess&&n.onSubmitSuccess()):n.onSubmitError&&n.onSubmitError()}function c(){const e=Ft(),t=e&&e.getIntegrationByName&&e.getIntegrationByName("Replay");t&&t.flush().catch((e=>{Od&&b.error(e)}))}function u(){o&&o.show()}function l(){o&&o.hide()}function d(){try{if(i)return i.open(),s=!0,n.onFormOpen&&n.onFormOpen(),void c();const t=n.useSentryUser,r=Bt(),o=r&&r.getUser();if(i=Fd({colorScheme:n.colorScheme,showBranding:n.showBranding,showName:n.showName||n.isNameRequired,showEmail:n.showEmail||n.isEmailRequired,isNameRequired:n.isNameRequired,isEmailRequired:n.isEmailRequired,formTitle:n.formTitle,cancelButtonLabel:n.cancelButtonLabel,submitButtonLabel:n.submitButtonLabel,emailLabel:n.emailLabel,emailPlaceholder:n.emailPlaceholder,messageLabel:n.messageLabel,messagePlaceholder:n.messagePlaceholder,nameLabel:n.nameLabel,namePlaceholder:n.namePlaceholder,isRequiredLabel:n.isRequiredLabel,defaultName:t&&o&&o[t.name]||"",defaultEmail:t&&o&&o[t.email]||"",onClosed:()=>{u(),s=!1,n.onFormClose&&n.onFormClose()},onCancel:()=>{p(),u()},onSubmit:a}),!i.el)throw new Error("Unable to open Feedback dialog");e.appendChild(i.el),l(),n.onFormOpen&&n.onFormOpen(),c()}catch(e){b.error(e)}}function p(){i&&(i.close(),s=!1,n.onFormClose&&n.onFormClose())}function f(){if(i){p();const e=i.el;e&&e.remove(),i=void 0}}function h(){s||d(),l()}return r?r.addEventListener("click",h):t&&(o=function({buttonLabel:e,onClick:t}){const n=Dd("button",{type:"button",className:"widget__actor","aria-label":e,"aria-hidden":"false"},function(){const e=e=>_d.document.createElementNS(jd,e),t=Md(e("svg"),{class:"feedback-icon",width:`${Pd}`,height:`${Pd}`,viewBox:`0 0 ${Pd} ${Pd}`,fill:"none"}),n=Md(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Md(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const o=e("defs"),i=Md(e("clipPath"),{id:"clip0_57_80"}),s=Md(e("rect"),{width:`${Pd}`,height:`${Pd}`,fill:"white"});return i.appendChild(s),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(s),{get el(){return t}}}().el,e?Dd("span",{className:"widget__actor__text"},e):null);return n.addEventListener("click",(function(e){t&&t(e)})),{get el(){return n},show:()=>{n.classList.remove("widget__actor--hidden"),n.setAttribute("aria-hidden","false")},hide:()=>{n.classList.add("widget__actor--hidden"),n.setAttribute("aria-hidden","true")}}}({buttonLabel:n.buttonLabel,onClick:h}),o.el&&e.appendChild(o.el)),{get actor(){return o},get dialog(){return i},showActor:u,hideActor:l,removeActor:function(){o&&o.el&&o.el.remove()},openDialog:d,closeDialog:p,removeDialog:f}}const Hd=_d.document,Wd=e=>new Vd(e);class Vd{static __initStatic(){this.id="Feedback"}constructor({autoInject:e=!0,id:t="sentry-feedback",isEmailRequired:n=!1,isNameRequired:r=!1,showBranding:o=!0,showEmail:i=!0,showName:s=!0,useSentryUser:a={email:"email",name:"username"},themeDark:c,themeLight:u,colorScheme:l="system",buttonLabel:d="Report a Bug",cancelButtonLabel:p="Cancel",submitButtonLabel:f="Send Bug Report",formTitle:h="Report a Bug",emailPlaceholder:m="your.email@example.org",emailLabel:g="Email",messagePlaceholder:v="What's the bug? What did you expect?",messageLabel:y="Description",namePlaceholder:_="Your Name",nameLabel:b="Name",isRequiredLabel:S="(required)",successMessageText:w="Thank you for your report!",onFormClose:k,onFormOpen:x,onSubmitError:E,onSubmitSuccess:T}={}){this.name=Vd.id,this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1,this.options={autoInject:e,showBranding:o,id:t,isEmailRequired:n,isNameRequired:r,showEmail:i,showName:s,useSentryUser:a,colorScheme:l,themeDark:{...Ed,...c},themeLight:{...xd,...u},buttonLabel:d,cancelButtonLabel:p,submitButtonLabel:f,formTitle:h,emailLabel:g,emailPlaceholder:m,messageLabel:y,messagePlaceholder:v,nameLabel:b,namePlaceholder:_,isRequiredLabel:S,successMessageText:w,onFormClose:k,onFormOpen:x,onSubmitError:E,onSubmitSuccess:T}}setupOnce(){if(Ss())try{this._cleanupWidgetIfExists();const{autoInject:e}=this.options;if(!e)return;this._createWidget(this.options)}catch(e){Od&&b.error(e)}}openDialog(){this._widget||this._createWidget({...this.options,shouldCreateActor:!1}),this._widget&&this._widget.openDialog()}closeDialog(){this._widget&&this._widget.closeDialog()}attachTo(e,t){try{const n=Ad(this.options,t||{});return this._ensureShadowHost(n,(({shadow:t})=>{const r="string"==typeof e?Hd.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)return Od&&b.error("[Feedback] Unable to attach to target element"),null;const o=qd({shadow:t,options:n,attachTo:r});return this._widgets.add(o),this._widget||(this._widget=o),o}))}catch(e){return Od&&b.error(e),null}}createWidget(e){try{return this._createWidget(Ad(this.options,e||{}))}catch(e){return Od&&b.error(e),null}}removeWidget(e){if(!e)return!1;try{if(this._widgets.has(e))return e.removeActor(),e.removeDialog(),this._widgets.delete(e),this._widget===e&&(this._widget=null),!0}catch(e){Od&&b.error(e)}return!1}getWidget(){return this._widget}remove(){this._host&&this._host.remove(),this._initialize()}_initialize(){this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1}_cleanupWidgetIfExists(){this._host&&this.remove();const e=Hd.querySelector(`#${this.options.id}`);e&&e.remove()}_createWidget(e){return this._ensureShadowHost(e,(({shadow:t})=>{const n=qd({shadow:t,options:e});return!this._hasInsertedActorStyles&&n.actor&&(t.appendChild(function(e){const t=e.createElement("style");return t.textContent="\n.widget__actor {\n position: fixed;\n left: var(--left);\n right: var(--right);\n bottom: var(--bottom);\n top: var(--top);\n z-index: var(--z-index);\n\n line-height: 16px;\n\n display: flex;\n align-items: center;\n gap: 8px;\n\n border-radius: var(--border-radius);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n padding: 16px;\n text-decoration: none;\n z-index: 9000;\n\n color: var(--foreground);\n background-color: var(--background);\n border: var(--border);\n box-shadow: var(--box-shadow);\n opacity: 1;\n transition: opacity 0.1s ease-in-out;\n}\n\n.widget__actor:hover {\n background-color: var(--background-hover);\n}\n\n.widget__actor svg {\n width: 16px;\n height: 16px;\n}\n\n.widget__actor--hidden {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n\n.widget__actor__text {\n}\n\n@media (max-width: 600px) {\n .widget__actor__text {\n display: none;\n }\n}\n\n.feedback-icon path {\n fill: var(--foreground);\n}\n",t}(Hd)),this._hasInsertedActorStyles=!0),this._widgets.add(n),this._widget||(this._widget=n),n}))}_ensureShadowHost(e,t){let n=!1;if(!this._shadow||!this._host){const{id:t,colorScheme:r,themeLight:o,themeDark:i}=e,{shadow:s,host:a}=function({id:e,colorScheme:t,themeDark:n,themeLight:r}){try{const o=_d.document,i=o.createElement("div");i.id=e;const s=i.attachShadow({mode:"open"});return s.appendChild(function(e,t,n){const r=e.createElement("style");return r.textContent=`\n:host {\n --bottom: 1rem;\n --right: 1rem;\n --top: auto;\n --left: auto;\n --z-index: 100000;\n --font-family: ${n.light.fontFamily};\n --font-size: ${n.light.fontSize};\n\n position: fixed;\n left: var(--left);\n right: var(--right);\n bottom: var(--bottom);\n top: var(--top);\n z-index: var(--z-index);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n ${Rd("dark"===t?n.dark:n.light)}\n}\n\n${"system"===t?`\n@media (prefers-color-scheme: dark) {\n :host {\n ${Rd(n.dark)}\n }\n}`:""}\n}`,r}(o,t,{dark:n,light:r})),s.appendChild(function(e){const t=e.createElement("style");return t.textContent="\n.dialog {\n line-height: 25px;\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n position: fixed;\n inset: 0;\n z-index: 10000;\n width: 100vw;\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n position: fixed;\n left: var(--left);\n right: var(--right);\n bottom: var(--bottom);\n top: var(--top);\n\n border: var(--border);\n border-radius: var(--form-border-radius);\n background-color: var(--background);\n color: var(--foreground);\n\n width: 320px;\n max-width: 100%;\n max-height: calc(100% - 2rem);\n display: flex;\n flex-direction: column;\n box-shadow: var(--box-shadow);\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n\n.dialog__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 20px;\n font-weight: 600;\n padding: 24px 24px 0 24px;\n margin: 0;\n margin-bottom: 16px;\n}\n\n.brand-link {\n display: inline-flex;\n}\n\n.error {\n color: var(--error);\n margin-bottom: 16px;\n}\n\n.form {\n display: grid;\n overflow: auto;\n flex-direction: column;\n gap: 16px;\n padding: 0 24px 24px;\n}\n\n.form__error-container {\n color: var(--error);\n}\n\n.form__error-container--hidden {\n display: none;\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: grid;\n gap: 4px;\n align-items: center;\n grid-auto-flow: column;\n grid-auto-columns: max-content;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n line-height: inherit;\n background-color: var(--input-background);\n box-sizing: border-box;\n border: var(--input-border);\n border-radius: var(--form-content-border-radius);\n color: var(--input-foreground);\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 500;\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n color: var(--input-foreground);\n opacity: 0.65;\n}\n\n.form__input:focus-visible {\n outline: 1px auto var(--input-outline-focus);\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.btn-group {\n display: grid;\n gap: 8px;\n margin-top: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--cancel-border);\n border-radius: var(--form-content-border-radius);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n padding: 6px 16px;\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n background-color: var(--submit-background);\n border-color: var(--submit-border);\n color: var(--submit-foreground);\n}\n.btn--primary:hover {\n background-color: var(--submit-background-hover);\n color: var(--submit-foreground-hover);\n}\n.btn--primary:focus-visible {\n outline: 1px auto var(--submit-outline-focus);\n}\n\n.btn--default {\n background-color: var(--cancel-background);\n color: var(--cancel-foreground);\n font-weight: 500;\n}\n.btn--default:hover {\n background-color: var(--cancel-background-hover);\n color: var(--cancel-foreground-hover);\n}\n.btn--default:focus-visible {\n outline: 1px auto var(--cancel-outline-focus);\n}\n\n.success-message {\n background-color: var(--background);\n border: var(--border);\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n font-weight: 600;\n color: var(--success);\n padding: 12px 24px;\n line-height: 25px;\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success-icon path {\n fill: var(--success);\n}\n",t}(o)),{shadow:s,host:i}}catch(e){throw b.warn("[Feedback] Browser does not support shadow DOM API"),new Error("Browser does not support shadow DOM API.")}}({id:t,colorScheme:r,themeLight:o,themeDark:i});this._shadow=s,this._host=a,n=!0}this._host.dataset.sentryFeedbackColorscheme=e.colorScheme;const r=t({shadow:this._shadow,host:this._host});return n&&Hd.body.appendChild(this._host),r}}Vd.__initStatic();const Gd="CaptureConsole",Kd=(e={})=>{const t=e.levels||v;return{name:Gd,setupOnce(){},setup(e){"console"in h&&vr((({args:n,level:r})=>{Ft()===e&&t.includes(r)&&function(e,t){const n={level:Nr(t),extra:{arguments:e}};Mt((r=>{if(r.addEventProcessor((e=>(e.logger="console",ie(e,{handled:!1,type:"console"}),e))),"assert"===t&&!1===e[0]){const t=`Assertion failed: ${H(e.slice(1)," ")||"console.assert"}`;return r.setExtra("arguments",e.slice(1)),void wt(t,n)}const o=e.find((e=>e instanceof Error));"error"===t&&o?St(o,n):wt(H(e," "),n)}))}(n,r)}))}}};Xt(Gd,Kd);const Yd=h,Jd="ContextLines",Xd=(e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:Jd,setupOnce(){},processEvent:e=>function(e,t){const n=Yd.document,r=Yd.location&&Yd.location.href.split(/[\?#]/,1)[0];if(!n||!r)return e;const o=e.exception&&e.exception.values;if(!o||!o.length)return e;const i=n.documentElement.innerHTML;if(!i)return e;const s=["","",...i.split("\n"),""];return o.forEach((e=>{const n=e.stacktrace;n&&n.frames&&(n.frames=n.frames.map((e=>function(e,t,n,r){return e.filename===n&&e.lineno&&t.length?(function(e,t,n=5){if(void 0===t.lineno)return;const r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map((e=>q(e,0))),t.context_line=q(e[Math.min(r-1,o)],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map((e=>q(e,0)))}(t,e,r),e):e}(e,s,r,t))))})),e}(e,t)}};Xt(Jd,Xd);const Zd="Debug",Qd=(e={})=>{const t={debugger:!1,stringify:!1,...e};return{name:Zd,setupOnce(){},setup(e){e.on&&e.on("beforeSendEvent",((e,n)=>{t.debugger,_((()=>{t.stringify?(console.log(JSON.stringify(e,null,2)),n&&Object.keys(n).length&&console.log(JSON.stringify(n,null,2))):(console.log(e),n&&Object.keys(n).length&&console.log(n))}))}))}}},ep=(Xt(Zd,Qd),"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__),tp="Dedupe",np=()=>{let e;return{name:tp,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!op(e,t)&&!!rp(e,t))))}(e,t)||!!function(e,t){const n=ip(t),r=ip(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!op(e,t)&&!!rp(e,t)))}(e,t))}(t,e))return ep&&b.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function rp(e,t){let n=sp(e),r=sp(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e{const t=e.depth||3,n=e.captureErrorCause||!1;return{name:ap,setupOnce(){},processEvent:(e,r)=>function(e,t={},n,r){if(!t.originalException||!w(t.originalException))return e;const o=t.originalException.name||t.originalException.constructor.name,i=function(e,t){try{const n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],r={};for(const t of Object.keys(e)){if(-1!==n.indexOf(t))continue;const o=e[t];r[t]=w(o)?o.toString():o}if(t&&void 0!==e.cause&&(r.cause=w(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];r[e]=w(n)?n.toString():n}}return r}catch(e){ep&&b.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,r);if(i){const t={...e.contexts},r=mt(i,n);return O(r)&&(G(r,"__sentry_skip_normalization__",!0),t[o]=r),{...e,contexts:t}}return e}(e,r,t,n)}};Xt(ap,cp);const up="HttpClient",lp=(e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:up,setupOnce(){},setup(e){!function(e,t){wn()&&Rr((n=>{if(Ft()!==e)return;const{response:r,args:o}=n,[i,s]=o;r&&function(e,t,n,r){if(fp(e,n.status,n.url)){const e=function(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}(t,r);let o,i,s,a;mp()&&([{headers:o,cookies:s},{headers:i,cookies:a}]=[{cookieHeader:"Cookie",obj:e},{cookieHeader:"Set-Cookie",obj:n}].map((({cookieHeader:e,obj:t})=>{const n=function(e){const t={};return e.forEach(((e,n)=>{t[n]=e})),t}(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=pp(t))}catch(t){ep&&b.log(`Could not extract cookies from header ${e}`)}return{headers:n,cookies:r}}))),kt(hp({url:e.url,method:e.method,status:n.status,requestHeaders:o,responseHeaders:i,requestCookies:s,responseCookies:a}))}}(t,i,r,s)}))}(e,t),function(e,t){"XMLHttpRequest"in h&&Or((n=>{if(Ft()!==e)return;const r=n.xhr,o=r[Ir];if(!o)return;const{method:i,request_headers:s}=o;try{!function(e,t,n,r){if(fp(e,t.status,t.responseURL)){let e,o,i;if(mp()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(o=pp(e))}catch(e){ep&&b.log("Could not extract cookies from response headers")}try{i=function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n]=r,e}),{}):{}}(t)}catch(e){ep&&b.log("Could not extract headers from response")}e=r}kt(hp({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:i,responseCookies:o}))}}(t,r,i,s)}catch(e){ep&&b.warn("Error while extracting response event form XHR response",e)}}))}(e,t)}}};function dp(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function pp(e){return e.split("; ").reduce(((e,t)=>{const[n,r]=t.split("=");return e[n]=r,e}),{})}function fp(e,t,n){return function(e,t){return e.some((e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1]))}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,o=n,r.some((e=>"string"==typeof e?o.includes(e):e.test(o))))&&!ys(n,Ft());var r,o}function hp(e){const t=`HTTP Client Error with status code: ${e.status}`,n={message:t,exception:{values:[{type:"Error",value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:dp(e.responseHeaders)}}};return ie(n,{type:"http.client",handled:!1}),n}function mp(){const e=Ft();return!!e&&Boolean(e.getOptions().sendDefaultPii)}Xt(up,lp);const gp=h,vp="ReportingObserver",yp=new WeakMap,_p=(e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(e){if(yp.has(Ft()))for(const t of e)Mt((e=>{e.setExtra("url",t.url);const n=`ReportingObserver [${t.type}]`;let r="No details available";if(t.body){const n={};for(const e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){const e=t.body;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else r=t.body.message||r}wt(`${n}: ${r}`)}))}return{name:vp,setupOnce(){"ReportingObserver"in _n&&new gp.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){yp.set(e,!0)}}};Xt(vp,_p);const bp=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Sp(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n="/"===o.charAt(0))}return t=function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){const r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}(t.split("/").filter((e=>!!e)),!n).join("/"),(n?"/":"")+t||"."}function wp(e){let t=0;for(;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}const kp="RewriteFrames",xp=(e={})=>{const t=e.root,n=e.prefix||"app:///",r=e.iteratee||(e=>{if(!e.filename)return e;const r=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),o=/^\//.test(e.filename);if(r||o){const o=r?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,i=t?function(e,t){e=Sp(e).slice(1),t=Sp(t).slice(1);const n=wp(e.split("/")),r=wp(t.split("/")),o=Math.min(n.length,r.length);let i=o;for(let e=0;e1024?`${e.slice(-1024)}`:e,n=bp.exec(t);return n?n.slice(1):[]}(e)[2];return t}(o);e.filename=`${n}${i}`}return e});return{name:kp,setupOnce(){},processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map((e=>{return{...e,...e.stacktrace&&{stacktrace:(t=e.stacktrace,{...t,frames:t&&t.frames&&t.frames.map((e=>r(e)))})}};var t}))}}}catch(t){return e}}(t)),t}}},Ep=(Xt(kp,xp),"SessionTiming"),Tp=()=>{const e=Date.now();return{name:Ep,setupOnce(){},processEvent(t){const n=Date.now();return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}};function Cp(){xs.document?xs.document.addEventListener("visibilitychange",(()=>{const e=Si();if(xs.document.hidden&&e){const t="cancelled",{op:n,status:r}=Ue(e);ws&&b.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}})):ws&&b.warn("[Tracing] Could not set up background tab detection due to lack of global document")}function Ip(e){return[{type:"span"},e]}function Op(e){return"number"==typeof e&&isFinite(e)}function Ap(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}Xt(Ep,Tp);const Rp=2147483647;function Mp(e){return e/1e3}function Pp(){return xs&&xs.addEventListener&&xs.performance}let jp,Dp,Np=0,Lp={};function zp(){const e=Pp();if(e&&Se){e.mark&&xs.performance.mark("sentry-tracing-init");const t=la("fid",(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Mp(Se),r=Mp(t.startTime);ws&&b.log("[Measurements] Adding FID"),Lp.fid={value:e.value,unit:"millisecond"},Lp["mark.fid"]={value:n+r,unit:"second"}}),sa,Zs),n=function(e,t=!1){return la("cls",e,ia,Xs,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ws&&b.log("[Measurements] Adding CLS"),Lp.cls={value:e.value,unit:""},Dp=t)}),!0),r=na((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ws&&b.log("[Measurements] Adding LCP"),Lp.lcp={value:e.value,unit:"millisecond"},jp=t)}),!0),o=la("ttfb",(({metric:e})=>{e.entries[e.entries.length-1]&&(ws&&b.log("[Measurements] Adding TTFB"),Lp.ttfb={value:e.value,unit:"millisecond"})}),ca,ea);return()=>{t(),n(),r(),o()}}return()=>{}}function Fp(){ra("longtask",(({entries:e})=>{for(const t of e){const e=Si();if(!e)return;const n=Mp(Se+t.startTime),r=Mp(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}))}function $p(){ra("event",(({entries:e})=>{for(const t of e){const e=Si();if(!e)return;if("click"===t.name){const n=Mp(Se+t.startTime),r=Mp(t.duration),o={description:L(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},i=B(t.target);i&&(o.attributes={"ui.component_name":i}),e.startChild(o)}}}))}function Bp(e,t){if(Pp()&&Se){const n=function(e,t){return n=({metric:n})=>{if(void 0===n.value)return;const r=n.entries.find((e=>e.duration===n.value&&void 0!==Up[e.name])),o=Ft();if(!r||!o)return;const i=Up[r.name],s=o.getOptions(),a=Mp(Se+r.startTime),c=Mp(n.value),u=void 0!==r.interactionId?e[r.interactionId]:void 0;if(void 0===u)return;const{routeName:l,parentContext:d,activeTransaction:p,user:f,replayId:h}=u,m=void 0!==f?f.email||f.id||f.ip_address:void 0,g=void 0!==p?p.getProfileId():void 0,v=new Wi({startTimestamp:a,endTimestamp:a+c,op:`ui.interaction.${i}`,name:L(r.target),attributes:{release:s.release,environment:s.environment,transaction:l,...void 0!==m&&""!==m?{user:m}:{},...void 0!==g?{profile_id:g}:{},...void 0!==h?{replay_id:h}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),y=function(e,t,n){if(!Ti(t))return!1;let r;return r=void 0!==e&&"function"==typeof t.tracesSampler?t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:xs.location}):void 0!==e&&void 0!==e.sampled?e.sampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1,Zi(r)?!0===r?n:!1===r?0:r*n:(ws&&b.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}(d,s,t);if(y&&Math.random(){ws&&b.error("Error while sending interaction:",e)}))}},la("inp",n,ua,ta);var n}(e,t);return()=>{n()}}return()=>{}}const Up={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function qp(e){const t=Pp();if(!t||!xs.performance.getEntries||!Se)return;ws&&b.log("[Tracing] Adding & adjusting spans using Performance API");const n=Mp(Se),r=t.getEntries(),{op:o,start_timestamp:i}=Ue(e);if(r.slice(Np).forEach((t=>{const r=Mp(t.startTime),o=Mp(t.duration);if(!("navigation"===e.op&&i&&n+r{Hp(e,t,r,n)})),Hp(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Hp(e,t,"fetch",n,"cache","domainLookupStart"),Hp(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(Ap(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Mp(t.requestStart),endTimestamp:n+Mp(t.responseEnd)}),Ap(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Mp(t.responseStart),endTimestamp:n+Mp(t.responseEnd)}))}(e,t,n)}(e,t,n);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,o){const i=o+n,s=i+r;Ap(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i})}(e,t,r,o,n);const i=Ms(),s=t.startTime{if(!Lp[e]||!i||n>=i)return;const t=Lp[e].value,r=n+Mp(t),o=Math.abs(1e3*(r-i)),s=o-t;ws&&b.log(`[Measurements] Normalized ${e} from ${t} to ${o} (${s})`),Lp[e].value=o}));const t=Lp["mark.fid"];t&&Lp.fid&&(Ap(e,{description:"first input delay",endTimestamp:t.value+Mp(Lp.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete Lp["mark.fid"]),"fcp"in Lp||delete Lp.cls,Object.keys(Lp).forEach((e=>{gs(e,Lp[e].value,Lp[e].unit)})),function(e){jp&&(ws&&b.log("[Measurements] Adding LCP Data"),jp.element&&e.setTag("lcp.element",L(jp.element)),jp.id&&e.setTag("lcp.id",jp.id),jp.url&&e.setTag("lcp.url",jp.url.trim().slice(0,200)),e.setTag("lcp.size",jp.size)),Dp&&Dp.sources&&(ws&&b.log("[Measurements] Adding CLS Data"),Dp.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,L(t.node)))))}(e)}jp=void 0,Dp=void 0,Lp={}}function Hp(e,t,n,r,o,i){const s=i?t[i]:t[`${n}End`],a=t[`${n}Start`];a&&s&&Ap(e,{op:"browser",origin:"auto.browser.browser.metrics",description:o||n,startTimestamp:r+Mp(a),endTimestamp:r+Mp(s)})}function Wp(e,t,n,r){const o=t[n];null!=o&&o!0,c=e=>function(e,t){return W(e,t||Vp)}(e,r||o),u={};t&&Rr((e=>{const t=function(e,t,n,r,o="auto.http.browser"){if(!Ti()||!e.fetchData)return;const i=t(e.fetchData.url);if(e.endTimestamp&&i){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(function(e,t){if(t.response){qi(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus("internal_error");e.end()}(n,e),delete r[t]))}const s=Bt(),a=Ft(),{method:c,url:u}=e.fetchData,l=function(e){try{return new URL(e).href}catch(e){return}}(u),d=l?Lr(l).host:void 0,p=i?Ai({name:`${c} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":c,"http.url":l,"server.address":d,[bi]:o},op:"http.client"}):void 0;if(p&&(e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p),n(e.fetchData.url)&&a){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,o){const i=o||n.getSpan(),s=it(),{traceId:a,spanId:c,sampled:u,dsc:l}={...s.getPropagationContext(),...n.getPropagationContext()},d=i?Fe(i):Ne(a,c,u),p=Re(l||(i?We(i):He(a,t,n))),f=r.headers||("undefined"!=typeof Request&&P(e,Request)?e.headers:void 0);if(f){if("undefined"!=typeof Headers&&P(f,Headers)){const e=new Headers(f);return e.append("sentry-trace",d),p&&e.append(Te,p),e}if(Array.isArray(f)){const e=[...f,["sentry-trace",d]];return p&&e.push([Te,p]),e}{const e="baggage"in f?f.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),p&&t.push(p),{...f,"sentry-trace":d,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":d,baggage:p}}(t,a,s,n,p)}return p}(e,a,c,u);if(t){const n=Xp(e.fetchData.url),r=n?Lr(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}s&&t&&Yp(t)})),n&&Or((e=>{const t=function(e,t,n,r){const o=e.xhr,i=o&&o[Ir];if(!Ti()||!o||o.__sentry_own_request__||!i)return;const s=t(i.url);if(e.endTimestamp&&s){const e=o.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==i.status_code&&(qi(t,i.status_code),t.end(),delete r[e]))}const a=Bt(),c=it(),u=Xp(i.url),l=u?Lr(u).host:void 0,d=s?Ai({name:`${i.method} ${i.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":i.method,"http.url":u,url:i.url,"server.address":l,[bi]:"auto.http.browser"},op:"http.client"}):void 0;d&&(o.__sentry_xhr_span_id__=d.spanContext().spanId,r[o.__sentry_xhr_span_id__]=d);const p=Ft();if(o.setRequestHeader&&n(i.url)&&p){const{traceId:e,spanId:t,sampled:n,dsc:r}={...c.getPropagationContext(),...a.getPropagationContext()};!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Te,n)}catch(e){}}(o,d?Fe(d):Ne(e,t,n),Re(r||(d?We(d):He(e,p,a))))}return d}(e,a,c,u);s&&t&&Yp(t)}))}function Yp(e){const{url:t}=Ue(e).data||{};if(!t||"string"!=typeof t)return;const n=ra("resource",(({entries:r})=>{r.forEach((r=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(r)&&r.name.endsWith(t)&&(function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Se?[...r,["http.request.redirect_start",Jp(e.redirectStart)],["http.request.fetch_start",Jp(e.fetchStart)],["http.request.domain_lookup_start",Jp(e.domainLookupStart)],["http.request.domain_lookup_end",Jp(e.domainLookupEnd)],["http.request.connect_start",Jp(e.connectStart)],["http.request.secure_connection_start",Jp(e.secureConnectionStart)],["http.request.connection_end",Jp(e.connectEnd)],["http.request.request_start",Jp(e.requestStart)],["http.request.response_start",Jp(e.responseStart)],["http.request.response_end",Jp(e.responseEnd)]]:r}(r).forEach((t=>e.setAttribute(...t))),setTimeout(n))}))}))}function Jp(e=0){return((Se||performance.timeOrigin)+e)/1e3}function Xp(e){try{return new URL(e,xs.location.origin).href}catch(e){return}}const Zp={...Gi,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!xs||!xs.location)return void(ws&&b.warn("Could not initialize routing instrumentation due to invalid location"));let r,o=xs.location.href;t&&(r=e({name:xs.location.pathname,startTimestamp:Se?Se/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&Rn((({to:t,from:n})=>{void 0===n&&o&&-1!==o.indexOf(t)?o=void 0:n!==t&&(o=void 0,r&&(ws&&b.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.end()),r=e({name:xs.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Gp};class Qp{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,ns(),ws&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options={...Zp,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=zp(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&Bp(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&Fp(),this.options._experiments.enableInteractions&&$p(),this._latestRoute={name:void 0,context:void 0}}setupOnce(e,t){this._getCurrentHub=t;const n=t().getClient(),r=n&&n.getOptions(),{routingInstrumentation:o,startTransactionOnLocationChange:i,startTransactionOnPageLoad:s,markBackgroundTransactions:a,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:l,enableHTTPTimings:d,_experiments:p}=this.options,f=r&&r.tracePropagationTargets,h=f||this.options.tracePropagationTargets;ws&&this._hasSetTracePropagationTargets&&f&&b.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),o((e=>{const n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n}),s,i),a&&Cp(),p.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),Kp({traceFetch:c,traceXHR:u,tracePropagationTargets:h,shouldCreateSpanForRequest:l,enableHTTPTimings:d})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(ws&&b.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));const t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:o,heartbeatInterval:i}=this.options,s="pageload"===e.op;let a;if(s){const t=s?ef("sentry-trace"):"",n=s?ef("baggage"):void 0,{traceId:r,dsc:o,parentSpanId:i,sampled:c}=De(t,n);a={traceId:r,parentSpanId:i,parentSampled:c,...e,metadata:{...e.metadata,dynamicSamplingContext:o},trimEnd:!0}}else a={trimEnd:!0,...e};const c="function"==typeof n?n(a):a,u=void 0===c?{...a,sampled:!1}:c;u.metadata=u.name!==a.name?{...u.metadata,source:"custom"}:u.metadata,this._latestRoute.name=u.name,this._latestRoute.context=u,!1===u.sampled&&ws&&b.log(`[Tracing] Will not send ${u.op} transaction because of beforeNavigate.`),ws&&b.log(`[Tracing] Starting ${u.op} transaction on scope`);const{location:l}=xs,d=ts(t,u,r,o,!0,{location:l},i,s);return s&&xs.document&&(xs.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(xs.document.readyState)&&d.sendAutoFinishSignal()})),["interactive","complete"].includes(xs.document.readyState)&&d.sendAutoFinishSignal()),d.registerBeforeFinishCallback((e=>{this._collectWebVitals(),qp(e)})),d}_registerInteractionListener(){let e;const t=()=>{const{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,o="ui.action.click",i=Si();if(i&&i.op&&["navigation","pageload"].includes(i.op))return void(ws&&b.warn(`[Tracing] Did not create ${o} transaction because a pageload or navigation transaction is in progress.`));if(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub)return void(ws&&b.warn(`[Tracing] Did not create ${o} transaction because _getCurrentHub is invalid.`));if(!this._latestRoute.name)return void(ws&&b.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`));const s=this._getCurrentHub(),{location:a}=xs,c={name:this._latestRoute.name,op:o,trimEnd:!0,data:{[vi]:this._latestRoute.context?tf(this._latestRoute.context):"url"}};e=ts(s,c,t,n,!0,{location:a},r)};["click"].forEach((e=>{xs.document&&addEventListener(e,t,{once:!1,capture:!0})}))}_registerInpInteractionListener(){const e=({entries:e})=>{const t=Ft(),n=void 0!==t&&void 0!==t.getIntegrationByName?t.getIntegrationByName("Replay"):void 0,r=void 0!==n?n.getReplayId():void 0,o=Si(),i=Bt(),s=void 0!==i?i.getUser():void 0;e.forEach((e=>{if(function(e){return"duration"in e}(e)){const t=e.interactionId;if(void 0===t)return;const n=this._interactionIdToRouteNameMapping[t],i=e.duration,a=e.startTime,c=Object.keys(this._interactionIdToRouteNameMapping),u=c.length>0?c.reduce(((e,t)=>this._interactionIdToRouteNameMapping[e].durationthis._interactionIdToRouteNameMapping[e])).some((e=>e.duration===i&&e.startTime===a)))return;if(!t)return;if(n)n.duration=Math.max(n.duration,i);else if(c.length<10||void 0===u||i>this._interactionIdToRouteNameMapping[u].duration){const e=this._latestRoute.name,n=this._latestRoute.context;e&&n&&(u&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[u],this._interactionIdToRouteNameMapping[t]={routeName:e,duration:i,parentContext:n,user:s,activeTransaction:o,replayId:r,startTime:a})}}}))};ra("event",e),ra("first-input",e)}}function ef(e){const t=$(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function tf(e){const t=e.attributes&&e.attributes[vi],n=e.data&&e.data[vi],r=e.metadata&&e.metadata.source;return t||n||r}const nf={...Gi,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Gp},rf=(e={})=>{const t=!(!ws||!e.tracePropagationTargets&&!e.tracingOrigins);ns(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const n={...nf,...e},r=zp(),o={};n.enableInp&&Bp(o,n.interactionsSampleRate),n.enableLongTask&&Fp(),n._experiments.enableInteractions&&$p();const i={name:void 0,context:void 0};function s(e){const t=ot(),{beforeStartSpan:o,idleTimeout:s,finalTimeout:a,heartbeatInterval:c}=n,u="pageload"===e.op;let l;if(u){const t=u?af("sentry-trace"):"",n=u?af("baggage"):void 0,{traceId:r,dsc:o,parentSpanId:i,sampled:s}=De(t,n);l={traceId:r,parentSpanId:i,parentSampled:s,...e,metadata:{...e.metadata,dynamicSamplingContext:o},trimEnd:!0}}else l={trimEnd:!0,...e};const d=o?o(l):l;d.metadata=d.name!==l.name?{...d.metadata,source:"custom"}:d.metadata,i.name=d.name,i.context=d,!1===d.sampled&&ws&&b.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),ws&&b.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:p}=xs,f=ts(t,d,s,a,!0,{location:p},c,u);return u&&xs.document&&(xs.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(xs.document.readyState)&&f.sendAutoFinishSignal()})),["interactive","complete"].includes(xs.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback((e=>{r(),qp(e)})),f}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){const r=e.getOptions(),{markBackgroundSpan:a,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:l,enableHTTPTimings:d,_experiments:p}=n,f=r&&r.tracePropagationTargets,h=f||n.tracePropagationTargets;let m;ws&&t&&f&&b.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let g=xs.location&&xs.location.href;if(e.on&&(e.on("startNavigationSpan",(e=>{m&&(ws&&b.log(`[Tracing] Finishing current transaction with op: ${Ue(m).op}`),m.end()),m=s({op:"navigation",...e})})),e.on("startPageLoadSpan",(e=>{m&&(ws&&b.log(`[Tracing] Finishing current transaction with op: ${Ue(m).op}`),m.end()),m=s({op:"pageload",...e})}))),n.instrumentPageLoad&&e.emit&&xs.location){const t={name:xs.location.pathname,startTimestamp:Se?Se/1e3:void 0,origin:"auto.pageload.browser",attributes:{[vi]:"url"}};of(e,t)}n.instrumentNavigation&&e.emit&&xs.location&&Rn((({to:t,from:n})=>{if(void 0===n&&g&&-1!==g.indexOf(t))g=void 0;else if(n!==t){g=void 0;const t={name:xs.location.pathname,origin:"auto.navigation.browser",attributes:{[vi]:"url"}};sf(e,t)}})),a&&Cp(),p.enableInteractions&&function(e,t){let n;const r=()=>{const{idleTimeout:r,finalTimeout:o,heartbeatInterval:i}=e,s="ui.action.click",a=Si();if(a&&a.op&&["navigation","pageload"].includes(a.op))return void(ws&&b.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`));if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name)return void(ws&&b.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`));const{location:c}=xs,u={name:t.name,op:s,trimEnd:!0,data:{[vi]:t.context?uf(t.context):"url"}};n=ts(ot(),u,r,o,!0,{location:c},i)};["click"].forEach((e=>{xs.document&&addEventListener(e,r,{once:!1,capture:!0})}))}(n,i),n.enableInp&&function(e,t){const n=({entries:n})=>{const r=Ft(),o=void 0!==r&&void 0!==r.getIntegrationByName?r.getIntegrationByName("Replay"):void 0,i=void 0!==o?o.getReplayId():void 0,s=Si(),a=Bt(),c=void 0!==a?a.getUser():void 0;n.forEach((n=>{if(function(e){return"duration"in e}(n)){const r=n.interactionId;if(void 0===r)return;const o=e[r],a=n.duration,u=n.startTime,l=Object.keys(e),d=l.length>0?l.reduce(((t,n)=>e[t].duratione[t])).some((e=>e.duration===a&&e.startTime===u)))return;if(!r)return;if(o)o.duration=Math.max(o.duration,a);else if(l.lengthe[d].duration){const n=t.name,o=t.context;n&&o&&(d&&Object.keys(e).length>=cf&&delete e[d],e[r]={routeName:n,duration:a,parentContext:o,user:c,activeTransaction:s,replayId:i,startTime:u})}}}))};ra("event",n),ra("first-input",n)}(o,i),Kp({traceFetch:c,traceXHR:u,tracePropagationTargets:h,shouldCreateSpanForRequest:l,enableHTTPTimings:d})},options:n}};function of(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const n=Ri();return"pageload"===(n&&Ue(n).op)?n:void 0}function sf(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const n=Ri();return"navigation"===(n&&Ue(n).op)?n:void 0}function af(e){const t=$(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}const cf=10;function uf(e){const t=e.attributes&&e.attributes[vi],n=e.data&&e.data[vi],r=e.metadata&&e.metadata.source;return t||n||r}const lf=100,df=5e3,pf=36e5;function ff(e,t){ce&&b.info(`[Offline]: ${e}`,t)}function hf(e){return t=>{const n=e(t),r=t.createStore?t.createStore(t):void 0;let o,i=df;function s(e){r&&(o&&clearTimeout(o),o=setTimeout((async()=>{o=void 0;const e=await r.pop();e&&(ff("Attempting to send previously queued event"),c(e).catch((e=>{ff("Failed to retry sending",e)})))}),e),"number"!=typeof o&&o.unref&&o.unref())}function a(){o||(s(i),i=Math.min(2*i,pf))}async function c(e){try{const t=await n.send(e);let r=lf;if(t)if(t.headers&&t.headers["retry-after"])r=qo(t.headers["retry-after"]);else if((t.statusCode||0)>=400)return t;return s(r),i=df,t}catch(n){if(r&&await function(e,n,r){return o=["replay_event","replay_recording","client_report"],!Dn(e,((e,t)=>o.includes(t)))&&(!t.shouldStore||t.shouldStore(e,n,r));var o}(e,n,i))return await r.insert(e),a(),ff("Error sending. Event queued",n),{};throw n}}return t.flushAtStartup&&a(),{send:c,flush:e=>n.flush(e)}}}function mf(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function gf(e){return mf(e.getAllKeys())}function vf(e){let t;function n(){return null==t&&(t=function(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=mf(n);return e=>r.then((n=>e(n.transaction(t,"readwrite").objectStore(t))))}(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{insert:async t=>{try{const r=await Ln(t,e.textEncoder);await function(e,t,n){return e((e=>gf(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),mf(e.transaction)}))))}(n(),r,e.maxQueueSize||30)}catch(e){}},pop:async()=>{try{const t=await function(e){return e((e=>gf(e).then((t=>{if(0!==t.length)return mf(e.get(t[0])).then((n=>(e.delete(t[0]),mf(e.transaction).then((()=>n)))))}))))}(n());if(t)return function(e,t,n){let r="string"==typeof e?t.encode(e):e;function o(e){const t=r.subarray(0,e);return r=r.subarray(e+1),t}function i(){let e=r.indexOf(10);return e<0&&(e=r.length),JSON.parse(n.decode(o(e)))}const s=i(),a=[];for(;r.length;){const e=i(),t="number"==typeof e.length?e.length:void 0;a.push([e,t?o(t):i()])}return[s,a]}(t,e.textEncoder||new TextEncoder,e.textDecoder||new TextDecoder)}catch(e){}}}}function yf(e){return function(e){return t=>e({...t,createStore:vf})}(hf(e))}const _f=1e6,bf=String(0),Sf="main";let wf="",kf="",xf="",Ef=dr.navigator&&dr.navigator.userAgent||"",Tf="";const Cf=dr.navigator&&dr.navigator.language||dr.navigator&&dr.navigator.languages&&dr.navigator.languages[0]||"",If=dr.navigator&&dr.navigator.userAgentData;var Of;function Af(e,t,n,r){if("transaction"!==r.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const o=function(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return"string"==typeof t&&32!==t.length&&er&&b.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(r),i=function(e){return!("thread_metadata"in e)}(c=n)?function(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[bf]:{name:Sf}}};if(!e.samples.length)return r;const o=e.samples[0].timestamp,i="number"==typeof performance.timeOrigin?performance.timeOrigin:Se||0,s=i-(Se||i);for(let i=0;i{if(wf=e.platform||"",xf=e.architecture||"",Tf=e.model||"",kf=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];Ef=`${t.brand} ${t.version}`}})).catch((e=>{}));const Mf=new WeakMap;function Pf(e){const t=h._sentryDebugIds;if(!t)return[];const n=Ft(),r=n&&n.getOptions(),o=r&&r.stackParser;if(!o)return[];let i;const s=Mf.get(o);s?i=s:(i=new Map,Mf.set(o,i));const a=Object.keys(t).reduce(((e,n)=>{let r;const s=i.get(n);s?r=s:(r=o(n),i.set(n,r));for(let o=r.length-1;o>=0;o--){const i=r[o],s=i&&i.filename;if(i&&s){e[s]=t[n];break}}return e}),{}),c=[];for(const t of e)t&&a[t]&&c.push({type:"sourcemap",code_file:t,debug_id:a[t]});return c}let jf=!1;const Df=3e4;function Nf(e){if(jf)return er&&b.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return er&&b.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const t=Ft(),n=t&&t.getOptions();if(!n)return er&&b.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return("number"!=typeof(o=r)&&"boolean"!=typeof o||"number"==typeof o&&isNaN(o)?(er&&b.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),0):!0===o||!1===o||!(o<0||o>1)||(er&&b.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${o}.`),0))?r?!!(!0===r||Math.random()(i&&(dr.clearTimeout(i),i=void 0),er&&b.log(`[Profiling] stopped profiling of transaction: ${Ue(e).description}`),t?(function(e,t){if(zf.set(e,t),zf.size>30){const e=zf.keys().next().value;zf.delete(e)}}(r,t),null):(er&&b.log(`[Profiling] profiler returned null profile for: ${Ue(e).description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null)))).catch((e=>(er&&b.log("[Profiling] error while stopping profiler:",e),null))):null}let i=dr.setTimeout((()=>{er&&b.log("[Profiling] max profile duration elapsed, stopping profiling for:",Ue(e).description),o()}),Df);const s=e.end.bind(e);return e.end=function(){return e?(o().then((()=>{e.setContext("profile",{profile_id:r,start_timestamp:t}),s()}),(()=>{s()})),e):s()},e}const Uf="BrowserProfiling",qf=()=>({name:Uf,setupOnce(){},setup(e){const t=Bt().getTransaction();t&&Rf(t)&&Nf(t)&&Bf(t),"function"==typeof e.on?(e.on("startTransaction",(e=>{Nf(e)&&Bf(e)})),e.on("beforeEnvelope",(e=>{if(!zf.size)return;const t=function(e){const t=[];return Dn(e,((e,n)=>{if("transaction"===n)for(let n=1;n{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Yf.forEach((n=>{t[n]=(...t)=>{e&&function(e){if(!("console"in Kf))return e();const t=Kf.console,n={};Yf.forEach((e=>{const r=t[e]&&t[e].__sentry_original__;e in t&&r&&(n[e]=t[e],t[e]=r)}));try{return e()}finally{Object.keys(n).forEach((e=>{t[e]=n[e]}))}}((()=>{Kf.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Yf.forEach((e=>{t[e]=()=>{}})),t}let Xf;Xf="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?function(e,t){const n=Kf,r=n.__SENTRY__=n.__SENTRY__||{};return r[e]||(r[e]=t())}("logger",Jf):Jf();const Zf=["fatal","error","warning","log","info","debug"];function Qf(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t{e in Kf.console&&function(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);if("function"==typeof o)try{!function(e,t){const n=t.prototype||{};var r,o;e.prototype=t.prototype=n,r=e,o=t,Object.defineProperty(r,"__sentry_original__",{value:o,writable:!0,configurable:!0})}(o,r)}catch(e){}e[t]=o}(Kf.console,e,(n=>(...r)=>{const o=t();o.getIntegration(eh)&&o.withScope((t=>{t.setLevel(function(e){return"warn"===e?"warning":Zf.includes(e)?e:"log"}(e)),t.setExtra("arguments",r),t.addEventProcessor((e=>(e.logger="console",e)));let n=Qf(r," ");"assert"===e?!1===r[0]&&(n=`Assertion failed: ${Qf(r.slice(1)," ")||"console.assert"}`,t.setExtra("arguments",r.slice(1)),o.captureMessage(n)):"error"===e&&r[0]instanceof Error?o.captureException(r[0]):o.captureMessage(n)})),n&&n.apply(Kf.console,r)}))}))}}eh.__initStatic();const th=JSON.parse('{"hash":"e4c1023403a1c574ee4f97302ef80f64ef7622d7"}');var nh=document.querySelector('meta[name~="machtfit-sentry-dsn"]'),rh=document.querySelector('meta[name~="machtfit-sentry-environment"]'),oh=nh&&nh.getAttribute("content"),ih=rh&&rh.getAttribute("content");!function(){if(oh){var e=null==th?void 0:th.hash;e?console.log("Running release ".concat(e,".")):console.warn("No release information. Initializing Sentry without a release."),ti({dsn:oh,release:e,integrations:[new eh({levels:["error"]})],environment:ih}),window.mfSentry=r}else console.warn("No sentry DSN URL configured. Not initializing sentry.")}(),n(4913),n(173),o((function(){var e=document.querySelector("#js-chat");if(e){var t=e.dataset,n=[].slice;ZammadChat.prototype.T=function(){var e,t,r,o,i,s;if(i=arguments[0],t=2<=arguments.length?n.call(arguments,1):[],this.options.lang&&(this.translations[this.options.lang]?((s=this.translations[this.options.lang])[i]||this.log.notice("Translation needed for '"+i+"'"),i=s[i]||i):this.log.notice("Translation '"+this.options.lang+"' needed!")),t)for(r=0,o=t.length;rChat with us!":"Chatte mit uns!","Scroll down to see new messages":"Scrolle nach unten um neue Nachrichten zu sehen",Online:"Online",Offline:"Offline",Connecting:"Verbinden","Connection re-established":"Verbindung wiederhergestellt",Today:"Heute",Send:"Senden","Chat closed by %s":"Chat beendet von %s","Compose your message…":"Deine Nachricht…","All colleagues are busy.":"Alle Kollegen sind belegt.","You are on waiting list position %s.":"Du bist in der Warteliste an der Position %s.","Start new conversation":"Neue Konversation starten","Since you didn't respond in the last %s minutes your conversation with %s got closed.":"Da du in den letzten %s Minuten nichts geschrieben haben wurde deine Konversation mit %s geschlossen.","Since you didn't respond in the last %s minutes your conversation got closed.":"Da du in den letzten %s Minuten nichts geschrieben hast wurde deine Konversation geschlossen.","We are sorry, it takes longer as expected to get an empty slot. Please try again later or send us an email. Thank you!":"Es tut uns leid, es dauert länger als erwartet, um einen freien Platz zu erhalten. Bitte versuche es zu einem späteren Zeitpunkt noch einmal oder schicke uns eine E-Mail an service@machtfit.de. Vielen Dank!"},en:{"Chat with us!":"Chat with us!","Scroll down to see new messages":"Scroll down to see new messages",Online:"Online",Offline:"Offline",Connecting:"Connecting","Connection re-established":"Connection re-established",Today:"Today",Send:"Send","Chat closed by %s":"Chat closed by %s","Compose your message…":"Compose your message…","All colleagues are busy.":"All colleagues are busy.","You are on waiting list position %s.":"You are on waiting list position %s.","Start new conversation":"Start new conversation","Since you didn't respond in the last %s minutes your conversation with %s got closed.":"Since you didn't respond in the last %s minutes your conversation with %s got closed.","Since you didn't respond in the last %s minutes your conversation got closed.":"Since you didn't respond in the last %s minutes your conversation got closed.","We are sorry, it takes longer as expected to get an empty slot. Please try again later or send us an email. Thank you!":"We are sorry, it takes longer as expected to get an empty slot. Please try again later or send us an email to service@machtfit.de. Thank you!"}};var r=new ZammadChat({fontSize:"12px",background:t.color,flat:!0,chatId:1,idleTimeout:3,waitingListTimeout:10,inactiveTimeout:10});r.onConnectionEstablished=function(e){ZammadChat.prototype.onConnectionEstablished.call(r,e),r.send("chat_session_notice",{session_id:r.sessionId,message:t.email})}}})),o((function(){["mens_health_week_banner","mens_health_week_banner_2","machtfit_live_june_2025"].forEach((function(e){return function(e){var t=document.getElementById(e);if(t){var n="hideBanner_"+e;if("true"===i(n))t.classList.add("hide");else{var r=t.querySelector(".close");if(r){var o=new Date(Date.now()+864e6);r.addEventListener("click",(function(){document.cookie="".concat(n,"=true; expires=").concat(o.toUTCString()),t.classList.add("hide")}))}}}}(e)}))}))})()})(); //# sourceMappingURL=base.bundle.js.map