1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{8679:function(t,e,n){"use strict";var r=n(9864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(t){return r.isMemo(t)?a:s[t.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&t(e,i,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=u(e),g=u(n),v=0;v<a.length;++v){var m=a[v];if(!o[m]&&!(r&&r[m])&&!(g&&g[m])&&!(s&&s[m])){var y=f(n,m);try{c(e,m,y)}catch(t){}}}}return e}},1887:function(t,e,n){"use strict";let r;n.d(e,{Jc:function(){return tC},$G:function(){return m}});var i=n(7294);n(1739),Object.create(null);let o={};function a(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];"string"==typeof e[0]&&o[e[0]]||("string"==typeof e[0]&&(o[e[0]]=new Date),function(){if(console&&console.warn){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];"string"==typeof e[0]&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}(...e))}let s=(t,e)=>()=>{if(t.isInitialized)e();else{let n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}};function u(t,e,n){t.loadNamespaces(e,s(t,n))}function c(t,e,n,r){"string"==typeof n&&(n=[n]),n.forEach(e=>{0>t.options.ns.indexOf(e)&&t.options.ns.push(e)}),t.loadLanguages(e,s(t,r))}let l=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,d={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"â¦","…":"â¦","/":"/","/":"/"},f=t=>d[t],p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(l,f)},h=(0,i.createContext)();class g{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}let v=(t,e)=>{let n=(0,i.useRef)();return(0,i.useEffect)(()=>{n.current=e?n.current:t},[t,e]),n.current};function m(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{i18n:n}=e,{i18n:o,defaultNS:s}=(0,i.useContext)(h)||{},l=n||o||r;if(l&&!l.reportNamespaces&&(l.reportNamespaces=new g),!l){a("You will need to pass in an i18next instance by using initReactI18next");let t=(t,e)=>"string"==typeof e?e:e&&"object"==typeof e&&"string"==typeof e.defaultValue?e.defaultValue:Array.isArray(t)?t[t.length-1]:t,e=[t,{},!1];return e.t=t,e.i18n={},e.ready=!1,e}l.options.react&&void 0!==l.options.react.wait&&a("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let d={...p,...l.options.react,...e},{useSuspense:f,keyPrefix:m}=d,y=t||s||l.options&&l.options.defaultNS;y="string"==typeof y?[y]:y||["translation"],l.reportNamespaces.addUsedNamespaces&&l.reportNamespaces.addUsedNamespaces(y);let b=(l.isInitialized||l.initializedStoreOnce)&&y.every(t=>(function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.languages&&e.languages.length?void 0!==e.options.ignoreJSONStructure?e.hasLoadedNamespace(t,{lng:n.lng,precheck:(e,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!r(e.isLanguageChangingTo,t))return!1}}):function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.languages[0],i=!!e.options&&e.options.fallbackLng,o=e.languages[e.languages.length-1];if("cimode"===r.toLowerCase())return!0;let a=(t,n)=>{let r=e.services.backendConnector.state[`${t}|${n}`];return -1===r||2===r};return(!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1)||!e.services.backendConnector.backend||!e.isLanguageChangingTo||!!a(e.isLanguageChangingTo,t))&&!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}(t,e,n):(a("i18n.languages were undefined or empty",e.languages),!0)})(t,l,d));function w(){return l.getFixedT(e.lng||null,"fallback"===d.nsMode?y:y[0],m)}let[_,x]=(0,i.useState)(w),S=y.join();e.lng&&(S=`${e.lng}${S}`);let C=v(S),k=(0,i.useRef)(!0);(0,i.useEffect)(()=>{let{bindI18n:t,bindI18nStore:n}=d;function r(){k.current&&x(w)}return k.current=!0,b||f||(e.lng?c(l,e.lng,y,()=>{k.current&&x(w)}
1):u(l,y,()=>{k.current&&x(w)})),b&&C&&C!==S&&k.current&&x(w),t&&l&&l.on(t,r),n&&l&&l.store.on(n,r),()=>{k.current=!1,t&&l&&t.split(" ").forEach(t=>l.off(t,r)),n&&l&&n.split(" ").forEach(t=>l.store.off(t,r))}},[l,S]);let E=(0,i.useRef)(!0);(0,i.useEffect)(()=>{k.current&&!E.current&&x(w),E.current=!1},[l,m]);let T=[_,l,b];if(T.t=_,T.i18n=l,T.ready=b,b||!b&&!f)return T;throw new Promise(t=>{e.lng?c(l,e.lng,y,()=>t()):u(l,y,()=>t())})}function y(t){let{i18n:e,defaultNS:n,children:r}=t,o=(0,i.useMemo)(()=>({i18n:e,defaultNS:n}),[e,n]);return(0,i.createElement)(h.Provider,{value:o},r)}var b=n(7462),w=n(1002);function _(t,e,n){var r;return(r=function(t,e){if("object"!=(0,w.Z)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=(0,w.Z)(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==(0,w.Z)(r)?r:r+"")in t)?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var x=n(8679),S=n.n(x);function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function k(t,e){if(t){if("string"==typeof t)return C(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,e):void 0}}function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||k(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(({}).hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],-1===e.indexOf(n)&&({}).propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var O={defaultNS:"common",errorStackTraceLimit:0,i18n:{defaultLocale:"en",locales:["en"]},get initImmediate(){return"undefined"!=typeof window},interpolation:{escapeValue:!1},load:"currentOnly",localeExtension:"json",localePath:"./public/locales",localeStructure:"{{lng}}/{{ns}}",react:{useSuspense:!1},reloadOnPrerender:!1,serializeConfig:!0,use:[]},R="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,A=["i18n"],P=["i18n"];function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach(function(e){_(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var L=["backend","detection"],M=function(t){if("string"!=typeof(null==t?void 0:t.lng))throw Error("config.lng was not passed into createConfig");var e,n,r,i=t.i18n,o=T(t,A),a=O.i18n,s=I(I(I(I({},T(O,P)),o),a),i),u=s.defaultNS,c=s.lng,l=s.localeExtension,d=s.localePath,f=s.nonExplicitSupportedLngs,p=s.locales.filter(function(t){return"default"!==t});if("cimode"===c)return s;if(void 0===s.fallbackLng&&(s.fallbackLng=s.defaultLocale,"default"===s.fallbackLng)){var h=E(p,1);s.fallbackLng=h[0]}var g=null==t||null===(e=t.interpolation)||void 0===e?void 0:e.prefix,v=null==t||null===(n=t.interpolation)||void 0===n?void 0:n.suffix,m=null!=g?g:"{{",y=null!=v?v:"}}";"string"!=typeof(null==t?void 0:t.localeStructure)&&(g||v)&&(s.localeStructure="".concat(m,"lng").concat(y,"/").concat(m,"ns").concat(y));var b=s.fallbackLng,_=s.localeStructure;if(f){var x=function(t,e){var n=E(e.split("-"),1)[0];return t[e]=[n],t};if("string"==typeof b)s.fallbackLng=s.locales.filter(function(t){return t.includes("-")}).reduce(x,{default:[b]});else if(Array.isArray(b))s.fallbackLng=s.locales.filter(function(t){return t.includes("-")}).reduce(x,{default:b});else if("object"===(0,w.Z)(b))s.fallbackLng=Object.entries(s.fallbackLng).reduce(function(t,e){var n=E(e,2),r=n[0],i=n[1];return t[r]=r.includes("-")?Array.from(new Set([r.split("-")[0]].concat(function(t){if(Array.isArray(t))return C(t)}(i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||k(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):i,t},b);else if("function"==typeof b)throw Error("If nonExplicitSupportedLngs is true, no functions are allowed for fallbackLng")}return(null==t||null===(r=t.use)||void 0===r?void 0:r.some(function(t){return"backend"===t.type}))||("string"==typeof d?s.backend={addPath:"".concat(d,"/").concat(_,".missing.").concat(l),loadPath:"".concat(d,"/").concat(_,".").concat(l)}:"function"!=typeof d||(s.backend={addPath:function(t,e){return d(t,e,!0)},loadPath:function(t,e){return d(t,e,!1)}})),"string"==typeof s.ns||Array.isArray(s.ns)||(s.ns=[u]),L.forEac
1h(function(e){t[e]&&(s[e]=I(I({},s[e]),t[e]))}),s};let D={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class F{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||D,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}warn(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}error(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}deprecate(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(t,e,n,r){return r&&!this.debug?null:("string"==typeof t[0]&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[e](t))}create(t){return new F(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new F(this.logger,t)}}var j=new F;class U{constructor(){this.observers={}}on(t,e){return t.split(" ").forEach(t=>{this.observers[t]=this.observers[t]||[],this.observers[t].push(e)}),this}off(t,e){if(this.observers[t]){if(!e){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(t=>t!==e)}}emit(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.observers[t]&&[].concat(this.observers[t]).forEach(t=>{t(...n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(e=>{e.apply(e,[t,...n])})}}function z(){let t,e;let n=new Promise((n,r)=>{t=n,e=r});return n.resolve=t,n.reject=e,n}function V(t){return null==t?"":""+t}function q(t,e,n){function r(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function i(){return!t||"string"==typeof t}let o="string"!=typeof e?[].concat(e):e.split(".");for(;o.length>1;){if(i())return{};let e=r(o.shift());!t[e]&&n&&(t[e]=new n),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{}}return i()?{}:{obj:t,k:r(o.shift())}}function B(t,e,n){let{obj:r,k:i}=q(t,e,Object);r[i]=n}function $(t,e){let{obj:n,k:r}=q(t,e);if(n)return n[r]}function H(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Z={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function K(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,t=>Z[t]):t}let W=[" ",",","?","!",";"];function G(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!t)return;if(t[e])return t[e];let r=e.split(n),i=t;for(let t=0;t<r.length;++t){if(!i||"string"==typeof i[r[t]]&&t+1<r.length)return;if(void 0===i[r[t]]){let o=2,a=r.slice(t,t+o).join(n),s=i[a];for(;void 0===s&&r.length>t+o;)o++,s=i[a=r.slice(t,t+o).join(n)];if(void 0===s)return;if(null===s)return null;if(e.endsWith(a)){if("string"==typeof s)return s;if(a&&"string"==typeof s[a])return s[a]}let u=r.slice(t+o).join(n);if(u)return G(s,u,n);return}i=i[r[t]]}return i}function Q(t){return t&&t.indexOf("_")>0?t.replace("_","-"):t}class Y extends U{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){0>this.options.ns.indexOf(t)&&this.options.ns.push(t)}removeNamespaces(t){let e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[t,e];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(a=t.split("."));let s=$(this.data,a);return s||!o||"string"!=typeof n?s:G(this.data&&this.data[t]&&this.data[t][e],n,i)}addResource(t,e,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[t,e];n&&(a=a.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(a=t.split("."),r=e,e=a[1]),this.addNamespaces(e),B(this.data,a,r),i.silent||this.emit
1("added",t,e,n,r)}addResources(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let r in n)("string"==typeof n[r]||"[object Array]"===Object.prototype.toString.apply(n[r]))&&this.addResource(t,e,r,n[r],{silent:!0});r.silent||this.emit("added",t,e,n)}addResourceBundle(t,e,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[t,e];t.indexOf(".")>-1&&(a=t.split("."),r=n,n=e,e=a[1]),this.addNamespaces(e);let s=$(this.data,a)||{};r?function t(e,n,r){for(let i in n)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?r&&(e[i]=n[i]):t(e[i],n[i],r):e[i]=n[i]);return e}(s,n,i):s={...s,...n},B(this.data,a,s),o.silent||this.emit("added",t,e,n)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return(e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(t,e)}:this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find(t=>e[t]&&Object.keys(e[t]).length>0)}toJSON(){return this.data}}var J={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,i){return t.forEach(t=>{this.processors[t]&&(e=this.processors[t].process(e,n,r,i))}),e}};let X={};class tt extends U{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(t,e,n){t.forEach(t=>{e[t]&&(n[t]=e[t])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],t,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=j.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;let n=this.resolve(t,e);return n&&void 0!==n.res}extractFromKey(t,e){let n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,i=e.ns||this.options.defaultNS||[],o=n&&t.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!e.keySeparator&&!this.options.userDefinedNsSeparator&&!e.nsSeparator&&!function(t,e,n){e=e||"",n=n||"";let r=W.filter(t=>0>e.indexOf(t)&&0>n.indexOf(t));if(0===r.length)return!0;let i=RegExp(`(${r.map(t=>"?"===t?"\\?":t).join("|")})`),o=!i.test(t);if(!o){let e=t.indexOf(n);e>0&&!i.test(t.substring(0,e))&&(o=!0)}return o}(t,n,r);if(o&&!a){let e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:i};let o=t.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),t=o.join(r)}return"string"==typeof i&&(i=[i]),{key:t,namespaces:i}}translate(t,e,n){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);let r=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,i=void 0!==e.ke
1ySeparator?e.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(t[t.length-1],e),s=a[a.length-1],u=e.lng||this.language,c=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(c){let t=e.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${t}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(e)}:`${s}${t}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(e)}:o}let l=this.resolve(t,e),d=l&&l.res,f=l&&l.usedKey||o,p=l&&l.exactUsedKey||o,h=Object.prototype.toString.apply(d),g=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,m="string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d;if(v&&d&&m&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(h)&&!("string"==typeof g&&"[object Array]"===h)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...e,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(l.res=t,l.usedParams=this.getUsedParamsDetails(e),l):t}if(i){let t="[object Array]"===h,n=t?[]:{},r=t?p:f;for(let t in d)if(Object.prototype.hasOwnProperty.call(d,t)){let o=`${r}${i}${t}`;n[t]=this.translate(o,{...e,joinArrays:!1,ns:a}),n[t]===o&&(n[t]=d[t])}d=n}}else if(v&&"string"==typeof g&&"[object Array]"===h)(d=d.join(g))&&(d=this.extendTranslation(d,t,e,n));else{let r=!1,a=!1,c=void 0!==e.count&&"string"!=typeof e.count,f=tt.hasDefaultValue(e),p=c?this.pluralResolver.getSuffix(u,e.count,e):"",h=e.ordinal&&c?this.pluralResolver.getSuffix(u,e.count,{ordinal:!1}):"",g=e[`defaultValue${p}`]||e[`defaultValue${h}`]||e.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=g),this.isValidLookup(d)||(a=!0,d=o);let v=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,m=f&&g!==d&&this.options.updateMissing;if(a||r||m){if(this.logger.log(m?"updateKey":"missingKey",u,s,o,m?g:d),i){let t=this.resolve(o,{...e,keySeparator:!1});t&&t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let t=[],n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let e=0;e<n.length;e++)t.push(n[e]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(e.lng||this.language):t.push(e.lng||this.language);let r=(t,n,r)=>{let i=f&&r!==d?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(t,s,n,i,m,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(t,s,n,i,m,e),this.emit("missingKey",t,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?t.forEach(t=>{this.pluralResolver.getSuffixes(t,e).forEach(n=>{r([t],o+n,e[`defaultValue${n}`]||g)})}):r(t,o,g))}d=this.extendTranslation(d,t,e,l,n),a&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${o}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(l.res=d,l.usedParams=this.getUsedParamsDetails(e),l):d}extendTranslation(t,e,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){let a;n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let s="string"==typeof t&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){let e=t.match(this.interpolator.nestingRegexp);a=e&&e.length}let u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),t=this.interpolator.interpolate(t,u,n.lng||this.language,n),s){let e=t.match(this.interpolator.nestingRegexp);a<(e&&e.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(t=this.interpolator.nest(t,function(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${e[0]}`),null):o.translate(...r,e)},n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,s="string"==typeof a?[a]:a;return null!=t&&s&&s.length&&!1!==n.applyPostProcessor&&(t=J.handle(s,t,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let e,n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach(t=>{if(this.isValidLookup(e))return;let s=this.extractFromKey(t,a),u=s.key;n=u;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let l=void 0!==a.count&&"string"!=typeof a.count,d=l&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);
1c.forEach(t=>{this.isValidLookup(e)||(o=t,!X[`${p[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(X[`${p[0]}-${t}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{let o;if(this.isValidLookup(e))return;i=n;let s=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(s,u,n,t,a);else{let t;l&&(t=this.pluralResolver.getSuffix(n,a.count,a));let e=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(s.push(u+t),a.ordinal&&0===t.indexOf(r)&&s.push(u+t.replace(r,this.options.pluralSeparator)),d&&s.push(u+e)),f){let n=`${u}${this.options.contextSeparator}${a.context}`;s.push(n),l&&(s.push(n+t),a.ordinal&&0===t.indexOf(r)&&s.push(n+t.replace(r,this.options.pluralSeparator)),d&&s.push(n+e))}}for(;o=s.pop();)this.isValidLookup(e)||(r=o,e=this.getResource(n,t,o,a))}))})}),{res:e,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(t){return void 0!==t&&!(!this.options.returnNull&&null===t)&&!(!this.options.returnEmptyString&&""===t)}getResource(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,r):this.resourceStore.getResource(t,e,n,r)}getUsedParamsDetails(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.replace&&"string"!=typeof t.replace,n=e?t.replace:t;if(e&&void 0!==t.count&&(n.count=t.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!e)for(let t of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[t];return n}static hasDefaultValue(t){let e="defaultValue";for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e===n.substring(0,e.length)&&void 0!==t[n])return!0;return!1}}function te(t){return t.charAt(0).toUpperCase()+t.slice(1)}class tn{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=j.create("languageUtils")}getScriptPartFromCode(t){if(!(t=Q(t))||0>t.indexOf("-"))return null;let e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase())?null:this.formatLanguageCode(e.join("-"))}getLanguagePartFromCode(t){if(!(t=Q(t))||0>t.indexOf("-"))return t;let e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if("string"==typeof t&&t.indexOf("-")>-1){let e=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map(t=>t.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=te(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=te(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=te(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){let e;return t?(t.forEach(t=>{if(e)return;let n=this.formatLanguageCode(t);(!this.options.supportedLngs||this.isSupportedCode(n))&&(e=n)}),!e&&this.options.supportedLngs&&t.forEach(t=>{if(e)return;let n=this.getLanguagePartFromCode(t);if(this.isSupportedCode(n))return e=n;e=this.options.supportedLngs.find(t=>{if(t===n||!(0>t.indexOf("-")&&0>n.indexOf("-"))&&0===t.indexOf(n))return t})}),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e):null}getFallbackCodes(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];let n=t[e];
1return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}toResolveHierarchy(t,e){let n=this.getFallbackCodes(e||this.options.fallbackLng||[],t),r=[],i=t=>{t&&(this.isSupportedCode(t)?r.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return"string"==typeof t&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(t))):"string"==typeof t&&i(this.formatLanguageCode(t)),n.forEach(t=>{0>r.indexOf(t)&&i(this.formatLanguageCode(t))}),r}}let tr=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ti={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}},to=["v1","v2","v3"],ta=["v4"],ts={zero:0,one:1,two:2,few:3,many:4,other:5};class tu{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=j.create("pluralResolver"),(!this.options.compatibilityJSON||ta.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){let t={};return tr.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:ti[e.fc]}})}),t}()}addRule(t,e){this.rules[t]=e}getRule(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Q(t),{type:e.ordinal?"ordinal":"cardinal"})}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
1return this.getSuffixes(t,n).map(t=>`${e}${t}`)}getSuffixes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(t,e);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((t,e)=>ts[t]-ts[e]).map(t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`):n.numbers.map(n=>this.getSuffix(t,n,e)):[]}getSuffix(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(t,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(e)}`:this.getSuffixRetroCompatible(r,e):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,e){let n=t.noAbs?t.plurals(e):t.plurals(Math.abs(e)),r=t.numbers[n];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===r?r="plural":1===r&&(r=""));let i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}
1shouldUseIntlApi(){return!to.includes(this.options.compatibilityJSON)}}function tc(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=function(t,e,n){let r=$(t,n);return void 0!==r?r:$(e,n)}(t,e,n);return!o&&i&&"string"==typeof n&&void 0===(o=G(t,n,r))&&(o=G(e,n,r)),o}class tl{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=j.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(t=>t),this.init(t)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let e=t.interpolation;this.escape=void 0!==e.escape?e.escape:K,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?H(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?H(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?H(e.nestingPrefix):e.nestingPrefixEscaped||H("$t("),this.nestingSuffix=e.nestingSuffix?H(e.nestingSuffix):e.nestingSuffixEscaped||H(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=RegExp(t,"g");let e=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=RegExp(e,"g");let n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=RegExp(n,"g")}interpolate(t,e,n,r){let i,o,a;let s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(t){return t.replace(/\$/g,"$$$$")}let c=t=>{if(0>t.indexOf(this.formatSeparator)){let i=tc(e,s,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...e,interpolationkey:t}):i}let i=t.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(tc(e,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...e,interpolationkey:o})};this.resetRegExp();let l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>u(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?u(this.escape(t)):u(t)}].forEach(e=>{for(a=0;i=e.regex.exec(t);){let n=i[1].trim();if(void 0===(o=c(n))){if("function"==typeof l){let e=l(t,i,r);o="string"==typeof e?e:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else if(d){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${t}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=V(o));let s=e.safeValue(o);if(t=t.replace(i[0],s),d?(e.regex.lastIndex+=o.length,e.regex.lastIndex-=i[0].length):e.regex.lastIndex=0,++a>=this.maxReplaces)break}}),t}nest(t,e){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(t,e){let n=this.nestingOptionsSeparator;if(0>t.indexOf(n))return t;let r=t.split(RegExp(`${n}[ ]*{`)),o=`{${r[1]}`;t=r[0];let a=(o=this.interpolate(o,i)).match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),e&&(i={...e,...i})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${n}${o}`}return delete i.defaultValue,t}for(;n=this.nestingRegexp.exec(t);){let s=[];(i=(i={...o}).replace&&"string"!=typeof i.replace?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){let t=n[1].split(this.formatSeparator).map(t=>t.trim());n[1]=t.shift(),s=t,u=!0}if((r=e(a.call(this,n[1].trim(),i),i))&&n[0]===t&&"string"!=typeof r)return r;"string"!=typeof r&&(r=V(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),r=""),u&&(r=s.reduce((t,e)=>this.format(t,e,o.lng,{...o,interpolationkey:n[1].trim()}),r.trim())),t=t.replace(n[0],r),this.regexp.lastIndex=0}return t}}function td(t){let e={};return function(n,r,i){let o=r+JSON.stringify(i),a=e[o];return a||(a=t(Q(r),i),e[o]=a),a(n)}}class tf{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=j.create("formatter"),this.options=t,this.formats={number:td((t,e)=>{let n=new Intl.NumberFormat(t,{...e});return t=>n.format(t)}),currency:td((t,e)=>{let n=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>n.format(t)}),datetime:td((t,e)=>{let n=new Intl.DateTimeFormat(t,{...e});return t=>n.format(t)}),relativetime:td((t,e)=>{let n=new Intl.RelativeTimeFormat(t,{...e});return t=>n.format(t,e.range||"day")}),list:td((t,e)=>{let n=new Intl.ListFormat(t,{...e});return t=>n.format(t)})},this.init(t)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=e.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=td(e)}format(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e.split(this.formatSeparator).reduce((t,e)=>{let{formatName:i,formatOptions:o}=function(t){let e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){let r=t.split("(");e=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);"currency"===e&&0>i.indexOf(":")?n.currency||(n.currency=i.trim()):"relativetime"===e&&0>i.indexOf(":")?n.range||(n.range=i.trim()):i.split(";").forEach(t=>{if(!t)return;let[e,...r]=t.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,"");n[e.trim()]||(n[e.trim()]=i),"false"===i&&(n[e.trim()]=!1),"true"===i&&(n[e.trim()]=!0),isNaN(i)||(n[e.trim()]=parseInt(i,10))})}return{formatName:e,formatOptions:n}}(e);if(this.formats[i]){let e=t;try{let a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;e=this.formats[i](t,s,{...o,...r,...a})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${i}`),t},t)}}class tp extends U{constructor(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=j.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(t,e,n,r){let i={},o={},a={},s={};return t.forEach(t=>{let r=!0;
1e.forEach(e=>{let a=`${t}|${e}`;!n.reload&&this.store.hasResourceBundle(t,e)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[e]&&(s[e]=!0)))}),r||(a[t]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(t,e,n){let r=t.split("|"),i=r[0],o=r[1];e&&this.emit("failedLoading",i,o,e),n&&this.store.addResourceBundle(i,o,n),this.state[t]=e?-1:2;let a={};this.queue.forEach(n=>{(function(t,e,n,r){let{obj:i,k:o}=q(t,e,Object);i[o]=i[o]||[],i[o].push(n)})(n.loaded,[i],o),void 0!==n.pending[t]&&(delete n.pending[t],n.pendingCount--),e&&n.errors.push(e),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(t=>{a[t]||(a[t]={});let e=n.loaded[t];e.length&&e.forEach(e=>{void 0===a[t][e]&&(a[t][e]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(t=>!t.done)}read(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:e,fcName:n,tried:r,wait:i,callback:o});return}this.readingCalls++;let a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}if(a&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,e,n,r+1,2*i,o)},i);return}o(a,s)},s=this.backend[n].bind(this.backend);if(2===s.length){try{let n=s(t,e);n&&"function"==typeof n.then?n.then(t=>a(null,t)).catch(a):a(null,n)}catch(t){a(t)}return}return s(t,e,a)}prepareLoading(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);let i=this.queueLoad(t,e,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(t=>{this.loadOne(t)})}load(t,e,n){this.prepareLoading(t,e,{},n)}reload(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}loadOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,(n,o)=>{n&&this.logger.warn(`${e}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${e}loaded namespace ${i} for language ${r}`,o),this.loaded(t,n,o)})}saveMissing(t,e,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e)){this.logger.warn(`did not save key "${n}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=n&&""!==n){if(this.backend&&this.backend.create){let s={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let i;(i=5===u.length?u(t,e,n,r,s):u(t,e,n,r))&&"function"==typeof i.then?i.then(t=>a(null,t)).catch(a):a(null,i)}catch(t){a(t)}else u(t,e,n,r,a,s)}t&&t[0]&&this.store.addResource(t[0],e,n,r)}}}function th(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let e={};if("object"==typeof t[1]&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){let n=t[3]||t[2];
1Object.keys(n).forEach(t=>{e[t]=n[t]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function tg(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&0>t.supportedLngs.indexOf("cimode")&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function tv(){}class tm extends U{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;if(super(),this.options=tg(t),this.services={},this.logger=j,this.modules={external:[]},!function(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(e=>{"function"==typeof t[e]&&(t[e]=t[e].bind(t))})}(this),e&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,e),this;setTimeout(()=>{this.init(t,e)},0)}}init(){var t=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:0>e.ns.indexOf("translation")&&(e.defaultNS=e.ns[0]));let r=th();function i(t){return t?"function"==typeof t?new t:t:null}if(this.options={...r,...this.options,...tg(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}
1),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){let e;this.modules.logger?j.init(i(this.modules.logger),this.options):j.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=tf);let n=new tn(this.options);this.store=new Y(this.options.resources,this.options);let o=this.services;o.logger=j,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new tu(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),e&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(o.formatter=i(e),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new tl(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new tp(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit(e,...r)}),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new tt(this.services,this.options),this.translator.on("*",function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit(e,...r)}),this.modules.external.forEach(t=>{t.init&&t.init(this)})}if(this.format=this.options.interpolation.format,n||(n=tv),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=function(){return t.store[e](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=function(){return t.store[e](...arguments),t}});let o=z(),a=()=>{let t=(t,e)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(e),n(t,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),o}loadResources(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tv,n=e,r="string"==typeof t?t:this.language;if("function"==typeof t&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();let t=[],e=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach(e=>{"cimode"!==e&&0>t.indexOf(e)&&t.push(e)})};r?e(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(t=>e(t)),this.options.preload&&this.options.preload.forEach(t=>e(t)),this.services.backendConnector.load(t,this.options.ns,t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(t)})}else n(null)}reloadResources(t,e,n){let r=z();return t||(t=this.languages),e||(e=this.options.ns),n||(n=tv),this.services.backendConnector.reload(t,e,t=>{r.resolve(),n(t)}),r}use(t){if(!t)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&J.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(let t=0;t<this.languages.length;t++){let e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(t,e){var n=this;this.isLanguageChangingTo=t;let r=z();
1this.emit("languageChanging",t);let i=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},o=(t,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),e&&e(t,function(){return n.t(...arguments)})},a=e=>{t||e||!this.services.languageDetector||(e=[]);let n="string"==typeof e?e:this.services.languageUtils.getBestMatchFromCodes(e);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,t=>{o(t,n)})};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t):a(this.services.languageDetector.detect()),r}getFixedT(t,e,n){var r=this;let i=function(t,e){let o,a;if("object"!=typeof e){for(var s=arguments.length,u=Array(s>2?s-2:0),c=2;c<s;c++)u[c-2]=arguments[c];o=r.options.overloadTranslationOptionHandler([t,e].concat(u))}else o={...e};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,o.keyPrefix=o.keyPrefix||n||i.keyPrefix;let l=r.options.keySeparator||".";return a=o.keyPrefix&&Array.isArray(t)?t.map(t=>`${o.keyPrefix}${l}${t}`):o.keyPrefix?`${o.keyPrefix}${l}${t}`:t,r.t(a,o)};return"string"==typeof t?i.lng=t:i.lngs=t,i.ns=e,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=e.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let o=(t,e)=>{let n=this.services.backendConnector.state[`${t}|${e}`];return -1===n||2===n};if(e.precheck){let t=e.precheck(this,o);if(void 0!==t)return t}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,t)&&(!r||o(i,t)))}loadNamespaces(t,e){let n=z();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach(t=>{0>this.options.ns.indexOf(t)&&this.options.ns.push(t)}),this.loadResources(t=>{n.resolve(),e&&e(t)}),n):(e&&e(),Promise.resolve())}loadLanguages(t,e){let n=z();"string"==typeof t&&(t=[t]);let r=this.options.preload||[],i=t.filter(t=>0>r.indexOf(t));return i.length?(this.options.preload=r.concat(i),this.loadResources(t=>{n.resolve(),e&&e(t)}),n):(e&&e(),Promise.resolve())}dir(t){return(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),t)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new tn(th())).getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new tm(t,e)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tv,n=t.forkResourceStore;n&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},i=new tm(r);return(void 0!==t.debug||void 0!==t.prefix)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(t=>{i[t]=this[t]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Y(this.store.data,r),i.services.resourceStore=i.store),i.translator=new tt(i.services,r),i.translator.on("*",function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];i.emit(t,...n)}),i.init(r,e),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let ty=tm.createInstance();ty.createInstance=tm.createInstance,ty.createInstance,ty.dir,ty.init,ty.loadResources,ty.reloadResources,ty.use,ty.changeLanguage,ty.getFixedT,ty.t,ty.exists,ty.setDefaultNamespace,ty.hasLoadedNamespace,ty.loadNamespaces,ty.loadLanguages;var tb=function(t){void 0===t.ns&&(t.ns=[]);var e,n,r=ty.createInstance(t);return r.isInitialized?e=Promise.resolve(ty.t):(null==t||null===(n=t.use)||void 0===n||n.forEach(function(t){return r.use(t)}),"function"==typeof t.onPreInitI18next&&t.onPreInitI18next(r),e=r.init(t)),{i18n:r,initPromise:e}},tw=i.createElement;function t_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?t_(Object(n),!0).forEach(function(e){_(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):t_(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var tS=function(t,e){if(e&&t.isInitialized)for(var n=0,r=Object.keys(e);n<r.length;n++)for(var i=r[n],o=0,a=Object.keys(e[i]);o<a.length;o++){var s,u=a[o];null!=t&&null!==(s=t.store)&&void 0!==s&&s.data&&t.store.data[i]&&t.store.data[i][u]||t.addResourceBundle(i,u,e[i][u],!0,!0)}},tC=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return S()(function(n){var r,o,a=(n.pageProps||{})._nextI18Next,s=null!==(r=null==a?void 0:a.initialLocale)&&void 0!==r?r:null==n||null===(o=n.router)||void 0===o?void 0:o.locale,u=null==a?void 0:a.ns,c=(0,i.useRef)(null),l=(0,i.useMemo)(function(){if(!a&&!e)return null;var t,n=null!=e?e:null==a?void 0:a.userConfig;if(!n)throw Error("appWithTranslation was called without a next-i18next config");if(!(null!=n&&n.i18n))throw Error("appWithTranslation was called without config.i18n");if(!(null!=n&&null!==(t=n.i18n)&&void 0!==t&&t.defaultLocale))throw Error("config.i18n does not include a defaultLocale property");var r=(a||{}).initialI18nStore,i=null!=e&&e.resources?e.resources:r;s||(s=n.i18n.defaultLocale);var o=c.current;return o?tS(o,i):(tS(o=tb(tx(tx({},M(tx(tx({},n),{},{lng:s}))),{},{lng:s,ns:u,resources:i})).i18n,i),c.current=o),o},[a,s,u]);return R(function(){l&&s&&l.changeLanguage(s)},[l,s]),null!==l?tw(y,{i18n:l},tw(t,n)):tw(t,(0,b.Z)({key:s},n))},t)}},5171:function(t,e,n){"use strict";var r=n(4865),i=n(7294),o=n(1163),a=i.memo(function(t){var e=t.height,n=void 0===e?"2px":e,a=t.color,s=void 0===a?"#29D":a,u=t.delay,c=void 0===u?0:u,l=t.options,d=t.customGlobalCss,f=t.disableSameRoute,p=void 0!==f&&f,h=i.createElement("style",null,d||"#nprogress{pointer-events:none}#nprogress .bar{background:".concat(s,";position:fixed;z-index:99999;top:0;left:0;width:100%;height:").concat("string"==typeof n?n:"".concat(n,"px"),"}#nprogress .peg,.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}#nprogress .peg{display:block;right:0;width:100px;height:100%;box-shadow:0 0 10px ").concat(s,",0 0 5px ").concat(s,";opacity:1;-webkit-transform:rotate(3deg) translate(0,-4px);-ms-transform:rotate(3deg) translate(0,-4px);transform:rotate(3deg) translate(0,-4px)}#nprogress .spinner{display:block;position:fixed;z-index:99999;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:2px solid transparent;border-top-color:").concat(s,";border-left-color:").concat(s,";border-radius:50%;-webkit-animation:.4s linear infinite nprogress-spinner;animation:.4s linear infinite nprogress-spinner}.nprogress-custom-parent{overflow:hidden;position:relative}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"));return i.useEffect(function(){l&&r.configure(l);var t,e=function(e){clearTimeout(t),p&&o.route===e||(t=setTimeout(function(){return r.start()},c))},n=function(){clearTimeout(t),r.done()};return o.events.on("routeChangeStart",e),o.events.on("routeChangeComplete",n),o.events.on("routeChangeError",n),function(){o.events.off("routeChangeStart",e),o.events.off("routeChangeComplete",n),o.events.off("routeChangeError",n),clearTimeout(t)}},[]),h},function(){return!0});e.Z=a},6840:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(5995)}])},5303:function(t,e,n){"use strict";n.d(e,{z:function(){return c}});var r=n(5893),i=n(7294),o=n(8445),a=n(8426);function s(t){let{className:e,...n}=t;return(0,r.jsx)("svg",{...n,className:(0,o.cn)("w-4 h-4 animate-spin",e),viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M19 9.99995C18.9999 11.9005 18.3981 13.7523 17.2809 15.2899C16.1637 16.8274 14.5885 17.9719 12.7809 18.5591C10.9733 19.1464 9.02619 19.1463 7.21864 18.559C5.41109 17.9716 3.83588 16.8271 2.71876 15.2895C1.60165 13.7518 0.999986 11.9 1 9.99945C1.00001 8.09886 1.60171 6.24706 2.71884 4.70945C3.83598 3.17184 5.4112 2.02736 7.21877 1.44003C9.02633 0.852698 10.9734 0.852672 12.781 1.43995",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}let u=(0,n(2003).j)("inline-flex font-primary justify-center items-center font-bold transition-colors duration-200 disabled:pointer-events-none disabled:opacity-50 text-sm",{variants:{variant:{default:"bg-primary-900 hover:bg-primary-900-hover text-grey-50",outline:"border-2 border-primary-600 text-primary-600 bg-background hover:border-primary-500-hover hover:bg-primary-500-hover hover:text-white active:border-primary-500-active active:bg-primary-500-active active:text-white",grey:"bg-grey-200 hover:bg-grey-200-hover active:bg-grey-200-active text-grey-700",offGrey:"bg-primary-50 hover:bg-primary-50-hover active:bg-primary-50-active text-grey-700",light:"bg-grey-100 hover:bg-grey-100-hover active:bg-grey-100-active text-primary-500 hover:text-primary-700",ghost:"hover:bg-grey-100 active:bg-grey-100-active",link:"text-base font-normal hover:bg-transparent text-primary-900",underline:"text-base font-semibold hover:bg-transparent text-primary-900 hover:underline underline-offset-8 transition-all duration-300",mint:"bg-primary-100 hover:bg-primary-100-hover active:bg-primary-100-active text-primary-900",selected:"bg-primary-100 border-primary-500 border-2 hover:bg-primary-100-hover active:bg-primary-100-active"},size:{default:"px-8 py-4",sm:"px-4 py-1",md:"px-5 py-2",icon:"h-12 w-12",iconSmall:"h-10 w-10",link:"p-0"},roundness:{default:"rounded-xl",xl:"rounded-xl","3xl":"rounded-3xl"}},defaultVariants:{variant:"default",size:"default",roundness:"default"}}),c=i.forwardRef((t,e)=>{let{className:n,variant:i,size:c,roundness:l,isLoading:d=!1,disabled:f,asChild:p=!1,selected:h,...g}=t,v=p?a.g7:"button";return(0,r.jsx)(v,{className:(0,o.cn)(u({variant:i,size:c,roundness:l,className:n}),h&&"bg-primary-100 border-primary-500 border-2 hover:bg-primary-100-hover active:bg-primary-100-active"),ref:e,disabled:d||f,...g,children:d?(0,r.jsx)(s,{}):g.children})});c.displayName="Button"},620:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(5893),i=n(1664),o=n.n(i);function a(t){var e;let{openInNewTab:n,...i}=t;return(0,r.jsx)(o(),{target:(null!==(e=i.target)&&void 0!==e?e:n)?"_blank":"_self",...i,children:i.children})}},9422:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(5893),i=n(620),o=n(8445);function a(t){var e,n,a;
1let{openInNewTab:s,buttonLink:u,link:c,className:l,...d}=t,f=null;return(u&&u.link?f=null===(e=u.link.data)||void 0===e?void 0:e.attributes.href:c&&(f=c.href),f)?(0,r.jsx)(i.Z,{href:f,className:(0,o.cn)("font-primary",l),...d,openInNewTab:null!=s?s:null==u?void 0:u.openInNewTab,children:null!==(a=d.children)&&void 0!==a?a:null==u?void 0:u.label}):(0,r.jsx)("div",{className:(0,o.cn)("font-primary",l),children:null!==(n=d.children)&&void 0!==n?n:null==u?void 0:u.label})}},9429:function(t,e,n){"use strict";n.d(e,{pn:function(){return F},YZ:function(){return z}});var r=n(5893),i=n(7294),o=n(7462),a=n(6206),s=n(8771),u=n(5360),c=n(6063),l=n(1276),d=n(382),f=(n(2651),n(9115)),p=n(5320),h=n(8426),g=n(7342),v=n(6219);let[m,y]=(0,u.b)("Tooltip",[d.D7]),b=(0,d.D7)(),w="tooltip.open",[_,x]=m("TooltipProvider"),S="Tooltip",[C,k]=m(S),E="TooltipTrigger",T=(0,i.forwardRef)((t,e)=>{let{__scopeTooltip:n,...r}=t,u=k(E,n),c=x(E,n),l=b(n),f=(0,i.useRef)(null),h=(0,s.e)(e,f,u.onTriggerChange),g=(0,i.useRef)(!1),v=(0,i.useRef)(!1),m=(0,i.useCallback)(()=>g.current=!1,[]);return(0,i.useEffect)(()=>()=>document.removeEventListener("pointerup",m),[m]),(0,i.createElement)(d.ee,(0,o.Z)({asChild:!0},l),(0,i.createElement)(p.WV.button,(0,o.Z)({"aria-describedby":u.open?u.contentId:void 0,"data-state":u.stateAttribute},r,{ref:h,onPointerMove:(0,a.M)(t.onPointerMove,t=>{"touch"===t.pointerType||v.current||c.isPointerInTransitRef.current||(u.onTriggerEnter(),v.current=!0)}),onPointerLeave:(0,a.M)(t.onPointerLeave,()=>{u.onTriggerLeave(),v.current=!1}),onPointerDown:(0,a.M)(t.onPointerDown,()=>{g.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:(0,a.M)(t.onFocus,()=>{g.current||u.onOpen()}),onBlur:(0,a.M)(t.onBlur,u.onClose),onClick:(0,a.M)(t.onClick,u.onClose)})))}),[O,R]=m("TooltipPortal",{forceMount:void 0}),A="TooltipContent",P=(0,i.forwardRef)((t,e)=>{let n=R(A,t.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...s}=t,u=k(A,t.__scopeTooltip);return(0,i.createElement)(f.z,{present:r||u.open},u.disableHoverableContent?(0,i.createElement)(M,(0,o.Z)({side:a},s,{ref:e})):(0,i.createElement)(N,(0,o.Z)({side:a},s,{ref:e})))}),N=(0,i.forwardRef)((t,e)=>{let n=k(A,t.__scopeTooltip),r=x(A,t.__scopeTooltip),a=(0,i.useRef)(null),u=(0,s.e)(e,a),[c,l]=(0,i.useState)(null),{trigger:d,onClose:f}=n,p=a.current,{onPointerInTransitChange:h}=r,g=(0,i.useCallback)(()=>{l(null),h(!1)},[h]),v=(0,i.useCallback)((t,e)=>{let n=t.currentTarget,r={x:t.clientX,y:t.clientY},i=function(t,e){let n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),i=Math.abs(e.right-t.x),o=Math.abs(e.left-t.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());l(function(t){let e=t.slice();return e.sort((t,e)=>t.x<e.x?-1:t.x>e.x?1:t.y<e.y?-1:t.y>e.y?1:0),function(t){if(t.length<=1)return t.slice();let e=[];for(let n=0;n<t.length;n++){let r=t[n];for(;e.length>=2;){let t=e[e.length-1],n=e[e.length-2];if((t.x-n.x)*(r.y-n.y)>=(t.y-n.y)*(r.x-n.x))e.pop();else break}e.push(r)}e.pop();let n=[];for(let e=t.length-1;e>=0;e--){let r=t[e];for(;n.length>=2;){let t=n[n.length-1],e=n[n.length-2];if((t.x-e.x)*(r.y-e.y)>=(t.y-e.y)*(r.x-e.x))n.pop();else break}n.push(r)}return(n.pop(),1===e.length&&1===n.length&&e[0].x===n[0].x&&e[0].y===n[0].y)?e:e.concat(n)}(e)}([...function(t,e,n=5){let r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n})}return r}(r,i),...function(t){let{top:e,right:n,bottom:r,left:i}=t;return[{x:i,y:e},{x:n,y:e},{x:n,y:r},{x:i,y:r}]}(e.getBoundingClientRect())])),h(!0)},[h]);return(0,i.useEffect)(()=>()=>g(),[g]),(0,i.useEffect)(()=>{if(d&&p){let t=t=>v(t,p),e=t=>v(t,d);return d.addEventListener("pointerleave",t),p.addEventListener("pointerleave",e),()=>{d.removeEventListener("pointerleave",t),p.removeEventListener("pointerleave",e)}}},[d,p,v,g]),(0,i.useEffect)(()=>
1{if(c){let t=t=>{let e=t.target,n={x:t.clientX,y:t.clientY},r=(null==d?void 0:d.contains(e))||(null==p?void 0:p.contains(e)),i=!function(t,e){let{x:n,y:r}=t,i=!1;for(let t=0,o=e.length-1;t<e.length;o=t++){let a=e[t].x,s=e[t].y,u=e[o].x,c=e[o].y;s>r!=c>r&&n<(u-a)*(r-s)/(c-s)+a&&(i=!i)}return i}(n,c);r?g():i&&(g(),f())};return document.addEventListener("pointermove",t),()=>document.removeEventListener("pointermove",t)}},[d,p,c,f,g]),(0,i.createElement)(M,(0,o.Z)({},t,{ref:u}))}),[I,L]=m(S,{isInside:!1}),M=(0,i.forwardRef)((t,e)=>{let{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:s,onPointerDownOutside:u,...l}=t,f=k(A,n),p=b(n),{onClose:g}=f;return(0,i.useEffect)(()=>(document.addEventListener(w,g),()=>document.removeEventListener(w,g)),[g]),(0,i.useEffect)(()=>{if(f.trigger){let t=t=>{let e=t.target;null!=e&&e.contains(f.trigger)&&g()};return window.addEventListener("scroll",t,{capture:!0}),()=>window.removeEventListener("scroll",t,{capture:!0})}},[f.trigger,g]),(0,i.createElement)(c.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:t=>t.preventDefault(),onDismiss:g},(0,i.createElement)(d.VY,(0,o.Z)({"data-state":f.stateAttribute},p,l,{ref:e,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),(0,i.createElement)(h.A4,null,r),(0,i.createElement)(I,{scope:n,isInside:!0},(0,i.createElement)(v.f,{id:f.contentId,role:"tooltip"},a||r))))});var D=n(8445);let F=t=>{let{__scopeTooltip:e,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=t,[s,u]=(0,i.useState)(!0),c=(0,i.useRef)(!1),l=(0,i.useRef)(0);return(0,i.useEffect)(()=>{let t=l.current;return()=>window.clearTimeout(t)},[]),(0,i.createElement)(_,{scope:e,isOpenDelayed:s,delayDuration:n,onOpen:(0,i.useCallback)(()=>{window.clearTimeout(l.current),u(!1)},[]),onClose:(0,i.useCallback)(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>u(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:(0,i.useCallback)(t=>{c.current=t},[]),disableHoverableContent:o},a)},j=t=>{let{__scopeTooltip:e,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:u}=t,c=x(S,t.__scopeTooltip),f=b(e),[p,h]=(0,i.useState)(null),v=(0,l.M)(),m=(0,i.useRef)(0),y=null!=s?s:c.disableHoverableContent,_=null!=u?u:c.delayDuration,k=(0,i.useRef)(!1),[E=!1,T]=(0,g.T)({prop:r,defaultProp:o,onChange:t=>{t?(c.onOpen(),document.dispatchEvent(new CustomEvent(w))):c.onClose(),null==a||a(t)}}),O=(0,i.useMemo)(()=>E?k.current?"delayed-open":"instant-open":"closed",[E]),R=(0,i.useCallback)(()=>{window.clearTimeout(m.current),k.current=!1,T(!0)},[T]),A=(0,i.useCallback)(()=>{window.clearTimeout(m.current),T(!1)},[T]),P=(0,i.useCallback)(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{k.current=!0,T(!0)},_)},[_,T]);return(0,i.useEffect)(()=>()=>window.clearTimeout(m.current),[]),(0,i.createElement)(d.fC,f,(0,i.createElement)(C,{scope:e,contentId:v,open:E,stateAttribute:O,trigger:p,onTriggerChange:h,onTriggerEnter:(0,i.useCallback)(()=>{c.isOpenDelayed?P():R()},[c.isOpenDelayed,P,R]),onTriggerLeave:(0,i.useCallback)(()=>{y?A():window.clearTimeout(m.current)},[A,y]),onOpen:R,onClose:A,disableHoverableContent:y},n))},U=i.forwardRef((t,e)=>{let{className:n,sideOffset:i=4,...o}=t;return(0,r.jsx)(P,{ref:e,sideOffset:i,className:(0,D.cn)("z-50 overflow-hidden rounded-md border bg-primary-900 px-3 py-1.5 text-sm text-primary-50 font-medium shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...o})});U.displayName=P.displayName;let z=t=>{let{children:e,content:n}=t;return(0,r.jsxs)(j,{delayDuration:300,children:[(0,r.jsx)(T,{children:e}),(0,r.jsx)(U,{children:(0,r.jsx)("p",{children:n})})]})}},2241:function(t,e,n){"use strict";n.d(e,{Mb:function(){return o},vw:function(){return i}});var r=n(1887);let i={English:"en",French:"fr",Dutch:"nl",DutchNetherlands:"nl-NL",German:"de",GermanLuxembourg:"de-LU",GermanSwitzerland:"de-CH"};function o(t){return t.includes("-")?t.split("-")[0]:t}e.ZP=function(){let{i18n:t}=(0,r.$G)();return t.language}},8445:function(t,e,n){"use strict";n.d(e,{cn:function(){return M},zt:function(){return D}});var r=n(512),i=/^\[(.+)\]$/;function o(t,e){var n=t;return e.split("-").forEach(function(t){n.nextPart.has(t)||n.nextPart.set(t,{nextPart:new Map,validators:[]}),n=n.nextPart.get(t)}),n}var a=/\s+/;function s(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=function t(e){if("string"==typeof e)return e;for(var n,r="",i=0;i<e.length;i++)e[i]&&(n=t(e[i]))&&(r&&(r+=" "),r+=n);return r}(t))&&(r&&(r+=" "),r+=e);return r}function u(t){var e=function(e){return e[t]||[]};return e.isThemeGetter=!0,e}var c=/^\[(?:([a-z-]+):)?(.+)\]$/i,l=/^\d+\/\d+$/,d=new Set(["px","full","screen"]),f=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,p=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,h=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function g(t){return _(t)||d.has(t)||l.test(t)||v(t)}function v(t){return O(t,"length",R)}function m(t){return O(t,"size",A)}function y(t){return O(t,"position",A)}function b(t){return O(t,"url",P)}function w(t){return O(t,"number",_)}function _(t){return!Number.isNaN(Number(t))}function x(t){return t.endsWith("%")&&_(t.slice(0,-1))}function S(t){return N(t)||O(t,"number",N)}function C(t){return c.test(t)}function k(){return!0}function E(t){return f.test(t)}function T(t){return O(t,"",I)}function O(t,e,n){var r=c.exec(t);return!!r&&(r[1]?r[1]===e:n(r[2]))}function R(t){return p.test(t)}function A(){return!1}function P(t){return t.startsWith("url(")}function N(t){return Number.isInteger(Number(t))}function I(t){return h.test(t)}var L=function(){for(var t,e,n,r=arguments.length,u=Array(r),c=0;c<r;c++)u[c]=arguments[c];var l=function(r){var a=u[0];return e=(t=function(t){var e,n,r,a,s,u,c,l,d,f,p;return{cache:function(t){if(t<1)return{get:function(){},set:function(){}};var e=0,n=new Map,r=new Map;function i(i,o){n.set(i,o),++e>t&&(e=0,r=n,n=new Map)}return{get:function(t){var e=n.get(t);return void 0!==e?e:void 0!==(e=r.get(t))?(i(t,e),e):void 0},set:function(t,e){n.has(t)?n.set(t,e):i(t,e)}}}(t.cacheSize),splitModifiers:(n=1===(e=t.separator||":").length,r=e[0],a=e.length,function(t){for(var i,o=[],s=0,u=0,c=0;c<t.length;c++){var l=t[c];
1if(0===s){if(l===r&&(n||t.slice(c,c+a)===e)){o.push(t.slice(u,c)),u=c+a;continue}if("/"===l){i=c;continue}}"["===l?s++:"]"===l&&s--}var d=0===o.length?t:t.substring(u),f=d.startsWith("!"),p=f?d.substring(1):d;return{modifiers:o,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:i&&i>u?i-u:void 0}}),...(l=t.theme,d=t.prefix,f={nextPart:new Map,validators:[]},(p=Object.entries(t.classGroups),d?p.map(function(t){return[t[0],t[1].map(function(t){return"string"==typeof t?d+t:"object"==typeof t?Object.fromEntries(Object.entries(t).map(function(t){return[d+t[0],t[1]]})):t})]}):p).forEach(function(t){var e=t[0];(function t(e,n,r,i){e.forEach(function(e){if("string"==typeof e){(""===e?n:o(n,e)).classGroupId=r;return}if("function"==typeof e){if(e.isThemeGetter){t(e(i),n,r,i);return}n.validators.push({validator:e,classGroupId:r});return}Object.entries(e).forEach(function(e){var a=e[0];t(e[1],o(n,a),r,i)})})})(t[1],f,e,l)}),s=t.conflictingClassGroups,c=void 0===(u=t.conflictingClassGroupModifiers)?{}:u,{getClassGroupId:function(t){var e=t.split("-");return""===e[0]&&1!==e.length&&e.shift(),function t(e,n){if(0===e.length)return n.classGroupId;var r=e[0],i=n.nextPart.get(r),o=i?t(e.slice(1),i):void 0;if(o)return o;
1if(0!==n.validators.length){var a=e.join("-");return n.validators.find(function(t){return(0,t.validator)(a)})?.classGroupId}}(e,f)||function(t){if(i.test(t)){var e=i.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}(t)},getConflictingClassGroupIds:function(t,e){var n=s[t]||[];return e&&c[t]?[].concat(n,c[t]):n}})}}(u.slice(1).reduce(function(t,e){return e(t)},a()))).cache.get,n=t.cache.set,l=d,d(r)};function d(r){var i,o,s,u,c,l=e(r);if(l)return l;var d=(o=(i=t).splitModifiers,s=i.getClassGroupId,u=i.getConflictingClassGroupIds,c=new Set,r.trim().split(a).map(function(t){var e=o(t),n=e.modifiers,r=e.hasImportantModifier,i=e.baseClassName,a=e.maybePostfixModifierPosition,u=s(a?i.substring(0,a):i),c=!!a;if(!u){if(!a||!(u=s(i)))return{isTailwindClass:!1,originalClassName:t};c=!1}var l=(function(t){if(t.length<=1)return t;var e=[],n=[];return t.forEach(function(t){"["===t[0]?(e.push.apply(e,n.sort().concat([t])),n=[]):n.push(t)}),e.push.apply(e,n.sort()),e})(n).join(":");return{isTailwindClass:!0,modifierId:r?l+"!":l,classGroupId:u,originalClassName:t,hasPostfixModifier:c}}).reverse().filter(function(t){if(!t.isTailwindClass)return!0;var e=t.modifierId,n=t.classGroupId,r=t.hasPostfixModifier,i=e+n;return!c.has(i)&&(c.add(i),u(n,r).forEach(function(t){return c.add(e+t)}),!0)}).reverse().map(function(t){return t.originalClassName}).join(" "));return n(r,d),d}return function(){return l(s.apply(null,arguments))}}(function(){var t=u("colors"),e=u("spacing"),n=u("blur"),r=u("brightness"),i=u("borderColor"),o=u("borderRadius"),a=u("borderSpacing"),s=u("borderWidth"),c=u("contrast"),l=u("grayscale"),d=u("hueRotate"),f=u("invert"),p=u("gap"),h=u("gradientColorStops"),O=u("gradientColorStopPositions"),R=u("inset"),A=u("margin"),P=u("opacity"),N=u("padding"),I=u("saturate"),L=u("scale"),M=u("sepia"),D=u("skew"),F=u("space"),j=u("translate"),U=function(){return["auto","contain","none"]},z=function(){return["auto","hidden","clip","visible","scroll"]},V=function(){return["auto",C,e]},q=function(){return[C,e]},B=function(){return["",g]},$=function(){return["auto",_,C]},H=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},Z=function(){return["solid","dashed","dotted","double","none"]},K=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},W=function(){return["start","end","center","between","around","evenly","stretch"]},G=function(){return["","0",C]},Q=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},Y=function(){return[_,w]},J=function(){return[_,C]};return{cacheSize:500,theme:{colors:[k],spacing:[g],blur:["none","",E,C],brightness:Y(),borderColor:[t],borderRadius:["none","","full",E,C],borderSpacing:q(),borderWidth:B(),contrast:Y(),grayscale:G(),hueRotate:J(),invert:G(),gap:q(),gradientColorStops:[t],gradientColorStopPositions:[x,v],inset:V(),margin:V(),opacity:Y(),padding:q(),saturate:Y(),scale:Y(),sepia:G(),skew:J(),space:q(),translate:q()},classGroups:{aspect:[{aspect:["auto","square","video",C]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(H(),[C])}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}
vendor: 4,575 bytes, line 1
1],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",S]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",C]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",S]}],"grid-cols":[{"grid-cols":[k]}],"col-start-end":[{col:["auto",{span:["full",S]},C]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[k]}],"row-start-end":[{row:["auto",{span:[S]},C]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",C]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",C]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(W())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(W(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(W(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[N]}],px:[{px:[N]}],py:[{py:[N]}],ps:[{ps:[N]}],pe:[{pe:[N]}],pt:[{pt:[N]}],pr:[{pr:[N]}],pb:[{pb:[N]}],pl:[{pl:[N]}],m:[{m:[A]}],mx:[{mx:[A]}],my:[{my:[A]}],ms:[{ms:[A]}],me:[{me:[A]}],mt:[{mt:[A]}],mr:[{mr:[A]}],mb:[{mb:[A]}],ml:[{ml:[A]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",C,e]}],"min-w":[{"min-w":["min","max","fit",C,g]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[E]},E,C]}],h:[{h:[C,e,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",C,g]}],"max-h":[{"max-h":[C,e,"min","max","fit"]}],"font-size":[{text:["base",E,v]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",w]}],"font-family":[{font:[k]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",C]}],"line-clamp":[{"line-clamp":["none",_,w]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",C,g]}],"list-image":[{"list-image":["none",C]}],"list-style-type":[{list:["none","disc","decimal",C]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(Z(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",g]}],"underline-offset":[{"underline-offset":["auto",C,g]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(H(),[y])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",m]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},b]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[O]}
vendor: 5,054 bytes, line 1
1],"gradient-via-pos":[{via:[O]}],"gradient-to-pos":[{to:[O]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[].concat(Z(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:Z()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(Z())}],"outline-offset":[{"outline-offset":[C,g]}],"outline-w":[{outline:[g]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[g]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",E,T]}],"shadow-color":[{shadow:[k]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":K()}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",E,C]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[I]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",C]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",C]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",C]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[S,C]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",C]}],accent:[{accent:["auto",t]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
1],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",C]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[g,w]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function M(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return L((0,r.W)(e))}function D(t){return"".concat(t," | Sonetas")}n(2241)},8199:function(t,e){"use strict";var n,r,i,o;Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_REFRESH:function(){return a},ACTION_RESTORE:function(){return u},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let a="refresh",s="navigate",u="restore",c="server-patch",l="prefetch",d="fast-refresh",f="server-action";function p(t){return t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}(i=n||(n={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(o=r||(r={})).fresh="fresh",o.reusable="reusable",o.expired="expired",o.stale="stale",("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},7195:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return i}});let r=n(8337);function i(t,e,i,o){{let a=n(5183).normalizeLocalePath,s=n(4166).detectDomainLocale,u=e||a(t,i).detectedLocale,c=s(o,void 0,u);if(c){let e="http"+(c.http?"":"s")+"://",n=u===c.defaultLocale?"":"/"+u;return""+e+c.domain+(0,r.normalizePathTrailingSlash)(""+n+t)}return!1}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esMo
1dule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},8342:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return w}});let r=n(8754),i=n(5893),o=r._(n(7294)),a=n(6075),s=n(3955),u=n(8041),c=n(9903),l=n(5490),d=n(1928),f=n(257),p=n(4229),h=n(7195),g=n(9470),v=n(8199),m=new Set;function y(t,e,n,r,i,o){if(o||(0,s.isLocalURL)(e)){if(!r.bypassPrefetchedCheck){let i=e+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in t?t.locale:void 0);if(m.has(i))return;m.add(i)}(async()=>o?t.prefetch(e,i):t.prefetch(e,n,r))().catch(t=>{})}}function b(t){return"string"==typeof t?t:(0,u.formatUrl)(t)}let w=o.default.forwardRef(function(t,e){let n,r;let{href:u,as:m,children:w,prefetch:_=null,passHref:x,replace:S,shallow:C,scroll:k,locale:E,onClick:T,onMouseEnter:O,onTouchStart:R,legacyBehavior:A=!1,...P}=t;n=w,A&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let N=o.default.useContext(d.RouterContext),I=o.default.useContext(f.AppRouterContext),L=null!=N?N:I,M=!N,D=!1!==_,F=null===_?v.PrefetchKind.AUTO:v.PrefetchKind.FULL,{href:j,as:U}=o.default.useMemo(()=>{if(!N){let t=b(u);return{href:t,as:m?b(m):t}}let[t,e]=(0,a.resolveHref)(N,u,!0);return{href:t,as:m?(0,a.resolveHref)(N,m):e||t}},[N,u,m]),z=o.default.useRef(j),V=o.default.useRef(U);A&&(r=o.default.Children.only(n));let q=A?r&&"object"==typeof r&&r.ref:e,[B,$,H]=(0,p.useIntersection)({rootMargin:"200px"}),Z=o.default.useCallback(t=>{(V.current!==U||z.current!==j)&&(H(),V.current=U,z.current=j),B(t),q&&("function"==typeof q?q(t):"object"==typeof q&&(q.current=t))},[U,q,j,H,B]);o.default.useEffect(()=>{L&&$&&D&&y(L,j,U,{locale:E},{kind:F},M)},[U,j,$,E,D,null==N?void 0:N.locale,L,M,F]);let K={ref:Z,onClick(t){A||"function"!=typeof T||T(t),A&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(t),L&&!t.defaultPrevented&&function(t,e,n,r,i,a,u,c,l){let{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&(function(t){let e=t.currentTarget.getAttribute("target");return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)||!l&&!(0,s.isLocalURL)(n)))return;t.preventDefault();let f=()=>{let t=null==u||u;"beforePopState"in e?e[i?"replace":"push"](n,r,{shallow:a,locale:c,scroll:t}):e[i?"replace":"push"](r||n,{scroll:t})};l?o.default.startTransition(f):f()}(t,L,j,U,S,C,k,E,M)},onMouseEnter(t){A||"function"!=typeof O||O(t),A&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(t),L&&(D||!M)&&y(L,j,U,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:F},M)},onTouchStart:function(t){A||"function"!=typeof R||R(t),A&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(t),L&&(D||!M)&&y(L,j,U,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:F},M)}};if((0,c.isAbsoluteUrl)(U))K.href=U;else if(!A||x||"a"===r.type&&!("href"in r.props)){let t=void 0!==E?E:null==N?void 0:N.locale,e=(null==N?void 0:N.isLocaleDomain)&&(0,h.getDomainLocale)(U,t,null==N?void 0:N.locales,null==N?void 0:N.domainLocales);K.href=e||(0,g.addBasePath)((0,l.addLocale)(U,t,null==N?void 0:N.defaultLocale))}return A?o.default.cloneElement(r,K):(0,i.jsx)("a",{...P,...K,children:n})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},5183:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});let r=(t,e)=>n(4165).normalizeLocalePath(t,e);("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},4229:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(7294),i=n(4474),o="function"==typeof IntersectionObserver,a=new Map,s=[];function u(t){let{rootRef:e,rootMargin:n,disabled:u}=t,c=u||!o,[l,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useCallback)(t=>{f.current=t},[]);return(0,r.useEffect)(()=>
1{if(o){if(c||l)return;let t=f.current;if(t&&t.tagName)return function(t,e,n){let{id:r,observer:i,elements:o}=function(t){let e;let n={root:t.root||null,margin:t.rootMargin||""},r=s.find(t=>t.root===n.root&&t.margin===n.margin);if(r&&(e=a.get(r)))return e;let i=new Map;return e={id:n,observer:new IntersectionObserver(t=>{t.forEach(t=>{let e=i.get(t.target),n=t.isIntersecting||t.intersectionRatio>0;e&&n&&e(n)})},t),elements:i},s.push(n),a.set(n,e),e}(n);return o.set(t,e),i.observe(t),function(){if(o.delete(t),i.unobserve(t),0===o.size){i.disconnect(),a.delete(r);let t=s.findIndex(t=>t.root===r.root&&t.margin===r.margin);t>-1&&s.splice(t,1)}}}(t,t=>t&&d(t),{root:null==e?void 0:e.current,rootMargin:n})}else if(!l){let t=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(t)}},[c,n,e,l,f.current]),[p,l,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},5995:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return i2}});var r,i,o,a,s,u,c,l,d,f,p,h,g,v,m,y,b,w,_,x,S,C,k,E,T,O,R,A,P=n(5893);n(3434);var N=n(1887),I=n(8767),L=n(7294),M=n(5303);let D=(0,L.createContext)(null);function F(t){let{children:e}
1=t,[n,r]=(0,L.useState)(!1),[i,o]=(0,L.useState)(!0);return(0,L.useEffect)(()=>{r("true"===localStorage.getItem("cookieConsent")),o(!1)},[]),(0,P.jsx)(D.Provider,{value:{cookieConsent:n,handleCookieConsent:t=>{localStorage.setItem("cookieConsent",t.toString()),r(t)},isLoading:i},children:e})}var j=n(9422);function U(t){let{cookieBanner:e}=t,{cookieConsent:n,isLoading:r,handleCookieConsent:i}=function(){let t=(0,L.useContext)(D);if(!t)throw Error("useCookieConsent must be used within the CookieConsentProvider");return t}();return!n&&!r&&(0,P.jsxs)("div",{className:"fixed bottom-0 bg-primary-900 w-full p-6 z-50 opacity-[98%] flex flex-col lg:flex-row justify-center items-center gap-4",children:[(0,P.jsxs)("div",{className:"flex flex-col items-center lg:flex-row lg:items-start gap-x-2",children:[(0,P.jsx)("p",{className:"font-medium text-white text-center lg:text-left",children:null==e?void 0:e.message}),(0,P.jsx)(j.Z,{buttonLink:null==e?void 0:e.moreInfo,className:"underline underline-offset-2 text-white"})]}),(0,P.jsx)(M.z,{variant:"mint",roundness:"xl",onClick:()=>i(!0),children:null==e?void 0:e.understood})]})}var z=n(1782),V=n(9429),q=n(5171),B={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},$=console,H={};Object.keys(B).forEach(function(t){H[t]=$[t]});var Z="Datadog Browser SDK:",K={debug:H.debug.bind($,Z),log:H.log.bind($,Z),info:H.info.bind($,Z),warn:H.warn.bind($,Z),error:H.error.bind($,Z)},W="https://docs.datadoghq.com",G="".concat(W,"/real_user_monitoring/browser/troubleshooting"),Q="More details:";function Y(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return t.apply(void 0,n)}catch(t){K.error(e,t)}}}var J=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},X=!1;function tt(t){X=t}function te(t){return function(){return tn(t,this,arguments)}}function tn(t,e,n){try{return t.apply(e,n)}catch(t){if(tr(t),u)try{u(t)}catch(t){tr(t)}}}function tr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];X&&K.error.apply(K,J(["[MONITOR]"],t,!1))}function ti(t,e){return -1!==t.indexOf(e)}function to(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach(function(t){return e.push(t)});else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function ta(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n))return r}}function ts(t,e){Array.prototype.forEach.call(t,e)}function tu(t){return Object.keys(t).map(function(e){return t[e]})}function tc(t){return Object.keys(t).map(function(e){return[e,t[e]]})}function tl(t,e){return t.slice(0,e.length)===e}function td(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.forEach(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}),t}function tf(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var t=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof t&&("object"==typeof self?t=self:t="object"==typeof window?window:{}),t}var tp=/[^\u0000-\u007F]/;function th(t){return tp.test(t)?void 0!==window.TextEncoder?new TextEncoder().encode(t).length:new Blob([t]).size:t.length}function tg(t,e){var n,r=tf();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}function tv(t,e){return tg(tf(),"setTimeout")(te(t),e)}function tm(t){tg(tf(),"clearTimeout")(t)}function ty(t,e){return tg(tf(),"setInterval")(te(t),e)}function tb(t){tg(tf(),"clearInterval")(t)}function tw(t,e,n){var r,i,o=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1;return{throttled:function(){for(var n=[],u=0;u<arguments.length;u++)n[u]=arguments[u];if(s){r=n;return}o?t.apply(void 0,n):r=n,s=!0,i=tv(function(){a&&r&&t.apply(void 0,r),s=!1,r=void 0},e)},cancel:function(){tm(i),s=!1,r=void 0}}}function t_(){}function tx(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);var r=tS(Object.prototype),i=tS(Array.prototype),o=tS(Object.getPrototypeOf(t)),a=tS(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function tS(t){var e=t.toJSON;return e?(delete t.toJSON,function(){t.toJSON=e}):t_}function tC(t){return td({},t)}function tk(t,e){return Object.keys(t).some(function(n){return t[n]===e})}function tE(t){return 0===Object.keys(t).length}function tT(t){var e=0,n=tw(function(n){e=th(tx(n)),t()},200),r=n.throttled,i=n.cancel,o=function(){i(),e=0};return{updateCustomerData:function(t){tE(t)?o():r(t)},resetCustomerData:o,getBytesCount:function(){return e},stop:function(){i()}}}function tO(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function tR(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],o=0;o<e.length;++o)i[o]=tR(i[o],e[o],n);return i}var a="object"===tO(t)?t:{};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=tR(a[s],e[s],n));return a}}function tA(t){return tR(void 0,t)}function tP(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=0;r<e.length;r++){var i=e[r];null!=i&&(t=tR(t,i))}return t}function tN(t,e){void 0===e&&(e=225280);var n=tS(Object.prototype),r=tS(Array.prototype),i=[],o=new WeakMap,a=tI(t,"$",void 0,i,o),s=JSON.stringify(a),u=s?s.length:0;if(u>e){tL(e,"discarded",t);return}for(;i.length>0&&u<e;){var c=i.shift(),l=0;if(Array.isArray(c.source))for(var d=0;d<c.source.length;d++){var f=tI(c.source[d],c.path,d,i,o);if(void 0!==f?u+=JSON.stringify(f).length:u+=4,u+=l,l=1,u>e){tL(e,"truncated",t);break}c.target[d]=f}else for(var d in c.source)if(Object.prototype.hasOwnProperty.call(c.source,d)){var f=tI(c.source[d],c.path,d,i,o);if(void 0!==f&&(u+=JSON.stringify(f).length+l+d.length+3,l=1),u>
1e){tL(e,"truncated",t);break}c.target[d]=f}}return n(),r(),a}function tI(t,e,n,r,i){var o=function(t){if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(t){}return t}(t);if(!o||"object"!=typeof o)return"bigint"==typeof o?"[BigInt] ".concat(o.toString()):"function"==typeof o?"[Function] ".concat(o.name||"unknown"):"symbol"==typeof o?"[Symbol] ".concat(o.description||o.toString()):o;var a=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"[".concat(e[1],"]")}catch(t){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;if(i.has(t))return"[Reference seen at ".concat(i.get(t),"]");var s=void 0!==n?"".concat(e,".").concat(n):e,u=Array.isArray(o)?[]:{};return i.set(t,s),r.push({source:o,target:u,path:s}),u}function tL(t,e,n){K.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}var tM=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.prototype.subscribe=function(t){var e=this;return this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){e.observers=e.observers.filter(function(e){return t!==e}),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},t.prototype.notify=function(t){this.observers.forEach(function(e){return e(t)})},t}();function tD(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new tM(function(e){var n=t.map(function(t){return t.subscribe(function(t){return e.notify(t)})});return function(){return n.forEach(function(t){return t.unsubscribe()})}})}function tF(t){var e={},n=new tM,r={getContext:function(){return tA(e)},setContext:function(i){"object"===tO(i)?(e=tN(i),t.updateCustomerData(e)):r.clearContext(),n.notify()},setContextProperty:function(r,i){e[r]=tN(i),t.updateCustomerData(e),n.notify()},removeContextProperty:function(r){delete e[r],t.updateCustomerData(e),n.notify()},clearContext:function(){e={},t.resetCustomerData(),n.notify()},changeObservable:n};return r}var tj={GRANTED:"granted",NOT_GRANTED:"not-granted"};(r=c||(c={})).WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",r.CUSTOM_VITALS="custom_vitals",r.TOLERANT_RESOURCE_TIMINGS="tolerant_resource_timings",r.REMOTE_CONFIGURATION="remote_configuration",r.UPDATE_VIEW_NAME="update_view_name";var tU=new Set;function tz(t){return tU.has(t)}function tV(t){var e=[],n=tQ(t,"stack"),r=String(t);return n&&tl(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach(function(t){var n=function(t){var e=t$.exec(t);if(e){var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=tH.exec(e[2]);return r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]),{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}}(t)||function(t){var e=tZ.exec(t);if(e)return{args:[],column:e[3]?+e[3]:void 0,func:"?",line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=tK.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:+e[3],url:e[2]}}(t)||function(t){var e=tW.exec(t);if(e){var n=e[3]&&e[3].indexOf(" > eval")>-1,r=tG.exec(e[3]);return n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0),{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||"?",line:e[4]?+e[4]:void 0,url:e[3]}}}(t);n&&(!n.func&&n.line&&(n.func="?"),e.push(n))}),{message:tQ(t,"message"),name:tQ(t,"name"),stack:e}}var tq="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",tB="(?::(\\d+))",t$=RegExp("^\\s*at (.*?) ?\\(".concat(tq).concat(tB,"?").concat(tB,"?\\)?\\s*$"),"i"),tH=new RegExp("\\((\\S*)".concat(tB).concat(tB,"\\)")),tZ=RegExp("^\\s*at ?".concat(tq).concat(tB,"?").concat(tB,"??\\s*$"),"i"),tK=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,tW=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,tG=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function tQ(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var tY=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function tJ(){var t,e=Error();if(!e.stack)try{throw e}catch(t){}return tn(function(){var n=tV(e);n.stack=n.stack.slice(2),t=tX(n)}),t}function tX(t){var e=t0(t);return t.stack.forEach(function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"(".concat(t.args.join(", "),")"):"",i=t.line?":".concat(t.line):"",o=t.line&&t.column?":".concat(t.column):"";e+="\n at ".concat(n).concat(r," @ ").concat(t.url).concat(i).c
1oncat(o)}),e}function t0(t){return"".concat(t.name||"Error",": ").concat(t.message)}var t1="No stack, consider using an instance of Error";function t2(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=n instanceof Error,c=(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:u?"Empty message":"".concat(o," ").concat(tx(tN(n))),l=void 0!==e&&(u||e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url))?tX(e):t1,d=u?t5(n,a):void 0,f=e?e.name:void 0,p=t3(n);return{startClocks:i,source:a,handling:s,handlingStack:r,originalError:n,type:f,message:c,stack:l,causes:d,fingerprint:p}}function t3(t){return t instanceof Error&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function t5(t,e){for(var n=t,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var i=tV(n.cause);r.push({message:n.cause.message,source:e,type:null==i?void 0:i.name,stack:i&&tX(i)}),n=n.cause}return r.length?r:void 0}var t8="datad0g.com",t6="datadoghq.com",t4="pci.browser-intake-datadoghq.com";function t9(t){return 0!==t&&100*Math.random()<=t}function t7(t,e){return+t.toFixed(e)}function et(t){return"number"==typeof t}function ee(t){var e;return{relative:t,timeStamp:(e=er()-performance.now())>eu()?Math.round(e+t):Math.round(eu()+t)}}function en(t){return et(t)?t7(1e6*t,0):t}function er(){return new Date().getTime()}function ei(){return er()}function eo(){return performance.now()}function ea(){return{relative:eo(),timeStamp:ei()}}function es(){return{relative:0,timeStamp:eu()}}function eu(){return void 0===l&&(l=performance.timing.navigationStart),l}function ec(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}function el(){var t,e=window.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:null===(t=e.connection)||void 0===t?void 0:t.effectiveType}}function ed(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function ef(){var t=[];return{add:function(e){t.push(e)>500&&t.splice(0,1)},remove:function(e){ed(t,e)},drain:function(e){t.forEach(function(t){return t(e)}),t.length=0}}}var ep="configuration",eh="usage",eg=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],ev=["ddog-gov.com"],em=ef(),ey=function(t){em.add(function(){return ey(t)})};function eb(t,e){tr(B.debug,t,e),ey(td({type:"log",message:t,status:"debug"},e))}function ew(t,e){ey(td({type:"log",status:"error"},function(t){if(t instanceof Error){var e=tV(t);return{error:{kind:e.name,stack:tX((e.stack=e.stack.filter(function(t){return!t.url||eg.some(function(e){return tl(t.url,e)})}),e))},message:e.message}}return{error:{stack:t1},message:"".concat("Uncaught"," ").concat(tx(t))}}(t),e))}function e_(t){ey({type:eh,usage:t})}function ex(t,e,n,r,i){return eS(t,e,[n],r,i)}function eS(t,e,n,r,i){var o=void 0===i?{}:i,a=o.once,s=o.capture,u=o.passive,c=te(function(e){(e.isTrusted||e.__ddIsTrusted||t.allowUntrustedEvents)&&(a&&f(),r(e))}),l=u?{capture:s,passive:u}:s,d=tg(e,"addEventListener");function f(){var t=tg(e,"removeEventListener");n.forEach(function(n){return t.call(e,n,c,l)})}return n.forEach(function(t){return d.call(e,t,c,l)}),{stop:f}}var eC=[];function ek(t,e,n,r){var i="".concat("_dd_c","_").concat(n,"_").concat(r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}eC.push(ex(t,window,"storage",function(t){i===t.key&&e.setContext(o())})),e.changeObservable.subscribe(function(){localStorage.setItem(i,JSON.stringify(e.getContext()))}),e.setContext(tP(o(),e.getContext()))}function eE(){var t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write:function(n,r){var i=th(n);e+=i,t+=n,r&&r(i)},finish:function(t){t(this.finishSync())},finishSync:function(){var n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:function(t){return t.length}}}function eT(t){var e=td({},t);return["id","name","email"].forEach(function(t){t in e&&(e[t]=String(e[t]))}),e}function eO(t,e){e.silentMultipleInit||K.error("".concat(t," is already initialized."))}function eR(){var t=tf().DatadogEventBridge;if(t)return{getCapabilities:function(){var e;return JSON.parse((null===(e=t.getCapabilities)||void 0===e?void 0:e.call(t))||"[]")},getPrivacyLevel:function(){var e;return null===(e=t.getPrivacyLevel)||void 0===e?void 0:e.call(t)},getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n,r){t.send(JSON.stringify({eventType:e,event:n,view:r?{id:r}:void 0}))}}}function eA(t){var e=eR();return!!e&&ti(e.getCapabilities(),t)}function eP(t){void 0===t&&(t=null===(e=tf().location)||void 0===e?void 0:e.hostname);var e,n=eR();return!!n&&n.getAllowedWebViewHosts().some(function(e){var n,r;return t===e||(n=t,r=".".concat(e),n.slice(-r.length)===r)})}function eN(t,e,n,r){var i=(void 0===r?{}:r).computeHandlingStack,o=t[e];if("function"!=typeof o){if(!tl(e,"on"))return{stop:t_};o=t_}var a=!1,s=function(){if(a)return o.apply(this,arguments);var t,e=to(arguments);tn(n,null,[{target:this,parameters:e,onPostCall:function(e){t=e},handlingStack:i?tJ():void 0}]);var r=o.apply(this,e);return t&&tn(t,null,[r]),r};return t[e]=s,{stop:function(){a=!0,t[e]===s&&(t[e]=o)}}}function eI(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:t_};var i=function(t,e){tv(function(){i!==t_&&n(t,e)},0)},o=function(t){r.set.call(this,t),i(this,t)};return Object.defineProperty(t,e,{set:o}),{stop:function(){var n;(null===(n=Object.getOwnPropertyDescriptor(t,e))||void 0===n?void 0:n.set)===o&&Object.defineProperty(t,e,r),i=t_}}}function eL(t){return eM(t,location.href).href}function eM(t,e){var n=function(){if(void 0===d)try{var t=new eD("http://test/path");d="http://test/path"===t.href}catch(t){d=!1}return d?eD:void 0}();if(n)try{return void 0!==e?new n(t,e):new n(t)}catch(n){throw Error("Failed to construct URL: ".concat(String(n)," ").concat(tx({url:t,base:e})))}if(void 0===e&&!/:/.test(t))throw Error("Invalid URL: '".concat(t,"'"));var r=document,i=r.createElement("a");if(void 0!==e){var o=(r=document.implementation.createHTMLDocument("")).createElement("base");o.href=e,r.head.appendChild(o),r.body.appendChild(i)}return i.href=t,i}var eD=URL;function eF(){return f||(f=new tM(function(t){if(window.fetch)return eN(window,"fetch",function(e){var n,r,i,o,a,s,u,c,l;return n=e.parameters,r=e.onPostCall,i=e.handlingStack,o=n[0],void 0===(s=(a=n[1])&&a.method)&&o instanceof Request&&(s=o.method),u=void 0!==s?String(s).toUpperCase():"GET",c=o instanceof Request?o.url:eL(String(o)),l={state:"start",init:a,input
1:o,method:u,startClocks:ea(),url:c,handlingStack:i},void(t.notify(l),n[0]=l.input,n[1]=l.init,r(function(e){return function(t,e,n){function r(e){n.state="resolve",td(n,e),t.notify(n)}e.then(te(function(t){r({response:t,responseType:t.type,status:t.status,isAborted:!1})}),te(function(t){var e,i;r({status:0,isAborted:(null===(i=null===(e=n.init)||void 0===e?void 0:e.signal)||void 0===i?void 0:i.aborted)||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})}))}(t,e,l)}))},{computeHandlingStack:!0}).stop})),f}function ej(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,ej)}var eU=/([\w-]+)\s*=\s*([^;]+)/g;function ez(t,e){for(eU.lastIndex=0;;){var n=eU.exec(t);if(n){if(n[1]===e)return n[2]}else break}}function eV(t,e,n){void 0===n&&(n="");var r=t.charCodeAt(e-1),i=r>=55296&&r<=56319?e+1:e;return t.length<=i?t:"".concat(t.slice(0,i)).concat(n)}function eq(t,e,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires=".concat(i.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",u=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie="".concat(t,"=").concat(e,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(u).concat(c)}function eB(t){return ez(document.cookie,t)}function e$(t){return p||(p=function(t){var e=new Map;for(eU.lastIndex=0;;){var n=eU.exec(t);if(n)e.set(n[1],n[2]);else break}return e}(document.cookie)),p.get(t)}function eH(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||e$("datadog-synthetics-injects-rum"))}function eZ(){var t,e,n;return null!=g?g:(void 0===t&&(t=window),n=t.navigator.userAgent,g=t.chrome||/HeadlessChrome/.test(n)?1:(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?2:t.document.documentMode?0:3)}var eK="_dd_s",eW=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function eG(){return{isExpired:"1"}}function eQ(t){return void 0!==t.isExpired||!((void 0===t.created||er()-Number(t.created)<144e5)&&(void 0===t.expire||er()<Number(t.expire)))}function eY(t){t.expire=String(er()+9e5)}function eJ(t){return tc(t).map(function(t){var e=t[0],n=t[1];return"".concat(e,"=").concat(n)}).join("&")}function eX(t){var e={};return t&&(-1!==t.indexOf("&")||eW.test(t))&&t.split("&").forEach(function(t){var n=eW.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}}),e}function e0(){return eX(eB(eK))}function e1(t){localStorage.setItem(eK,eJ(t))}function e2(){return eX(localStorage.getItem(eK))}function e3(){e1(eG())}var e5=[];function e8(t,e,n){void 0===n&&(n=0);var r,i,o=e.isLockEnabled,a=e.persistSession,s=e.expireSession,u=function(t){return a(td({},t,{lock:i}))},c=function(){var t=e.retrieveSession(),n=t.lock;return t.lock&&delete t.lock,{session:t,lock:n}};if(v||(v=t),t!==v){e5.push(t);return}if(o&&n>=100){e4(e);return}var l=c();if(o&&(l.lock||(i=ej(),u(l.session),(l=c()).lock!==i))){e6(t,e,n);return}var d=t.process(l.session);if(o&&(l=c()).lock!==i){e6(t,e,n);return}if(d&&(eQ(d)?s():(eY(d),o?u(d):a(d))),o&&!(d&&eQ(d))){if((l=c()).lock!==i){e6(t,e,n);return}a(l.session),d=l.session}null===(r=t.after)||void 0===r||r.call(t,d||l.session),e4(e)}function e6(t,e,n){tv(function(){e8(t,e,n+1)},10)}function e4(t){v=void 0;var e=e5.shift();e&&e8(e,t)}function e9(t,e,n){var r=function(t,e){var n="/api/v2/".concat(e),r=t.proxy;if("string"==typeof r){var i=eL(r);return function(t){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(t)))}}if("function"==typeof r)return function(t){return r({path:n,parameters:t})};var o=function(t,e){var n=e.site,r=void 0===n?t6:n,i=e.internalAnalyticsSubdomain;if("logs"===t&&e.usePciIntake&&r===t6)return t4;if(i&&r===t6)return"".concat(i,".").concat(t6);if("dd0g-gov.com"===r)return"http-intake.logs.".concat(r);var o=r.split("."),a=o.pop();return"browser-intake-".concat(o.join("-"),".").concat(a)}(e,t);return function(t){return"https://".concat(o).concat(n,"?").concat(t)}}(t,e);return{build:function(i,o){var a,s,u,c,l,d;return r((a=t.clientToken,s=t.internalAnalyticsSubdomain,u=o.retry,c=o.encoding,l=["sdk_version:".concat("5.23.3"),"api:".concat(i)].concat(n),u&&l.push("retry_count:".concat(u.count),"retry_after:".concat(u.lastFailureStatus)),d=["ddsource=browser","ddtags=".concat(encodeURIComponent(l.join(","))),"dd-api-key=".concat(a),"dd-evp-origin-version=".concat(encodeURIComponent("5.23.3")),"dd-evp-origin=browser","dd-request-id=".concat(ej())],c&&d.push("dd-evp-encoding=".concat(c)),"rum"===e&&d.push("batch_time=".concat(ei())),s&&d.reverse(),d.join("&")))},urlPrefix:r(""),trackType:e}}var e7=/[^a-z0-9_:./-]/;function nt(t,e){var n=200-t.length-1;(e.length>n||e7.test(e))&&K.warn("".concat(t," value doesn't meet tag requirements and will be sanitized. ").concat(Q," ").concat(W,"/getting_started/tagging/#defining-tags"));var r=e.replace(/,/g,"_");return"".concat(t,":").concat(r)}var ne={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},nn={ALL:"all",SAMPLED:"sampled"};function nr(t,e){return null==t||"string"==typeof t||(K.error("".concat(e," must be defined as a string")),!1)}function ni(t,e){return!!(void 0===t||et(t)&&t>=0&&t<=100)||(K.error("".concat(e," Sample Rate should be a number between 0 and 100")),!1)}function no(t){var e=tO(t);return"string"===e||"function"===e||t instanceof RegExp}function na(t,e,n){return void 0===n&&(n=!1),t.some(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);
1if("string"==typeof t)return n?tl(e,t):t===e}catch(t){K.error(t)}return!1})}function ns(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function nu(t,e,n,r){if(void 0!==nc()&&n.findTrackedSession()){var i,o,a,s,u,c=ta(t.allowedTracingUrls,function(t){return na([t.match],e.url,!0)});c&&(e.traceSampled=!et(t.traceSampleRate)||t9(t.traceSampleRate),(e.traceSampled||t.traceContextInjection===nn.ALL)&&(e.traceId=nl(),e.spanId=nl(),r((i=e.traceId,o=e.spanId,a=e.traceSampled,s=c.propagatorTypes,u={},s.forEach(function(t){switch(t){case"datadog":td(u,{"x-datadog-origin":"rum","x-datadog-parent-id":o.toDecimalString(),"x-datadog-sampling-priority":a?"1":"0","x-datadog-trace-id":i.toDecimalString()});break;case"tracecontext":td(u,{traceparent:"00-0000000000000000".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-0").concat(a?"1":"0")});break;case"b3":td(u,{b3:"".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-").concat(a?"1":"0")});break;case"b3multi":td(u,{"X-B3-TraceId":i.toPaddedHexadecimalString(),"X-B3-SpanId":o.toPaddedHexadecimalString(),"X-B3-Sampled":a?"1":"0"})}}),u))))}}function nc(){return window.crypto||window.msCrypto}function nl(){var t=new Uint8Array(8);function e(e){return 16777216*t[e]+(t[e+1]<<16)+(t[e+2]<<8)+t[e+3]}function n(t){var n=e(0),r=e(4),i="";do{var o=n%t*4294967296+r;n=Math.floor(n/t),r=Math.floor(o/t),i=(o%t).toString(t)+i}while(n||r);return i}return nc().getRandomValues(t),t[0]=127&t[0],{toDecimalString:function(){return n(10)},toPaddedHexadecimalString:function(){var t=n(16);return Array(17-t.length).join("0")+t}}}var nd=["tracecontext","datadog"];function nf(t,e){var n,r=ea();return{stop:function(i){if(!n){var o,a,s,u;t((o=i,a=n=ea(),void 0===o&&(o={}),{name:e.name,type:"duration",startClocks:r,duration:(u=r.timeStamp,a.timeStamp-u),context:tP(e.context,o.context),details:null!==(s=o.details)&&void 0!==s?s:e.details}))}}}}function np(){K.error("Error fetching the remote configuration.")}var nh={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function ng(){var t,e=window;if(e.Zone&&(t=tg(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=tg(new e.MutationObserver(t_),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}var nv="initial_document",nm=[["document",function(t){return nv===t}],["xhr",function(t){return"xmlhttprequest"===t}],["fetch",function(t){return"fetch"===t}],["beacon",function(t){return"beacon"===t}],["css",function(t,e){return/\.css$/i.test(e)}],["js",function(t,e){return/\.js$/i.test(e)}],["image",function(t,e){return ti(["image","img","icon"],t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)}],["font",function(t,e){return null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)}],["media",function(t,e){return ti(["audio","video"],t)||null!==/\.(mp3|mp4)$/i.exec(e)}]];function ny(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=1;n<t.length;n+=1)if(t[n-1]>t[n])return!1;return!0}function nb(t){if(tz(c.TOLERANT_RESOURCE_TIMINGS))return!0;var e=ny(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=!(t.redirectEnd>t.startTime)||ny(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart);return e&&n}function nw(t,e,n){if(t<=e&&e<=n)return{duration:en(n-e),start:en(e-t)}}function n_(t,e){return e&&!t.isIntakeUrl(e)}var nx=/data:(.+)?(;base64)?,/g;function nS(t){if(t.length<=24e3);else if("data:"===t.substring(0,5))return t=t.substring(0,24e3),!0;return!1}function nC(t){return"".concat(t.match(nx)[0],"[...]")}function nk(t,e){return new tM(function(n){if(window.PerformanceObserver){var r,i=function(e){var r=e.filter(function(e){return e.entryType!==m.RESOURCE||!!n_(t,e.name)});r.length>0&&n.notify(r)},o=!0,a=new PerformanceObserver(te(function(t){o?r=tv(function(){return i(t.getEntries())}):i(t.getEntries())}));try{a.observe(e)}catch(t){if(ti([m.RESOURCE,m.NAVIGATION,m.LONG_TASK,m.PAINT],e.type)){e.buffered&&(r=tv(function(){return i(performance.getEntriesByType(e.type))}));try{a.observe({entryTypes:[e.type]})}catch(t){return}}}return o=!1,!y&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(y=ex(t,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})),function(){a.disconnect(),tm(r)}}})}function nE(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function nT(){return void 0!==window.performance&&"getEntries"in performance}function nO(t,e){var n=e.filter(function(t){return tk(m,t.entryType)});n.length&&t.notify(0,n)}(i=m||(m={})).EVENT="event",i.FIRST_INPUT="first-input",i.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",i.LAYOUT_SHIFT="layout-shift",i.LONG_TASK="longtask",i.NAVIGATION="navigation",i.PAINT="paint",i.RESOURCE="resource";var nR={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",SOURCE:"source",REPORT:"report"};function nA(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&tv(function(){r=0},6e4),(r+=1)<=e||i)return i=!1,!1;if(r===e+1){i=!0;try{n({message:"Reached max number of ".concat(t,"s by minute: ").concat(e),source:nR.AGENT,startClocks:ea()})}finally{i=!1}}return!0}}}function nP(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!nN(r))return;o!==i.length-1?r=r[a]:r[a]=n}}function nN(t){return"object"===tO(t)}var nI={"view.name":"string","view.url":"string","view.referrer":"string"},nL={context:"object"},nM={service:"string",version:"string"},nD=function(){function t(){this.callbacks={}}return t.prototype.notify=function(t,e){var n=this.callbacks[t];
1n&&n.forEach(function(t){return t(e)})},t.prototype.subscribe=function(t,e){var n=this;return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:function(){n.callbacks[t]=n.callbacks[t].filter(function(t){return e!==t})}}},t}(),nF=1/0;function nj(t){var e=t.expireDelay,n=t.maxEntries,r=[],i=ty(function(){return function(){for(var t=eo()-e;r.length>0&&r[r.length-1].endTime<t;)r.pop()}()},6e4);return{add:function(t,e){var i={value:t,startTime:e,endTime:nF,remove:function(){ed(r,i)},close:function(t){i.endTime=t}};return n&&r.length>=n&&r.pop(),r.unshift(i),i},find:function(t,e){void 0===t&&(t=nF),void 0===e&&(e={returnInactive:!1});for(var n=0,i=r;n<i.length;n++){var o=i[n];if(o.startTime<=t){if(e.returnInactive||t<=o.endTime)return o.value;break}}},closeActive:function(t){var e=r[0];e&&e.endTime===nF&&e.close(t)},findAll:function(t,e){void 0===t&&(t=nF),void 0===e&&(e=0);var n=t+e;return r.filter(function(e){return e.startTime<=n&&t<=e.endTime}).map(function(t){return t.value})},reset:function(){r=[]},stop:function(){tb(i)}}}var nU=new WeakMap;function nz(t){var e=t.target,n=t.parameters,r=n[0],i=n[1];nU.set(e,{state:"open",method:String(r).toUpperCase(),url:eL(String(i))})}function nV(t){var e=t.target,n=nU.get(e);n&&(n.isAborted=!0)}var nq=1;function nB(){var t=nq;return nq+=1,t}function n$(t){return et(t)&&t<0?void 0:t}function nH(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange,i=void 0===r?t_:r,o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=e.subscribe(13,function(t){var e;if("view"!==t.type&&"vital"!==t.type&&n(t))switch(t.type){case"error":o.errorCount+=1,i();break;case"action":o.actionCount+=1,t.action.frustration&&(o.frustrationCount+=t.action.frustration.type.length),i();break;case"long_task":o.longTaskCount+=1,i();break;case"resource":(null===(e=t._dd)||void 0===e?void 0:e.discarded)||(o.resourceCount+=1,i())}});return{stop:function(){a.unsubscribe()},eventCounts:o}}function nZ(t,e,n){var r,i=!1,o=tv(te(function(){return c({hadActivity:!1})}),100),a=void 0!==n?tv(te(function(){return c({hadActivity:!0,end:ei()})}),n):void 0,s=t.subscribe(function(t){var e=t.isBusy;tm(o),tm(r);var n=ei();e||(r=tv(te(function(){return c({hadActivity:!0,end:n})}),100))}),u=function(){i=!0,tm(o),tm(r),tm(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}function nK(t,e,n){return new tM(function(r){var i,o=[],a=0;o.push(e.subscribe(u),nk(n,{type:m.RESOURCE}).subscribe(function(t){t.some(function(t){return!nW(n,t.name)})&&u()}),t.subscribe(7,function(t){nW(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())}),t.subscribe(8,function(t){nW(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())}));var s=eN(window,"open",u).stop;return function(){s(),o.forEach(function(t){return t.unsubscribe()})};function u(){r.notify({isBusy:a>0})}})}function nW(t,e){return na(t.excludedActivityUrls,e)}function nG(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-1).toString(16)," "):"\\".concat(t)})}function nQ(t,e){return t.matches?t.matches(e):!!t.msMatchesSelector&&t.msMatchesSelector(e)}function nY(t){if(t.parentElement)return t.parentElement;for(;t.parentNode;){if(t.parentNode.nodeType===Node.ELEMENT_NODE)return t.parentNode;t=t.parentNode}return null}var nJ=function(){function t(t){var e=this;this.map=new WeakMap,t&&t.forEach(function(t){return e.map.set(t,1)})}return t.prototype.add=function(t){return this.map.set(t,1),this},t.prototype.delete=function(t){return this.map.delete(t)},t.prototype.has=function(t){return this.map.has(t)},t}();function nX(t){return t.nodeType===Node.TEXT_NODE}function n0(t){return t.nodeType===Node.ELEMENT_NODE}function n1(t){return n0(t)&&!!t.shadowRoot}function n2(t){return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n0(t.host)}function n3(t,e){for(var n=t.firstChild;n;)e(n),n=n.nextSibling;n1(t)&&e(t.shadowRoot)}function n5(t){return n2(t)?t.host:t.parentNode}var n8={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:ne.ALLOW,MASK:ne.MASK,MASK_USER_INPUT:ne.MASK_USER_INPUT},n6="data-dd-privacy",n4="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",n9={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function n7(t,e,n){if(n&&n.has(t))return n.get(t);var r=n5(t),i=r?n7(r,e,n):e,o=rt(re(t),i);return n&&n.set(t,o),o}function rt(t,e){switch(e){case n8.HIDDEN:case n8.IGNORE:return e}switch(t){case n8.ALLOW:case n8.MASK:case n8.MASK_USER_INPUT:case n8.HIDDEN:case n8.IGNORE:return t;default:return e}}function re(t){if(n0(t)){if("BASE"===t.tagName)return n8.ALLOW;if("INPUT"===t.tagName){if("password"===t.type||"email"===t.type||"tel"===t.type||"hidden"===t.type)return n8.MASK;var e=t.getAttribute("autocomplete");if(e&&0===e.indexOf("cc-"))return n8.MASK}return nQ(t,ro(n8.HIDDEN))?n8.HIDDEN:nQ(t,ro(n8.MASK))?n8.MASK:nQ(t,ro(n8.MASK_USER_INPUT))?n8.MASK_USER_INPUT:nQ(t,ro(n8.ALLOW))?n8.ALLOW:!function(t){if("SCRIPT"===t.nodeName)return!0;
1if("LINK"===t.nodeName){var e=i("rel");return/preload|prefetch/i.test(e)&&"script"===i("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=i("name"),e=i("rel"),r=i("property");return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function i(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?void 0:n8.IGNORE}}function rn(t,e){switch(e){case n8.MASK:case n8.HIDDEN:case n8.IGNORE:return!0;case n8.MASK_USER_INPUT:return nX(t)?rr(t.parentNode):rr(t);default:return!1}}function rr(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;if("INPUT"===t.tagName)switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!n9[t.tagName]}function ri(t,e,n){var r,i=null===(r=t.parentElement)||void 0===r?void 0:r.tagName,o=t.textContent||"";if(!e||o.trim()){if("SCRIPT"===i)o="***";else if(n===n8.HIDDEN)o="***";else if(rn(t,n)){if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?"***":o.replace(/\S/g,"x")}return o}}function ro(t){return"[".concat(n6,'="').concat(t,'"], .').concat("dd-privacy-").concat(t)}var ra="data-dd-action-name";function rs(t,e){if(void 0===x&&(x="closest"in HTMLElement.prototype),x)n=t.closest("[".concat(e,"]"));else for(var n,r=t;r;){if(r.hasAttribute(e)){n=r;break}r=nY(r)}if(n)return rf(rd(n.getAttribute(e).trim()))}var ru=[function(t,e,n){if(void 0===_&&(_="labels"in HTMLInputElement.prototype),_){if("labels"in t&&t.labels&&t.labels.length>0)return rp(t.labels[0],e)}else if(t.id){var r=t.ownerDocument&&ta(t.ownerDocument.querySelectorAll("label"),function(e){return e.htmlFor===t.id});return r&&rp(r,e,n)}},function(t){if("INPUT"===t.nodeName){var e=t.getAttribute("type");if("button"===e||"submit"===e||"reset"===e)return t.value}},function(t,e,n){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return rp(t,e,n)},function(t){return t.getAttribute("aria-label")},function(t,e,n){var r=t.getAttribute("aria-labelledby");if(r)return r.split(/\s+/).map(function(e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}).filter(function(t){return!!t}).map(function(t){return rp(t,e,n)}).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return rp(t.options[0],e)}],rc=[function(t,e,n){return rp(t,e,n)}];function rl(t,e,n,r){for(var i=t,o=0;o<=10&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(var a=0;a<n.length;a++){var s=(0,n[a])(i,e,r);if("string"==typeof s){var u=s.trim();if(u)return rf(rd(u))}}if("FORM"===i.nodeName)break;i=nY(i),o+=1}}function rd(t){return t.replace(/\s+/g," ")}function rf(t){return t.length>100?"".concat(eV(t,100)," [...]"):t}function rp(t,e,n){if(!t.isContentEditable){if("innerText"in t){var r=t.innerText,i=function(e){for(var n=t.querySelectorAll(e),i=0;i<n.length;i+=1){var o=n[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(r=r.replace(a,""))}}};return 0!==eZ()||i("script, style"),i("[".concat(ra,"]")),e&&i("[".concat(e,"]")),n&&i("".concat(ro(n8.HIDDEN),", ").concat(ro(n8.MASK))),r}return t.textContent}}var rh=[ra,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],rg=[rb,function(t){if(t.id&&!ry(t.id))return"#".concat(nG(t.id))}],rv=[rb,function(t){if("BODY"!==t.tagName)for(var e=function(t){if(t.classList)return t.classList;var e=(t.getAttribute("class")||"").trim();return e?e.split(/\s+/):[]}(t),n=0;n<e.length;n+=1){var r=e[n];if(!ry(r))return"".concat(nG(t.tagName),".").concat(nG(r))}},function(t){return nG(t.tagName)}];function rm(t,e){if("isConnected"in t?t.isConnected:t.ownerDocument.documentElement.contains(t)){for(var n,r=t;r&&"HTML"!==r.nodeName;){var i=rw(r,rg,r_,e,n);if(i)return i;n=rw(r,rv,rx,e,n)||rS(function(t){for(var e=nY(t).firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return"".concat(nG(t.tagName),":nth-of-type(").concat(n,")")}(r),n),r=nY(r)}return n}}function ry(t){return/[0-9]/.test(t)}function rb(t,e){if(e){var n=i(e);if(n)return n}for(var r=0;r<rh.length;r++){var n=i(rh[r]);if(n)return n}function i(e){if(t.hasAttribute(e))return"".concat(nG(t.tagName),"[").concat(e,'="').concat(nG(t.getAttribute(e)),'"]')}}function rw(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a&&n(t,a,i))return rS(a,i)}}function r_(t,e,n){return 1===t.ownerDocument.querySelectorAll(rS(e,n)).length}function rx(t,e,n){if(void 0===n)r=function(t){return nQ(t,e)};else{var r,i=!function(){if(void 0===S)try{document.querySelector(":scope"),S=!0}catch(t){S=!1}return S}()?rS(e,n):rS("".concat(e,":scope"),n);r=function(t){return null!==t.querySelector(i)}}for(var o=nY(t).firstElementChild;o;){if(o!==t&&r(o))return!1;o=o.nextElementSibling}return!0}function rS(t,e){return e?"".concat(t,">").concat(e):t}function rC(){var t=window.getSelection();return!t||t.isCollapsed}function rk(t){return t.target instanceof Element&&!1!==t.isPrimary}function rE(t){return!t.hasPageActivity&&!t.getUserActivity().input&&!t.getUserActivity().scroll&&!nQ(t.event.target,'input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}function rT(t,e){var n=rO(t)?{action:{id:t.id,loading_time:n$(en(t.duration)),frustration:{type:t.frustrationTypes},error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position}}}:void 0,r=rO(t)?void 0:t.context,i=tP({action:{id:ej(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.wasInPageStateAt("active",t.startClocks.relative)}},n),o=rO(t)?{events:t.events}:{};return!rO(t)&&t.handlingStack&&(o.handlingStack=t.handlingStack),{customerContext:r,rawRumEvent:i,startTime:t.startClocks.relative,domainContext:o}}function rO(t){return"custom"!==t.type}var rR={},rA="csp_violation";function rP(t,e,n,r,i){return n?tX({name:t,message:e,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=i?i:void 0}]}):void 0}var rN=new nJ;function rI(t){return t.startTime+t.duration}function rL(t,e,n){document.readyState===e||"complete"===document.readyState?n():ex(t,window,"complete"===e?"load":"DOMContentLoaded",n,{once:!0})}function rM(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function rD(t){if(t&&t.nodeType===Node.COMMENT_NODE){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function rF(){var t={},e=performance.timing;for(var n in e)if(et(e[n])){var r=e[n];t[n]=0===r?0:r-eu()}return t}function rj(t,e){rL(t,"interactive",function(){var t,n={entryType:m.RESOURCE,initiatorType:nv,traceId:function(t){var e,n,r=(e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]"),rM(e&&e.content,n&&n.content)||function(t){var e=function(t){for(var e=0;e<t.childNodes.length;e+=1){var n=rD(t.childNodes[e]);if(n)return n}if(t.body)for(var e=t.body.childNodes.length-1;e>=0;e-=1){var r=t.body.childNodes[e],n=rD(r);if(n)return n;if(!nX(r))break}}(t);if(e)return rM(ez(e,"trace-id"),ez(e,"trace-time"))}(t));if(!(!r||r.traceTime<=er()-12e4))return r.traceId}(document),toJSON:function(){return td({},t,{toJSON:void 0})}};if(nE(m.NAVIGATION)&&performance.getEntriesByType(m.NAVIGATION).length>0)t=td(performance.getEntriesByType(m.NAVIGATION)[0].toJSON(),n);else{var r=rF();t=td(r,{decodedBodySize:0,encodedBodySize:0,transferSize:0,renderBlockingStatus:"non-blocking",duration:r.responseEnd,name:window.location.href,startTime:0},n)}e(t)})}function rU(t,e){var n=ee(t.startTime),r=function(t,e){if(t.traceId)return{_dd:{trace_id:t.traceId,span_id:nl().toDecimalString(),rule_psr:rV(e)}}}(t,e);if(e.trackResources||r){var i,o=function(t){var e,n=t.name;if(!function(t){try{return!!eM(t)}catch(t){return!1}}(n))return eb('Failed to construct URL for "'.concat(t.name,'"')),"other";for(var r="/"===(e=eM(n).pathname)[0]?e:"/".concat(e),i=0;i<nm.length;i++){var o=nm[i],a=o[0];if((0,o[1])(t.initiatorType,r))return a}return"other"}(t),a=rz(t),s=tP({date:n.timeStamp,resource:{id:ej(),type:o,url:t.name,status_code:0===(i=t.responseStatus)?void 0:i},type:"resource",_dd:{discarded:!e.trackResources}},r,a);return{startTime:n.relative,rawRumEvent:s,domainContext:{performanceEntry:t}}}}function rz(t){var e,n,r,i=t.renderBlockingStatus;return{resource:td({duration:(e=t.duration,n=t.startTime,r=t.responseEnd,0===e&&n<r?en(r-n):en(e)),render_blocking_status:i},function(t){if(t.startTime<t.responseStart){var e=t.encodedBodySize,n=t.decodedBodySize;return{size:n,encoded_body_size:e,decoded_body_size:n,transfer_size:t.transferSize}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}(t),function(t){if(nb(t)){var e=t.startTime,n=t.fetchStart,r=t.redirectStart,i=t.redirectEnd,o=t.domainLookupStart,a=t.domainLookupEnd,s=t.connectStart,u=t.secureConnectionStart,c=t.connectEnd,l=t.requestStart,d=t.responseStart,f={download:nw(e,d,t.responseEnd),first_byte:nw(e,l,d)};return n<c&&(f.connect=nw(e,s,c),s<=u&&u<=c&&(f.ssl=nw(e,u,c))),n<a&&(f.dns=nw(e,o,a)),e<i&&(f.redirect=nw(e,r,i)),f}}(t))}}function rV(t){return et(t.traceSampleRate)?t.traceSampleRate/100:void 0}var rq=0,rB=1/0,r$=0,rH=function(){return C?rq:window.performance.interactionCount||0};
1function rZ(){var t=window.visualViewport;return Math.round(t?t.pageLeft-t.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function rK(){var t=window.visualViewport;return Math.round(t?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function rW(t){return k||(k=new tM(function(e){return ex(t,window,"resize",tw(function(){e.notify(rG())},200).throttled,{capture:!0,passive:!0}).stop})),k}function rG(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}function rQ(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var rY=[];function rJ(t){return"2"===t||"1"===t}function rX(t){var e=t.encoder,n=t.request,r=t.flushController,i=t.messageBytesLimit,o={},a=r.flushObservable.subscribe(function(t){return function(t){var r,i=tu(o).join("\n");o={};var a=(r=t.reason,ti(tu(nh),r)),s=a?n.sendOnExit:n.send;if(a&&e.isAsync){var u=e.finishSync();u.outputBytesCount&&s(r0(u));var c=[u.pendingData,i].filter(Boolean).join("\n");c&&s({data:c,bytesCount:th(c)})}else i&&e.write(e.isEmpty?i:"\n".concat(i)),e.finish(function(t){s(r0(t))})}(t)});function s(t,n){var a,s,u=tx(t),c=e.estimateEncodedBytesCount(u);if(c>=i){K.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(i,"KB. ").concat(Q," ").concat(G,"/#technical-limitations"));return}void 0!==n&&void 0!==o[n]&&(a=o[n],delete o[n],s=e.estimateEncodedBytesCount(a),r.notifyAfterRemoveMessage(s)),r.notifyBeforeAddMessage(c),void 0!==n?(o[n]=u,r.notifyAfterAddMessage()):e.write(e.isEmpty?u:"\n".concat(u),function(t){r.notifyAfterAddMessage(t-c)})}return{flushController:r,add:s,upsert:s,stop:a.unsubscribe}}function r0(t){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),bytesCount:t.outputBytesCount,encoding:t.encoding}}function r1(t,e,n,r,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?r2(t,e,n,{onSuccess:function(){return r3(0,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),function t(e,n,r,i){2===e.transportStatus&&tv(function(){r2(e.queuedPayloads.first(),e,n,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=1e3,r3(1,e,n,r,i)},onFailure:function(){e.currentBackoffTime=Math.min(6e4,2*e.currentBackoffTime),t(e,n,r,i)}})},e.currentBackoffTime)}(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function r2(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,function(n){e.bandwidthMonitor.remove(t),"opaque"!==n.type&&(0===n.status&&!navigator.onLine||408===n.status||429===n.status||n.status>=500)?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o()):(e.transportStatus=0,i())})}function r3(t,e,n,r,i){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(3,"MiB"),source:nR.AGENT,startClocks:ea()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=r5();o.size()>0;)r1(o.dequeue(),e,n,r,i)}function r5(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=3145728}}}function r8(t,e,n,r){var i={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:r5(),queueFullReported:!1},o=function(r,i){(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}})()&&r.bytesCount<n?fetch(e.build("fetch",r),{method:"POST",body:r.data,keepalive:!0,mode:"cors"}).then(te(function(t){return null==i?void 0:i({status:t.status,type:t.type})}),te(function(){r4(t,e.build("xhr",r),r.data,i)})):r4(t,e.build("xhr",r),r.data,i)};return{send:function(t){r1(t,i,o,e.trackType,r)},sendOnExit:function(r){!function(t,e,n,r){if(navigator.sendBeacon&&r.bytesCount<n)try{var i=e.build("beacon",r);if(navigator.sendBeacon(i,r.data))return}catch(t){r6||(r6=!0,ew(t))}r4(t,e.build("xhr",r),r.data)}(t,e,n,r)}}}var r6=!1;function r4(t,e,n,r){var i=new XMLHttpRequest;i.open("POST",e,!0),n instanceof Blob&&i.setRequestHeader("Content-Type",n.type),ex(t,i,"loadend",function(){null==r||r({status:i.status})},{once:!0}),i.send(n)}function r9(){0!==E.batchCount&&(eb("Customer data measures",E),ir())}function r7(){return{min:1/0,max:0,sum:0}}function it(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function ie(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function ir(){E={batchCount:0,batchBytesCount:r7(),batchMessagesCount:r7(),globalContextBytes:r7(),userContextBytes:r7(),featureFlagBytes:r7()}}function ii(){O=!1,T={globalContextBytes:r7(),userContextBytes:r7(),featureFlagBytes:r7()}}function io(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function ia(t,e){var n=ez(document.cookie,t),r=ty(function(){var r=ez(document.cookie,t);r!==n&&e(r)},1e3);return function(){tb(r)}}var is="datadog-ci-visibility-test-execution-id";function iu(t){var e;return R||(R=new Map),R.has(t)?e=R.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},R.set(t,e),R.size>10&&function(){if(R){if(R.keys)R.delete(R.keys().next().value);else{var t=!0;R.forEach(function(e,n){t&&(R.delete(n),t=!1)})}}}()),e}var ic=new WeakMap;function il(t){return ic.has(t)}function id(t){return ic.get(t)}function ip(t,e){var n=t.tagName,r=t.value;if(rn(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i))return r;if(!r||"OPTION"===n)return;return"***"}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var ih=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,ig=/^[A-Za-z]+:|^\/\//,iv=/^data:.*,/i,im=/[^a-z1-6-_]/;function iy(t){var e=t.toLowerCase().trim();return im.test(e)?"div":e}function ib(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(t,"' height='").concat(e,"' style='background-color:silver'%3E%3C/svg%3E")}var iw={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},i_={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},ix={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},iS={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},iC={Play:0,Pause:1};function ik(t){if(void 0!==t&&0!==t.length)return t.map(function(t){return{cssRules:Array.from(t.cssRules||t.rules,function(t){return t.cssText}),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}})}function iE(t,e,n,r){if(e===n8.HIDDEN)return null;var i=t.getAttribute(n);if(e===n8.MASK&&n!==n6&&!rh.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return"***"}
1if("IMG"===o&&("src"===n||"srcset"===n)){if(t.naturalWidth>0)return ib(t.naturalWidth,t.naturalHeight);var a=t.getBoundingClientRect(),s=a.width,u=a.height;return s>0||u>0?ib(s,u):n4}if("SOURCE"===o&&("src"===n||"srcset"===n))return n4;if("A"===o&&"href"===n||i&&tl(n,"data-")||"IFRAME"===o&&"srcdoc"===n)return"***"}return i&&"string"==typeof i&&nS(i)?nC(i):i}function iT(t){var e,n,r;if(!t)return null;try{e=t.rules||t.cssRules}catch(t){}return e?(n=Array.from(e,2===eZ()?iO:iR).join(""),r=t.href,n.replace(ih,function(t,e,n,i,o,a){var s=n||o||a;if(!r||!s||ig.test(s)||iv.test(s))return t;var u=e||i||"";return"url(".concat(u).concat(function(t,e){try{return eM(t,e).href}catch(e){return t}}(s,r)).concat(u,")")})):null}function iO(t){return"selectorText"in t&&t.selectorText.includes(":")?t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2"):iR(t)}function iR(t){return"styleSheet"in t&&iT(t.styleSheet)||t.cssText}function iA(t,e){var n=function(t,e){var n;switch(t.nodeType){case t.DOCUMENT_NODE:return{type:i_.Document,childNodes:iN(t,e),adoptedStyleSheets:ik(t.adoptedStyleSheets)};case t.DOCUMENT_FRAGMENT_NODE:return(n=n2(t))&&e.serializationContext.shadowRootsController.addShadowRoot(t),{type:i_.DocumentFragment,childNodes:iN(t,e),isShadowRoot:n,adoptedStyleSheets:n?ik(t.adoptedStyleSheets):void 0};case t.DOCUMENT_TYPE_NODE:return{type:i_.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId};case t.ELEMENT_NODE:return function(t,e){var n,r=iy(t.tagName),i="svg"===t.tagName||t instanceof SVGElement||void 0,o=rt(re(t),e.parentNodePrivacyLevel);if(o===n8.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:i_.Element,tagName:r,attributes:((n={rr_width:"".concat(s,"px"),rr_height:"".concat(u,"px")})[n6]="hidden",n),childNodes:[],isSVG:i}}if(o!==n8.IGNORE){var c=function(t,e,n){if(e===n8.HIDDEN)return{};for(var r,i,o,a={},s=iy(t.tagName),u=t.ownerDocument,c=0;c<t.attributes.length;c+=1){var l=t.attributes.item(c).name,d=iE(t,e,l,n.configuration);null!==d&&(a[l]=d)}if(t.value&&("textarea"===s||"select"===s||"option"===s||"input"===s)){var f=ip(t,e);void 0!==f&&(a.value=f)}if("option"===s&&e===n8.ALLOW&&t.selected&&(a.selected=t.selected),"link"===s){var p=Array.from(u.styleSheets).find(function(e){return e.href===t.href}),h=iT(p);h&&p&&(a._cssText=h)}if("style"===s&&t.sheet){var h=iT(t.sheet);h&&(a._cssText=h)}"input"===s&&("radio"===t.type||"checkbox"===t.type)&&(e===n8.ALLOW?a.checked=!!t.checked:rn(t,e)&&delete a.checked),("audio"===s||"video"===s)&&(a.rr_mediaState=t.paused?"paused":"played");var g=n.serializationContext;switch(g.status){case 0:i=Math.round(t.scrollTop),o=Math.round(t.scrollLeft),(i||o)&&g.elementsScrollPositions.set(t,{scrollTop:i,scrollLeft:o});break;case 1:g.elementsScrollPositions.has(t)&&(i=(r=g.elementsScrollPositions.get(t)).scrollTop,o=r.scrollLeft)}return o&&(a.rr_scrollLeft=o),i&&(a.rr_scrollTop=i),a}(t,o,e),l=[];return(t.childNodes.length>0||n1(t))&&"style"!==r&&(l=iN(t,e.parentNodePrivacyLevel===o&&e.ignoreWhiteSpace===("head"===r)?e:td({},e,{parentNodePrivacyLevel:o,ignoreWhiteSpace:"head"===r}))),{type:i_.Element,tagName:r,attributes:c,childNodes:l,isSVG:i}}}(t,e);case t.TEXT_NODE:return function(t,e){var n=ri(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0!==n)return{type:i_.Text,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:i_.CDATA,textContent:""}}}(t,e);if(!n)return null;var r=id(t)||iP++;return n.id=r,ic.set(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),n}var iP=1;function iN(t,e){var n=[];return n3(t,function(t){var r=iA(t,e);r&&n.push(r)}),n}function iI(t){return!!t.changedTouches}function iL(t){return!0===t.composed&&n1(t.target)?t.composedPath()[0]:t.target}var iM=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualVie
1wportX:t,visualViewportY:e};return n&&(Math.abs(n.pageTop-n.offsetTop-window.scrollY)>25||Math.abs(n.pageLeft-n.offsetLeft-window.scrollX)>25?(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)):(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop))),r},iD=function(t){return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}};function iF(t,e){return{data:td({source:t},e),type:iw.IncrementalSnapshot,timestamp:ei()}}function ij(t){var e=iI(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=iM(n,r),o=i.visualViewportX,a=i.visualViewportY;n=o,r=a}if(!Number.isFinite(n)||!Number.isFinite(r)){t.isTrusted&&eb("mouse/touch event without x/y");return}return{x:n,y:r}}var iU=((A={}).pointerup=iS.MouseUp,A.mousedown=iS.MouseDown,A.click=iS.Click,A.contextmenu=iS.ContextMenu,A.dblclick=iS.DblClick,A.focus=iS.Focus,A.blur=iS.Blur,A.touchstart=iS.TouchStart,A.touchend=iS.TouchEnd,A);function iz(t,e,n,r){void 0===r&&(r=document);var i=tw(function(r){var i=iL(r);if(i&&n7(i,t.defaultPrivacyLevel)!==n8.HIDDEN&&il(i)){var o=id(i),a=i===document?{scrollTop:rK(),scrollLeft:rZ()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),e(iF(ix.Scroll,{id:o,x:a.scrollLeft,y:a.scrollTop}))}},100),o=i.throttled,a=i.cancel,s=ex(t,r,"scroll",o,{capture:!0,passive:!0}).stop;return{stop:function(){s(),a()}}}function iV(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){var i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(i),e}}function iq(t,e,n){void 0===n&&(n=document);var r,i=t.defaultPrivacyLevel,o=new WeakMap,a=n!==document,s=eS(t,n,a?["change"]:["input","change"],function(t){var e=iL(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&c(e)},{capture:!0,passive:!0}).stop;if(a)r=t_;else{var u=[eI(HTMLInputElement.prototype,"value",c),eI(HTMLInputElement.prototype,"checked",c),eI(HTMLSelectElement.prototype,"value",c),eI(HTMLTextAreaElement.prototype,"value",c),eI(HTMLSelectElement.prototype,"selectedIndex",c)];r=function(){u.forEach(function(t){return t.stop()})}}return{stop:function(){r(),s()}};function c(t){var e,n=n7(t,i);if(n!==n8.HIDDEN){var r=t.type;if("radio"===r||"checkbox"===r){if(rn(t,n))return;e={isChecked:t.checked}}else{var o=ip(t,n);if(void 0===o)return;e={text:o}}l(t,e);var a=t.name;"radio"===r&&a&&t.checked&&ts(document.querySelectorAll('input[type="radio"][name="'.concat(nG(a),'"]')),function(e){e!==t&&l(e,{isChecked:!1})})}}function l(t,n){if(il(t)){var r=o.get(t);r&&r.text===n.text&&r.isChecked===n.isChecked||(o.set(t,n),e(iF(ix.Input,td({id:id(t)},n))))}}}function iB(t,e,n,r){var i=ng();if(!i)return{stop:t_,flush:t_};var o=function(t){var e=t_,n=[];function r(){e(),t(n),n=[]}var i=tw(r,16,{leading:!1}),o=i.throttled,a=i.cancel;return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(te(t),e);return function(){return window.cancelIdleCallback(n)}}
1var r=window.requestAnimationFrame(te(t));return function(){return window.cancelAnimationFrame(r)}}(o,{timeout:100})),n.push.apply(n,t)},flush:r,stop:function(){e(),a()}}}(function(r){!function(t,e,n,r){var i=new Map;t.filter(function(t){return"childList"===t.type}).forEach(function(t){t.removedNodes.forEach(function(t){!function t(e,n){n1(e)&&n(e.shadowRoot),n3(e,function(e){return t(e,n)})}(t,r.removeShadowRoot)})});var o=t.filter(function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!il(e)&&!n2(e))return!1;e=n5(e)}return!0}(t.target)&&n7(t.target,n.defaultPrivacyLevel,i)!==n8.HIDDEN}),a=function(t,e,n,r){for(var i=new Set,o=new Map,a=function(t){t.addedNodes.forEach(function(t){i.add(t)}),t.removedNodes.forEach(function(e){i.has(e)||o.set(e,t.target),i.delete(e)})},s=0;s<t.length;s++)a(t[s]);var u=Array.from(i);!function(t){t.sort(function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS?1:n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0})}(u);for(var c=new Set,l=[],d=0;d<u.length;d++){var f=u[d];if(!m(f)){var p=n7(f.parentNode,e.defaultPrivacyLevel,r);if(p!==n8.HIDDEN&&p!==n8.IGNORE){var h=iA(f,{serializedNodeIds:c,parentNodePrivacyLevel:p,serializationContext:{status:2,shadowRootsController:n},configuration:e});if(h){var g=n5(f);l.push({nextId:function(t){for(var e=t.nextSibling;e;){if(il(e))return id(e);e=e.nextSibling}return null}(f),parentId:id(g),node:h})}}}}var v=[];return o.forEach(function(t,e){il(e)&&v.push({parentId:id(t),id:id(e)})}),{adds:l,removes:v,hasBeenSerialized:m};function m(t){return il(t)&&c.has(id(t))}}(o.filter(function(t){return"childList"===t.type}),n,r,i),s=a.adds,u=a.removes,c=a.hasBeenSerialized,l=function(t,e,n){for(var r,i=[],o=new Set,a=t.filter(function(t){return!o.has(t.target)&&(o.add(t.target),!0)}),s=0;s<a.length;s++){var u=a[s];if(u.target.textContent!==u.oldValue){var c=n7(n5(u.target),e.defaultPrivacyLevel,n);c!==n8.HIDDEN&&c!==n8.IGNORE&&i.push({id:id(u.target),value:null!==(r=ri(u.target,!1,c))&&void 0!==r?r:null})}}return i}(o.filter(function(t){return"characterData"===t.type&&!c(t.target)}),n,i),d=function(t,e,n){for(var r=[],i=new Map,o=t.filter(function(t){var e=i.get(t.target);return!(e&&e.has(t.attributeName))&&(e?e.add(t.attributeName):i.set(t.target,new Set([t.attributeName])),!0)}),a=new Map,s=0;s<o.length;s++){var u=o[s];if(u.target.getAttribute(u.attributeName)!==u.oldValue){var c=n7(u.target,e.defaultPrivacyLevel,n),l=iE(u.target,c,u.attributeName,e),d=void 0;if("value"===u.attributeName){var f=ip(u.target,c);if(void 0===f)continue;d=f}else d="string"==typeof l?l:null;var p=a.get(u.target);p||(p={id:id(u.target),attributes:{}},r.push(p),a.set(u.target,p)),p.attributes[u.attributeName]=d}}return r}(o.filter(function(t){return"attributes"===t.type&&!c(t.target)}),n,i);(l.length||d.length||u.length||s.length)&&e(iF(ix.Mutation,{adds:s,removes:u,texts:l,attributes:d}))}(r.concat(a.takeRecords()),t,e,n)}),a=new i(te(o.addMutations));return a.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){a.disconnect(),o.stop()},flush:function(){o.flush()}}}var i$=function(t,e,n){var r=new Map,i={addShadowRoot:function(o){if(!r.has(o)){var a=iB(e,t,i,o),s=iq(t,e,o),u=iz(t,e,n,o);r.set(o,{flush:function(){return a.flush()},stop:function(){a.stop(),s.stop(),u.stop()}})}},removeShadowRoot:function(t){var e=r.get(t);e&&(e.stop(),r.delete(t))},stop:function(){r.forEach(function(t){return(0,t.stop)()})},flush:function(){r.forEach(function(t){return(0,t.flush)()})}};return i};function iH(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function iZ(t,e,n){var r,i=0,o=[],a=0,s=[],u=ex(t,e,"message",function(t){var e=t.data;if("wrote"===e.type&&e.streamId===n){i+=e.additionalBytesCount,o.push(e.result),r=e.trailer;var a=s.shift();a&&a.id===e.id?a.writeCallback?a.writeCallback(e.result.byteLength):a.finishCallback&&a.finishCallback():(u(),eb("Worker responses received out of order."))}}).stop;function c(){var t=0===o.length?new Uint8Array(0):function(t){for(var e=new Uint8Array(t.reduce(function(t,e){return t+e.length},0)),n=0,r=0;r<t.length;r++){var i=t[r];e.set(i,n),n+=i.length}return e}(o.concat(r)),e={rawBytesCount:i,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return i=0,o=[],e}function l(){a>0&&(e.postMessage({action:"reset",streamId:n}),a=0)}return{isAsync:!0,get isEmpty(){return 0===a},write:function(t,r){e.postMessage({action:"write",id:a,data:t,streamId:n}),s.push({id:a,writeCallback:r,data:t}),a+=1},finish:function(t){l(),s.length?(s.forEach(function(t){delete t.writeCallback}),s[s.length-1].finishCallback=function(){return t(c())}):t(c())},finishSync:function(){l();var t=s.map(function(t){return delete t.writeCallback,delete t.finishCallback,t.data}).join("");return td(c(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){u()}}}function iK(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([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]),_=new Uint8Array([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]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>
vendor: 20,501 bytes, line 1
1>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},U=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},R=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&S(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!S(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},L=function(t,e,n){var r,i,h,l,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(h=f[i],x(t,h+a+1,e),0!==(l=s[h])&&(i-=c[h],z(t,i,l)),r--,h=y(r),x(t,h,n),0!==(l=_[h])&&(r-=v[h],z(t,r,l)))}while(o<t.last_lit);x(t,256,e)},F=function(t,e){var a,n,r,s=e.dyn_tree,_=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=_[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},I=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{x(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),_--),x(t,16,t.bl_tree),z(t,_-3,2)):_<=10?(x(t,17,t.bl_tree),z(t,_-3,3)):(x(t,18,t.bl_tree),z(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},N=!1,O=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){U(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},D=function(t,e,n,r){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),_=function(t){var e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*l[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),L(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&U(t)},B={_tr_init:function(t){N||(!function(){var t,e,a,l,m,y=new Array(16);for(a=0,l=0;l<28;l++)for(c[l]=a,t=0;t<1<<s[l];t++)f[a++]=l;for(f[a-1]=l,m=0,l=0;l<16;l++)for(v[l]=m,t=0;t<1<<_[l];t++)u[m++]=l;for(m>>=7;l<r;l++)for(v[l]=m<<7,t=0;t<1<<_[l]-7;t++)u[256+m++]=l;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(E(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,_,0,r,i),w=new b(new Array(0),h,0,19,7)}(),N=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,Z(t)},_tr_stored_block:O,_tr_flush_block:D,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},kt=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=ft-(u-i),i=u-ft,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<ct&&0!==t.strm.avail_in)},Ut=function(t,e){for(var a,n;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a),t.match_length<=5&&(t.strategy===st||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,It(t)},Ot={deflateInit:function(t,e){return Nt(t,e,ut,15,8,ot)},deflateInit2:Nt,deflateReset:It,deflateResetKeep:Tt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?at:(t.state.gzhead=e,tt):at},deflate:function(t,e){var a,n;if(!t||!t.state||e>$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=ft-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
1i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"5.23.3"};case"write":var n=e.get(a.streamId);n||(n=new Jt,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var iW={status:0};function iG(t,e,n,r){switch(void 0===r&&(r=iK),0===iW.status&&function(t,e,n){void 0===n&&(n=iK);try{var r=n(t),i=ex(t,r,"error",function(n){iQ(t,e,n)}).stop,o=ex(t,r,"message",function(n){var r,i=n.data;
1"errored"===i.type?iQ(t,e,i.error,i.streamId):"initialized"===i.type&&(r=i.version,1===iW.status&&(iW={status:3,worker:iW.worker,stop:iW.stop,version:r}))}).stop;r.postMessage({action:"init"}),tv(function(){1===iW.status&&(K.error("".concat(e," failed to start: a timeout occurred while initializing the Worker")),iW.initializationFailureCallbacks.forEach(function(t){return t()}),iW={status:2})},1e4),iW={status:1,worker:r,stop:function(){i(),o()},initializationFailureCallbacks:[]}}catch(n){iQ(t,e,n)}}(t,e,r),iW.status){case 1:return iW.initializationFailureCallbacks.push(n),iW.worker;case 3:return iW.worker}}function iQ(t,e,n,r){if(1===iW.status||0===iW.status){var i;if(K.error("".concat(e," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&(ti(i=n.message,"Content Security Policy")||ti(i,"requires 'TrustedScriptURL'"))){var o=void 0;o=t.workerUrl?"Please make sure the Worker URL ".concat(t.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",K.error("".concat(o," See documentation at ").concat(W,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else ew(n);1===iW.status&&iW.initializationFailureCallbacks.forEach(function(t){return t()}),iW={status:2}}else ew(n,{worker_version:3===iW.status&&iW.version,stream_id:r})}var iY=function(t,e,n){void 0===n&&(n={});var r,i,o,a=function(t){void 0===t&&(t=2);var e=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==t){var i=2===t?3072:16384,o=r;e.forEach(function(t){o+=t.getBytesCount()}),o>i&&(K.warn("Customer data exceeds the recommended ".concat(i/1024,"KiB threshold. ").concat(Q," ").concat(G,"/#customer-data-exceeds-the-recommended-threshold-warning")),n=!0)}}return{createDetachedTracker:function(){var t=tT(function(){return r(t.getBytesCount())});return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,tT(r)),e.get(t)},setCompressionStatus:function(e){0===t&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach(function(t){return t.stop()}),e.clear()}}}(0),s=tF(a.getOrCreateTracker(2)),u=tF(a.getOrCreateTracker(1)),l={tryToInit:function(t){r||(r=t)},update:function(t){r=t,i.notify()},isGranted:function(){return r===tj.GRANTED},observable:i=new tM};function d(){return{context:s.getContext(),user:u.getContext(),hasReplay:!!e.isRecording()||void 0}}var f=function(t,e,n,r){var i,o,a,s,u=t.ignoreInitIfSyntheticsWillInjectRum,l=t.startDeflateWorker,d=ef(),f=n.observable.subscribe(p);function p(){if(a&&s&&n.isGranted()){if(f.unsubscribe(),s.trackViewsManually){if(!i)return;d.remove(i.callback),t=i.options}var t,e=r(s,o,t);d.drain(e)}}function g(t){var e,r,i,u,c,d,f,g,v,m=eP();if(m&&(t=td({},e=t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(r=e.defaultPrivacyLevel)&&void 0!==r?r:null===(i=eR())||void 0===i?void 0:i.getPrivacyLevel()})),a=t,f={session_sample_rate:(c=u=t).sessionSampleRate,telemetry_sample_rate:c.telemetrySampleRate,telemetry_configuration_sample_rate:c.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:c.telemetryUsageSampleRate,use_before_send:!!c.beforeSend,use_cross_site_session_cookie:c.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:c.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:c.useSecureSessionCookie,use_proxy:!!c.proxy,silent_multiple_init:c.silentMultipleInit,track_session_across_subdomains:c.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!c.allowFallbackToLocalStorage,store_contexts_across_pages:!!c.storeContextsAcrossPages,allow_untrusted_events:!!c.allowUntrustedEvents,tracking_consent:c.trackingConsent},v=td({session_replay_sample_rate:u.sessionReplaySampleRate,start_session_replay_recording_manually:u.startSessionReplayRecordingManually,trace_sample_rate:u.traceSampleRate,trace_context_injection:u.traceContextInjection,action_name_attribute:u.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(u.allowedTracingUrls)&&u.allowedTracingUrls.length>0,selected_tracing_propagators:(g=new Set,Array.isArray(u.allowedTracingUrls)&&u.allowedTracingUrls.length>
10&&u.allowedTracingUrls.forEach(function(t){no(t)?nd.forEach(function(t){return g.add(t)}):"object"===tO(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach(function(t){return g.add(t)})}),to(g)),default_privacy_level:u.defaultPrivacyLevel,enable_privacy_for_action_name:u.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(u.excludedActivityUrls)&&u.excludedActivityUrls.length>0,use_worker_url:!!u.workerUrl,compress_intake_requests:u.compressIntakeRequests,track_views_manually:u.trackViewsManually,track_user_interactions:u.trackUserInteractions,track_resources:u.trackResources,track_long_task:u.trackLongTasks,plugins:null===(d=u.betaPlugins)||void 0===d?void 0:d.map(function(t){var e;return td({name:t.name},null===(e=t.getConfigurationTelemetry)||void 0===e?void 0:e.call(t))})},f),ey({type:ep,configuration:v}),s){eO("DD_RUM",t);return}var y=function(t){if(!t.applicationId){K.error("Application ID is not configured, no RUM data will be collected.");return}if(ni(t.sessionReplaySampleRate,"Session Replay")&&ni(t.traceSampleRate,"Trace")){if(void 0!==t.excludedActivityUrls&&!Array.isArray(t.excludedActivityUrls)){K.error("Excluded Activity Urls should be an array");return}var e,n,r=function(t){if(void 0===t.allowedTracingUrls)return[];if(!Array.isArray(t.allowedTracingUrls)){K.error("Allowed Tracing URLs should be an array");return}if(0!==t.allowedTracingUrls.length&&void 0===t.service){K.error("Service needs to be configured when tracing is enabled");return}var e=[];return t.allowedTracingUrls.forEach(function(t){no(t)?e.push({match:t,propagatorTypes:nd}):"object"===tO(t)&&no(t.match)&&Array.isArray(t.propagatorTypes)?e.push(t):K.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)}),e}(t);if(r){var i=function(t){var e,n,r,i,o,a,s,u,c,l,d,f,p,g,v,m,y;if(!t||!t.clientToken){K.error("Client Token is not configured, we will not send any data.");return}if((!(a=t.site)||"string"!=typeof a||/(datadog|ddog|datad0g|dd0g)/.test(a)||(K.error("Site should be a valid Datadog site. ".concat(Q," ").concat(W,"/getting_started/site/.")),0))&&ni(t.sessionSampleRate,"Session")&&ni(t.telemetrySampleRate,"Telemetry")&&ni(t.telemetryConfigurationSampleRate,"Telemetry Configuration")&&ni(t.telemetryUsageSampleRate,"Telemetry Usage")&&nr(t.version,"Version")&&nr(t.env,"Env")&&nr(t.service,"Service")){if(void 0!==t.trackingConsent&&!tk(tj,t.trackingConsent)){K.error('Tracking Consent should be either "granted" or "not-granted"');return}return td({beforeSend:t.beforeSend&&Y(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:((m=!function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(ej()),n="test";eq(e,n,6e4,t);var r=eB(e)===n;return eq(e,"",0,t),r}catch(t){return K.error(t),!1}}(((v={}).secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,v.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,v.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(v.domain=function(){if(void 0===h){for(var t="dd_site_test_".concat(ej()),e=window.location.hostname.split("."),n=e.pop();e.length&&!eB(t);)eq(t,"test",1e3,{domain:n="".concat(e.pop(),".").concat(n)});eq(t,"",0,{domain:n}),h=n}return h}()),v))?void 0:{type:"Cookie",cookieOptions:v})||!t.allowFallbackToLocalStorage||(m=function(){try{var t=ej(),e="".concat("_dd_test_").concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(t){return}}()),m),sessionSampleRate:null!==(e=t.sessionSampleRate)&&void 0!==e?e:100,telemetrySampleRate:null!==(n=t.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=t.telemetryConfigurationSampleRate)&&void 0!==r?r:5,telemetryUsageSampleRate:null!==(i=t.telemetryUsageSampleRate)&&void 0!==i?i:5,service:t.service||void 0,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:null!==(o=t.trackingConsent)&&void 0!==o?o:tj.GRANTED,storeContextsAcrossPages:!!t.storeContextsAcrossPages,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(s=t.site||t6,u=t.env,c=t.service,l=t.version,d=t.datacenter,f=[],u&&f.pu
1sh(nt("env",u)),c&&f.push(nt("service",c)),l&&f.push(nt("version",l)),d&&f.push(nt("datacenter",d)),y=tu(p={logsEndpointBuilder:e9(t,"logs",f),rumEndpointBuilder:e9(t,"rum",f),sessionReplayEndpointBuilder:e9(t,"replay",f)}).map(function(t){return t.urlPrefix}),s===t6&&y.push("https://".concat(t4,"/")),td({isIntakeUrl:function(t){return g.some(function(e){return 0===t.indexOf(e)})},replica:function(t,e,n){if(t.replica){var r=td({},t,{site:t6,clientToken:t.replica.clientToken}),i={logsEndpointBuilder:e9(r,"logs",n),rumEndpointBuilder:e9(r,"rum",n)};return e.push.apply(e,tu(i).map(function(t){return t.urlPrefix})),td({applicationId:t.replica.applicationId},i)}}(t,g=y,f),site:s},p)))}}(t);if(i)return td({applicationId:t.applicationId,version:t.version||void 0,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:null!==(e=t.sessionReplaySampleRate)&&void 0!==e?e:0,startSessionReplayRecordingManually:!!t.startSessionReplayRecordingManually,traceSampleRate:t.traceSampleRate,allowedTracingUrls:r,excludedActivityUrls:null!==(n=t.excludedActivityUrls)&&void 0!==n?n:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!t.trackUserInteractions,trackViewsManually:!!t.trackViewsManually,trackResources:!!t.trackResources,trackLongTasks:!!t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:tk(ne,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:ne.MASK,enablePrivacyForActionName:!!t.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:tk(nn,t.traceContextInjection)?t.traceContextInjection:nn.ALL,plugins:t.betaPlugins||[]},i)}}}(t);if(y){if(!m&&!y.sessionStoreStrategyType){K.warn("No storage available for session. We will not send any data.");return}(!y.compressIntakeRequests||m||!l||(o=l(y,"Datadog RUM",t_)))&&(s=y,eF().subscribe(t_),n.tryToInit(y.trackingConsent),p())}}var v=function(t){d.add(function(e){return e.addDurationVital(t)})};return{init:function(t,e){var n,r,i;if(!t){K.error("Missing configuration");return}Array.isArray(n=t.enableExperimentalFeatures)&&function(t){t.forEach(function(t){tU.add(t)})}(n.filter(function(t){return tk(c,t)})),a=t,!(u&&eH())&&((!function(t,e,n){if(t)for(var r=0;r<t.length;r++){var i=t[r][e];i&&i(n)}}(t.betaPlugins,"onInit",{initConfiguration:t,publicApi:e}),t.remoteConfigurationId&&tz(c.REMOTE_CONFIGURATION))?(r=function(e){g(td({},t,e))},ex(t,i=new XMLHttpRequest,"load",function(){200===i.status?r(JSON.parse(i.responseText)):np()}),ex(t,i,"error",function(){np()}),i.open("GET","".concat("https://d3uc069fcn7uxw.cloudfront.net/configuration","/").concat(encodeURIComponent(t.remoteConfigurationId),".json")),i.send()):g(t))},get initConfiguration(){return a},getInternalContext:t_,stopSession:t_,addTiming:function(t,e){void 0===e&&(e=ei()),d.add(function(n){return n.addTiming(t,e)})},startView:function(t,e){void 0===e&&(e=ea());var n=function(n){n.startView(t,e)};d.add(n),i||(i={options:t,callback:n},p())},updateViewName:function(t){d.add(function(e){return e.updateViewName(t)})},addAction:function(t,n){void 0===n&&(n=e()),d.add(function(e){return e.addAction(t,n)})},addError:function(t,n){void 0===n&&(n=e()),d.add(function(e){return e.addError(t,n)})},addFeatureFlagEvaluation:function(t,e){d.add(function(n){return n.addFeatureFlagEvaluation(t,e)})},startDurationVital:function(t){return nf(function(t){return v(t)},t)},addDurationVital:v}}(n,d,l,function(r,i,o){tz(c.CUSTOM_VITALS)&&(g.startDurationVital=te(function(t,e){return e_({feature:"start-duration-vital"}),f.startDurationVital({name:tN(t),context:tN(e&&e.context),details:tN(e&&e.details)})}),g.addDurationVital=te(function(t,e){var n;e_({feature:"add-duration-vital"}),f.addDurationVital({name:tN(t),type:"duration",startClocks:{relative:(n=e.startTime)-eu(),timeStamp:n},duration:e.duration,context:tN(e&&e.context),details:tN(e&&e.details)})}),g.stopDurationVital=t_),tz(c.UPDATE_VIEW_NAME)&&(g.updateViewName=te(function(t){f.updateViewName(t)})),r.storeContextsAcrossPages&&(ek(r,s,"rum",2),ek(r,u,"rum",1)),a.setCompressionStatus(i?1:2);var p=t(r,e,a,d,o,i&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(r,i,t)}:eE,l);return e.onRumStart(p.lifeCycle,r,p.session,p.viewContexts,i),f=td({init:function(t){eO("DD_RUM",t)},initConfiguration:f.initConfiguration},p),p}),p=te(function(t){f.startView("object"==typeof t?t:{name:t}),e_({feature:"start-view"})}),g=(Object.defineProperty(o=td({version:"5.23.3",onReady:function(t){t()}},{init:te(function(t){return f.init(t,g)}),setTrackingConsent:te(function(t){l.update(t),e_({feature:"set-tracking-consent",tracking_consent:t})}),setGlobalContext:te(function(t){s.setContext(t),e_({feature:"set-global-context"})}),getGlobalContext:te(function(){return s.getContext()}),setGlobalContextProperty:te(function(t,e){s.setContextProperty(t,e),e_({feature:"set-global-context"})}),removeGlobalContextProperty:te(function(t){return s.removeContextProperty(t)}),clearGlobalContext:te(function(){return s.clearContext()}),getInternalContext:te(function(t){return f.getInternalContext(t)}
1),getInitConfiguration:te(function(){return tA(f.initConfiguration)}),addAction:function(t,e){var n=tJ();tn(function(){f.addAction({name:tN(t),context:tN(e),startClocks:ea(),type:"custom",handlingStack:n}),e_({feature:"add-action"})})},addError:function(t,e){var n=tJ();tn(function(){f.addError({error:t,handlingStack:n,context:tN(e),startClocks:ea()}),e_({feature:"add-error"})})},addTiming:te(function(t,e){f.addTiming(tN(t),e)}),setUser:te(function(t){var e;(e="object"===tO(t))||K.error("Unsupported user:",t),e&&u.setContext(eT(t)),e_({feature:"set-user"})}),getUser:te(function(){return u.getContext()}),setUserProperty:te(function(t,e){var n,r=eT(((n={})[t]=e,n))[t];u.setContextProperty(t,r),e_({feature:"set-user"})}),removeUserProperty:te(function(t){return u.removeContextProperty(t)}),clearUser:te(function(){return u.clearContext()}),startView:p,stopSession:te(function(){f.stopSession(),e_({feature:"stop-session"})}),addFeatureFlagEvaluation:te(function(t,e){f.addFeatureFlagEvaluation(tN(t),tN(e)),e_({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:te(function(){return e.getSessionReplayLink()}),startSessionReplayRecording:te(function(t){e.start(t),e_({feature:"start-session-replay-recording",force:t&&t.force})}),stopSessionReplayRecording:te(function(){return e.stop()})}),"_setDebug",{get:function(){return tt},enumerable:!1}),o);return g}(function(t,e,n,r,i,o,a){var s,l,d,f,p,h,g,v,y,_,x,S,k,R,A,P,N,I,L,M,D,F,j,U,z,V,q,H,Z,W,G,Q,Y,J,X=[],tt=new nD;tt.subscribe(13,function(t){return ec("rum",t)});var tr=function(t){var e,n,r,i,o,a,s,c,l=(e="browser-rum-sdk",i=new tM,o=new Set,a=!ti(ev,t.site)&&t9(t.telemetrySampleRate),(n={}).log=a,n[ep]=a&&t9(t.telemetryConfigurationSampleRate),n[eh]=a&&t9(t.telemetryUsageSampleRate),s=n,c={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self},ey=function(n){var a=tx(n);if(s[n.type]&&o.size<t.maxTelemetryEventsPerPage&&!o.has(a)){var u=tP({type:"telemetry",date:ei(),service:e,version:"5.23.3",source:"browser",_dd:{format_version:2},telemetry:tP(n,{runtime_env:c,connectivity:el()}),experimental_features:to(tU)},void 0!==r?r():{});i.notify(u),ec("telemetry",u),o.add(a)}},u=ew,{setContextProvider:function(t){r=t},observable:i,enabled:a});if(eP()){var d=eR();l.observable.subscribe(function(t){return d.send("internal_telemetry",t)})}return l}(t);tr.setContextProvider(function(){var e,n;return{application:{id:t.applicationId},session:{id:null===(e=th.findTrackedSession())||void 0===e?void 0:e.id},view:{id:null===(n=tK.findView())||void 0===n?void 0:n.id},action:{id:tG.findActionId()}}});var tu=function(t){tt.notify(14,{error:t}),eb("Error reported to customer",{"error.message":t.message})},tl=(tS=n.getOrCreateTracker(0),tk=nj({expireDelay:144e5}),tt.subscribe(2,function(t){var e=t.startClocks;tk.add({},e.relative),tS.resetCustomerData()}),tt.subscribe(6,function(t){var e=t.endClocks;tk.closeActive(e.relative)}),{findFeatureFlagEvaluations:function(t){return tk.find(t)},addFeatureFlagEvaluation:function(t,e){var n=tk.find();n&&(n[t]=e,tS.updateCustomerData(n))},stop:function(){return tS.stop()}}),tf=new tM(function(e){var n=eS(t,window,["visibilitychange","freeze"],function(t){"visibilitychange"===t.type&&"hidden"===document.visibilityState?e.notify({reason:nh.HIDDEN}):"freeze"===t.type&&e.notify({reason:nh.FROZEN})},{capture:!0}).stop,r=ex(t,window,"beforeunload",function(){e.notify({reason:nh.UNLOADING})}).stop;return function(){n(),r()}}),tp=tf.subscribe(function(t){tt.notify(11,t)});X.push(function(){return tp.unsubscribe()});var th=eP()?(tT={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:eA("records")?1:0},{findTrackedSession:function(){return tT},expire:t_,expireObservable:new tM,setForcedReplay:t_}):((tR=function(t,e,n,r){var i,o,a,s,u,c,l=new tM,d=new tM,f=function(t,e,n){var r,i,o,a=new tM,s=new tM,u=new tM,c="Cookie"===t.type?(r=t.cookieOptions,function(t){if(!e$(eK)){var e=e$("_dd"),n=e$("_dd_r"),r=e$("_dd_l"),i={};e&&(i.id=e),r&&/^[01]$/.test(r)&&(i.logs=r),n&&/^[012]$/.test(n)&&(i.rum=n),tE(i)||(eY(i),t.persistSession(i))}}(i={isLockEnabled:1===eZ(),persistSession:function(t){eq(eK,eJ(t),9e5,r)}
1,retrieveSession:e0,expireSession:function(){eq(eK,eJ(eG()),144e5,r)}}),i):{isLockEnabled:!1,persistSession:e1,retrieveSession:e2,expireSession:e3},l=c.expireSession,d=ty(function(){e8({process:function(t){return eQ(t)?eG():void 0},after:g},c)},1e3);v();var f=tw(function(){e8({process:function(t){if(!tE(t)){var e=g(t);return function(t){if(tE(t))return 0;var e=n(t.rum),r=e.trackingType,i=e.isTracked;t.rum=r,delete t.isExpired,i&&!t.id&&(t.id=ej(),t.created=String(er()))}(e),e}},after:function(t){tE(t)||m()||(o=t,a.notify()),o=t}},c)},1e3),p=f.throttled,h=f.cancel;function g(t){var n;return eQ(t)&&(t=eG()),m()&&((n=t,o.id!==n.id||o[e]!==n[e])?(o=eG(),s.notify()):(u.notify({previousState:o,newState:t}),o=t)),t}function v(){e8({process:function(t){if(tE(t))return eG()},after:function(t){o=t}},c)}function m(){return void 0!==o[e]}return{expandOrRenewSession:p,expandSession:function(){e8({process:function(t){return m()?g(t):void 0}},c)},getSession:function(){return o},renewObservable:a,expireObservable:s,sessionStateUpdateObservable:u,restartSession:v,expire:function(){h(),l(),g(eG())},stop:function(){tb(d)},updateSessionState:function(t){e8({process:function(e){return td({},e,t)},after:g},c)}}}(t.sessionStoreStrategyType,"rum",n);rY.push(function(){return f.stop()});var p=nj({expireDelay:144e5});function h(){return{id:f.getSession().id,trackingType:f.getSession().rum,isReplayForced:!!f.getSession().forcedReplay}}return rY.push(function(){return p.stop()}),f.renewObservable.subscribe(function(){p.add(h(),eo()),l.notify()}),f.expireObservable.subscribe(function(){d.notify(),p.closeActive(eo())}),f.expandOrRenewSession(),p.add(h(),es().relative),r.observable.subscribe(function(){r.isGranted()?f.expandOrRenewSession():f.expire()}),i=eS(t,window,["click","touchstart","keydown","scroll"],function(){r.isGranted()&&f.expandOrRenewSession()},{capture:!0,passive:!0}).stop,rY.push(i),o=function(){return f.expandSession()},a=function(){"visible"===document.visibilityState&&o()},s=ex(t,document,"visibilitychange",a).stop,rY.push(s),u=ty(a,6e4),rY.push(function(){tb(u)}),c=ex(t,window,"resume",function(){return f.restartSession()},{capture:!0}).stop,rY.push(c),{findSession:function(t,e){return p.find(t,e)},renewObservable:l,expireObservable:d,sessionStateUpdateObservable:f.sessionStateUpdateObservable,expire:f.expire,updateSessionState:f.updateSessionState}}(t,0,function(e){var n;return{trackingType:n="0"===e||"1"===e||"2"===e?e:t9(t.sessionSampleRate)?t9(t.sessionReplaySampleRate)?"1":"2":"0",isTracked:rJ(n)}},a)).expireObservable.subscribe(function(){tt.notify(9)}),tR.renewObservable.subscribe(function(){tt.notify(10)}),tR.sessionStateUpdateObservable.subscribe(function(t){var e=t.previousState,n=t.newState;if(!e.forcedReplay&&n.forcedReplay){var r=tR.findSession();r&&(r.isReplayForced=!0)}}),{findTrackedSession:function(t){var e=tR.findSession(t);if(e&&rJ(e.trackingType))return{id:e.id,sessionReplay:"1"===e.trackingType?1:e.isReplayForced?2:0}},expire:tR.expire,expireObservable:tR.expireObservable,setForcedReplay:function(){return tR.updateSessionState({forcedReplay:"1"})}});if(eP())!function(t){var e=eR();t.subscribe(13,function(t){e.send("rum",t)})}(tt);else{var tg,tS,tk,tT,tR,tI,tL,tF,tj,tq=(tI=tr.observable,tL=th.expireObservable,tF=t.replica,tj=function(t,e,n,r,i,o,a){void 0===a&&(a=rX);var s=c(t,e),u=n&&c(t,n);function c(t,e){var n=e.endpoint,s=e.encoder;return a({encoder:s,request:r8(t,n,t.batchBytesLimit,r),flushController:function(t){var e,n=t.messagesLimit,r=t.bytesLimit,i=t.durationLimit,o=t.pageExitObservable,a=t.sessionExpireObservable,s=o.subscribe(function(t){return f(t.reason)}),u=a.subscribe(function(){return f("session_expire")}),c=new tM(function(){return function(){s.unsubscribe(),u.unsubscribe()}}),l=0,d=0;function f(t){if(0!==d){var e=d,n=l;d=0,l=0,p(),c.notify({reason:t,messagesCount:e,bytesCount:n})}}function p(){tm(e),e=void 0}return{flushObservable:c,get messagesCount(){return d},notifyBeforeAddMessage:function(t){l+t>=r&&f("bytes_limit"),d+=1,l+=t,void 0===e&&(e=tv(function(){f("duration_limit")},i))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),l+=t,d>=n?f("messages_limit"):l>=r&&f("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0==(d-=1)&&p()}}}({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:i,sessionExpireOb
1servable:o}),messageBytesLimit:t.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),s.add(t),u&&e&&u.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){s.upsert(t,e),u&&u.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){s.stop(),u&&u.stop()}}}(t,{endpoint:t.rumEndpointBuilder,encoder:o(2)},tF&&{endpoint:tF.rumEndpointBuilder,transformMessage:function(t){return tP(t,{application:{id:tF.applicationId}})},encoder:o(3)},tu,tf,tL),tt.subscribe(13,function(t){"view"===t.type?tj.upsert(t,t.view.id):tj.add(t)}),tI.subscribe(function(e){return tj.add(e,t.site===t8)}),tj);X.push(function(){return tq.stop()}),tg=tq.flushObservable,tr.enabled&&t9(t.customerDataTelemetrySampleRate)&&(ir(),ii(),tt.subscribe(13,function(t){O=!0,it(T.globalContextBytes,n.getOrCreateTracker(2).getBytesCount()),it(T.userContextBytes,n.getOrCreateTracker(1).getBytesCount()),it(T.featureFlagBytes,ti(["view","error"],t.type)?n.getOrCreateTracker(0).getBytesCount():0)}),tg.subscribe(function(t){var e=t.bytesCount,n=t.messagesCount;O&&(E.batchCount+=1,it(E.batchBytesCount,e),it(E.batchMessagesCount,n),ie(E.globalContextBytes,T.globalContextBytes),ie(E.userContextBytes,T.userContextBytes),ie(E.featureFlagBytes,T.featureFlagBytes),ii())}),ty(r9,1e4))}var tB=(F=ng(),new tM(function(t){if(F){var e=new F(te(function(){return t.notify()}));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}})),t$=(U=tC(j=location),new tM(function(e){var n,r,i,o=(n=eN(history,"pushState",function(t){(0,t.onPostCall)(s)}).stop,r=eN(history,"replaceState",function(t){(0,t.onPostCall)(s)}).stop,i=ex(t,window,"popstate",s).stop,{stop:function(){n(),r(),i()}}).stop,a=ex(t,window,"hashchange",s).stop;function s(){if(U.href!==j.href){var t=tC(j);e.notify({newLocation:t,oldLocation:U}),U=t}}return function(){o(),a()}})),tH=function(t,e){void 0===e&&(e=500);var n,r=nj({expireDelay:144e5,maxEntries:4e3});o(io(),eo());var i=eS(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(t){o("freeze"===t.type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":io(),t.timeStamp)},{capture:!0}).stop;function o(t,e){void 0===e&&(e=eo()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}var a={findAll:function(t,n){var i=r.findAll(t,n);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-e),s=i.length-1;s>=a;s--){var u=i[s],c=u.startTime-t;o.push({state:u.state,start:en(c)})}return o}},wasInPageStateAt:function(t,e){return a.wasInPageStateDuringPeriod(t,e,0)},wasInPageStateDuringPeriod:function(t,e,n){return r.findAll(e,n).some(function(e){return e.state===t})},addPageState:o,stop:function(){i(),r.stop()}};return a}(t),tZ=(s=tt,l=t,d=location,f=th,p=tH,h=t$,g=tB,v=r,y=tu,S=(_=nj({expireDelay:144e5}),s.subscribe(2,function(t){_.add({service:t.service,version:t.version,id:t.id,name:t.name,startClocks:t.startClocks},t.startClocks.relative)}),s.subscribe(6,function(t){var e=t.endClocks;_.closeActive(e.relative)}),s.subscribe(4,function(t){var e=_.find(t.startClocks.relative);e&&t.name&&(e.name=t.name)}),s.subscribe(10,function(){_.reset()}),{findView:function(t){return _.find(t)},stop:function(){_.stop()}}),k=function(t,e,n){var r,i=nj({expireDelay:144e5});t.subscribe(2,function(t){var e=t.startClocks,o=n.href;i.add(a({url:o,referrer:r||document.referrer}),e.relative),r=o}),t.subscribe(6,function(t){var e=t.endClocks;i.closeActive(e.relative)});var o=e.subscribe(function(t){var e=t.newLocation,n=i.find();if(n){var r=eo();i.closeActive(r),i.add(a({url:e.href,referrer:n.referrer}),r)}});function a(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(s,h,d),A=(R=function(t,e,n,r){t.subscribe(1,function(e){return t.notify(12,rT(e,r))});var i={findActionId:t_};return n.trackUserInteractions&&(i=function(t,e,n){var r,i,o,a,s,u,c,l,d=nj({expireDelay:3e5}),f=new tM;t.subscribe(10,function(){d.reset()}),t.subscribe(5,g);var p=(a=(r={onPointerDown:function(r){return function(t,e,n,r){var i,o=t.enablePrivacyF
1orActionName?n7(r.target,t.defaultPrivacyLevel):n8.ALLOW;if(o!==n8.HIDDEN){var a,s,u,c,l,d,f,p,h=(a=r,s=o,u=t,{type:"click",target:{width:Math.round((p=a.target.getBoundingClientRect()).width),height:Math.round(p.height),selector:rm(a.target,u.actionNameAttribute)},position:{x:Math.round(a.clientX-p.left),y:Math.round(a.clientY-p.top)},name:(c=a.target,l=u.enablePrivacyForActionName,d=u.actionNameAttribute,f=rs(c,ra)||d&&rs(c,d),s===n8.MASK?f||"Masked Element":f||rl(c,d,ru,l)||rl(c,d,rc,l)||"")}),g=!1;return i=function(t){g=t.hadActivity},nZ(nK(e,n,t),i,100),{clickActionBase:h,hadActivityOnPointerDown:function(){return g}}}}(n,t,e,r)},onPointerUp:function(r,i,o){var a,s,u,c,l,p,g,v,m,y,b,w,_,x,S;a=n,s=t,u=e,c=d,l=f,p=h,g=r.clickActionBase,v=i,m=o,y=r.hadActivityOnPointerDown,p(w=function t(e,n,r,i,o){var a,s=ej(),u=ea(),c=n.add(s,u.relative),l=nH({lifeCycle:e,isChildEvent:function(t){return void 0!==t.action&&(Array.isArray(t.action.id)?ti(t.action.id,s):t.action.id===s)}}),d=0,f=[],p=new tM;function h(t){0===d&&((d=1,a=t)?c.close(a-eu()):c.remove(),l.stop(),p.notify())}return{event:o,stop:h,stopObservable:p,get hasError(){return l.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==a},getUserActivity:r,addFrustration:function(t){f.push(t)},startClocks:u,isStopped:function(){return 1===d||2===d},clone:function(){return t(e,n,r,i,o)},validate:function(t){if(h(),1===d){var n,r=l.eventCounts,c=r.resourceCount,p=r.errorCount,g=r.longTaskCount,v=td({type:"click",duration:a&&(n=u.timeStamp,a-n),startClocks:u,id:s,frustrationTypes:f,counts:{resourceCount:c,errorCount:p,longTaskCount:g},events:null!=t?t:[o],event:o},i);e.notify(1,v),d=2}},discard:function(){h(),d=2}}}(s,c,m,g,v)),_=(b=function(t){t.hadActivity&&t.end<w.startClocks.timeStamp?w.discard():t.hadActivity?w.stop(t.end):y()?w.stop(w.startClocks.timeStamp):w.stop()},nZ(nK(s,u,a),b,1e4)).stop,x=s.subscribe(5,function(t){var e=t.endClocks;w.stop(e.timeStamp)}),S=l.subscribe(function(){w.stop()}),w.stopObservable.subscribe(function(){x.unsubscribe(),_(),S.unsubscribe()})}}).onPointerDown,s=r.onPointerUp,u={selection:!1,input:!1,scroll:!1},c=[ex(n,window,"pointerdown",function(t){rk(t)&&(i=rC(),u={selection:!1,input:!1,scroll:!1},o=a(t))},{capture:!0}),ex(n,window,"selectionchange",function(){i&&rC()||(u.selection=!0)},{capture:!0}),ex(n,window,"scroll",function(){u.scroll=!0},{capture:!0,passive:!0}),ex(n,window,"pointerup",function(t){if(rk(t)&&o){var e=u;s(o,t,function(){return e}),o=void 0}},{capture:!0}),ex(n,window,"input",function(){u.input=!0},{capture:!0})],{stop:function(){c.forEach(function(t){return t.stop()})}}).stop;return{stop:function(){g(),f.notify(),p()},actionContexts:{findActionId:function(t){return d.findAll(t)}}};function h(t){if(!l||!l.tryAppend(t)){var e=t.clone();l=function(t,e){var n,r=[],i=0;function o(t){t.stopObservable.subscribe(a),r.push(t),tm(n),n=tv(s,1e3)}function a(){1===i&&r.every(function(t){return t.isStopped()})&&(i=2,e(r))}function s(){tm(n),0===i&&(i=1,a())}return o(t),{tryAppend:function(t){var e,n;return 0===i&&(!(r.length>0)||(e=r[r.length-1].event,n=t.event,e.target===n.target&&100>=Math.sqrt(Math.pow(e.clientX-n.clientX,2)+Math.pow(e.clientY-n.clientY,2))&&e.timeStamp-n.timeStamp<=1e3)?(o(t),!0):(s(),!1))},stop:function(){s()}}}(t,function(t){(function(t,e){if(function(t){if(t.some(function(t){return t.getUserActivity().selection||t.getUserActivity().scroll}))return!1;for(var e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=1e3)return!0;return!1}(t))return e.addFrustration("rage_click"),t.some(rE)&&e.addFrustration("dead_click"),e.hasError&&e.addFrustration("error_click"),{isRage:!0};var n=t.some(function(t){return t.getUserActivity().selection});return t.forEach(function(t){t.hasError&&t.addFrustration("error_click"),rE(t)&&!n&&t.addFrustration("dead_click")}),{isRage:!1}})(t,e).isRage?(t.forEach(function(t){return t.discard()}),e.stop(ei()),e.validate(t.map(function(t){return t.event}))):(e.discard(),t.forEach(function(t){return t.validate()}))})}}function g(){l&&l.stop()}}(t,e,n).actionContexts),{addAction:function(e,n){t.notify(12,td({s
1avedCommonContext:n},rT(e,r)))},actionContexts:i}}(s,g,l,p)).addAction,P=R.actionContexts,N=(x=rG(),{get:function(){return{viewport:x}},stop:rW(l).subscribe(function(t){x=t}).unsubscribe}),I=function(t,e){if(void 0===e){var n;n=window.cookieStore?function(e,n){return ex(t,window.cookieStore,"change",function(t){var r=ta(t.changed,function(t){return t.name===e})||ta(t.deleted,function(t){return t.name===e});r&&n(r.value)}).stop}:ia,e=new tM(function(t){return n(is,function(e){return t.notify(e)})})}var r,i=e$(is)||(null===(r=window.Cypress)||void 0===r?void 0:r.env("traceId")),o=e.subscribe(function(t){i=t});return{get:function(){if("string"==typeof i)return{test_execution_id:i}},stop:function(){return o.unsubscribe()}}}(l),!function(t,e,n,r,i,o,a,s,u,l){(d={}).view=nI,d.error=td({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},nL,nI,nM),d.resource=td({"resource.url":"string"},tz(c.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},nL,nI,nM),d.action=td({"action.target.name":"string"},nL,nI,nM),d.long_task=td({},nL,nI),d.vital=td({},nL,nI),b=d;var d,f,p=((f={}).error=nA("error",t.eventRateLimiterThreshold,l),f.action=nA("action",t.eventRateLimiterThreshold,l),f.vital=nA("vital",t.eventRateLimiterThreshold,l),f),h=function(){var t,e,n="string"==typeof(t=window._DATADOG_SYNTHETICS_PUBLIC_ID||e$("datadog-synthetics-public-id"))?t:void 0,r="string"==typeof(e=window._DATADOG_SYNTHETICS_RESULT_ID||e$("datadog-synthetics-result-id"))?e:void 0;if(n&&r)return{test_id:n,result_id:r,injected:eH()}}();e.subscribe(12,function(c){var l=c.startTime,d=c.rawRumEvent,f=c.domainContext,g=c.savedCommonContext,v=c.customerContext,m=r.findView(l),y=i.findUrl(l),w=n.findTrackedSession(l);if(w&&m&&y){var _=g||u(),x=o.findActionId(l),S=tP({_dd:{format_version:2,drift:Math.round(er()-(eu()+performance.now())),configuration:{session_sample_rate:t7(t.sessionSampleRate,3),session_replay_sample_rate:t7(t.sessionReplaySampleRate,3)},browser_sdk_version:eP()?"5.23.3":void 0},application:{id:t.applicationId},date:ei(),service:m.service||t.service,version:m.version||t.version,source:"browser",session:{id:w.id,type:h?"synthetics":s.get()?"ci_test":"user"},view:{id:m.id,name:m.name,url:y.url,referrer:y.referrer},action:-1!==["error","resource","long_task"].indexOf(d.type)&&x?{id:x}:void 0,synthetics:h,ci_test:s.get(),display:a.get(),connectivity:el()},d);S.context=tP(_.context,v),"has_replay"in S.session||(S.session.has_replay=_.hasReplay),"view"===S.type&&(S.session.sampled_for_replay=1===w.sessionReplay),tE(_.user)||(S.usr=_.user),function(t,e,n,r){if(e){var i,o,a,s,u=(i=b[t.type],a=e(o=tA(t),n),tc(i).forEach(function(e){var n=e[0],r=e[1],i=function(t,e){for(var n=t,r=0,i=e.split(".");r<i.length;r++){var o,a=i[r];if(!(nN(o=n)&&Object.prototype.hasOwnProperty.call(o,a)))return;n=n[a]}return n}(o,n),a=tO(i);a===r?nP(t,n,tN(i)):"object"===r&&("undefined"===a||"null"===a)&&nP(t,n,{})}),a);if(!1===u&&"view"!==t.type)return!1;!1===u&&K.warn("Can't dismiss view events using beforeSend!")}return!(null===(s=r[t.type])||void 0===s?void 0:s.isLimitReached())}(S,t.beforeSend,f,p)&&(tE(S.context)&&delete S.context,e.notify(13,S))}})}(l,s,f,S,k,P,N,I,v,y),{viewContexts:S,pageStateHistory:p,urlContexts:k,addAction:A,actionContexts:P,stop:function(){I.stop(),N.stop(),p.stop(),k.stop(),S.stop(),p.stop()}}),tK=tZ.viewContexts,tW=tZ.urlContexts,tG=tZ.actionContexts,tQ=tZ.addAction,t1=tZ.stop;X.push(t1),em.drain();var t6=(z=location,tt.subscribe(4,function(n){var r,i,o,a,s,u,c,l,d,f,p,h,g,v,m,y,b,w,_,x;return tt.notify(12,(b=e.getReplayStats(n.id),w=tl.findFeatureFlagEvaluations(n.startClocks.relative),_=tH.findAll(n.startClocks.relative,n.duration),x={_dd:{document_version:n.documentVersion,replay_stats:b,page_states:_,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:n.startClocks.timeStamp,type:"view",view:{action:{count:n.eventCounts.actionCount},frustration:{count:n.eventCounts.frustrationCount},cumulative_layout_shift:null===(r=n.commonViewMetrics.cumulativeLayoutShift)||void 0===r?void 0:r.value,cumulative_layout_shift_time:en(null===(i=n.commonViewMetrics.cumulativeLayoutShift)||void 0===i?void 0:i.time),cumulative_layout_shift_target_selector:null===(o=n.commonViewMetrics.cumulativeLayoutShift)||void 0===o?void 0:o.targetSelector,first_byte:en(null===(a=n.initialViewMetrics.navigationTimings)||void 0===a?void 0:a.firstByte),dom_complete:en(null===(s=n.initialViewMetrics.navigationTimings)||void 0===s?void 0:s.domComplete),dom_content_loaded:en(null===(u=n.initialViewMetrics.navigationTimings)||void 0===u?void 0:u.domContentLoaded),dom_interactive:en(null===(c=n.initialViewMetrics.navigationTimings)||void 0===c?void 0:c.domInteractive),error:{count:n.eventCounts.errorCount},first_contentful_paint:en(n.initialViewMetrics.firstContentfulPaint),first_input_delay:en(null===(l=n.initialViewMetrics.firstInput)||void 0===l?void 0:l.delay),first_input_time:en(null===(d=n.initialViewMetrics.firstInput)||void 0===d?void 0:d.time),first_input_target_selector:null===(f=n.initialViewMetrics.firstInput)||void 0===f?void 0:f.targetSelector,interaction_to_next_paint:en(null===(p=n.commonViewMetrics.interactionToNextPaint)||void 0===p?void 0:p.value),interaction_to_next_paint_time:en(null===(h=n.commonViewMetrics.interactionToNextPaint)||void 0===h?void 0:h.time),interaction_to_next_paint_target_selector:null===(g=n.commonViewMetrics.interactionToNextPaint)||void 0===g?void 0:g.targetSelector,is_active:n.isActive,name:n.name,largest_contentful_paint:en(null===(v=n.initialViewMetrics.largestContentfulPaint)||void 0===v?void 0:v.value),largest_contentful_paint_target_selector:null===(m=n.initialViewMetrics.largestContentfulPaint)||void 0===m?void 0:m.targetSelector,load_event:en(null===(y=n.initialViewMetrics.navigationTimings)||void 0===y?void 0:y.loadEvent),loading_time:n$(en(n.commonViewMetrics.loadingTime)),loading_type:n.loadingType,long_task:{count:n.eventCounts.longTaskCount},resource:{count:n.eventCounts.resourceCount},time_spent:en(n.duration)},feature_flags:w&&!tE(w)?w:void 0,display:n.commonViewMetrics.scroll?{scroll:{max_depth:n.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:n.
1commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:n.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:en(n.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!b||void 0,is_active:!!n.sessionIsActive&&void 0},privacy:{replay_level:t.defaultPrivacyLevel}},tE(n.customTimings)||(x.view.custom_timings=function(t,e){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n[o]=e(t[o])}return n}(n.customTimings,en)),{rawRumEvent:x,startTime:n.startClocks.relative,domainContext:{location:n.location}}))}),function(t,e,n,r,i,o,a){var s,u=new Set,l=d("initial_load",es(),a);function d(i,o,a){var s=function(t,e,n,r,i,o,a){void 0===o&&(o=ea());var s,u,l,d,f,p,h,g,v,y,b,w,_,x,S,k,E,T,O,R,A,P,N,I,L,M,D,F,j,U,z,V,q,B,$,H,Z,W,G,Q,Y,J,X=ej(),tt=new tM,tn={},tr=0,ti=tC(r),to=!0;a&&(Q=a.name,Y=a.service||void 0,J=a.version||void 0);var tu={id:X,name:Q,startClocks:o,service:Y,version:J};t.notify(2,tu),t.notify(3,tu);var tc=tw(tP,3e3,{leading:!1}),tl=tc.throttled,td=tc.cancel,tf=(l={},f=(d=function(t,e,n,r,i,o){var a,s="initial_load"===r,u=!0,c=[];function l(){u||s||!(c.length>0)||o(Math.max.apply(Math,c))}return{stop:(a=function(t){if(u){if(u=!1,t.hadActivity){var e;c.push((e=i.timeStamp,t.end-e))}l()}}
1,nZ(nK(t,e,n),a,void 0)).stop,setLoadEvent:function(t){s&&(s=!1,c.push(t),l())}}}(t,e,n,i,u=o,function(t){l.loadingTime=t,tl()})).stop,p=d.setLoadEvent,_=(h=function(t){l.scroll=t},void 0===g&&(void 0===s&&(s=1e3),g=new tM(function(t){if(window.ResizeObserver){var e=tw(function(){var e,n;t.notify((e=rK(),n=rG().height,{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(n+e),scrollTop:e}))},s,{leading:!1,trailing:!0}),r=document.scrollingElement||document.documentElement,i=new ResizeObserver(te(e.throttled));i.observe(r);var o=ex(n,window,"scroll",e.throttled,{passive:!0});return function(){e.cancel(),i.unobserve(r),o.stop()}}})),v=0,y=0,b=0,w=g.subscribe(function(t){var e=t.scrollDepth,n=t.scrollTop,r=t.scrollHeight,i=!1;e>v&&(v=e,i=!0),r>y&&(y=r,b=eo()-u.relative,i=!0),i&&h({maxDepth:Math.min(v,y),maxDepthScrollTop:n,maxScrollHeight:y,maxScrollHeightTime:b})}),{stop:function(){return w.unsubscribe()}}).stop,x=function(t,e,n,r){if(!nE(m.LAYOUT_SHIFT))return{stop:t_};var i,o,a,s,u,c,l=0;r({value:0});var d=(a=0,s=0,{update:function(t){var e;return void 0===i||t.startTime-o>=1e3||t.startTime-i>=5e3?(i=o=t.startTime,s=a=t.value,e=!0):(a+=t.value,o=t.startTime,(e=t.value>s)&&(s=t.value)),{cumulatedValue:a,isMaxValue:e}}});return{stop:e.subscribe(0,function(e){for(var i=0;i<e.length;i++){var o=e[i];if(o.entryType===m.LAYOUT_SHIFT&&!o.hadRecentInput){var a=d.update(o),s=a.cumulatedValue;if(a.isMaxValue){var f=function(t){var e;if(t)return null===(e=ta(t,function(t){return!!t.node&&n0(t.node)}))||void 0===e?void 0:e.node}(o.sources);u=f?new WeakRef(f):void 0,c=o.startTime-n}if(s>l){l=s;var f=null==u?void 0:u.deref();r({value:t7(l,4),targetSelector:f&&rm(f,t.actionNameAttribute),time:c})}}}}).unsubscribe}}(n,t,u.relative,function(t){l.cumulativeLayoutShift=t,tl()}).stop,k=(S=function(t,e,n,r){if(!(nE(m.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:t_,stop:t_};var i,o,a,s,u=("interactionCount"in performance||C||(C=new window.PerformanceObserver(te(function(t){t.getEntries().forEach(function(t){t.interactionId&&(rB=Math.min(rB,t.interactionId),rq=((r$=Math.max(r$,t.interactionId))-rB)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),i="initial_load"===n?0:rH(),o={stopped:!1},{getViewInteractionCount:function(){return o.stopped?o.interactionCount:rH()-i},stopViewInteractionCount:function(){o={stopped:!0,interactionCount:rH()-i}}}),c=u.getViewInteractionCount,l=u.stopViewInteractionCount,d=1/0,f=function(t){var e=[];function n(){e.sort(function(t,e){return e.duration-t.duration}).splice(10)}return{process:function(t){var r=e.findIndex(function(e){return t.interactionId===e.interactionId}),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(c),p=-1;return{getInteractionToNextPaint:function(){return p>=0?{value:Math.min(p,6e4),targetSelector:a,time:s}:c()?{value:0}:void 0},setViewEnd:function(t){d=t,l()},stop:r.subscribe(0,function(n){for(var r=0;r<n.length;r++){var i=n[r];(i.entryType===m.EVENT||i.entryType===m.FIRST_INPUT)&&i.interactionId&&i.startTime>=e&&i.startTime<=d&&f.process(i)}var o=f.estimateP98Interaction();o&&o.duration!==p&&(p=o.duration,s=o.startTime-e,a=o.target&&n0(o.target)?rm(o.target,t.actionNameAttribute):void 0)}).unsubscribe}}(n,u.relative,i,t)).stop,E=S.getInteractionToNextPaint,{stop:function(){f(),x(),_()}
1,stopINPTracking:k,setLoadEvent:p,setViewEnd:S.setViewEnd,getCommonViewMetrics:function(){return l.interactionToNextPaint=E(),l}}),tp=tf.setLoadEvent,th=tf.setViewEnd,tg=tf.stop,tm=tf.stopINPTracking,tx=tf.getCommonViewMetrics,tS="initial_load"===i?(T={},P=(O=function(t){tp(t.loadEvent),T.navigationTimings=t,tl()},R=function(t){t.loadEventEnd<=0||O({domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:t.responseStart>=0&&t.responseStart<=eo()?t.responseStart:void 0})},A=t_,nE(m.NAVIGATION)?A=nk(n,{type:m.NAVIGATION,buffered:!0}).subscribe(function(t){return ts(t,R)}).unsubscribe:rL(n,"complete",function(){tv(function(){return R(rF())})}),{stop:A}).stop,void 0===N&&(N=window),"hidden"===document.visibilityState?I=0:(I=1/0,L=eS(n,N,["pagehide","visibilitychange"],function(t){("pagehide"===t.type||"hidden"===document.visibilityState)&&(I=t.timeStamp,L())},{capture:!0}).stop),M={get timeStamp(){return I},stop:function(){null==L||L()}},F=(D=function(t){T.firstContentfulPaint=t,tl()},{stop:t.subscribe(0,function(t){var e=ta(t,function(t){return t.entryType===m.PAINT&&"first-contentful-paint"===t.name&&t.startTime<M.timeStamp&&t.startTime<6e5});e&&D(e.startTime)}).unsubscribe}).stop,$=(j=window,U=function(t){T.largestContentfulPaint=t,tl()},z=1/0,V=eS(n,j,["pointerdown","keydown"],function(t){z=t.timeStamp},{capture:!0,once:!0}).stop,q=0,B=t.subscribe(0,function(t){var e=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(t,function(t){return t.entryType===m.LARGEST_CONTENTFUL_PAINT&&t.startTime<z&&t.startTime<M.timeStamp&&t.startTime<6e5&&t.size>q});if(e){var r=void 0;e.element&&(r=rm(e.element,n.actionNameAttribute)),U({value:e.startTime,targetSelector:r}),q=e.size}}).unsubscribe,{stop:function(){V(),B()}}).stop,Z=(H=function(t){T.firstInput=t,tl()},{stop:t.subscribe(0,function(t){var e=ta(t,function(t){return t.entryType===m.FIRST_INPUT&&t.startTime<M.timeStamp});if(e){var r,i=(r=e.startTime,e.processingStart-r),o=void 0;e.target&&n0(e.target)&&(o=rm(e.target,n.actionNameAttribute)),H({delay:i>=0?i:0,time:e.startTime,targetSelector:o})}}).unsubscribe}).stop,{stop:function(){P(),F(),$(),Z(),M.stop()},initialViewMetrics:T}):{stop:t_,initialViewMetrics:{}},tk=tS.stop,tE=tS.initialViewMetrics,tT={stop:(W=nH({lifeCycle:t,isChildEvent:function(t){return t.view.id===X},onChange:tl})).stop,eventCounts:W.eventCounts},tO=tT.stop,tR=tT.eventCounts,tA=ty(tP,3e5);function tP(){td(),tr+=1;var e=void 0===G?ei():G.timeStamp;t.notify(4,{customTimings:tn,documentVersion:tr,id:X,name:Q,service:Y,version:J,loadingType:i,location:ti,startClocks:o,commonViewMetrics:tx(),initialViewMetrics:tE,duration:e-o.timeStamp,isActive:void 0===G,sessionIsActive:to,eventCounts:tR})}return tP(),{get name(){return Q},service:Y,version:J,stopObservable:tt,end:function(e){var n,r,i=this;void 0===e&&(e={}),G||(G=null!==(n=e.endClocks)&&void 0!==n?n:ea(),to=null===(r=e.sessionIsActive)||void 0===r||r,t.notify(5,{endClocks:G}),t.notify(6,{endClocks:G}),tb(tA),th(G.relative),tg(),tP(),tv(function(){i.stop()},3e5))},stop:function(){tk(),tO(),tm(),tt.notify()},addTiming:function(t,e){if(!G){var n,r=e<31536e6?e:e-o.timeStamp;tn[(n=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==t&&K.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(n)),n]=r,tl()}},updateViewName:function(t){tz(c.UPDATE_VIEW_NAME)&&(Q=t,tP())}}}(e,n,r,t,i,o,a);return u.add(s),s.stopObservable.subscribe(function(){u.delete(s)}),s}return e.subscribe(10,function(){l=d("route_change",void 0,{name:l.name,service:l.service,version:l.version})}),e.subscribe(9,function(){l.end({sessionIsActive:!1})}),e.subscribe(11,function(t){t.reason===nh.UNLOADING&&l.end()}),o&&(s=i.subscribe(function(t){var e,n,r;e=t.oldLocation,n=t.newLocation,e.pathname===n.pathname&&(""!==(r=n.hash.substring(1))&&document.getElementById(r)||rQ(n.hash)===rQ(e.hash))||(l.end(),l=d("route_change"))})),{addTiming:function(t,e){void 0===e&&(e=ei()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=d("route_change",e,t)},updateViewName:function(t){l.updateViewName(t)},stop:function(){s&&s.unsubscribe(),l.end(),u.forEach(function(t){return t.stop()})}}}(z,tt,tB,t,t$,!t.trackViewsManually,i)),t4=t6.addTiming,et=t6.startView,ed=t6.updateViewName,ef=t6.stop;X.push(ef);var eg=(void 0===V&&(V=rj),tt.subscribe(8,function(e){var n=function(t,e,n){var r=function(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=e.filter(function(t){return!rN.has(t)}).filter(function(t){return nb(t)}).filter(function(e){var n,r;return n=t.startClocks.relative,r=rI({startTime:t.startClocks.relative,duration:t.duration}),e.startTime>=n-1&&rI(e)<=r+1});if(1===n.length)return rN.add(n[0]),n[0].toJSON()}}}(t),i=r?ee(r.startTime):t.startClocks,o=function(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:rV(e)}}}(t,e);if(e.trackResources||o){var a,s="xhr"===t.type?"xhr":"fetch",u=r?rz(r):void 0,c=(a=t.duration,n.wasInPageStateDuringPeriod("frozen",i.relative,a)?void 0:en(a)),l=tP({date:i.timeStamp,resource:{id:ej(),type:s,duration:c,method:t.method,status_code:t.status,url:nS(t.url)?nC(t.url):t.url},type:"resource",_dd:{discarded:!e.trackResources}},o,u);return{startTime:i.relative,rawRumEvent:l,domainContext:{performanceEntry:r,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error,isAborted:t.isAborted,handlingStack:t.handlingStack}}}}(e,t,tH);n&&tt.notify(12,n)}),q=nk(t,{type:m.RESOURCE,buffered:!0}).subscribe(function(e){for(var n=0;n<e.length;n++){var r=e[n];if(!("xmlhttprequest"===r.initiatorType||"fetch"===r.initiatorType)){var i=rU(r,t);i&&tt.notify(12,i)}}}),V(t,function(e){var n=rU(e,t);n&&tt.notify(12,n)}),{stop:function(){q.unsubscribe()}}).stop;X.push(eg),function(t,e){t.subscribe(0,function(n){for(var r=0;r<n.length;r++){var i=n[r];if(i.entryType!==m.LONG_TASK||!e.trackLongTasks)break;var o=ee(i.startTime),a={date:o.timeStamp,long_task:{id:ej(),duration:en(i.duration)},type:"long_task",_dd:{discarded:!1}};t.notify(12,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i}})}})}(tt,t);var e_=(L=H=new tM,(M=[B.error].map(function(t){return rR[t]||(rR[t]=new tM(function(e){var n=$[t];return $[t]=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n.apply(console,r);var o=tJ();tn(function(){e.notify(function(t,e,n){var r,i,o,a=t.map(function(t){return"string"==typeof t?tN(t):t instanceof Error?t0(tV(t)):tx(tN(t),void 0,2)}).join(" ");if(e===B.error){var s=ta(t,function(t){return t instanceof Error});r=s?tX(tV(s)):void 0,i=t3(s),o=s?t5(s,"console"):void 0}return{api:e,message:a,stack:r,handlingStack:n,fingerprint:i,causes:o}}(r,t,o))})},function(){$[t]=n}})),rR[t]}),tD.apply(void 0,M)).subscribe(function(t){return L.notify({startClocks:ea(),message:t.message,stack:t.stack,fingerprint:t.fingerprint,source:nR.CONSOLE,handling:"handled",handlingStack:t.handlingStack})}),(D=Z=function(t,e){var n=t2({stackTrace:t,originalError:e,startClocks:ea(),nonErrorPrefix:"Uncaught",source:nR.SOURCE,handling:"unhandled"});H.notify(n)},eN(window,"onerror",function(t){var e,n,r,i,o,a=t.parameters,s=a[0],u=a[1],c=a[2],l=a[3],d=a[4];D(o=d instanceof Error?tV(d):{name:("[object String]"===({}).toString.call(s)&&(n=(e=tY.exec(s))[1],r=e[2]),i={name:n,message:r}).name,message:i.message,stack:[{url:u,column:l,line:c}]},null!=d?d:s)})).stop,eN(window,"onunhandledrejection",function(t){var e=t.parameters[0].reason||"Empty reason";Z(tV(e),e)}).stop,(G=[],ti(W=[rA,"intervention"],rA)&&G.push(new tM(function(e){return ex(t,document,"securitypolicyviolation",function(t){var n;e.notify((n="'".concat(t.blockedURI,"' blocked by '").concat(t.effectiveDirective,"' directive"),{type:rA,subtype:t.effectiveDirective,message:"".concat(rA,": ").concat(n),stack:rP(t.effectiveDirective,t.originalPolicy?"".concat(n,' of the policy "').concat(eV(t.originalPolicy,100,"..."),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber),originalReport:t}))}).stop})),(Q=W.filter(function(t){return t!==rA})).length&&G.push(new tM(function(t){if(window.ReportingObserver){var e=te(function(e,n){return e.forEach(function(e){var n,r;t.notify({type:n=e.type,subtype:(r=e.body).id,message:"".concat(n,": ").concat(r.message),originalReport:e,stack:rP(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})})}),n=new window.ReportingObserver(e,{types:Q,buffered:!0});return n.observe(),function(){n.disconnect()}}})),tD.apply(void 0,G)).subscribe(function(t){var e={startClocks:ea(),message:t.message,stack:t.stack,type:t.subtype,source:nR.REPORT,handling:"unhandled",originalError:t.originalReport};return"securitypolicyviolation"===t.originalReport.type&&(e.csp={dis
1position:t.originalReport.disposition}),H.notify(e)}),H.subscribe(function(t){return tt.notify(14,{error:t})}),tt.subscribe(14,function(t){var e,n,r,i=t.error,o=t.customerContext,a=t.savedCommonContext;tt.notify(12,td({customerContext:o,savedCommonContext:a},(e={date:i.startClocks.timeStamp,error:{id:ej(),message:i.message,source:i.source,stack:i.stack,handling_stack:i.handlingStack,type:i.type,handling:i.handling,causes:i.causes,source_type:"browser",fingerprint:i.fingerprint,csp:i.csp},type:"error",view:{in_foreground:tH.wasInPageStateAt("active",i.startClocks.relative)}},(n=tl.findFeatureFlagEvaluations(i.startClocks.relative))&&!tE(n)&&(e.feature_flags=n),r={error:i.originalError,handlingStack:i.handlingStack},{rawRumEvent:e,startTime:i.startClocks.relative,domainContext:r})))}),{addError:function(t,e){var n=t.error,r=t.handlingStack,i=t.startClocks,o=t.context,a=t2({stackTrace:n instanceof Error?tV(n):void 0,originalError:n,handlingStack:r,startClocks:i,nonErrorPrefix:"Provided",source:nR.CUSTOM,handling:"handled"});tt.notify(14,{customerContext:o,savedCommonContext:e,error:a})}}).addError;Y={clearTracingIfNeeded:ns,traceFetch:function(e){return nu(t,e,th,function(t){var n;if(e.input instanceof Request&&!(null===(n=e.init)||void 0===n?void 0:n.headers))e.input=new Request(e.input),Object.keys(t).forEach(function(n){e.input.headers.append(n,t[n])});else{e.init=tC(e.init);var r=[];e.init.headers instanceof Headers?e.init.headers.forEach(function(t,e){r.push([e,t])}):Array.isArray(e.init.headers)?e.init.headers.forEach(function(t){r.push(t)}):e.init.headers&&Object.keys(e.init.headers).forEach(function(t){r.push([t,e.init.headers[t]])}),e.init.headers=r.concat(tc(t))}})},traceXhr:function(e,n){return nu(t,e,th,function(t){Object.keys(t).forEach(function(e){n.setRequestHeader(e,t[e])})})}},function(t,e,n){(w||(w=new tM(function(t){var n=eN(XMLHttpRequest.prototype,"open",nz).stop,r=eN(XMLHttpRequest.prototype,"send",function(n){(function(t,e,n){var r=t.target,i=t.handlingStack,o=nU.get(r);if(o){o.state="start",o.startClocks=ea(),o.isAborted=!1,o.xhr=r,o.handlingStack=i;var a=!1,s=eN(r,"onreadystatechange",function(){r.readyState===XMLHttpRequest.DONE&&u()}).stop,u=function(){var t;c(),s(),a||(a=!0,o.state="complete",o.duration=(t=o.startClocks.timeStamp,ei()-t),o.status=r.status,n.notify(tC(o)))},c=ex(e,r,"loadend",u).stop;n.notify(o)}})(n,e,t)},{computeHandlingStack:!0}).stop,i=eN(XMLHttpRequest.prototype,"abort",nV).stop;return function(){n(),r(),i()}})),w).subscribe(function(r){if(n_(e,r.url))switch(r.state){case"start":n.traceXhr(r,r.xhr),r.requestIndex=nB(),t.notify(7,{requestIndex:r.requestIndex,url:r.url});break;case"complete":n.clearTracingIfNeeded(r),t.notify(8,{duration:r.duration,method:r.method,requestIndex:r.requestIndex,spanId:r.spanId,startClocks:r.startClocks,status:r.status,traceId:r.traceId,traceSampled:r.traceSampled,type:"xhr",url:r.url,xhr:r.xhr,isAborted:r.isAborted,handlingStack:r.handlingStack})}})}(tt,t,Y),eF().subscribe(function(e){if(n_(t,e.url))switch(e.state){case"start":Y.traceFetch(e),e.requestIndex=nB(),tt.notify(7,{requestIndex:e.requestIndex,url:e.url});break;case"resolve":var n,r,i;n=function(t){Y.clearTracingIfNeeded(e),tt.notify(8,{duration:t,method:e.method,requestIndex:e.requestIndex,responseType:e.responseType,spanId:e.spanId,startClocks:e.startClocks,status:e.status,traceId:e.traceId,traceSampled:e.traceSampled,type:"fetch",url:e.url,response:e.response,init:e.init,input:e.input,isAborted:e.isAborted,handlingStack:e.handlingStack})},(i=e.response&&function(t){try{return t.clone()}catch(t){return}}(e.response))&&i.body?function(t,e,n){var r=t.getReader(),i=[],o=0;function a(){if(r.cancel().catch(t_),n.collectStreamBody){if(1===i.length)s=i[0];else{s=new Uint8Array(o);var t,a,s,u=0;i.forEach(function(t){s.set(t,u),u+=t.length})}t=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}e(void 0,t,a)}(function t(){r.read().then(te(function(e){if(e.done){a();return}n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t()}),te(function(t){return e(t)}))})()}(i.body,function(){var t;n((t=e.startClocks.timeStamp,ei()-t))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):n((r=e.startClocks.timeStamp,ei()-r))}});var eC=function(t,e){var n=[];
1if(nT()){var r=performance.getEntries();tv(function(){return nO(t,r)})}if(window.PerformanceObserver){var i=te(function(e){return nO(t,e.getEntries())}),o=[m.LONG_TASK,m.PAINT],a=[m.LARGEST_CONTENTFUL_PAINT,m.FIRST_INPUT,m.LAYOUT_SHIFT,m.EVENT];try{a.forEach(function(t){var e=new window.PerformanceObserver(i);e.observe({type:t,buffered:!0,durationThreshold:40}),n.push(function(){return e.disconnect()})})}catch(t){o.push.apply(o,a)}var s=new PerformanceObserver(i);try{s.observe({entryTypes:o}),n.push(function(){return s.disconnect()})}catch(t){}if(nT()&&"addEventListener"in performance){var u=ex(e,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()}).stop;n.push(u)}}if(!nE(m.FIRST_INPUT)){var c=function(t,e){var n=er(),r=!1,i=eS(t,window,["click","mousedown","keydown","touchstart","pointerdown"],function(e){if(e.cancelable){var n={entryType:m.FIRST_INPUT,processingStart:eo(),processingEnd:eo(),startTime:e.timeStamp,duration:0,name:""};"pointerdown"===e.type?eS(t,window,["pointerup","pointercancel"],function(t){"pointerup"===t.type&&o(n)},{once:!0}):o(n)}},{passive:!0,capture:!0}).stop;return{stop:i};function o(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o<er()-n&&e(t)}}}(e,function(e){nO(t,[e])}).stop;n.push(c)}return{stop:function(){n.forEach(function(t){return t()})}}}(tt,t).stop;X.push(eC);
1var ek=function(t,e){function n(n){if(!e.wasInPageStateDuringPeriod("frozen",n.startClocks.relative,n.duration)){var r;t.notify(12,(r={date:n.startClocks.timeStamp,vital:{id:ej(),type:n.type,name:n.name,duration:en(n.duration),details:n.details},type:"vital"},r._dd={vital:{computed_value:!0}},{rawRumEvent:r,startTime:n.startClocks.relative,customerContext:n.context,domainContext:{}}))}}return{addDurationVital:n,startDurationVital:function(t){return nf(function(t){n(t)},t)}}}(tt,tH),eE=(J=t.applicationId,{get:function(t){var e=tK.findView(t),n=tW.findUrl(t),r=th.findTrackedSession(t);if(r&&e&&n){var i=tG.findActionId(t);return{application_id:J,session_id:r.id,user_action:i?{id:i}:void 0,view:{id:e.id,name:e.name,referrer:n.referrer,url:n.url}}}}});return{addAction:tQ,addError:e_,addTiming:t4,addFeatureFlagEvaluation:tl.addFeatureFlagEvaluation,startView:et,updateViewName:ed,lifeCycle:tt,viewContexts:tK,session:th,stopSession:function(){return th.expire()},getInternalContext:eE.get,startDurationVital:ek.startDurationVital,addDurationVital:ek.addDurationVital,stop:function(){X.forEac
1h(function(t){return t()})}}},function(t,e){if(eP()&&!eA("records")||!iH())return{start:t_,stop:t_,getReplayStats:function(){},onRumStart:t_,isRecording:function(){return!1},getSessionReplayLink:function(){}};var n={status:1},r=function(){n={status:1}},i=function(){n={status:0}},o=t_;return{start:function(t){return r(t)},stop:function(){return i()},getSessionReplayLink:function(){return o()},onRumStart:function(e,a,s,u,c){var l;a.startSessionReplayRecordingManually&&(n={status:0}),e.subscribe(9,function(){(2===n.status||3===n.status)&&(i(),n={status:1})}),e.subscribe(11,function(t){t.reason===nh.UNLOADING&&i()}),e.subscribe(10,function(){1===n.status&&r()}),r=function(r){var o=s.findTrackedSession();if(!o||0===o.sessionReplay&&(!r||!r.force)){n={status:1};return}2!==n.status&&3!==n.status&&(n={status:2},rL(a,"interactive",function(){if(2===n.status){var r=(!l&&(c||(c=iG(a,"Datadog Session Replay",function(){i()},void 0)),c&&(l=iZ(a,c,1))),l);if(!r){n={status:0};return}n={status:3,stopRecording:t(e,a,s,u,r).stop}}}),r&&r.force&&0===o.sessionReplay&&s.setForcedReplay())},i=function(){0!==n.status&&(3===n.status&&n.stopRecording(),n={status:0})},o=function(){var t,e,r,i,o,c,l,d,f,p,h,g,v;return t=0!==n.status,h=e=s.findTrackedSession(),r=iH()?h?0===h.sessionReplay?"incorrect-session-plan":t?void 0:"replay-not-started":"rum-not-tracked":"browser-not-supported",o=(i={viewContext:u.findView(),errorType:r,session:e}).session,c=i.viewContext,l=i.errorType,d=o?o.id:"no-session-id",f=[],void 0!==l&&f.push("error-type=".concat(l)),c&&(f.push("seed=".concat(c.id)),f.push("from=".concat(c.startClocks.timeStamp))),g=a.site,v=a.subdomain||function(t){switch(t.site){case t6:case"datadoghq.eu":return"app";case t8:return"dd";default:return}}(a),p="https://".concat(v?"".concat(v,"."):"").concat(g),"".concat(p).concat("/rum/replay/sessions/".concat(d),"?").concat(f.join("&"))},1===n.status&&r()},isRecording:function(){return 3===iW.status&&3===n.status},getReplayStats:function(t){return 3===iW.status?null==R?void 0:R.get(t):void 0}}}(function(t,e,n,r,i,o){var a,s=[],u=o||r8(e,e.sessionReplayEndpointBuilder,6e4,function(e){t.notify(14,{error:e}),eb("Error reported to customer",{"error.message":e.message})});if(eP())a=(c=eR(),{addRecord:function(t){var e=r.findView();c.send("record",t,e.id)}}).addRecord;else{var c,l=function(t,e,n,r){var i={status:0,nextSegmentCreationReason:"init"},o=t.subscribe(3,function(){s("view_change")}).unsubscribe,a=t.subscribe(11,function(t){s(t.reason)}).unsubscribe;function s(t){1===i.status&&(i.segment.flush(function(e,r){var i,o,a,s,u=(i=r.output,o=r.rawBytesCount,(a=new FormData).append("segment",new Blob([i],{type:"application/octet-stream"}),"".concat(e.session.id,"-").concat(e.start)),s=JSON.stringify(td({raw_segment_size:o,compressed_segment_size:i.byteLength},e)),a.append("event",new Blob([s],{type:"application/json"})),{data:a,bytesCount:i.byteLength});ti(tu(nh),t)?n.sendOnExit(u):n.send(u)}),tm(i.expirationTimeoutId)),i="stop"!==t?{status:0,nextSegmentCreationReason:t}:{status:2}}return{addRecord:function(t){if(2!==i.status){if(0===i.status){var n,o,a,u,c,l,d,f=e();if(!f)return;i={status:1,segment:(o=(n={encoder:r,context:f,creationReason:i.nextSegmentCreationReason}).context,a=n.creationReason,u=n.encoder,c=0,d=td({start:1/0,end:-1/0,creation_reason:a,records_count:0,has_full_snapshot:!1,index_in_view:iu(l=o.view.id).segments_count,source:"browser"},o),iu(l).segments_count+=1,{addRecord:function(t,e){d.start=Math.min(d.start,t.timestamp),d.end=Math.max(d.end,t.timestamp),d.records_count+=1,d.has_full_snapshot||(d.has_full_snapshot=t.type===iw.FullSnapshot);var n=u.isEmpty?'{"records":[':",";u.write(n+JSON.stringify(t),function(t){e(c+=t)})},flush:function(t){if(u.isEmpty)throw Error("Empty segment flushed");u.write("],".concat(JSON.stringify(d).slice(1),"\n")),u.finish(function(e){var n,r;n=d.view.id,r=e.rawBytesCount,iu(n).segments_total_raw_size+=r,t(d,e)})}}),expirationTimeoutId:tv(function(){s("segment_duration_limit")},3e4)}}i.segment.addRecord(t,function(t){t>6e4&&s("segment_bytes_limit")})}},stop:function(){s("stop"),o(),a()}}}(t,function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(r&&i)return{application:{id:t},session:{id:r.id},view:{id:i.id}}}(e.applicationId,n,r)},u,i);a=l.addRecord,s.push(l.stop)}var d=function(t){var e,n,r,i,o,a,s,u,c,l,d,f,p,h,g=t.emit,v=t.configuration,m=t.lifeCycle;if(!g)throw Error("emit function is required");var y=function(e){var n;g(e),ec("record",{record:e}),n=t.viewContexts.findView().id,iu(n).records_count+=1},b=(e=new WeakMap,{set:function(t,n){(t!==document||document.scrollingElement)&&e.set(t===document?document.scrollingElement:t,n)},get:function(t){return e.get(t)},has:function(t){return e.has(t)}}),w=i$(v,y,b),_=(n=x,(r=function(t){return t.forEach(function(t){return y(t)})})((i=function(t,e){void 0===t&&(t=ei()),void 0===e&&(e={status:0,elementsScrollPositions:b,shadowRootsController:w});var n=rG(),r=n.width,i=[{data:{height:n.height,href:window.location.href,width:r},type:iw.Meta,timestamp:t},{data:{has_focus:document.hasFocus()},type:iw.Focus,timestamp:t},{data:{node:iA(document,{serializationContext:e,parentNodePrivacyLevel:v.defaultPrivacyLevel,configuration:v}),initialOffset:{left:rZ(),top:rK()}},type:iw.FullSnapshot,timestamp:t}];
1return window.visualViewport&&i.push({data:iD(window.visualViewport),type:iw.VisualViewport,timestamp:t}),i})()),{stop:m.subscribe(3,function(t){n(),r(i(t.startClocks.timeStamp,{shadowRootsController:w,status:1,elementsScrollPositions:b}))}).unsubscribe}).stop;function x(){w.flush(),C.flush()}var S=(o=new WeakMap,a=1,{getIdForEvent:function(t){return o.has(t)||o.set(t,a++),o.get(t)}}),C=iB(y,v,w,document),k=[C,(u=(s=tw(function(t){var e=iL(t);if(il(e)){var n=ij(t);if(!n)return;var r={id:id(e),timeOffset:0,x:n.x,y:n.y};y(iF(iI(t)?ix.TouchMove:ix.MouseMove,{positions:[r]}))}},50,{trailing:!1})).throttled,c=s.cancel,l=eS(v,document,["mousemove","touchmove"],u,{capture:!0,passive:!0}).stop,{stop:function(){l(),c()}}),eS(v,document,Object.keys(iU),function(t){var e,n=iL(t);if(n7(n,v.defaultPrivacyLevel)!==n8.HIDDEN&&il(n)){var r=id(n),i=iU[t.type];if(i!==iS.Blur&&i!==iS.Focus){var o=ij(t);if(!o)return;e={id:r,type:i,x:o.x,y:o.y}}else e={id:r,type:i};y(td({id:S.getIdForEvent(t)},iF(ix.MouseInteraction,e)))}},{capture:!0,passive:!0}),iz(v,y,b,document),(d=rW(v).subscribe(function(t){y(iF(ix.ViewportResize,t))}),{stop:function(){d.unsubscribe()}}),iq(v,y),eS(v,document,["play","pause"],function(t){var e=iL(t);e&&n7(e,v.defaultPrivacyLevel)!==n8.HIDDEN&&il(e)&&y(iF(ix.MediaInteraction,{id:id(e),type:"play"===t.type?iC.Play:iC.Pause}))},{capture:!0,passive:!0}),function(t){function e(t,e){t&&il(t.ownerNode)&&e(id(t.ownerNode))}var n=[eN(CSSStyleSheet.prototype,"insertRule",function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r,function(e){return t(iF(ix.StyleSheetRule,{id:e,adds:[{rule:o,index:a}]}))})}),eN(CSSStyleSheet.prototype,"deleteRule",function(n){var r=n.target,i=n.parameters[0];e(r,function(e){return t(iF(ix.StyleSheetRule,{id:e,removes:[{index:i}]}))})})];function r(r){n.push(eN(r.prototype,"insertRule",function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r.parentStyleSheet,function(e){var n=iV(r);n&&(n.push(a||0),t(iF(ix.StyleSheetRule,{id:e,adds:[{rule:o,index:n}]})))})}),eN(r.prototype,"deleteRule",function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,function(e){var n=iV(r);n&&(n.push(i),t(iF(ix.StyleSheetRule,{id:e,removes:[{index:n}]})))})}))}return"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule)),{stop:function(){n.forEach(function(t){return t.stop()})}}}(y),eS(v,window,["focus","blur"],function(){y({data:{has_focus:document.hasFocus()},type:iw.Focus,timestamp:ei()})}),function(t,e){var n=window.visualViewport;if(!n)return{stop:t_};var r=tw(function(){e({data:iD(n),type:iw.VisualViewport,timestamp:ei()})},200,{trailing:!1}),i=r.throttled,o=r.cancel,a=eS(t,n,["resize","scroll"],i,{capture:!0,passive:!0}).stop;return{stop:function(){a(),o()}}}(v,y),(f=m.subscribe(12,function(t){var e,n;"action"===t.rawRumEvent.type&&"click"===t.rawRumEvent.action.type&&(null===(n=null===(e=t.rawRumEvent.action.frustration)||void 0===e?void 0:e.type)||void 0===n?void 0:n.length)&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&y({timestamp:t.rawRumEvent.date,type:iw.FrustrationRecord,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map(function(t){return S.getIdForEvent(t)})}})}),{stop:function(){f.unsubscribe()}}),(p=function(t){x(),y(t)},h=m.subscribe(5,function(){p({timestamp:ei(),type:iw.ViewEnd})}),{stop:function(){h.unsubscribe()}})];return{stop:function(){w.stop(),k.forEach(function(t){return t.stop()}),_()},flushMutations:x,shadowRootsController:w}}({emit:a,configuration:e,lifeCycle:t,viewContexts:r}).stop;return s.push(d),{stop:function(){s.forEach(function(t){return t()})}}}),{startDeflateWorker:iG,createDeflateEncoder:iZ});(s=(o=tf())[a="DD_RUM"])&&!s.q&&s.version&&K.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),o[a]=iY,s&&s.q&&s.q.forEach(function(t){return Y(t,"onReady callback threw an error:")()});let iJ=()=>iY.init({applicationId:"ced3ad32-499d-4049-91aa-c49f1a5afb5b",clientToken:"pube37360fd2576ca7bd83861d3caee69ee",site:"datadoghq.eu",service:"sonetas
1publicwebsite",env:"prd",version:"0.1.0",sessionSampleRate:5,sessionReplaySampleRate:5,trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask-user-input"});var iX=n(4298),i0=n.n(iX);let i1=new I.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});var i2=(0,N.Jc)(t=>{var e,n;let{Component:r,pageProps:i}=t;return iJ(),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(i0(),{id:"gtag-main",strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=AW-16811213851"}),(0,P.jsx)(i0(),{id:"gtag-config",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', 'AW-16811213851');\n "}}),(0,P.jsx)(i0(),{id:"google-tag-manager",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='
1+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-KLNJV847');"}}),(0,P.jsx)(i0(),{id:"facebook-pixel",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '643013718175655');\n fbq('track', 'PageView');\n "}}),(0,P.jsx)("noscript",{children:(0,P.jsx)("img",{height:"1",width:"1",style:{display:"none"},src:"https://www.facebook.com/tr?id=643013718175655&ev=PageView&noscript=1"})}),(0,P.jsx)(z.zt,{children:(0,P.jsx)(F,{children:(0,P.jsx)(I.QueryClientProvider,{client:i1,children:(0,P.jsxs)(V.pn,{children:[(0,P.jsx)(U,{cookieBanner:null===(n=i.base)||void 0===n?void 0:null===(e=n.attributes)||void 0===e?void 0:e.cookieBanner}),(0,P.jsx)(q.Z,{customGlobalCss:"\n #nprogress {\n pointer-events:none\n }\n\n #nprogress .bar {\n background: #04433A;\n position: fixed;\n z-index: 99999;\n top: 0;\n left: 0;\n width: 100%;\n height: 4px;\n }\n"}),(0,P.jsx)(r,{...i})]})})})})]})})},3434:function(){},1664:function(t,e,n){t.exports=n(8342)},1163:function(t,e,n){t.exports=n(3079)},4298:function(t,e,n){t.exports=n(3381)},4865:function(t,e,n){var r,i;void 0!==(i="function"==typeof(r=function(){var t,e,n,r={};r.version="0.2.0";var i=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(t,e,n){return t<e?e:t>n?n:t}r.configure=function(t){var e,n;for(e in t)void 0!==(n=t[e])&&t.hasOwnProperty(e)&&(i[e]=n);return this},r.status=null,r.set=function(t){var e=r.isStarted();t=o(t,i.minimum,1),r.status=1===t?null:t;var n=r.render(!e),u=n.querySelector(i.barSelector),c=i.speed,l=i.easing;return n.offsetWidth,a(function(e){var o,a;""===i.positionUsing&&(i.positionUsing=r.getPositioningCSS()),s(u,(o=t,(a="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+o)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+o)*100+"%,0)"}:{"margin-left":(-1+o)*100+"%"}).transition="all "+c+"ms "+l,a)),1===t?(s(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){s(n,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),e()},c)},c)):setTimeout(e,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var t=function(){setTimeout(function(){r.status&&(r.trickle(),t())},i.trickleSpeed)};return i.trickle&&t(),this},r.done=function(t){return t||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(t){var e=r.status;return e?("number"!=typeof t&&(t=(1-e)*o(Math.random()*e,.1,.95)),e=o(e+t,0,.994),r.set(e)):r.start()},r.trickle=function(){return r.inc(Math.random()*i.trickleRate)},t=0,e=0,r.promise=function(n){return n&&"resolved"!==n.state()&&(0===e&&r.start(),t++,e++,n.al
1ways(function(){0==--e?(t=0,r.done()):r.set((t-e)/t)})),this},r.render=function(t){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=i.template;var n,o=e.querySelector(i.barSelector),a=t?"-100":(-1+(r.status||0))*100,u=document.querySelector(i.parent);return s(o,{transition:"all 0 linear",transform:"translate3d("+a+"%,0,0)"}),!i.showSpinner&&(n=e.querySelector(i.spinnerSelector))&&f(n),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(e),e},r.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(i.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&f(t)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective" in t?"translate3d":e+"Transform" in t?"translate":"margin"};var a=(n=[],function(t){n.push(t),1==n.length&&function t(){var e=n.shift();e&&e(t)}()}),s=function(){var t=["Webkit","O","Moz","ms"],e={};function n(n,r,i){var o;r=e[o=(o=r).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]||(e[o]=function(e){var n=document.body.style;if(e in n)return e;for(var r,i=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);i--;)if((r=t[i]+o)in n)return r;return e}(o)),n.style[r]=i}return function(t,e){var r,i,o=arguments;if(2==o.length)for(r in e)void 0!==(i=e[r])&&e.hasOwnProperty(r)&&n(t,r,i);else n(t,o[1],o[2])}}();function u(t,e){return("string"==typeof t?t:d(t)).indexOf(" "+e+" ")>=0}function c(t,e){var n=d(t),r=n+e;u(n,e)||(t.className=r.substring(1))}function l(t,e){var n,r=d(t);u(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function d(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function f(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return r})?r.call(e,n,e,t):r)&&(t.exports=i)},9921:function(t,e){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case l:case d:case o:case s:case a:case p:return t;default:switch(t=t&&t.$$typeof){case c:case f:case v:case g:case u:return t;default:return e}}case i:return e}}}function x(t){return _(t)===d}e.AsyncMode=l,e.ConcurrentMode=d,e.ContextConsumer=c,e.ContextProvider=u,e.Element=r,e.ForwardRef=f,e.Fragment=o,e.Lazy=v,e.Memo=g,e.Portal=i,e.Profiler=s,e.StrictMode=a,e.Suspense=p,e.isAsyncMode=function(t){return x(t)||_(t)===l},e.isConcurrentMode=x,e.isContextConsumer=function(t){return _(t)===c},e.isContextProvider=function(t){return _(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return _(t)===f},e.isFragment=function(t){return _(t)===o},e.isLazy=function(t){return _(t)===v},e.isMemo=function(t){return _(t)===g},e.isPortal=function(t){return _(t)===i},e.isProfiler=function(t){return _(t)===s},e.isStrictMode=function(t){return _(t)===a},e.isSuspense=function(t){return _(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===d||t===s||t===a||t===p||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===g||t.$$typeof===u||t.$$typeof===c||t.$$typeof===f||t.$$typeof===y||t.$$typeof===b||t.$$typeof===w||t.$$typeof===m)},e.typeOf=_},9864:function(t,e,n){"use strict";
1t.exports=n(9921)},9852:function(t,e,n){"use strict";n.d(e,{j:function(){return a}});var r=n(5068),i=n(2943),o=n(2288),a=new(function(t){function e(){var e;return(e=t.call(this)||this).setup=function(t){var e;if(!o.sk&&(null==(e=window)?void 0:e.addEventListener)){var n=function(){return t()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},e}(0,r.Z)(e,t);var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}},n.setEventListener=function(t){var e,n=this;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(function(t){"boolean"==typeof t?n.setFocused(t):n.onFocus()})},n.setFocused=function(t){this.focused=t,t&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(t){t()})},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},e}(i.l))},6747:function(t,e,n){"use strict";n.d(e,{QueryClient:function(){return r.S}});var r=n(1832),i=n(6755);n.o(i,"QueryClientProvider")&&n.d(e,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useQuery")&&n.d(e,{useQuery:function(){return i.useQuery}})},1909:function(t,e,n){"use strict";n.d(e,{E:function(){return o},j:function(){return i}});var r=console;function i(){return r}function o(t){r=t}},101:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});var r=n(2288),i=new(function(){function t(){this.queue=[],this.transactions=0,this.notifyFn=function(t){t()},this.batchNotifyFn=function(t){t()}}var e=t.prototype;return e.batch=function(t){var e;this.transactions++;try{e=t()}finally{this.transactions--,this.transactions||this.flush()}return e},e.schedule=function(t){var e=this;this.transactions?this.queue.push(t):(0,r.A4)(function(){e.notifyFn(t)})},e.batchCalls=function(t){var e=this;return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];e.schedule(function(){t.apply(void 0,r)})}},e.flush=function(){var t=this,e=this.queue;this.queue=[],e.length&&(0,r.A4)(function(){t.batchNotifyFn(function(){e.forEach(function(e){t.notifyFn(e)})})})},e.setNotifyFunction=function(t){this.notifyFn=t},e.setBatchNotifyFunction=function(t){this.batchNotifyFn=t},t}())},68:function(t,e,n){"use strict";n.d(e,{N:function(){return a}});var r=n(5068),i=n(2943),o=n(2288),a=new(function(t){function e(){var e;return(e=t.call(this)||this).setup=function(t){var e;if(!o.sk&&(null==(e=window)?void 0:e.addEventListener)){var n=function(){return t()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},e}(0,r.Z)(e,t);var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}},n.setEventListener=function(t){var e,n=this;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(function(t){"boolean"==typeof t?n.setOnline(t):n.onOnline()})},n.setOnline=function(t){this.online=t,t&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(t){t()})},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},e}(i.l))},1832:function(t,e,n){"use strict";n.d(e,{S:function(){return m}});var r=n(7462),i=n(2288),o=n(5068),a=n(101),s=n(1909),u=n(1216),c=function(){function t(t){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=t.meta,this.scheduleGc()}var e=t.prototype;return e.setOptions=function(t){var e;this.options=(0,r.Z)({},this.defaultOptions,t),this.meta=null==t?void 0:t.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(e=this.options.cacheTime)?e:3e5)},e.setDefaultOptions=function(t){this.defaultOptions=t},e.scheduleGc=function(){var t=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){t.optionalRemove()},this.cacheTime))},e.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},e.optionalRemove=function(){!this.observers.length&&(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},e.setData=function(t,e){var n,r,o=this.state.data,a=(0,i.SE)(t,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(
1a=(0,i.Q$)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt}),a},e.setState=function(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})},e.cancel=function(t){var e,n=this.promise;return null==(e=this.retryer)||e.cancel(t),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()},e.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},e.reset=function(){this.destroy(),this.setState(this.initialState)},e.isActive=function(){return this.observers.some(function(t){return!1!==t.options.enabled})},e.isFetching=function(){return this.state.isFetching},e.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(t){return t.getCurrentResult().isStale})},e.isStaleByTime=function(t){return void 0===t&&(t=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,t)},e.onFocus=function(){var t,e=this.observers.find(function(t){return t.shouldFetchOnWindowFocus()});e&&e.refetch(),null==(t=this.retryer)||t.continue()},e.onOnline=function(){var t,e=this.observers.find(function(t){return t.shouldFetchOnReconnect()});e&&e.refetch(),null==(t=this.retryer)||t.continue()},e.addObserver=function(t){-1===this.observers.indexOf(t)&&(this.observers.push(t),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))},e.removeObserver=function(t){-1!==this.observers.indexOf(t)&&(this.observers=this.observers.filter(function(e){return e!==t}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:t}))},e.getObserversCount=function(){return this.observers.length},e.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},e.fetch=function(t,e){var n,r,o,a,c,l,d=this;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(null==e?void 0:e.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return null==(n=this.retryer)||n.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){var f=this.observers.find(function(t){return t.options.queryFn});f&&this.setOptions(f.options)}var p=(0,i.mc)(this.queryKey),h=(0,i.G9)(),g={queryKey:p,pageParam:void 0,meta:this.meta};Object.defineProperty(g,"signal",{enumerable:!0,get:function(){if(h)return d.abortSignalConsumed=!0,h.signal}});var v={fetchOptions:e,options:this.options,queryKey:p,state:this.state,fetchFn:function(){return d.options.queryFn?(d.abortSignalConsumed=!1,d.options.queryFn(g)):Promise.reject("Missing queryFn")},meta:this.meta};return(null==(a=this.options.behavior)?void 0:a.onFetch)&&(null==(r=this.options.behavior)||r.onFetch(v)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(c=v.fetchOptions)?void 0:c.meta)||this.dispatch({type:"fetch",meta:null==(o=v.fetchOptions)?void 0:o.meta}),this.retryer=new u.m4({fn:v.fetchFn,abort:null==h?void 0:null==(l=h.abort)?void 0:l.bind(h),onSuccess:function(t){d.setData(t),null==d.cache.config.onSuccess||d.cache.config.onSuccess(t,d),0===d.cacheTime&&d.optionalRemove()},onError:function(t){(0,u.DV)(t)&&t.silent||d.dispatch({type:"error",error:t}),(0,u.DV)(t)||(null==d.cache.config.onError||d.cache.config.onError(t,d),(0,s.j)().error(t)),0===d.cacheTime&&d.optionalRemove()},onFail:function(){d.dispatch({type:"failed"})},onPause:function(){d.dispatch({type:"pause"})},onContinue:function(){d.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay}),this.promise=this.retryer.promise,this.promise},e.dispatch=function(t){var e=this;this.state=this.reducer(this.state,t),a.V.batch(function(){e.observers.forEach(function(e){e.onQueryUpdate(t)}),e.cache.notify({query:e,type:"queryUpdated",action:t})})},e.getDefaultState=function(t){var e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==t.initialData?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0,r=void 0!==e;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdate
1Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},e.reducer=function(t,e){var n,i;switch(e.type){case"failed":return(0,r.Z)({},t,{fetchFailureCount:t.fetchFailureCount+1});case"pause":return(0,r.Z)({},t,{isPaused:!0});case"continue":return(0,r.Z)({},t,{isPaused:!1});case"fetch":return(0,r.Z)({},t,{fetchFailureCount:0,fetchMeta:null!=(n=e.meta)?n:null,isFetching:!0,isPaused:!1},!t.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.Z)({},t,{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(i=e.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=e.error;if((0,u.DV)(o)&&o.revert&&this.revertState)return(0,r.Z)({},this.revertState);return(0,r.Z)({},t,{error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},t,{isInvalidated:!0});case"setState":return(0,r.Z)({},t,e.state);default:return t}},t}(),l=n(2943),d=function(t){function e(e){var n;return(n=t.call(this)||this).config=e||{},n.queries=[],n.queriesMap={},n}(0,o.Z)(e,t);var n=e.prototype;return n.build=function(t,e,n){var r,o=e.queryKey,a=null!=(r=e.queryHash)?r:(0,i.Rm)(o,e),s=this.get(a);return s||(s=new c({cache:this,queryKey:o,queryHash:a,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(o),meta:e.meta}),this.add(s)),s},n.add=function(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"queryAdded",query:t}))},n.remove=function(t){var e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter(function(e){return e!==t}),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"queryRemoved",query:t}))},n.clear=function(){var t=this;a.V.batch(function(){t.queries.forEach(function(e){t.remove(e)})})},n.get=function(t){return this.queriesMap[t]},n.getAll=function(){return this.queries},n.find=function(t,e){var n=(0,i.I6)(t,e)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find(function(t){return(0,i._x)(n,t)})},n.findAll=function(t,e){var n=(0,i.I6)(t,e)[0];return Object.keys(n).length>0?this.queries.filter(function(t){return(0,i._x)(n,t)}):this.queries},n.notify=function(t){var e=this;a.V.batch(function(){e.listeners.forEach(function(e){e(t)})})},n.onFocus=function(){var t=this;a.V.batch(function(){t.queries.forEach(function(t){t.onFocus()})})},n.onOnline=function(){var t=this;a.V.batch(function(){t.queries.forEach(function(t){t.onOnline()})})},e}(l.l),f=function(){function t(t){this.options=(0,r.Z)({},t.defaultOptions,t.options),this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.observers=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=t.meta}var e=t.prototype;return e.setState=function(t){this.dispatch({type:"setState",state:t})},e.addObserver=function(t){-1===this.observers.indexOf(t)&&this.observers.push(t)},e.removeObserver=function(t){this.observers=this.observers.filter(function(e){return e!==t})},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(i.ZT).catch(i.ZT)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var t,e=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then(function(){null==e.mutationCache.config.onMutate||e.mutationCache.config.onMutate(e.state.variables,e)}).then(function(){return null==e.options.onMutate?void 0:e.options.onMutate(e.state.variables)}).then(function(t){t!==e.state.context&&e.dispatch({type:"loading",context:t,variables:e.state.variables})})),r.then(function(){return e.executeMutation()}).then(function(n){t=n,null==e.mutationCache.config.onSuccess||e.mutationCache.config.onSuccess(t,e.state.variables,e.state.context,e)}).then(function(){return null==e.options.onSuccess?void 0:e.options.onSuccess(t,e.state.variables,e.state.context)}).then(function(){return null==e.options.onSettled?void 0:e.options.onSettled(t,null,e.state.variables,e.state.context)}).then(function(){return e.dispatch({type:"success",data:t}),t}).catch(function(t){return null==e.mutationCache.config.onError||e.mutationCache.config.onError(t,e.state.variables,e.state.context,e),(0,s.j)().error(t),Promise.resolve().then(function(){return null==e.options.onError?void 0:e.options.onError(t,e.state.variables,e.state.context)}).then(function(){return null==e.options.onSettled?void 0:e.options.onSettled(void 0,t,e.state.variables,e.state.context)}).then(function(){throw e.dispatch({type:"error",error:t}),t})})},e.executeMutation=function(){var t,e=this;return this.retryer=new u.m4({fn:function(){return e.options.mutationFn?e.options.mutationFn(e.state.variables):Promise.reject("No mutationFn found")},onFail:function(){e.dispatch({type:"failed"})},onPause:function(){e.dispatch({type:"pause"})},onContinue:function(){e.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(t){var e=this;this.state=function(t,e){switch(e.type){case"failed":return(0,r.Z)({},t,{failureCount:t.failureCount+1});case"pause":return(0,r.Z)({},t,{isPaused:!0});case"continue":return(0,r.Z)({},t,{isPaused:!1});case"loading":return(0,r.Z)({},t,{context:e.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:e.variables});case"success":return(0,r.Z)({},t,{data:e.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},t,{data:void 0,error:e.error,failureCount:t.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},t,e.state);default:return t}}
1(this.state,t),a.V.batch(function(){e.observers.forEach(function(e){e.onMutationUpdate(t)}),e.mutationCache.notify(e)})},t}(),p=function(t){function e(e){var n;return(n=t.call(this)||this).config=e||{},n.mutations=[],n.mutationId=0,n}(0,o.Z)(e,t);var n=e.prototype;return n.build=function(t,e,n){var r=new f({mutationCache:this,mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:n,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0,meta:e.meta});return this.add(r),r},n.add=function(t){this.mutations.push(t),this.notify(t)},n.remove=function(t){this.mutations=this.mutations.filter(function(e){return e!==t}),t.cancel(),this.notify(t)},n.clear=function(){var t=this;a.V.batch(function(){t.mutations.forEach(function(e){t.remove(e)})})},n.getAll=function(){return this.mutations},n.find=function(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find(function(e){return(0,i.X7)(t,e)})},n.findAll=function(t){return this.mutations.filter(function(e){return(0,i.X7)(t,e)})},n.notify=function(t){var e=this;a.V.batch(function(){e.listeners.forEach(function(e){e(t)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var t=this.mutations.filter(function(t){return t.state.isPau
1sed});return a.V.batch(function(){return t.reduce(function(t,e){return t.then(function(){return e.continue().catch(i.ZT)})},Promise.resolve())})},e}(l.l),h=n(9852),g=n(68);function v(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}var m=function(){function t(t){void 0===t&&(t={}),this.queryCache=t.queryCache||new d,this.mutationCache=t.mutationCache||new p,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var e=t.prototype;return e.mount=function(){var t=this;this.unsubscribeFocus=h.j.subscribe(function(){h.j.isFocused()&&g.N.isOnline()&&(t.mutationCache.onFocus(),t.queryCache.onFocus())}),this.unsubscribeOnline=g.N.subscribe(function(){h.j.isFocused()&&g.N.isOnline()&&(t.mutationCache.onOnline(),t.queryCache.onOnline())})},e.unmount=function(){var t,e;null==(t=this.unsubscribeFocus)||t.call(this),null==(e=this.unsubscribeOnline)||e.call(this)},e.isFetching=function(t,e){var n=(0,i.I6)(t,e)[0];return n.fetching=!0,this.queryCache.findAll(n).length},e.isMutating=function(t){return this.mutationCache.findAll((0,r.Z)({},t,{fetching:!0})).length},e.getQueryData=function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state.data},e.getQueriesData=function(t){return this.getQueryCache().findAll(t).map(function(t){return[t.queryKey,t.state.data]})},e.setQueryData=function(t,e,n){var r=(0,i._v)(t),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(e,n)},e.setQueriesData=function(t,e,n){var r=this;return a.V.batch(function(){return r.getQueryCache().findAll(t).map(function(t){var i=t.queryKey;return[i,r.setQueryData(i,e,n)]})})},e.getQueryState=function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state},e.removeQueries=function(t,e){var n=(0,i.I6)(t,e)[0],r=this.queryCache;a.V.batch(function(){r.findAll(n).forEach(function(t){r.remove(t)})})},e.resetQueries=function(t,e,n){var o=this,s=(0,i.I6)(t,e,n),u=s[0],c=s[1],l=this.queryCache,d=(0,r.Z)({},u,{active:!0});return a.V.batch(function(){return l.findAll(u).forEach(function(t){t.reset()}),o.refetchQueries(d,c)})},e.cancelQueries=function(t,e,n){var r=this,o=(0,i.I6)(t,e,n),s=o[0],u=o[1],c=void 0===u?{}:u;return void 0===c.revert&&(c.revert=!0),Promise.all(a.V.batch(function(){return r.queryCache.findAll(s).map(function(t){return t.cancel(c)})})).then(i.ZT).catch(i.ZT)},e.invalidateQueries=function(t,e,n){var o,s,u,c=this,l=(0,i.I6)(t,e,n),d=l[0],f=l[1],p=(0,r.Z)({},d,{active:null==(o=null!=(s=d.refetchActive)?s:d.active)||o,inactive:null!=(u=d.refetchInactive)&&u});return a.V.batch(function(){return c.queryCache.findAll(d).forEach(function(t){t.invalidate()}),c.refetchQueries(p,f)})},e.refetchQueries=function(t,e,n){var o=this,s=(0,i.I6)(t,e,n),u=s[0],c=s[1],l=Promise.all(a.V.batch(function(){return o.queryCache.findAll(u).map(function(t){return t.fetch(void 0,(0,r.Z)({},c,{meta:{refetchPage:null==u?void 0:u.refetchPage}}))})})).then(i.ZT);return(null==c?void 0:c.throwOnError)||(l=l.catch(i.ZT)),l},e.fetchQuery=function(t,e,n){var r=(0,i._v)(t,e,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},e.prefetchQuery=function(t,e,n){return this.fetchQuery(t,e,n).then(i.ZT).catch(i.ZT)},e.fetchInfiniteQuery=function(t,e,n){var r=(0,i._v)(t,e,n);return r.behavior={onFetch:function(t){t.fetchFn=function(){var e,n,r,o,a,s,c,l=null==(e=t.fetchOptions)?void 0:null==(n=e.meta)?void 0:n.refetchPage,d=null==(r=t.fetchOptions)?void 0:null==(o=r.meta)?void 0:o.fetchMore,f=null==d?void 0:d.pageParam,p=(null==d?void 0:d.direction)==="forward",h=(null==d?void 0:d.direction)==="backward",g=(null==(a=t.state.data)?void 0:a.pages)||[],m=(null==(s=t.state.data)?void 0:s.pageParams)||[],y=(0,i.G9)(),b=null==y?void 0:y.signal,w=m,_=!1,x=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},S=function(t,e,n,r){return w=r?[e].concat(w):[].concat(w,[e]),r?[n].concat(t):[].concat(t,[n])},C=function(e,n,r,i){if(_)return Promise.reject("Cancelled");if(void 0===r&&!n&&e.length)return Promise.resolve(e);var o=x({queryKey:t.queryKey,signal:b,pageParam:r,meta:t.meta}),a=Promise.resolve(o).then(function(t){return S(e,r,t,i)});return(0,u.LE)(o)&&(a.cancel=o.cancel),a};if(g.length){if(p){var k=void 0!==f,E=k?f:v(t.options,g);c=C(g,k,E)}else if(h){var T,O=void 0!==f,R=O?f:null==(T=t.options).getPreviousPageParam?void 0:T.getPreviousPageParam(g[0],g);c=C(g,O,R,!0)}else!function(){w=[];var e=void 0===t.options.getNextPageParam;c=!l||!g[0]||l(g[0],0,g)?C([],e,m[0]):Promise.resolve(S([],m[0],g[0]));for(var n=function(n){c=c.then(function(r){if(!l||!g[n]||l(g[n],n,g)){var i=e?m[n]:v(t.options,r);return C(r,e,i)}return Promise.resolve(S(r,m[n],g[n]))})},r=1;r<g.length;r++)n(r)}()}else c=C([]);var A=c.then(function(t){return{pages:t,pageParams:w}});return A.cancel=function(){_=!0,null==y||y.abort(),(0,u.LE)(c)&&c.cancel()},A}}},this.fetchQuery(r)},e.prefetchInfiniteQuery=function(t,e,n){return this.fetchInfiniteQuery(t,e,n).then(i.ZT).catch(i.ZT)},e.cancelMutations=function(){var t=this;return Promise.all(a.V.batch(function(){return t.mutationCache.getAll().map(function(t){return t.cancel()})})).then(i.ZT).catch(i.ZT)},e.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},e.executeMutation=function(t){return this.mutationCache.build(this,t).execute()},e.getQueryCache=function(){return this.queryCache},e.getMutationCache=function(){return this.mutationCache},e.getDefaultOptions=function(){return this.defaultOptions},e.setDefaultOptions=function(t){this.defaultOptions=t},e.setQueryDefaults=function(t,e){var n=this.queryDefaults.find(function(e){return(0,i.yF)(t)===(0,i.yF)(e.queryKey)});n?n.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})},e.getQueryDefaults=function(t){var e;return t?null==(e=this.queryDefaults.find(function(e){return(0,i.to)(t,e.queryKey)}))?void 0:e.defaultOptions:void 0},e.setMutationDefaults=function(t,e){var n=this.mutationDefaults.find(function(e){return(0,i.yF)(t)===(0,i.yF)(e.mutationKey)});n?n.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})},e.getMutationDefaults=function(t){var e;return t?null==(e=this.mutationDefaults.find(function(e){return(0,i.to)(t,e.mutationKey)}))?void 0:e.defaultOptions:void 0},e.defaultQueryOptions=function(t){if(null==t?void 0:t._defaulted)return t;var e=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==t?void 0:t.queryKey),t,{_defaulted:!0});return!e.queryHash&&e.queryKey&&(e.queryHash=(0,i.Rm)(e.queryKey,e)),e},e.defaultQueryObserverOptions=function(t){return this.defaultQueryOptions(t)},e.defaultMutationOptions=function(t){return(null==t?void 0:t._defaulted)?t:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==t?void 0:t.mutationKey),t,{_defaulted:!0})},e.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},t}()},1216:function(t,e,n){"use strict";n.d(e,{DV:function(){return c},LE:function(){return s},m4:function(){return l}});var r=n(9852),i=n(68),o=n(2288);function a(t){return Math.min(1e3*Math.pow(2,t),3e4)}function s(t){return"function"==typeof(null==t?void 0:t.cancel)}var u=function(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent};function c(t){return t instanceof u}var l=function(t){var e,n,c,l,d=this,f=!1;this.abort=t.abort,this.cancel=function(t){return null==e?void 0:e(t)},this.cancelRetry=function(){f=!0},this.continueRetry=function(){f=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(t,e){c=t,l=e});var p=function(e){d.isResolved||(d.isResolved=!0,null==t.onSuccess||t.onSuccess(e),null==n||n(),c(e))},h=function(e){d.isResolved||(d.isResolved=!0,null==t.onError||t.onError(e),null==n||n(),l(e))};!function c(){var l;if(!d.isResolved){try{l=t.fn()}catch(t){l=Promise.reject(t)}e=function(t){if(!d.isResolved&&(h(new u(t)),null==d.abort||d.abort(),s(l)))try{l.cancel()}catch(t){}},d.isTransportCancelable=s(l),Promise.resolve(l).then(p).catch(function(e){if(!d.isResolved){var s,u,l=null!=(s=t.retry)?s:3,p=null!=(u=t.retryDelay)?u:a,g="function"==typeof p?p(d.failureCount,e):p,v=!0===l||"number"==typeof l&&d.failureCount<l||"function"==typeof l&&l(d.failureCount,e);if(f||!v){h(e);return}d.failureCount++,null==t.onFail||t.onFail(d.failureCount,e),(0,o.Gh)(g).then(function(){if(!r.j.isFocused()||!i.N.isOnline())return new Promise(function(e){n=e,d.isPaused=!0,null==t.onPause||t.onPause()}).then(function(){n=void 0,d.isPaused=!1,null==t.onContinue||t.onContinue()})}).then(function(){f?h(e):c()})}})}}()}},2943:function(t,e,n){"use strict";n.d(e,{l:function(){return r}});var r=function(){function t(){this.listeners=[]}var e=t.prototype;return e.subscribe=function(t){var e=this,n=t||function(){};return this.listeners.push(n),this.onSubscribe(),function(){e.listeners=e.listeners.filter(function(t){return t!==n}),e.onUnsubscribe()}},e.hasListeners=function(){return this.listeners.length>0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},t}()},6755:function(){},2288:function(t,e,n){"use strict";n.d(e,{A4:function(){return x},G9:function(){return S},Gh:function(){return _},I6:function(){return d},Kp:function(){return c},PN:function(){return s},Q$:function(){return function t(e,n){if(e===n)return e;var r=Array.isArray(e)&&Array.isArray(n);if(r||y(e)&&y(n)){for(var i=r?e.length:Object.keys(e).length,o=r?n:Object.keys(n),a=o.length,s=r?[]:{},u=0,c=0;c<a;c++){var l=r?c:o[c];s[l]=t(e[l],n[l]),s[l]===e[l]&&u++}return i===a&&u===i?e:s}return n}},Rm:function(){return h},SE:function(){return a},VS:function(){return m},X7:function(){return p},ZT:function(){return o},_v:function(){return l},_x:function(){return f},mc:function(){return u},sk:function(){return i},to:function(){return v},yF:function(){return g}});var r=n(7462),i="undefined"==typeof window;function o(){}function a(t,e){return"function"==typeof t?t(e):t}function s(t){return"number"==typeof t&&t>=0&&t!==1/0}function u(t){return Array.isArray(t)?t:[t]}function c(t,e){return Math.max(t+(e||0)-Date.now(),0)}function l(t,e,n){return w(t)?"function"==typeof e?(0,r.Z)({},n,{queryKey:t,queryFn:e}):(0,r.Z)({},e,{queryKey:t}):t}function d(t,e,n){return w(t)?[(0,r.Z)({},e,{queryKey:t}),n]:[t||{},e]}function f(t,e){var n=t.active,r=t.exact,i=t.fetching,o=t.inactive,a=t.predicate,s=t.queryKey,u=t.stale;if(w(s)){if(r){if(e.queryHash!==h(s,e.options))return!1}else if(!v(e.queryKey,s))return!1}var c=!0===n&&!0===o||null==n&&null==o?"all":!1===n&&!1===o?"none":(null!=n?n:!o)?"active":"inactive";if("none"===c)return!1;if("all"!==c){var l=e.isActive();if("active"===c&&!l||"inactive"===c&&l)return!1}return("boolean"!=typeof u||e.isStale()===u)&&("boolean"!=typeof i||e.isFetching()===i)&&(!a||!!a(e))}function p(t,e){var n=t.exact,r=t.fetching,i=t.predicate,o=t.mutationKey;if(w(o)){if(!e.options.mutationKey)return!1;if(n){if(g(e.options.mutationKey)!==g(o))return!1}else if(!v(e.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===e.state.status===r)&&(!i||!!i(e))}function h(t,e){return((null==e?void 0:e.queryKeyHashFn)||g)(t)}function g(t){return JSON.stringify(u(t),function(t,e){return y(e)?Object.keys(e).sort().reduce(function(t,n){return t[n]=e[n],t},{}):e})}
1function v(t,e){return function t(e,n){return e===n||typeof e==typeof n&&!!e&&!!n&&"object"==typeof e&&"object"==typeof n&&!Object.keys(n).some(function(r){return!t(e[r],n[r])})}(u(t),u(e))}function m(t,e){if(t&&!e||e&&!t)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}function y(t){if(!b(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!!(b(n)&&n.hasOwnProperty("isPrototypeOf"))}function b(t){return"[object Object]"===Object.prototype.toString.call(t)}function w(t){return"string"==typeof t||Array.isArray(t)}function _(t){return new Promise(function(e){setTimeout(e,t)})}function x(t){Promise.resolve().then(t).catch(function(t){return setTimeout(function(){throw t})})}function S(){if("function"==typeof AbortController)return new AbortController}},8767:function(t,e,n){"use strict";n.d(e,{QueryClient:function(){return r.QueryClient},QueryClientProvider:function(){return i.QueryClientProvider},useQuery:function(){return i.useQuery}});var r=n(6747);n.o(r,"QueryClientProvider")&&n.d(e,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useQuery")&&n.d(e,{useQuery:function(){return r.useQuery}});var i=n(5931)},5931:function(t,e,n){"use strict";n.d(e,{QueryClientProvider:function(){return p},useQuery:function(){return E}});var r,i=n(101),o=n(3935).unstable_batchedUpdates;i.V.setBatchNotifyFunction(o);var a=n(1909),s=console;(0,a.E)(s);var u=n(7294),c=u.createContext(void 0),l=u.createContext(!1);function d(t){return t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=c),window.ReactQueryClientContext):c}var f=function(){var t=u.useContext(d(u.useContext(l)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},p=function(t){var e=t.client,n=t.contextSharing,r=void 0!==n&&n,i=t.children;u.useEffect(function(){return e.mount(),function(){e.unmount()}},[e]);var o=d(r);return u.createElement(l.Provider,{value:r},u.createElement(o.Provider,{value:e},i))},h=n(7462),g=n(5068),v=n(2288),m=n(9852),y=n(2943),b=n(1216),w=function(t){function e(e,n){var r;return(r=t.call(this)||this).client=e,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}(0,g.Z)(e,t);var n=e.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),_(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return x(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return x(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(t,e){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&S(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(e),i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();var o=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)},n.getOptimisticResult=function(t){var e=this.client.defaultQueryObserverOptions(t),n=this.client.getQueryCache().build(this.client,e);return this.createResult(n,e)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(t,e){var n=this,r={},i=function(t){n.trackedProps.includes(t)||n.trackedProps.push(t)};return Object.keys(t).forEach(function(e){Object.defineProperty(r,e,{configurable:!1,enumerable:!0,get:function(){return i(e),t[e]}})}),(e.useErrorBoundary||e.suspense)&&i("error"),r},n.getNextResult=function(t){var e=this;return new Promise(function(n,r){var i=e.subscribe(function(e){e.isFetching||(i(),e.isError&&(null==t?void 0:t.throwOnError)?r(e.error):n(e))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(t){return this.fetch((0,h.Z)({},t,{meta:{refetchPage:null==t?void 0:t.refetchPage}}))},n.fetchOptimistic=function(t){var e=this,n=this.client.defaultQueryObserverOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then(function(){return e.createResult(r,n)})},n.fetch=function(t){var e=this;return this.executeFetch(t).then(function(){return e.updateResult(),e.currentResult})},n.executeFetch=function(t){this.updateQuery();var e=this.currentQuery.fetch(this.options,t);return(null==t?void 0:t.throwOnError)||(e=e.catch(v.ZT)),e},n.updateStaleTimeout=function(){var t=this;if(this.clearStaleTimeout(),!v.sk&&!this.currentResult.isStale&&(0,v.PN)(this.options.staleTime)){var e=(0,v.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(function(){t.currentResult.isStale||t.updateResult()},e+1)}},n.computeRefetchInterval=function(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t},n.updateRefetchInterval=function(t){var e=this;this.clearRefetchInterval(),this.currentRefetchInterval=t,!v.sk&&!1!==this.options.enabled&&(0,v.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(e.options.refetchIntervalInBackgroun
1d||m.j.isFocused())&&e.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(t,e){var n,r,i=this.currentQuery,o=this.options,s=this.currentResult,u=this.currentResultState,c=this.currentResultOptions,l=t!==i,d=l?t.state:this.currentQueryInitialState,f=l?this.currentResult:this.previousQueryResult,p=t.state,h=p.dataUpdatedAt,g=p.error,m=p.errorUpdatedAt,y=p.isFetching,b=p.status,w=!1,x=!1;if(e.optimisticResults){var k=this.hasListeners(),E=!k&&_(t,e),T=k&&S(t,i,e,o);(E||T)&&(y=!0,h||(b="loading"))}if(e.keepPreviousData&&!p.dataUpdateCount&&(null==f?void 0:f.isSuccess)&&"error"!==b)n=f.data,h=f.dataUpdatedAt,b=f.status,w=!0;else if(e.select&&void 0!==p.data){if(s&&p.data===(null==u?void 0:u.data)&&e.select===this.selectFn)n=this.selectResult;else try{this.selectFn=e.select,n=e.select(p.data),!1!==e.structuralSharing&&(n=(0,v.Q$)(null==s?void 0:s.data,n)),this.selectResult=n,this.selectError=null}catch(t){(0,a.j)().error(t),this.selectError=t}}else n=p.data;if(void 0!==e.placeholderData&&void 0===n&&("loading"===b||"idle"===b)){if((null==s?void 0:s.isPlaceholderData)&&e.placeholderData===(null==c?void 0:c.placeholderData))r=s.data;else if(r="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==r)try{r=e.select(r),!1!==e.structuralSharing&&(r=(0,v.Q$)(null==s?void 0:s.data,r)),this.selectError=null}catch(t){(0,a.j)().error(t),this.selectError=t}void 0!==r&&(b="success",n=r,x=!0)}return this.selectError&&(g=this.selectError,n=this.selectResult,m=Date.now(),b="error"),{status:b,isLoading:"loading"===b,isSuccess:"success"===b,isError:"error"===b,isIdle:"idle"===b,data:n,dataUpdatedAt:h,error:g,errorUpdatedAt:m,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:y,isRefetching:y&&"loading"!==b,isLoadingError:"error"===b&&0===p.dataUpdatedAt,isPlaceholderData:x,isPreviousData:w,isRefetchError:"error"===b&&0!==p.dataUpdatedAt,isStale:C(t,e),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(t,e){if(!e)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i||"tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(t).some(function(n){var r=t[n]!==e[n],a=null==o?void 0:o.some(function(t){return t===n}),s=null==i?void 0:i.some(function(t){return t===n});return r&&!s&&(!o||a)})},n.updateResult=function(t){var e=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,v.VS)(this.currentResult,e)){var n={cache:!0};(null==t?void 0:t.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,e)&&(n.listeners=!0),this.notify((0,h.Z)({},n,t))}},n.updateQuery=function(){var t=this.client.getQueryCache().build(this.client,this.options);if(t!==this.currentQuery){var e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}},n.onQueryUpdate=function(t){var e={};"success"===t.type?e.onSuccess=!0:"error"!==t.type||(0,b.DV)(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()},n.notify=function(t){var e=this;i.V.batch(function(){t.onSuccess?(null==e.options.onSuccess||e.options.onSuccess(e.currentResult.data),null==e.options.onSettled||e.options.onSettled(e.currentResult.data,null)):t.onError&&(null==e.options.onError||e.options.onError(e.currentResult.error),null==e.options.onSettled||e.options.onSettled(void 0,e.currentResult.error)),t.listeners&&e.listeners.forEac
1h(function(t){t(e.currentResult)}),t.cache&&e.client.getQueryCache().notify({query:e.currentQuery,type:"observerResultsUpdated"})})},e}(y.l);function _(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&!("error"===t.state.status&&!1===e.retryOnMount)||t.state.dataUpdatedAt>0&&x(t,e,e.refetchOnMount)}function x(t,e,n){if(!1!==e.enabled){var r="function"==typeof n?n(t):n;return"always"===r||!1!==r&&C(t,e)}return!1}function S(t,e,n,r){return!1!==n.enabled&&(t!==e||!1===r.enabled)&&(!n.suspense||"error"!==t.state.status)&&C(t,n)}function C(t,e){return t.isStaleByTime(e.staleTime)}var k=u.createContext((r=!1,{clearReset:function(){r=!1},reset:function(){r=!0},isReset:function(){return r}}));function E(t,e,n){return function(t,e){var n,r,o,a=u.useRef(!1),s=u.useState(0)[1],c=f(),l=u.useContext(k),d=c.defaultQueryObserverOptions(t);d.optimisticResults=!0,d.onError&&(d.onError=i.V.batchCalls(d.onError)),d.onSuccess&&(d.onSuccess=i.V.batchCalls(d.onSuccess)),d.onSettled&&(d.onSettled=i.V.batchCalls(d.onSettled)),d.suspense&&("number"!=typeof d.staleTime&&(d.staleTime=1e3),0===d.cacheTime&&(d.cacheTime=1)),(d.suspense||d.useErrorBoundary)&&!l.isReset()&&(d.retryOnMount=!1);var p=u.useState(function(){return new e(c,d)})[0],h=p.getOptimisticResult(d);if(u.useEffect(function(){a.current=!0,l.clearReset();var t=p.subscribe(i.V.batchCalls(function(){a.current&&s(function(t){return t+1})}));return p.updateResult(),function(){a.current=!1,t()}},[l,p]),u.useEffect(function(){p.setOptions(d,{listeners:!1})},[d,p]),d.suspense&&h.isLoading)throw p.fetchOptimistic(d).then(function(t){var e=t.data;null==d.onSuccess||d.onSuccess(e),null==d.onSettled||d.onSettled(e,null)}
1).catch(function(t){l.clearReset(),null==d.onError||d.onError(t),null==d.onSettled||d.onSettled(void 0,t)});if(h.isError&&!l.isReset()&&!h.isFetching&&(n=d.suspense,r=d.useErrorBoundary,o=[h.error,p.getCurrentQuery()],"function"==typeof r?r.apply(void 0,o):"boolean"==typeof r?r:!!n))throw h.error;return"tracked"===d.notifyOnChangeProps&&(h=p.trackResult(h,d)),h}((0,v._v)(t,e,n),w)}},1739:function(t){t.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},7462:function(t,e,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(null,arguments)}n.d(e,{Z:function(){return r}})},5068:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,{Z:function(){return i}})},1002:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,{Z:function(){return r}})},6206:function(t,e,n){"use strict";function r(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==t||t(r),!1===n||!r.defaultPrevented)return null==e?void 0:e(r)}}n.d(e,{M:function(){return r}})},8771:function(t,e,n){"use strict";n.d(e,{F:function(){return i},e:function(){return o}});var r=n(7294);function i(...t){return e=>t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}function o(...t){return(0,r.useCallback)(i(...t),t)}},5360:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});var r=n(7294);function i(t,e=[]){let n=[],i=()=>{let e=n.map(t=>(0,r.createContext)(t));return function(n){let i=(null==n?void 0:n[t])||e;return(0,r.useMemo)(()=>({[`__scope${t}`]:{...n,[t]:i}}),[n,i])}};return i.scopeName=t,[function(e,i){let o=(0,r.createContext)(i),a=n.length;function s(e){let{scope:n,children:i,...s}=e,u=(null==n?void 0:n[t][a])||o,c=(0,r.useMemo)(()=>s,Object.values(s));return(0,r.createElement)(u.Provider,{value:c},i)}return n=[...n,i],s.displayName=e+"Provider",[s,function(n,s){let u=(null==s?void 0:s[t][a])||o,c=(0,r.useContext)(u);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let n=()=>{let n=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let i=n.reduce((e,{useScope:n,scopeName:r})=>{let i=n(t)[`__scope${r}`];return{...e,...i}},{});return(0,r.useMemo)(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return n.scopeName=e.scopeName,n}(i,...e)]}},6063:function(t,e,n){"use strict";let r;n.d(e,{XB:function(){return f}});var i=n(7462),o=n(7294),a=n(6206),s=n(5320),u=n(8771),c=n(9698);let l="dismissableLayer.update",d=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,o.forwardRef)((t,e)=>{var n;let{disableOutsidePointerEvents:f=!1,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:m,onInteractOutside:y,onDismiss:b,...w}=t,_=(0,o.useContext)(d),[x,S]=(0,o.useState)(null),C=null!==(n=null==x?void 0:x.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,k]=(0,o.useState)({}),E=(0,u.e)(e,t=>
1S(t)),T=Array.from(_.layers),[O]=[..._.layersWithOutsidePointerEventsDisabled].slice(-1),R=T.indexOf(O),A=x?T.indexOf(x):-1,P=_.layersWithOutsidePointerEventsDisabled.size>0,N=A>=R,I=function(t,e=null==globalThis?void 0:globalThis.document){let n=(0,c.W)(t),r=(0,o.useRef)(!1),i=(0,o.useRef)(()=>{});return(0,o.useEffect)(()=>{let t=t=>{if(t.target&&!r.current){let r={originalEvent:t};function o(){h("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===t.pointerType?(e.removeEventListener("click",i.current),i.current=o,e.addEventListener("click",i.current,{once:!0})):o()}else e.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",t)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",t),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}(t=>{let e=t.target,n=[..._.branches].some(t=>t.contains(e));!N||n||(null==v||v(t),null==y||y(t),t.defaultPrevented||null==b||b())},C),L=function(t,e=null==globalThis?void 0:globalThis.document){let n=(0,c.W)(t),r=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let t=t=>{t.target&&!r.current&&h("dismissableLayer.focusOutside",n,{originalEvent:t},{discrete:!1})};return e.addEventListener("focusin",t),()=>e.removeEventListener("focusin",t)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(t=>{let e=t.target;[..._.branches].some(t=>t.contains(e))||(null==m||m(t),null==y||y(t),t.defaultPrevented||null==b||b())},C);return!function(t,e=null==globalThis?void 0:globalThis.document){let n=(0,c.W)(t);(0,o.useEffect)(()=>{let t=t=>{"Escape"===t.key&&n(t)};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)},[n,e])}(t=>{A!==_.layers.size-1||(null==g||g(t),!t.defaultPrevented&&b&&(t.preventDefault(),b()))},C),(0,o.useEffect)(()=>{if(x)return f&&(0===_.layersWithOutsidePointerEventsDisabled.size&&(r=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),_.layersWithOutsidePointerEventsDisabled.add(x)),_.layers.add(x),p(),()=>{f&&1===_.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=r)}},[x,C,f,_]),(0,o.useEffect)(()=>()=>{x&&(_.layers.delete(x),_.layersWithOutsidePointerEventsDisabled.delete(x),p())},[x,_]),(0,o.useEffect)(()=>{let t=()=>k({});return document.addEventListener(l,t),()=>document.removeEventListener(l,t)},[]),(0,o.createElement)(s.WV.div,(0,i.Z)({},w,{ref:E,style:{pointerEvents:P?N?"auto":"none":void 0,...t.style},onFocusCapture:(0,a.M)(t.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,a.M)(t.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,a.M)(t.onPointerDownCapture,I.onPointerDownCapture)}))});function p(){let t=new CustomEvent(l);document.dispatchEvent(t)}function h(t,e,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?(0,s.jH)(i,o):i.dispatchEvent(o)}},1276:function(t,e,n){"use strict";n.d(e,{M:function(){return u}});var r,i=n(7294),o=n(9981);let a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function u(t){let[e,n]=i.useState(a());return(0,o.b)(()=>{t||n(t=>null!=t?t:String(s++))},[t]),t||(e?`radix-${e}`:"")}},382:function(t,e,n){"use strict";n.d(e,{ee:function(){return tL},Eh:function(){return tD},VY:function(){return tM},fC:function(){return tI},D7:function(){return tw}});var r=n(7462),i=n(7294);let o=["top","right","bottom","left"],a=Math.min,s=Math.max,u=Math.round,c=Math.floor,l=t=>({x:t,y:t}),d={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function p(t,e){return"function"==typeof t?t(e):t}function h(t){return t.split("-")[0]}function g(t){return t.split("-")[1]}function v(t){return"x"===t?"y":"x"}function m(t){return"y"===t?"height":"width"}function y(t){return["top","bottom"].includes(h(t))?"y":"x"}function b(t){return t.replace(/start|end/g,t=>f[t])}function w(t){return t.replace(/left|right|bottom|top/g,t=>d[t])}function _(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function x(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function S(t,e,n){let r,{reference:i,floating:o}=t,a=y(e),s=v(y(e)),u=m(s),c=h(e),l="y"===a,d=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,p=i[u]/2-o[u]/2;switch(c){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-o.width,y:f};break;default:r={x:i.x,y:i.y}}switch(g(e)){case"start":r[s]-=p*(n&&l?-1:1);break;case"end":r[s]+=p*(n&&l?-1:1)}return r}let C=async(t,e,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}
1=n,s=o.filter(Boolean),u=await (null==a.isRTL?void 0:a.isRTL(e)),c=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:l,y:d}=S(c,r,u),f=r,p={},h=0;for(let n=0;n<s.length;n++){let{name:o,fn:g}=s[n],{x:v,y:m,data:y,reset:b}=await g({x:l,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});if(l=null!=v?v:l,d=null!=m?m:d,p={...p,[o]:{...p[o],...y}},b&&h<=50){h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:t,floating:e,strategy:i}):b.rects),{x:l,y:d}=S(c,f,u)),n=-1;continue}}return{x:l,y:d,placement:f,strategy:i,middlewareData:p}};async function k(t,e){var n;void 0===e&&(e={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:u}=t,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=p(e,t),g=_(h),v=s[f?"floating"===d?"reference":"floating":d],m=x(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(v)))||n?v:v.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:l,strategy:u})),y="floating"===d?{...a.floating,x:r,y:i}:a.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),w=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},S=x(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:b,strategy:u}):y);return{top:(m.top-S.top+g.top)/w.y,bottom:(S.bottom-m.bottom+g.bottom)/w.y,left:(m.left-S.left+g.left)/w.x,right:(S.right-m.right+g.right)/w.x}}let E=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:r,placement:i,rects:o,platform:u,elements:c,middlewareData:l}=e,{element:d,padding:f=0}=p(t,e)||{};if(null==d)return{};let h=_(f),b={x:n,y:r},w=v(y(i)),x=m(w),S=await u.getDimensions(d),C="y"===w,k=C?"clientHeight":"clientWidth",E=o.reference[x]+o.reference[w]-b[w]-o.floating[x],T=b[w]-o.reference[w],O=await (null==u.getOffsetParent?void 0:u.getOffsetParent(d)),R=O?O[k]:0;R&&await (null==u.isElement?void 0:u.isElement(O))||(R=c.floating[k]||o.floating[x]);let A=R/2-S[x]/2-1,P=a(h[C?"top":"left"],A),N=a(h[C?"bottom":"right"],A),I=R-S[x]-N,L=R/2-S[x]/2+(E/2-T/2),M=s(P,a(L,I)),D=!l.arrow&&null!=g(i)&&L!=M&&o.reference[x]/2-(L<P?P:N)-S[x]/2<0,F=D?L<P?L-P:L-I:0;return{[w]:b[w]+F,data:{[w]:M,centerOffset:L-M-F,...D&&{alignmentOffset:F}},reset:D}}});function T(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function O(t){return o.some(e=>t[e]>=0)}async function R(t,e){let{placement:n,platform:r,elements:i}=t,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=h(n),s=g(n),u="y"===y(n),c=["left","top"].includes(a)?-1:1,l=o&&u?-1:1,d=p(e,t),{mainAxis:f,crossAxis:v,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(v="end"===s?-1*m:m),u?{x:v*l,y:f*c}:{x:f*c,y:v*l}}function A(t){return I(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(null==t?void 0:null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function N(t){var e;return null==(e=(I(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function I(t){return t instanceof Node||t instanceof P(t).Node}function L(t){return t instanceof Element||t instanceof P(t).Element}function M(t){return t instanceof HTMLElement||t instanceof P(t).HTMLElement}function D(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof P(t).ShadowRoot)}function F(t){let{overflow:e,overflowX:n,overflowY:r,display:i}=V(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function j(t){let e=U(),n=V(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(t=>(n.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(n.contain||"").includes(t))}function U(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function z(t){return["html","body","#document"].includes(A(t))}function V(t){return P(t).getComputedStyle(t)}function q(t){return L(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function B(t){if("html"===A(t))return t;let e=t.assignedSlot||t.parentNode||D(t)&&t.host||N(t);return D(e)?e.host:e}function $(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);let i=function t(e){let n=B(e);return z(n)?e.ownerDocument?e.ownerDocument.body:e.body:M(n)&&F(n)?n:t(n)}(t),o=i===(null==(r=t.ownerDocument)?void 0:r.body),a=P(i);
1return o?e.concat(a,a.visualViewport||[],F(i)?i:[],a.frameElement&&n?$(a.frameElement):[]):e.concat(i,$(i,[],n))}function H(t){let e=V(t),n=parseFloat(e.width)||0,r=parseFloat(e.height)||0,i=M(t),o=i?t.offsetWidth:n,a=i?t.offsetHeight:r,s=u(n)!==o||u(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Z(t){return L(t)?t:t.contextElement}function K(t){let e=Z(t);if(!M(e))return l(1);let n=e.getBoundingClientRect(),{width:r,height:i,$:o}=H(e),a=(o?u(n.width):n.width)/r,s=(o?u(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let W=l(0);function G(t){let e=P(t);return U()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:W}function Q(t,e,n,r){var i;void 0===e&&(e=!1),void 0===n&&(n=!1);let o=t.getBoundingClientRect(),a=Z(t),s=l(1);e&&(r?L(r)&&(s=K(r)):s=K(t));let u=(void 0===(i=n)&&(i=!1),r&&(!i||r===P(a))&&i)?G(a):l(0),c=(o.left+u.x)/s.x,d=(o.top+u.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){let t=P(a),e=r&&L(r)?P(r):r,n=t.frameElement;for(;n&&r&&e!==t;){let t=K(n),e=n.getBoundingClientRect(),r=V(n),i=e.left+(n.clientLeft+parseFloat(r.paddingLeft))*t.x,o=e.top+(n.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,d*=t.y,f*=t.x,p*=t.y,c+=i,d+=o,n=P(n).frameElement}}return x({width:f,height:p,x:c,y:d})}function Y(t){return Q(N(t)).left+q(t).scrollLeft}function J(t,e,n){let r;if("viewport"===e)r=function(t,e){let n=P(t),r=N(t),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;let t=U();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s,y:u}}(t,n);else if("document"===e)r=function(t){let e=N(t),n=q(t),r=t.ownerDocument.body,i=s(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=s(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+Y(t),u=-n.scrollTop;return"rtl"===V(r).direction&&(a+=s(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:u}}(N(t));else if(L(e))r=function(t,e){let n=Q(t,!0,"fixed"===e),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=M(t)?K(t):l(1),a=t.clientWidth*o.x;return{width:a,height:t.clientHeight*o.y,x:i*o.x,y:r*o.y}}(e,n);else{let n=G(t);r={...e,x:e.x-n.x,y:e.y-n.y}}return x(r)}function X(t,e){return M(t)&&"fixed"!==V(t).position?e?e(t):t.offsetParent:null}function tt(t,e){let n=P(t);if(!M(t))return n;let r=X(t,e);for(;r&&["table","td","th"].includes(A(r))&&"static"===V(r).position;)r=X(r,e);return r&&("html"===A(r)||"body"===A(r)&&"static"===V(r).position&&!j(r))?n:r||function(t){let e=B(t);for(;M(e)&&!z(e);){if(j(e))return e;e=B(e)}return null}(t)||n}let te=async function(t){let{reference:e,floating:n,strategy:r}=t,i=this.getOffsetParent||tt,o=this.getDimensions;return{reference:function(t,e,n){let r=M(e),i=N(e),o="fixed"===n,a=Q(t,!0,o,e),s={scrollLeft:0,scrollTop:0},u=l(0);if(r||!r&&!o){if(("body"!==A(e)||F(i))&&(s=q(e)),r){let t=Q(e,!0,o,e);u.x=t.x+e.clientLeft,u.y=t.y+e.clientTop}else i&&(u.x=Y(i))}return{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}(e,await i(n),r),floating:{x:0,y:0,...await o(n)}}},tn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:r}=t,i=M(n),o=N(n);if(n===o)return e;let a={scrollLeft:0,scrollTop:0},s=l(1),u=l(0);if((i||!i&&"fixed"!==r)&&(("body"!==A(n)||F(o))&&(a=q(n)),M(n))){let t=Q(n);s=K(n),u.x=t.x+n.clientLeft,u.y=t.y+n.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+u.x,y:e.y*s.y-a.scrollTop*s.y+u.y}},getDocumentElement:N,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t,o=[..."clippingAncestors"===n?function(t,e){let n=e.get(t);if(n)return n;let r=$(t,[],!1).filter(t=>L(t)&&"body"!==A(t)),i=null,o="fixed"===V(t).position,a=o?B(t):t;for(;L(a)&&!z(a);){let e=V(a),n=j(a);n||"fixed"!==e.position||(i=null),(o?!n&&!i:!n&&"static"===e.position&&!!i&&["absolute","fixed"].includes(i.position)||F(a)&&!n&&function t(e,n){let r=B(e);return!(r===n||!L(r)||z(r))&&("fixed"===V(r).position||t(r,n))}(t,a))?r=r.filter(t=>t!==a):i=e,a=B(a)}return e.set(t,r),r}(e,this._c):[].concat(n),r],u=o[0],c=o.reduce((t,n)=>{let r=J(e,n,i);return t.top=s(r.top,t.top),t.right=a(r.right,t.right),t.bottom=a(r.bottom,t.bottom),t.left=s(r.left,t.left),t},J(e,u,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:tt,getElementRects:te,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return H(t)},getScale:K,isElement:L,isRTL:function(t){return"rtl"===V(t).direction}},tr=(t,e,n)=>{let r=new Map,i={platform:tn,...n},o={...i.platform,_c:r};return C(t,e,{...i,platform:o})};var ti=n(3935);let to=t=>({name:"arrow",options:t,fn(e){let{element:n,padding:r}="function"==typeof t?t(e):t;if(n&&({}).hasOwnProperty.call(n,"current")){if(null!=n.current)return E({element:n.current,padding:r}).fn(e)}else if(n)return E({element:n,padding:r}).fn(e);return{}}});var ta="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function ts(t,e){let n,r,i;if(t===e)return!0;
1if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!=e.length)return!1;for(r=n;0!=r--;)if(!ts(t[r],e[r]))return!1;return!0}if((n=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!t.$$typeof)&&!ts(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function tu(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function tc(t,e){let n=tu(t);return Math.round(e*n)/n}function tl(t){let e=i.useRef(t);return ta(()=>{e.current=t}),e}var td=n(5320);let tf=(0,i.forwardRef)((t,e)=>{let{children:n,width:o=10,height:a=5,...s}=t;return(0,i.createElement)(td.WV.svg,(0,r.Z)({},s,{ref:e,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?n:(0,i.createElement)("polygon",{points:"0,0 30,0 15,10"}))});var tp=n(8771),th=n(5360),tg=n(9698),tv=n(9981),tm=n(7546);let ty="Popper",[tb,tw]=(0,th.b)(ty),[t_,tx]=tb(ty),tS=(0,i.forwardRef)((t,e)=>{let{__scopePopper:n,virtualRef:o,...a}=t,s=tx("PopperAnchor",n),u=(0,i.useRef)(null),c=(0,tp.e)(e,u);return(0,i.useEffect)(()=>{s.onAnchorChange((null==o?void 0:o.current)||u.current)}),o?null:(0,i.createElement)(td.WV.div,(0,r.Z)({},a,{ref:c}))}),tC="PopperContent",[tk,tE]=tb(tC),tT=(0,i.forwardRef)((t,e)=>{var n,o,u,l,d,f,_,x,S,C,E,A,P,I;let{__scopePopper:L,side:M="bottom",sideOffset:D=0,align:F="center",alignOffset:j=0,arrowPadding:U=0,avoidCollisions:z=!0,collisionBoundary:V=[],collisionPadding:q=0,sticky:B="partial",hideWhenDetached:H=!1,updatePositionStrategy:K="optimized",onPlaced:W,...G}=t,Y=tx(tC,L),[J,X]=(0,i.useState)(null),tt=(0,tp.e)(e,t=>X(t)),[te,tn]=(0,i.useState)(null),tf=(0,tm.t)(te),th=null!==(n=null==tf?void 0:tf.width)&&void 0!==n?n:0,ty=null!==(o=null==tf?void 0:tf.height)&&void 0!==o?o:0,tb="number"==typeof q?q:{top:0,right:0,bottom:0,left:0,...q},tw=Array.isArray(V)?V:[V],t_=tw.length>0,tS={padding:tb,boundary:tw.filter(tA),altBoundary:t_},{refs:tE,floatingStyles:tT,placement:tO,isPositioned:tR,middlewareData:tI}=function(t){void 0===t&&(t={});let{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:u=!0,whileElementsMounted:c,open:l}=t,[d,f]=i.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[p,h]=i.useState(r);ts(p,r)||h(r);let[g,v]=i.useState(null),[m,y]=i.useState(null),b=i.useCallback(t=>{t!=S.current&&(S.current=t,v(t))},[v]),w=i.useCallback(t=>{t!==C.current&&(C.current=t,y(t))},[y]),_=a||g,x=s||m,S=i.useRef(null),C=i.useRef(null),k=i.useRef(d),E=tl(c),T=tl(o),O=i.useCallback(()=>{if(!S.current||!C.current)return;let t={placement:e,strategy:n,middleware:p};T.current&&(t.platform=T.current),tr(S.current,C.current,t).then(t=>{let e={...t,isPositioned:!0};R.current&&!ts(k.current,e)&&(k.current=e,ti.flushSync(()=>{f(e)}))})},[p,e,n,T]);ta(()=>{!1===l&&k.current.isPositioned&&(k.current.isPositioned=!1,f(t=>({...t,isPositioned:!1})))},[l]);let R=i.useRef(!1);ta(()=>(R.current=!0,()=>{R.current=!1}),[]),ta(()=>{if(_&&(S.current=_),x&&(C.current=x),_&&x){if(E.current)return E.current(_,x,O);O()}},[_,x,O,E]);let A=i.useMemo(()=>({reference:S,floating:C,setReference:b,setFloating:w}),[b,w]),P=i.useMemo(()=>({reference:_,floating:x}),[_,x]),N=i.useMemo(()=>{let t={position:n,left:0,top:0};if(!P.floating)return t;let e=tc(P.floating,d.x),r=tc(P.floating,d.y);return u?{...t,transform:"translate("+e+"px, "+r+"px)",...tu(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:r}},[n,u,P.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:O,refs:A,elements:P,floatingStyles:N}),[d,O,A,P,N])}({strategy:"fixed",placement:M+("center"!==F?"-"+F:""),whileElementsMounted:(...t)=>(function(t,e,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=Z(t),h=o||u?[...p?$(p):[],...$(e)]:[];h.forEach(t=>{o&&t.addEventListener("scroll",n,{passive:!0}),u&&t.addEventListener("resize",n)});let g=p&&d?function(t,e){let n,r=null,i=N(t);function o(){clearTimeout(n),r&&r.disconnect(),r=null}return!function u(l,d){void 0===l&&(l=!1),void 0===d&&(d=1),o();let{left:f,top:p,width:h,height:g}=t.getBoundingClientRect();if(l||e(),!h||!g)return;let v=c(p),m=c(i.clientWidth-(f+h)),y={rootMargin:-v+"px "+-m+"px "+-c(i.clientHeight-(p+g))+"px "+-c(f)+"px",threshold:s(0,a(1,d))||1},b=!0;function w(t){let e=t[0].intersectionRatio;if(e!==d){if(!b)return u();e?u(!1,e):n=setTimeout(()=>{u(!1,1e-7)},100)}b=!1}try{r=new IntersectionObserver(w,{...y,root:i.ownerDocument})}catch(t){r=new IntersectionObserver(w,y)}r.observe(t)}(!0),o}(p,n):null,v=-1,m=null;l&&(m=new ResizeObserver(t=>{let[r]=t;r&&r.target===p&&m&&(m.unobserve(e),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{m&&m.observe(e)})),n()}),p&&!f&&m.observe(p),m.observe(e));let y=f?Q(t):null;return f&&function e(){let r=Q(t);y&&(r.x!==y.x||r.y!==y.y||r.width!==y.width||r.height!==y.height)&&n(),y=r,i=requestAnimationFrame(e)}(),n(),()=>{h.forEach(t=>{o&&t.removeEventListener("scroll",n),u&&t.removeEventListener("resize",n)}),g&&g(),m&&m.disconnect(),m=null,f&&cancelAnimationFrame(i)}})(...t,{animationFrame:"always"===K}),elements:{reference:Y.anchor},middleware:[{name:"offset",options:S={mainAxis:D+ty,alignmentAxis:j},async fn(t){let{x:e,y:n}=t,r=await R(t,S);return{x:e+r.x,y:n+r.y,data:r}}},z&&{name:"shift",options:E={mainAxis:!0,crossAxis:!1,limiter:"partial"===B?(void 0===C&&(C={}),{options:C,fn(t){let{x:e,y:n,placement:r,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=p(C,t),c={x:e,y:n},l=y(r),d=v(l),f=c[d],g=c[l],m=p(a,t),b="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let t="y"===d?"height":"width",e=i.reference[d]-i.floating[t]+b.mainAxis,n=i.reference[d]+i.reference[t]-b.mainAxis;f<e?f=e:f>n&&(f=n)}if(u){var w,_;let t="y"===d?"width":"height",e=["top","left"].includes(h(r)),n=i.reference[l]-i.floating[t]+(e&&(null==(w=o.offset)?void 0:w[l])||0)+(e?0:b.crossAxis),a=i.reference[l]+i.reference[t]+(e?0:(null==(_=o.offset)?void 0:_[l])||0)-(e?b.crossAxis:0);g<n?g=n:g>a&&(g=a)}return{[d]:f,[l]:g}}}):void 0,...tS},async fn(t){let{x:e,y:n,placement:r}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:u={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=p(E,t),l={x:e,y:n},d=await k(t,c),f=y(h(r)),g=v(f),m=l[g],b=l[f];if(i){let t="y"===g?"top":"left",e="y"===g?"bottom":"right",n=m+d[t],r=m-d[e];m=s(n,a(m,r))}if(o){let t="y"===f?"top":"left",e="y"===f?"bottom":"right",n=b+d[t],r=b-d[e];b=s(n,a(b,r))}let w=u.fn({...t,[g]:m,[f]:b});return{...w,data:{x:w.x-e,y:w.y-n}}}},z&&{name:"flip",options:A={...tS},async fn(t){var e,n,r,i,o;let{placement:a,middlewareData:s,rects:u,initialPlacement:c,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:_=!0,fallbackPlacements:x,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:E=!0,...T}
1=p(A,t);if(null!=(e=s.arrow)&&e.alignmentOffset)return{};let O=h(a),R=h(c)===c,P=await (null==l.isRTL?void 0:l.isRTL(d.floating)),N=x||(R||!E?[w(c)]:function(t){let e=w(t);return[b(t),e,b(e)]}(c));x||"none"===C||N.push(...function(t,e,n,r){let i=g(t),o=function(t,e,n){let r=["left","right"],i=["right","left"];switch(t){case"top":case"bottom":if(n)return e?i:r;return e?r:i;case"left":case"right":return e?["top","bottom"]:["bottom","top"];default:return[]}}(h(t),"start"===n,r);return i&&(o=o.map(t=>t+"-"+i),e&&(o=o.concat(o.map(b)))),o}(c,E,C,P));let I=[c,...N],L=await k(t,T),M=[],D=(null==(n=s.flip)?void 0:n.overflows)||[];if(f&&M.push(L[O]),_){let t=function(t,e,n){void 0===n&&(n=!1);let r=g(t),i=v(y(t)),o=m(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[o]>e.floating[o]&&(a=w(a)),[a,w(a)]}(a,u,P);M.push(L[t[0]],L[t[1]])}if(D=[...D,{placement:a,overflows:M}],!M.every(t=>t<=0)){let t=((null==(r=s.flip)?void 0:r.index)||0)+1,e=I[t];if(e)return{data:{index:t,overflows:D},reset:{placement:e}};let n=null==(i=D.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:i.placement;if(!n)switch(S){case"bestFit":{let t=null==(o=D.map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:o[0];t&&(n=t);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}},{name:"size",options:P={...tS,apply:({elements:t,rects:e,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=e.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(t){let e,n;let{placement:r,rects:i,platform:o,elements:u}=t,{apply:c=()=>{},...l}=p(P,t),d=await k(t,l),f=h(r),v=g(r),m="y"===y(r),{width:b,height:w}=i.floating;"top"===f||"bottom"===f?(e=f,n=v===(await (null==o.isRTL?void 0:o.isRTL(u.floating))?"start":"end")?"left":"right"):(n=f,e="end"===v?"top":"bottom");let _=w-d[e],x=b-d[n],S=!t.middlewareData.shift,C=_,E=x;if(m){let t=b-d.left-d.right;E=v||S?a(x,t):t}else{let t=w-d.top-d.bottom;C=v||S?a(_,t):t}if(S&&!v){let t=s(d.left,0),e=s(d.right,0),n=s(d.top,0),r=s(d.bottom,0);m?E=b-2*(0!==t||0!==e?t+e:s(d.left,d.right)):C=w-2*(0!==n||0!==r?n+r:s(d.top,d.bottom))}await c({...t,availableWidth:E,availableHeight:C});let T=await o.getDimensions(u.floating);return b!==T.width||w!==T.height?{reset:{rects:!0}}:{}}},te&&to({element:te,padding:U}),tP({arrowWidth:th,arrowHeight:ty}),H&&{name:"hide",options:I={strategy:"referenceHidden",...tS},async fn(t){let{rects:e}=t,{strategy:n="referenceHidden",...r}=p(I,t);switch(n){case"referenceHidden":{let n=T(await k(t,{...r,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:O(n)}}}case"escaped":{let n=T(await k(t,{...r,altBoundary:!0}),e.floating);return{data:{escapedOffsets:n,escaped:O(n)}}}default:return{}}}}]}),[tL,tM]=tN(tO),tD=(0,tg.W)(W);(0,tv.b)(()=>{tR&&(null==tD||tD())},[tR,tD]);let tF=null===(u=tI.arrow)||void 0===u?void 0:u.x,tj=null===(l=tI.arrow)||void 0===l?void 0:l.y,tU=(null===(d=tI.arrow)||void 0===d?void 0:d.centerOffset)!==0,[tz,tV]=(0,i.useState)();return(0,tv.b)(()=>{J&&tV(window.getComputedStyle(J).zIndex)},[J]),(0,i.createElement)("div",{ref:tE.setFloating,"data-radix-popper-content-wrapper":"",style:{...tT,transform:tR?tT.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:tz,"--radix-popper-transform-origin":[null===(f=tI.transformOrigin)||void 0===f?void 0:f.x,null===(_=tI.transformOrigin)||void 0===_?void 0:_.y].join(" ")},dir:t.dir},(0,i.createElement)(tk,{scope:L,placedSide:tL,onArrowChange:tn,arrowX:tF,arrowY:tj,shouldHideArrow:tU},(0,i.createElement)(td.WV.div,(0,r.Z)({"data-side":tL,"data-align":tM},G,{ref:tt,style:{...G.style,animation:tR?void 0:"none",opacity:null!==(x=tI.hide)&&void 0!==x&&x.referenceHidden?0:void 0}}))))}),tO={top:"bottom",right:"left",bottom:"top",left:"right"},tR=(0,i.forwardRef)(function(t,e){let{__scopePopper:n,...o}=t,a=tE("PopperArrow",n),s=tO[a.placedSide];return(0,i.createElement)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},(0,i.createElement)(tf,(0,r.Z)({},o,{ref:e,style:{...o.style,display:"block"}})))});function tA(t){return null!==t}let tP=t=>({name:"transformOrigin",options:t,fn(e){var n,r,i,o,a;let{placement:s,rects:u,middlewareData:c}=e,l=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=l?0:t.arrowWidth,f=l?0:t.arrowHeight,[p,h]=tN(s),g={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(r=null===(i=c.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,m=(null!==(o=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===p?(y=l?g:`${v}px`,b=`${-f}px`):"top"===p?(y=l?g:`${v}px`,b=`${u.floating.height+f}px`):"right"===p?(y=`${-f}px`,b=l?g:`${m}px`):"left"===p&&(y=`${u.floating.width+f}px`,b=l?g:`${m}px`),{data:{x:y,y:b}}}});function tN(t){let[e,n="center"]=t.split("-");return[e,n]}let tI=t=>{let{__scopePopper:e,children:n}=t,[r,o]=(0,i.useState)(null);return(0,i.createElement)(t_,{scope:e,anchor:r,onAnchorChange:o},n)},tL=tS,tM=tT,tD=tR},2651:function(t,e,n){"use strict";n.d(e,{h:function(){return s}});var r=n(7462),i=n(7294),o=n(3935),a=n(5320);let s=(0,i.forwardRef)((t,e)=>{var n;
1let{container:s=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...u}=t;return s?o.createPortal((0,i.createElement)(a.WV.div,(0,r.Z)({},u,{ref:e})),s):null})},9115:function(t,e,n){"use strict";n.d(e,{z:function(){return s}});var r=n(7294),i=n(3935),o=n(8771),a=n(9981);let s=t=>{let{present:e,children:n}=t,s=function(t){var e,n;let[o,s]=(0,r.useState)(),c=(0,r.useRef)({}),l=(0,r.useRef)(t),d=(0,r.useRef)("none"),[f,p]=(e=t?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((t,e)=>{let r=n[t][e];return null!=r?r:t},e));return(0,r.useEffect)(()=>{let t=u(c.current);d.current="mounted"===f?t:"none"},[f]),(0,a.b)(()=>{let e=c.current,n=l.current;if(n!==t){let r=d.current,i=u(e);t?p("MOUNT"):"none"===i||(null==e?void 0:e.display)==="none"?p("UNMOUNT"):n&&r!==i?p("ANIMATION_OUT"):p("UNMOUNT"),l.current=t}},[t,p]),(0,a.b)(()=>{if(o){let t=t=>{let e=u(c.current).includes(t.animationName);t.target===o&&e&&(0,i.flushSync)(()=>p("ANIMATION_END"))},e=t=>{t.target===o&&(d.current=u(c.current))};return o.addEventListener("animationstart",e),o.addEventListener("animationcancel",t),o.addEventListener("animationend",t),()=>{o.removeEventListener("animationstart",e),o.removeEventListener("animationcancel",t),o.removeEventListener("animationend",t)}}p("ANIMATION_END")},[o,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(t=>{t&&(c.current=getComputedStyle(t)),s(t)},[])}}(e),c="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),l=(0,o.e)(s.ref,c.ref);return"function"==typeof n||s.isPresent?(0,r.cloneElement)(c,{ref:l}):null};function u(t){return(null==t?void 0:t.animationName)||"none"}s.displayName="Presence"},5320:function(t,e,n){"use strict";n.d(e,{WV:function(){return s},jH:function(){return u}});var r=n(7462),i=n(7294),o=n(3935),a=n(8426);let s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((t,e)=>{let n=(0,i.forwardRef)((t,n)=>{let{asChild:o,...s}=t,u=o?a.g7:e;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(u,(0,r.Z)({},s,{ref:n}))});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function u(t,e){t&&(0,o.flushSync)(()=>t.dispatchEvent(e))}},8426:function(t,e,n){"use strict";n.d(e,{A4:function(){return u},g7:function(){return a}});var r=n(7462),i=n(7294),o=n(8771);let a=(0,i.forwardRef)((t,e)=>{let{children:n,...o}=t,a=i.Children.toArray(n),u=a.find(c);if(u){let t=u.props.children,n=a.map(e=>e!==u?e:i.Children.count(t)>1?i.Children.only(null):(0,i.isValidElement)(t)?t.props.children:null);return(0,i.createElement)(s,(0,r.Z)({},o,{ref:e}),(0,i.isValidElement)(t)?(0,i.cloneElement)(t,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},o,{ref:e}),n)});a.displayName="Slot";let s=(0,i.forwardRef)((t,e)=>{let{children:n,...r}=t;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(t,e){let n={...e};for(let r in e){let i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...t)=>{o(...t),i(...t)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}(r,n.props),ref:e?(0,o.F)(e,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});s.displayName="SlotClone";let u=({children:t})=>(0,i.createElement)(i.Fragment,null,t);function c(t){return(0,i.isValidElement)(t)&&t.type===u}},9698:function(t,e,n){"use strict";n.d(e,{W:function(){return i}});var r=n(7294);function i(t){let e=(0,r.useRef)(t);return(0,r.useEffect)(()=>{e.current=t}),(0,r.useMemo)(()=>(...t)=>{var n;return null===(n=e.current)||void 0===n?void 0:n.call(e,...t)},[])}},7342:function(t,e,n){"use strict";n.d(e,{T:function(){return o}});var r=n(7294),i=n(9698);function o({prop:t,defaultProp:e,onChange:n=()=>{}}){let[o,a]=function({defaultProp:t,onChange:e}){let n=(0,r.useState)(t),[o]=n,a=(0,r.useRef)(o),s=(0,i.W)(e);return(0,r.useEffect)(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:e,onChange:n}),s=void 0!==t,u=s?t:o,c=(0,i.W)(n);return[u,(0,r.useCallback)(e=>{if(s){let n="function"==typeof e?e(t):e;n!==t&&c(n)}else a(e)},[s,t,a,c])]}},9981:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});var r=n(7294);let i=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},7546:function(t,e,n){"use strict";n.d(e,{t:function(){return o}});var r=n(7294),i=n(9981);function o(t){let[e,n]=(0,r.useState)(void 0);return(0,i.b)(()=>
1{if(t){n({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{let r,i;if(!Array.isArray(e)||!e.length)return;let o=e[0];if("borderBoxSize"in o){let t=o.borderBoxSize,e=Array.isArray(t)?t[0]:t;r=e.inlineSize,i=e.blockSize}else r=t.offsetWidth,i=t.offsetHeight;n({width:r,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)},[t]),e}},6219:function(t,e,n){"use strict";n.d(e,{T:function(){return a},f:function(){return s}});var r=n(7462),i=n(7294),o=n(5320);let a=(0,i.forwardRef)((t,e)=>(0,i.createElement)(o.WV.span,(0,r.Z)({},t,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}))),s=a},2003:function(t,e,n){"use strict";n.d(e,{j:function(){return a}});var r=n(512);let i=t=>"boolean"==typeof t?"".concat(t):0===t?"0":t,o=r.W,a=(t,e)=>n=>{var r;if((null==e?void 0:e.variants)==null)return o(t,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=e,u=Object.keys(a).map(t=>{let e=null==n?void 0:n[t],r=null==s?void 0:s[t];if(null===e)return null;let o=i(e)||i(r);return a[t][o]}),c=n&&Object.entries(n).reduce((t,e)=>{let[n,r]=e;return void 0===r||(t[n]=r),t},{});return o(t,u,null==e?void 0:null===(r=e.compoundVariants)||void 0===r?void 0:r.reduce((t,e)=>{let{class:n,className:r,...i}=e;return Object.entries(i).every(t=>{let[e,n]=t;return Array.isArray(n)?n.includes({...s,...c}[e]):({...s,...c})[e]===n})?[...t,n,r]:t},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},512:function(t,e,n){"use strict";function r(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=function t(e){var n,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e){if(Array.isArray(e))for(n=0;n<e.length;n++)e[n]&&(r=t(e[n]))&&(i&&(i+=" "),i+=r);else for(n in e)e[n]&&(i&&(i+=" "),i+=n)}return i}(t))&&(r&&(r+=" "),r+=e);return r}n.d(e,{W:function(){return r}})},1782:function(t,e,n){"use strict";n.d(e,{ZP:function(){return p},zt:function(){return f}});var r=n(7294),i="undefined"==typeof window?r.useEffect:r.useLayoutEffect,o="__wrap_b",a="__wrap_n",s="__wrap_o",u=(t,e,n)=>{let r=(n=n||document.querySelector(`[data-br="${t}"]`)).parentElement,i=t=>n.style.maxWidth=t+"px";n.style.maxWidth="";let o=r.clientWidth,a=r.clientHeight,s=o/2-.25,u=o+.5,c;if(o){for(i(s),s=Math.max(n.scrollWidth,s);s+1<u;)i(c=Math.round((s+u)/2)),r.clientHeight===a?u=c:s=c;i(u*e+o*(1-e))}n.__wrap_o||"undefined"!=typeof ResizeObserver&&(n.__wrap_o=new ResizeObserver(()=>{self.__wrap_b(0,+n.dataset.brr,n)})).observe(r)},c=u.toString(),l=(t,e,n="")=>(n&&(n=`self.${a}!=1&&${n}`),r.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:(t?"":`self.${a}=self.${a}||(self.CSS&&CSS.supports("text-wrap","balance")?1:2);self.${o}=${c};`)+n},nonce:e})),d=r.createContext({preferNative:!0,hasProvider:!1}),f=({preferNative:t=!0,nonce:e,children:n})=>{let i=r.useMemo(()=>({preferNative:t,hasProvider:!0}),[t]);return r.createElement(d.Provider,{value:i},l(!1,e),n)},p=({ratio:t=1,preferNative:e,nonce:n,children:c,...f})=>{let p=r.useMemo(()=>r.useId,[])(),h=r.useRef(),g=r.useContext(d),v=null!=e?e:g.preferNative,m=f.as||"span";return i(()=>{v&&1===self[a]||h.current&&(self[o]=u)(0,t,h.current)},[c,v,t]),i(()=>{if(!(v&&1===self[a]))return()=>{if(!h.current)return;let t=h.current[s];t&&(t.disconnect(),delete h.current[s])}},[v]),r.createElement(r.Fragment,null,r.createElement(m,{...f,"data-br":p,"data-brr":t,ref:h,style:{display:"inline-block",verticalAlign:"top",textDecoration:"inherit",textWrap:v?"balance":"initial"},suppressHydrationWarning:!0},c),l(g.hasProvider,n,`self.${o}("${p}",${t})`))}}},function(t){var e=function(e){return t(t.s=e)};t.O(0,[774,179],function(){return e(6840),e(3079)}),_N_E=t.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.