/*! For license information please see signup.js.LICENSE.txt */
(()=>{var e={1299:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="google",r=[],i="f1a0",o="M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z";t.definition={prefix:"fab",iconName:n,icon:[488,512,r,i,o]},t.faGoogle=t.definition,t.prefix="fab",t.iconName=n,t.width=488,t.height=512,t.ligatures=r,t.unicode=i,t.svgPathData=o,t.aliases=r},5498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="microsoft",r=[],i="f3ca",o="M0 32h214.6v214.6H0V32zm233.4 0H448v214.6H233.4V32zM0 265.4h214.6V480H0V265.4zm233.4 0H448V480H233.4V265.4z";t.definition={prefix:"fab",iconName:n,icon:[448,512,r,i,o]},t.faMicrosoft=t.definition,t.prefix="fab",t.iconName=n,t.width=448,t.height=512,t.ligatures=r,t.unicode=i,t.svgPathData=o,t.aliases=r},8375:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="arrows-rotate",r=[128472,"refresh","sync"],i="f021",o="M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V448c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H176c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z";t.definition={prefix:"fas",iconName:n,icon:[512,512,r,i,o]},t.faArrowsRotate=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=r,t.unicode=i,t.svgPathData=o,t.aliases=r},982:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.r(t),n.d(t,{FontAwesomeIcon:()=>Nn});var f=function(){},p={},h={},m=null,g={mark:f,measure:f};try{"undefined"!=typeof window&&(p=window),"undefined"!=typeof document&&(h=document),"undefined"!=typeof MutationObserver&&(m=MutationObserver),"undefined"!=typeof performance&&(g=performance)}catch(e){}var y,_,v,b,w,k=(p.navigator||{}).userAgent,S=void 0===k?"":k,E=p,T=h,x=m,R=g,C=(E.document,!!T.documentElement&&!!T.head&&"function"==typeof T.addEventListener&&"function"==typeof T.createElement),O=~S.indexOf("MSIE")||~S.indexOf("Trident/"),D="___FONT_AWESOME___",I="fa",A="svg-inline--fa",P="data-fa-i2svg",U="data-fa-pseudo-element",M="data-fa-pseudo-element-pending",L="data-prefix",j="data-icon",B="fontawesome-i2svg",z="async",F=["HTML","HEAD","STYLE","SCRIPT"],G=function(){try{return!0}catch(e){return!1}}(),$="classic",Y="sharp",q=[$,Y];function H(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[$]}})}var W=H((s(y={},$,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),s(y,Y,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),y)),V=H((s(_={},$,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),s(_,Y,{solid:"fass",regular:"fasr",light:"fasl"}),_)),Z=H((s(v={},$,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),s(v,Y,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),v)),J=H((s(b={},$,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),s(b,Y,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),b)),K=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,Q="fa-layers-text",X=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,ee=H((s(w={},$,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),s(w,Y,{900:"fass",400:"fasr",300:"fasl"}),w)),te=[1,2,3,4,5,6,7,8,9,10],ne=te.concat([11,12,13,14,15,16,17,18,19,20]),re=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ie={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},oe=new Set;Object.keys(V[$]).map(oe.add.bind(oe)),Object.keys(V[Y]).map(oe.add.bind(oe));var ae=[].concat(q,c(oe),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ie.GROUP,ie.SWAP_OPACITY,ie.PRIMARY,ie.SECONDARY]).concat(te.map((function(e){return"".concat(e,"x")}))).concat(ne.map((function(e){return"w-".concat(e)}))),se=E.FontAwesomeConfig||{};T&&"function"==typeof T.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=l(e,2),n=t[0],r=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=T.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=i&&(se[r]=i)}));var le={styleDefault:"solid",familyDefault:"classic",cssPrefix:I,replacementClass:A,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};se.familyPrefix&&(se.cssPrefix=se.familyPrefix);var ce=i(i({},le),se);ce.autoReplaceSvg||(ce.observeMutations=!1);var ue={};Object.keys(le).forEach((function(e){Object.defineProperty(ue,e,{enumerable:!0,set:function(t){ce[e]=t,de.forEach((function(e){return e(ue)}))},get:function(){return ce[e]}})})),Object.defineProperty(ue,"familyPrefix",{enumerable:!0,set:function(e){ce.cssPrefix=e,de.forEach((function(e){return e(ue)}))},get:function(){return ce.cssPrefix}}),E.FontAwesomeConfig=ue;var de=[],pe={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},he="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function me(){for(var e=12,t="";e-- >0;)t+=he[62*Math.random()|0];return t}function ge(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ye(e){return e.classList?ge(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function _e(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ve(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function be(e){return e.size!==pe.size||e.x!==pe.x||e.y!==pe.y||e.rotate!==pe.rotate||e.flipX||e.flipY}var we=':root, :host {\n  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n  overflow: visible;\n  box-sizing: content-box;\n}\n\n.svg-inline--fa {\n  display: var(--fa-display, inline-block);\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n  vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n  vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n  vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n  vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n  vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-li {\n  width: var(--fa-li-width, 2em);\n  top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n  width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: var(--fa-counter-background-color, #ff253a);\n  border-radius: var(--fa-counter-border-radius, 1em);\n  box-sizing: border-box;\n  color: var(--fa-inverse, #fff);\n  line-height: var(--fa-counter-line-height, 1);\n  max-width: var(--fa-counter-max-width, 5em);\n  min-width: var(--fa-counter-min-width, 1.5em);\n  overflow: hidden;\n  padding: var(--fa-counter-padding, 0.25em 0.5em);\n  right: var(--fa-right, 0);\n  text-overflow: ellipsis;\n  top: var(--fa-top, 0);\n  -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n          transform: scale(var(--fa-counter-scale, 0.25));\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: var(--fa-bottom, 0);\n  right: var(--fa-right, 0);\n  top: auto;\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: var(--fa-bottom, 0);\n  left: var(--fa-left, 0);\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  top: var(--fa-top, 0);\n  right: var(--fa-right, 0);\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: var(--fa-left, 0);\n  right: auto;\n  top: var(--fa-top, 0);\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-2xs {\n  font-size: 0.625em;\n  line-height: 0.1em;\n  vertical-align: 0.225em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n  line-height: 0.0833333337em;\n  vertical-align: 0.125em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n  line-height: 0.0714285718em;\n  vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n  font-size: 1.25em;\n  line-height: 0.05em;\n  vertical-align: -0.075em;\n}\n\n.fa-xl {\n  font-size: 1.5em;\n  line-height: 0.0416666682em;\n  vertical-align: -0.125em;\n}\n\n.fa-2xl {\n  font-size: 2em;\n  line-height: 0.03125em;\n  vertical-align: -0.1875em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: var(--fa-li-margin, 2.5em);\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: calc(var(--fa-li-width, 2em) * -1);\n  position: absolute;\n  text-align: center;\n  width: var(--fa-li-width, 2em);\n  line-height: inherit;\n}\n\n.fa-border {\n  border-color: var(--fa-border-color, #eee);\n  border-radius: var(--fa-border-radius, 0.1em);\n  border-style: var(--fa-border-style, solid);\n  border-width: var(--fa-border-width, 0.08em);\n  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n  float: left;\n  margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n  float: right;\n  margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n  -webkit-animation-name: fa-beat;\n          animation-name: fa-beat;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n          animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n  -webkit-animation-name: fa-bounce;\n          animation-name: fa-bounce;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n  -webkit-animation-name: fa-fade;\n          animation-name: fa-fade;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n  -webkit-animation-name: fa-beat-fade;\n          animation-name: fa-beat-fade;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n  -webkit-animation-name: fa-flip;\n          animation-name: fa-flip;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n          animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n  -webkit-animation-name: fa-shake;\n          animation-name: fa-shake;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n          animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n  -webkit-animation-name: fa-spin;\n          animation-name: fa-spin;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 2s);\n          animation-duration: var(--fa-animation-duration, 2s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n          animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n  --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n  -webkit-animation-name: fa-spin;\n          animation-name: fa-spin;\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n          animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n    -webkit-animation-delay: -1ms;\n            animation-delay: -1ms;\n    -webkit-animation-duration: 1ms;\n            animation-duration: 1ms;\n    -webkit-animation-iteration-count: 1;\n            animation-iteration-count: 1;\n    -webkit-transition-delay: 0s;\n            transition-delay: 0s;\n    -webkit-transition-duration: 0s;\n            transition-duration: 0s;\n  }\n}\n@-webkit-keyframes fa-beat {\n  0%, 90% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  45% {\n    -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n            transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@keyframes fa-beat {\n  0%, 90% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  45% {\n    -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n            transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@-webkit-keyframes fa-bounce {\n  0% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n}\n@keyframes fa-bounce {\n  0% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n}\n@-webkit-keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@-webkit-keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n            transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n            transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@-webkit-keyframes fa-flip {\n  50% {\n    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@keyframes fa-flip {\n  50% {\n    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@-webkit-keyframes fa-shake {\n  0% {\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n  }\n  4% {\n    -webkit-transform: rotate(15deg);\n            transform: rotate(15deg);\n  }\n  8%, 24% {\n    -webkit-transform: rotate(-18deg);\n            transform: rotate(-18deg);\n  }\n  12%, 28% {\n    -webkit-transform: rotate(18deg);\n            transform: rotate(18deg);\n  }\n  16% {\n    -webkit-transform: rotate(-22deg);\n            transform: rotate(-22deg);\n  }\n  20% {\n    -webkit-transform: rotate(22deg);\n            transform: rotate(22deg);\n  }\n  32% {\n    -webkit-transform: rotate(-12deg);\n            transform: rotate(-12deg);\n  }\n  36% {\n    -webkit-transform: rotate(12deg);\n            transform: rotate(12deg);\n  }\n  40%, 100% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n}\n@keyframes fa-shake {\n  0% {\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n  }\n  4% {\n    -webkit-transform: rotate(15deg);\n            transform: rotate(15deg);\n  }\n  8%, 24% {\n    -webkit-transform: rotate(-18deg);\n            transform: rotate(-18deg);\n  }\n  12%, 28% {\n    -webkit-transform: rotate(18deg);\n            transform: rotate(18deg);\n  }\n  16% {\n    -webkit-transform: rotate(-22deg);\n            transform: rotate(-22deg);\n  }\n  20% {\n    -webkit-transform: rotate(22deg);\n            transform: rotate(22deg);\n  }\n  32% {\n    -webkit-transform: rotate(-12deg);\n            transform: rotate(-12deg);\n  }\n  36% {\n    -webkit-transform: rotate(12deg);\n            transform: rotate(12deg);\n  }\n  40%, 100% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n}\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n  -webkit-transform: rotate(var(--fa-rotate-angle, none));\n          transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n  display: inline-block;\n  vertical-align: middle;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n  z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}';function ke(){var e=I,t=A,n=ue.cssPrefix,r=ue.replacementClass,i=we;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var Se=!1;function Ee(){ue.autoAddCss&&!Se&&(function(e){if(e&&C){var t=T.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=T.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}T.head.insertBefore(t,r)}}(ke()),Se=!0)}var Te={mixout:function(){return{dom:{css:ke,insertCss:Ee}}},hooks:function(){return{beforeDOMElementCreation:function(){Ee()},beforeI2svg:function(){Ee()}}}},xe=E||{};xe[D]||(xe[D]={}),xe[D].styles||(xe[D].styles={}),xe[D].hooks||(xe[D].hooks={}),xe[D].shims||(xe[D].shims=[]);var Re=xe[D],Ce=[],Oe=!1;function De(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,o=void 0===i?[]:i;return"string"==typeof e?_e(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(_e(e[n]),'" ')}),"").trim()}(r),">").concat(o.map(De).join(""),"</").concat(t,">")}function Ne(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}C&&((Oe=(T.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(T.readyState))||T.addEventListener("DOMContentLoaded",(function e(){T.removeEventListener("DOMContentLoaded",e),Oe=1,Ce.map((function(e){return e()}))})));var Ie=function(e,t,n,r){var i,o,a,s=Object.keys(e),l=s.length,c=void 0!==r?function(e,t){return function(n,r,i,o){return e.call(t,n,r,i,o)}}(t,r):t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i<l;i++)a=c(a,e[o=s[i]],o,e);return a};function Ae(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function Pe(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function Ue(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,o=Pe(t);"function"!=typeof Re.hooks.addPack||r?Re.styles[e]=i(i({},Re.styles[e]||{}),o):Re.hooks.addPack(e,Pe(t)),"fas"===e&&Ue("fa",t)}var Me,Le,je,Ze,Be=Re.styles,ze=Re.shims,Fe=(s(Me={},$,Object.values(Z[$])),s(Me,Y,Object.values(Z[Y])),Me),Ge=null,$e={},Ye={},qe={},He={},We={},Ve=(s(Le={},$,Object.keys(W[$])),s(Le,Y,Object.keys(W[Y])),Le),Je=function(){var e=function(e){return Ie(Be,(function(t,n,r){return t[r]=Ie(n,e,{}),t}),{})};$e=e((function(e,t,n){return t[3]&&(e[t[3]]=n),t[2]&&t[2].filter((function(e){return"number"==typeof e})).forEach((function(t){e[t.toString(16)]=n})),e})),Ye=e((function(e,t,n){return e[n]=n,t[2]&&t[2].filter((function(e){return"string"==typeof e})).forEach((function(t){e[t]=n})),e})),We=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in Be||ue.autoFetchSvg,n=Ie(ze,(function(e,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e}),{names:{},unicodes:{}});qe=n.names,He=n.unicodes,Ge=nt(ue.styleDefault,{family:ue.familyDefault})};function Ke(e,t){return($e[e]||{})[t]}function Qe(e,t){return(We[e]||{})[t]}function Xe(e){return qe[e]||{prefix:null,iconName:null}}function et(){return Ge}Ze=function(e){Ge=nt(e.styleDefault,{family:ue.familyDefault})},de.push(Ze),Je();var tt=function(){return{prefix:null,iconName:null,rest:[]}};function nt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?$:t,r=W[n][e],i=V[n][e]||V[n][r],o=e in Re.styles?e:null;return i||o||null}var rt=(s(je={},$,Object.keys(Z[$])),s(je,Y,Object.keys(Z[Y])),je);function it(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,i=(s(t={},$,"".concat(ue.cssPrefix,"-").concat($)),s(t,Y,"".concat(ue.cssPrefix,"-").concat(Y)),t),o=null,a=$;(e.includes(i[$])||e.some((function(e){return rt[$].includes(e)})))&&(a=$),(e.includes(i[Y])||e.some((function(e){return rt[Y].includes(e)})))&&(a=Y);var l=e.reduce((function(e,t){var n=function(e,t){var n,r=t.split("-"),i=r[0],o=r.slice(1).join("-");return i!==e||""===o||(n=o,~ae.indexOf(n))?null:o}(ue.cssPrefix,t);if(Be[t]?(t=Fe[a].includes(t)?J[a][t]:t,o=t,e.prefix=t):Ve[a].indexOf(t)>-1?(o=t,e.prefix=nt(t,{family:a})):n?e.iconName=n:t!==ue.replacementClass&&t!==i[$]&&t!==i[Y]&&e.rest.push(t),!r&&e.prefix&&e.iconName){var s="fa"===o?Xe(e.iconName):{},l=Qe(e.prefix,e.iconName);s.prefix&&(o=null),e.iconName=s.iconName||l||e.iconName,e.prefix=s.prefix||e.prefix,"far"!==e.prefix||Be.far||!Be.fas||ue.autoFetchSvg||(e.prefix="fas")}return e}),tt());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),l.prefix||a!==Y||!Be.fass&&!ue.autoFetchSvg||(l.prefix="fass",l.iconName=Qe(l.prefix,l.iconName)||l.iconName),"fa"!==l.prefix&&"fa"!==o||(l.prefix=et()||"fas"),l}var ot=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n;return t=e,n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach((function(t){e.definitions[t]=i(i({},e.definitions[t]||{}),o[t]),Ue(t,o[t]);var n=Z[$][t];n&&Ue(n,o[t]),Je()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],i=r.prefix,o=r.iconName,a=r.icon,s=a[2];e[i]||(e[i]={}),s.length>0&&s.forEach((function(t){"string"==typeof t&&(e[i][t]=a)})),e[i][o]=a})),e}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),at=[],st={},lt={},ct=Object.keys(lt);function ut(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(st[e]||[]).forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function dt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(st[e]||[]).forEach((function(e){e.apply(null,n)}))}function ft(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return lt[e]?lt[e].apply(null,t):void 0}function pt(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||et();if(t)return t=Qe(n,t)||t,Ne(ht.definitions,n,t)||Ne(Re.styles,n,t)}var ht=new ot,mt={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return C?(dt("beforeI2svg",e),ft("pseudoElements2svg",e),ft("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===ue.autoReplaceSvg&&(ue.autoReplaceSvg=!0),ue.observeMutations=!0,e=function(){yt({autoReplaceSvgRoot:n}),dt("watch",t)},C&&(Oe?setTimeout(e,0):Ce.push(e))}},gt={noAuto:function(){ue.autoReplaceSvg=!1,ue.observeMutations=!1,dt("noAuto")},config:ue,dom:mt,parse:{icon:function(e){if(null===e)return null;if("object"===o(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Qe(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=nt(e[0]);return{prefix:n,iconName:Qe(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(ue.cssPrefix,"-"))>-1||e.match(K))){var r=it(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||et(),iconName:Qe(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var i=et();return{prefix:i,iconName:Qe(i,e)||e}}}},library:ht,findIconDefinition:pt,toHtml:De},yt=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?T:e;(Object.keys(Re.styles).length>0||ue.autoFetchSvg)&&C&&ue.autoReplaceSvg&&gt.dom.i2svg({node:t})};function _t(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return De(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(C){var t=T.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function vt(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,a=e.iconName,s=e.transform,l=e.symbol,c=e.title,u=e.maskId,d=e.titleId,f=e.extra,p=e.watchable,h=void 0!==p&&p,m=r.found?r:n,g=m.width,y=m.height,_="fak"===o,v=[ue.replacementClass,a?"".concat(ue.cssPrefix,"-").concat(a):""].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),b={children:[],attributes:i(i({},f.attributes),{},{"data-prefix":o,"data-icon":a,class:v,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(y)})},w=_&&!~f.classes.indexOf("fa-fw")?{width:"".concat(g/y*16*.0625,"em")}:{};h&&(b.attributes[P]=""),c&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(d||me())},children:[c]}),delete b.attributes.title);var k=i(i({},b),{},{prefix:o,iconName:a,main:n,mask:r,maskId:u,transform:s,symbol:l,styles:i(i({},w),f.styles)}),S=r.found&&n.found?ft("generateAbstractMask",k)||{children:[],attributes:{}}:ft("generateAbstractIcon",k)||{children:[],attributes:{}},E=S.children,T=S.attributes;return k.children=E,k.attributes=T,l?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,a=e.symbol,s=!0===a?"".concat(t,"-").concat(ue.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:i(i({},o),{},{id:s}),children:r}]}]}(k):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,a=e.styles,s=e.transform;if(be(s)&&n.found&&!r.found){var l={x:n.width/n.height/2,y:.5};o.style=ve(i(i({},a),{},{"transform-origin":"".concat(l.x+s.x/16,"em ").concat(l.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(k)}function bt(e){var t=e.content,n=e.width,r=e.height,o=e.transform,a=e.title,s=e.extra,l=e.watchable,c=void 0!==l&&l,u=i(i(i({},s.attributes),a?{title:a}:{}),{},{class:s.classes.join(" ")});c&&(u[P]="");var d=i({},s.styles);be(o)&&(d.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,i=e.height,o=void 0===i?16:i,a=e.startCentered,s=void 0!==a&&a,l="";return l+=s&&O?"translate(".concat(t.x/16-r/2,"em, ").concat(t.y/16-o/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/16,"em), calc(-50% + ").concat(t.y/16,"em)) "):"translate(".concat(t.x/16,"em, ").concat(t.y/16,"em) "),(l+="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:o,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);var f=ve(d);f.length>0&&(u.style=f);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),a&&p.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),p}var wt=Re.styles;function kt(e){var t=e[0],n=e[1],r=l(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(ue.cssPrefix,"-").concat(ie.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ue.cssPrefix,"-").concat(ie.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ue.cssPrefix,"-").concat(ie.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var St={found:!1,width:512,height:512};function Et(e,t){var n=t;return"fa"===t&&null!==ue.styleDefault&&(t=et()),new Promise((function(r,o){if(ft("missingIconAbstract"),"fa"===n){var a=Xe(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&wt[t]&&wt[t][e])return r(kt(wt[t][e]));!function(e,t){G||ue.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(i(i({},St),{},{icon:ue.showMissingIcons&&e&&ft("missingIconAbstract")||{}}))}))}var Tt=function(){},xt=ue.measurePerformance&&R&&R.mark&&R.measure?R:{mark:Tt,measure:Tt},Rt='FA "6.4.0"',Ct=function(e){xt.mark("".concat(Rt," ").concat(e," ends")),xt.measure("".concat(Rt," ").concat(e),"".concat(Rt," ").concat(e," begins"),"".concat(Rt," ").concat(e," ends"))},Ot={begin:function(e){return xt.mark("".concat(Rt," ").concat(e," begins")),function(){return Ct(e)}},end:Ct},Dt=function(){};function Nt(e){return"string"==typeof(e.getAttribute?e.getAttribute(P):null)}function It(e){return T.createElementNS("http://www.w3.org/2000/svg",e)}function At(e){return T.createElement(e)}function Pt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?It:At:t;if("string"==typeof e)return T.createTextNode(e);var r=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){r.appendChild(Pt(e,{ceFn:n}))})),r}var Ut={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(Pt(e),t)})),null===t.getAttribute(P)&&ue.keepOriginalSource){var n=T.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~ye(t).indexOf(ue.replacementClass))return Ut.replace(e);var r=new RegExp("".concat(ue.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce((function(e,t){return t===ue.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var o=n.map((function(e){return De(e)})).join("\n");t.setAttribute(P,""),t.innerHTML=o}};function Mt(e){e()}function Lt(e,t){var n="function"==typeof t?t:Dt;if(0===e.length)n();else{var r=Mt;ue.mutateApproach===z&&(r=E.requestAnimationFrame||Mt),r((function(){var t=!0===ue.autoReplaceSvg?Ut.replace:Ut[ue.autoReplaceSvg]||Ut.replace,r=Ot.begin("mutate");e.map(t),r(),n()}))}}var jt=!1;function Bt(){jt=!0}function zt(){jt=!1}var Ft=null;function Gt(e){if(x&&ue.observeMutations){var t=e.treeCallback,n=void 0===t?Dt:t,r=e.nodeCallback,i=void 0===r?Dt:r,o=e.pseudoElementsCallback,a=void 0===o?Dt:o,s=e.observeMutationsRoot,l=void 0===s?T:s;Ft=new x((function(e){if(!jt){var t=et();ge(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Nt(e.addedNodes[0])&&(ue.searchPseudoElements&&a(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&ue.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&Nt(e.target)&&~re.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(L):null,n=e.getAttribute?e.getAttribute(j):null;return t&&n}(e.target)){var r=it(ye(e.target)),o=r.prefix,s=r.iconName;e.target.setAttribute(L,o||t),s&&e.target.setAttribute(j,s)}else(l=e.target)&&l.classList&&l.classList.contains&&l.classList.contains(ue.replacementClass)&&i(e.target);var l}))}})),C&&Ft.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function $t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=function(e){var t,n,r=e.getAttribute("data-prefix"),i=e.getAttribute("data-icon"),o=void 0!==e.innerText?e.innerText.trim():"",a=it(ye(e));return a.prefix||(a.prefix=et()),r&&i&&(a.prefix=r,a.iconName=i),a.iconName&&a.prefix||(a.prefix&&o.length>0&&(a.iconName=(t=a.prefix,n=e.innerText,(Ye[t]||{})[n]||Ke(a.prefix,Ae(e.innerText)))),!a.iconName&&ue.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}(e),r=n.iconName,o=n.prefix,a=n.rest,s=function(e){var t=ge(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ue.autoA11y&&(n?t["aria-labelledby"]="".concat(ue.replacementClass,"-title-").concat(r||me()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),l=ut("parseNodeAttributes",{},e),c=t.styleParser?function(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}(e):[];return i({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:o,transform:pe,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:c,attributes:s}},l)}var Yt=Re.styles;function qt(e){var t="nest"===ue.autoReplaceSvg?$t(e,{styleParser:!1}):$t(e);return~t.extra.classes.indexOf(Q)?ft("generateLayersText",e,t):ft("generateSvgReplacementMutation",e,t)}var Ht=new Set;function Wt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!C)return Promise.resolve();var n=T.documentElement.classList,r=function(e){return n.add("".concat(B,"-").concat(e))},i=function(e){return n.remove("".concat(B,"-").concat(e))},o=ue.autoFetchSvg?Ht:q.map((function(e){return"fa-".concat(e)})).concat(Object.keys(Yt));o.includes("fa")||o.push("fa");var a=[".".concat(Q,":not([").concat(P,"])")].concat(o.map((function(e){return".".concat(e,":not([").concat(P,"])")}))).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=ge(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var l=Ot.begin("onTree"),c=s.reduce((function(e,t){try{var n=qt(t);n&&e.push(n)}catch(e){G||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise((function(e,n){Promise.all(c).then((function(n){Lt(n,(function(){r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((function(e){l(),n(e)}))}))}function Vt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;qt(e).then((function(e){e&&Lt([e],t)}))}q.map((function(e){Ht.add("fa-".concat(e))})),Object.keys(W[$]).map(Ht.add.bind(Ht)),Object.keys(W[Y]).map(Ht.add.bind(Ht)),Ht=c(Ht);var Zt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?pe:n,o=t.symbol,a=void 0!==o&&o,s=t.mask,l=void 0===s?null:s,c=t.maskId,u=void 0===c?null:c,d=t.title,f=void 0===d?null:d,p=t.titleId,h=void 0===p?null:p,m=t.classes,g=void 0===m?[]:m,y=t.attributes,_=void 0===y?{}:y,v=t.styles,b=void 0===v?{}:v;if(e){var w=e.prefix,k=e.iconName,S=e.icon;return _t(i({type:"icon"},e),(function(){return dt("beforeDOMElementCreation",{iconDefinition:e,params:t}),ue.autoA11y&&(f?_["aria-labelledby"]="".concat(ue.replacementClass,"-title-").concat(h||me()):(_["aria-hidden"]="true",_.focusable="false")),vt({icons:{main:kt(S),mask:l?kt(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:k,transform:i(i({},pe),r),symbol:a,title:f,maskId:u,titleId:h,extra:{attributes:_,styles:b,classes:g}})}))}},Jt={mixout:function(){return{icon:(e=Zt,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:pt(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:pt(o||{})),e(r,i(i({},n),{},{mask:o}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Wt,e.nodeCallback=Vt,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?T:t,r=e.callback;return Wt(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,o=t.prefix,a=t.transform,s=t.symbol,c=t.mask,u=t.maskId,d=t.extra;return new Promise((function(t,f){Promise.all([Et(n,o),c.iconName?Et(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(c){var f=l(c,2),p=f[0],h=f[1];t([e,vt({icons:{main:p,mask:h},prefix:o,iconName:n,transform:a,symbol:s,maskId:u,title:r,titleId:i,extra:d,watchable:!0})])})).catch(f)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.transform,a=ve(e.styles);return a.length>0&&(r.style=a),be(o)&&(t=ft("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},Kt={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return _t({type:"layer"},(function(){dt("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(ue.cssPrefix,"-layers")].concat(c(r)).join(" ")},children:n}]}))}}}},Qt={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,o=t.classes,a=void 0===o?[]:o,s=t.attributes,l=void 0===s?{}:s,u=t.styles,d=void 0===u?{}:u;return _t({type:"counter",content:e},(function(){return dt("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.title,r=e.extra,o=i(i(i({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=ve(r.styles);a.length>0&&(o.style=a);var s=[];return s.push({tag:"span",attributes:o,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}({content:e.toString(),title:r,extra:{attributes:l,styles:d,classes:["".concat(ue.cssPrefix,"-layers-counter")].concat(c(a))}})}))}}}},Xt={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?pe:n,o=t.title,a=void 0===o?null:o,s=t.classes,l=void 0===s?[]:s,u=t.attributes,d=void 0===u?{}:u,f=t.styles,p=void 0===f?{}:f;return _t({type:"text",content:e},(function(){return dt("beforeDOMElementCreation",{content:e,params:t}),bt({content:e,transform:i(i({},pe),r),title:a,extra:{attributes:d,styles:p,classes:["".concat(ue.cssPrefix,"-layers-text")].concat(c(l))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,o=null,a=null;if(O){var s=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();o=l.width/s,a=l.height/s}return ue.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,bt({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}},en=new RegExp('"',"ug"),tn=[1105920,1112319];function nn(e,t){var n="".concat(M).concat(t.replace(":","-"));return new Promise((function(r,o){if(null!==e.getAttribute(n))return r();var a,s,l,c=ge(e.children).filter((function(e){return e.getAttribute(U)===t}))[0],u=E.getComputedStyle(e,t),d=u.getPropertyValue("font-family").match(X),f=u.getPropertyValue("font-weight"),p=u.getPropertyValue("content");if(c&&!d)return e.removeChild(c),r();if(d&&"none"!==p&&""!==p){var h=u.getPropertyValue("content"),m=~["Sharp"].indexOf(d[2])?Y:$,g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(d[2])?V[m][d[2].toLowerCase()]:ee[m][f],y=function(e){var t,n,r,i,o=e.replace(en,""),a=(r=(t=o).length,(i=t.charCodeAt(0))>=55296&&i<=56319&&r>1&&(n=t.charCodeAt(1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i),s=a>=tn[0]&&a<=tn[1],l=2===o.length&&o[0]===o[1];return{value:Ae(l?o[0]:o),isSecondary:s||l}}(h),_=y.value,v=y.isSecondary,b=d[0].startsWith("FontAwesome"),w=Ke(g,_),k=w;if(b){var S=(s=He[a=_],l=Ke("fas",a),s||(l?{prefix:"fas",iconName:l}:null)||{prefix:null,iconName:null});S.iconName&&S.prefix&&(w=S.iconName,g=S.prefix)}if(!w||v||c&&c.getAttribute(L)===g&&c.getAttribute(j)===k)r();else{e.setAttribute(n,k),c&&e.removeChild(c);var x={iconName:null,title:null,titleId:null,prefix:null,transform:pe,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},R=x.extra;R.attributes[U]=t,Et(w,g).then((function(o){var a=vt(i(i({},x),{},{icons:{main:o,mask:tt()},prefix:g,iconName:k,extra:R,watchable:!0})),s=T.createElement("svg");"::before"===t?e.insertBefore(s,e.firstChild):e.appendChild(s),s.outerHTML=a.map((function(e){return De(e)})).join("\n"),e.removeAttribute(n),r()})).catch(o)}}else r()}))}function rn(e){return Promise.all([nn(e,"::before"),nn(e,"::after")])}function on(e){return!(e.parentNode===document.head||~F.indexOf(e.tagName.toUpperCase())||e.getAttribute(U)||e.parentNode&&"svg"===e.parentNode.tagName)}function an(e){if(C)return new Promise((function(t,n){var r=ge(e.querySelectorAll("*")).filter(on).map(rn),i=Ot.begin("searchPseudoElements");Bt(),Promise.all(r).then((function(){i(),zt(),t()})).catch((function(){i(),zt(),n()}))}))}var sn=!1,ln=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},cn={mixout:function(){return{parse:{transform:function(e){return ln(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=ln(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,o=e.iconWidth,a={transform:"translate(".concat(r/2," 256)")},s="translate(".concat(32*n.x,", ").concat(32*n.y,") "),l="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),c="rotate(".concat(n.rotate," 0 0)"),u={outer:a,inner:{transform:"".concat(s," ").concat(l," ").concat(c)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:i({},u.outer),children:[{tag:"g",attributes:i({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:i(i({},t.icon.attributes),u.path)}]}]}}}},un={x:0,y:0,width:"100%",height:"100%"};function dn(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var fn,pn={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?it(n.split(" ").map((function(e){return e.trim()}))):tt();return r.prefix||(r.prefix=et()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,o=e.main,a=e.mask,s=e.maskId,l=e.transform,c=o.width,u=o.icon,d=a.width,f=a.icon,p=function(e){var t=e.transform,n=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(i," ").concat(o," ").concat(a)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:l,containerWidth:d,iconWidth:c}),h={tag:"rect",attributes:i(i({},un),{},{fill:"white"})},m=u.children?{children:u.children.map(dn)}:{},g={tag:"g",attributes:i({},p.inner),children:[dn(i({tag:u.tag,attributes:i(i({},u.attributes),p.path)},m))]},y={tag:"g",attributes:i({},p.outer),children:[g]},_="mask-".concat(s||me()),v="clip-".concat(s||me()),b={tag:"mask",attributes:i(i({},un),{},{id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,y]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(t=f,"g"===t.tag?t.children:[t])},b]};return n.push(w,{tag:"rect",attributes:i({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(_,")")},un)}),{children:n,attributes:r}}}},hn={provides:function(e){var t=!1;E.matchMedia&&(t=E.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:i(i({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=i(i({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:i(i({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:i(i({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:i(i({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:i(i({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:i(i({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:i(i({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:i(i({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};fn=gt,at=[Te,Jt,Kt,Qt,Xt,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=an,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?T:t;ue.searchPseudoElements&&an(n)}}},{mixout:function(){return{dom:{unwatch:function(){Bt(),sn=!0}}}},hooks:function(){return{bootstrap:function(){Gt(ut("mutationObserverCallbacks",{}))},noAuto:function(){Ft&&Ft.disconnect()},watch:function(e){var t=e.observeMutationsRoot;sn?zt():Gt(ut("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},cn,pn,hn,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}],st={},Object.keys(lt).forEach((function(e){-1===ct.indexOf(e)&&delete lt[e]})),at.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"==typeof t[e]&&(fn[e]=t[e]),"object"===o(t[e])&&Object.keys(t[e]).forEach((function(n){fn[e]||(fn[e]={}),fn[e][n]=t[e][n]}))})),e.hooks){var n=e.hooks();Object.keys(n).forEach((function(e){st[e]||(st[e]=[]),st[e].push(n[e])}))}e.provides&&e.provides(lt)}));var mn=gt.parse,gn=gt.icon,yn=n(5697),_n=n.n(yn),vn=n(7294);function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(n),!0).forEach((function(t){Sn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kn(e){return kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kn(e)}function Sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function En(e){return function(e){if(Array.isArray(e))return Tn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Tn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xn(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Rn=["style"],Cn=!1;try{Cn=!0}catch(e){}function On(e){return e&&"object"===kn(e)&&e.prefix&&e.iconName&&e.icon?e:mn.icon?mn.icon(e):null===e?null:e&&"object"===kn(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Dn(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Sn({},e,t):{}}var Nn=vn.forwardRef((function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,a=e.title,s=e.titleId,l=e.maskId,c=On(n),u=Dn("classes",[].concat(En(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,d=e.pulse,f=e.fixedWidth,p=e.inverse,h=e.border,m=e.listItem,g=e.flip,y=e.size,_=e.rotation,v=e.pull,b=(Sn(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":d,"fa-fw":f,"fa-inverse":p,"fa-border":h,"fa-li":m,"fa-flip":!0===g,"fa-flip-horizontal":"horizontal"===g||"both"===g,"fa-flip-vertical":"vertical"===g||"both"===g},"fa-".concat(y),null!=y),Sn(t,"fa-rotate-".concat(_),null!=_&&0!==_),Sn(t,"fa-pull-".concat(v),null!=v),Sn(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(b).map((function(e){return b[e]?e:null})).filter((function(e){return e}))}(e)),En(o.split(" ")))),d=Dn("transform","string"==typeof e.transform?mn.transform(e.transform):e.transform),f=Dn("mask",On(r)),p=gn(c,wn(wn(wn(wn({},u),d),f),{},{symbol:i,title:a,titleId:s,maskId:l}));if(!p)return function(){var e;!Cn&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",c),null;var h=p.abstract,m={ref:t};return Object.keys(e).forEach((function(t){Nn.defaultProps.hasOwnProperty(t)||(m[t]=e[t])})),In(h[0],m)}));Nn.displayName="FontAwesomeIcon",Nn.propTypes={beat:_n().bool,border:_n().bool,beatFade:_n().bool,bounce:_n().bool,className:_n().string,fade:_n().bool,flash:_n().bool,mask:_n().oneOfType([_n().object,_n().array,_n().string]),maskId:_n().string,fixedWidth:_n().bool,inverse:_n().bool,flip:_n().oneOf([!0,!1,"horizontal","vertical","both"]),icon:_n().oneOfType([_n().object,_n().array,_n().string]),listItem:_n().bool,pull:_n().oneOf(["right","left"]),pulse:_n().bool,rotation:_n().oneOf([0,90,180,270]),shake:_n().bool,size:_n().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:_n().bool,spinPulse:_n().bool,spinReverse:_n().bool,symbol:_n().oneOfType([_n().bool,_n().string]),title:_n().string,titleId:_n().string,transform:_n().oneOfType([_n().string,_n().object]),swapOpacity:_n().bool},Nn.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var In=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),o=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=xn(t.slice(0,r)),o=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=o:e[i]=o,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[xn(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(r,Rn);return o.attrs.style=wn(wn({},o.attrs.style),s),t.apply(void 0,[n.tag,wn(wn({},o.attrs),l)].concat(En(i)))}.bind(null,vn.createElement)},9553:(e,t,n)=>{"use strict";n.d(t,{N:()=>U,gE:()=>L});var r=n(5544),i=n(6890),o=n(7638),a=n(9791),s=n(2343),l=n(9181),c=n(8464);const u=n(1235).n2;var d=n(1170);const f=(e,t,n)=>{let r,i;return o=>{t.value>=0&&(o||n)&&(i=t.value-(r||0),(i||void 0===r)&&(r=t.value,t.delta=i,e(t)))}},p=()=>u.__WEB_VITALS_POLYFILL__?u.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=u.performance.timing,t=u.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):u.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],h=()=>{const e=p();return e&&e.activationStart||0},m=(e,t)=>{const n=p();let r="navigate";return n&&(r=u.document.prerendering||h()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},g=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},y=(e,t)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==u.document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)};let v=-1;const b=()=>(v<0&&(v="hidden"!==u.document.visibilityState||u.document.prerendering?1/0:0,y((({timeStamp:e})=>{v=e}),!0)),{get firstHiddenTime(){return v}}),k={};function E(e){return"number"==typeof e&&isFinite(e)}function T(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function x(e){return e/1e3}function R(){return u&&u.addEventListener&&u.performance}let C,O,D=0,N={};function I(e,t,n,r,i,o){const a=o?t[o]:t[`${n}End`],s=t[`${n}Start`];s&&a&&T(e,{op:"browser",description:i||n,startTimestamp:r+x(s),endTimestamp:r+x(a)})}var A=n(516),P=n(2533);const U="BrowserTracing",M={...r.AT,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!u||!u.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("Could not initialize routing instrumentation due to invalid location"));let r,i=u.location.href;t&&(r=e({name:u.location.pathname,startTimestamp:d.Z1?d.Z1/1e3:void 0,op:"pageload",metadata:{source:"url"}})),n&&(0,P.oq)("history",(({to:t,from:n})=>{void 0===n&&i&&-1!==i.indexOf(t)?i=void 0:n!==t&&(i=void 0,r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.finish()),r=e({name:u.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,...A.k3};class L{__init(){this.name=U}__init2(){this._hasSetTracePropagationTargets=!1}constructor(e){L.prototype.__init.call(this),L.prototype.__init2.call(this),(0,i.T)(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options={...M,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=function(){const e=R();if(e&&d.Z1){e.mark&&u.performance.mark("sentry-tracing-init"),(e=>{const t=b(),n=m("FID");let r;const i=e=>{e.startTime<t.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),r(!0))},o=e=>{e.forEach(i)},a=g("first-input",o);r=f(e,n),a&&y((()=>{o(a.takeRecords()),a.disconnect()}),!0)})((e=>{const t=e.entries.pop();if(!t)return;const n=x(d.Z1),r=x(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding FID"),N.fid={value:e.value,unit:"millisecond"},N["mark.fid"]={value:n+r,unit:"second"}}));const t=(e=>{const t=m("CLS",0);let n,r=0,i=[];const o=e=>{e.forEach((e=>{if(!e.hadRecentInput){const o=i[0],a=i[i.length-1];r&&0!==i.length&&e.startTime-a.startTime<1e3&&e.startTime-o.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]),r>t.value&&(t.value=r,t.entries=i,n&&n())}}))},a=g("layout-shift",o);if(a){n=f(e,t);const r=()=>{o(a.takeRecords()),n(!0)};return y(r),r}})((e=>{const t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding CLS"),N.cls={value:e.value,unit:""},O=t)})),n=(e=>{const t=b(),n=m("LCP");let r;const i=e=>{const i=e[e.length-1];if(i){const e=Math.max(i.startTime-h(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[i],r())}},o=g("largest-contentful-paint",i);if(o){r=f(e,n);const t=()=>{k[n.id]||(i(o.takeRecords()),o.disconnect(),k[n.id]=!0,r(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),y(t,!0),t}})((e=>{const t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding LCP"),N.lcp={value:e.value,unit:"millisecond"},C=t)}));return()=>{t&&t(),n&&n()}}return()=>{}}(),this.options.enableLongTask&&g("longtask",(e=>{for(const t of e){const e=(0,a.x1)();if(!e)return;const n=x(d.Z1+t.startTime),r=x(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:n,endTimestamp:n+r})}})),this.options._experiments.enableInteractions&&g("event",(e=>{for(const t of e){const e=(0,a.x1)();if(!e)return;if("click"===t.name){const n=x(d.Z1+t.startTime),r=x(t.duration);e.startChild({description:(0,c.Rt)(t.target),op:`ui.interaction.${t.name}`,startTimestamp:n,endTimestamp:n+r})}}}),{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;const n=t().getClient(),r=n&&n.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:c,traceFetch:d,traceXHR:f,shouldCreateSpanForRequest:p,_experiments:h}=this.options,m=r&&r.tracePropagationTargets,g=m||this.options.tracePropagationTargets;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&m&&s.kg.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i((e=>{const n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n}),l,o),c&&(u&&u.document?u.document.addEventListener("visibilitychange",(()=>{const e=(0,a.x1)();if(u.document.hidden&&e){const t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),h.enableInteractions&&this._registerInteractionListener(),(0,A.L7)({traceFetch:d,traceXHR:f,tracePropagationTargets:g,shouldCreateSpanForRequest:p,_experiments:{enableHTTPTimings:h.enableHTTPTimings}})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));const{beforeNavigate:t,idleTimeout:n,finalTimeout:r,heartbeatInterval:a}=this.options,f="pageload"===e.op,p=f?j("sentry-trace"):null,h=f?j("baggage"):null,m=p?(0,o.q)(p):void 0,g=h?(0,l.EN)(h):void 0,y={...e,...m,metadata:{...e.metadata,dynamicSamplingContext:m&&!g?{}:g},trimEnd:!0},_="function"==typeof t?t(y):y,v=void 0===_?{...y,sampled:!1}:_;v.metadata=v.name!==y.name?{...v.metadata,source:"custom"}:v.metadata,this._latestRouteName=v.name,this._latestRouteSource=v.metadata&&v.metadata.source,!1===v.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`[Tracing] Will not send ${v.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`[Tracing] Starting ${v.op} transaction on scope`);const w=this._getCurrentHub(),{location:k}=u,S=(0,i.l)(w,v,n,r,!0,{location:k},a);return S.registerBeforeFinishCallback((e=>{this._collectWebVitals(),function(e){const t=R();if(!t||!u.performance.getEntries||!d.Z1)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Adding & adjusting spans using Performance API");const n=x(d.Z1),r=t.getEntries();let i,o;if(r.slice(D).forEach((t=>{const r=x(t.startTime),a=x(t.duration);if(!("navigation"===e.op&&n+r<e.startTimestamp))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{I(e,t,r,n)})),I(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),I(e,t,"fetch",n,"cache","domainLookupStart"),I(e,t,"domainLookup",n,"DNS"),function(e,t,n){T(e,{op:"browser",description:"request",startTimestamp:n+x(t.requestStart),endTimestamp:n+x(t.responseEnd)}),T(e,{op:"browser",description:"response",startTimestamp:n+x(t.responseStart),endTimestamp:n+x(t.responseEnd)})}(e,t,n)}(e,t,n),i=n+x(t.responseStart),o=n+x(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i){const o=i+n,a=o+r;T(e,{description:t.name,endTimestamp:a,op:t.entryType,startTimestamp:o})}(e,t,r,a,n);const i=b(),o=t.startTime<i.firstHiddenTime;"first-paint"===t.name&&o&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding FP"),N.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&o&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding FCP"),N.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":{const i=t.name.replace(u.location.origin,"");!function(e,t,n,r,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const a={};"transferSize"in t&&(a["http.response_transfer_size"]=t.transferSize),"encodedBodySize"in t&&(a["http.response_content_length"]=t.encodedBodySize),"decodedBodySize"in t&&(a["http.decoded_response_content_length"]=t.decodedBodySize),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus);const s=o+r;T(e,{description:n,endTimestamp:s+i,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",startTimestamp:s,data:a})}(e,t,i,r,a,n);break}}})),D=Math.max(r.length-1,0),function(e){const t=u.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),E(n.rtt)&&(N["connection.rtt"]={value:n.rtt,unit:"millisecond"})),E(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),E(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op){"number"==typeof i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding TTFB"),N.ttfb={value:1e3*(i-e.startTimestamp),unit:"millisecond"},"number"==typeof o&&o<=i&&(N["ttfb.requestTime"]={value:1e3*(i-o),unit:"millisecond"})),["fcp","fp","lcp"].forEach((t=>{if(!N[t]||n>=e.startTimestamp)return;const r=N[t].value,i=n+x(r),o=Math.abs(1e3*(i-e.startTimestamp)),a=o-r;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`[Measurements] Normalized ${t} from ${r} to ${o} (${a})`),N[t].value=o}));const t=N["mark.fid"];t&&N.fid&&(T(e,{description:"first input delay",endTimestamp:t.value+x(N.fid.value),op:"ui.action",startTimestamp:t.value}),delete N["mark.fid"]),"fcp"in N||delete N.cls,Object.keys(N).forEach((t=>{e.setMeasurement(t,N[t].value,N[t].unit)})),function(e){C&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding LCP Data"),C.element&&e.setTag("lcp.element",(0,c.Rt)(C.element)),C.id&&e.setTag("lcp.id",C.id),C.url&&e.setTag("lcp.url",C.url.trim().slice(0,200)),e.setTag("lcp.size",C.size)),O&&O.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding CLS Data"),O.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,(0,c.Rt)(t.node)))))}(e)}C=void 0,O=void 0,N={}}(e)})),S}_registerInteractionListener(){let e;const t=()=>{const{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,o="ui.action.click",l=(0,a.x1)();if(l&&l.op&&["navigation","pageload"].includes(l.op))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn(`[Tracing] Did not create ${o} transaction because a pageload or navigation transaction is in progress.`));if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn(`[Tracing] Did not create ${o} transaction because _getCurrentHub is invalid.`));if(!this._latestRouteName)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`));const c=this._getCurrentHub(),{location:d}=u,f={name:this._latestRouteName,op:o,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=(0,i.l)(c,f,t,n,!0,{location:d},r)};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}}function j(e){const t=(0,c.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):null}},516:(e,t,n)=>{"use strict";n.d(t,{L7:()=>p,k3:()=>f});var r=n(4307),i=n(7522),o=n(5659),a=n(2533),s=n(1170),l=n(7321),c=n(9181),u=n(7597);const d=["localhost",/^\/(?!\/)/],f={traceFetch:!0,traceXHR:!0,tracingOrigins:d,tracePropagationTargets:d,_experiments:{}};function p(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:s,tracingOrigins:p,shouldCreateSpanForRequest:m,_experiments:g}={traceFetch:f.traceFetch,traceXHR:f.traceXHR,...e},y="function"==typeof m?m:e=>!0,_=e=>function(e,t){return(0,l.U0)(e,t||d)}(e,s||p),v={};t&&(0,a.oq)("fetch",(e=>{const t=function(e,t,n,r){if(!(0,i.z)()||!e.fetchData||!t(e.fetchData.url))return;if(e.endTimestamp){const t=e.fetchData.__span;if(!t)return;const n=r[t];if(n){if(e.response){n.setHttpStatus(e.response.status);const t=e.response&&e.response.headers&&e.response.headers.get("content-length"),r=parseInt(t);r>0&&n.setData("http.response_content_length",r)}else e.error&&n.setStatus("internal_error");n.finish(),delete r[t]}return}const a=(0,o.Gd)().getScope().getSpan(),s=a&&a.transaction;if(a&&s){const{method:t,url:i}=e.fetchData,o=a.startChild({data:{url:i,type:"fetch","http.method":t},description:`${t} ${i}`,op:"http.client"});e.fetchData.__span=o.spanId,r[o.spanId]=o;const l=e.args[0];e.args[1]=e.args[1]||{};const d=e.args[1];return n(e.fetchData.url)&&(d.headers=function(e,t,n,r){const i=(0,c.IQ)(t),o=n.toTraceparent(),a="undefined"!=typeof Request&&(0,u.V9)(e,Request)?e.headers:r.headers;if(a){if("undefined"!=typeof Headers&&(0,u.V9)(a,Headers)){const e=new Headers(a);return e.append("sentry-trace",o),i&&e.append(c.bU,i),e}if(Array.isArray(a)){const e=[...a,["sentry-trace",o]];return i&&e.push([c.bU,i]),e}{const e="baggage"in a?a.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),i&&t.push(i),{...a,"sentry-trace":o,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":o,baggage:i}}(l,s.getDynamicSamplingContext(),o,d)),o}}(e,y,_,v);(0,r.x)([g,"optionalAccess",e=>e.enableHTTPTimings])&&t&&h(t)})),n&&(0,a.oq)("xhr",(e=>{const t=function(e,t,n,r){const s=e.xhr,l=s&&s[a.xU];if(!(0,i.z)()||s&&s.__sentry_own_request__||!(s&&l&&t(l.url)))return;if(e.endTimestamp){const e=s.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&(t.setHttpStatus(l.status_code),t.finish(),delete r[e]))}const u=(0,o.Gd)().getScope().getSpan(),d=u&&u.transaction;if(u&&d){const e=u.startChild({data:{...l.data,type:"xhr","http.method":l.method,url:l.url},description:`${l.method} ${l.url}`,op:"http.client"});if(s.__sentry_xhr_span_id__=e.spanId,r[s.__sentry_xhr_span_id__]=e,s.setRequestHeader&&n(l.url))try{s.setRequestHeader("sentry-trace",e.toTraceparent());const t=d.getDynamicSamplingContext(),n=(0,c.IQ)(t);n&&s.setRequestHeader(c.bU,n)}catch(e){}return e}}(e,y,_,v);(0,r.x)([g,"optionalAccess",e=>e.enableHTTPTimings])&&t&&h(t)}))}function h(e){const t=e.data.url,n=new PerformanceObserver((r=>{r.getEntries().forEach((r=>{"fetch"!==r.initiatorType&&"xmlhttprequest"!==r.initiatorType||!r.name.endsWith(t)||(function(e){const t=e.nextHopProtocol.split("/")[1]||"none",n=[];return t&&n.push(["network.protocol.version",t]),s.Z1?[...n,["http.request.connect_start",(s.Z1+e.connectStart)/1e3],["http.request.request_start",(s.Z1+e.requestStart)/1e3],["http.request.response_start",(s.Z1+e.responseStart)/1e3]]:n}(r).forEach((t=>e.setData(...t))),n.disconnect())}))}));n.observe({entryTypes:["resource"]})}},758:(e,t,n)=>{"use strict";n.d(t,{r:()=>a});var r=n(5659),i=n(6890),o=n(1422);function a(){(0,i.T)(),(0,o.KV)()&&function(){const t=(0,r.cu)();if(!t.__SENTRY__)return;const n={mongodb:()=>new((0,o.l$)(e,"./node/integrations/mongo").Mongo),mongoose:()=>new((0,o.l$)(e,"./node/integrations/mongo").Mongo),mysql:()=>new((0,o.l$)(e,"./node/integrations/mysql").Mysql),pg:()=>new((0,o.l$)(e,"./node/integrations/postgres").Postgres)},i=Object.keys(n).filter((e=>!!(0,o.$y)(e))).map((e=>{try{return n[e]()}catch(e){return}})).filter((e=>e));i.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...i])}()}e=n.hmd(e)},1131:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});const r="production"},5659:(e,t,n)=>{"use strict";n.d(t,{Gd:()=>m,Xb:()=>f,cu:()=>p,pj:()=>h,vi:()=>g});var r=n(2844),i=n(1170),o=n(2343),a=n(1235),s=n(1131),l=n(350),c=n(9015);const u=4,d=100;class f{constructor(e,t=new l.s,n=u){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=l.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){const t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:(0,r.DM)(),i=new Error("Sentry syntheticException");return this._withClient(((r,o)=>{r.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},o)})),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:(0,r.DM)(),o=new Error(e);return this._withClient(((r,a)=>{r.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:i},a)})),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,r.DM)();return e.type||(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=d}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const l={timestamp:(0,i.yW)(),...e},c=a?(0,o.Cf)((()=>a(l,t))):l;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,t),n.addBreadcrumb(c,s))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=h(this);try{e(this)}finally{h(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||n||console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&(0,c.RJ)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=s.J}=n&&n.getOptions()||{},{userAgent:o}=a.n2.navigator||{},l=(0,c.Hv)({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),u=t.getSession&&t.getSession();return u&&"ok"===u.status&&(0,c.CT)(u,{status:"exited"}),this.endSession(),t.setSession(l),l}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=p().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function p(){return a.n2.__SENTRY__=a.n2.__SENTRY__||{extensions:{},hub:void 0},a.n2}function h(e){const t=p(),n=g(t);return y(t,e),n}function m(){const e=p();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=p()){return!!((t=e)&&t.__SENTRY__&&t.__SENTRY__.hub)&&!g(e).isOlderThan(u)||y(e,new f),g(e);var t}(e)}function g(e){return(0,a.YO)("hub",(()=>new f),e)}function y(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},350:(e,t,n)=>{"use strict";n.d(t,{c:()=>f,s:()=>u});var r=n(7597),i=n(1170),o=n(6893),a=n(2343),s=n(2844),l=n(1235),c=n(9015);class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){const t=new u;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,c.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof u?t:this}return e instanceof u?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,r.PO)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,i.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const n=t.name;n&&(e.tags={transaction:n,...e.tags})}}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...d(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,i=0){return new o.cW(((o,s)=>{const l=e[i];if(null===t||"function"!=typeof l)o(t);else{const c=l({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.id&&null===c&&a.kg.log(`Event processor "${l.id}" dropped event`),(0,r.J8)(c)?c.then((t=>this._notifyEventProcessors(e,t,n,i+1).then(o))).then(null,s):this._notifyEventProcessors(e,c,n,i+1).then(o).then(null,s)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,s.lE)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function d(){return(0,l.YO)("globalEventProcessors",(()=>[]))}function f(e){d().push(e)}},9015:(e,t,n)=>{"use strict";n.d(t,{CT:()=>s,Hv:()=>a,RJ:()=>l});var r=n(1170),i=n(2844),o=n(535);function a(e){const t=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,o.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&s(n,e),n}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,r.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},6890:(e,t,n)=>{"use strict";n.d(t,{T:()=>y,l:()=>g});var r=n(2343),i=n(7597),o=n(5659),a=n(7522),s=n(2533),l=n(9791);let c=!1;function u(){const e=(0,l.x1)();if(e){const t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}u.tag="sentry_tracingErrorCallback";var d=n(5544),f=n(8069);function p(){const e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function h(e,t,n){if(!(0,a.z)(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let o;return"function"==typeof t.tracesSampler?(o=t.tracesSampler(n),e.setMetadata({sampleRate:Number(o)})):void 0!==n.parentSampled?o=n.parentSampled:void 0!==t.tracesSampleRate?(o=t.tracesSampleRate,e.setMetadata({sampleRate:Number(o)})):(o=1,e.setMetadata({sampleRate:o})),s=o,((0,i.i2)(s)||"number"!=typeof s&&"boolean"!=typeof s?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(s)} of type ${JSON.stringify(typeof s)}.`),0):!(s<0||s>1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${s}.`),0))?o?(e.sampled=Math.random()<o,e.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),e)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e);var s}function m(e,t){const n=this.getClient(),i=n&&n.getOptions()||{},o=i.instrumenter||"sentry",a=e.instrumenter||"sentry";o!==a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${o}\` instrumenter.\nThe transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),e.sampled=!1);let s=new f.Y(e,this);return s=h(s,i,{parentSampled:e.parentSampled,transactionContext:e,...t}),s.sampled&&s.initSpanRecorder(i._experiments&&i._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function g(e,t,n,r,i,o,a){const s=e.getClient(),l=s&&s.getOptions()||{};let c=new d.io(t,e,n,r,a,i);return c=h(c,l,{parentSampled:t.parentSampled,transactionContext:t,...o}),c.sampled&&c.initSpanRecorder(l._experiments&&l._experiments.maxSpans),s&&s.emit&&s.emit("startTransaction",c),c}function y(){const e=(0,o.cu)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=m),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=p),c||(c=!0,(0,s.oq)("error",u),(0,s.oq)("unhandledrejection",u)))}},5544:(e,t,n)=>{"use strict";n.d(t,{AT:()=>s,io:()=>u});var r=n(1170),i=n(2343),o=n(8903),a=n(8069);const s={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},l=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class c extends o.gB{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:(0,r.ph)(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class u extends a.Y{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._idleTimeoutCanceledPermanently=!1}__init5(){this._beforeFinishCallbacks=[]}__init6(){this._finishReason=l[4]}constructor(e,t,n=s.idleTimeout,r=s.finalTimeout,o=s.heartbeatInterval,a=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=o,this._onScope=a,u.prototype.__init.call(this),u.prototype.__init2.call(this),u.prototype.__init3.call(this),u.prototype.__init4.call(this),u.prototype.__init5.call(this),u.prototype.__init6.call(this),a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope((e=>e.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=l[3],this.finish())}),this._finalTimeout)}finish(e=(0,r.ph)()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);for(const t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));const n=t.startTimestamp<e;return n||("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(t,void 0,2)),n})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new c(t,n,this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=l[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=l[1],this.finish(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=(0,r.ph)();this._idleTimeoutCanceledPermanently?(this._finishReason=l[5],this.finish(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=l[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}},8903:(e,t,n)=>{"use strict";n.d(t,{Dr:()=>l,Zd:()=>c,gB:()=>s});var r=n(2844),i=n(1170),o=n(2343),a=n(535);class s{__init(){this.spans=[]}constructor(e=1e3){s.prototype.__init.call(this),this._maxlen=e}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class l{__init2(){this.traceId=(0,r.DM)()}__init3(){this.spanId=(0,r.DM)().substring(16)}__init4(){this.startTimestamp=(0,i.ph)()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(e){if(l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),l.prototype.__init5.call(this),l.prototype.__init6.call(this),l.prototype.__init7.call(this),!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp),e.instrumenter&&(this.instrumenter=e.instrumenter)}startChild(e){const t=new l({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){const n=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${t.transaction.name||"< unknown name >"}' (${t.transaction.spanId}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:n},o.kg.log(n)}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);const t=c(e);return"unknown_error"!==t&&this.setStatus(t),this}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&o.kg.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:(0,i.ph)()}toTraceparent(){let e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${e}`}toContext(){return(0,a.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}function c(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}},1250:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var r=n(7597),i=n(5659),o=n(7522);function a(e,t,n=()=>{}){const a={...e};void 0!==a.name&&void 0===a.description&&(a.description=a.name);const s=(0,i.Gd)(),l=s.getScope(),c=l.getSpan(),u=function(){if((0,o.z)())return c?c.startChild(a):s.startTransaction(a)}();function d(){u&&u.finish(),s.getScope().setSpan(c)}let f;l.setSpan(u);try{f=t(u)}catch(e){throw u&&u.setStatus("internal_error"),n(e),d(),e}return(0,r.J8)(f)?Promise.resolve(f).then((()=>{d()}),(e=>{u&&u.setStatus("internal_error"),n(e),d()})):d(),f}},8069:(e,t,n)=>{"use strict";n.d(t,{Y:()=>l});var r=n(2343),i=n(535),o=n(1131),a=n(5659),s=n(8903);class l extends s.Dr{__init(){this._measurements={}}__init2(){this._contexts={}}__init3(){this._frozenDynamicSamplingContext=void 0}constructor(e,t){super(e),l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),this._hub=t||(0,a.Gd)(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new s.gB(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);const i=this.metadata,o={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:this.getDynamicSamplingContext()},...i.source&&{transaction_info:{source:i.source}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),o.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(o)}toContext(){const e=super.toContext();return(0,i.Jr)({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const e=this._hub||(0,a.Gd)(),t=e&&e.getClient();if(!t)return{};const{environment:n,release:r}=t.getOptions()||{},{publicKey:s}=t.getDsn()||{},l=this.metadata.sampleRate,c=void 0!==l?l.toString():void 0,{segment:u}=e.getScope().getUser()||{},d=this.metadata.source,f=d&&"url"!==d?this.name:void 0,p=(0,i.Jr)({environment:n||o.J,release:r,transaction:f,user_segment:u,public_key:s,trace_id:this.traceId,sample_rate:c});return t.emit&&t.emit("createDsc",p),p}setHub(e){this._hub=e}}},9791:(e,t,n)=>{"use strict";n.d(t,{x1:()=>i});var r=n(5659);function i(e){return(e||(0,r.Gd)()).getScope().getTransaction()}},7522:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(5659);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=(0,r.Gd)().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}},2427:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Breadcrumbs:()=>We,BrowserClient:()=>Xe,BrowserProfilingIntegration:()=>Zo,BrowserTracing:()=>_o.gE,Dedupe:()=>Lt,ErrorBoundary:()=>pa,FunctionToString:()=>s,GlobalHandlers:()=>kt,HttpContext:()=>Mt,Hub:()=>m.Xb,InboundFilters:()=>p,Integrations:()=>Ko,LinkedErrors:()=>Pt,Profiler:()=>aa,Replay:()=>go,SDK_VERSION:()=>g,Scope:()=>y.s,TryCatch:()=>Ot,WINDOW:()=>he,addBreadcrumb:()=>k,addGlobalEventProcessor:()=>y.c,addTracingExtensions:()=>N.T,captureEvent:()=>b,captureException:()=>_,captureMessage:()=>v,captureUserFeedback:()=>Kt,chromeStackLineParser:()=>ct,close:()=>Vt,configureScope:()=>w,createReduxEnhancer:()=>_a,createTransport:()=>re,createUserFeedbackEnvelope:()=>Qe,defaultIntegrations:()=>Gt,defaultRequestInstrumentationOptions:()=>vo.k3,defaultStackLineParsers:()=>vt,defaultStackParser:()=>bt,eventFromException:()=>Me,eventFromMessage:()=>Le,extractTraceparentData:()=>oe.q,flush:()=>Wt,forceLoad:()=>qt,geckoStackLineParser:()=>ft,getActiveTransaction:()=>ae.x1,getCurrentHub:()=>m.Gd,getHubFromCarrier:()=>m.vi,init:()=>Qo,instrumentOutgoingRequests:()=>vo.L7,lastEventId:()=>Yt,makeBrowserOfflineTransport:()=>Co,makeFetchTransport:()=>nt,makeMain:()=>m.pj,makeMultiplexedTransport:()=>ue,makeXHRTransport:()=>it,onLoad:()=>Ht,onProfilingStartRouteTransaction:()=>Wo,opera10StackLineParser:()=>gt,opera11StackLineParser:()=>_t,reactRouterV3Instrumentation:()=>va,reactRouterV4Instrumentation:()=>Sa,reactRouterV5Instrumentation:()=>Ea,reactRouterV6Instrumentation:()=>ja,setContext:()=>S,setExtra:()=>T,setExtras:()=>E,setTag:()=>R,setTags:()=>x,setUser:()=>C,showReportDialog:()=>$t,spanStatusfromHttpCode:()=>de.Zd,startTransaction:()=>D,trace:()=>fe.g,useProfiler:()=>la,winjsStackLineParser:()=>ht,withErrorBoundary:()=>ha,withProfiler:()=>sa,withScope:()=>O,withSentryReactRouterV6Routing:()=>Ga,withSentryRouting:()=>Ra,wrap:()=>Zt,wrapCreateBrowserRouter:()=>Ya,wrapUseRoutes:()=>$a});var r={};n.r(r),n.d(r,{FunctionToString:()=>s,InboundFilters:()=>p});var i={};n.r(i),n.d(i,{Breadcrumbs:()=>We,Dedupe:()=>Lt,GlobalHandlers:()=>kt,HttpContext:()=>Mt,LinkedErrors:()=>Pt,TryCatch:()=>Ot});var o=n(535);let a;class s{constructor(){s.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=s.id}setupOnce(){a=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,o.HK)(this)||this;return a.apply(t,e)}}catch(e){}}}s.__initStatic();var l=n(2343),c=n(2844),u=n(7321);const d=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],f=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class p{static __initStatic(){this.id="InboundFilters"}__init(){this.name=p.id}constructor(e={}){this._options=e,p.prototype.__init.call(this)}setupOnce(e,t){const n=e=>{const n=t();if(n){const t=n.getIntegration(p);if(t){const r=n.getClient(),i=r?r.getOptions():{},o=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:d],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:f],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,i);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,c.jH)(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception){const{values:t}=e.exception;try{const{type:e="",value:n=""}=t&&t[t.length-1]||{};return[`${n}`,`${e}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error(`Cannot extract message for event ${(0,c.jH)(e)}`),[]}}return[]}(e).some((e=>(0,u.U0)(e,t)))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,c.jH)(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&(0,u.U0)(n,t)}(e,t.ignoreTransactions)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,c.jH)(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=h(e);return!!n&&(0,u.U0)(n,t)}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,c.jH)(e)}.\nUrl: ${h(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=h(e);return!n||(0,u.U0)(n,t)}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,c.jH)(e)}.\nUrl: ${h(e)}`),!0)}(e,o)?null:e}}return e};n.id=this.name,e(n)}}function h(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error(`Cannot extract url for event ${(0,c.jH)(e)}`),null}}p.__initStatic();var m=n(5659);const g="7.57.0";var y=n(350);function _(e,t){return(0,m.Gd)().captureException(e,{captureContext:t})}function v(e,t){const n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return(0,m.Gd)().captureMessage(e,n,r)}function b(e,t){return(0,m.Gd)().captureEvent(e,t)}function w(e){(0,m.Gd)().configureScope(e)}function k(e){(0,m.Gd)().addBreadcrumb(e)}function S(e,t){(0,m.Gd)().setContext(e,t)}function E(e){(0,m.Gd)().setExtras(e)}function T(e,t){(0,m.Gd)().setExtra(e,t)}function x(e){(0,m.Gd)().setTags(e)}function R(e,t){(0,m.Gd)().setTag(e,t)}function C(e){(0,m.Gd)().setUser(e)}function O(e){(0,m.Gd)().withScope(e)}function D(e,t){return(0,m.Gd)().startTransaction({...e},t)}var N=n(6890);class I extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}var A=n(6893);const P=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function U(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function M(e){const t=P.exec(e);if(!t)return void console.error(`Invalid Sentry Dsn: ${e}`);const[n,r,i="",o,a="",s]=t.slice(1);let l="",c=s;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return L({host:o,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}function L(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function j(e){const t="string"==typeof e?M(e):L(e);if(t&&function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(l.kg.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(l.kg.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(l.kg.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(l.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}var B=n(7597),z=n(360);function F(e,t=100,n=1/0){try{return $("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function G(e,t=3,n=102400){const r=F(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?G(e,t-1,n):r;var i}function $(e,t,r=1/0,i=1/0,a=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[s,l]=a;if(null==t||["number","boolean","string"].includes(typeof t)&&!(0,B.i2)(t))return t;const c=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,B.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${(0,z.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const u="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===u)return c.replace("object ","");if(s(t))return"[Circular ~]";const d=t;if(d&&"function"==typeof d.toJSON)try{return $("",d.toJSON(),u-1,i,a)}catch(e){}const f=Array.isArray(t)?[]:{};let p=0;const h=(0,o.Sh)(t);for(const e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(p>=i){f[e]="[MaxProperties ~]";break}const t=h[e];f[e]=$(e,t,u-1,i,a),p++}return l(t),f}function Y(e,t=[]){return[e,t]}function q(e,t){const[n,r]=e;return[n,[...r,t]]}function H(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function W(e,t){return(t||new TextEncoder).encode(e)}function V(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[W(i,t),e]:i.push("string"==typeof e?W(e,t):e)}for(const e of r){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(F(n))}o(e)}}return"string"==typeof i?i:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(i)}function Z(e,t){const n="string"==typeof e.data?W(e.data,t):e.data;return[(0,o.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const J={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function K(e){return J[e]}function Q(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function X(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:U(r)},...i&&{trace:(0,o.Jr)({...i})}}}const ee=6e4;function te(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?ee:r-t}const ne=30;function re(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,A.$2)(new I("Not adding Promise because buffer limit was reached."));const i=r();return-1===t.indexOf(i)&&t.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new A.cW(((n,r)=>{let i=t.length;if(!i)return n(!0);const o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,A.WD)(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}(e.bufferSize||ne)){let r={};function i(i){const o=[];if(H(i,((t,n)=>{const i=K(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)){const r=ie(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)})),0===o.length)return(0,A.WD)();const a=Y(i[0],o),s=t=>{H(a,((n,r)=>{const i=ie(n,r);e.recordDroppedEvent(t,K(r),i)}))};return n.add((()=>t({body:V(a,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(const e of o.trim().split(",")){const[t,n]=e.split(":",2),o=parseInt(t,10),a=1e3*(isNaN(o)?60:o);if(n)for(const e of n.split(";"))i[e]=r+a;else i.all=r+a}else a?i.all=r+te(a,r):429===t&&(i.all=r+6e4);return i}(r,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof I)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("Skipped sending event because buffer is full."),s("queue_overflow"),(0,A.WD)();throw e}))}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function ie(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}var oe=n(7638),ae=n(9791);const se="7";function le(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function ce(e,t={}){const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${le(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,o._j)({sentry_key:e.publicKey,sentry_version:se,...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,r)}`}function ue(e,t){return n=>{const r=e(n),i={};return{send:async function(o){const a=t({envelope:o,getEvent:function(e){const t=e&&e.length?e:["event"];return function(e,t){let n;return H(e,((e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n))),n}(o,t)}}).map((t=>function(t){if(!i[t]){const r=M(t);if(!r)return;const o=ce(r);i[t]=e({...n,url:o})}return i[t]}(t))).filter((e=>!!e));return 0===a.length&&a.push(r),(await Promise.all(a.map((e=>e.send(o)))))[0]},flush:async function(e){const t=[...Object.keys(i).map((e=>i[e])),r];return(await Promise.all(t.map((t=>t.flush(e))))).every((e=>e))}}}}var de=n(8903),fe=n(1250),pe=n(1235);const he=pe.n2;let me=0;function ge(){return me>0}function ye(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if((0,o.HK)(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=r.map((e=>ye(e,t)));return e.apply(this,i)}catch(e){throw me++,setTimeout((()=>{me--})),O((n=>{n.addEventProcessor((e=>(t.mechanism&&((0,c.Db)(e,void 0,void 0),(0,c.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),_(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}(0,o.$Q)(r,e),(0,o.xp)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}const _e=[];function ve(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?(0,c.lE)(n(t)):t;const i=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(r),o=function(e){for(let t=0;t<e.length;t++)if(1==("Debug"===e[t].name))return t;return-1}(i);if(-1!==o){const[e]=i.splice(o,1);i.push(e)}return i}function be(e,t){t[e.name]=e,-1===_e.indexOf(e.name)&&(e.setupOnce(y.c,m.Gd),_e.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(`Integration installed: ${e.name}`))}var we=n(9015),ke=n(1170),Se=n(1131);function Ee(e,t,n,r){const{normalizeDepth:i=3,normalizeMaxBreadth:o=1e3}=e,a={...t,event_id:t.event_id||n.event_id||(0,c.DM)(),timestamp:t.timestamp||(0,ke.yW)()},s=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:Se.J),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,u.$G)(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=(0,u.$G)(a.value,o));const s=e.request;s&&s.url&&(s.url=(0,u.$G)(s.url,o))}(a,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(a,s),void 0===t.type&&function(e,t){const n=pe.n2._sentryDebugIds;if(!n)return;let r;const i=Te.get(t);i?r=i:(r=new Map,Te.set(t,r));const o=Object.keys(n).reduce(((e,i)=>{let o;const a=r.get(i);a?o=a:(o=t(i),r.set(i,o));for(let t=o.length-1;t>=0;t--){const r=o[t];if(r.filename){e[r.filename]=n[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=o[e.filename])}))}))}catch(e){}}(a,e.stackParser);let l=r;n.captureContext&&(l=y.s.clone(l).update(n.captureContext));let d=(0,A.WD)(a);if(l){if(l.getAttachments){const e=[...n.attachments||[],...l.getAttachments()];e.length&&(n.attachments=e)}d=l.applyToEvent(a,n)}return d.then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof i&&i>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:F(e.data,t,n)}})))},...e.user&&{user:F(e.user,t,n)},...e.contexts&&{contexts:F(e.contexts,t,n)},...e.extra&&{extra:F(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=F(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=F(e.data,t,n)),e)))),r}(e,i,o):e)))}const Te=new WeakMap,xe="Not capturing exception because it's already been captured.";class Re{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(e){if(Re.prototype.__init.call(this),Re.prototype.__init2.call(this),Re.prototype.__init3.call(this),Re.prototype.__init4.call(this),Re.prototype.__init5.call(this),this._options=e,e.dsn?this._dsn=j(e.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("No DSN provided, client will not do anything."),this._dsn){const t=ce(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if((0,c.YO)(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(xe));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let i=n&&n.event_id;const o=(0,B.pt)(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(o.then((e=>this._captureEvent(e,n,r))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&(0,c.YO)(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(xe));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,we.CT)(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):(0,A.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){const t={};return e.forEach((e=>{e&&be(e,t)})),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){be(e,this._integrations)}sendEvent(e,t={}){if(this._dsn){let n=function(e,t,n,r){const i=Q(n),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=X(e,i,r,t);return delete e.sdkProcessingMetadata,Y(a,[[{type:o},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=q(n,Z(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}}sendSession(e){if(this._dsn){const t=function(e,t,n,r){const i=Q(n);return Y({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:U(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_updateSessionFromEvent(e,t){let n=!1,r=!1;const i=t.exception&&t.exception.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const o="ok"===e.status;(o&&0===e.errors||o&&n)&&((0,we.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new A.cW((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const r=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),Ee(r,e,t,n)}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=e;"log"===t.logLevel?l.kg.log(t.message):l.kg.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r;if(!this._isEnabled())return(0,A.$2)(new I("SDK not enabled, will not capture event.","log"));const o=Oe(e),a=Ce(e),s=e.type||"error",l=`before send for type \`${s}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,A.$2)(new I(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const c="replay_event"===s?"replay":s;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new I("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;return Ce(t)&&r?r(t,n):Oe(t)&&i?i(t,n):t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,B.J8)(e))return e.then((e=>{if(!(0,B.PO)(e)&&null!==e)throw new I(n);return e}),(e=>{throw new I(`${t} rejected with ${e}`)}));if(!(0,B.PO)(e)&&null!==e)throw new I(n);return e}(i,l)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",c,e),new I(`${l} returned \`null\`, will not send event.`,"log");const i=n&&n.getSession();!o&&i&&this._updateSessionFromEvent(i,r);const a=r.transaction_info;if(o&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof I)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new I(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("Error while sending event:",e)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function Ce(e){return void 0===e.type}function Oe(e){return"transaction"===e.type}var De=n(8518);function Ne(e,t){const n=Ae(e,t),r={type:t&&t.name,value:Ue(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Ie(e,t){return{exception:{values:[Ne(e,t)]}}}function Ae(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Pe.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const Pe=/Minified React error #\d+;/i;function Ue(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Me(e,t,n,r){const i=je(e,t,n&&n.syntheticException||void 0,r);return(0,c.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,A.WD)(i)}function Le(e,t,n="info",r,i){const o=Be(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),(0,A.WD)(o)}function je(e,t,n,r,i){let o;if((0,B.VW)(t)&&t.error)return Ie(e,t.error);if((0,B.TX)(t)||(0,B.fm)(t)){const i=t;if("stack"in t)o=Ie(e,t);else{const t=i.name||((0,B.TX)(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;o=Be(e,a,n,r),(0,c.Db)(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return(0,B.VZ)(t)?Ie(e,t):(0,B.PO)(t)||(0,B.cO)(t)?(o=function(e,t,n,r){const i=(0,m.Gd)().getClient(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:(0,B.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:ze(t,{isUnhandledRejection:r})}]},extra:{__serialized__:G(t,o)}};if(n){const t=Ae(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i),(0,c.EG)(o,{synthetic:!0}),o):(o=Be(e,t,n,r),(0,c.Db)(o,`${t}`,void 0),(0,c.EG)(o,{synthetic:!0}),o)}function Be(e,t,n,r){const i={message:t};if(r&&n){const r=Ae(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}return i}function ze(e,{isUnhandledRejection:t}){const n=(0,o.zf)(e),r=t?"promise rejection":"exception";return(0,B.VW)(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:(0,B.cO)(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}var Fe=n(2533),Ge=n(8464);const $e=["fatal","error","warning","log","info","debug"];var Ye=n(6956);const He="Breadcrumbs";class We{static __initStatic(){this.id=He}__init(){this.name=We.id}constructor(e){We.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&(0,Fe.oq)("console",Ve),this.options.dom&&(0,Fe.oq)("dom",(e=this.options.dom,function(t){let n,r="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof r&&(r=[r]);try{const e=t.event;n=function(e){return!!e&&!!e.target}(e)?(0,Ge.Rt)(e.target,{keyAttrs:r,maxStringLength:i}):(0,Ge.Rt)(e,{keyAttrs:r,maxStringLength:i})}catch(e){n="<unknown>"}0!==n.length&&(0,m.Gd)().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&(0,Fe.oq)("xhr",Ze),this.options.fetch&&(0,Fe.oq)("fetch",Je),this.options.history&&(0,Fe.oq)("history",Ke)}addSentryBreadcrumb(e){this.options.sentry&&(0,m.Gd)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,c.jH)(e)},{event:e})}}function Ve(e){for(let t=0;t<e.args.length;t++)if("ref=Ref<"===e.args[t]){e.args[t+1]="viewRef";break}const t={category:"console",data:{arguments:e.args,logger:"console"},level:(n=e.level,"warn"===n?"warning":$e.includes(n)?n:"log"),message:(0,u.nK)(e.args," ")};var n;if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${(0,u.nK)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}(0,m.Gd)().addBreadcrumb(t,{input:e.args,level:e.level})}function Ze(e){const{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[Fe.xU];if(!t||!n||!r)return;const{method:i,url:o,status_code:a,body:s}=r,l={method:i,url:o,status_code:a},c={xhr:e.xhr,input:s,startTimestamp:t,endTimestamp:n};(0,m.Gd)().addBreadcrumb({category:"xhr",data:l,type:"http"},c)}function Je(e){const{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};(0,m.Gd)().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{const r={...e.fetchData,status_code:e.response&&e.response.status},i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};(0,m.Gd)().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function Ke(e){let t=e.from,n=e.to;const r=(0,Ye.en)(he.location.href);let i=(0,Ye.en)(t);const o=(0,Ye.en)(n);i.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),(0,m.Gd)().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}function Qe(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:U(r)}},o=function(e){return[{type:"user_report"},e]}(e);return Y(i,[o])}We.__initStatic();class Xe extends Re{constructor(e){const t=he.SENTRY_SDK_SOURCE||(0,De.S)();e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:g}],version:g},super(e),e.sendClientReports&&he.document&&he.document.addEventListener("visibilitychange",(()=>{"hidden"===he.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return Me(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return Le(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){const n=this.getIntegrationById(He);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(e),super.sendEvent(e,t)}captureUserFeedback(e){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("SDK not enabled, will not capture user feedback."));const t=Qe(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("Sending outcomes:",e);const t=(n=e,Y((r=this._options.tunnel&&U(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:(0,ke.yW)(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}var et=n(8823);let tt;function nt(e,t=function(){if(tt)return tt;if((0,et.Du)(he.fetch))return tt=he.fetch.bind(he);const e=he.document;let t=he.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return tt=t.bind(he)}()){let n=0,r=0;return re(e,(function(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return tt=void 0,n-=o,r--,(0,A.$2)(e)}}))}const rt=4;function it(e){return re(e,(function(t){return new A.cW(((n,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{i.readyState===rt&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)}))}))}function at(e,t,n,r){const i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const st=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,lt=/\((\S*)(?::(\d+))(?::(\d+))\)/,ct=[30,e=>{const t=st.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=lt.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=wt(t[1]||"?",t[2]);return at(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],ut=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,dt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ft=[50,e=>{const t=ut.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=dt.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=wt(n,e),at(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],pt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ht=[40,e=>{const t=pt.exec(e);return t?at(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}],mt=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,gt=[10,e=>{const t=mt.exec(e);return t?at(t[2],t[3]||"?",+t[1]):void 0}],yt=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,_t=[20,e=>{const t=yt.exec(e);return t?at(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0}],vt=[ct,ft,ht],bt=(0,z.pE)(...vt),wt=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class kt{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=kt.id}__init2(){this._installFunc={onerror:St,onunhandledrejection:Et}}constructor(e){kt.prototype.__init.call(this),kt.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const n in e){const r=this._installFunc[n];r&&e[n]&&(t=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(`Global Handler attached: ${t}`),r(),this._installFunc[n]=void 0)}var t}}function St(){(0,Fe.oq)("error",(e=>{const[t,n,r]=Rt();if(!t.getIntegration(kt))return;const{msg:i,url:o,line:a,column:s,error:l}=e;if(ge()||l&&l.__sentry_own_request__)return;const c=void 0===l&&(0,B.HD)(i)?function(e,t,n,r){let i=(0,B.VW)(e)?e.message:e,o="Error";const a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(o=a[1],i=a[2]),Tt({exception:{values:[{type:o,value:i}]}},t,n,r)}(i,o,a,s):Tt(je(n,l||i,void 0,r,!1),o,a,s);c.level="error",xt(t,l,c,"onerror")}))}function Et(){(0,Fe.oq)("unhandledrejection",(e=>{const[t,n,r]=Rt();if(!t.getIntegration(kt))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if(ge()||i&&i.__sentry_own_request__)return!0;const o=(0,B.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:je(n,i,void 0,r,!0);o.level="error",xt(t,i,o,"onunhandledrejection")}))}function Tt(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=(0,B.HD)(t)&&t.length>0?t:(0,Ge.l4)();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function xt(e,t,n,r){(0,c.EG)(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function Rt(){const e=(0,m.Gd)(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}kt.__initStatic();const Ct=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Ot{static __initStatic(){this.id="TryCatch"}__init(){this.name=Ot.id}constructor(e){Ot.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&(0,o.hl)(he,"setTimeout",Dt),this._options.setInterval&&(0,o.hl)(he,"setInterval",Dt),this._options.requestAnimationFrame&&(0,o.hl)(he,"requestAnimationFrame",Nt),this._options.XMLHttpRequest&&"XMLHttpRequest"in he&&(0,o.hl)(XMLHttpRequest.prototype,"send",It);const e=this._options.eventTarget;e&&(Array.isArray(e)?e:Ct).forEach(At)}}function Dt(e){return function(...t){const n=t[0];return t[0]=ye(n,{mechanism:{data:{function:(0,z.$P)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function Nt(e){return function(t){return e.apply(this,[ye(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,z.$P)(e)},handled:!0,type:"instrument"}})])}}function It(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&(0,o.hl)(n,e,(function(t){const n={mechanism:{data:{function:e,handler:(0,z.$P)(t)},handled:!0,type:"instrument"}},r=(0,o.HK)(t);return r&&(n.mechanism.data.handler=(0,z.$P)(r)),ye(t,n)}))})),e.apply(this,t)}}function At(e){const t=he,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,o.hl)(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=ye(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,z.$P)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,ye(r,{mechanism:{data:{function:"addEventListener",handler:(0,z.$P)(r),target:e},handled:!0,type:"instrument"}}),i])}})),(0,o.hl)(n,"removeEventListener",(function(e){return function(t,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,i,r)}})))}Ot.__initStatic();class Pt{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Pt.id}constructor(e={}){Pt.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){const e=(0,m.Gd)().getClient();e&&(0,y.c)(((t,n)=>{const r=(0,m.Gd)().getIntegration(Pt);return r?function(e,t,n,r,i){if(!(r.exception&&r.exception.values&&i&&(0,B.V9)(i.originalException,Error)))return r;const o=Ut(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t}))}}function Ut(e,t,n,r,i=[]){if(!(0,B.V9)(n[r],Error)||i.length+1>=t)return i;const o=Ne(e,n[r]);return Ut(e,t,n[r],r,[o,...i])}Pt.__initStatic();class Mt{constructor(){Mt.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Mt.id}setupOnce(){(0,y.c)((e=>{if((0,m.Gd)().getIntegration(Mt)){if(!he.navigator&&!he.location&&!he.document)return e;const t=e.request&&e.request.url||he.location&&he.location.href,{referrer:n}=he.document||{},{userAgent:r}=he.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};return{...e,request:o}}return e}))}}Mt.__initStatic();class Lt{constructor(){Lt.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Lt.id}setupOnce(e,t){const n=e=>{if(e.type)return e;const n=t().getIntegration(Lt);if(n){try{if(function(e,t){return!(!t||!function(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Bt(e,t)||!jt(e,t))}(e,t)&&!function(e,t){const n=zt(t),r=zt(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&Bt(e,t)&&jt(e,t))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function jt(e,t){let n=Ft(e),r=Ft(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function Bt(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function zt(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Ft(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}Lt.__initStatic();const Gt=[new p,new s,new Ot,new We,new kt,new Pt,new Lt,new Mt];function $t(e={},t=(0,m.Gd)()){if(!he.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("Global document not defined in showReportDialog call"));const{client:n,scope:r}=t.getStackTop(),i=e.dsn||n&&n.getDsn();if(!i)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("DSN not configured for showReportDialog call"));r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const o=he.document.createElement("script");o.async=!0,o.src=function(e,t){const n=j(e);if(!n)return"";const r=`${le(n)}embed/error-page/`;let i=`dsn=${U(n)}`;for(const e in t)if("dsn"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${i}`}(i,e),e.onLoad&&(o.onload=e.onLoad);const a=he.document.head||he.document.body;a?a.appendChild(o):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("Not injecting report dialog. No injection point found in HTML")}function Yt(){return(0,m.Gd)().lastEventId()}function qt(){}function Ht(e){e()}function Wt(e){const t=(0,m.Gd)().getClient();return t?t.flush(e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("Cannot flush events. No client defined."),(0,A.WD)(!1))}function Vt(e){const t=(0,m.Gd)().getClient();return t?t.close(e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("Cannot flush events and disable SDK. No client defined."),(0,A.WD)(!1))}function Zt(e){return ye(e)()}function Jt(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function Kt(e){const t=(0,m.Gd)().getClient();t&&t.captureUserFeedback(e)}var Qt=n(1422);const Xt=pe.n2,en="sentryReplaySession",nn="Unable to send Replay",an=15e4;var cn;function un(e){const t=null==e?void 0:e.host;return Boolean(t&&t.shadowRoot&&t.shadowRoot===e)}function dn({maskInputOptions:e,tagName:t,type:n}){"option"===t.toLowerCase()&&(t="select");const r="string"==typeof n?n.toLowerCase():void 0;return e[t.toLowerCase()]||r&&e[r]||"password"===r||"input"===t&&!n&&e.text}function fn({input:e,maskInputSelector:t,unmaskInputSelector:n,maskInputOptions:r,tagName:i,type:o,value:a,maskInputFn:s}){let l=a||"";return n&&e.matches(n)||(e.hasAttribute("data-rr-is-password")&&(o="password"),(dn({maskInputOptions:r,tagName:i,type:o})||t&&e.matches(t))&&(l=s?s(l):"*".repeat(l.length))),l}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(cn||(cn={}));const pn="__rrweb_original__";function hn(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?t.toLowerCase():null}function mn(e,t,n){return"string"==typeof n&&n.toLowerCase(),"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let gn=1;const yn=new RegExp("[^a-z0-9-_:]"),_n=-2;function vn(e){return e?e.replace(/[\S]/g,"*"):""}function bn(e){try{const t=e.rules||e.cssRules;return t?Array.from(t).map(wn).join(""):null}catch(e){return null}}function wn(e){let t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=bn(e.styleSheet)||t}catch(e){}return kn(t)}function kn(e){if(e.indexOf(":")>-1){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}return e}let Sn,En;const Tn=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,xn=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,Rn=/^(data:)([^,]*),(.*)/i;function Cn(e,t){return(e||"").replace(Tn,((e,n,r,i,o,a)=>{const s=r||o||a,l=n||i||"";if(!s)return e;if(!xn.test(s))return`url(${l}${s}${l})`;if(Rn.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s}${l})`;const c=t.split("/"),u=s.split("/");c.pop();for(const e of u)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`}))}const On=/^[^ \t\n\r\u000c]+/,Dn=/^[, \t\n\r\u000c]+/;function Nn(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function In(){const e=document.createElement("a");return e.href="",e.href}function An(e,t,n,r,i,o,a,s){if(!i)return i;const l=r.toLowerCase(),c=n.toLowerCase();return"src"===l||"href"===l||"xlink:href"===l&&"#"!==i[0]?Nn(e,i):"background"!==l||"table"!==c&&"td"!==c&&"th"!==c?"srcset"===l?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(Dn),!(n>=t.length);){let o=r(On);if(","===o.slice(-1))o=Nn(e,o.substring(0,o.length-1)),i.push(o);else{let r="";o=Nn(e,o);let a=!1;for(;;){let e=t.charAt(n);if(""===e){i.push((o+r).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){n+=1,i.push((o+r).trim());break}"("===e&&(a=!0)}r+=e,n+=1}}}return i.join(", ")}(e,i):"style"===l?Cn(i,In()):"object"===c&&"data"===l?Nn(e,i):o&&function(e,t,n,r){return(!r||!e.matches(r))&&(["placeholder","title","aria-label"].indexOf(t)>-1||"input"===n&&"value"===t&&e.hasAttribute("type")&&["submit","button"].indexOf(e.getAttribute("type").toLowerCase())>-1)}(t,l,c,a)?s?s(i):vn(i):i:Nn(e,i)}function Pn(e,t,n,r,i){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return Pn(e.parentNode,t,n,r,i);if(r&&(e.matches(r)||e.closest(r)))return!1;if(i)return!0;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n<e.classList.length;n++){const r=e.classList[n];if(t.test(r))return!0}return!(!n||!e.matches(n))||Pn(e.parentNode,t,n,r,i)}function Un(e){return null==e?"":e.toLowerCase()}function Mn(e,t){const{doc:n,map:r,blockClass:i,blockSelector:o,unblockSelector:a,maskTextClass:s,maskTextSelector:l,unmaskTextSelector:c,skipChild:u=!1,inlineStylesheet:d=!0,maskInputSelector:f,unmaskInputSelector:p,maskAllText:h,maskInputOptions:m={},maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:w=!1,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:E=5e3,keepIframeSrcFn:T=()=>!1}=t;let{preserveWhiteSpace:x=!0}=t;const R=function(e,t){var n;const{doc:r,blockClass:i,blockSelector:o,unblockSelector:a,maskTextClass:s,maskTextSelector:l,unmaskTextSelector:c,inlineStylesheet:u,maskInputSelector:d,unmaskInputSelector:f,maskAllText:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:_,recordCanvas:v,keepIframeSrcFn:b}=t;let w;if(r.__sn){const e=r.__sn.id;w=1===e?void 0:e}switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:cn.Document,childNodes:[],compatMode:e.compatMode,rootId:w}:{type:cn.Document,childNodes:[],rootId:w};case e.DOCUMENT_TYPE_NODE:return{type:cn.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:const t=function(e,t,n,r){if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n<e.classList.length;n++){const r=e.classList[n];if(t.test(r))return!0}return!!n&&e.matches(n)}(e,i,o,a),E=function(e){if(e instanceof HTMLFormElement)return"form";const t=e.tagName.toLowerCase().trim();return yn.test(t)?"div":t}(e);let T={};for(const{name:t,value:n}of Array.from(e.attributes))Ln(E,t)||(T[t]=An(r,e,E,t,n,p,c,m));if("link"===E&&u){const t=Array.from(r.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=bn(t)),n&&(delete T.rel,delete T.href,T._cssText=Cn(n,t.href))}if("style"===E&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=bn(e.sheet);t&&(T._cssText=Cn(t,In()))}if("input"===E||"textarea"===E||"select"===E||"option"===E){const t=e,n=hn(t),r=mn(t,E.toUpperCase(),n),i=e.checked;"submit"!==n&&"button"!==n&&r&&(T.value=fn({input:t,type:n,tagName:E,value:r,maskInputSelector:d,unmaskInputSelector:f,maskInputOptions:h,maskInputFn:g})),i&&(T.checked=i)}if("option"===E&&(e.selected&&!h.select?T.selected=!0:delete T.selected),"canvas"===E&&v)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const i=t.getImageData,o=pn in i?i[pn]:i;if(new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(T.rr_dataURL=e.toDataURL(y.type,y.quality));else if(!("__context"in e)){const t=e.toDataURL(y.type,y.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(y.type,y.quality)&&(T.rr_dataURL=t)}if("img"===E&&_){Sn||(Sn=r.createElement("canvas"),En=Sn.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const i=()=>{try{Sn.width=t.naturalWidth,Sn.height=t.naturalHeight,En.drawImage(t,0,0),T.rr_dataURL=Sn.toDataURL(y.type,y.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?T.crossOrigin=n:delete T.crossOrigin};t.complete&&0!==t.naturalWidth?i():t.onload=i}if("audio"!==E&&"video"!==E||(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop),t){const{width:t,height:n}=e.getBoundingClientRect();T={class:T.class,rr_width:`${t}px`,rr_height:`${n}px`}}return"iframe"!==E||b(T.src)||(e.contentDocument||(T.rr_src=T.src),delete T.src),{type:cn.Element,tagName:E,attributes:T,childNodes:[],isSVG:(S=e,Boolean("svg"===S.tagName||S.ownerSVGElement)||void 0),needBlock:t,rootId:w};case e.TEXT_NODE:const x=e.parentNode&&e.parentNode.tagName;let R=e.textContent;const C="STYLE"===x||void 0,O="SCRIPT"===x||void 0;if(C&&R){try{e.nextSibling||e.previousSibling||(null===(n=e.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(R=(k=e.parentNode.sheet).cssRules?Array.from(k.cssRules).map((e=>e.cssText?kn(e.cssText):"")).join(""):"")}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}R=Cn(R,In())}return O&&(R="SCRIPT_PLACEHOLDER"),"TEXTAREA"===x&&R?R="":"OPTION"===x&&R?R=fn({input:e.parentNode,type:null,tagName:x,value:R,maskInputSelector:d,unmaskInputSelector:f,maskInputOptions:h,maskInputFn:g}):!C&&!O&&Pn(e,s,l,c,p)&&R&&(R=m?m(R):vn(R)),{type:cn.Text,textContent:R||"",isStyle:C,rootId:w};case e.CDATA_SECTION_NODE:return{type:cn.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:cn.Comment,textContent:e.textContent||"",rootId:w};default:return!1}var k,S}(e,{doc:n,blockClass:i,blockSelector:o,unblockSelector:a,maskTextClass:s,maskTextSelector:l,unmaskTextSelector:c,inlineStylesheet:d,maskInputSelector:f,unmaskInputSelector:p,maskAllText:h,maskInputOptions:m,maskTextFn:g,maskInputFn:y,dataURLOptions:v,inlineImages:b,recordCanvas:w,keepIframeSrcFn:T});if(!R)return console.warn(e,"not serialized"),null;let C;C="__sn"in e?e.__sn.id:!function(e,t){if(t.comment&&e.type===cn.Comment)return!0;if(e.type===cn.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Un(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Un(e.attributes.name)||"icon"===Un(e.attributes.rel)||"apple-touch-icon"===Un(e.attributes.rel)||"shortcut icon"===Un(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Un(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Un(e.attributes.property).match(/^(og|twitter|fb):/)||Un(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Un(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Un(e.attributes.name)||"googlebot"===Un(e.attributes.name)||"bingbot"===Un(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Un(e.attributes.name)||"generator"===Un(e.attributes.name)||"framework"===Un(e.attributes.name)||"publisher"===Un(e.attributes.name)||"progid"===Un(e.attributes.name)||Un(e.attributes.property).match(/^article:/)||Un(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Un(e.attributes.name)||"yandex-verification"===Un(e.attributes.name)||"csrf-token"===Un(e.attributes.name)||"p:domain_verify"===Un(e.attributes.name)||"verify-v1"===Un(e.attributes.name)||"verification"===Un(e.attributes.name)||"shopify-checkout-api-token"===Un(e.attributes.name)))return!0}}return!1}(R,_)&&(x||R.type!==cn.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?gn++:_n;const O=Object.assign(R,{id:C});if(e.__sn=O,C===_n)return null;r[C]=e,k&&k(e);let D=!u;if(O.type===cn.Element&&(D=D&&!O.needBlock,delete O.needBlock,e.shadowRoot&&(O.isShadowHost=!0)),(O.type===cn.Document||O.type===cn.Element)&&D){_.headWhitespace&&R.type===cn.Element&&"head"===R.tagName&&(x=!1);const t={doc:n,map:r,blockClass:i,blockSelector:o,unblockSelector:a,maskTextClass:s,maskTextSelector:l,unmaskTextSelector:c,skipChild:u,inlineStylesheet:d,maskInputSelector:f,unmaskInputSelector:p,maskAllText:h,maskInputOptions:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:w,preserveWhiteSpace:x,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:E,keepIframeSrcFn:T};for(const n of Array.from(e.childNodes)){const e=Mn(n,t);e&&O.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const e=Mn(n,t);e&&(e.isShadow=!0,O.childNodes.push(e))}}return e.parentNode&&un(e.parentNode)&&(O.isShadow=!0),O.type===cn.Element&&"iframe"===O.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let i,o=!1;try{i=r.document.readyState}catch(e){return}if("complete"!==i){const r=setTimeout((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(r),o=!0,t()}))}const a="about:blank";r.location.href===a&&e.src!==a&&""!==e.src?e.addEventListener("load",t):setTimeout(t,0)}(e,(()=>{const t=e.contentDocument;if(t&&S){const n=Mn(t,{doc:t,map:r,blockClass:i,blockSelector:o,unblockSelector:a,maskTextClass:s,maskTextSelector:l,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputSelector:f,unmaskInputSelector:p,maskAllText:h,maskInputOptions:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:w,preserveWhiteSpace:x,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:E,keepIframeSrcFn:T});n&&S(e,n)}}),E),O}function Ln(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}var jn,Bn,zn,Fn,Gn,$n;function Yn(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}!function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin"}(jn||(jn={})),function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration"}(Bn||(Bn={})),function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"}(zn||(zn={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(Fn||(Fn={})),function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange"}(Gn||(Gn={})),function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back"}($n||($n={}));const qn="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Hn={map:{},getId:()=>(console.error(qn),-1),getNode:()=>(console.error(qn),null),removeNodeFromMap(){console.error(qn)},has:()=>(console.error(qn),!1),reset(){console.error(qn)}};function Wn(e,t,n={}){let r=null,i=0;return function(o){let a=Date.now();i||!1!==n.leading||(i=a);let s=t-(a-i),l=this,c=arguments;s<=0||s>t?(r&&(clearTimeout(r),r=null),i=a,e.apply(l,c)):r||!1===n.trailing||(r=setTimeout((()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(l,c)}),s))}}function Vn(e,t,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){setTimeout((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>Vn(e,t,o||{},!0)}function Zn(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(e){return()=>{}}}function Jn(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Kn(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Qn(e,t,n,r){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){let i=!1;const o=r&&e.matches(r);return"string"==typeof t?i=void 0!==e.closest?!o&&null!==e.closest("."+t):!o&&e.classList.contains(t):!o&&e.classList.forEach((e=>{t.test(e)&&(i=!0)})),!i&&n&&(i=e.matches(n)),!o&&i||Qn(e.parentNode,t,n,r)}return e.nodeType,e.TEXT_NODE,Qn(e.parentNode,t,n,r)}function Xn(e){return"__sn"in e&&e.__sn.id===_n}function er(e,t){if(un(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||er(e.parentNode,t))}function tr(e){return Boolean(e.changedTouches)}function nr(e){return"__sn"in e&&e.__sn.type===cn.Element&&"iframe"===e.__sn.tagName}function rr(e){return Boolean(null==e?void 0:e.shadowRoot)}function ir(e){return"__ln"in e}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Hn=new Proxy(Hn,{get:(e,t,n)=>("map"===t&&console.error(qn),Reflect.get(e,t,n))}));class or{constructor(){this.length=0,this.head=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&ir(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&ir(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next&&(t.next.previous=t.previous)):(this.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)}}const ar=(e,t)=>`${e}@${t}`;function sr(e){return"__sn"in e}class lr{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new or,n=e=>{let t=e,n=_n;for(;n===_n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},r=r=>{var i,o,a,s,l;const c=r.getRootNode?null===(i=r.getRootNode())||void 0===i?void 0:i.host:null;let u=c;for(;null===(a=null===(o=null==u?void 0:u.getRootNode)||void 0===o?void 0:o.call(u))||void 0===a?void 0:a.host;)u=(null===(l=null===(s=null==u?void 0:u.getRootNode)||void 0===s?void 0:s.call(u))||void 0===l?void 0:l.host)||null;const d=!(this.doc.contains(r)||u&&this.doc.contains(u));if(!r.parentNode||d)return;const f=un(r.parentNode)?this.mirror.getId(c):this.mirror.getId(r.parentNode),p=n(r);if(-1===f||-1===p)return t.addNode(r);let h=Mn(r,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{nr(e)&&this.iframeManager.addIframe(e),rr(r)&&this.shadowDomManager.addShadowRoot(r.shadowRoot,document)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)}});h&&e.push({parentId:f,nextId:p,node:h})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)ur(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||r(e);for(const e of this.addedSet)dr(this.droppedSet,e)||ur(this.removes,e,this.mirror)?dr(this.movedSet,e)?r(e):this.droppedSet.add(e):r(e);let i=null;for(;t.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),r=n(i.value);-1!==t&&-1!==r&&(e=i)}if(!e)for(let r=t.length-1;r>=0;r--){const i=t.get(r);if(i){const t=this.mirror.getId(i.value.parentNode),r=n(i.value);if(-1!==t&&-1!==r){e=i;break}}}if(!e){for(;t.head;)t.removeNode(t.head.value);break}i=e.previous,t.removeNode(e.value),r(e.value)}const o={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>({id:this.mirror.getId(e.node),attributes:e.attributes}))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!Xn(e.target))switch(e.type){case"characterData":{const t=e.target.textContent;Qn(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||t===e.oldValue||this.texts.push({value:Pn(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=t.getAttribute(e.attributeName);if("value"===e.attributeName&&(n=fn({input:t,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:t.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),Qn(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===e.oldValue)return;let r=this.attributes.find((t=>t.node===e.target));if(r||(r={node:e.target,attributes:{}},this.attributes.push(r)),"type"===e.attributeName&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),"style"===e.attributeName){const n=this.doc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue),void 0!==r.attributes.style&&null!==r.attributes.style||(r.attributes.style={});try{const e=r.attributes.style;for(const r of Array.from(t.style)){const i=t.style.getPropertyValue(r),o=t.style.getPropertyPriority(r);i===n.style.getPropertyValue(r)&&o===n.style.getPropertyPriority(r)||(e[r]=""===o?i:[i,o])}for(const r of Array.from(n.style))""===t.style.getPropertyValue(r)&&(e[r]=!1)}catch(e){console.warn("[rrweb] Error when parsing update to style attribute:",e)}}else{const t=e.target;r.attributes[e.attributeName]=An(this.doc,t,t.tagName,e.attributeName,n,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=un(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Qn(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||Xn(t)||(this.addedSet.has(t)?(cr(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||er(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[ar(n,r)]?cr(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!un(e.target)||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!t||!Qn(t,this.blockClass,this.blockSelector,this.unblockSelector)){if(sr(e)){if(Xn(e))return;this.movedSet.add(e);let n=null;t&&sr(t)&&(n=t.__sn.id),n&&(this.movedMap[ar(e.__sn.id,n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Qn(e,this.blockClass,this.blockSelector,this.unblockSelector)||e.childNodes.forEach((e=>this.genAdds(e)))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function cr(e,t){e.delete(t),t.childNodes.forEach((t=>cr(e,t)))}function ur(e,t,n){const{parentNode:r}=t;if(!r)return!1;const i=n.getId(r);return!!e.some((e=>e.id===i))||ur(e,r,n)}function dr(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||dr(e,n))}const fr=e=>(...t)=>{try{return e(...t)}catch(e){try{e.__rrweb__=!0}catch(e){}throw e}},pr=[];function hr(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function mr(e,t){var n,r;const i=new lr;pr.push(i),i.init(e);let o=window.MutationObserver||window.__rrMutationObserver;const a=null===(r=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===r?void 0:r.call(n,"MutationObserver");a&&window[a]&&(o=window[a]);const s=new o(fr((t=>{e.onMutation&&!1===e.onMutation(t)||i.processMutations(t)})));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function gr({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:a}){const s=Wn((a=>{const s=hr(a);if(!s||Qn(s,r,i,o))return;const l=n.getId(s);if(s===t){const n=t.scrollingElement||t.documentElement;fr(e)({id:l,x:n.scrollLeft,y:n.scrollTop})}else fr(e)({id:l,x:s.scrollLeft,y:s.scrollTop})}),a.scroll||100);return Yn("scroll",fr(s),t)}function yr(e,t){const n=Object.assign({},e);return t||delete n.userTriggered,n}const _r=["INPUT","TEXTAREA","SELECT"],vr=new WeakMap;function br(e){return function(e,t){if(kr("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||kr("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||kr("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||kr("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else{const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function wr(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};!function(e,t){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:i,scrollCb:o,viewportResizeCb:a,inputCb:s,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:d,fontCb:f}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),r(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),i(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),a(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),s(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),c(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),d(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),f(...e)}}(e,t);const r=mr(e,e.doc),i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const i="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let a,s=[];const l=Wn((t=>{const n=Date.now()-a;fr(e)(s.map((e=>(e.timeOffset-=n,e))),t),s=[],a=null}),o),c=Wn((e=>{const t=hr(e),{clientX:n,clientY:i}=tr(e)?e.changedTouches[0]:e;a||(a=Date.now()),s.push({x:n,y:i,id:r.getId(t),timeOffset:Date.now()-a}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?Bn.Drag:e instanceof MouseEvent?Bn.MouseMove:Bn.TouchMove)}),i,{trailing:!1}),u=[Yn("mousemove",fr(c),n),Yn("touchmove",fr(c),n),Yn("drag",fr(c),n)];return fr((()=>{u.forEach((e=>e()))}))}(e),o=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:a}){if(!1===a.mouseInteraction)return()=>{};const s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,l=[];return Object.keys(zn).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((a=>{const s=a.toLowerCase(),c=fr((t=>a=>{const s=hr(a);if(Qn(s,r,i,o))return;const l=tr(a)?a.changedTouches[0]:a;if(!l)return;const c=n.getId(s),{clientX:u,clientY:d}=l;fr(e)({type:zn[t],id:c,x:u,y:d})})(a));l.push(Yn(s,c,t))})),fr((()=>{l.forEach((e=>e()))}))}(e),a=gr(e),s=function({viewportResizeCb:e}){let t=-1,n=-1;const r=Wn((()=>{const r=Jn(),i=Kn();t===r&&n===i||(fr(e)({width:Number(i),height:Number(r)}),t=r,n=i)}),200);return Yn("resize",fr(r),window)}(e),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:a,ignoreSelector:s,maskInputSelector:l,unmaskInputSelector:c,maskInputOptions:u,maskInputFn:d,sampling:f,userTriggeredOnInput:p}){function h(e){let n=hr(e);const f=n&&n.tagName,h=e.isTrusted;if("OPTION"===f&&(n=n.parentElement),!n||!f||_r.indexOf(f)<0||Qn(n,r,i,o))return;const g=n,y=hn(g);if(g.classList.contains(a)||s&&g.matches(s))return;let _=mn(g,f,y),v=!1;"radio"!==y&&"checkbox"!==y||(v=n.checked),function({tagName:e,type:t,maskInputOptions:n,maskInputSelector:r}){return r||dn({maskInputOptions:n,tagName:e,type:t})}({maskInputOptions:u,maskInputSelector:l,tagName:f,type:y})&&(_=fn({input:g,maskInputOptions:u,maskInputSelector:l,unmaskInputSelector:c,tagName:f,type:y,value:_,maskInputFn:d})),m(n,fr(yr)({text:_,isChecked:v,userTriggered:h},p));const b=n.name;"radio"===y&&b&&v&&t.querySelectorAll(`input[type="radio"][name="${b}"]`).forEach((e=>{if(e!==n){const t=fn({input:e,maskInputOptions:u,maskInputSelector:l,unmaskInputSelector:c,tagName:f,type:y,value:mn(e,f,y),maskInputFn:d});m(e,fr(yr)({text:t,isChecked:!v,userTriggered:!1},p))}}))}function m(t,r){const i=vr.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){vr.set(t,r);const i=n.getId(t);e(Object.assign(Object.assign({},r),{id:i}))}}const g=("last"===f.input?["change"]:["input","change"]).map((e=>Yn(e,fr(h),t))),y=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),_=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return y&&y.set&&g.push(..._.map((e=>Vn(e[0],e[1],{set(){fr(h)({target:this})}})))),fr((()=>{g.forEach((e=>e()))}))}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:o}){const a=a=>Wn(fr((o=>{const s=hr(o);if(!s||Qn(s,t,n,r))return;const{currentTime:l,volume:c,muted:u}=s;e({type:a,id:i.getId(s),currentTime:l,volume:c,muted:u})})),o.media||500),s=[Yn("play",a(0)),Yn("pause",a(1)),Yn("seeked",a(2)),Yn("volumechange",a(3))];return fr((()=>{s.forEach((e=>e()))}))}(e),u=function({styleSheetRuleCb:e,mirror:t},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const r=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:fr(((n,r,i)=>{const[o,a]=i,s=t.getId(r.ownerNode);return-1!==s&&e({id:s,adds:[{rule:o,index:a}]}),n.apply(r,i)}))});const i=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:fr(((n,r,i)=>{const[o]=i,a=t.getId(r.ownerNode);return-1!==a&&e({id:a,removes:[{index:o}]}),n.apply(r,i)}))});const o={};Sr("CSSGroupingRule")?o.CSSGroupingRule=n.CSSGroupingRule:(Sr("CSSMediaRule")&&(o.CSSMediaRule=n.CSSMediaRule),Sr("CSSConditionRule")&&(o.CSSConditionRule=n.CSSConditionRule),Sr("CSSSupportsRule")&&(o.CSSSupportsRule=n.CSSSupportsRule));const a={};return Object.entries(o).forEach((([n,r])=>{a[n]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(a[n].insertRule,{apply:fr(((n,r,i)=>{const[o,a]=i,s=t.getId(r.parentStyleSheet.ownerNode);return-1!==s&&e({id:s,adds:[{rule:o,index:[...br(r),a||0]}]}),n.apply(r,i)}))}),r.prototype.deleteRule=new Proxy(a[n].deleteRule,{apply:fr(((n,r,i)=>{const[o]=i,a=t.getId(r.parentStyleSheet.ownerNode);return-1!==a&&e({id:a,removes:[{index:[...br(r),o]}]}),n.apply(r,i)}))})})),fr((()=>{n.CSSStyleSheet.prototype.insertRule=r,n.CSSStyleSheet.prototype.deleteRule=i,Object.entries(o).forEach((([e,t])=>{t.prototype.insertRule=a[e].insertRule,t.prototype.deleteRule=a[e].deleteRule}))}))}(e,{win:n}),d=function({styleDeclarationCb:e,mirror:t},{win:n}){const r=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(r,{apply:fr(((n,r,i)=>{var o,a;const[s,l,c]=i,u=t.getId(null===(a=null===(o=r.parentRule)||void 0===o?void 0:o.parentStyleSheet)||void 0===a?void 0:a.ownerNode);return-1!==u&&e({id:u,set:{property:s,value:l,priority:c},index:br(r.parentRule)}),n.apply(r,i)}))});const i=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:fr(((n,r,i)=>{var o,a;const[s]=i,l=t.getId(null===(a=null===(o=r.parentRule)||void 0===o?void 0:o.parentStyleSheet)||void 0===a?void 0:a.ownerNode);return-1!==l&&e({id:l,remove:{property:s},index:br(r.parentRule)}),n.apply(r,i)}))}),fr((()=>{n.CSSStyleDeclaration.prototype.setProperty=r,n.CSSStyleDeclaration.prototype.removeProperty=i}))}(e,{win:n}),f=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const a=Zn(t.fonts,"add",(function(t){return function(n){return setTimeout((()=>{const t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(a),fr((()=>{r.forEach((e=>e()))}))}(e):()=>{},p=[];for(const t of e.plugins)p.push(t.observer(t.callback,n,t.options));return fr((()=>{pr.forEach((e=>e.reset())),r.disconnect(),i(),o(),a(),s(),l(),c();try{u(),d()}catch(e){}f(),p.forEach((e=>e()))}))}function kr(e){return void 0!==window[e]}function Sr(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Er{constructor(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}addIframe(e){this.iframes.set(e,!0)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,e)}}class Tr{constructor(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;const t=this;this.restorePatches.push(Zn(HTMLElement.prototype,"attachShadow",(function(e){return function(){const n=e.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}addShadowRoot(e,t){mr(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),gr(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))}observeAttachShadow(e){if(e.contentWindow){const t=this;this.restorePatches.push(Zn(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(){const r=n.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),r}})))}}reset(){this.restorePatches.forEach((e=>e()))}}for(var xr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Cr=0;Cr<64;Cr++)Rr[xr.charCodeAt(Cr)]=Cr;var Or=function(e){var t,n=new Uint8Array(e),r=n.length,i="";for(t=0;t<r;t+=3)i+=xr[n[t]>>2],i+=xr[(3&n[t])<<4|n[t+1]>>4],i+=xr[(15&n[t+1])<<2|n[t+2]>>6],i+=xr[63&n[t+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i};const Dr=new Map,Nr=(e,t,n)=>{if(!e||!Pr(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=Dr.get(e);return n||(n=new Map,Dr.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let i=r.indexOf(e);return-1===i&&(i=r.length,r.push(e)),i};function Ir(e,t,n){if(e instanceof Array)return e.map((e=>Ir(e,t,n)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer)return{rr_type:e.constructor.name,base64:Or(e)};if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ir(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}return e instanceof ImageData?{rr_type:e.constructor.name,args:[Ir(e.data,t,n),e.width,e.height]}:Pr(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:Nr(e,t,n)}:e}const Ar=(e,t,n)=>[...e].map((e=>Ir(e,t,n))),Pr=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(n.find((n=>e instanceof t[n])))};function Ur(e,t,n,r,i,o,a,s){const l=[],c=Object.getOwnPropertyNames(e);for(const u of c)try{if("function"!=typeof e[u])continue;const c=Zn(e,u,(function(l){return function(...c){const d=l.apply(this,c);if(Nr(d,s,e),!Qn(this.canvas,r,o,i)){a.getId(this.canvas);const r=Ar([...c],s,e),i={type:t,property:u,args:r};n(this.canvas,i)}return d}}));l.push(c)}catch(r){const i=Vn(e,u,{set(e){n(this.canvas,{type:t,property:u,args:[e],setter:!0})}});l.push(i)}return l}class Mr{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)},this.mutationCb=e.mutationCb,this.mirror=e.mirror,!0===e.recordCanvas&&this.initCanvasMutationObserver(e.win,e.blockClass,e.blockSelector,e.unblockSelector)}initCanvasMutationObserver(e,t,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=function(e,t,n,r){const i=[];try{const o=Zn(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(i,...o){return Qn(this,t,n,r)||"__context"in this||(this.__context=i),e.apply(this,[i,...o])}}));i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach((e=>e()))}}(e,t,r,n),o=function(e,t,n,r,i){const a=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const o of s)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])continue;const s=Zn(t.CanvasRenderingContext2D.prototype,o,(function(t){return function(...a){return Qn(this.canvas,n,i,r)||setTimeout((()=>{const t=[...a];if("drawImage"===o&&t[0]&&t[0]instanceof HTMLCanvasElement){const e=t[0],n=e.getContext("2d");let r=null==n?void 0:n.getImageData(0,0,e.width,e.height),i=null==r?void 0:r.data;t[0]=JSON.stringify(i)}e(this.canvas,{type:Fn["2D"],property:o,args:t})}),0),t.apply(this,a)}}));a.push(s)}catch(n){const r=Vn(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:Fn["2D"],property:o,args:[t],setter:!0})}});a.push(r)}return()=>{a.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n,this.mirror),a=function(e,t,n,r,i,o){const a=[];return a.push(...Ur(t.WebGLRenderingContext.prototype,Fn.WebGL,e,n,r,i,o,t)),void 0!==t.WebGL2RenderingContext&&a.push(...Ur(t.WebGL2RenderingContext.prototype,Fn.WebGL2,e,n,r,i,o,t)),()=>{a.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n,this.mirror);this.resetObservers=()=>{i(),o(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const r=n.map((e=>{const t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["type"]);return t})),{type:i}=n[0];this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}}function Lr(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}let jr,Br;const zr={map:{},getId:e=>e&&e.__sn?e.__sn.id:-1,getNode(e){return this.map[e]||null},removeNodeFromMap(e){const t=e.__sn&&e.__sn.id;delete this.map[t],e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))},has(e){return this.map.hasOwnProperty(e)},reset(){this.map={}}};function Fr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:a=null,ignoreClass:s="rr-ignore",ignoreSelector:l=null,maskTextClass:c="rr-mask",maskTextSelector:u=null,maskInputSelector:d=null,unmaskTextSelector:f=null,unmaskInputSelector:p=null,inlineStylesheet:h=!0,maskAllText:m=!1,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:_,maskInputFn:v,maskTextFn:b,hooks:w,packFn:k,sampling:S={},mousemoveWait:E,recordCanvas:T=!1,userTriggeredOnInput:x=!1,collectFonts:R=!1,inlineImages:C=!1,plugins:O,keepIframeSrcFn:D=()=>!1,onMutation:N}=e;if(!t)throw new Error("emit function is required");void 0!==E&&void 0===S.mousemove&&(S.mousemove=E);const I=!0===g?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},A=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};let P;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(e){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}();let U=0;jr=(e,i)=>{var o;if(!(null===(o=pr[0])||void 0===o?void 0:o.isFrozen())||e.type===jn.FullSnapshot||e.type===jn.IncrementalSnapshot&&e.data.source===Bn.Mutation||pr.forEach((e=>e.unfreeze())),t((e=>{for(const t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&(e=k(e)),e})(e),i),e.type===jn.FullSnapshot)P=e,U=0;else if(e.type===jn.IncrementalSnapshot){if(e.data.source===Bn.Mutation&&e.data.isAttachIframe)return;U++;const t=r&&U>=r,i=n&&e.timestamp-P.timestamp>n;(t||i)&&Br(!0)}};const M=e=>{jr(Lr({type:jn.IncrementalSnapshot,data:Object.assign({source:Bn.Mutation},e)}))},L=e=>jr(Lr({type:jn.IncrementalSnapshot,data:Object.assign({source:Bn.Scroll},e)})),j=e=>jr(Lr({type:jn.IncrementalSnapshot,data:Object.assign({source:Bn.CanvasMutation},e)})),B=new Er({mutationCb:M}),z=new Mr({recordCanvas:T,mutationCb:j,win:window,blockClass:i,blockSelector:o,unblockSelector:a,mirror:zr}),F=new Tr({mutationCb:M,scrollCb:L,bypassOptions:{onMutation:N,blockClass:i,blockSelector:o,unblockSelector:a,maskTextClass:c,maskTextSelector:u,unmaskTextSelector:f,maskInputSelector:d,unmaskInputSelector:p,inlineStylesheet:h,maskAllText:m,maskInputOptions:I,maskTextFn:b,maskInputFn:v,recordCanvas:T,inlineImages:C,sampling:S,slimDOMOptions:A,iframeManager:B,canvasManager:z},mirror:zr});Br=(e=!1)=>{var t,n,r,s;jr(Lr({type:jn.Meta,data:{href:window.location.href,width:Kn(),height:Jn()}}),e),pr.forEach((e=>e.lock()));const[l,g]=function(e,t){const{blockClass:n="rr-block",blockSelector:r=null,unblockSelector:i=null,maskTextClass:o="rr-mask",maskTextSelector:a=null,unmaskTextSelector:s=null,inlineStylesheet:l=!0,inlineImages:c=!1,recordCanvas:u=!1,maskInputSelector:d=null,unmaskInputSelector:f=null,maskAllText:p=!1,maskAllInputs:h=!1,maskTextFn:m,maskInputFn:g,slimDOM:y=!1,dataURLOptions:_,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:k,keepIframeSrcFn:S=()=>!1}=t||{},E={};return[Mn(e,{doc:e,map:E,blockClass:n,blockSelector:r,unblockSelector:i,maskTextClass:o,maskTextSelector:a,unmaskTextSelector:s,skipChild:!1,inlineStylesheet:l,maskInputSelector:d,unmaskInputSelector:f,maskAllText:p,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskTextFn:m,maskInputFn:g,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:_,inlineImages:c,recordCanvas:u,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:k,keepIframeSrcFn:S}),E]}(document,{blockClass:i,blockSelector:o,unblockSelector:a,maskTextClass:c,maskTextSelector:u,unmaskTextSelector:f,maskInputSelector:d,unmaskInputSelector:p,inlineStylesheet:h,maskAllText:m,maskAllInputs:I,maskTextFn:b,slimDOM:A,recordCanvas:T,inlineImages:C,onSerialize:e=>{nr(e)&&B.addIframe(e),rr(e)&&F.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{B.attachIframe(e,t),F.observeAttachShadow(e)},keepIframeSrcFn:D});if(!l)return console.warn("Failed to snapshot the document");zr.map=g,jr(Lr({type:jn.FullSnapshot,data:{node:l,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(s=null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.parentElement)||void 0===s?void 0:s.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),pr.forEach((e=>e.unlock()))};try{const e=[];e.push(Yn("DOMContentLoaded",(()=>{jr(Lr({type:jn.DomContentLoaded,data:{}}))})));const t=e=>{var t;return fr(wr)({onMutation:N,mutationCb:M,mousemoveCb:(e,t)=>jr(Lr({type:jn.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>jr(Lr({type:jn.IncrementalSnapshot,data:Object.assign({source:Bn.MouseInteraction},e)})),scrollCb:L,viewportResizeCb:e=>jr(Lr({type:jn.IncrementalSnapshot,data:Object.assign({source:Bn.ViewportResize},e)})),inputCb:e=>jr(Lr({type:jn.IncrementalSnapshot,data:Object.assign({source:Bn.Input},e)})),mediaInteractionCb:e=>jr(Lr({type:jn.IncrementalSnapshot,data:Object.assign({source:Bn.MediaInteraction},e)})),styleSheetRuleCb:e=>jr(Lr({type:jn.IncrementalSnapshot,data:Object.assign({source:Bn.StyleSheetRule},e)})),styleDeclarationCb:e=>jr(Lr({type:jn.IncrementalSnapshot,data:Object.assign({source:Bn.StyleDeclaration},e)})),canvasMutationCb:j,fontCb:e=>jr(Lr({type:jn.IncrementalSnapshot,data:Object.assign({source:Bn.Font},e)})),blockClass:i,ignoreClass:s,ignoreSelector:l,maskTextClass:c,maskTextSelector:u,unmaskTextSelector:f,maskInputSelector:d,unmaskInputSelector:p,maskInputOptions:I,inlineStylesheet:h,sampling:S,recordCanvas:T,inlineImages:C,userTriggeredOnInput:x,collectFonts:R,doc:e,maskAllText:m,maskInputFn:v,maskTextFn:b,blockSelector:o,unblockSelector:a,slimDOMOptions:A,mirror:zr,iframeManager:B,shadowDomManager:F,canvasManager:z,plugins:(null===(t=null==O?void 0:O.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>jr(Lr({type:jn.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},w)};B.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{Br(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():e.push(Yn("load",(()=>{jr(Lr({type:jn.Load,data:{}})),n()}),window)),()=>{e.forEach((e=>e()))}}catch(e){console.warn(e)}}function Gr(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:jn.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:F(t,10,1e3)}}),"console"===t.category))))}Fr.addCustomEvent=(e,t)=>{if(!jr)throw new Error("please add custom event after start recording");jr(Lr({type:jn.Custom,data:{tag:e,payload:t}}))},Fr.freezePage=()=>{pr.forEach((e=>e.freeze()))},Fr.takeFullSnapshot=e=>{if(!Br)throw new Error("please take full snapshot after start recording");Br(e)},Fr.mirror=zr;function Yr(e){const t=qr(e);return t&&t instanceof Element&&t.closest("button,a")||t}function qr(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Hr;class Wr{__init(){this._lastMutation=0}__init2(){this._lastScroll=0}__init3(){this._clicks=[]}constructor(e,t,n=Gr){Wr.prototype.__init.call(this),Wr.prototype.__init2.call(this),Wr.prototype.__init3.call(this),this._timeout=t.timeout/1e3,this._multiClickTimeout=t.multiClickTimeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=()=>{this._lastScroll=Zr()},t=(i=()=>{this._lastMutation=Zr()},Hr||(Hr=[],(0,o.hl)(Xt,"open",(function(e){return function(...t){if(Hr)try{Hr.forEach((e=>e()))}catch(e){}return e.apply(Xt,t)}}))),Hr.push(i),()=>{const e=Hr?Hr.indexOf(i):-1;e>-1&&Hr.splice(e,1)}),n=e=>{if(!e.target)return;const t=Yr(e);t&&this._handleMultiClick(t)},r=new MutationObserver((()=>{this._lastMutation=Zr()}));var i;r.observe(Xt.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),Xt.addEventListener("scroll",e,{passive:!0}),Xt.addEventListener("click",n,{passive:!0}),this._teardown=()=>{Xt.removeEventListener("scroll",e),Xt.removeEventListener("click",n),t(),r.disconnect(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){return!Vr.includes(e.tagName)||"INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||!("A"!==e.tagName||!(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))||!(!t||!e.matches(t))}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;if(this._getClick(t))return;const n={timestamp:e.timestamp,clickBreadcrumb:e,clickCount:0,node:t};this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks()}_handleMultiClick(e){const t=this._getClick(e);t&&t.clickCount++}_getClick(e){const t=Zr();return this._clicks.find((n=>n.node===e&&t-n.timestamp<this._multiClickTimeout))}_checkClicks(){const e=[],t=Zr();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0);const r=n.scrollAfter||n.mutationAfter||0;(r&&r>=this._multiClickTimeout||n.timestamp+this._timeout<=t)&&e.push(n)}));for(const t of e){this._generateBreadcrumbs(t);const e=this._clicks.indexOf(t);-1!==e&&this._clicks.splice(e,1)}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:o,clickBreadcrumb:a}=e;if(i){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:Xt.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,i)}else if(o>1){const e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:Xt.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const Vr=["A","BUTTON","INPUT"];function Zr(){return Date.now()/1e3}function Jr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Kr;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Kr||(Kr={}));const Qr=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]);function Xr(e){const t={};for(const n in e)if(Qr.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}function ei(e,t){const n=e&&function(e){return"__sn"in e}(e)&&e.__sn.type===Kr.Element?e.__sn:null;return{message:t,data:n?{nodeId:n.id,node:{id:n.id,tagName:n.tagName,textContent:e?Array.from(e.childNodes).map((e=>"__sn"in e&&e.__sn.type===Kr.Text&&e.__sn.textContent)).filter(Boolean).map((e=>e.trim())).join(""):"",attributes:Xr(n.attributes)}}:{}}}const ti=["name","type","startTime","transferSize","duration"];function ni(e){return function(t){return ti.every((n=>e[n]===t[n]))}}function ii(e){return e>9999999999?e:1e3*e}class oi extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class ai{__init(){this._totalSize=0}constructor(){ai.prototype.__init.call(this),this.events=[]}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new oi;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?ii(e):null}}class si{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,i)=>{const o=({data:t})=>{const a=t;if(a.method===e&&a.id===n){if(this._worker.removeEventListener("message",o),!a.success)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("[Replay]",a.response),void i(new Error("Error in compression worker"));r(a.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class li{__init(){this._totalSize=0}constructor(e){li.prototype.__init.call(this),this._worker=new si(e),this._earliestTimestamp=null}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=ii(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>2e7?Promise.reject(new oi):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class ci{constructor(e){this._fallback=new ai,this._compression=new li(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e}=this._fallback,t=[];for(const n of e)t.push(this._compression.addEvent(n));this._used=this._compression;try{await Promise.all(t)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("[Replay] Failed to add events when switching buffers.",e)}}}function ui(){return"sessionStorage"in Xt&&!!Xt.sessionStorage}function di(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function fi(e,t,n=+new Date){return di(e.started,t.maxSessionLife,n)||di(e.lastActivity,t.sessionIdleExpire,n)}function pi(e){return void 0!==e&&Math.random()<e}function hi(e){if(ui())try{Xt.sessionStorage.setItem(en,JSON.stringify(e))}catch(e){}}function mi(e){const t=Date.now();return{id:e.id||(0,c.DM)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,shouldRefresh:!0}}function gi({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1}){const r=function(e,t){return pi(e)?"session":!!t&&"buffer"}(e,t),i=mi({sampled:r});return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(`[Replay] Creating new session: ${i.id}`),n&&hi(i),i}function yi({timeouts:e,currentSession:t,stickySession:n,sessionSampleRate:r,allowBuffering:i}){const o=t||n&&function(){if(!ui())return null;try{const e=Xt.sessionStorage.getItem(en);return e?mi(JSON.parse(e)):null}catch(e){return null}}();if(o){if(!fi(o,e)||i&&o.shouldRefresh)return{type:"saved",session:o};if(!o.shouldRefresh)return{type:"new",session:mi({sampled:!1})};("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Session has expired")}return{type:"new",session:gi({stickySession:n,sessionSampleRate:r,allowBuffering:i})}}async function _i(e,t,n){if(!e.eventBuffer)return null;if(e.isPaused())return null;if(ii(t.timestamp)+e.timeouts.sessionIdlePause<Date.now())return null;try{n&&e.eventBuffer.clear();const r=e.getOptions(),i="function"==typeof r.beforeAddRecordingEvent&&function(e){return e.type===jn.Custom}(t)?r.beforeAddRecordingEvent(t):t;if(!i)return;return await e.eventBuffer.addEvent(i)}catch(t){const n=t&&t instanceof oi?"addEventSizeExceeded":"addEvent";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error(t),await e.stop(n);const r=(0,m.Gd)().getClient();r&&r.recordDroppedEvent("internal_sdk_error","replay")}}function vi(e){return!e.type}function bi(e){return"transaction"===e.type}function wi(e){const t=function(){const e=(0,m.Gd)().getClient();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}();return(n,r)=>{if(!vi(n)&&!bi(n))return;const i=r&&r.statusCode;t&&(!i||i<200||i>=300)||(bi(n)&&n.contexts&&n.contexts.trace&&n.contexts.trace.trace_id?e.getContext().traceIds.add(n.contexts.trace.trace_id):vi(n)&&(n.event_id&&e.getContext().errorIds.add(n.event_id),"buffer"===e.recordingMode&&n.tags&&n.tags.replayId&&setTimeout((()=>{e.sendBufferedReplayOrFlush()}))))}}function ki(e,t){return t.map((({type:t,start:n,end:r,name:i,data:o})=>{const a=e.throttledAddEvent({type:jn.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof a?Promise.resolve(null):a}))}function Si(e,t){e.isEnabled()&&null!==t&&(function(e,t){return("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||!e.getOptions()._experiments.traceInternals)&&function(e){const t=(0,m.Gd)().getClient(),n=t&&t.getDsn();return!!n&&e.includes(n.host)}(t)}(e,t.name)||e.addUpdate((()=>(ki(e,[t]),!0))))}const Ei=10,Ti=11,xi=12,Ri=13,Ci=14,Oi=15,Di=20,Ni=21,Ii=22,Ai=23,Pi=["true","false","null"];function Ui(e,t,n){const r=e[e.length-1],i=t[n];if(!/\s/.test(i))if('"'!==i||Mi(t,n))switch(i){case"{":!function(e,t){t&&t!==Ri?(t===Ni&&e.push(Ei),t===Di&&e.push(Ei)):e.push(Ei)}(e,r);break;case"[":!function(e,t){t?t===Ri?(e.push(Di),e.push(Ni)):(t===Ni&&(e.push(Di),e.push(Ni)),t===Di&&(e.push(Di),e.push(Ni))):(e.push(Di),e.push(Ni))}(e,r);break;case":":!function(e,t){t===Ti&&(e.pop(),e.push(Ri))}(e,r);break;case",":!function(e,t){if(t!==Ri)return t===Oi?(e.pop(),void e.pop()):void(t!==Ni&&t===Ai&&e.pop());e.pop()}(e,r);break;case"}":!function(e,t){t===Ei&&e.pop(),t===Ri&&(e.pop(),e.pop()),t===Oi&&(e.pop(),e.pop(),e.pop()),e[e.length-1]===Ri&&e.push(Oi),e[e.length-1]===Ni&&e.push(Ai)}(e,r);break;case"]":!function(e,t){t===Di&&e.pop(),t===Ni&&(e.pop(),e.pop()),t===Ai&&(e.pop(),e.pop(),e.pop()),e[e.length-1]===Ri&&e.push(Oi),e[e.length-1]===Ni&&e.push(Ai)}(e,r)}else!function(e,t){t===Ci?(e.pop(),e.push(Oi)):t===Ii?(e.pop(),e.push(Ai)):t!==Ri?t!==Ni?t!==Ei?t===xi&&(e.pop(),e.push(Ti)):e.push(xi):e.push(Ii):e.push(Ci)}(e,r)}function Mi(e,t){return"\\"===e[t-1]&&!Mi(e,t-1)}function Li(e){return function(e,t){if(!t.length)return e;let n=e;const r=t.length-1;n=function(e,t){switch(t){case Ei:return`${e}"~~":"~~"`;case Ti:return`${e}:"~~"`;case xi:return`${e}~~":"~~"`;case Ri:return function(e){const t=e.lastIndexOf(":"),n=e.slice(t+1);return Pi.includes(n.trim())?`${e},"~~":"~~"`:`${e.slice(0,t+1)}"~~"`}(e);case Ci:return`${e}~~"`;case Oi:return`${e},"~~":"~~"`;case Di:return`${e}"~~"`;case Ni:return function(e){const t=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(","===n||"["===n)return t}return-1}(e);if(t>-1){const n=e.slice(t+1);return Pi.includes(n.trim())?`${e},"~~"`:`${e.slice(0,t+1)}"~~"`}return e}(e);case Ii:return`${e}~~"`;case Ai:return`${e},"~~"`}return e}(n,t[r]);for(let e=r;e>=0;e--)switch(t[e]){case Ei:n=`${n}}`;break;case Di:n=`${n}]`}return n}(e,function(e){const t=[];for(let n=0;n<e.length;n++)Ui(t,e,n);return t}(e))}function ji(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=qi(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function Bi(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function zi(e){return"string"==typeof e?e:e instanceof URLSearchParams?e.toString():e instanceof FormData?qi(e):void 0}function Fi(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:s,request:l,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:(0,o.Jr)({method:a,statusCode:s,request:l,response:c})}}function Gi(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function $i(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e,warnings:[]};const t=e.length>an;if(function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e))try{const n=t?Li(e.slice(0,an)):e;return{body:JSON.parse(n),warnings:t?["JSON_TRUNCATED"]:[]}}catch(n){return{body:t?`${e.slice(0,an)}…`:e,warnings:t?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:t?`${e.slice(0,an)}…`:e,warnings:t?["TEXT_TRUNCATED"]:[]}}(n);return r.body=i,o.length>0&&(r._meta={warnings:o}),r}function Yi(e,t){return Object.keys(e).reduce(((n,r)=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=e[r]),n}),{})}function qi(e){return new URLSearchParams(e).toString()}function Hi(e,t){const n=function(e,t=Xt.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Xt.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return(0,u.U0)(n,t)}function Wi(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function Vi(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Zi(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Vi(n,t):Array.isArray(n)?{}:Yi(n,t):{}}let Ki=null;function Qi(e){return!(!e||!e.on)}function Xi(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}const eo={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:a,encodedBodySize:s,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:no(o),end:no(i),name:r,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:i}=e,o=no(i);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:no(p),end:no(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:a,duration:i,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:f}}},"largest-contentful-paint":function(e){const{entryType:t,startTime:n,size:r}=e;let i=0;if(Xt.performance){const e=Xt.performance.getEntriesByType("navigation")[0];i=e&&e.activationStart||0}const o=Math.max(n-i,0),a=no(i)+o/1e3;return{type:t,name:t,start:a,end:a,data:{value:o,size:r,nodeId:Fr.mirror.getId(e.element)}}}};function to(e){return void 0===eo[e.entryType]?null:eo[e.entryType](e)}function no(e){return((ke.Z1||Xt.performance.timeOrigin)+e)/1e3}function ro(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("[Replay] Received replay event after session expired."));const i=r||!t;t=!0,e.addUpdate((()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),_i(e,n,i),!i)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return Promise.resolve(null);_i(e,function(e){const t=e.getOptions();return{type:jn.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,i),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(e.session.started=t,e.getOptions().stickySession&&hi(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}class io extends Error{constructor(e){super(`Transport returned status code ${e}`)}}async function oo(e,t={count:0,interval:5e3}){const{recordingData:n,options:r}=e;if(n.length)try{return await async function({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){const a=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:u,initialTimestamp:d}=r,f=(0,m.Gd)(),p=f.getClient(),h=f.getScope(),g=p&&p.getTransport(),y=p&&p.getDsn();if(!(p&&g&&y&&o.sampled))return;const _={type:"replay_event",replay_start_timestamp:d/1e3,timestamp:i/1e3,error_ids:c,trace_ids:u,urls:s,replay_id:t,segment_id:n,replay_type:o.sampled},v=await async function({client:e,scope:t,replayId:n,event:r}){const i="object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations),o=await Ee(e.getOptions(),r,{event_id:n,integrations:i},t);if(!o)return null;o.platform=o.platform||"javascript";const a=e.getSdkMetadata&&e.getSdkMetadata(),{name:s,version:l}=a&&a.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:l||"0.0.0"},o}({scope:h,client:p,replayId:t,event:_});if(!v)return p.recordDroppedEvent("event_processor","replay",_),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("An event processor returned `null`, will not send event."));const b=function(e,t,n,r){return Y(X(e,Q(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(v,a,y,p.getOptions().tunnel);let w;try{w=await g.send(b)}catch(e){const t=new Error(nn);try{t.cause=e}catch(e){}throw t}if(!w)return w;if("number"==typeof w.statusCode&&(w.statusCode<200||w.statusCode>=300))throw new io(w.statusCode);return w}(e),!0}catch(n){if(n instanceof io)throw n;if(S("Replays",{_retryCount:t.count}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r._experiments&&r._experiments.captureExceptions&&_(n),t.count>=3){const e=new Error(`${nn} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{setTimeout((async()=>{try{await oo(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const ao="__THROTTLED";class lo{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5,maxSessionLife:36e5}}__init5(){this._performanceObserver=null}__init6(){this._flushLock=null}__init7(){this._lastActivity=Date.now()}__init8(){this._isEnabled=!1}__init9(){this._isPaused=!1}__init10(){this._hasInitializedCoreListeners=!1}__init11(){this._stopRecording=null}__init12(){this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""}}constructor({options:e,recordingOptions:t}){lo.prototype.__init.call(this),lo.prototype.__init2.call(this),lo.prototype.__init3.call(this),lo.prototype.__init4.call(this),lo.prototype.__init5.call(this),lo.prototype.__init6.call(this),lo.prototype.__init7.call(this),lo.prototype.__init8.call(this),lo.prototype.__init9.call(this),lo.prototype.__init10.call(this),lo.prototype.__init11.call(this),lo.prototype.__init12.call(this),lo.prototype.__init13.call(this),lo.prototype.__init14.call(this),lo.prototype.__init15.call(this),lo.prototype.__init16.call(this),lo.prototype.__init17.call(this),lo.prototype.__init18.call(this),this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,i,o;const a=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return l(),r=e(),r}function l(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function c(){return i&&clearTimeout(i),i=setTimeout(s,t),a&&void 0===o&&(o=setTimeout(s,a)),r}return c.cancel=l,c.flush=function(){return void 0!==i||void 0!==o?s():r},c}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e){const r=new Map;let i=!1;return(...o)=>{const a=Math.floor(Date.now()/1e3);if((e=>{const t=e-5;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(a),[...r.values()].reduce(((e,t)=>e+t),0)>=300){const e=i;return i=!0,e?"__SKIPPED":ao}i=!1;const s=r.get(a)||0;return r.set(a,s+1),e(...o)}}(((e,t)=>_i(this,e,t)));const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):"",multiClickTimeout:1e3}:void 0;i&&(this.clickDetector=new Wr(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(){const{errorSampleRate:e,sessionSampleRate:t}=this._options;e<=0&&t<=0||this._loadAndCheckSession()&&(this.session?(this.session.sampled&&"session"!==this.session.sampled&&(this.recordingMode="buffer"),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");const e=this.session&&this.session.id,{session:t}=yi({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:1,allowBuffering:!1});t.previousSessionId=e,this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");const e=this.session&&this.session.id,{session:t}=yi({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:0,allowBuffering:!0});t.previousSessionId=e,this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{this._stopRecording=Fr({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:ro(this),onMutation:this._onMutationHandler})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop(e){if(this._isEnabled)try{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t="[Replay] Stopping Replay"+(e?` triggered by ${e}`:"");(this.getOptions()._experiments.traceInternals?console.warn:l.kg.log)(t)}this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),"session"===this.recordingMode&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,function(){if(ui())try{Xt.sessionStorage.removeItem(en)}catch(e){}}(),this.session=void 0}catch(e){this._handleException(e)}}pause(){this._isPaused=!0,this.stopRecording()}resume(){this._loadAndCheckSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();await this.flushImmediate();const n=this.stopRecording();e&&n&&(this.recordingMode="session",this.session&&(this.session.shouldRefresh=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this.session.started=t,this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._loadAndCheckSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){const e=this.getSessionId();if(this._lastActivity&&di(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled)this.pause();else if(this._loadAndCheckSession())return e===this.getSessionId()||(this._triggerFullSnapshot(),!1)}setInitialState(){const e=`${Xt.location.pathname}${Xt.location.hash}${Xt.location.search}`,t=`${Xt.location.origin}${e}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===ao){const e=Jr({category:"replay.throttled"});this.addUpdate((()=>{_i(this,{type:jn.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})}))}return n}getCurrentRoute(){const e=this.lastTransaction||(0,m.Gd)().getScope().getTransaction();if(e&&["route","custom"].includes(e.metadata.source))return e.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e}){if(e&&window.Worker)try{const e=function(){const e=new Blob(['/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=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]),a=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]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(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)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;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.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},U=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let S=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&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<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},O={_tr_init:t=>{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),S=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:T,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(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)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={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"},B={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};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let 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))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(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-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(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=ft(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=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(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-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(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++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(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&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){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=ot,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),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(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),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var St={deflateInit:(t,e)=>Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ft=!1}const Lt=new Uint8Array(256);for(let t=0;t<256;t++)Lt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Lt[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};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};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(U=0,S=r[m]):r[m]>=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Ue={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,r-f):F(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,t.next_out-f):F(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Using compression worker");const t=new Worker(e);return new ci(t)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Failed to create compression worker")}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Using simple buffer"),new ai}({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this.startRecording()}_handleException(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("[Replay]",e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&_(e)}_loadAndCheckSession(){const{type:e,session:t}=yi({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:this._options.errorSampleRate>0||"buffer"===this.recordingMode});"new"===e&&this.setInitialState();const n=this.getSessionId();return t.id!==n&&(t.previousSessionId=n),this.session=t,!!this.session.sampled||(this.stop("session unsampled"),!1)}_addListeners(){try{Xt.document.addEventListener("visibilitychange",this._handleVisibilityChange),Xt.addEventListener("blur",this._handleWindowBlur),Xt.addEventListener("focus",this._handleWindowFocus),Xt.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){const t=(0,m.Gd)().getScope(),n=(0,m.Gd)().getClient();t&&t.addScopeListener((e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return Ki!==t&&t?(Ki=t,!t.category||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Jr(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{const t=F(e,7),r=JSON.stringify(t);if(r.length>5e3){const e=Li(r.slice(0,5e3)),t=JSON.parse(e);return n=!0,t}return t}catch(e){}return e}));return Jr({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):Jr(t)):null}(t);n&&Gr(e,n)})(e)),(0,Fe.oq)("dom",(e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?Yr(e.event):qr(e.event),n=(0,Ge.Rt)(r,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:r,message:n}}(e);return Jr({category:`ui.${e.name}`,...ei(t,n)})}(t);if(!n)return;const r="click"===t.name,i=r&&t.event;r&&e.clickDetector&&i&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,Yr(t.event)),Gr(e,n)})(e)),(0,Fe.oq)("history",function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(ki(e,[n]),!1))))}}(e)),function(e){const t=(0,m.Gd)().getClient();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a}=e.getOptions(),s={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(t.data)try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(function(e,t,n){const{xhr:r,input:i}=t,o=ji(i,n.textEncoder),a=r.getResponseHeader("content-length")?Bi(r.getResponseHeader("content-length")):ji(r.response,n.textEncoder);void 0!==o&&(e.data.request_body_size=o),void 0!==a&&(e.data.response_body_size=a)}(t,n,e),async function(e,t,n){try{const r=function(e,t,n){const{startTimestamp:r,endTimestamp:i,input:o,xhr:a}=t,{url:s,method:l,status_code:c=0,request_body_size:u,response_body_size:d}=e.data;if(!s)return null;if(!Hi(s,n.networkDetailAllowUrls))return{startTimestamp:r,endTimestamp:i,url:s,method:l,statusCode:c,request:Gi(u),response:Gi(d)};const f=a[Fe.xU],p=f?Yi(f.request_headers,n.networkRequestHeaders):{},h=Yi(function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e}),{}):{}}(a),n.networkResponseHeaders);return{startTimestamp:r,endTimestamp:i,url:s,method:l,statusCode:c,request:$i(p,u,n.networkCaptureBodies?zi(o):void 0),response:$i(h,d,n.networkCaptureBodies?t.xhr.responseText:void 0)}}(e,t,n),i=Fi("resource.xhr",r);Si(n.replay,i)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("[Replay] Failed to capture fetch breadcrumb",e)}}(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(function(e,t,n){const{input:r,response:i}=t,o=ji(Wi(r),n.textEncoder),a=i?Bi(i.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==a&&(e.data.response_body_size=a)}(t,n,e),async function(e,t,n){try{const r=await async function(e,t,n){const{startTimestamp:r,endTimestamp:i}=t,{url:o,method:a,status_code:s=0,request_body_size:l,response_body_size:c}=e.data,u=Hi(o,n.networkDetailAllowUrls),d=u?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){var o,a;return $i((a=t,1===(o=n).length&&"string"!=typeof o[0]?Zi(o[0],a):2===o.length?Zi(o[1],a):{}),r,e?zi(Wi(n)):void 0)}(n,t.input,l):Gi(l),f=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},i,o){if(!e&&void 0!==o)return Gi(o);const a=Vi(i.headers,r);if(!t&&void 0!==o)return $i(a,o,void 0);try{const r=i.clone(),s=await async function(e){try{return await e.text()}catch(e){return}}(r),l=s&&s.length&&void 0===o?ji(s,n):o;return e?$i(a,l,t?s:void 0):Gi(l)}catch(e){return $i(a,o,void 0)}}(u,n,t.response,c);return{startTimestamp:r,endTimestamp:i,url:o,method:a,statusCode:s,request:d,response:f}}(e,t,n),i=Fi("resource.fetch",r);Si(n.replay,i)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("[Replay] Failed to capture fetch breadcrumb",e)}}(t,n,e))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("Error when enriching network breadcrumb")}}(s,e,t))):((0,Fe.oq)("fetch",function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:i}=e;if(!n)return null;const{method:o,url:a}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:a,data:{method:o,statusCode:i?i.status:void 0}}}(t);Si(e,n)}}(e)),(0,Fe.oq)("xhr",function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,i=r[Fe.xU];if(!t||!n||!i)return null;const{method:o,url:a,status_code:s}=i;return void 0===a?null:{type:"resource.xhr",name:a,start:t/1e3,end:n/1e3,data:{method:o,statusCode:s}}}(t);Si(e,n)}}(e)))}catch(e){}}(e),(0,y.c)(function(e,t=!1){const n=t?wi(e):void 0;return(t,r)=>{if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!vi(t)&&!bi(t))return t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&(!(!t.originalException||!t.originalException.__rrweb__)||e.exception.values.some((e=>!!(e.stacktrace&&e.stacktrace.frames&&e.stacktrace.frames.length)&&e.stacktrace.frames.some((e=>e.filename&&e.filename.includes("/rrweb/src/"))))))}(t,r)&&!e.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Ignoring error from rrweb internals",t),null;const i=function(e,t){return"buffer"===e.recordingMode&&t.message!==nn&&!(!t.exception||t.type)&&pi(e.getOptions().errorSampleRate)}(e,t);return(i||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}}(e,!Qi(n))),Qi(n)&&(n.on("afterSendEvent",wi(e)),n.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&(t.replay_id=n)})),n.on("startTransaction",(t=>{e.lastTransaction=t})),n.on("finishTransaction",(t=>{e.lastTransaction=t})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}"PerformanceObserver"in Xt&&(this._performanceObserver=function(e){const t=new PerformanceObserver((t=>{const n=function(e,t){const[n,r,i]=e.reduce(((e,t)=>("navigation"===t.entryType?e[0].push(t):"largest-contentful-paint"===t.entryType?e[1].push(t):e[2].push(t),e)),[[],[],[]]),o=[],a=[];let s=r.length?r[r.length-1]:void 0;return t.forEach((e=>{if("largest-contentful-paint"!==e.entryType)if("navigation"!==e.entryType)o.push(e);else{const t=e;e.duration>0&&!n.find(ni(t))&&!a.find(ni(t))&&a.push(t)}else(!s||s.startTime<e.startTime)&&(s=e)})),[...s?[s]:[],...n,...i,...o,...a].sort(((e,t)=>e.startTime-t.startTime))}(e.performanceEvents,t.getEntries());e.performanceEvents=n}));return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach((e=>{try{t.observe({type:e,buffered:!0})}catch(e){}})),t}(this))}_removeListeners(){try{Xt.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Xt.removeEventListener("blur",this._handleWindowBlur),Xt.removeEventListener("focus",this._handleWindowFocus),Xt.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(e){this._handleException(e)}}__init13(){this._handleVisibilityChange=()=>{"visible"===Xt.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init14(){this._handleWindowBlur=()=>{const e=Jr({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init15(){this._handleWindowFocus=()=>{const e=Jr({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init16(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!o)return null;const s=t||r||i,l=1===o.length;if(!s&&l)return null;const c=(0,Ge.Rt)(a,{maxStringLength:200})||"<unknown>";return Jr({category:"ui.keyDown",message:c,data:{...ei(a,c).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o}})}(t);n&&Gr(e,n)}(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;const t=fi(this.session,this.timeouts);e&&!t&&this._createCustomBreadcrumb(e),this.conditionalFlush()}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Document has become active, but session has expired"))}_triggerFullSnapshot(e=!0){try{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Replay] Taking full rrweb snapshot"),Fr.takeFullSnapshot(e)}catch(e){this._handleException(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:jn.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(ki(this,function(e){return e.map(to).filter(Boolean)}(e)))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){if(this.session&&this.eventBuffer){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(ki(e,[Xi(Xt.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer))try{this._updateInitialTimestampFromEventBuffer();const e=await this.eventBuffer.finish(),t=this.session.id,n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await oo({replayId:t,recordingData:e,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:Date.now()})}catch(e){this._handleException(e),this.stop("sendReplay");const t=(0,m.Gd)().getClient();t&&t.recordDroppedEvent("send_error","replay")}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("[Replay] No session or eventBuffer found to flush.")}__init17(){this._flush=async({force:e=!1}={})=>{if(this._isEnabled||e)if(this.checkAndHandleExpiredSession())if(this.session){if(this._debouncedFlush.cancel(),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=null);try{await this._flushLock}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error(e)}finally{this._debouncedFlush()}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("[Replay] No session found to flush.");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("[Replay] Attempting to finish replay event after session expired.")}}_maybeSaveSession(){this.session&&this._options.stickySession&&hi(this.session)}__init18(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=Jr({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop("mutationLimit"),!1)}}}function co(e,t,n,r){const i=[...e,..."string"==typeof r?r.split(","):[],...t];return void 0!==n&&("string"==typeof n&&i.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),i.join(",")}function uo({mask:e,unmask:t,block:n,unblock:r,ignore:i,blockClass:o,blockSelector:a,maskTextClass:s,maskTextSelector:l,ignoreClass:c}){const u=co(e,[".sentry-mask","[data-sentry-mask]"],s,l),d=co(t,[".sentry-unmask","[data-sentry-unmask]"]),f={maskTextSelector:u,unmaskTextSelector:d,maskInputSelector:u,unmaskInputSelector:d,blockSelector:co(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],o,a),unblockSelector:co(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:co(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],c)};return o instanceof RegExp&&(f.blockClass=o),s instanceof RegExp&&(f.maskTextClass=s),f}function fo(){return"undefined"!=typeof window&&(!(0,Qt.KV)()||"undefined"!=typeof process&&"renderer"===process.type)}const po='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',ho=["content-length","content-type","accept"];let mo=!1;class go{static __initStatic(){this.id="Replay"}__init(){this.name=go.id}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,stickySession:n=!0,useCompression:r=!0,_experiments:i={},sessionSampleRate:o,errorSampleRate:a,maskAllText:s=!0,maskAllInputs:l=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:u=750,mutationLimit:d=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:p=[],networkDetailAllowUrls:h=[],networkCaptureBodies:m=!0,networkRequestHeaders:g=[],networkResponseHeaders:y=[],mask:_=[],unmask:v=[],block:b=[],unblock:w=[],ignore:k=[],maskFn:S,beforeAddRecordingEvent:E,blockClass:T,blockSelector:x,maskInputOptions:R,maskTextClass:C,maskTextSelector:O,ignoreClass:D}={}){if(go.prototype.__init.call(this),this._recordingOptions={maskAllInputs:l,maskAllText:s,maskInputOptions:{...R||{},password:!0},maskTextFn:S,maskInputFn:S,...uo({mask:_,unmask:v,block:b,unblock:w,ignore:k,blockClass:T,blockSelector:x,maskTextClass:C,maskTextSelector:O,ignoreClass:D}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,stickySession:n,sessionSampleRate:o,errorSampleRate:a,useCompression:r,blockAllMedia:c,maskAllInputs:l,maskAllText:s,mutationBreadcrumbLimit:u,mutationLimit:d,slowClickTimeout:f,slowClickIgnoreSelectors:p,networkDetailAllowUrls:h,networkCaptureBodies:m,networkRequestHeaders:yo(g),networkResponseHeaders:yo(y),beforeAddRecordingEvent:E,_experiments:i},"number"==typeof o&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${o} })`),this._initialOptions.sessionSampleRate=o),"number"==typeof a&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${a} })`),this._initialOptions.errorSampleRate=a),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${po}`:po),this._isInitialized&&fo())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return mo}set _isInitialized(e){mo=e}setupOnce(){fo()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop():Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){const e=function(e){const t=(0,m.Gd)().getClient(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...(0,o.Jr)(e)};return n?(null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set."),"number"==typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate),"number"==typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(console.warn("SDK client is not available."),r)}(this._initialOptions);this._replay=new lo({options:e,recordingOptions:this._recordingOptions})}}function yo(e){return[...ho,...e.map((e=>e.toLowerCase()))]}go.__initStatic();var _o=n(9553),vo=n(516);const bo=100,wo=5e3,ko=36e5;function So(e,t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.info(`[Offline]: ${e}`,t)}function To(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function xo(e){return To(e.getAllKeys())}function Ro(e){let t;function n(){return null==t&&(t=function(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=To(n);return e=>r.then((n=>e(n.transaction(t,"readwrite").objectStore(t))))}(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{insert:async t=>{try{const r=await V(t,e.textEncoder);await function(e,t,n){return e((e=>xo(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),To(e.transaction)}))))}(n(),r,e.maxQueueSize||30)}catch(e){}},pop:async()=>{try{const t=await function(e){return e((e=>xo(e).then((t=>{if(0!==t.length)return To(e.get(t[0])).then((n=>(e.delete(t[0]),To(e.transaction).then((()=>n)))))}))))}(n());if(t)return function(e,t,n){let r="string"==typeof e?t.encode(e):e;function i(e){const t=r.subarray(0,e);return r=r.subarray(e+1),t}function o(){let e=r.indexOf(10);return e<0&&(e=r.length),JSON.parse(n.decode(i(e)))}const a=o(),s=[];for(;r.length;){const e=o(),t="number"==typeof e.length?e.length:void 0;s.push([e,t?i(t):o()])}return[a,s]}(t,e.textEncoder||new TextEncoder,e.textDecoder||new TextDecoder)}catch(e){}}}}function Co(e){return function(e){return t=>e({...t,createStore:Ro})}(function(e){return t=>{const n=e(t),r=t.createStore?t.createStore(t):void 0;let i,o=wo;function a(e){r&&(i&&clearTimeout(i),i=setTimeout((async()=>{i=void 0;const e=await r.pop();e&&(So("Attempting to send previously queued event"),l(e).catch((e=>{So("Failed to retry sending",e)})))}),e),"number"!=typeof i&&i.unref&&i.unref())}function s(){i||(a(o),o=Math.min(2*o,ko))}async function l(e){try{const t=await n.send(e);let r=bo;if(t)if(t.headers&&t.headers["retry-after"])r=te(t.headers["retry-after"]);else if((t.statusCode||0)>=400)return t;return a(r),o=wo,t}catch(n){if(r&&await function(e,n,r){return i=["replay_event","replay_recording","client_report"],!H(e,((e,t)=>i.includes(t)))&&(!t.shouldStore||t.shouldStore(e,n,r));var i}(e,n,o))return await r.insert(e),s(),So("Error sending. Event queued",n),{};throw n}}return t.flushAtStartup&&s(),{send:l,flush:e=>n.flush(e)}}}(e))}const Oo=1e6,Do=String(0),No="main";let Io="",Ao="",Po="",Uo=he.navigator&&he.navigator.userAgent||"",Mo="";const Lo=he.navigator&&he.navigator.language||he.navigator&&he.navigator.languages&&he.navigator.languages[0]||"",jo=he.navigator&&he.navigator.userAgentData;var Bo;"object"==typeof(Bo=jo)&&null!==Bo&&"getHighEntropyValues"in Bo&&jo.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((e=>{if(Io=e.platform||"",Po=e.architecture||"",Mo=e.model||"",Ao=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];Uo=`${t.brand} ${t.version}`}})).catch((e=>{}));const Fo=new WeakMap;function Go(e){const t=pe.n2._sentryDebugIds;if(!t)return[];const n=(0,m.Gd)();if(!n)return[];const r=n.getClient();if(!r)return[];const i=r.getOptions();if(!i)return[];const o=i.stackParser;if(!o)return[];let a;const s=Fo.get(o);s?a=s:(a=new Map,Fo.set(o,a));const l=Object.keys(t).reduce(((e,n)=>{let r;const i=a.get(n);i?r=i:(r=o(n),a.set(n,r));for(let i=r.length-1;i>=0;i--){const o=r[i],a=o&&o.filename;if(o&&a){e[a]=t[n];break}}return e}),{}),c=[];for(const t of e)t&&l[t]&&c.push({type:"sourcemap",code_file:t,debug_id:l[t]});return c}function $o(e,t,n){return function(e){return e.samples.length<2?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!e.frames.length||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Profiling] Discarding profile because it contains no frames"),!1)}(t)?function(e,t,n){if("transaction"!==e.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==t)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${t} instead.`);const r=function(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return"string"==typeof t&&32!==t.length&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(e),i=function(e){return!("thread_metadata"in e)}(s=t)?function(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Do]:{name:No}}};if(!e.samples.length)return r;const i=e.samples[0].timestamp;for(let o=0;o<e.samples.length;o++){const a=e.samples[o];if(void 0===a.stackId){void 0===t&&(t=n,r.stacks[t]=[],n++),r.samples[o]={elapsed_since_start_ns:((a.timestamp-i)*Oo).toFixed(0),stack_id:t,thread_id:Do};continue}let s=e.stacks[a.stackId];const l=[];for(;s;){l.push(s.frameId);const t=e.frames[s.frameId];void 0===r.frames[s.frameId]&&(r.frames[s.frameId]={function:t.name,file:t.resourceId?e.resources[t.resourceId]:void 0,line:t.line,column:t.column}),s=void 0===s.parentId?void 0:e.stacks[s.parentId]}const c={elapsed_since_start_ns:((a.timestamp-i)*Oo).toFixed(0),stack_id:n,thread_id:Do};r.stacks[n]=l,r.samples[o]=c,n++}return r}(s):s,o="number"==typeof e.start_timestamp?1e3*e.start_timestamp:Date.now(),a="number"==typeof e.timestamp?1e3*e.timestamp:Date.now();var s;return{event_id:n,timestamp:new Date(o).toISOString(),platform:"javascript",version:"1",release:e.release||"",environment:e.environment||Se.J,runtime:{name:"javascript",version:he.navigator.userAgent},os:{name:Io,version:Ao,build_number:Uo},device:{locale:Lo,model:Mo,manufacturer:Uo,architecture:Po,is_emulator:!1},debug_meta:{images:Go(t.resources)},profile:i,transactions:[{name:e.transaction||"",id:e.event_id||(0,c.DM)(),trace_id:r,active_thread_id:Do,relative_start_ns:"0",relative_end_ns:(1e6*(a-o)).toFixed(0)}]}}(n,t,e):null}const Yo=new Map,qo=3e4;let Ho=!1;function Wo(e){return e?Vo(e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Profiling] Transaction is undefined, skipping profiling"),e)}function Vo(e){const t=he.Profiler;if("function"!=typeof t)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."),e;if(Ho)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Profiling] Profiling has been disabled for the duration of the current user session."),e;const n=(0,m.Gd)().getClient(),r=n&&n.getOptions();if(!r)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Profiling] Profiling disabled, no options found."),e;const i=r.profilesSampleRate;if(!("number"!=typeof(o=i)&&"boolean"!=typeof o||"number"==typeof o&&isNaN(o)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),0):!0===o||!1===o||!(o<0||o>1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${o}.`),0)))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("[Profiling] Discarding profile because of invalid sample rate."),e;var o;if(!i)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),e;if(!(!0===i||Math.random()<i))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(i)})`),e;const a=Math.floor(qo/10);let s;try{s=new t({sampleInterval:10,maxBufferSize:a})}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(l.kg.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),l.kg.log("[Profiling] Disabling profiling for current user session.")),Ho=!0}if(!s)return e;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(`[Profiling] started profiling transaction: ${e.name||e.description}`);const u=(0,c.DM)();async function d(){if(!e)return null;if(!s)return null;const t=e.startChild({description:"profiler.stop",op:"profiler"});return s.stop().then((n=>(t.finish(),f&&(he.clearTimeout(f),f=void 0),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(`[Profiling] stopped profiling of transaction: ${e.name||e.description}`),n?(function(e,t){if(Yo.set(e,t),Yo.size>30){const e=Yo.keys().next().value;Yo.delete(e)}}(u,n),null):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(`[Profiling] profiler returned null profile for: ${e.name||e.description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null)))).catch((e=>(t.finish(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Profiling] error while stopping profiler:",e),null)))}let f=he.setTimeout((()=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Profiling] max profile duration elapsed, stopping profiling for:",e.name||e.description),d()}),qo);const p=e.finish.bind(e);return e.finish=function(){return e?(d().then((()=>{e.setContext("profile",{profile_id:u}),p()}),(()=>{p()})),e):p()},e}class Zo{constructor(){Zo.prototype.__init.call(this),Zo.prototype.__init2.call(this)}__init(){this.name="BrowserProfilingIntegration"}__init2(){this.getCurrentHub=void 0}setupOnce(e,t){this.getCurrentHub=t;const n=this.getCurrentHub().getClient();n&&"function"==typeof n.on?(n.on("startTransaction",(e=>{Vo(e)})),n.on("beforeEnvelope",(e=>{if(!Yo.size)return;const t=function(e){const t=[];return H(e,((e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){const r=e[n];r&&r.contexts&&r.contexts.profile&&r.contexts.profile.profile_id&&t.push(e[n])}})),t}(e);if(!t.length)return;const n=[];for(const e of t){const t=e&&e.contexts,r=t&&t.profile&&t.profile.profile_id;if(!r){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log("[Profiling] cannot find profile for a transaction without a profile context");continue}t&&t.profile&&delete t.profile;const i=Yo.get(r);if(!i){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.log(`[Profiling] Could not retrieve profile for transaction: ${r}`);continue}Yo.delete(r);const o=$o(r,i,e);o&&n.push(o)}!function(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n])}(e,n)}))):l.kg.warn("[Profiling] Client does not support hooks, profiling will be disabled")}}let Jo={};he.Sentry&&he.Sentry.Integrations&&(Jo=he.Sentry.Integrations);const Ko={...Jo,...r,...i};function Qo(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:g}],version:g},function(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=Gt),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),he.SENTRY_RELEASE&&he.SENTRY_RELEASE.id&&(e.release=he.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(0,z.Sq)(e.stackParser||bt),integrations:ve(e),transport:e.transport||((0,et.Ak)()?nt:it)};!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?l.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=(0,m.Gd)();n.getScope().update(t.initialScope);const r=new e(t);n.bindClient(r)}(Xe,t),e.autoSessionTracking&&function(){if(void 0===he.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const e=(0,m.Gd)();e.captureSession&&(Jt(e),(0,Fe.oq)("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&Jt((0,m.Gd)())})))}()}(e)}var Xo=n(8679),ea=n.n(Xo),ta=n(7294);const na="ui.react.render",ra="ui.react.mount",ia="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/profiler.tsx",oa="unknown";class aa extends ta.Component{__init(){this._mountSpan=void 0}__init2(){this._updateSpan=void 0}static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(e){super(e),aa.prototype.__init.call(this),aa.prototype.__init2.call(this);const{name:t,disabled:n=!1}=this.props;if(n)return;const r=ca();r&&(this._mountSpan=r.startChild({description:`<${t}>`,op:ra}))}componentDidMount(){this._mountSpan&&this._mountSpan.finish()}shouldComponentUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){const t=Object.keys(e).filter((t=>e[t]!==this.props.updateProps[t]));if(t.length>0){const e=(0,ke.ph)();this._updateSpan=this._mountSpan.startChild({data:{changedProps:t},description:`<${this.props.name}>`,op:"ui.react.update",startTimestamp:e})}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.finish(),this._updateSpan=void 0)}componentWillUnmount(){const{name:e,includeRender:t=!0}=this.props;this._mountSpan&&t&&this._mountSpan.startChild({description:`<${e}>`,endTimestamp:(0,ke.ph)(),op:na,startTimestamp:this._mountSpan.endTimestamp})}render(){return this.props.children}}function sa(e,t){const n=t&&t.name||e.displayName||e.name||oa,r=r=>ta.createElement(aa,{...t,name:n,updateProps:r,__self:this,__source:{fileName:ia,lineNumber:146}},ta.createElement(e,{...r,__self:this,__source:{fileName:ia,lineNumber:147}}));return r.displayName=`profiler(${n})`,ea()(r,e),r}function la(e,t={disabled:!1,hasRenderSpan:!0}){const[n]=ta.useState((()=>{if(t&&t.disabled)return;const n=ca();return n?n.startChild({description:`<${e}>`,op:ra}):void 0}));ta.useEffect((()=>(n&&n.finish(),()=>{n&&t.hasRenderSpan&&n.startChild({description:`<${e}>`,endTimestamp:(0,ke.ph)(),op:na,startTimestamp:n.endTimestamp})})),[])}function ca(e=(0,m.Gd)()){if(e){const t=e.getScope();if(t)return t.getTransaction()}}aa.__initStatic();const ua="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx",da="unknown",fa={componentStack:null,error:null,eventId:null};class pa extends ta.Component{__init(){this.state=fa}__init2(){this._openFallbackReportDialog=!0}constructor(e){super(e),pa.prototype.__init.call(this),pa.prototype.__init2.call(this),pa.prototype.__init3.call(this);const t=(0,m.Gd)().getClient();t&&t.on&&e.showDialog&&(this._openFallbackReportDialog=!1,t.on("afterSendEvent",(t=>{t.type||t.event_id!==this._lastEventId||$t({...e.dialogOptions,eventId:this._lastEventId})})))}componentDidCatch(e,{componentStack:t}){const{beforeCapture:n,onError:r,showDialog:i,dialogOptions:o}=this.props;O((a=>{if(function(e){const t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(ta.version)&&(0,B.VZ)(e)){const n=new Error(e.message);n.name=`React ErrorBoundary ${n.name}`,n.stack=t,function(e,t){const n=new WeakMap;!function e(t,r){if(!n.has(t))return t.cause?(n.set(t,!0),e(t.cause,r)):void(t.cause=r)}(e,t)}(e,n)}n&&n(a,e,t);const s=_(e,{contexts:{react:{componentStack:t}}});r&&r(e,t,s),i&&(this._lastEventId=s,this._openFallbackReportDialog&&$t({...o,eventId:s})),this.setState({error:e,componentStack:t,eventId:s})}))}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&r(e,t,n)}__init3(){this.resetErrorBoundary=()=>{const{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(fa)}}render(){const{fallback:e,children:t}=this.props,n=this.state;if(n.error){let t;return t="function"==typeof e?e({error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):e,ta.isValidElement(t)?t:(e&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("fallback did not produce a valid ReactElement"),null)}return"function"==typeof t?t():t}}function ha(e,t){const n=e.displayName||e.name||da,r=n=>ta.createElement(pa,{...t,__self:this,__source:{fileName:ua,lineNumber:224}},ta.createElement(e,{...n,__self:this,__source:{fileName:ua,lineNumber:225}}));return r.displayName=`errorBoundary(${n})`,ea()(r,e),r}const ma="redux.action",ga="info",ya={actionTransformer:e=>e,stateTransformer:e=>e||null};function _a(e){const t={...ya,...e};return e=>(n,r)=>e(((e,r)=>{const i=n(e,r);return w((e=>{const n=t.actionTransformer(r);null!=n&&e.addBreadcrumb({category:ma,data:n,type:ga});const a=t.stateTransformer(i);if(null!=a){const t=(0,m.Gd)().getClient(),n=t&&t.getOptions(),r=n&&n.normalizeDepth||3,i={state:{type:"redux",value:a}};(0,o.xp)(i,"__sentry_override_normalization_depth__",3+r),e.setContext("state",i)}else e.setContext("state",null);const{configureScopeWithState:s}=t;"function"==typeof s&&s(e,i)})),i}),r)}function va(e,t,n){return(r,i=!0,o=!0)=>{let a,s;i&&he&&he.location&&ba(t,he.location,n,((e,t="url")=>{s=e,a=r({name:s,op:"pageload",tags:{"routing.instrumentation":"react-router-v3"},metadata:{source:t}})})),o&&e.listen&&e.listen((e=>{if("PUSH"===e.action||"POP"===e.action){a&&a.finish();const i={"routing.instrumentation":"react-router-v3"};s&&(i.from=s),ba(t,e,n,((e,t="url")=>{s=e,a=r({name:s,op:"navigation",tags:i,metadata:{source:t}})}))}}))}}function ba(e,t,n,r){let i=t.pathname;n({location:t,routes:e},((e,t,n)=>{if(e||!n)return r(i);const o=function(e){if(!Array.isArray(e)||0===e.length)return"";const t=e.filter((e=>!!e.path));let n=-1;for(let e=t.length-1;e>=0;e--){const r=t[e];if(r.path&&r.path.startsWith("/")){n=e;break}}return t.slice(n).filter((({path:e})=>!!e)).map((({path:e})=>e)).join("")}(n.routes||[]);return 0===o.length||"/*"===o?r(i):(i=o,r(i,"route"))}))}const wa="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouter.tsx";let ka;function Sa(e,t,n){return Ta(e,"react-router-v4",t,n)}function Ea(e,t,n){return Ta(e,"react-router-v5",t,n)}function Ta(e,t,n=[],r){function i(e){if(0===n.length||!r)return[e,"url"];const t=xa(n,e,r);for(let e=0;e<t.length;e++)if(t[e].match.isExact)return[t[e].match.path,"route"];return[e,"url"]}const o={"routing.instrumentation":t};return(t,n=!0,r=!0)=>{const a=e&&e.location?e.location.pathname:he&&he.location?he.location.pathname:void 0;if(n&&a){const[e,n]=i(a);ka=t({name:e,op:"pageload",tags:o,metadata:{source:n}})}r&&e.listen&&e.listen(((e,n)=>{if(n&&("PUSH"===n||"POP"===n)){ka&&ka.finish();const[n,r]=i(e.pathname);ka=t({name:n,op:"navigation",tags:o,metadata:{source:r}})}}))}}function xa(e,t,n,r=[]){return e.some((e=>{const i=e.path?n(t,e):r.length?r[r.length-1].match:function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}}(t);return i&&(r.push({route:e,match:i}),e.routes&&xa(e.routes,t,n,r)),!!i})),r}function Ra(e){const t=e.displayName||e.name,n=t=>(ka&&t&&t.computedMatch&&t.computedMatch.isExact&&ka.setName(t.computedMatch.path,"route"),ta.createElement(e,{...t,__self:this,__source:{fileName:wa,lineNumber:174}}));return n.displayName=`sentryRoute(${t})`,ea()(n,e),n}const Ca="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouterv6.tsx";let Oa,Da,Na,Ia,Aa,Pa,Ua,Ma;const La={"routing.instrumentation":"react-router-v6"};function ja(e,t,n,r,i){return(o,a=!0,s=!0)=>{const l=he&&he.location&&he.location.pathname;a&&l&&(Oa=o({name:l,op:"pageload",tags:La,metadata:{source:"url"}})),Da=e,Na=t,Ia=n,Pa=i,Aa=r,Ua=o,Ma=s}}function Ba(e,t,n){if(!e||0===e.length)return[t.pathname,"url"];let r="";if(n)for(let e=0;e<n.length;e++){const i=n[e],o=i.route;if(o){if(o.index)return[i.pathname,"route"];const e=o.path;if(e){const n="/"===e[0]||"/"===r[r.length-1]?e:`/${e}`;if(r+=n,i.pathname===t.pathname)return(0,Ye.$A)(r)!==(0,Ye.$A)(i.pathname)&&"/*"!==r.slice(-2)?[n,"route"]:[r,"route"]}}}return[t.pathname,"url"]}function za(e,t,n){const r=Array.isArray(n)?n:Pa(t,e);Oa&&r&&Oa.setName(...Ba(t,e,r))}function Fa(e,t,n,r){const i=Array.isArray(r)?r:Pa(t,e);if(Ma&&("PUSH"===n||"POP"===n)&&i){Oa&&Oa.finish();const[n,r]=Ba(t,e,i);Oa=Ua({name:n,op:"navigation",tags:La,metadata:{source:r}})}}function Ga(e){if(!(Da&&Na&&Ia&&Aa&&Pa&&Ua))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n      useEffect: ${Da}. useLocation: ${Na}. useNavigationType: ${Ia}.\n      createRoutesFromChildren: ${Aa}. matchRoutes: ${Pa}. customStartTransaction: ${Ua}.`),e;let t=!0;const n=n=>{const r=Na(),i=Ia();return Da((()=>{const e=Aa(n.children);t?(za(r,e),t=!1):Fa(r,e,i)}),[r,i]),ta.createElement(e,{...n,__self:this,__source:{fileName:Ca,lineNumber:197}})};return ea()(n,e),n}function $a(e){if(!(Da&&Na&&Ia&&Pa&&Ua))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;let t=!0;return(n,r)=>ta.createElement((()=>{const i=e(n,r),o=Na(),a=Ia(),s="string"==typeof r||r&&r.pathname?r:o;return Da((()=>{const e="string"==typeof s?{pathname:s}:s;t?(za(e,n),t=!1):Fa(e,n,a)}),[a,s]),i}),{__self:this,__source:{fileName:Ca,lineNumber:248}})}function Ya(e){return function(t,n){const r=e(t,n);return"POP"===r.state.historyAction&&Oa&&za(r.state.location,t),r.subscribe((e=>{const n=e.location;Ma&&("PUSH"===e.historyAction||"POP"===e.historyAction)&&Oa&&Fa(n,t,e.historyAction)})),r}}},126:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BROWSER_TRACING_INTEGRATION_ID:()=>G,BrowserTracing:()=>U,IdleTransaction:()=>W,Integrations:()=>K,Span:()=>F,SpanStatus:()=>J,TRACEPARENT_REGEXP:()=>H,Transaction:()=>z,addExtensionMethods:()=>M,defaultRequestInstrumentationOptions:()=>$,extractTraceparentData:()=>j,getActiveTransaction:()=>L,hasTracingEnabled:()=>Y,instrumentOutgoingRequests:()=>V,spanStatusfromHttpCode:()=>B,startIdleTransaction:()=>Z,stripUrlQueryAndFragment:()=>q});var r,i=n(9553),o=n(758),a=n(9791),s=n(7638),l=n(8903),c=n(8069),u=n(516),d=n(7522),f=n(6956),p=n(5544),h=n(6890);!function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(r||(r={}));var m=n(4307),g=n(1422),y=n(2343),_=n(535),v=n(2844),b=n(7597);function w(e){const t=(0,m.x)([e,"call",e=>e(),"access",e=>e.getClient,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e()]);return"sentry"!==((0,m.x)([t,"optionalAccess",e=>e.instrumenter])||"sentry")}class k{static __initStatic(){this.id="Apollo"}__init(){this.name=k.id}constructor(e={useNestjs:!1}){k.prototype.__init.call(this),this._useNest=!!e.useNestjs}loadDependency(){return this._useNest?this._module=this._module||(0,g.$y)("@nestjs/graphql"):this._module=this._module||(0,g.$y)("apollo-server-core"),this._module}setupOnce(e,t){if(w(t))("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.log("Apollo Integration is skipped because of instrumenter configuration.");else if(this._useNest){const e=this.loadDependency();if(!e)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.error("Apollo-NestJS Integration was unable to require @nestjs/graphql package."));(0,_.hl)(e.GraphQLFactory.prototype,"mergeWithSchema",(function(e){return function(...n){return(0,_.hl)(this.resolversExplorerService,"explore",(function(e){return function(){return S((0,v.lE)(e.call(this)),t)}})),e.call(this,...n)}}))}else{const e=this.loadDependency();if(!e)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.error("Apollo Integration was unable to require apollo-server-core package."));(0,_.hl)(e.ApolloServerBase.prototype,"constructSchema",(function(e){return function(){if(!this.config.resolvers)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this.config.schema?(y.kg.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `schema` property.If you are using NestJS with Apollo, please use `Sentry.Integrations.Apollo({ useNestjs: true })` instead."),y.kg.warn()):this.config.modules&&y.kg.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `modules` property."),y.kg.error("Skipping tracing as no resolvers found on the `ApolloServer` instance.")),e.call(this);const n=(0,v.lE)(this.config.resolvers);return this.config.resolvers=S(n,t),e.call(this)}}))}}}function S(e,t){return e.map((e=>(Object.keys(e).forEach((n=>{Object.keys(e[n]).forEach((r=>{"function"==typeof e[n][r]&&function(e,t,n,r){(0,_.hl)(e[t],n,(function(e){return function(...i){const o=r().getScope(),a=(0,m.x)([o,"optionalAccess",e=>e.getSpan,"call",e=>e()]),s=(0,m.x)([a,"optionalAccess",e=>e.startChild,"call",e=>e({description:`${t}.${n}`,op:"graphql.resolve"})]),l=e.call(this,...i);return(0,b.J8)(l)?l.then((e=>((0,m.x)([s,"optionalAccess",e=>e.finish,"call",e=>e()]),e))):((0,m.x)([s,"optionalAccess",e=>e.finish,"call",e=>e()]),l)}}))}(e,n,r,t)}))})),e)))}k.__initStatic();class E{static __initStatic(){this.id="Express"}__init(){this.name=E.id}constructor(e={}){E.prototype.__init.call(this),this._router=e.router||e.app,this._methods=(Array.isArray(e.methods)?e.methods:[]).concat("use")}setupOnce(e,t){this._router?w(t)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.log("Express Integration is skipped because of instrumenter configuration."):(function(e,t=[]){t.forEach((t=>function(e,t){const n=e[t];return e[t]=function(...e){return n.call(this,...function(e,t){return e.map((e=>"function"==typeof e?T(e,t):Array.isArray(e)?e.map((e=>"function"==typeof e?T(e,t):e)):e))}(e,t))},e}(e,t)))}(this._router,this._methods),function(e){const t="settings"in e;t&&void 0===e._router&&e.lazyrouter&&e.lazyrouter();const n=t?e._router:e;if(!n)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.debug("Routing instrumentation is currently only supported in Express 4."));const r=Object.getPrototypeOf(n),i=r.process_params;r.process_params=function(e,t,n,r,o){n._reconstructedRoute||(n._reconstructedRoute="");const{layerRoutePath:a,isRegex:s,isArray:l,numExtraSegments:c}=function(e){const t=(0,m.x)([e,"access",e=>e.route,"optionalAccess",e=>e.path]),n=(0,b.Kj)(t),r=Array.isArray(t);if(!t)return{isRegex:n,isArray:r,numExtraSegments:0};const i=r?Math.max(t.reduce(((e,t)=>e+(0,f.$A)(t.toString())),0)-(0,f.$A)(e.path||""),0):0,o=function(e,t){return e?t.map((e=>e.toString())).join(","):t&&t.toString()}(r,t);return{layerRoutePath:o,isRegex:n,isArray:r,numExtraSegments:i}}(e);(a||s||l)&&(n._hasParameters=!0);const u=(a||e.path||"").split("/").filter((e=>e.length>0&&(s||l||!e.includes("*")))).join("/");if(u&&u.length>0&&(n._reconstructedRoute+=`/${u}${s?"/":""}`),(0,f.$A)(n.originalUrl||"")+c===(0,f.$A)(n._reconstructedRoute)){n._hasParameters||n._reconstructedRoute!==n.originalUrl&&(n._reconstructedRoute=n.originalUrl?(0,f.rt)(n.originalUrl):n.originalUrl);const e=r.__sentry_transaction;if(e&&"custom"!==e.metadata.source){const t=n._reconstructedRoute||"/";e.setName(...function(e,t={}){const n=e.method&&e.method.toUpperCase();let r="",i="url";t.customRoute||e.route?(r=t.customRoute||`${e.baseUrl||""}${e.route&&e.route.path}`,i="route"):(e.originalUrl||e.url)&&(r=(0,f.rt)(e.originalUrl||e.url||""));let o="";return t.method&&n&&(o+=n),t.method&&t.path&&(o+=" "),t.path&&r&&(o+=r),[o,i]}(n,{path:!0,method:!0,customRoute:t}))}}return i.call(this,e,t,n,r,o)}}(this._router)):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.error("ExpressIntegration is missing an Express instance")}}function T(e,t){const n=e.length;switch(n){case 2:return function(n,r){const i=r.__sentry_transaction;if(i){const n=i.startChild({description:e.name,op:`middleware.express.${t}`});r.once("finish",(()=>{n.finish()}))}return e.call(this,n,r)};case 3:return function(n,r,i){const o=r.__sentry_transaction,a=(0,m.x)([o,"optionalAccess",e=>e.startChild,"call",n=>n({description:e.name,op:`middleware.express.${t}`})]);e.call(this,n,r,(function(...e){(0,m.x)([a,"optionalAccess",e=>e.finish,"call",e=>e()]),i.call(this,...e)}))};case 4:return function(n,r,i,o){const a=i.__sentry_transaction,s=(0,m.x)([a,"optionalAccess",e=>e.startChild,"call",n=>n({description:e.name,op:`middleware.express.${t}`})]);e.call(this,n,r,i,(function(...e){(0,m.x)([s,"optionalAccess",e=>e.finish,"call",e=>e()]),o.call(this,...e)}))};default:throw new Error(`Express middleware takes 2-4 arguments. Got: ${n}`)}}E.__initStatic();class x{constructor(){x.prototype.__init.call(this)}static __initStatic(){this.id="GraphQL"}__init(){this.name=x.id}loadDependency(){return this._module=this._module||(0,g.$y)("graphql/execution/execute.js")}setupOnce(e,t){if(w(t))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.log("GraphQL Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();n?(0,_.hl)(n,"execute",(function(e){return function(...n){const r=t().getScope(),i=(0,m.x)([r,"optionalAccess",e=>e.getSpan,"call",e=>e()]),o=(0,m.x)([i,"optionalAccess",e=>e.startChild,"call",e=>e({description:"execute",op:"graphql.execute"})]);(0,m.x)([r,"optionalAccess",e=>e.setSpan,"call",e=>e(o)]);const a=e.call(this,...n);return(0,b.J8)(a)?a.then((e=>((0,m.x)([o,"optionalAccess",e=>e.finish,"call",e=>e()]),(0,m.x)([r,"optionalAccess",e=>e.setSpan,"call",e=>e(i)]),e))):((0,m.x)([o,"optionalAccess",e=>e.finish,"call",e=>e()]),(0,m.x)([r,"optionalAccess",e=>e.setSpan,"call",e=>e(i)]),a)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.error("GraphQL Integration was unable to require graphql/execution package.")}}x.__initStatic();const R=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],C={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]};class O{static __initStatic(){this.id="Mongo"}__init(){this.name=O.id}constructor(e={}){O.prototype.__init.call(this),this._operations=Array.isArray(e.operations)?e.operations:R,this._describeOperations=!("describeOperations"in e)||e.describeOperations,this._useMongoose=!!e.useMongoose}loadDependency(){const e=this._useMongoose?"mongoose":"mongodb";return this._module=this._module||(0,g.$y)(e)}setupOnce(e,t){if(w(t))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.log("Mongo Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();if(n)this._instrumentOperations(n.Collection,this._operations,t);else{const e=this._useMongoose?"mongoose":"mongodb";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.error(`Mongo Integration was unable to require \`${e}\` package.`)}}_instrumentOperations(e,t,n){t.forEach((t=>this._patchOperation(e,t,n)))}_patchOperation(e,t,n){if(!(t in e.prototype))return;const r=this._getSpanContextFromOperationArguments.bind(this);(0,_.hl)(e.prototype,t,(function(e){return function(...i){const o=i[i.length-1],a=n().getScope(),s=(0,m.x)([a,"optionalAccess",e=>e.getSpan,"call",e=>e()]);if("function"!=typeof o||"mapReduce"===t&&2===i.length){const n=(0,m.x)([s,"optionalAccess",e=>e.startChild,"call",e=>e(r(this,t,i))]),o=e.call(this,...i);if((0,b.J8)(o))return o.then((e=>((0,m.x)([n,"optionalAccess",e=>e.finish,"call",e=>e()]),e)));if((l=o)&&"object"==typeof l&&l.once&&"function"==typeof l.once){const e=o;try{e.once("close",(()=>{(0,m.x)([n,"optionalAccess",e=>e.finish,"call",e=>e()])}))}catch(e){(0,m.x)([n,"optionalAccess",e=>e.finish,"call",e=>e()])}return e}return(0,m.x)([n,"optionalAccess",e=>e.finish,"call",e=>e()]),o}var l;const c=(0,m.x)([s,"optionalAccess",e=>e.startChild,"call",e=>e(r(this,t,i.slice(0,-1)))]);return e.call(this,...i.slice(0,-1),(function(e,t){(0,m.x)([c,"optionalAccess",e=>e.finish,"call",e=>e()]),o(e,t)}))}}))}_getSpanContextFromOperationArguments(e,t,n){const r={collectionName:e.collectionName,dbName:e.dbName,namespace:e.namespace,"db.system":"mongodb"},i={op:"db",description:t,data:r},o=C[t],a=Array.isArray(this._describeOperations)?this._describeOperations.includes(t):this._describeOperations;if(!o||!a)return i;try{if("mapReduce"===t){const[e,t]=n;r[o[0]]="string"==typeof e?e:e.name||"<anonymous>",r[o[1]]="string"==typeof t?t:t.name||"<anonymous>"}else for(let e=0;e<o.length;e++)r[o[e]]=JSON.stringify(n[e])}catch(e){}return i}}O.__initStatic();class D{constructor(){D.prototype.__init.call(this)}static __initStatic(){this.id="Mysql"}__init(){this.name=D.id}loadDependency(){return this._module=this._module||(0,g.$y)("mysql/lib/Connection.js")}setupOnce(e,t){if(w(t))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.log("Mysql Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();n?(0,_.hl)(n,"createQuery",(function(e){return function(n,r,i){const o=t().getScope(),a=(0,m.x)([o,"optionalAccess",e=>e.getSpan,"call",e=>e()]),s=(0,m.x)([a,"optionalAccess",e=>e.startChild,"call",e=>e({description:"string"==typeof n?n:n.sql,op:"db",data:{"db.system":"mysql"}})]);return"function"==typeof i?e.call(this,n,r,(function(e,t,n){(0,m.x)([s,"optionalAccess",e=>e.finish,"call",e=>e()]),i(e,t,n)})):"function"==typeof r?e.call(this,n,(function(e,t,n){(0,m.x)([s,"optionalAccess",e=>e.finish,"call",e=>e()]),r(e,t,n)})):e.call(this,n,r,i)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.error("Mysql Integration was unable to require `mysql` package.")}}D.__initStatic();class N{static __initStatic(){this.id="Postgres"}__init(){this.name=N.id}constructor(e={}){N.prototype.__init.call(this),this._usePgNative=!!e.usePgNative}loadDependency(){return this._module=this._module||(0,g.$y)("pg")}setupOnce(e,t){if(w(t))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.log("Postgres Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();if(!n)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.error("Postgres Integration was unable to require `pg` package."));if(this._usePgNative&&!(0,m.x)([n,"access",e=>e.native,"optionalAccess",e=>e.Client]))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.error("Postgres Integration was unable to access 'pg-native' bindings."));const{Client:r}=this._usePgNative?n.native:n;(0,_.hl)(r.prototype,"query",(function(e){return function(n,r,i){const o=t().getScope(),a=(0,m.x)([o,"optionalAccess",e=>e.getSpan,"call",e=>e()]),s=(0,m.x)([a,"optionalAccess",e=>e.startChild,"call",e=>e({description:"string"==typeof n?n:n.text,op:"db",data:{"db.system":"postgresql"}})]);if("function"==typeof i)return e.call(this,n,r,(function(e,t){(0,m.x)([s,"optionalAccess",e=>e.finish,"call",e=>e()]),i(e,t)}));if("function"==typeof r)return e.call(this,n,(function(e,t){(0,m.x)([s,"optionalAccess",e=>e.finish,"call",e=>e()]),r(e,t)}));const l=void 0!==r?e.call(this,n,r):e.call(this,n);return(0,b.J8)(l)?l.then((e=>((0,m.x)([s,"optionalAccess",e=>e.finish,"call",e=>e()]),e))):((0,m.x)([s,"optionalAccess",e=>e.finish,"call",e=>e()]),l)}}))}}N.__initStatic();var I=n(5659),A=n(1250);class P{static __initStatic(){this.id="Prisma"}__init(){this.name=P.id}constructor(e={}){var t;P.prototype.__init.call(this),(t=e.client)&&t.$use&&!e.client._sentryInstrumented?((0,_.xp)(e.client,"_sentryInstrumented",!0),e.client.$use(((e,t)=>{if(w(I.Gd))return t(e);const n=e.action,r=e.model;return(0,A.g)({name:r?`${r} ${n}`:n,op:"db.sql.prisma",data:{"db.system":"prisma"}},(()=>t(e)))}))):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&y.kg.warn(`Unsupported Prisma client provided to PrismaIntegration. Provided client: ${JSON.stringify(e.client)}`)}setupOnce(){}}P.__initStatic();const U=i.gE,M=o.r,L=a.x1,j=s.q,B=l.Zd,z=c.Y,F=l.Dr,G=i.N,$=u.k3,Y=d.z,q=f.rt,H=s.K,W=p.io,V=u.L7,Z=h.l,J=r,K={BrowserTracing:U,Apollo:k,Express:E,GraphQL:x,Mongo:O,Mysql:D,Postgres:N,Prisma:P};("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,o.r)()},9181:(e,t,n)=>{"use strict";n.d(t,{EN:()=>c,IQ:()=>u,bU:()=>o});var r=n(7597),i=n(2343);const o="baggage",a="sentry-",s=/^sentry-/,l=8192;function c(e){if(!(0,r.HD)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>({...e,...d(t)})),{});else{if(!e)return;t=d(e)}const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(s)&&(e[t.slice(a.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}function u(e){return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,n],r)=>{const o=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===r?o:`${e},${o}`;return a.length>l?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${a}${t}`]=n),e)),{}))}function d(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}},8464:(e,t,n)=>{"use strict";n.d(t,{Rt:()=>a,l4:()=>l,qT:()=>c});var r=n(7597);const i=(0,n(1235).Rf)(),o=80;function a(e,t={}){try{let n=e;const r=5,i=[];let a=0,l=0;const c=" > ",u=c.length;let d;const f=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||o;for(;n&&a++<r&&(d=s(n,f),!("html"===d||a>1&&l+i.length*u+d.length>=p));)i.push(d),l+=d.length,n=n.parentNode;return i.reverse().join(c)}catch(e){return"<unknown>"}}function s(e,t){const n=e,i=[];let o,a,s,l,c;if(!n||!n.tagName)return"";i.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(u&&u.length)u.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),o=n.className,o&&(0,r.HD)(o))for(a=o.split(/\s+/),c=0;c<a.length;c++)i.push(`.${a[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)s=d[c],l=n.getAttribute(s),l&&i.push(`[${s}="${l}"]`);return i.join("")}function l(){try{return i.document.location.href}catch(e){return""}}function c(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}},4307:(e,t,n)=>{"use strict";function r(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}n.d(t,{x:()=>r})},8518:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{S:()=>i,n:()=>r})},2533:(e,t,n)=>{"use strict";n.d(t,{xU:()=>d,oq:()=>h});var r=n(7597),i=n(2343),o=n(535),a=n(360),s=n(8823),l=n(1235);const c=(0,l.Rf)(),u=(0,l.Rf)(),d="__sentry_xhr_v2__",f={},p={};function h(e,t){f[e]=f[e]||[],f[e].push(t),function(e){if(!p[e])switch(p[e]=!0,e){case"console":"console"in u&&i.RU.forEach((function(e){e in u.console&&(0,o.hl)(u.console,e,(function(t){return function(...n){m("console",{args:n,level:e}),t&&t.apply(u.console,n)}}))}));break;case"dom":!function(){if(!("document"in u))return;const e=m.bind(null,"dom"),t=k(e,!0);u.document.addEventListener("click",t,!1),u.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=u[t]&&u[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,o.hl)(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){const r=k(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(e){}return t.call(this,n,r,i)}})),(0,o.hl)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in u))return;const e=XMLHttpRequest.prototype;(0,o.hl)(e,"open",(function(e){return function(...t){const n=t[1],i=this[d]={method:(0,r.HD)(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};(0,r.HD)(n)&&"POST"===i.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const e=this[d];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}m("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,o.hl)(this,"onreadystatechange",(function(e){return function(...t){return a(),e.apply(this,t)}})):this.addEventListener("readystatechange",a),(0,o.hl)(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,i=this[d];return i&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),(0,o.hl)(e,"send",(function(e){return function(...t){const n=this[d];return n&&void 0!==t[0]&&(n.body=t[0]),m("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":(0,s.t$)()&&(0,o.hl)(u,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:y(t),method:g(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:y(t),method:g(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return m("fetch",{...i}),e.apply(u,t).then((e=>(m("fetch",{...i,endTimestamp:Date.now(),response:e}),e)),(e=>{throw m("fetch",{...i,endTimestamp:Date.now(),error:e}),e}))}}));break;case"history":!function(){if(!function(){const e=c.chrome,t=e&&e.app&&e.app.runtime,n="history"in c&&!!c.history.pushState&&!!c.history.replaceState;return!t&&n}())return;const e=u.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=_,t=String(n);_=t,m("history",{from:e,to:t})}return e.apply(this,t)}}u.onpopstate=function(...t){const n=u.location.href,r=_;if(_=n,m("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,o.hl)(u.history,"pushState",t),(0,o.hl)(u.history,"replaceState",t)}();break;case"error":S=u.onerror,u.onerror=function(e,t,n,r,i){return m("error",{column:r,error:i,line:n,msg:e,url:t}),!(!S||S.__SENTRY_LOADER__)&&S.apply(this,arguments)},u.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":E=u.onunhandledrejection,u.onunhandledrejection=function(e){return m("unhandledrejection",e),!(E&&!E.__SENTRY_LOADER__)||E.apply(this,arguments)},u.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("unknown instrumentation type:",e)}}(e)}function m(e,t){if(e&&f[e])for(const n of f[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,a.$P)(n)}\nError:`,t)}}function g(e,t){return!!e&&"object"==typeof e&&!!e[t]}function y(e){return"string"==typeof e?e:e?g(e,"url")?e.url:e.toString?e.toString():"":""}let _;const v=1e3;let b,w;function k(e,t=!1){return n=>{if(!n||w===n)return;if(function(e){if("keypress"!==e.type)return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;const r="keypress"===n.type?"input":n.type;(void 0===b||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(w,n))&&(e({event:n,name:r,global:t}),w=n),clearTimeout(b),b=u.setTimeout((()=>{b=void 0}),v)}}let S=null,E=null},7597:(e,t,n)=>{"use strict";n.d(t,{Cy:()=>g,HD:()=>c,J8:()=>m,Kj:()=>h,PO:()=>d,TX:()=>s,V9:()=>_,VW:()=>a,VZ:()=>i,cO:()=>f,fm:()=>l,i2:()=>y,kK:()=>p,pt:()=>u});const r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(e,Error)}}function o(e,t){return r.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function u(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function d(e){return o(e,"Object")}function f(e){return"undefined"!=typeof Event&&_(e,Event)}function p(e){return"undefined"!=typeof Element&&_(e,Element)}function h(e){return o(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function g(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function y(e){return"number"==typeof e&&e!=e}function _(e,t){try{return e instanceof t}catch(e){return!1}}},2343:(e,t,n)=>{"use strict";n.d(t,{Cf:()=>a,RU:()=>o,kg:()=>l});var r=n(1235);const o=["debug","info","warn","error","log","assert","trace"];function a(e){if(!("console"in r.n2))return e();const t=r.n2.console,n={};o.forEach((e=>{const r=t[e]&&t[e].__sentry_original__;e in t&&r&&(n[e]=t[e],t[e]=r)}));try{return e()}finally{Object.keys(n).forEach((e=>{t[e]=n[e]}))}}function s(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?o.forEach((n=>{t[n]=(...t)=>{e&&a((()=>{r.n2.console[n](`Sentry Logger [${n}]:`,...t)}))}})):o.forEach((e=>{t[e]=()=>{}})),t}let l;l="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,r.YO)("logger",s):s()},2844:(e,t,n)=>{"use strict";n.d(t,{DM:()=>o,Db:()=>l,EG:()=>c,YO:()=>u,jH:()=>s,lE:()=>d});var r=n(535),i=n(1235);function o(){const e=i.n2,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){const{message:t,event_id:n}=e;if(t)return t;const r=a(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function l(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function c(e,t){const n=a(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function u(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function d(e){return Array.isArray(e)?e:[e]}},1422:(e,t,n)=>{"use strict";n.d(t,{$y:()=>a,KV:()=>i,l$:()=>o});var r=n(8518);function i(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(e,t){return e.require(t)}function a(t){let n;try{n=o(e,t)}catch(e){}try{const{cwd:r}=o(e,"process");n=o(e,`${r()}/node_modules/${t}`)}catch(e){}return n}e=n.hmd(e)},535:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>l,HK:()=>c,Jr:()=>m,Sh:()=>d,_j:()=>u,hl:()=>a,xp:()=>s,zf:()=>h});var r=n(8464),i=n(7597),o=n(7321);function a(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);if("function"==typeof i)try{l(i,r)}catch(e){}e[t]=i}function s(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function l(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,s(e,"__sentry_original__",t)}function c(e){return e.__sentry_original__}function u(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function d(e){if((0,i.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if((0,i.cO)(e)){const t={type:e.type,target:f(e.target),currentTarget:f(e.currentTarget),...p(e)};return"undefined"!=typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function f(e){try{return(0,i.kK)(e)?(0,r.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function p(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function h(e,t=40){const n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,o.$G)(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:(0,o.$G)(r,t)}return""}function m(e){return g(e,new Map)}function g(e,t){if((0,i.PO)(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=g(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(g(e,t))})),r}return e}},360:(e,t,n)=>{"use strict";n.d(t,{$P:()=>l,Sq:()=>a,pE:()=>o});const r=50,i=/\(error: (.*)\)/;function o(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const o=[],a=e.split("\n");for(let e=n;e<a.length;e++){const n=a[e];if(n.length>1024)continue;const s=i.test(n)?n.replace(i,"$1"):n;if(!s.match(/\S*Error: /)){for(const e of t){const t=e(s);if(t){o.push(t);break}}if(o.length>=r)break}}return function(e){if(!e.length)return[];const t=e.slice(0,r),n=t[t.length-1].function;n&&/sentryWrapped/.test(n)&&t.pop(),t.reverse();const i=t[t.length-1].function;return i&&/captureMessage|captureException/.test(i)&&t.pop(),t.map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(o)}}function a(e){return Array.isArray(e)?o(...e):e}const s="<anonymous>";function l(e){try{return e&&"function"==typeof e&&e.name||s}catch(e){return s}}},7321:(e,t,n)=>{"use strict";n.d(t,{$G:()=>i,U0:()=>a,nK:()=>o});var r=n(7597);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e,t=[],n=!1){return t.some((t=>function(e,t,n=!1){return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):!!(0,r.HD)(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}},8823:(e,t,n)=>{"use strict";n.d(t,{Ak:()=>o,Du:()=>a,t$:()=>s});var r=n(2343);const i=(0,n(1235).Rf)();function o(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function s(){if(!o())return!1;if(a(i.fetch))return!0;let e=!1;const t=i.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=a(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}},6893:(e,t,n)=>{"use strict";n.d(t,{$2:()=>a,WD:()=>o,cW:()=>s});var r,i=n(7597);function o(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(r||(r={}));class s{__init(){this._state=r.PENDING}__init2(){this._handlers=[]}constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),s.prototype.__init5.call(this),s.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===r.PENDING&&((0,i.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},1170:(e,t,n)=>{"use strict";n.d(t,{Z1:()=>f,ph:()=>u,yW:()=>c});var r=n(1422),i=n(1235);e=n.hmd(e);const o=(0,i.Rf)(),a={nowSeconds:()=>Date.now()/1e3},s=(0,r.KV)()?function(){try{return(0,r.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=o;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),l=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},c=a.nowSeconds.bind(a),u=l.nowSeconds.bind(l);let d;const f=(()=>{const{performance:e}=o;if(!e||!e.now)return void(d="none");const t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i<t,s=e.timing&&e.timing.navigationStart,l="number"==typeof s?Math.abs(s+n-r):t;return a||l<t?i<=l?(d="timeOrigin",e.timeOrigin):(d="navigationStart",s):(d="dateNow",r)})()},7638:(e,t,n)=>{"use strict";n.d(t,{K:()=>r,q:()=>i});const r=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function i(e){const t=e.match(r);if(!e||!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}},6956:(e,t,n)=>{"use strict";function r(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function i(e){return e.split(/[\?#]/,1)[0]}function o(e){return e.split(/\\?\//).filter((e=>e.length>0&&","!==e)).length}n.d(t,{$A:()=>o,en:()=>r,rt:()=>i})},1235:(e,t,n)=>{"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{Rf:()=>o,YO:()=>a,n2:()=>i});const i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function o(){return i}function a(e,t,n){const r=n||i,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}},5550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Authentication:()=>Pr,Management:()=>Ur,WebAuth:()=>Nr,default:()=>Mr,version:()=>tn});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function i(e,t){return e(t={exports:{}},t.exports),t.exports}var o=i((function(e){var t,n;t=r,n=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var i=e[r];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(r>0&&(i=i.replace(/^[\/]+/,"")),i=r<e.length-1?i.replace(/[\/]+$/,""):i.replace(/[\/]+$/,"/"),t.push(i))}var o=t.join("/"),a=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=n():t.urljoin=n()})),a="undefined"!=typeof Symbol&&Symbol,l=Array.prototype.slice,c=Object.prototype.toString,u=Function.prototype.bind||function(e){var t=this;if("function"!=typeof t||"[object Function]"!==c.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,r=l.call(arguments,1),i=Math.max(0,t.length-r.length),o=[],a=0;a<i;a++)o.push("$"+a);if(n=Function("binder","return function ("+o.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof n){var i=t.apply(this,r.concat(l.call(arguments)));return Object(i)===i?i:this}return t.apply(e,r.concat(l.call(arguments)))})),t.prototype){var u=function(){};u.prototype=t.prototype,n.prototype=new u,u.prototype=null}return n},d=u.call(Function.call,Object.prototype.hasOwnProperty),f=SyntaxError,p=Function,h=TypeError,m=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},g=Object.getOwnPropertyDescriptor;if(g)try{g({},"")}catch(Pn){g=null}var y=function(){throw new h},_=g?function(){try{return y}catch(e){try{return g(arguments,"callee").get}catch(e){return y}}}():y,v="function"==typeof a&&"function"==typeof Symbol&&"symbol"==typeof a("foo")&&"symbol"==typeof Symbol("bar")&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}(),b=Object.getPrototypeOf||function(e){return e.__proto__},w={},k="undefined"==typeof Uint8Array?void 0:b(Uint8Array),S={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":v?b([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":w,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":v?b(b([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&v?b((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&v?b((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":v?b(""[Symbol.iterator]()):void 0,"%Symbol%":v?Symbol:void 0,"%SyntaxError%":f,"%ThrowTypeError%":_,"%TypedArray%":k,"%TypeError%":h,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};try{null.error}catch(Pn){var E=b(b(Pn));S["%Error.prototype%"]=E}var T={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=u.call(Function.call,Array.prototype.concat),R=u.call(Function.apply,Array.prototype.splice),C=u.call(Function.call,String.prototype.replace),O=u.call(Function.call,String.prototype.slice),D=u.call(Function.call,RegExp.prototype.exec),N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,P=function(e,t){var n,r=e;if(d(T,r)&&(r="%"+(n=T[r])[0]+"%"),d(S,r)){var i=S[r];if(i===w&&(i=function e(t){var n;if("%AsyncFunction%"===t)n=m("async function () {}");else if("%GeneratorFunction%"===t)n=m("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=m("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=b(i.prototype))}return S[t]=n,n}(r)),void 0===i&&!t)throw new h("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new f("intrinsic "+e+" does not exist!")},U=function(e,t){if("string"!=typeof e||0===e.length)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new h('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/,e))throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=O(e,0,1),n=O(e,-1);if("%"===t&&"%"!==n)throw new f("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new f("invalid intrinsic syntax, expected opening `%`");var r=[];return C(e,N,(function(e,t,n,i){r[r.length]=n?C(i,I,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=P("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],R(n,x([0,1],l)));for(var c=1,u=!0;c<n.length;c+=1){var p=n[c],m=O(p,0,1),y=O(p,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new f("property names with quotes must have matching quotes");if("constructor"!==p&&u||(s=!0),d(S,o="%"+(r+="."+p)+"%"))a=S[o];else if(null!=a){if(!(p in a)){if(!t)throw new h("base intrinsic for "+e+" exists, but the property is not available.");return}if(g&&c+1>=n.length){var _=g(a,p);a=(u=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:a[p]}else u=d(a,p),a=a[p];u&&!s&&(S[o]=a)}}return a},M=i((function(e){var t=U("%Function.prototype.apply%"),n=U("%Function.prototype.call%"),r=U("%Reflect.apply%",!0)||u.call(n,t),i=U("%Object.getOwnPropertyDescriptor%",!0),o=U("%Object.defineProperty%",!0),a=U("%Math.max%");if(o)try{o({},"a",{value:1})}catch(e){o=null}e.exports=function(e){var t=r(u,n,arguments);return i&&o&&i(t,"length").configurable&&o(t,"length",{value:1+a(0,e.length-(arguments.length-1))}),t};var s=function(){return r(u,t,arguments)};o?o(e.exports,"apply",{value:s}):e.exports.apply=s})),L=(M.apply,M(U("String.prototype.indexOf"))),j=function(e,t){var n=U(e,!!t);return"function"==typeof n&&L(e,".prototype.")>-1?M(n):n},B=function(e){return e&&e.default||e}(Object.freeze({__proto__:null,default:{}})),z="function"==typeof Map&&Map.prototype,F=Object.getOwnPropertyDescriptor&&z?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,G=z&&F&&"function"==typeof F.get?F.get:null,$=z&&Map.prototype.forEach,Y="function"==typeof Set&&Set.prototype,q=Object.getOwnPropertyDescriptor&&Y?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,H=Y&&q&&"function"==typeof q.get?q.get:null,W=Y&&Set.prototype.forEach,V="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Z="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,J="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,K=Boolean.prototype.valueOf,Q=Object.prototype.toString,X=Function.prototype.toString,ee=String.prototype.match,te=String.prototype.slice,ne=String.prototype.replace,re=String.prototype.toUpperCase,ie=String.prototype.toLowerCase,oe=RegExp.prototype.test,ae=Array.prototype.concat,se=Array.prototype.join,le=Array.prototype.slice,ce=Math.floor,ue="function"==typeof BigInt?BigInt.prototype.valueOf:null,de=Object.getOwnPropertySymbols,fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,pe="function"==typeof Symbol&&"object"==typeof Symbol.iterator,he="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,me=Object.prototype.propertyIsEnumerable,ge=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ye(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||oe.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-ce(-e):ce(e);if(r!==e){var i=String(r),o=te.call(t,i.length+1);return ne.call(i,n,"$&_")+"."+ne.call(ne.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ne.call(t,n,"$&_")}var _e=B.custom,ve=Ee(_e)?_e:null;function be(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function we(e){return ne.call(String(e),/"/g,"&quot;")}function ke(e){return!("[object Array]"!==Re(e)||he&&"object"==typeof e&&he in e)}function Se(e){return!("[object RegExp]"!==Re(e)||he&&"object"==typeof e&&he in e)}function Ee(e){if(pe)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!fe)return!1;try{return fe.call(e),!0}catch(e){}return!1}var Te=Object.prototype.hasOwnProperty||function(e){return e in this};function xe(e,t){return Te.call(e,t)}function Re(e){return Q.call(e)}function Ce(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Oe(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+re.call(t.toString(16))}function De(e){return"Object("+e+")"}function Ne(e){return e+" { ? }"}function Ie(e,t,n,r){return e+" ("+t+") {"+(r?Ae(n,r):se.call(n,", "))+"}"}function Ae(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+se.call(e,","+n)+"\n"+t.prev}function Pe(e,t){var n=ke(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=xe(e,i)?t(e[i],e):""}var o,a="function"==typeof de?de(e):[];if(pe){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)xe(e,l)&&(n&&String(Number(l))===l&&l<e.length||pe&&o["$"+l]instanceof Symbol||(oe.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof de)for(var c=0;c<a.length;c++)me.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}var Ue=U("%TypeError%"),Me=U("%WeakMap%",!0),Le=U("%Map%",!0),je=j("WeakMap.prototype.get",!0),Be=j("WeakMap.prototype.set",!0),ze=j("WeakMap.prototype.has",!0),Fe=j("Map.prototype.get",!0),Ge=j("Map.prototype.set",!0),$e=j("Map.prototype.has",!0),Ye=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},qe=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new Ue("Side channel does not contain "+function e(t,n,r,i){var o=n||{};if(xe(o,"quoteStyle")&&"single"!==o.quoteStyle&&"double"!==o.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xe(o,"maxStringLength")&&("number"==typeof o.maxStringLength?o.maxStringLength<0&&o.maxStringLength!==1/0:null!==o.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!xe(o,"customInspect")||o.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xe(o,"indent")&&null!==o.indent&&"\t"!==o.indent&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(xe(o,"numericSeparator")&&"boolean"!=typeof o.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,i="... "+r+" more character"+(r>1?"s":"");return e(te.call(t,0,n.maxStringLength),n)+i}return be(ne.call(ne.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Oe),"single",n)}(t,o);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var l=String(t);return s?ye(t,l):l}if("bigint"==typeof t){var c=String(t)+"n";return s?ye(t,c):c}var u=void 0===o.depth?5:o.depth;if(void 0===r&&(r=0),r>=u&&u>0&&"object"==typeof t)return ke(t)?"[Array]":"[Object]";var d=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=se.call(Array(e.indent+1)," ")}return{base:n,prev:se.call(Array(t+1),n)}}(o,r);if(void 0===i)i=[];else if(Ce(i,t)>=0)return"[Circular]";function f(t,n,a){if(n&&(i=le.call(i)).push(n),a){var s={depth:o.depth};return xe(o,"quoteStyle")&&(s.quoteStyle=o.quoteStyle),e(t,s,r+1,i)}return e(t,o,r+1,i)}if("function"==typeof t&&!Se(t)){var p=function(e){if(e.name)return e.name;var t=ee.call(X.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),h=Pe(t,f);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(h.length>0?" { "+se.call(h,", ")+" }":"")}if(Ee(t)){var m=pe?ne.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):fe.call(t);return"object"!=typeof t||pe?m:De(m)}if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var g="<"+ie.call(String(t.nodeName)),y=t.attributes||[],_=0;_<y.length;_++)g+=" "+y[_].name+"="+be(we(y[_].value),"double",o);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+"</"+ie.call(String(t.nodeName))+">"}if(ke(t)){if(0===t.length)return"[]";var v=Pe(t,f);return d&&!function(e){for(var t=0;t<e.length;t++)if(Ce(e[t],"\n")>=0)return!1;return!0}(v)?"["+Ae(v,d)+"]":"[ "+se.call(v,", ")+" ]"}if(function(e){return!("[object Error]"!==Re(e)||he&&"object"==typeof e&&he in e)}(t)){var b=Pe(t,f);return"cause"in Error.prototype||!("cause"in t)||me.call(t,"cause")?0===b.length?"["+String(t)+"]":"{ ["+String(t)+"] "+se.call(b,", ")+" }":"{ ["+String(t)+"] "+se.call(ae.call("[cause]: "+f(t.cause),b),", ")+" }"}if("object"==typeof t&&a){if(ve&&"function"==typeof t[ve]&&B)return B(t,{depth:u-r});if("symbol"!==a&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!G||!e||"object"!=typeof e)return!1;try{G.call(e);try{H.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var w=[];return $&&$.call(t,(function(e,n){w.push(f(n,t,!0)+" => "+f(e,t))})),Ie("Map",G.call(t),w,d)}if(function(e){if(!H||!e||"object"!=typeof e)return!1;try{H.call(e);try{G.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var k=[];return W&&W.call(t,(function(e){k.push(f(e,t))})),Ie("Set",H.call(t),k,d)}if(function(e){if(!V||!e||"object"!=typeof e)return!1;try{V.call(e,V);try{Z.call(e,Z)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Ne("WeakMap");if(function(e){if(!Z||!e||"object"!=typeof e)return!1;try{Z.call(e,Z);try{V.call(e,V)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Ne("WeakSet");if(function(e){if(!J||!e||"object"!=typeof e)return!1;try{return J.call(e),!0}catch(e){}return!1}(t))return Ne("WeakRef");if(function(e){return!("[object Number]"!==Re(e)||he&&"object"==typeof e&&he in e)}(t))return De(f(Number(t)));if(function(e){if(!e||"object"!=typeof e||!ue)return!1;try{return ue.call(e),!0}catch(e){}return!1}(t))return De(f(ue.call(t)));if(function(e){return!("[object Boolean]"!==Re(e)||he&&"object"==typeof e&&he in e)}(t))return De(K.call(t));if(function(e){return!("[object String]"!==Re(e)||he&&"object"==typeof e&&he in e)}(t))return De(f(String(t)));if(!function(e){return!("[object Date]"!==Re(e)||he&&"object"==typeof e&&he in e)}(t)&&!Se(t)){var S=Pe(t,f),E=ge?ge(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",x=!E&&he&&Object(t)===t&&he in t?te.call(Re(t),8,-1):T?"Object":"",R=(E||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(x||T?"["+se.call(ae.call([],x||[],T||[]),": ")+"] ":"");return 0===S.length?R+"{}":d?R+"{"+Ae(S,d)+"}":R+"{ "+se.call(S,", ")+" }"}return String(t)}(e))},get:function(r){if(Me&&r&&("object"==typeof r||"function"==typeof r)){if(e)return je(e,r)}else if(Le){if(t)return Fe(t,r)}else if(n)return function(e,t){var n=Ye(e,t);return n&&n.value}(n,r)},has:function(r){if(Me&&r&&("object"==typeof r||"function"==typeof r)){if(e)return ze(e,r)}else if(Le){if(t)return $e(t,r)}else if(n)return function(e,t){return!!Ye(e,t)}(n,r);return!1},set:function(r,i){Me&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new Me),Be(e,r,i)):Le?(t||(t=new Le),Ge(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=Ye(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r},He=String.prototype.replace,We=/%20/g,Ve="RFC3986",Ze={default:Ve,formatters:{RFC1738:function(e){return He.call(e,We,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Ve},Je=Object.prototype.hasOwnProperty,Ke=Array.isArray,Qe=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Xe=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},et={arrayToObject:Xe,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],a=Object.keys(o),s=0;s<a.length;++s){var l=a[s],c=o[l];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:o,prop:l}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Ke(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,r,i){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",s=0;s<o.length;++s){var l=o.charCodeAt(s);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===Ze.RFC1738&&(40===l||41===l)?a+=o.charAt(s):l<128?a+=Qe[l]:l<2048?a+=Qe[192|l>>6]+Qe[128|63&l]:l<55296||l>=57344?a+=Qe[224|l>>12]+Qe[128|l>>6&63]+Qe[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&o.charCodeAt(s)),a+=Qe[240|l>>18]+Qe[128|l>>12&63]+Qe[128|l>>6&63]+Qe[128|63&l])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Ke(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(Ke(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!Je.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var i=t;return Ke(t)&&!Ke(n)&&(i=Xe(t,r)),Ke(t)&&Ke(n)?(n.forEach((function(n,i){if(Je.call(t,i)){var o=t[i];o&&"object"==typeof o&&n&&"object"==typeof n?t[i]=e(o,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var o=n[i];return Je.call(t,i)?t[i]=e(t[i],o,r):t[i]=o,t}),i)}},tt=Object.prototype.hasOwnProperty,nt={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},rt=Array.isArray,it=String.prototype.split,ot=Array.prototype.push,at=function(e,t){ot.apply(e,rt(t)?t:[t])},st=Date.prototype.toISOString,lt=Ze.default,ct={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:et.encode,encodeValuesOnly:!1,format:lt,formatter:Ze.formatters[lt],indices:!1,serializeDate:function(e){return st.call(e)},skipNulls:!1,strictNullHandling:!1},ut={},dt=function e(t,n,r,i,o,a,s,l,c,u,d,f,p,h,m,g){for(var y=t,_=g,v=0,b=!1;void 0!==(_=_.get(ut))&&!b;){var w=_.get(t);if(v+=1,void 0!==w){if(w===v)throw new RangeError("Cyclic object value");b=!0}void 0===_.get(ut)&&(v=0)}if("function"==typeof l?y=l(n,y):y instanceof Date?y=d(y):"comma"===r&&rt(y)&&(y=et.maybeMap(y,(function(e){return e instanceof Date?d(e):e}))),null===y){if(o)return s&&!h?s(n,ct.encoder,m,"key",f):n;y=""}if(function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e}(y)||et.isBuffer(y)){if(s){var k=h?n:s(n,ct.encoder,m,"key",f);if("comma"===r&&h){for(var S=it.call(String(y),","),E="",T=0;T<S.length;++T)E+=(0===T?"":",")+p(s(S[T],ct.encoder,m,"value",f));return[p(k)+(i&&rt(y)&&1===S.length?"[]":"")+"="+E]}return[p(k)+"="+p(s(y,ct.encoder,m,"value",f))]}return[p(n)+"="+p(String(y))]}var x,R=[];if(void 0===y)return R;if("comma"===r&&rt(y))x=[{value:y.length>0?y.join(",")||null:void 0}];else if(rt(l))x=l;else{var C=Object.keys(y);x=c?C.sort(c):C}for(var O=i&&rt(y)&&1===y.length?n+"[]":n,D=0;D<x.length;++D){var N=x[D],I="object"==typeof N&&void 0!==N.value?N.value:y[N];if(!a||null!==I){var A=rt(y)?"function"==typeof r?r(O,N):O:O+(u?"."+N:"["+N+"]");g.set(t,v);var P=qe();P.set(ut,g),at(R,e(I,A,r,i,o,a,s,l,c,u,d,f,p,h,m,P))}}return R},ft=Object.prototype.hasOwnProperty,pt=Array.isArray,ht={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:et.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},mt=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},gt=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},yt=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(i),s=a?i.slice(0,a.index):i,l=[];if(s){if(!n.plainObjects&&ft.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var c=0;n.depth>0&&null!==(a=o.exec(i))&&c<n.depth;){if(c+=1,!n.plainObjects&&ft.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+i.slice(a.index)+"]"),function(e,t,n,r){for(var i=r?t:gt(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(l,10);n.parseArrays||""!==l?!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:"__proto__"!==l&&(a[l]=i):a={0:i}}i=a}return i}(l,t,n,r)}},_t={formats:Ze,parse:function(e,t){var n=function(e){if(!e)return ht;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?ht.charset:e.charset;return{allowDots:void 0===e.allowDots?ht.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:ht.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:ht.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:ht.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:ht.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:ht.comma,decoder:"function"==typeof e.decoder?e.decoder:ht.decoder,delimiter:"string"==typeof e.delimiter||et.isRegExp(e.delimiter)?e.delimiter:ht.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:ht.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:ht.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:ht.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:ht.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:ht.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?function(e,t){var n,r={},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,a=i.split(t.delimiter,o),s=-1,l=t.charset;if(t.charsetSentinel)for(n=0;n<a.length;++n)0===a[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[n]?l="utf-8":"utf8=%26%2310003%3B"===a[n]&&(l="iso-8859-1"),s=n,n=a.length);for(n=0;n<a.length;++n)if(n!==s){var c,u,d=a[n],f=d.indexOf("]="),p=-1===f?d.indexOf("="):f+1;-1===p?(c=t.decoder(d,ht.decoder,l,"key"),u=t.strictNullHandling?null:""):(c=t.decoder(d.slice(0,p),ht.decoder,l,"key"),u=et.maybeMap(gt(d.slice(p+1),t),(function(e){return t.decoder(e,ht.decoder,l,"value")}))),u&&t.interpretNumericEntities&&"iso-8859-1"===l&&(u=mt(u)),d.indexOf("[]=")>-1&&(u=pt(u)?[u]:u),ft.call(r,c)?r[c]=et.combine(r[c],u):r[c]=u}return r}(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),a=0;a<o.length;++a){var s=o[a],l=yt(s,r[s],n,"string"==typeof e);i=et.merge(i,l,n)}return!0===n.allowSparse?i:et.compact(i)},stringify:function(e,t){var n,r=e,i=function(e){if(!e)return ct;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||ct.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Ze.default;if(void 0!==e.format){if(!tt.call(Ze.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=Ze.formatters[n],i=ct.filter;return("function"==typeof e.filter||rt(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:ct.addQueryPrefix,allowDots:void 0===e.allowDots?ct.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:ct.charsetSentinel,delimiter:void 0===e.delimiter?ct.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:ct.encode,encoder:"function"==typeof e.encoder?e.encoder:ct.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:ct.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:ct.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:ct.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:ct.strictNullHandling}}(t);"function"==typeof i.filter?r=(0,i.filter)("",r):rt(i.filter)&&(n=i.filter);var o,a=[];if("object"!=typeof r||null===r)return"";o=t&&t.arrayFormat in nt?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=nt[o];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l="comma"===s&&t&&t.commaRoundTrip;n||(n=Object.keys(r)),i.sort&&n.sort(i.sort);for(var c=qe(),u=0;u<n.length;++u){var d=n[u];i.skipNulls&&null===r[d]||at(a,dt(r[d],d,s,l,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,c))}var f=a.join(i.delimiter),p=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),f.length>0?p+f:""}},vt=i((function(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}})),bt=Et;Et.default=Et,Et.stable=Rt,Et.stableStringify=Rt;var wt=[],kt=[];function St(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Et(e,t,n,r){var i;void 0===r&&(r=St()),function e(t,n,r,i,o,a,s){var l;if(a+=1,"object"==typeof t&&null!==t){for(l=0;l<i.length;l++)if(i[l]===t)return void Tt("[Circular]",t,n,o);if(void 0!==s.depthLimit&&a>s.depthLimit)return void Tt("[...]",t,n,o);if(void 0!==s.edgesLimit&&r+1>s.edgesLimit)return void Tt("[...]",t,n,o);if(i.push(t),Array.isArray(t))for(l=0;l<t.length;l++)e(t[l],l,l,i,t,a,s);else{var c=Object.keys(t);for(l=0;l<c.length;l++){var u=c[l];e(t[u],u,l,i,t,a,s)}}i.pop()}}(e,"",0,[],void 0,0,r);try{i=0===kt.length?JSON.stringify(e,t,n):JSON.stringify(e,Ct(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==wt.length;){var o=wt.pop();4===o.length?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return i}function Tt(e,t,n,r){var i=Object.getOwnPropertyDescriptor(r,n);void 0!==i.get?i.configurable?(Object.defineProperty(r,n,{value:e}),wt.push([r,n,t,i])):kt.push([t,n,e]):(r[n]=e,wt.push([r,n,t]))}function xt(e,t){return e<t?-1:e>t?1:0}function Rt(e,t,n,r){void 0===r&&(r=St());var i,o=function e(t,n,r,i,o,a,s){var l;if(a+=1,"object"==typeof t&&null!==t){for(l=0;l<i.length;l++)if(i[l]===t)return void Tt("[Circular]",t,n,o);try{if("function"==typeof t.toJSON)return}catch(e){return}if(void 0!==s.depthLimit&&a>s.depthLimit)return void Tt("[...]",t,n,o);if(void 0!==s.edgesLimit&&r+1>s.edgesLimit)return void Tt("[...]",t,n,o);if(i.push(t),Array.isArray(t))for(l=0;l<t.length;l++)e(t[l],l,l,i,t,a,s);else{var c={},u=Object.keys(t).sort(xt);for(l=0;l<u.length;l++){var d=u[l];e(t[d],d,l,i,t,a,s),c[d]=t[d]}if(void 0===o)return c;wt.push([o,n,t]),o[n]=c}i.pop()}}(e,"",0,[],void 0,0,r)||e;try{i=0===kt.length?JSON.stringify(o,t,n):JSON.stringify(o,Ct(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==wt.length;){var a=wt.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return i}function Ct(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(kt.length>0)for(var r=0;r<kt.length;r++){var i=kt[r];if(i[1]===t&&i[0]===n){n=i[2],kt.splice(r,1);break}}return e.call(this,t,n)}}var Ot=i((function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){var t,n={},i=r(e.split(/ *; */));try{for(i.s();!(t=i.n()).done;){var o=t.value.split(/ *= */),a=o.shift(),s=o.shift();a&&s&&(n[a]=s)}}catch(e){i.e(e)}finally{i.f()}return n},t.parseLinks=function(e){var t,n={},i=r(e.split(/ *, */));try{for(i.s();!(t=i.n()).done;){var o=t.value.split(/ *; */),a=o[0].slice(1,-1);n[o[1].split(/ *= */)[1].slice(1,-1)]=a}}catch(e){i.e(e)}finally{i.f()}return n},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e},t.isObject=function(e){return null!==e&&"object"===n(e)},t.hasOwn=Object.hasOwn||function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(e),t)},t.mixin=function(e,n){for(var r in n)t.hasOwn(n,r)&&(e[r]=n[r])}}));function Dt(e){return(Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Ot.type,Ot.params,Ot.parseLinks,Ot.cleanHeader,Ot.isObject,Ot.hasOwn,Ot.mixin;var Nt=Ot.isObject,It=Ot.hasOwn,At=Pt;function Pt(){}Pt.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},Pt.prototype.parse=function(e){return this._parser=e,this},Pt.prototype.responseType=function(e){return this._responseType=e,this},Pt.prototype.serialize=function(e){return this._serializer=e,this},Pt.prototype.timeout=function(e){if(!e||"object"!==Dt(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(It(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},Pt.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var Ut=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),Mt=new Set([408,413,429,500,502,503,504,521,522,524]);Pt.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&Mt.has(t.status))return!0;if(e){if(e.code&&Ut.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},Pt.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},Pt.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},Pt.prototype.catch=function(e){return this.then(void 0,e)},Pt.prototype.use=function(e){return e(this),this},Pt.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},Pt.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},Pt.prototype.get=function(e){return this._header[e.toLowerCase()]},Pt.prototype.getHeader=Pt.prototype.get,Pt.prototype.set=function(e,t){if(Nt(e)){for(var n in e)It(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},Pt.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},Pt.prototype.field=function(e,t,n){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(Nt(e)){for(var r in e)It(e,r)&&this.field(r,e[r]);return this}if(Array.isArray(t)){for(var i in t)It(t,i)&&this.field(e,t[i]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),n?this._getFormData().append(e,t,n):this._getFormData().append(e,t),this},Pt.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(B.gte(process.version,"v13.0.0")&&B.lt(process.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");B.gte(process.version,"v14.0.0")&&(this.req.destroyed=!0),this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},Pt.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},Pt.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},Pt.prototype.redirects=function(e){return this._maxRedirects=e,this},Pt.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},Pt.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},Pt.prototype.send=function(e){var t=Nt(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&Nt(this._data))for(var r in e)It(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),(n=this._header["content-type"])&&(n=n.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},Pt.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},Pt.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},Pt.prototype._appendQueryString=function(){console.warn("Unsupported")},Pt.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},Pt.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))};var Lt=jt;function jt(){}function Bt(e){return function(e){if(Array.isArray(e))return Ft(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zt(e,t){if(e){if("string"==typeof e)return Ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(e,t):void 0}}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gt(){this._defaults=[]}jt.prototype.get=function(e){return this.header[e.toLowerCase()]},jt.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=Ot.type(t);var n=Ot.params(t);for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(this[r]=n[r]);this.links={};try{e.link&&(this.links=Ot.parseLinks(e.link))}catch(e){}},jt.prototype._setStatusProperties=function(e){var t=Math.trunc(e/100);this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e};for(var $t=function(){var e=qt[Yt];Gt.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}},Yt=0,qt=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];Yt<qt.length;Yt++)$t();Gt.prototype._setDefaults=function(e){var t,n=function(e){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=zt(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(this._defaults);try{for(n.s();!(t=n.n()).done;){var r=t.value;e[r.fn].apply(e,Bt(r.args))}}catch(e){n.e(e)}finally{n.f()}};for(var Ht=Gt,Wt=i((function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i;"undefined"!=typeof window?i=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),i=void 0):i=self;var o=Ot.isObject,a=Ot.mixin,s=Ot.hasOwn;function l(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var c=t=e.exports;t.Request=g,c.getXHR=function(){if(i.XMLHttpRequest&&(!i.location||"file:"!==i.location.protocol||!i.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var u="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function d(e){if(!o(e))return e;var t=[];for(var n in e)s(e,n)&&f(t,n,e[n]);return t.join("&")}function f(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n)){var i,a=function(e){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}(n);try{for(a.s();!(i=a.n()).done;)f(e,t,i.value)}catch(e){a.e(e)}finally{a.f()}}else if(o(n))for(var l in n)s(n,l)&&f(e,"".concat(t,"[").concat(l,"]"),n[l]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function p(e){for(var t,n,r={},i=e.split("&"),o=0,a=i.length;o<a;++o)-1===(n=(t=i[o]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function h(e){return/[/+]json($|[^-\w])/i.test(e)}function m(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,i,o=e.split(/\r?\n/),a={},s=0,l=o.length;s<l;++s)-1!==(t=(n=o[s]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),i=u(n.slice(t+1)),a[r]=i);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function g(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,r=null;try{r=new m(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}c.serializeObject=d,c.parseString=p,c.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},c.serialize={"application/x-www-form-urlencoded":_t.stringify,"application/json":bt},c.parse={"application/x-www-form-urlencoded":p,"application/json":JSON.parse},a(m.prototype,Lt.prototype),m.prototype._parseBody=function(e){var t=c.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&h(this.type)&&(t=c.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},m.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),i=new Error(r);return i.status=this.status,i.method=t,i.url=n,i},c.Response=m,vt(g.prototype),a(g.prototype,At.prototype),g.prototype.type=function(e){return this.set("Content-Type",c.types[e]||e),this},g.prototype.accept=function(e){return this.set("Accept",c.types[e]||e),this},g.prototype.auth=function(e,t,r){1===arguments.length&&(t=""),"object"===n(t)&&null!==t&&(r=t,t=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});var i=r.encoder?r.encoder:function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,r,i)},g.prototype.query=function(e){return"string"!=typeof e&&(e=d(e)),e&&this._query.push(e),this},g.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},g.prototype._getFormData=function(){return this._formData||(this._formData=new i.FormData),this._formData},g.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},g.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},g.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},g.prototype.ca=g.prototype.agent,g.prototype.buffer=g.prototype.ca,g.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},g.prototype.pipe=g.prototype.write,g.prototype._isHost=function(e){return e&&"object"===n(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},g.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||l,this._finalizeQueryString(),this._end()},g.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},g.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=c.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.addEventListener("readystatechange",(function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}}));var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],o=this._serializer||c.serialize[i?i.split(";")[0]:""];!o&&h(i)&&(o=c.serialize["application/json"]),o&&(n=o(n))}for(var a in this.header)null!==this.header[a]&&s(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},c.agent=function(){return new Ht};for(var y=function(){var e=v[_];Ht.prototype[e.toLowerCase()]=function(t,n){var r=new c.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}},_=0,v=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];_<v.length;_++)y();function b(e,t,n){var r=c("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}Ht.prototype.del=Ht.prototype.delete,c.get=function(e,t,n){var r=c("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},c.head=function(e,t,n){var r=c("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},c.options=function(e,t,n){var r=c("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},c.del=b,c.delete=b,c.patch=function(e,t,n){var r=c("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},c.post=function(e,t,n){var r=c("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},c.put=function(e,t,n){var r=c("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}})),Vt=(Wt.Request,[]),Zt=[],Jt=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Kt=0,Qt=Jt.length;Kt<Qt;++Kt)Vt[Kt]=Jt[Kt],Zt[Jt.charCodeAt(Kt)]=Kt;function Xt(e,t,n){for(var r,i,o=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(Vt[(i=r)>>18&63]+Vt[i>>12&63]+Vt[i>>6&63]+Vt[63&i]);return o.join("")}Zt["-".charCodeAt(0)]=62,Zt["_".charCodeAt(0)]=63;var tn={raw:"9.21.0"},nn=Object.prototype.toString;function rn(e,t,n,r){if(n="array"===n?"object":n,e&&typeof e[t]!==n)throw new Error(r)}function on(e,t,n){if(typeof e!==t)throw new Error(n)}function an(e,t,n){if(-1===t.indexOf(e))throw new Error(n)}var sn={check:function(e,t,n){if(t.optional&&!e||on(e,t.type,t.message),"object"===t.type&&n)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i];n[o].optional&&!e[o]||n[o].condition&&!n[o].condition(e)||(rn(e,o,n[o].type,n[o].message),n[o].values&&an(e[o],n[o].values,n[o].value_message))}},attribute:rn,variable:on,value:an,isArray:function(e){return this.supportsIsArray()?Array.isArray(e):"[object Array]"===nn.call(e)},supportsIsArray:function(){return null!=Array.isArray}};function ln(e){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i=Object.keys(Object(r)),o=0,a=i.length;o<a;o++){var s=i[o],l=Object.getOwnPropertyDescriptor(r,s);void 0!==l&&l.enumerable&&(t[s]=r[s])}}return t}var cn={get:function(){return Object.assign?Object.assign:ln},objectAssignPolyfill:ln};function un(e,t){return t.reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})}function dn(){var e=function(e){var t=[];for(var n in e)t.push(e[n]);return t}(arguments);return e.unshift({}),cn.get().apply(void 0,e)}function fn(e){var t=e.match(/^(https?:|file:|chrome-extension:)\/\/(([^:/?#]*)(?::([0-9]+))?)([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);return t&&{href:e,protocol:t[1],host:t[2],hostname:t[3],port:t[4],pathname:t[5],search:t[6],hash:t[7]}}function pn(e,t){var n=dn(e);return e[t]&&(n[t]=e[t].trim()),n}var hn={toSnakeCase:function e(t,n){return"object"!=typeof t||sn.isArray(t)||null===t?t:(n=n||[],Object.keys(t).reduce((function(r,i){return r[-1===n.indexOf(i)?function(e){for(var t,n="",r=0,i=!0,o=!0;r<e.length;)t=e.charCodeAt(r),!o&&t>=65&&t<=90||!i&&t>=48&&t<=57?(n+="_",n+=e[r].toLowerCase()):n+=e[r].toLowerCase(),i=t>=48&&t<=57,o=t>=65&&t<=90,r++;return n}(i):i]=e(t[i]),r}),{}))},toCamelCase:function e(t,n,r){return"object"!=typeof t||sn.isArray(t)||null===t?t:(n=n||[],r=r||{},Object.keys(t).reduce((function(i,o){var a,s=-1===n.indexOf(o)?(a=o.split("_")).reduce((function(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}),a.shift()):o;return i[s]=e(t[s]||t[o],[],r),r.keepOriginal&&(i[o]=e(t[o],[],r)),i}),{}))},blacklist:function(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})},merge:function(e,t){return{base:t?un(e,t):e,with:function(e,t){return e=t?un(e,t):e,dn(this.base,e)}}},pick:un,getKeysNotIn:function(e,t){var n=[];for(var r in e)-1===t.indexOf(r)&&n.push(r);return n},extend:dn,getOriginFromUrl:function(e){if(e){var t=fn(e);if(!t)return null;var n=t.protocol+"//"+t.hostname;return t.port&&(n+=":"+t.port),n}},getLocationFromUrl:fn,trimUserDetails:function(e){return function(e){return["username","email","phoneNumber"].reduce(pn,e)}(e)},updatePropertyOn:function e(t,n,r){"string"==typeof n&&(n=n.split("."));var i=n[0];t.hasOwnProperty(i)&&(1===n.length?t[i]=r:e(t[i],n.slice(1),r))}};function mn(e){this.request=e,this.method=e.method,this.url=e.url,this.body=e._data,this.headers=e._header}function gn(e){this.request=e}function yn(e){this._sendTelemetry=!1!==e._sendTelemetry||e._sendTelemetry,this._telemetryInfo=e._telemetryInfo||null,this._timesToRetryFailedRequests=e._timesToRetryFailedRequests,this.headers=e.headers||{},this._universalLoginPage=e.universalLoginPage}function _n(){return window}mn.prototype.abort=function(){this.request.abort()},mn.prototype.getMethod=function(){return this.method},mn.prototype.getBody=function(){return this.body},mn.prototype.getUrl=function(){return this.url},mn.prototype.getHeaders=function(){return this.headers},gn.prototype.set=function(e,t){return this.request=this.request.set(e,t),this},gn.prototype.send=function(e){return this.request=this.request.send(hn.trimUserDetails(e)),this},gn.prototype.withCredentials=function(){return this.request=this.request.withCredentials(),this},gn.prototype.end=function(e){return this.request.end(e),new mn(this.request)},yn.prototype.setCommonConfiguration=function(e,t){if(t=t||{},this._timesToRetryFailedRequests>0&&(e=e.retry(this._timesToRetryFailedRequests)),t.noHeaders)return e;var n=this.headers;e=e.set("Content-Type","application/json"),t.xRequestLanguage&&(e=e.set("X-Request-Language",t.xRequestLanguage));for(var r=Object.keys(this.headers),i=0;i<r.length;i++)e=e.set(r[i],n[r[i]]);return this._sendTelemetry&&(e=e.set("Auth0-Client",this.getTelemetryData())),e},yn.prototype.getTelemetryData=function(){var e=this._universalLoginPage?"auth0.js-ulp":"auth0.js",t={name:e,version:tn.raw};return this._telemetryInfo&&((t=hn.extend({},this._telemetryInfo)).env=hn.extend({},this._telemetryInfo.env),t.env[e]=tn.raw),function(e){return function(e){for(var t,n=e.length,r=n%3,i=[],o=0,a=n-r;o<a;o+=16383)i.push(Xt(e,o,o+16383>a?a:o+16383));return 1===r?(t=e[n-1],i.push(Vt[t>>2]+Vt[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(Vt[t>>10]+Vt[t>>4&63]+Vt[t<<2&63]+"=")),i.join("")}(function(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(e)).replace(/\+/g,"-").replace(/\//g,"_")}(JSON.stringify(t))},yn.prototype.get=function(e,t){return new gn(this.setCommonConfiguration(Wt.get(e),t))},yn.prototype.post=function(e,t){return new gn(this.setCommonConfiguration(Wt.post(e),t))},yn.prototype.patch=function(e,t){return new gn(this.setCommonConfiguration(Wt.patch(e),t))};var vn={redirect:function(e){_n().location=e},getDocument:function(){return _n().document},getWindow:_n,getOrigin:function(){var e=_n().location,t=e.origin;return t||(t=hn.getOriginFromUrl(e.href)),t}};function bn(){}bn.prototype.getItem=function(){return null},bn.prototype.removeItem=function(){},bn.prototype.setItem=function(){};var wn=i((function(e,t){var n;n=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function i(){}function o(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,!0!==o[l]&&(s+="="+o[l].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),l=s.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var c=t(s[0]);if(l=(r.read||r)(l,c)||t(l),n)try{l=JSON.parse(l)}catch(e){}if(i[c]=l,e===c)break}catch(e){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,n){o(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}((function(){}))},e.exports=n()}));function kn(e){return"_"+e+"_compat"}function Sn(e){this._options=e||{}}function En(e){this.disableWarnings=e.disableWarnings}function Tn(e){if(this.warn=new En({}),this.storage=new Sn(e),!0===e.__tryLocalStorageFirst)try{var t=vn.getWindow().localStorage;t&&(this.storage=t)}catch(e){this.warn.warning(e),this.warn.warning("Can't use localStorage. Using CookieStorage instead.")}}function xn(e){this.handler=new Tn(e)}function Rn(e){this.storage=new xn(e)}function Cn(e,t){return{error:e,errorDescription:t}}Sn.prototype.getItem=function(e){return wn.get(e)||wn.get(kn(e))},Sn.prototype.removeItem=function(e){var t={};this._options.cookieDomain&&(t.domain=this._options.cookieDomain),wn.remove(e,t),wn.remove(kn(e),t)},Sn.prototype.setItem=function(e,t,n){var r=hn.extend({expires:1},n);if("https:"===vn.getWindow().location.protocol&&(r.secure=!0,r.sameSite="none",this._options.legacySameSiteCookie)){var i=hn.blacklist(r,["sameSite"]);wn.set(kn(e),t,i)}this._options.cookieDomain&&(r.domain=this._options.cookieDomain),wn.set(e,t,r)},En.prototype.warning=function(e){this.disableWarnings||console.warn(e)},Tn.prototype.failover=function(){this.storage instanceof bn?this.warn.warning("DummyStorage: ignore failover"):this.storage instanceof Sn?(this.warn.warning("CookieStorage: failing over DummyStorage"),this.storage=new bn):(this.warn.warning("LocalStorage: failing over CookieStorage"),this.storage=new Sn)},Tn.prototype.getItem=function(e){try{return this.storage.getItem(e)}catch(t){return this.warn.warning(t),this.failover(),this.getItem(e)}},Tn.prototype.removeItem=function(e){try{return this.storage.removeItem(e)}catch(t){return this.warn.warning(t),this.failover(),this.removeItem(e)}},Tn.prototype.setItem=function(e,t,n){try{return this.storage.setItem(e,t,n)}catch(r){return this.warn.warning(r),this.failover(),this.setItem(e,t,n)}},xn.prototype.getItem=function(e){var t=this.handler.getItem(e);try{return JSON.parse(t)}catch(e){return t}},xn.prototype.removeItem=function(e){return this.handler.removeItem(e)},xn.prototype.setItem=function(e,t,n){var r=JSON.stringify(t);return this.handler.setItem(e,r,n)},Rn.prototype.set=function(e,t){var n={lastUsedConnection:e,lastUsedSub:t};this.storage.setItem("auth0.ssodata",JSON.stringify(n))},Rn.prototype.get=function(){var e=this.storage.getItem("auth0.ssodata");if(e)return JSON.parse(e)};var On={buildResponse:Cn,invalidToken:function(e){return Cn("invalid_token",e)}};function Dn(e,t){return(t=t||{}).ignoreCasing=!!t.ignoreCasing&&t.ignoreCasing,function(n,r){var i;return n||r?(!n&&r.err&&(n=r.err,r=null),!n&&r.error&&(n=r,r=null),n?(i={original:n},hn.updatePropertyOn(i,"original.response.req._data.password","*****"),n.response&&n.response.statusCode&&(i.statusCode=n.response.statusCode),n.response&&n.response.statusText&&(i.statusText=n.response.statusText),n.response&&n.response.body&&(n=n.response.body),n.err&&(n=n.err),i.code=n.code||n.error||n.error_code||n.status||null,i.description=n.errorDescription||n.error_description||n.description||n.error||n.details||n.err||null,t.forceLegacyError&&(i.error=i.code,i.error_description=i.description),n.error_codes&&n.error_details&&(i.errorDetails={codes:n.error_codes,details:n.error_details}),n.name&&(i.name=n.name),n.policy&&(i.policy=n.policy),e(i)):!r.type||"text/html"!==r.type&&"text/plain"!==r.type?t.ignoreCasing?e(null,r.body||r):e(null,hn.toCamelCase(r.body||r,[],{keepOriginal:t.keepOriginalCasing})):e(null,r.text)):e(On.buildResponse("generic_error","Something went wrong"))}}var Nn=["realm","audience","otp","client_id","client_secret","redirect_uri","scope","code","grant_type","username","password","refresh_token","assertion","client_assertion","client_assertion_type","code_verifier"],In=["connection","connection_scope","auth0Client","owp","device","realm","organization","invitation","protocol","_csrf","_intstate","login_ticket","client_id","response_type","response_mode","redirect_uri","audience","scope","state","nonce","display","prompt","screen_hint","max_age","ui_locales","claims_locales","id_token_hint","login_hint","acr_values","claims","registration","request","request_uri","code_challenge","code_challenge_method","access_type","display"],An="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function Pn(e){var t={exports:{}};return e(t,t.exports),t.exports}var Un=Pn((function(e,t){e.exports=function(){function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=0,r=void 0,i=void 0,o=function(e,t){f[n]=e,f[n+1]=t,2===(n+=2)&&(i?i(p):_())},a="undefined"!=typeof window?window:void 0,s=a||{},l=s.MutationObserver||s.WebKitMutationObserver,c="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),u="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function d(){var e=setTimeout;return function(){return e(p,1)}}var f=new Array(1e3);function p(){for(var e=0;e<n;e+=2)(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0;n=0}var h,m,g,y,_=void 0;function v(e,t){var n=this,r=new this.constructor(k);void 0===r[w]&&A(r);var i=n._state;if(i){var a=arguments[i-1];o((function(){return N(i,r,a,n._result)}))}else O(n,r,e,t);return r}function b(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(k);return T(t,e),t}_=c?function(){return process.nextTick(p)}:l?(m=0,g=new l(p),y=document.createTextNode(""),g.observe(y,{characterData:!0}),function(){y.data=m=++m%2}):u?((h=new MessageChannel).port1.onmessage=p,function(){return h.port2.postMessage(0)}):void 0===a?function(){try{var e=Function("return this")().require("vertx");return void 0!==(r=e.runOnLoop||e.runOnContext)?function(){r(p)}:d()}catch(e){return d()}}():d();var w=Math.random().toString(36).substring(2);function k(){}var S=void 0;function E(t,n,r){n.constructor===t.constructor&&r===v&&n.constructor.resolve===b?function(e,t){1===t._state?R(e,t._result):2===t._state?C(e,t._result):O(t,void 0,(function(t){return T(e,t)}),(function(t){return C(e,t)}))}(t,n):void 0===r?R(t,n):e(r)?function(e,t,n){o((function(e){var r=!1,i=function(n,i){try{n.call(i,(function(n){r||(r=!0,t!==n?T(e,n):R(e,n))}),(function(t){r||(r=!0,C(e,t))}))}catch(e){return e}}(n,t);!r&&i&&(r=!0,C(e,i))}),e)}(t,n,r):R(t,n)}function T(e,t){if(e===t)C(e,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(r=t),null===r||"object"!==i&&"function"!==i)R(e,t);else{var n=void 0;try{n=t.then}catch(t){return void C(e,t)}E(e,t,n)}var r,i}function x(e){e._onerror&&e._onerror(e._result),D(e)}function R(e,t){e._state===S&&(e._result=t,e._state=1,0!==e._subscribers.length&&o(D,e))}function C(e,t){e._state===S&&(e._state=2,e._result=t,o(x,e))}function O(e,t,n,r){var i=e._subscribers,a=i.length;e._onerror=null,i[a]=t,i[a+1]=n,i[a+2]=r,0===a&&e._state&&o(D,e)}function D(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a+n],(r=t[a])?N(n,r,i,o):i(o);e._subscribers.length=0}}function N(t,n,r,i){var o=e(r),a=void 0,s=void 0,l=!0;if(o){try{a=r(i)}catch(t){l=!1,s=t}if(n===a)return void C(n,new TypeError("A promises callback cannot return that same promise."))}else a=i;n._state!==S||(o&&l?T(n,a):!1===l?C(n,s):1===t?R(n,a):2===t&&C(n,a))}var I=0;function A(e){e[w]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}var P=function(){function e(e,n){this._instanceConstructor=e,this.promise=new e(k),this.promise[w]||A(this.promise),t(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?R(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&R(this.promise,this._result))):C(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===S&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===b){var i=void 0,o=void 0,a=!1;try{i=e.then}catch(e){a=!0,o=e}if(i===v&&e._state!==S)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===U){var s=new n(k);a?C(s,o):E(s,e,i),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===S&&(this._remaining--,2===e?C(r,n):this._result[t]=n),0===this._remaining&&R(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;O(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}(),U=function(){function t(e){this[w]=I++,this._result=this._state=void 0,this._subscribers=[],k!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){T(e,t)}),(function(t){C(e,t)}))}catch(t){C(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this,r=n.constructor;return e(t)?n.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):n.then(t,t)},t}();return U.prototype.then=v,U.all=function(e){return new P(this,e).promise},U.race=function(e){var n=this;return t(e)?new n((function(t,r){for(var i=e.length,o=0;o<i;o++)n.resolve(e[o]).then(t,r)})):new n((function(e,t){return t(new TypeError("You must pass an array to race."))}))},U.resolve=b,U.reject=function(e){var t=new this(k);return C(t,e),t},U._setScheduler=function(e){i=e},U._setAsap=function(e){o=e},U._asap=o,U.polyfill=function(){var e=void 0;if(void 0!==An)e=An;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=U},U.Promise=U,U}()})),Mn={__proto__:null,default:{}},Ln=Pn((function(e,t){var n;e.exports=n=n||function(e){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==An&&An.crypto&&(n=An.crypto),!n)try{n=Mn}catch(e){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},a=o.lib={},s=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=a.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++)t[r+o>>>2]|=(n[o>>>2]>>>24-o%4*8&255)<<24-(r+o)%4*8;else for(var a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new l.init(t,e)}}),c=o.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},d=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++)r.push(String.fromCharCode(t[i>>>2]>>>24-i%4*8&255));return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},f=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,o);if(c){for(var d=0;d<c;d+=a)this._doProcessBlock(i,d);n=i.splice(0,c),r.sigBytes-=u}return new l.init(n,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=p.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=o.algo={};return o}(Math)})),jn=Pn((function(e,t){var n;e.exports=(n=Ln,function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),l[i]=n(e.pow(r,1/3)),i++),r++}();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],f=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var h=c[p-15],m=c[p-2];c[p]=((h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3)+c[p-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+c[p-16]}var g=r&i^r&o^i&o,y=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[p]+c[p];f=d,d=u,u=s,s=a+y|0,a=o,o=i,i=r,r=y+(((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+g)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),n.SHA256)})),Bn=Pn((function(e,t){var n,r;e.exports=(r=(n=Ln).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,l=n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=(s|l)<<24-o%4*8,o++}return r.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)})),zn=Pn((function(e,t){e.exports=Ln.enc.Hex})),Fn=Pn((function(e,t){(function(){var t;function n(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):this.fromString(e,null==t&&"string"!=typeof e?256:t))}function r(){return new n(null)}var i="undefined"!=typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(n.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var l=32767&this[e],c=this[e++]>>15,u=s*l+c*a;i=((l=a*l+((32767&u)<<15)+n[r]+(1073741823&i))>>>30)+(u>>>15)+s*c+(i>>>30),n[r++]=1073741823&l}return i},t=30):i&&"Netscape"!=navigator.appName?(n.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},t=26):(n.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var l=16383&this[e],c=this[e++]>>14,u=s*l+c*a;i=((l=a*l+((16383&u)<<14)+n[r]+i)>>28)+(u>>14)+s*c,n[r++]=268435455&l}return i},t=28),n.prototype.DB=t,n.prototype.DM=(1<<t)-1,n.prototype.DV=1<<t,n.prototype.FV=Math.pow(2,52),n.prototype.F1=52-t,n.prototype.F2=2*t-52;var o,a,s=new Array;for(o="0".charCodeAt(0),a=0;a<=9;++a)s[o++]=a;for(o="a".charCodeAt(0),a=10;a<36;++a)s[o++]=a;for(o="A".charCodeAt(0),a=10;a<36;++a)s[o++]=a;function l(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function c(e,t){var n=s[e.charCodeAt(t)];return null==n?-1:n}function u(e){var t=r();return t.fromInt(e),t}function d(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function f(e){this.m=e}function p(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function h(e,t){return e&t}function m(e,t){return e|t}function g(e,t){return e^t}function y(e,t){return e&~t}function _(e){if(0==e)return-1;var t=0;return!(65535&e)&&(e>>=16,t+=16),!(255&e)&&(e>>=8,t+=8),!(15&e)&&(e>>=4,t+=4),!(3&e)&&(e>>=2,t+=2),!(1&e)&&++t,t}function v(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function b(){}function w(e){return e}function k(e){this.r2=r(),this.q3=r(),n.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}f.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},f.prototype.revert=function(e){return e},f.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},f.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},f.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},p.prototype.convert=function(e){var t=r();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(n.ZERO)>0&&this.m.subTo(t,t),t},p.prototype.revert=function(e){var t=r();return e.copyTo(t),this.reduce(t),t},p.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},p.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},p.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},n.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},n.prototype.fromString=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void this.fromRadix(e,t);r=2}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var s=8==r?255&e[i]:c(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&!!(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},n.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},n.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},n.prototype.lShiftTo=function(e,t){var n,r=e%this.DB,i=this.DB-r,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<<r;for(n=a-1;n>=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},n.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},n.prototype.subTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},n.prototype.multiplyTo=function(e,t){var r=this.abs(),i=e.abs(),o=r.t;for(t.t=o+i.t;--o>=0;)t[o]=0;for(o=0;o<i.t;++o)t[o+r.t]=r.am(0,i[o],t,o,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&n.ZERO.subTo(t,t)},n.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},n.prototype.divRemTo=function(e,t,i){var o=e.abs();if(!(o.t<=0)){var a=this.abs();if(a.t<o.t)return null!=t&&t.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=r());var s=r(),l=this.s,c=e.s,u=this.DB-d(o[o.t-1]);u>0?(o.lShiftTo(u,s),a.lShiftTo(u,i)):(o.copyTo(s),a.copyTo(i));var f=s.t,p=s[f-1];if(0!=p){var h=p*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),m=this.FV/h,g=(1<<this.F1)/h,y=1<<this.F2,_=i.t,v=_-f,b=null==t?r():t;for(s.dlShiftTo(v,b),i.compareTo(b)>=0&&(i[i.t++]=1,i.subTo(b,i)),n.ONE.dlShiftTo(f,b),b.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--v>=0;){var w=i[--_]==p?this.DM:Math.floor(i[_]*m+(i[_-1]+y)*g);if((i[_]+=s.am(0,w,i,v,0,f))<w)for(s.dlShiftTo(v,b),i.subTo(b,i);i[_]<--w;)i.subTo(b,i)}null!=t&&(i.drShiftTo(f,t),l!=c&&n.ZERO.subTo(t,t)),i.t=f,i.clamp(),u>0&&i.rShiftTo(u,i),l<0&&n.ZERO.subTo(i,i)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},n.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},n.prototype.exp=function(e,t){if(e>4294967295||e<1)return n.ONE;var i=r(),o=r(),a=t.convert(this),s=d(e)-1;for(a.copyTo(i);--s>=0;)if(t.sqrTo(i,o),(e&1<<s)>0)t.mulTo(o,a,i);else{var l=i;i=o,o=l}return t.revert(i)},n.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=l(n));a>=0;)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=l(n));return i?o:"0"},n.prototype.negate=function(){var e=r();return n.ZERO.subTo(this,e),e},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+d(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(e){var t=r();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(n.ZERO)>0&&e.subTo(t,t),t},n.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new f(t):new p(t),this.exp(e,n)},n.ZERO=u(0),n.ONE=u(1),b.prototype.convert=w,b.prototype.revert=w,b.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},b.prototype.sqrTo=function(e,t){e.squareTo(t)},k.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=r();return e.copyTo(t),this.reduce(t),t},k.prototype.revert=function(e){return e},k.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},k.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},k.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var S,E,T,x=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],R=(1<<26)/x[x.length-1];function C(){var e;e=(new Date).getTime(),E[T++]^=255&e,E[T++]^=e>>8&255,E[T++]^=e>>16&255,E[T++]^=e>>24&255,T>=U&&(T-=U)}if(n.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},n.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=u(n),o=r(),a=r(),s="";for(this.divRemTo(i,o,a);o.signum()>0;)s=(n+a.intValue()).toString(e).substr(1)+s,o.divRemTo(i,o,a);return a.intValue().toString(e)+s},n.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),i=Math.pow(t,r),o=!1,a=0,s=0,l=0;l<e.length;++l){var u=c(e,l);u<0?"-"==e.charAt(l)&&0==this.signum()&&(o=!0):(s=t*s+u,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(s,0)),o&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(e,t,r){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),m,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(n.ONE.shiftLeft(e-1),this);else{var i=new Array,o=7&e;i.length=1+(e>>3),t.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(e,t,n){var r,i,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},n.prototype.changeBit=function(e,t){var r=n.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r},n.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},n.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},n.prototype.multiplyLowerTo=function(e,t,n){var r,i=Math.min(this.t+e.t,t);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(r=Math.min(e.t,t);i<r;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()},n.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},n.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},n.prototype.millerRabin=function(e){var t=this.subtract(n.ONE),i=t.getLowestSetBit();if(i<=0)return!1;var o=t.shiftRight(i);(e=e+1>>1)>x.length&&(e=x.length);for(var a=r(),s=0;s<e;++s){a.fromInt(x[Math.floor(Math.random()*x.length)]);var l=a.modPow(o,this);if(0!=l.compareTo(n.ONE)&&0!=l.compareTo(t)){for(var c=1;c++<i&&0!=l.compareTo(t);)if(0==(l=l.modPowInt(2,this)).compareTo(n.ONE))return!1;if(0!=l.compareTo(t))return!1}}return!0},n.prototype.clone=function(){var e=r();return this.copyTo(e),e},n.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0)for(r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<<this.DB-r);e>=0;)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),!!(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},n.prototype.equals=function(e){return 0==this.compareTo(e)},n.prototype.min=function(e){return this.compareTo(e)<0?this:e},n.prototype.max=function(e){return this.compareTo(e)>0?this:e},n.prototype.and=function(e){var t=r();return this.bitwiseTo(e,h,t),t},n.prototype.or=function(e){var t=r();return this.bitwiseTo(e,m,t),t},n.prototype.xor=function(e){var t=r();return this.bitwiseTo(e,g,t),t},n.prototype.andNot=function(e){var t=r();return this.bitwiseTo(e,y,t),t},n.prototype.not=function(){for(var e=r(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},n.prototype.shiftLeft=function(e){var t=r();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},n.prototype.shiftRight=function(e){var t=r();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},n.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+_(this[e]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=v(this[n]^t);return e},n.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<e%this.DB)},n.prototype.setBit=function(e){return this.changeBit(e,m)},n.prototype.clearBit=function(e){return this.changeBit(e,y)},n.prototype.flipBit=function(e){return this.changeBit(e,g)},n.prototype.add=function(e){var t=r();return this.addTo(e,t),t},n.prototype.subtract=function(e){var t=r();return this.subTo(e,t),t},n.prototype.multiply=function(e){var t=r();return this.multiplyTo(e,t),t},n.prototype.divide=function(e){var t=r();return this.divRemTo(e,t,null),t},n.prototype.remainder=function(e){var t=r();return this.divRemTo(e,null,t),t},n.prototype.divideAndRemainder=function(e){var t=r(),n=r();return this.divRemTo(e,t,n),new Array(t,n)},n.prototype.modPow=function(e,t){var n,i,o=e.bitLength(),a=u(1);if(o<=0)return a;n=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new f(t):t.isEven()?new k(t):new p(t);var s=new Array,l=3,c=n-1,h=(1<<n)-1;if(s[1]=i.convert(this),n>1){var m=r();for(i.sqrTo(s[1],m);l<=h;)s[l]=r(),i.mulTo(m,s[l-2],s[l]),l+=2}var g,y,_=e.t-1,v=!0,b=r();for(o=d(e[_])-1;_>=0;){for(o>=c?g=e[_]>>o-c&h:(g=(e[_]&(1<<o+1)-1)<<c-o,_>0&&(g|=e[_-1]>>this.DB+o-c)),l=n;!(1&g);)g>>=1,--l;if((o-=l)<0&&(o+=this.DB,--_),v)s[g].copyTo(a),v=!1;else{for(;l>1;)i.sqrTo(a,b),i.sqrTo(b,a),l-=2;l>0?i.sqrTo(a,b):(y=a,a=b,b=y),i.mulTo(b,s[g],a)}for(;_>=0&&!(e[_]&1<<o);)i.sqrTo(a,b),y=a,a=b,b=y,--o<0&&(o=this.DB-1,--_)}return i.revert(a)},n.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return n.ZERO;for(var r=e.clone(),i=this.clone(),o=u(1),a=u(0),s=u(0),l=u(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),t?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),t?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(e,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),t&&o.subTo(s,o),a.subTo(l,a)):(i.subTo(r,i),t&&s.subTo(o,s),l.subTo(a,l))}return 0!=i.compareTo(n.ONE)?n.ZERO:l.compareTo(e)>=0?l.subtract(e):l.signum()<0?(l.addTo(e,l),l.signum()<0?l.add(e):l):l},n.prototype.pow=function(e){return this.exp(e,new b)},n.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},n.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=x[x.length-1]){for(t=0;t<x.length;++t)if(n[0]==x[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<x.length;){for(var r=x[t],i=t+1;i<x.length&&r<R;)r*=x[i++];for(r=n.modInt(r);t<i;)if(r%x[t++]==0)return!1}return n.millerRabin(e)},n.prototype.square=function(){var e=r();return this.squareTo(e),e},n.prototype.Barrett=k,null==E){var O;if(E=new Array,T=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var D=new Uint8Array(32);for(window.crypto.getRandomValues(D),O=0;O<32;++O)E[T++]=D[O]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var N=window.crypto.random(32);for(O=0;O<N.length;++O)E[T++]=255&N.charCodeAt(O)}for(;T<U;)O=Math.floor(65536*Math.random()),E[T++]=O>>>8,E[T++]=255&O;T=0,C()}function I(){if(null==S){for(C(),(S=new P).init(E),T=0;T<E.length;++T)E[T]=0;T=0}return S.next()}function A(){}function P(){this.i=0,this.j=0,this.S=new Array}A.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=I()},P.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)r=this.S[t],this.S[t]=this.S[n=n+this.S[t]+e[t%e.length]&255],this.S[n]=r;this.i=0,this.j=0},P.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]};var U=256;e.exports={default:n,BigInteger:n,SecureRandom:A}}).call(An)})),Gn={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},$n={sha256:jn};function Yn(e,t){if(this.n=null,this.e=0,!(null!=e&&null!=t&&e.length>0&&t.length>0))throw new Error("Invalid key data");this.n=new Fn.BigInteger(e,16),this.e=parseInt(t,16)}Yn.prototype.verify=function(e,t){t=t.replace(/[^0-9a-f]|[\s\n]]/gi,"");var n=new Fn.BigInteger(t,16);if(n.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var r=function(e){for(var t in Gn){var n=Gn[t],r=n.length;if(e.substring(0,r)===n)return{alg:t,hash:e.substring(r)}}return[]}(n.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(0===r.length)return!1;if(!$n.hasOwnProperty(r.alg))throw new Error("Hashing algorithm is not supported.");var i=$n[r.alg](e).toString();return r.hash===i};for(var qn=[],Hn=[],Wn="undefined"!=typeof Uint8Array?Uint8Array:Array,Vn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zn=0;Zn<64;++Zn)qn[Zn]=Vn[Zn],Hn[Vn.charCodeAt(Zn)]=Zn;Hn["-".charCodeAt(0)]=62,Hn["_".charCodeAt(0)]=63;var Kn=function(e){var t,n,r=function(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}(e),i=r[0],o=r[1],a=new Wn(function(e,t,n){return 3*(t+n)/4-n}(0,i,o)),s=0,l=o>0?i-4:i;for(n=0;n<l;n+=4)t=Hn[e.charCodeAt(n)]<<18|Hn[e.charCodeAt(n+1)]<<12|Hn[e.charCodeAt(n+2)]<<6|Hn[e.charCodeAt(n+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;return 2===o&&(t=Hn[e.charCodeAt(n)]<<2|Hn[e.charCodeAt(n+1)]>>4,a[s++]=255&t),1===o&&(t=Hn[e.charCodeAt(n)]<<10|Hn[e.charCodeAt(n+1)]<<4|Hn[e.charCodeAt(n+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a};function Qn(e){var t=e.length%4;return 0===t?e:e+new Array(4-t+1).join("=")}function Xn(e){return e=Qn(e).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent(function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}(Kn(e)).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function er(e){return function(e){for(var t="",n=0;n<e.length;n++){var r=e[n].toString(16);t+=2===r.length?r:"0"+r}return t}(Kn(Qn(e)))}var tr=Pn((function(e){var t,n;t=An,n=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0]=e[0].match(/^file:\/\/\//)?e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var i=e[r];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(r>0&&(i=i.replace(/^[\/]+/,"")),i=i.replace(/[\/]+$/,r<e.length-1?"":"/"),t.push(i))}var o=t.join("/"),a=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=n():t.urljoin=n()}));function nr(e,t){return t=t||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var c in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(l())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)}))}function rr(e){if(e.ok)return e.json();var t=new Error(e.statusText);return t.response=e,Promise.reject(t)}function ir(e){this.name="ConfigurationError",this.message=e||""}function or(e){this.name="TokenValidationError",this.message=e||""}ir.prototype=Error.prototype,or.prototype=Error.prototype;var ar=function(){function e(){}var t=e.prototype;return t.get=function(){return null},t.has=function(){return null},t.set=function(){return null},e}();Un.polyfill();var sr="RS256",lr=function(e){return"number"==typeof e},cr=function(){return new Date};function ur(e){var t=e||{};if(this.jwksCache=t.jwksCache||new ar,this.expectedAlg=t.expectedAlg||"RS256",this.issuer=t.issuer,this.audience=t.audience,this.leeway=0===t.leeway?0:t.leeway||60,this.jwksURI=t.jwksURI,this.maxAge=t.maxAge,this.__clock="function"==typeof t.__clock?t.__clock:cr,this.leeway<0||this.leeway>300)throw new ir("The leeway should be positive and lower than five minutes.");if(sr!==this.expectedAlg)throw new ir('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+sr+'".')}function dr(e,t){this.plugins=t;for(var n=0;n<this.plugins.length;n++){if(this.plugins[n].version!==tn.raw){var r="";throw this.plugins[n].constructor&&this.plugins[n].constructor.name&&(r=this.plugins[n].constructor.name),new Error("Plugin "+r+" version ("+this.plugins[n].version+") is not compatible with the SDK version ("+tn.raw+")")}this.plugins[n].setWebAuth(e)}}ur.prototype.verify=function(e,t,n){if(!n&&t&&"function"==typeof t&&(n=t,t=void 0),!e)return n(new or("ID token is required but missing"),null);var r=this.decode(e);if(r instanceof Error)return n(new or("ID token could not be decoded"),null);var i=r.encoded.header+"."+r.encoded.payload,o=er(r.encoded.signature),a=r.header.alg,s=r.header.kid,l=r.payload.aud,c=r.payload.sub,u=r.payload.iss,d=r.payload.exp,f=r.payload.nbf,p=r.payload.iat,h=r.payload.azp,m=r.payload.auth_time,g=r.payload.nonce,y=this.__clock(),_=this;if(_.expectedAlg!==a)return n(new or('Signature algorithm of "'+a+'" is not supported. Expected the ID token to be signed with "'+sr+'".'),null);this.getRsaVerifier(u,s,(function(e,a){if(e)return n(e,null);if(!a.verify(i,o))return n(new or("Invalid ID token signature."),null);if(!u||"string"!=typeof u)return n(new or("Issuer (iss) claim must be a string present in the ID token"),null);if(_.issuer!==u)return n(new or('Issuer (iss) claim mismatch in the ID token, expected "'+_.issuer+'", found "'+u+'"'),null);if(!c||"string"!=typeof c)return n(new or("Subject (sub) claim must be a string present in the ID token"),null);if(!l||"string"!=typeof l&&!Array.isArray(l))return n(new or("Audience (aud) claim must be a string or array of strings present in the ID token"),null);if(Array.isArray(l)&&!l.includes(_.audience))return n(new or('Audience (aud) claim mismatch in the ID token; expected "'+_.audience+'" but was not one of "'+l.join(", ")+'"'),null);if("string"==typeof l&&_.audience!==l)return n(new or('Audience (aud) claim mismatch in the ID token; expected "'+_.audience+'" but found "'+l+'"'),null);if(t){if(!g||"string"!=typeof g)return n(new or("Nonce (nonce) claim must be a string present in the ID token"),null);if(g!==t)return n(new or('Nonce (nonce) claim value mismatch in the ID token; expected "'+t+'", found "'+g+'"'),null)}if(Array.isArray(l)&&l.length>1){if(!h||"string"!=typeof h)return n(new or("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(h!==_.audience)return n(new or('Authorized Party (azp) claim mismatch in the ID token; expected "'+_.audience+'", found "'+h+'"'),null)}if(!d||!lr(d))return n(new or("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!p||!lr(p))return n(new or("Issued At (iat) claim must be a number present in the ID token"),null);var s=d+_.leeway,v=new Date(0);if(v.setUTCSeconds(s),y>v)return n(new or('Expiration Time (exp) claim error in the ID token; current time "'+y+'" is after expiration time "'+v+'"'),null);if(f&&lr(f)){var b=f-_.leeway,w=new Date(0);if(w.setUTCSeconds(b),y<w)return n(new or('Not Before Time (nbf) claim error in the ID token; current time "'+y+'" is before the not before time "'+w+'"'),null)}if(_.maxAge){if(!m||!lr(m))return n(new or("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var k=m+_.maxAge+_.leeway,S=new Date(0);if(S.setUTCSeconds(k),y>S)return n(new or('Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time "'+y+'" is after last auth time at "'+S+'"'),null)}return n(null,r.payload)}))},ur.prototype.getRsaVerifier=function(e,t,n){var r=this,i=e+t;Promise.resolve(this.jwksCache.has(i)).then((function(n){return n?r.jwksCache.get(i):(o={jwksURI:r.jwksURI,iss:e,kid:t},("undefined"==typeof fetch?nr:fetch)(o.jwksURI||tr(o.iss,".well-known","jwks.json")).then(rr).then((function(e){var t,n,r,i=null;for(t=0;t<e.keys.length&&null===i;t++)(n=e.keys[t]).kid===o.kid&&(i=n);if(!i)throw new Error('Could not find a public key for Key ID (kid) "'+o.kid+'"');return{modulus:er((r=i).n),exp:er(r.e)}})).catch((function(e){throw e})));var o})).then((function(e){if(!e||!e.modulus||!e.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(r.jwksCache.set(i,e)).then((function(){n&&n(null,new Yn(e.modulus,e.exp))}))})).catch((function(e){n&&n(e)}))},ur.prototype.decode=function(e){var t,n,r=e.split(".");if(3!==r.length)return new or("Cannot decode a malformed JWT");try{t=JSON.parse(Xn(r[0])),n=JSON.parse(Xn(r[1]))}catch(e){return new or("Token header or payload is not valid JSON")}return{header:t,payload:n,encoded:{header:r[0],payload:r[1],signature:r[2]}}},ur.prototype.validateAccessToken=function(e,t,n,r){if(this.expectedAlg!==t)return r(new or('Signature algorithm of "'+t+'" is not supported. Expected "'+this.expectedAlg+'"'));var i,o=jn(e),a=zn.stringify(o),s=a.substring(0,a.length/2),l=zn.parse(s),c=Bn.stringify(l);return r((i={"+":"-","/":"_","=":""},c.replace(/[+/=]/g,(function(e){return i[e]}))!==n?new or("Invalid access_token"):null))},dr.prototype.get=function(e){for(var t=0;t<this.plugins.length;t++)if(this.plugins[t].supports(e))return this.plugins[t].init();return null};var fr=function(e){var t=new Uint8Array(e),n=[],r="0123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-._~",i=vn.getWindow().crypto||vn.getWindow().msCrypto;if(!i)return null;for(var o=i.getRandomValues(t),a=0;a<o.length;a++)n.push(r[o[a]%65]);return n.join("")};function pr(e){var t=e.transaction||{};this.namespace=t.namespace||"com.auth0.auth.",this.keyLength=t.keyLength||32,this.stateExpiration=e.stateExpiration?e.stateExpiration/60/24:1/48,this.storage=new xn(e),this.options=e}function hr(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout||6e4,this.timeoutCallback=e.timeoutCallback||null,this.eventListenerType=e.eventListenerType||"message",this.iframe=null,this.timeoutHandle=null,this._destroyTimeout=null,this.transientMessageEventListener=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator||{isValid:function(){return!0}},"function"!=typeof this.callback)throw new Error("options.callback must be a function")}function mr(e){this.webAuth=e,this.warn=new En(e.baseOptions)}function gr(e,t){this.webAuth=e,this.baseOptions=t,this.request=new yn(t),this.webMessageHandler=new mr(e),this.storage=new xn(t)}function yr(e,t){return["co/verifier",encodeURIComponent(e),encodeURIComponent(t)].join("/")}function _r(e,t){this.webAuth=e,this.baseOptions=t,this.crossOriginAuthentication=new gr(e,this.baseOptions),this.warn=new En({disableWarnings:!!t._disableDeprecationWarnings})}pr.prototype.process=function(e){if(!e.responseType)throw new Error("responseType is required");var t=e.realm||e.connection,n=-1!==e.responseType.indexOf("id_token"),r=this.generateTransaction(e.appState,e.state,e.nonce,t,n,e.organization);return e.state||(e.state=r.state),n&&!e.nonce&&(e.nonce=r.nonce),e},pr.prototype.generateTransaction=function(e,t,n,r,i,o){if(t=t||fr(this.keyLength),n=n||(i?fr(this.keyLength):null),vn.getWindow().location.host!==this.options.domain){var a={nonce:n,appState:e,state:t,lastUsedConnection:r};o&&(a.organization=o),this.storage.setItem(this.namespace+t,a,{expires:this.stateExpiration})}return{state:t,nonce:n}},pr.prototype.getStoredTransaction=function(e){var t;return t=this.storage.getItem(this.namespace+e),this.clearTransaction(e),t},pr.prototype.clearTransaction=function(e){this.storage.removeItem(this.namespace+e)},hr.prototype.init=function(){var e=this,t=vn.getWindow();switch(this.iframe=t.document.createElement("iframe"),this.iframe.style.display="none",this.proxyEventListener=function(t){e.eventListener(t)},this.eventListenerType){case"message":this.eventSourceObject=t;break;case"load":this.eventSourceObject=this.iframe;break;default:throw new Error("Unsupported event listener type: "+this.eventListenerType)}this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),t.document.body.appendChild(this.iframe),this.iframe.src=this.url,this.timeoutHandle=setTimeout((function(){e.timeoutHandler()}),this.timeout)},hr.prototype.eventListener=function(e){var t={event:e,sourceObject:this.eventSourceObject};this.eventValidator.isValid(t)&&(this.destroy(),this.callback(t))},hr.prototype.timeoutHandler=function(){this.destroy(),this.timeoutCallback&&this.timeoutCallback()},hr.prototype.destroy=function(){var e=this;clearTimeout(this.timeoutHandle),this._destroyTimeout=setTimeout((function(){e.eventSourceObject.removeEventListener(e.eventListenerType,e.proxyEventListener,!1),e.iframe.parentNode&&e.iframe.parentNode.removeChild(e.iframe)}),0)},mr.prototype.run=function(e,t){var n=this;e.responseMode="web_message",e.prompt="none";var r=vn.getOrigin(),i=hn.getOriginFromUrl(e.redirectUri);if(i&&r!==i)return t({error:"origin_mismatch",error_description:"The redirectUri's origin ("+i+") should match the window's origin ("+r+")."});!function(e,t,n){new hr({url:e,eventListenerType:"message",callback:function(e){n(null,e)},timeout:t.timeout,eventValidator:{isValid:function(e){return!(!e.event.data||"authorization_response"!==e.event.data.type||t.state!==e.event.data.response.state)}},timeoutCallback:function(){n({error:"timeout",error_description:"Timeout during executing web_message communication",state:t.state})}}).init()}(this.webAuth.client.buildAuthorizeUrl(e),e,(function(r,i){var o=r;if(!r&&i.event.data.response.error&&(o=i.event.data.response),!o){var a=i.event.data.response;return n.webAuth.validateAuthenticationResponse(e,a,t)}return"consent_required"===o.error&&"localhost"===vn.getWindow().location.hostname&&n.warn.warning("Consent Required. Consent can't be skipped on localhost. Read more here: https://auth0.com/docs/api-auth/user-consent#skipping-consent-for-first-party-clients"),n.webAuth.transactionManager.clearTransaction(o.state),t(hn.pick(o,["error","error_description"]))}))},gr.prototype.login=function(e,t){var n=this,r=o(this.baseOptions.rootUrl,"/co/authenticate");e.username=e.username||e.email,delete e.email;var i={client_id:e.clientID||this.baseOptions.clientID,username:e.username};e.password&&(i.password=e.password),e.otp&&(i.otp=e.otp);var a=e.realm||this.baseOptions.realm;if(a){var s=e.credentialType||this.baseOptions.credentialType||"http://auth0.com/oauth/grant-type/password-realm";i.realm=a,i.credential_type=s}else i.credential_type="password";this.request.post(r).withCredentials().send(i).end((function(r,i){if(r){var o=r.response&&r.response.body||{error:"request_error",error_description:JSON.stringify(r)};return Dn(t,{forceLegacyError:!0})(o)}function a(){var r=!0===e.popup;e=hn.blacklist(e,["password","credentialType","otp","popup","onRedirecting"]);var o=hn.merge(e).with({loginTicket:i.body.login_ticket}),a=yr(n.baseOptions.rootUrl,i.body.co_id);n.storage.setItem(a,i.body.co_verifier,{expires:1/96}),r?n.webMessageHandler.run(o,Dn(t,{forceLegacyError:!0})):n.webAuth.authorize(o)}"function"==typeof e.onRedirecting?e.onRedirecting(a):a()}))},gr.prototype.callback=function(){var e=decodeURIComponent(function(){var t=("&"+vn.getWindow().location.hash.substring(1)).split("&origin=");if(2===t.length)return t.pop().split("&").shift()}()),t=vn.getWindow(),n=this;t.addEventListener("message",(function(e){if("co_verifier_request"===e.data.type){var t=yr(e.origin,e.data.request.id),r=function(e,t){try{var n=e.getItem(t);return e.removeItem(t),n||""}catch(e){return""}}(n.storage,t);e.source.postMessage({type:"co_verifier_response",response:{verifier:r}},e.origin)}})),t.parent.postMessage({type:"ready"},e)},_r.prototype.loginWithCredentials=function(e,t){e.realm=e.realm||e.connection,delete e.connection,this.crossOriginAuthentication.login(e,t)},_r.prototype.signupAndLogin=function(e,t){var n=this;return this.webAuth.client.dbConnection.signup(e,(function(r){return r?t(r):(e.realm=e.realm||e.connection,delete e.connection,n.webAuth.login(e,t))}))};var vr=i((function(e){var t=function(){function e(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener&&e.addEventListener(t,n,!1)}function t(e,t,n){e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener&&e.removeEventListener(t,n,!1)}function n(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[\-_a-zA-Z\.0-9:]+)/.exec(e);return t?t[1]:e}var r=function(){if("undefined"==typeof navigator)return!1;var e=-1,t=navigator.userAgent;return"Microsoft Internet Explorer"===navigator.appName?null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1)):t.indexOf("Trident")>-1&&null!==new RegExp("rv:([0-9]{2,2}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1)),e>=8}();return"undefined"!=typeof window&&window.JSON&&window.JSON.stringify&&window.JSON.parse&&window.postMessage?{open:function(i,o){if(!o)throw"missing required callback argument";var a,s;i.url||(a="missing required 'url' parameter"),i.relay_url||(a="missing required 'relay_url' parameter"),a&&setTimeout((function(){o(a)}),0),i.window_name||(i.window_name=null),i.window_features&&!function(){try{var e=navigator.userAgent;return-1!=e.indexOf("Fennec/")||-1!=e.indexOf("Firefox/")&&-1!=e.indexOf("Android")}catch(e){}return!1}()||(i.window_features=void 0);var l,c=i.origin||n(i.url);if(c!==n(i.relay_url))return setTimeout((function(){o("invalid arguments: origin of url and relay_url must match")}),0);r&&((s=document.createElement("iframe")).setAttribute("src",i.relay_url),s.style.display="none",s.setAttribute("name","__winchan_relay_frame"),document.body.appendChild(s),l=s.contentWindow);var u=i.popup||window.open(i.url,i.window_name,i.window_features);i.popup&&(u.location.href=i.url),l||(l=u);var d=setInterval((function(){u&&u.closed&&(p(),o&&(o("User closed the popup window"),o=null))}),500),f=JSON.stringify({a:"request",d:i.params});function p(){if(s&&document.body.removeChild(s),s=void 0,d&&(d=clearInterval(d)),t(window,"message",h),t(window,"unload",p),u)try{u.close()}catch(e){l.postMessage("die",c)}u=l=void 0}function h(e){if(e.origin===c){try{var t=JSON.parse(e.data)}catch(e){if(o)return o(e);throw e}"ready"===t.a?l.postMessage(f,c):"error"===t.a?(p(),o&&(o(t.d),o=null)):"response"===t.a&&(p(),o&&(o(null,t.d),o=null))}}return e(window,"unload",p),e(window,"message",h),{originalPopup:u,close:p,focus:function(){if(u)try{u.focus()}catch(e){}}}},onOpen:function(n){var i="*",o=r?function(){for(var e=window.opener.frames,t=e.length-1;t>=0;t--)try{if(e[t].location.protocol===window.location.protocol&&e[t].location.host===window.location.host&&"__winchan_relay_frame"===e[t].name)return e[t]}catch(e){}}():window.opener;if(!o)throw"can't find relay frame";function a(e){e=JSON.stringify(e),r?o.doPost(e,i):o.postMessage(e,i)}function s(e){if("die"===e.data)try{window.close()}catch(e){}}e(r?o:window,"message",(function e(r){var o;try{o=JSON.parse(r.data)}catch(e){}o&&"request"===o.a&&(t(window,"message",e),i=r.origin,n&&setTimeout((function(){n(i,o.d,(function(e){n=void 0,a({a:"response",d:e})}))}),0))})),e(r?o:window,"message",s);try{a({a:"ready"})}catch(t){e(o,"load",(function(e){a({a:"ready"})}))}var l=function(){try{t(r?o:window,"message",s)}catch(e){}n&&a({a:"error",d:"client closed window"}),n=void 0;try{window.close()}catch(e){}};return e(window,"unload",l),{detach:function(){t(window,"unload",l)}}}}:{open:function(e,t,n,r){setTimeout((function(){r("unsupported browser")}),0)},onOpen:function(e){setTimeout((function(){e("unsupported browser")}),0)}}}();e.exports&&(e.exports=t)}));function br(){this._current_popup=null}function wr(e,t){this.baseOptions=t,this.baseOptions.popupOrigin=t.popupOrigin,this.client=e.client,this.webAuth=e,this.transactionManager=new pr(this.baseOptions),this.crossOriginAuthentication=new gr(e,this.baseOptions),this.warn=new En({disableWarnings:!!t._disableDeprecationWarnings})}function kr(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout||6e4,this.handler=null,this.postMessageDataType=e.postMessageDataType||!1,this.postMessageOrigin=e.postMessageOrigin||vn.getWindow().location.origin||vn.getWindow().location.protocol+"//"+vn.getWindow().location.hostname+(vn.getWindow().location.port?":"+vn.getWindow().location.port:"")}function Sr(e){this.baseOptions=e,this.request=new yn(e),this.transactionManager=new pr(this.baseOptions)}function Er(e,t){this.baseOptions=t,this.client=e,this.baseOptions.universalLoginPage=!0,this.request=new yn(this.baseOptions),this.warn=new En({disableWarnings:!!t._disableDeprecationWarnings})}br.prototype.calculatePosition=function(e){var t=e.width||500,n=e.height||600,r=vn.getWindow(),i=void 0!==r.screenX?r.screenX:r.screenLeft,o=void 0!==r.screenY?r.screenY:r.screenTop,a=void 0!==r.outerWidth?r.outerWidth:r.document.body.clientWidth,s=void 0!==r.outerHeight?r.outerHeight:r.document.body.clientHeight;return{width:t,height:n,left:e.left||i+(a-t)/2,top:e.top||o+(s-n)/2}},br.prototype.preload=function(e){var t=this,n=vn.getWindow(),r=this.calculatePosition(e.popupOptions||{}),i=hn.merge(r).with(e.popupOptions),o=e.url||"about:blank",a=_t.stringify(i,{encode:!1,delimiter:","});return this._current_popup&&!this._current_popup.closed||(this._current_popup=n.open(o,"auth0_signup_popup",a),this._current_popup.kill=function(){this.close(),t._current_popup=null}),this._current_popup},br.prototype.load=function(e,t,n,r){var i=this,o=this.calculatePosition(n.popupOptions||{}),a=hn.merge(o).with(n.popupOptions),s=hn.merge({url:e,relay_url:t,window_features:_t.stringify(a,{delimiter:",",encode:!1}),popup:this._current_popup}).with(n),l=vr.open(s,(function(e,t){if(!e||"SyntaxError"!==e.name)return i._current_popup=null,r(e,t)}));return l.focus(),l},wr.prototype.buildPopupHandler=function(){var e=this.baseOptions.plugins.get("popup.getPopupHandler");return e?e.getPopupHandler():new br},wr.prototype.preload=function(e){e=e||{};var t=this.buildPopupHandler();return t.preload(e),t},wr.prototype.getPopupHandler=function(e,t){return e.popupHandler?e.popupHandler:t?this.preload(e):this.buildPopupHandler()},wr.prototype.callback=function(e){var t=this,n=vn.getWindow(),r=(e=e||{}).popupOrigin||this.baseOptions.popupOrigin||vn.getOrigin();n.opener?vr.onOpen((function(n,i,o){if(n!==r)return o({error:"origin_mismatch",error_description:"The popup's origin ("+n+") should match the `popupOrigin` parameter ("+r+")."});t.webAuth.parseHash(e||{},(function(e,t){return o(e||t)}))})):n.doPost=function(e){n.parent&&n.parent.postMessage(e,r)}},wr.prototype.authorize=function(e,t){var n,r,i={},a=this.baseOptions.plugins.get("popup.authorize"),s=hn.merge(this.baseOptions,["clientID","scope","domain","audience","tenant","responseType","redirectUri","_csrf","state","_intstate","nonce","organization","invitation"]).with(hn.blacklist(e,["popupHandler"]));return sn.check(s,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),r=o(this.baseOptions.rootUrl,"relay.html"),e.owp?s.owp=!0:(i.origin=function(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[-_a-zA-Z.0-9:]+)/.exec(e);return t?t[1]:e}(s.redirectUri),r=s.redirectUri),e.popupOptions&&(i.popupOptions=hn.pick(e.popupOptions,["width","height","top","left"])),a&&(s=a.processParams(s)),(s=this.transactionManager.process(s)).scope=s.scope||"openid profile email",delete s.domain,n=this.client.buildAuthorizeUrl(s),this.getPopupHandler(e).load(n,r,i,Dn(t,{keepOriginalCasing:!0}))},wr.prototype.loginWithCredentials=function(e,t){e.realm=e.realm||e.connection,e.popup=!0,e=hn.merge(this.baseOptions,["redirectUri","responseType","state","nonce","timeout"]).with(hn.blacklist(e,["popupHandler","connection"])),e=this.transactionManager.process(e),this.crossOriginAuthentication.login(e,t)},wr.prototype.passwordlessVerify=function(e,t){var n=this;return this.client.passwordless.verify(hn.blacklist(e,["popupHandler"]),(function(r){if(r)return t(r);e.username=e.phoneNumber||e.email,e.password=e.verificationCode,delete e.email,delete e.phoneNumber,delete e.verificationCode,delete e.type,n.client.loginWithResourceOwner(e,t)}))},wr.prototype.signupAndLogin=function(e,t){var n=this;return this.client.dbConnection.signup(e,(function(r){if(r)return t(r);n.loginWithCredentials(e,t)}))},kr.create=function(e){return new kr(e)},kr.prototype.login=function(e,t){this.handler=new hr({auth0:this.auth0,url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:this.getCallbackHandler(t,e),timeout:this.timeout,eventValidator:this.getEventValidator(),timeoutCallback:function(){t(null,"#error=timeout&error_description=Timeout+during+authentication+renew.")},usePostMessage:e||!1}),this.handler.init()},kr.prototype.getEventValidator=function(){var e=this;return{isValid:function(t){switch(t.event.type){case"message":return t.event.origin===e.postMessageOrigin&&t.event.source===e.handler.iframe.contentWindow&&(!1===e.postMessageDataType||t.event.data.type&&t.event.data.type===e.postMessageDataType);case"load":if("about:"===t.sourceObject.contentWindow.location.protocol)return!1;default:return!0}}}},kr.prototype.getCallbackHandler=function(e,t){return function(n){var r;r=t?"object"==typeof n.event.data&&n.event.data.hash?n.event.data.hash:n.event.data:n.sourceObject.contentWindow.location.hash,e(null,r)}},Sr.prototype.login=function(e,t){var n,r;return n=o(this.baseOptions.rootUrl,"usernamepassword","login"),e.username=e.username||e.email,e=hn.blacklist(e,["email","onRedirecting"]),r=hn.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience"]).with(e),r=this.transactionManager.process(r),r=hn.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(Dn(t))},Sr.prototype.callback=function(e){var t,n=vn.getDocument();(t=n.createElement("div")).innerHTML=e,n.body.appendChild(t).children[0].submit()},Er.prototype.login=function(e,t){if(vn.getWindow().location.host!==this.baseOptions.domain)throw new Error("This method is meant to be used only inside the Universal Login Page.");var n,r=hn.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience","_csrf","state","_intstate","nonce"]).with(e);return sn.check(r,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(n=new Sr(this.baseOptions)).login(r,(function(r,i){if(r)return t(r);function o(){n.callback(i)}if("function"==typeof e.onRedirecting)return e.onRedirecting((function(){o()}));o()}))},Er.prototype.signupAndLogin=function(e,t){var n=this;return n.client.client.dbConnection.signup(e,(function(r){return r?t(r):n.login(e,t)}))},Er.prototype.getSSOData=function(e,t){var n,r="";return"function"==typeof e&&(t=e,e=!1),sn.check(e,{type:"boolean",message:"withActiveDirectories parameter is not valid"}),sn.check(t,{type:"function",message:"cb parameter is not valid"}),e&&(r="?"+_t.stringify({ldaps:1,client_id:this.baseOptions.clientID})),n=o(this.baseOptions.rootUrl,"user","ssodata",r),this.request.get(n,{noHeaders:!0}).withCredentials().end(Dn(t))};var Tr=function(){},xr={lang:"en",templates:{auth0:function(e){var t="code"===e.type?"Enter the code shown above":"Solve the formula shown above";return'<div class="captcha-challenge">\n  <img src="'+e.image+'" />\n  <button type="button" class="captcha-reload">↺</button>\n</div>\n<input type="text" name="captcha"\n  class="form-control captcha-control"\n  placeholder="'+t+'" />'},recaptcha_v2:function(){return'<div class="recaptcha" ></div><input type="hidden" name="captcha" />'},recaptcha_enterprise:function(){return'<div class="recaptcha" ></div><input type="hidden" name="captcha" />'},error:function(){return'<div class="error" style="color: red;">Error getting the bot detection challenge. Please contact the system administrator.</div>'}}};function Rr(e,t,n,r){e.innerHTML=t.templates[n.provider](n),e.querySelector(".captcha-reload").addEventListener("click",(function(e){e.preventDefault(),r()}))}function Cr(e){switch(e){case"recaptcha_v2":return window.grecaptcha;case"recaptcha_enterprise":return window.grecaptcha.enterprise;default:throw new Error("Unknown captcha provider")}}function Or(e,t,n){var r=e.hasAttribute("data-wid")&&e.getAttribute("data-wid");function i(t){e.querySelector('input[name="captcha"]').value=t||""}if(r)return i(),void Cr(n.provider).reset(r);e.innerHTML=t.templates[n.provider](n);var o=e.querySelector(".recaptcha");!function(e,t,n){var r="recaptchaCallback_"+Math.floor(1000001*Math.random());window[r]=function(){delete window[r],n()};var i=window.document.createElement("script");i.src=function(e,t,n){switch(e){case"recaptcha_v2":return"https://www.recaptcha.net/recaptcha/api.js?hl="+t+"&onload="+n;case"recaptcha_enterprise":return"https://www.recaptcha.net/recaptcha/enterprise.js?render=explicit&hl="+t+"&onload="+n;default:throw new Error("Unknown captcha provider")}}(t.provider,t.lang,r),i.async=!0,window.document.body.appendChild(i)}(0,{lang:t.lang,provider:n.provider},(function(){var t=Cr(n.provider);r=t.render(o,{callback:i,"expired-callback":function(){i()},"error-callback":function(){i()},sitekey:n.siteKey}),e.setAttribute("data-wid",r)}))}function Dr(){return new Date}function Nr(e){sn.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},popupOrigin:{optional:!0,type:"string",message:"popupOrigin is not valid"},leeway:{optional:!0,type:"number",message:"leeway is not valid"},plugins:{optional:!0,type:"array",message:"plugins is not valid"},maxAge:{optional:!0,type:"number",message:"maxAge is not valid"},stateExpiration:{optional:!0,type:"number",message:"stateExpiration is not valid"},legacySameSiteCookie:{optional:!0,type:"boolean",message:"legacySameSiteCookie option is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"},_timesToRetryFailedRequests:{optional:!0,type:"number",message:"_timesToRetryFailedRequests option is not valid"}}),e.overrides&&sn.check(e.overrides,{type:"object",message:"overrides option is not valid"},{__tenant:{optional:!0,type:"string",message:"__tenant option is required"},__token_issuer:{optional:!0,type:"string",message:"__token_issuer option is required"},__jwks_uri:{optional:!0,type:"string",message:"__jwks_uri is required"}}),this.baseOptions=e,this.baseOptions.plugins=new dr(this,this.baseOptions.plugins||[]),this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions._timesToRetryFailedRequests=e._timesToRetryFailedRequests?parseInt(e._timesToRetryFailedRequests):0,this.baseOptions.tenant=this.baseOptions.overrides&&this.baseOptions.overrides.__tenant||this.baseOptions.domain.split(".")[0],this.baseOptions.token_issuer=this.baseOptions.overrides&&this.baseOptions.overrides.__token_issuer||"https://"+this.baseOptions.domain+"/",this.baseOptions.jwksURI=this.baseOptions.overrides&&this.baseOptions.overrides.__jwks_uri,!1!==e.legacySameSiteCookie&&(this.baseOptions.legacySameSiteCookie=!0),this.transactionManager=new pr(this.baseOptions),this.client=new Pr(this.baseOptions),this.redirect=new _r(this,this.baseOptions),this.popup=new wr(this,this.baseOptions),this.crossOriginAuthentication=new gr(this,this.baseOptions),this.webMessageHandler=new mr(this),this._universalLogin=new Er(this,this.baseOptions),this.ssodataStorage=new Rn(this.baseOptions)}function Ir(e,t){this.baseOptions=t,this.request=e}function Ar(e,t){this.baseOptions=t,this.request=e}function Pr(e,t){2===arguments.length?this.auth0=e:t=e,sn.check(t,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=t,this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions.rootUrl=this.baseOptions.domain&&0===this.baseOptions.domain.toLowerCase().indexOf("http")?this.baseOptions.domain:"https://"+this.baseOptions.domain,this.request=new yn(this.baseOptions),this.passwordless=new Ir(this.request,this.baseOptions),this.dbConnection=new Ar(this.request,this.baseOptions),this.warn=new En({disableWarnings:!!t._disableDeprecationWarnings}),this.ssodataStorage=new Rn(this.baseOptions)}function Ur(e){sn.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},token:{type:"string",message:"token option is required"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=e,this.baseOptions.headers={Authorization:"Bearer "+this.baseOptions.token},this.request=new yn(this.baseOptions),this.baseOptions.rootUrl=o("https://"+this.baseOptions.domain,"api","v2")}Nr.prototype.parseHash=function(e,t){var n,r;t||"function"!=typeof e?e=e||{}:(t=e,e={});var i=void 0===e.hash?vn.getWindow().location.hash:e.hash;if(i=i.replace(/^#?\/?/,""),(n=_t.parse(i)).hasOwnProperty("error"))return r=On.buildResponse(n.error,n.error_description),n.state&&(r.state=n.state),t(r);if(!n.hasOwnProperty("access_token")&&!n.hasOwnProperty("id_token")&&!n.hasOwnProperty("refresh_token"))return t(null,null);var o=(this.baseOptions.responseType||e.responseType||"").split(" ");return o.length>0&&-1!==o.indexOf("token")&&!n.hasOwnProperty("access_token")?t(On.buildResponse("invalid_hash","response_type contains `token`, but the parsed hash does not contain an `access_token` property")):o.length>0&&-1!==o.indexOf("id_token")&&!n.hasOwnProperty("id_token")?t(On.buildResponse("invalid_hash","response_type contains `id_token`, but the parsed hash does not contain an `id_token` property")):this.validateAuthenticationResponse(e,n,t)},Nr.prototype.validateAuthenticationResponse=function(e,t,n){var r=this;e.__enableIdPInitiatedLogin=e.__enableIdPInitiatedLogin||e.__enableImpersonation;var i=t.state,o=this.transactionManager.getStoredTransaction(i),a=e.state||o&&o.state||null,s=a===i;if((i||a||!e.__enableIdPInitiatedLogin)&&!s)return n({error:"invalid_token",errorDescription:"`state` does not match."});var l=e.nonce||o&&o.nonce||null,c=o&&o.organization,u=e.state||o&&o.appState||null,d=function(e,i){return e?n(e):(o&&o.lastUsedConnection&&(i&&(a=i.sub),r.ssodataStorage.set(o.lastUsedConnection,a)),n(null,function(e,t,n){return{accessToken:e.access_token||null,idToken:e.id_token||null,idTokenPayload:n||null,appState:t||null,refreshToken:e.refresh_token||null,state:e.state||null,expiresIn:e.expires_in?parseInt(e.expires_in,10):null,tokenType:e.token_type||null,scope:e.scope||null}}(t,u,i)));var a};return t.id_token?this.validateToken(t.id_token,l,(function(e,n){if(!e){if(c){if(!n.org_id)return d(On.invalidToken("Organization Id (org_id) claim must be a string present in the ID token"));if(n.org_id!==c)return d(On.invalidToken('Organization Id (org_id) claim value mismatch in the ID token; expected "'+c+'", found "'+n.org_id+'"'))}return t.access_token&&n.at_hash?(new ur).validateAccessToken(t.access_token,"RS256",n.at_hash,(function(e){return e?d(On.invalidToken(e.message)):d(null,n)})):d(null,n)}if("invalid_token"!==e.error||e.errorDescription&&e.errorDescription.indexOf("Nonce (nonce) claim value mismatch in the ID token")>-1)return d(e);var i=(new ur).decode(t.id_token);return"HS256"!==i.header.alg?d(e):(i.payload.nonce||null)!==l?d({error:"invalid_token",errorDescription:'Nonce (nonce) claim value mismatch in the ID token; expected "'+l+'", found "'+i.payload.nonce+'"'}):t.access_token?r.client.userInfo(t.access_token,(function(e,t){return e?d(e):d(null,t)})):d({error:"invalid_token",description:"The id_token cannot be validated because it was signed with the HS256 algorithm and public clients (like a browser) can’t store secrets. Please read the associated doc for possible ways to fix this. Read more: https://auth0.com/docs/errors/libraries/auth0-js/invalid-token#parsing-an-hs256-signed-id-token-without-an-access-token"})})):d(null,null)},Nr.prototype.validateToken=function(e,t,n){new ur({issuer:this.baseOptions.token_issuer,jwksURI:this.baseOptions.jwksURI,audience:this.baseOptions.clientID,leeway:this.baseOptions.leeway||60,maxAge:this.baseOptions.maxAge,__clock:this.baseOptions.__clock||Dr}).verify(e,t,(function(e,t){if(e)return n(On.invalidToken(e.message));n(null,t)}))},Nr.prototype.renewAuth=function(e,t){var n=!!e.usePostMessage,r=e.postMessageDataType||!1,i=e.postMessageOrigin||vn.getWindow().origin,o=e.timeout,a=this,s=hn.merge(this.baseOptions,["clientID","redirectUri","responseType","scope","audience","_csrf","state","_intstate","nonce"]).with(e);s.responseType=s.responseType||"token",s.responseMode=s.responseMode||"fragment",s=this.transactionManager.process(s),sn.check(s,{type:"object",message:"options parameter is not valid"}),sn.check(t,{type:"function",message:"cb parameter is not valid"}),s.prompt="none",s=hn.blacklist(s,["usePostMessage","tenant","postMessageDataType","postMessageOrigin"]),kr.create({authenticationUrl:this.client.buildAuthorizeUrl(s),postMessageDataType:r,postMessageOrigin:i,timeout:o}).login(n,(function(e,n){if("object"==typeof n)return t(e,n);a.parseHash({hash:n},t)}))},Nr.prototype.checkSession=function(e,t){var n=hn.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(e);return"code"===n.responseType?t({error:"error",error_description:"responseType can't be `code`"}):(e.nonce||(n=this.transactionManager.process(n)),n.redirectUri?(sn.check(n,{type:"object",message:"options parameter is not valid"}),sn.check(t,{type:"function",message:"cb parameter is not valid"}),n=hn.blacklist(n,["usePostMessage","tenant","postMessageDataType"]),void this.webMessageHandler.run(n,Dn(t,{forceLegacyError:!0,ignoreCasing:!0}))):t({error:"error",error_description:"redirectUri can't be empty"}))},Nr.prototype.changePassword=function(e,t){return this.client.dbConnection.changePassword(e,t)},Nr.prototype.passwordlessStart=function(e,t){var n=hn.merge(this.baseOptions,["responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(e.authParams);return e.authParams=this.transactionManager.process(n),this.client.passwordless.start(e,t)},Nr.prototype.signup=function(e,t){return this.client.dbConnection.signup(e,t)},Nr.prototype.authorize=function(e){var t=hn.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","organization","invitation"]).with(e);sn.check(t,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(t=this.transactionManager.process(t)).scope=t.scope||"openid profile email",vn.redirect(this.client.buildAuthorizeUrl(t))},Nr.prototype.signupAndAuthorize=function(e,t){var n=this;return this.client.dbConnection.signup(hn.blacklist(e,["popupHandler"]),(function(r){if(r)return t(r);e.realm=e.connection,e.username||(e.username=e.email),n.client.login(e,t)}))},Nr.prototype.login=function(e,t){var n=hn.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting","organization","invitation"]).with(e);n=this.transactionManager.process(n),vn.getWindow().location.host===this.baseOptions.domain?(n.connection=n.realm,delete n.realm,this._universalLogin.login(n,t)):this.crossOriginAuthentication.login(n,t)},Nr.prototype.passwordlessLogin=function(e,t){var n=hn.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(e);if(n=this.transactionManager.process(n),vn.getWindow().location.host===this.baseOptions.domain)this.passwordlessVerify(n,t);else{var r=hn.extend({credentialType:"http://auth0.com/oauth/grant-type/passwordless/otp",realm:n.connection,username:n.email||n.phoneNumber,otp:n.verificationCode},hn.blacklist(n,["connection","email","phoneNumber","verificationCode"]));this.crossOriginAuthentication.login(r,t)}},Nr.prototype.crossOriginAuthenticationCallback=function(){this.crossOriginVerification()},Nr.prototype.crossOriginVerification=function(){this.crossOriginAuthentication.callback()},Nr.prototype.logout=function(e){vn.redirect(this.client.buildLogoutUrl(e))},Nr.prototype.passwordlessVerify=function(e,t){var n=this,r=hn.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(e);return sn.check(r,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),r=this.transactionManager.process(r),this.client.passwordless.verify(r,(function(i){if(i)return t(i);function o(){vn.redirect(n.client.passwordless.buildVerifyUrl(r))}if("function"==typeof e.onRedirecting)return e.onRedirecting((function(){o()}));o()}))},Nr.prototype.renderCaptcha=function(e,t,n){return function(e,t,n,r){function i(r){r=r||Tr,e.getChallenge((function(e,o){return e?(t.innerHTML=n.templates.error(e),r(e)):o.required?(t.style.display="","auth0"===o.provider?Rr(t,n,o,i):"recaptcha_v2"!==o.provider&&"recaptcha_enterprise"!==o.provider||Or(t,n,o),void r()):(t.style.display="none",void(t.innerHTML=""))}))}return n=hn.merge(xr).with(n||{}),i(r),{reload:i,getValue:function(){var e=t.querySelector('input[name="captcha"]');if(e)return e.value}}}(this.client,e,t,n)},Nr.prototype.renderPasswordlessCaptcha=function(e,t,n){return function(e,t,n,r){function i(r){r=r||Tr,e.passwordless.getChallenge((function(e,o){return e?(t.innerHTML=n.templates.error(e),r(e)):o.required?(t.style.display="","auth0"===o.provider?Rr(t,n,o,i):"recaptcha_v2"!==o.provider&&"recaptcha_enterprise"!==o.provider||Or(t,n,o),void r()):(t.style.display="none",void(t.innerHTML=""))}))}return n=hn.merge(xr).with(n||{}),i(r),{reload:i,getValue:function(){var e=t.querySelector('input[name="captcha"]');if(e)return e.value}}}(this.client,e,t,n)},Ir.prototype.buildVerifyUrl=function(e){var t,n;return sn.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(e){return!e.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(e){return!e.phoneNumber}}}),t=hn.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","protocol","nonce"]).with(e),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t=hn.toSnakeCase(t,["auth0Client"]),n=_t.stringify(t),o(this.baseOptions.rootUrl,"passwordless","verify_redirect","?"+n)},Ir.prototype.start=function(e,t){var n,r;sn.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},send:{type:"string",message:"send option is required",values:["link","code"],value_message:"send is not valid ([link, code])"},phoneNumber:{optional:!0,type:"string",message:"phoneNumber option is required",condition:function(e){return"code"===e.send||!e.email}},email:{optional:!0,type:"string",message:"email option is required",condition:function(e){return"link"===e.send||!e.phoneNumber}},authParams:{optional:!0,type:"object",message:"authParams option is required"}}),sn.check(t,{type:"function",message:"cb parameter is not valid"}),n=o(this.baseOptions.rootUrl,"passwordless","start");var i=e.xRequestLanguage;delete e.xRequestLanguage,(r=hn.merge(this.baseOptions,["clientID","responseType","redirectUri","scope"]).with(e)).scope&&(r.authParams=r.authParams||{},r.authParams.scope=r.authParams.scope||r.scope),r.redirectUri&&(r.authParams=r.authParams||{},r.authParams.redirect_uri=r.authParams.redirectUri||r.redirectUri),r.responseType&&(r.authParams=r.authParams||{},r.authParams.response_type=r.authParams.responseType||r.responseType),delete r.redirectUri,delete r.responseType,delete r.scope,r=hn.toSnakeCase(r,["auth0Client","authParams"]);var a=i?{xRequestLanguage:i}:void 0;return this.request.post(n,a).send(r).end(Dn(t))},Ir.prototype.verify=function(e,t){var n,r;return sn.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(e){return!e.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(e){return!e.phoneNumber}}}),sn.check(t,{type:"function",message:"cb parameter is not valid"}),r=hn.pick(e,["connection","verificationCode","phoneNumber","email","auth0Client","clientID"]),r=hn.toSnakeCase(r,["auth0Client"]),n=o(this.baseOptions.rootUrl,"passwordless","verify"),this.request.post(n).send(r).end(Dn(t))},Ir.prototype.getChallenge=function(e){if(sn.check(e,{type:"function",message:"cb parameter is not valid"}),!this.baseOptions.state)return e();var t=o(this.baseOptions.rootUrl,"passwordless","challenge");return this.request.post(t).send({state:this.baseOptions.state}).end(Dn(e,{ignoreCasing:!0}))},Ar.prototype.signup=function(e,t){var n,r,i;return sn.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"},password:{type:"string",message:"password option is required"}}),sn.check(t,{type:"function",message:"cb parameter is not valid"}),n=o(this.baseOptions.rootUrl,"dbconnections","signup"),i=(r=hn.merge(this.baseOptions,["clientID","state"]).with(e)).user_metadata||r.userMetadata,r=hn.blacklist(r,["scope","userMetadata","user_metadata"]),r=hn.toSnakeCase(r,["auth0Client"]),i&&(r.user_metadata=i),this.request.post(n).send(r).end(Dn(t))},Ar.prototype.changePassword=function(e,t){var n,r;return sn.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"}}),sn.check(t,{type:"function",message:"cb parameter is not valid"}),n=o(this.baseOptions.rootUrl,"dbconnections","change_password"),r=hn.merge(this.baseOptions,["clientID"]).with(e,["email","connection"]),r=hn.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(Dn(t))},Pr.prototype.buildAuthorizeUrl=function(e){var t,n;return sn.check(e,{type:"object",message:"options parameter is not valid"}),t=hn.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience"]).with(e),sn.check(t,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},redirectUri:{optional:!0,type:"string",message:"redirectUri option is required"},responseType:{type:"string",message:"responseType option is required"},nonce:{type:"string",message:"nonce option is required",condition:function(e){return-1===e.responseType.indexOf("code")&&-1!==e.responseType.indexOf("id_token")}},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t.connection_scope&&sn.isArray(t.connection_scope)&&(t.connection_scope=t.connection_scope.join(",")),t=hn.blacklist(t,["username","popupOptions","domain","tenant","timeout","appState"]),t=hn.toSnakeCase(t,["auth0Client"]),t=function(e,t){var n=hn.getKeysNotIn(t,In);return n.length>0&&e.warning("Following parameters are not allowed on the `/authorize` endpoint: ["+n.join(",")+"]"),t}(this.warn,t),n=_t.stringify(t),o(this.baseOptions.rootUrl,"authorize","?"+n)},Pr.prototype.buildLogoutUrl=function(e){var t,n;return sn.check(e,{optional:!0,type:"object",message:"options parameter is not valid"}),t=hn.merge(this.baseOptions,["clientID"]).with(e||{}),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t=hn.toSnakeCase(t,["auth0Client","returnTo"]),n=_t.stringify(hn.blacklist(t,["federated"])),e&&void 0!==e.federated&&!1!==e.federated&&"false"!==e.federated&&(n+="&federated"),o(this.baseOptions.rootUrl,"v2","logout","?"+n)},Pr.prototype.loginWithDefaultDirectory=function(e,t){return sn.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),e.grantType="password",this.oauthToken(e,t)},Pr.prototype.login=function(e,t){return sn.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},realm:{type:"string",message:"realm option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),e.grantType="http://auth0.com/oauth/grant-type/password-realm",this.oauthToken(e,t)},Pr.prototype.oauthToken=function(e,t){var n,r,i;return sn.check(e,{type:"object",message:"options parameter is not valid"}),sn.check(t,{type:"function",message:"cb parameter is not valid"}),n=o(this.baseOptions.rootUrl,"oauth","token"),r=hn.merge(this.baseOptions,["clientID","scope","audience"]).with(e),sn.check(r,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},grantType:{type:"string",message:"grantType option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),r=hn.toSnakeCase(r,["auth0Client"]),this.warn,i=r,r=hn.pick(i,Nn),this.request.post(n).send(r).end(Dn(t))},Pr.prototype.loginWithResourceOwner=function(e,t){var n,r;return sn.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},connection:{type:"string",message:"connection option is required"},scope:{optional:!0,type:"string",message:"scope option is required"}}),sn.check(t,{type:"function",message:"cb parameter is not valid"}),n=o(this.baseOptions.rootUrl,"oauth","ro"),r=hn.merge(this.baseOptions,["clientID","scope"]).with(e,["username","password","scope","connection","device"]),(r=hn.toSnakeCase(r,["auth0Client"])).grant_type=r.grant_type||"password",this.request.post(n).send(r).end(Dn(t))},Pr.prototype.getSSOData=function(e,t){if(this.auth0||(this.auth0=new Nr(this.baseOptions)),vn.getWindow().location.host===this.baseOptions.domain)return this.auth0._universalLogin.getSSOData(e,t);"function"==typeof e&&(t=e),sn.check(t,{type:"function",message:"cb parameter is not valid"});var n=this.baseOptions.clientID,r=this.ssodataStorage.get()||{};this.auth0.checkSession({responseType:"token id_token",scope:"openid profile email",connection:r.lastUsedConnection,timeout:5e3},(function(e,i){return e?"login_required"===e.error?t(null,{sso:!1}):("consent_required"===e.error&&(e.error_description="Consent required. When using `getSSOData`, the user has to be authenticated with the following scope: `openid profile email`."),t(e,{sso:!1})):r.lastUsedSub&&r.lastUsedSub!==i.idTokenPayload.sub?t(e,{sso:!1}):t(null,{lastUsedConnection:{name:r.lastUsedConnection},lastUsedUserID:i.idTokenPayload.sub,lastUsedUsername:i.idTokenPayload.email||i.idTokenPayload.name,lastUsedClientID:n,sessionClients:[n],sso:!0})}))},Pr.prototype.userInfo=function(e,t){var n;return sn.check(e,{type:"string",message:"accessToken parameter is not valid"}),sn.check(t,{type:"function",message:"cb parameter is not valid"}),n=o(this.baseOptions.rootUrl,"userinfo"),this.request.get(n).set("Authorization","Bearer "+e).end(Dn(t,{ignoreCasing:!0}))},Pr.prototype.getChallenge=function(e){if(sn.check(e,{type:"function",message:"cb parameter is not valid"}),!this.baseOptions.state)return e();var t=o(this.baseOptions.rootUrl,"usernamepassword","challenge");return this.request.post(t).send({state:this.baseOptions.state}).end(Dn(e,{ignoreCasing:!0}))},Pr.prototype.delegation=function(e,t){var n,r;return sn.check(e,{type:"object",message:"options parameter is not valid"},{grant_type:{type:"string",message:"grant_type option is required"}}),sn.check(t,{type:"function",message:"cb parameter is not valid"}),n=o(this.baseOptions.rootUrl,"delegation"),r=hn.merge(this.baseOptions,["clientID"]).with(e),r=hn.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(Dn(t))},Pr.prototype.getUserCountry=function(e){var t;return sn.check(e,{type:"function",message:"cb parameter is not valid"}),t=o(this.baseOptions.rootUrl,"user","geoloc","country"),this.request.get(t).end(Dn(e))},Ur.prototype.getUser=function(e,t){var n;return sn.check(e,{type:"string",message:"userId parameter is not valid"}),sn.check(t,{type:"function",message:"cb parameter is not valid"}),n=o(this.baseOptions.rootUrl,"users",e),this.request.get(n).end(Dn(t,{ignoreCasing:!0}))},Ur.prototype.patchUserMetadata=function(e,t,n){var r;return sn.check(e,{type:"string",message:"userId parameter is not valid"}),sn.check(t,{type:"object",message:"userMetadata parameter is not valid"}),sn.check(n,{type:"function",message:"cb parameter is not valid"}),r=o(this.baseOptions.rootUrl,"users",e),this.request.patch(r).send({user_metadata:t}).end(Dn(n,{ignoreCasing:!0}))},Ur.prototype.patchUserAttributes=function(e,t,n){var r;return sn.check(e,{type:"string",message:"userId parameter is not valid"}),sn.check(t,{type:"object",message:"user parameter is not valid"}),sn.check(n,{type:"function",message:"cb parameter is not valid"}),r=o(this.baseOptions.rootUrl,"users",e),this.request.patch(r).send(t).end(Dn(n,{ignoreCasing:!0}))},Ur.prototype.linkUser=function(e,t,n){var r;return sn.check(e,{type:"string",message:"userId parameter is not valid"}),sn.check(t,{type:"string",message:"secondaryUserToken parameter is not valid"}),sn.check(n,{type:"function",message:"cb parameter is not valid"}),r=o(this.baseOptions.rootUrl,"users",e,"identities"),this.request.post(r).send({link_with:t}).end(Dn(n,{ignoreCasing:!0}))};const Mr={Authentication:Pr,Management:Ur,WebAuth:Nr,version:tn}},8679:(e,t,n)=>{"use strict";var r=n(1296),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 l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var y=a[g];if(!(o[y]||r&&r[y]||m&&m[y]||s&&s[y])){var _=f(n,y);try{c(t,y,_)}catch(e){}}}}return t}},6103:(e,t)=>{"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,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=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,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,_=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===_||e.$$typeof===v||e.$$typeof===b||e.$$typeof===y)},t.typeOf=w},1296:(e,t,n)=>{"use strict";e.exports=n(6103)},6245:(e,t,n)=>{"use strict";function r(e){this.message=e}n.r(t),n.d(t,{InvalidTokenError:()=>a,default:()=>s}),r.prototype=new Error,r.prototype.name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,o=0,a=0,s="";i=t.charAt(a++);~i&&(n=o%4?64*n+i:i,o++%4)?s+=String.fromCharCode(255&n>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError";const s=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(i(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return i(t)}}(e.split(".")[n]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},1211:(e,t,n)=>{"use strict";n.r(t)},3213:(e,t,n)=>{"use strict";n.r(t)},6704:(e,t,n)=>{"use strict";n.r(t)},3348:(e,t,n)=>{"use strict";n.r(t)},2703:(e,t,n)=>{"use strict";var r=n(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4448:(e,t,n)=>{"use strict";var r=n(7294),i=n(3840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function _(e){return e[1].toUpperCase()}function v(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,_);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,_);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,_);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),R=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var A=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var P=Symbol.iterator;function U(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var M,L=Object.assign;function j(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var B=!1;function z(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function F(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case T:return"Profiler";case E:return"StrictMode";case O:return"Suspense";case D:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case R:return(e.displayName||"Context")+".Consumer";case x:return(e._context.displayName||"Context")+".Provider";case C:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:G(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return G(e(t))}catch(e){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return G(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function H(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function V(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function J(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function Q(e,t){K(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&V(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function oe(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ye=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _e(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ee=null;function Te(e){if(e=vi(e)){if("function"!=typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),ke(e.stateNode,e.type,t))}}function xe(e){Se?Ee?Ee.push(e):Ee=[e]:Se=e}function Re(){if(Se){var e=Se,t=Ee;if(Ee=Se=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Ce(e,t){return e(t)}function Oe(){}var De=!1;function Ne(e,t,n){if(De)return e(t,n);De=!0;try{return Ce(e,t,n)}finally{De=!1,(null!==Se||null!==Ee)&&(Oe(),Re())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ae=!1;if(u)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Ae=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(ue){Ae=!1}function Ue(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Me=!1,Le=null,je=!1,Be=null,ze={onError:function(e){Me=!0,Le=e}};function Fe(e,t,n,r,i,o,a,s,l){Me=!1,Le=null,Ue.apply(ze,arguments)}function Ge(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ye(e){if(Ge(e)!==e)throw Error(o(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ge(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ye(i),e;if(a===r)return Ye(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?He(e):null}function He(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=He(e);if(null!==t)return t;e=e.sibling}return null}var We=i.unstable_scheduleCallback,Ve=i.unstable_cancelCallback,Ze=i.unstable_shouldYield,Je=i.unstable_requestPaint,Ke=i.unstable_now,Qe=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!=(o&=a)&&(r=dt(o))}else 0!=(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&!(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(!!(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function _t(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var vt=0;function bt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,kt,St,Et,Tt,xt=!1,Rt=[],Ct=null,Ot=null,Dt=null,Nt=new Map,It=new Map,At=[],Pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ut(e,t){switch(e){case"focusin":case"focusout":Ct=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=vi(t))&&kt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=_i(e.target);if(null!==t){var n=Ge(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void Tt(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=vi(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function Bt(e,t,n){jt(e)&&n.delete(t)}function zt(){xt=!1,null!==Ct&&jt(Ct)&&(Ct=null),null!==Ot&&jt(Ot)&&(Ot=null),null!==Dt&&jt(Dt)&&(Dt=null),Nt.forEach(Bt),It.forEach(Bt)}function Ft(e,t){e.blockedOn===t&&(e.blockedOn=null,xt||(xt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,zt)))}function Gt(e){function t(t){return Ft(t,e)}if(0<Rt.length){Ft(Rt[0],e);for(var n=1;n<Rt.length;n++){var r=Rt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ct&&Ft(Ct,e),null!==Ot&&Ft(Ot,e),null!==Dt&&Ft(Dt,e),Nt.forEach(t),It.forEach(t),n=0;n<At.length;n++)(r=At[n]).blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&null===(n=At[0]).blockedOn;)Lt(n),null===n.blockedOn&&At.shift()}var $t=b.ReactCurrentBatchConfig,Yt=!0;function qt(e,t,n,r){var i=vt,o=$t.transition;$t.transition=null;try{vt=1,Wt(e,t,n,r)}finally{vt=i,$t.transition=o}}function Ht(e,t,n,r){var i=vt,o=$t.transition;$t.transition=null;try{vt=4,Wt(e,t,n,r)}finally{vt=i,$t.transition=o}}function Wt(e,t,n,r){if(Yt){var i=Zt(e,t,n,r);if(null===i)Yr(e,t,r,Vt,n),Ut(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Ct=Mt(Ct,e,t,n,r,i),!0;case"dragenter":return Ot=Mt(Ot,e,t,n,r,i),!0;case"mouseover":return Dt=Mt(Dt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Nt.set(o,Mt(Nt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,It.set(o,Mt(It.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Ut(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==i;){var o=vi(i);if(null!==o&&wt(o),null===(o=Zt(e,t,n,r))&&Yr(e,t,r,Vt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Yr(e,t,r,null,n)}}var Vt=null;function Zt(e,t,n,r){if(Vt=null,null!==(e=_i(e=we(r))))if(null===(t=Ge(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vt=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Qt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Qt,r=n.length,i="value"in Kt?Kt.value:Kt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=L({},cn,{view:0,detail:0}),fn=on(dn),pn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(L({},pn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),yn=on(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=on(_n),bn=on(L({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Tn(){return En}var xn=L({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Rn=on(xn),Cn=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Dn=on(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=L({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=on(Nn),An=[9,13,27,32],Pn=u&&"CompositionEvent"in window,Un=null;u&&"documentMode"in document&&(Un=document.documentMode);var Mn=u&&"TextEvent"in window&&!Un,Ln=u&&(!Pn||Un&&8<Un&&11>=Un),jn=String.fromCharCode(32),Bn=!1;function zn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Gn=!1,$n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function qn(e,t,n,r){xe(r),0<(t=Hr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,Wn=null;function Vn(e){jr(e,0)}function Zn(e){if(W(bi(e)))return e}function Jn(e,t){if("change"===e)return t}var Kn=!1;if(u){var Qn;if(u){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"==typeof er.oninput}Qn=Xn}else Qn=!1;Kn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Hn&&(Hn.detachEvent("onpropertychange",nr),Wn=Hn=null)}function nr(e){if("value"===e.propertyName&&Zn(Wn)){var t=[];qn(t,Wn,e,we(e)),Ne(Vn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Wn=n,(Hn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Wn)}function or(e,t){if("click"===e)return Zn(t)}function ar(e,t){if("input"===e||"change"===e)return Zn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=V();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=V((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,_r=null,vr=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==gr||gr!==V(r)||(r="selectionStart"in(r=gr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},_r&&lr(_r,r)||(_r=r,0<(r=Hr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},Er={};function Tr(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Sr[e]=n[t];return e}u&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var xr=Tr("animationend"),Rr=Tr("animationiteration"),Cr=Tr("animationstart"),Or=Tr("transitionend"),Dr=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Dr.set(e,t),l(t,[e])}for(var Ar=0;Ar<Nr.length;Ar++){var Pr=Nr[Ar];Ir(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Ir(xr,"onAnimationEnd"),Ir(Rr,"onAnimationIteration"),Ir(Cr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Or,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ur="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ur));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,c){if(Fe.apply(this,arguments),Me){if(!Me)throw Error(o(198));var u=Le;Me=!1,Le=null,je||(je=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function jr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}}}if(je)throw e=Be,je=!1,Be=null,e}function Br(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function Gr(e){if(!e[Fr]){e[Fr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fr]||(t[Fr]=!0,zr("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Jt(t)){case 1:var i=qt;break;case 4:i=Ht;break;default:i=Wt}n=i.bind(null,t,n,e),i=void 0,!Ae||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Yr(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=_i(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Ne((function(){var r=o,i=we(n),a=[];e:{var s=Dr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Rn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=On;break;case xr:case Rr:case Cr:l=yn;break;case Or:l=Dn;break;case"scroll":l=fn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Cn}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=Ie(h,f))&&u.push(qr(h,m,p))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===be||!(c=n.relatedTarget||n.fromElement)||!_i(c)&&!c[hi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?_i(c):null)&&(c!==(d=Ge(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Cn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:bi(l),p=null==c?s:bi(c),(s=new u(m,h+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,_i(i)===r&&((u=new u(f,h+"enter",c,n,i)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Wr(p))h++;for(p=0,m=f;m;m=Wr(m))p++;for(;0<h-p;)u=Wr(u),h--;for(;0<p-h;)f=Wr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Wr(u),f=Wr(f)}u=null}else u=null;null!==l&&Vr(a,s,l,u,!1),null!==c&&null!==d&&Vr(a,d,c,u,!0)}if("select"===(l=(s=r?bi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Jn;else if(Yn(s))if(Kn)g=ar;else{g=ir;var y=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?qn(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?bi(r):window,e){case"focusin":(Yn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,_r=null);break;case"focusout":_r=yr=gr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,br(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":br(a,n,i)}var _;if(Pn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Gn?zn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Ln&&"ko"!==n.locale&&(Gn||"onCompositionStart"!==v?"onCompositionEnd"===v&&Gn&&(_=en()):(Qt="value"in(Kt=i)?Kt.value:Kt.textContent,Gn=!0)),0<(y=Hr(r,v)).length&&(v=new bn(v,e,null,n,i),a.push({event:v,listeners:y}),(_||null!==(_=Fn(n)))&&(v.data=_))),(_=Mn?function(e,t){switch(e){case"compositionend":return Fn(t);case"keypress":return 32!==t.which?null:(Bn=!0,jn);case"textInput":return(e=t.data)===jn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Gn)return"compositionend"===e||!Pn&&zn(e,t)?(e=en(),Xt=Qt=Kt=null,Gn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Hr(r,"onBeforeInput")).length&&(i=new bn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=_)}jr(a,t)}))}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ie(e,n))&&r.unshift(qr(e,o,i)),null!=(o=Ie(e,t))&&r.push(qr(e,o,i))),e=e.return}return r}function Wr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Vr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Ie(n,o))&&a.unshift(qr(n,l,s)):i||null!=(l=Ie(n,o))&&a.push(qr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Zr=/\r\n?/g,Jr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Zr,"\n").replace(Jr,"")}function Qr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(o(425))}function Xr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Gt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Gt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,pi="__reactProps$"+di,hi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,yi="__reactHandles$"+di;function _i(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[fi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function vi(e){return!(e=e[fi]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[pi]||null}var ki=[],Si=-1;function Ei(e){return{current:e}}function Ti(e){0>Si||(e.current=ki[Si],ki[Si]=null,Si--)}function xi(e,t){Si++,ki[Si]=e.current,e.current=t}var Ri={},Ci=Ei(Ri),Oi=Ei(!1),Di=Ri;function Ni(e,t){var n=e.type.contextTypes;if(!n)return Ri;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ii(e){return null!=e.childContextTypes}function Ai(){Ti(Oi),Ti(Ci)}function Pi(e,t,n){if(Ci.current!==Ri)throw Error(o(168));xi(Ci,t),xi(Oi,n)}function Ui(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,$(e)||"Unknown",i));return L({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ri,Di=Ci.current,xi(Ci,e),xi(Oi,Oi.current),!0}function Li(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ui(e,t,Di),r.__reactInternalMemoizedMergedChildContext=e,Ti(Oi),Ti(Ci),xi(Ci,e)):Ti(Oi),xi(Oi,n)}var ji=null,Bi=!1,zi=!1;function Fi(e){null===ji?ji=[e]:ji.push(e)}function Gi(){if(!zi&&null!==ji){zi=!0;var e=0,t=vt;try{var n=ji;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}ji=null,Bi=!1}catch(t){throw null!==ji&&(ji=ji.slice(e+1)),We(Xe,Gi),t}finally{vt=t,zi=!1}}return null}var $i=[],Yi=0,qi=null,Hi=0,Wi=[],Vi=0,Zi=null,Ji=1,Ki="";function Qi(e,t){$i[Yi++]=Hi,$i[Yi++]=qi,qi=e,Hi=t}function Xi(e,t,n){Wi[Vi++]=Ji,Wi[Vi++]=Ki,Wi[Vi++]=Zi,Zi=e;var r=Ji;e=Ki;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Ji=1<<32-at(t)+i|n<<i|r,Ki=o+e}else Ji=1<<o|n<<i|r,Ki=e}function eo(e){null!==e.return&&(Qi(e,1),Xi(e,1,0))}function to(e){for(;e===qi;)qi=$i[--Yi],$i[Yi]=null,Hi=$i[--Yi],$i[Yi]=null;for(;e===Zi;)Zi=Wi[--Vi],Wi[Vi]=null,Ki=Wi[--Vi],Wi[Vi]=null,Ji=Wi[--Vi],Wi[Vi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zi?{id:Ji,overflow:Ki}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return!(!(1&e.mode)||128&e.flags)}function co(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ci(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ci(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=ci(e.nextSibling)}function ho(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=b.ReactCurrentBatchConfig;function yo(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var _o=Ei(null),vo=null,bo=null,wo=null;function ko(){wo=bo=vo=null}function So(e){var t=_o.current;Ti(_o),e._currentValue=t}function Eo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function To(e,t){vo=e,wo=bo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(bs=!0),e.firstContext=null)}function xo(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===bo){if(null===vo)throw Error(o(308));bo=e,vo.dependencies={lanes:0,firstContext:e}}else bo=bo.next=e;return t}var Ro=null;function Co(e){null===Ro?Ro=[e]:Ro.push(e)}function Oo(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Co(t)):(n.next=i.next,i.next=n),t.interleaved=n,Do(e,r)}function Do(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var No=!1;function Io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Po(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Uo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ol){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Do(e,n)}return null===(i=r.interleaved)?(t.next=t,Co(r)):(t.next=i.next,i.next=t),r.interleaved=t,Do(e,n)}function Mo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,_t(e,n)}}function Lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jo(e,t,n,r){var i=e.updateQueue;No=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&(s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=L({},d,f);break e;case 2:No=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ll|=a,e.lanes=a,e.memoizedState=d}}function Bo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var zo=(new r.Component).refs;function Fo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Go={isMounted:function(e){return!!(e=e._reactInternals)&&Ge(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=Po(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=Uo(e,o,i))&&(rc(t,e,i,r),Mo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=Po(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Uo(e,o,i))&&(rc(t,e,i,r),Mo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),i=Po(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Uo(e,i,r))&&(rc(t,e,r,n),Mo(t,e,r))}};function $o(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,o))}function Yo(e,t,n){var r=!1,i=Ri,o=t.contextType;return"object"==typeof o&&null!==o?o=xo(o):(i=Ii(t)?Di:Ci.current,o=(r=null!=(r=t.contextTypes))?Ni(e,i):Ri),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Go,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function qo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Go.enqueueReplaceState(t,t.state,null)}function Ho(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=zo,Io(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=xo(o):(o=Ii(t)?Di:Ci.current,i.context=Ni(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Fo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Go.enqueueReplaceState(i,i.state,null),jo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function Wo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===zo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Vo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Zo(e){return(0,e._init)(e._payload)}function Jo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Pc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=jc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===I&&Zo(o)===t.type)?((r=i(t,n.props)).ref=Wo(e,t,n),r.return=e,r):((r=Uc(n.type,n.key,n.props,null,e.mode,r)).ref=Wo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Mc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=jc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Uc(t.type,t.key,t.props,null,e.mode,n)).ref=Wo(e,null,t),n.return=e,n;case k:return(t=Bc(t,e.mode,n)).return=e,t;case I:return f(e,(0,t._init)(t._payload),n)}if(te(t)||U(t))return(t=Mc(t,e.mode,n,null)).return=e,t;Vo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?c(e,t,n,r):null;case k:return n.key===i?u(e,t,n,r):null;case I:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||U(n))return null!==i?null:d(e,t,n,r,null);Vo(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case I:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||U(r))return d(t,e=e.get(n)||null,r,i,null);Vo(t,r)}return null}function m(i,o,s,l){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=p(i,d,s[m],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(i,d),o=a(y,o,m),null===u?c=y:u.sibling=y,u=y,d=g}if(m===s.length)return n(i,d),io&&Qi(i,m),c;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(o=a(d,o,m),null===u?c=d:u.sibling=d,u=d);return io&&Qi(i,m),c}for(d=r(i,d);m<s.length;m++)null!==(g=h(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(i,e)})),io&&Qi(i,m),c}function g(i,s,l,c){var u=U(l);if("function"!=typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,g=s=0,y=null,_=l.next();null!==m&&!_.done;g++,_=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var v=p(i,m,_.value,c);if(null===v){null===m&&(m=y);break}e&&m&&null===v.alternate&&t(i,m),s=a(v,s,g),null===d?u=v:d.sibling=v,d=v,m=y}if(_.done)return n(i,m),io&&Qi(i,g),u;if(null===m){for(;!_.done;g++,_=l.next())null!==(_=f(i,_.value,c))&&(s=a(_,s,g),null===d?u=_:d.sibling=_,d=_);return io&&Qi(i,g),u}for(m=r(i,m);!_.done;g++,_=l.next())null!==(_=h(m,i,g,_.value,c))&&(e&&null!==_.alternate&&m.delete(null===_.key?g:_.key),s=a(_,s,g),null===d?u=_:d.sibling=_,d=_);return e&&m.forEach((function(e){return t(i,e)})),io&&Qi(i,g),u}return function e(r,o,a,l){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===S){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===I&&Zo(c)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=Wo(r,u,a),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===S?((o=Mc(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Uc(a.type,a.key,a.props,null,r.mode,l)).ref=Wo(r,o,a),l.return=r,r=l)}return s(r);case k:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Bc(a,r.mode,l)).return=r,r=o}return s(r);case I:return e(r,o,(u=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(U(a))return g(r,o,a,l);Vo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=jc(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Ko=Jo(!0),Qo=Jo(!1),Xo={},ea=Ei(Xo),ta=Ei(Xo),na=Ei(Xo);function ra(e){if(e===Xo)throw Error(o(174));return e}function ia(e,t){switch(xi(na,t),xi(ta,e),xi(ea,Xo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ti(ea),xi(ea,t)}function oa(){Ti(ea),Ti(ta),Ti(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=le(t,e.type);t!==n&&(xi(ta,e),xi(ea,n))}function sa(e){ta.current===e&&(Ti(ea),Ti(ta))}var la=Ei(0);function ca(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=[];function da(){for(var e=0;e<ua.length;e++)ua[e]._workInProgressVersionPrimary=null;ua.length=0}var fa=b.ReactCurrentDispatcher,pa=b.ReactCurrentBatchConfig,ha=0,ma=null,ga=null,ya=null,_a=!1,va=!1,ba=0,wa=0;function ka(){throw Error(o(321))}function Sa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ea(e,t,n,r,i,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ss:ls,e=n(r,i),va){a=0;do{if(va=!1,ba=0,25<=a)throw Error(o(301));a+=1,ya=ga=null,t.updateQueue=null,fa.current=cs,e=n(r,i)}while(va)}if(fa.current=as,t=null!==ga&&null!==ga.next,ha=0,ya=ga=ma=null,_a=!1,t)throw Error(o(300));return e}function Ta(){var e=0!==ba;return ba=0,e}function xa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ya?ma.memoizedState=ya=e:ya=ya.next=e,ya}function Ra(){if(null===ga){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===ya?ma.memoizedState:ya.next;if(null!==t)ya=t,ga=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===ya?ma.memoizedState=ya=e:ya=ya.next=e}return ya}function Ca(e,t){return"function"==typeof t?t(e):t}function Oa(e){var t=Ra(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ga,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((ha&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,ma.lanes|=d,Ll|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,ma.lanes|=a,Ll|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Da(e){var t=Ra(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Na(){}function Ia(e,t){var n=ma,r=Ra(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Ya(Ua.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ya&&1&ya.memoizedState.tag){if(n.flags|=2048,Ba(9,Pa.bind(null,n,r,i,t),void 0,null),null===Dl)throw Error(o(349));30&ha||Aa(n,t,i)}return i}function Aa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Pa(e,t,n,r){t.value=n,t.getSnapshot=r,Ma(t)&&La(e)}function Ua(e,t,n){return n((function(){Ma(t)&&La(e)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function La(e){var t=Do(e,1);null!==t&&rc(t,e,1,-1)}function ja(e){var t=xa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ma,e),[t.memoizedState,e]}function Ba(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function za(){return Ra().memoizedState}function Fa(e,t,n,r){var i=xa();ma.flags|=e,i.memoizedState=Ba(1|t,n,void 0,void 0===r?null:r)}function Ga(e,t,n,r){var i=Ra();r=void 0===r?null:r;var o=void 0;if(null!==ga){var a=ga.memoizedState;if(o=a.destroy,null!==r&&Sa(r,a.deps))return void(i.memoizedState=Ba(t,n,o,r))}ma.flags|=e,i.memoizedState=Ba(1|t,n,o,r)}function $a(e,t){return Fa(8390656,8,e,t)}function Ya(e,t){return Ga(2048,8,e,t)}function qa(e,t){return Ga(4,2,e,t)}function Ha(e,t){return Ga(4,4,e,t)}function Wa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Va(e,t,n){return n=null!=n?n.concat([e]):null,Ga(4,4,Wa.bind(null,t,e),n)}function Za(){}function Ja(e,t){var n=Ra();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ka(e,t){var n=Ra();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qa(e,t,n){return 21&ha?(sr(n,t)||(n=mt(),ma.lanes|=n,Ll|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Xa(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{vt=n,pa.transition=r}}function es(){return Ra().memoizedState}function ts(e,t,n){var r=nc(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e)?is(t,n):null!==(n=Oo(e,t,n,r))&&(rc(n,e,r,tc()),os(n,t,r))}function ns(e,t,n){var r=nc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Co(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Oo(e,t,i,r))&&(rc(n,e,r,i=tc()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function is(e,t){va=_a=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,_t(e,n)}}var as={readContext:xo,useCallback:ka,useContext:ka,useEffect:ka,useImperativeHandle:ka,useInsertionEffect:ka,useLayoutEffect:ka,useMemo:ka,useReducer:ka,useRef:ka,useState:ka,useDebugValue:ka,useDeferredValue:ka,useTransition:ka,useMutableSource:ka,useSyncExternalStore:ka,useId:ka,unstable_isNewReconciler:!1},ss={readContext:xo,useCallback:function(e,t){return xa().memoizedState=[e,void 0===t?null:t],e},useContext:xo,useEffect:$a,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Fa(4194308,4,Wa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fa(4,2,e,t)},useMemo:function(e,t){var n=xa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},xa().memoizedState=e},useState:ja,useDebugValue:Za,useDeferredValue:function(e){return xa().memoizedState=e},useTransition:function(){var e=ja(!1),t=e[0];return e=Xa.bind(null,e[1]),xa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,i=xa();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Dl)throw Error(o(349));30&ha||Aa(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,$a(Ua.bind(null,r,a,e),[e]),r.flags|=2048,Ba(9,Pa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=xa(),t=Dl.identifierPrefix;if(io){var n=Ki;t=":"+t+"R"+(n=(Ji&~(1<<32-at(Ji)-1)).toString(32)+n),0<(n=ba++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:xo,useCallback:Ja,useContext:xo,useEffect:Ya,useImperativeHandle:Va,useInsertionEffect:qa,useLayoutEffect:Ha,useMemo:Ka,useReducer:Oa,useRef:za,useState:function(){return Oa(Ca)},useDebugValue:Za,useDeferredValue:function(e){return Qa(Ra(),ga.memoizedState,e)},useTransition:function(){return[Oa(Ca)[0],Ra().memoizedState]},useMutableSource:Na,useSyncExternalStore:Ia,useId:es,unstable_isNewReconciler:!1},cs={readContext:xo,useCallback:Ja,useContext:xo,useEffect:Ya,useImperativeHandle:Va,useInsertionEffect:qa,useLayoutEffect:Ha,useMemo:Ka,useReducer:Da,useRef:za,useState:function(){return Da(Ca)},useDebugValue:Za,useDeferredValue:function(e){var t=Ra();return null===ga?t.memoizedState=e:Qa(t,ga.memoizedState,e)},useTransition:function(){return[Da(Ca)[0],Ra().memoizedState]},useMutableSource:Na,useSyncExternalStore:Ia,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=F(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Po(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,Hl=r),fs(0,t)},n}function ms(e,t,n){(n=Po(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!=typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=xc.bind(null,e,t,n),t.then(e,e))}function ys(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function _s(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Po(-1,1)).tag=2,Uo(n,t,1))),n.lanes|=1),e)}var vs=b.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?Qo(t,null,n,r):Ko(t,e.child,n,r)}function ks(e,t,n,r,i){n=n.render;var o=t.ref;return To(t,i),r=Ea(e,t,n,r,o,i),n=Ta(),null===e||bs?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function Ss(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Ac(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Uc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Es(e,t,o,r,i))}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return qs(e,t,i)}return t.flags|=1,(e=Pc(o,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,!(e.lanes&i))return t.lanes=e.lanes,qs(e,t,i);131072&e.flags&&(bs=!0)}}return Rs(e,t,n,r,i)}function Ts(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xi(Pl,Al),Al|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,xi(Pl,Al),Al|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xi(Pl,Al),Al|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,xi(Pl,Al),Al|=r;return ws(e,t,i,n),t.child}function xs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rs(e,t,n,r,i){var o=Ii(n)?Di:Ci.current;return o=Ni(t,o),To(t,i),n=Ea(e,t,n,r,o,i),r=Ta(),null===e||bs?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function Cs(e,t,n,r,i){if(Ii(n)){var o=!0;Mi(t)}else o=!1;if(To(t,i),null===t.stateNode)Ys(e,t),Yo(t,n,r),Ho(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;c="object"==typeof c&&null!==c?xo(c):Ni(t,c=Ii(n)?Di:Ci.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&qo(t,a,r,c),No=!1;var f=t.memoizedState;a.state=f,jo(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Oi.current||No?("function"==typeof u&&(Fo(t,n,u,r),l=t.memoizedState),(s=No||$o(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ao(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:yo(t.type,s),a.props=c,d=t.pendingProps,f=a.context,l="object"==typeof(l=n.contextType)&&null!==l?xo(l):Ni(t,l=Ii(n)?Di:Ci.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&qo(t,a,r,l),No=!1,f=t.memoizedState,a.state=f,jo(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||Oi.current||No?("function"==typeof p&&(Fo(t,n,p,r),h=t.memoizedState),(c=No||$o(t,n,c,r,f,h,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Os(e,t,n,r,o,i)}function Os(e,t,n,r,i,o){xs(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&Li(t,n,!1),qs(e,t,o);r=t.stateNode,vs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ko(t,e.child,null,o),t.child=Ko(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function Ds(e){var t=e.stateNode;t.pendingContext?Pi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pi(0,t.context,!1),ia(e,t.containerInfo)}function Ns(e,t,n,r,i){return ho(),mo(i),t.flags|=256,ws(e,t,n,r),t.child}var Is,As,Ps,Us,Ms={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function js(e,t,n){var r,i=t.pendingProps,a=la.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),xi(la,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Lc(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Mc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(n),t.memoizedState=Ms,e):Bs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,zs(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Lc({mode:"visible",children:r.children},i,0,null),(a=Mc(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,!!(1&t.mode)&&Ko(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=Ms,a);if(!(1&t.mode))return zs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,zs(e,t,s,r=ds(a=Error(o(419)),r,void 0))}if(l=!!(s&e.childLanes),bs||l){if(null!==(r=Dl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(r.suspendedLanes|s)?0:i)&&i!==a.retryLane&&(a.retryLane=i,Do(e,i),rc(r,e,i,-1))}return gc(),zs(e,t,s,r=ds(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Cc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ci(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Wi[Vi++]=Ji,Wi[Vi++]=Ki,Wi[Vi++]=Zi,Ji=e.id,Ki=e.overflow,Zi=t),(t=Bs(t,r.children)).flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Pc(a,c)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null),null!==r?s=Pc(r,s):(s=Mc(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ls(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,i}return e=(s=e.child).sibling,i=Pc(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Bs(e,t){return(t=Lc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zs(e,t,n,r){return null!==r&&mo(r),Ko(t,e.child,null,n),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Eo(e.return,t,n)}function Gs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function $s(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),2&(r=la.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fs(e,n,t);else if(19===e.tag)Fs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(xi(la,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ca(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Gs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ca(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Gs(t,!0,n,null,o);break;case"together":Gs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ys(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Pc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Hs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vs(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Ii(t.type)&&Ai(),Ws(t),null;case 3:return r=t.stateNode,oa(),Ti(Oi),Ti(Ci),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oo&&(sc(oo),oo=null))),As(e,t),Ws(t),null;case 5:sa(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Ps(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Ws(t),null}if(e=ra(ea.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[pi]=a,e=!!(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(i=0;i<Ur.length;i++)Br(Ur[i],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":J(r,a),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Br("invalid",r);break;case"textarea":ie(r,a),Br("invalid",r)}for(var l in _e(n,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,c,e),i=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":H(r),X(r,a,!0);break;case"textarea":H(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Xr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fi]=t,e[pi]=r,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(n,r),n){case"dialog":Br("cancel",e),Br("close",e),i=r;break;case"iframe":case"object":case"embed":Br("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ur.length;i++)Br(Ur[i],e);i=r;break;case"source":Br("error",e),i=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),i=r;break;case"details":Br("toggle",e),i=r;break;case"input":J(e,r),i=Z(e,r),Br("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),Br("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Br("invalid",e)}for(a in _e(n,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"==typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Br("scroll",e):null!=u&&v(e,a,u,l))}switch(n){case"input":H(e),X(e,r,!1);break;case"textarea":H(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)Us(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=ra(na.current),ra(ea.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Qr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return Ws(t),null;case 13:if(Ti(la),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&1&t.mode&&!(128&t.flags))po(),ho(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else ho(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),a=!1}else null!==oo&&(sc(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,!!(1&t.mode)&&(null===e||1&la.current?0===Ul&&(Ul=3):gc())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return oa(),As(e,t),null===e&&Gr(t.stateNode.containerInfo),Ws(t),null;case 10:return So(t.type._context),Ws(t),null;case 19:if(Ti(la),null===(a=t.memoizedState))return Ws(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)Hs(a,!1);else{if(0!==Ul||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ca(e))){for(t.flags|=128,Hs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xi(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Ke()>$l&&(t.flags|=128,r=!0,Hs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ca(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Hs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Ws(t),null}else 2*Ke()-a.renderingStartTime>$l&&1073741824!==n&&(t.flags|=128,r=!0,Hs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ke(),t.sibling=null,n=la.current,xi(la,r?1&n|2:1&n),t):(Ws(t),null);case 22:case 23:return fc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Al)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Zs(e,t){switch(to(t),t.tag){case 1:return Ii(t.type)&&Ai(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Ti(Oi),Ti(Ci),da(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Ti(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ti(la),null;case 4:return oa(),null;case 10:return So(t.type._context),null;case 22:case 23:return fc(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},As=function(){},Ps=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=Z(e,i),r=Z(e,r),a=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(u in _e(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Us=function(e,t,n,r){n!==r&&(t.flags|=4)};var Js=!1,Ks=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Xs=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Tc(e,t,n)}else n.current=null}function tl(e,t,n){try{n()}catch(n){Tc(e,t,n)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tl(t,n,o)}i=i.next}while(i!==r)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fi],delete t[pi],delete t[mi],delete t[gi],delete t[yi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,fl=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Ks||el(n,t);case 6:var r=dl,i=fl;dl=null,pl(e,t,n),fl=i,null!==(dl=r)&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Gt(e)):li(dl,n.stateNode));break;case 4:r=dl,i=fl,dl=n.stateNode.containerInfo,fl=!0,pl(e,t,n),dl=r,fl=i;break;case 0:case 11:case 14:case 15:if(!Ks&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(!!(2&o)||!!(4&o))&&tl(n,t,a),i=i.next}while(i!==r)}pl(e,t,n);break;case 1:if(!Ks&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Tc(n,t,e)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,pl(e,t,n),Ks=r):pl(e,t,n);break;default:pl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Oc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,fl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,fl=!0;break e}l=l.return}if(null===dl)throw Error(o(160));hl(a,s,i),dl=null,fl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(e){Tc(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),_l(e),4&r){try{rl(3,e,e.return),il(3,e)}catch(t){Tc(e,e.return,t)}try{rl(5,e,e.return)}catch(t){Tc(e,e.return,t)}}break;case 1:gl(t,e),_l(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),_l(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Tc(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&K(i,a),ve(l,s);var u=ve(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):v(i,d,f,u)}switch(l){case"input":Q(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(t){Tc(e,e.return,t)}}break;case 6:if(gl(t,e),_l(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Tc(e,e.return,t)}}break;case 3:if(gl(t,e),_l(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Gt(t.containerInfo)}catch(t){Tc(e,e.return,t)}break;case 4:default:gl(t,e),_l(e);break;case 13:gl(t,e),_l(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Gl=Ke())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ks=(u=Ks)||d,gl(t,e),Ks=u):gl(t,e),_l(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Xs=e,d=e.child;null!==d;){for(f=Xs=d;null!==Xs;){switch(h=(p=Xs).child,p.tag){case 0:case 11:case 14:case 15:rl(4,p,p.return);break;case 1:el(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Tc(r,n,e)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){kl(f);continue}}null!==h?(h.return=p,Xs=h):kl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(c=f.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(t){Tc(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){Tc(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gl(t,e),_l(e),4&r&&ml(e);case 21:}}function _l(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),ul(e,ll(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;cl(e,ll(e),a);break;default:throw Error(o(161))}}catch(t){Tc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Xs=e,bl(e,t,n)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Xs;){var i=Xs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Js;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=Js;var c=Ks;if(Js=a,(Ks=l)&&!c)for(Xs=i;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?Sl(i):null!==l?(l.return=a,Xs=l):Sl(i);for(;null!==o;)Xs=o,bl(o,t,n),o=o.sibling;Xs=i,Js=s,Ks=c}wl(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Xs=o):wl(e)}}function wl(e){for(;null!==Xs;){var t=Xs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ks||il(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ks)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:yo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Bo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Bo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Gt(f)}}}break;default:throw Error(o(163))}Ks||512&t.flags&&ol(t)}catch(e){Tc(t,t.return,e)}}if(t===e){Xs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xs=n;break}Xs=t.return}}function kl(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function Sl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(e){Tc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Tc(t,i,e)}}var o=t.return;try{ol(t)}catch(e){Tc(t,o,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Tc(t,a,e)}}}catch(e){Tc(t,t.return,e)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var El,Tl=Math.ceil,xl=b.ReactCurrentDispatcher,Rl=b.ReactCurrentOwner,Cl=b.ReactCurrentBatchConfig,Ol=0,Dl=null,Nl=null,Il=0,Al=0,Pl=Ei(0),Ul=0,Ml=null,Ll=0,jl=0,Bl=0,zl=null,Fl=null,Gl=0,$l=1/0,Yl=null,ql=!1,Hl=null,Wl=null,Vl=!1,Zl=null,Jl=0,Kl=0,Ql=null,Xl=-1,ec=0;function tc(){return 6&Ol?Ke():-1!==Xl?Xl:Xl=Ke()}function nc(e){return 1&e.mode?2&Ol&&0!==Il?Il&-Il:null!==go.transition?(0===ec&&(ec=mt()),ec):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Jt(e.type):1}function rc(e,t,n,r){if(50<Kl)throw Kl=0,Ql=null,Error(o(185));yt(e,n,r),2&Ol&&e===Dl||(e===Dl&&(!(2&Ol)&&(jl|=n),4===Ul&&lc(e,Il)),ic(e,r),1===n&&0===Ol&&!(1&t.mode)&&($l=Ke()+500,Bi&&Gi()))}function ic(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?!!(s&n)&&!(s&r)||(i[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Dl?Il:0);if(0===r)null!==n&&Ve(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ve(n),1===t)0===e.tag?function(e){Bi=!0,Fi(e)}(cc.bind(null,e)):Fi(cc.bind(null,e)),ai((function(){!(6&Ol)&&Gi()})),n=null;else{switch(bt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Dc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Xl=-1,ec=0,6&Ol)throw Error(o(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=ft(e,e===Dl?Il:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=yc(e,r);else{t=r;var i=Ol;Ol|=2;var a=mc();for(Dl===e&&Il===t||(Yl=null,$l=Ke()+500,pc(e,t));;)try{vc();break}catch(t){hc(e,t)}ko(),xl.current=a,Ol=i,null!==Nl?t=0:(Dl=null,Il=0,t=Ul)}if(0!==t){if(2===t&&0!==(i=ht(e))&&(r=i,t=ac(e,i)),1===t)throw n=Ml,pc(e,0),lc(e,r),ic(e,Ke()),n;if(6===t)lc(e,r);else{if(i=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(2===(t=yc(e,r))&&0!==(a=ht(e))&&(r=a,t=ac(e,a)),1!==t)))throw n=Ml,pc(e,0),lc(e,r),ic(e,Ke()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:kc(e,Fl,Yl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=Gl+500-Ke())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(kc.bind(null,e,Fl,Yl),t);break}kc(e,Fl,Yl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Tl(r/1960))-r)){e.timeoutHandle=ri(kc.bind(null,e,Fl,Yl),r);break}kc(e,Fl,Yl);break;default:throw Error(o(329))}}}return ic(e,Ke()),e.callbackNode===n?oc.bind(null,e):null}function ac(e,t){var n=zl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=yc(e,t))&&(t=Fl,Fl=n,null!==t&&sc(t)),e}function sc(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function lc(e,t){for(t&=~Bl,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(6&Ol)throw Error(o(327));Sc();var t=ft(e,0);if(!(1&t))return ic(e,Ke()),null;var n=yc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=Ml,pc(e,0),lc(e,t),ic(e,Ke()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kc(e,Fl,Yl),ic(e,Ke()),null}function uc(e,t){var n=Ol;Ol|=1;try{return e(t)}finally{0===(Ol=n)&&($l=Ke()+500,Bi&&Gi())}}function dc(e){null!==Zl&&0===Zl.tag&&!(6&Ol)&&Sc();var t=Ol;Ol|=1;var n=Cl.transition,r=vt;try{if(Cl.transition=null,vt=1,e)return e()}finally{vt=r,Cl.transition=n,!(6&(Ol=t))&&Gi()}}function fc(){Al=Pl.current,Ti(Pl)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Nl)for(n=Nl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ai();break;case 3:oa(),Ti(Oi),Ti(Ci),da();break;case 5:sa(r);break;case 4:oa();break;case 13:case 19:Ti(la);break;case 10:So(r.type._context);break;case 22:case 23:fc()}n=n.return}if(Dl=e,Nl=e=Pc(e.current,null),Il=Al=t,Ul=0,Ml=null,Bl=jl=Ll=0,Fl=zl=null,null!==Ro){for(t=0;t<Ro.length;t++)if(null!==(r=(n=Ro[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Ro=null}return e}function hc(e,t){for(;;){var n=Nl;try{if(ko(),fa.current=as,_a){for(var r=ma.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}_a=!1}if(ha=0,ya=ga=ma=null,va=!1,ba=0,Rl.current=null,null===n||null===n.return){Ul=1,Ml=t,Nl=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=ys(s);if(null!==h){h.flags&=-257,_s(h,s,l,0,t),1&h.mode&&gs(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(!(1&t)){gs(a,u,t),gc();break e}c=Error(o(426))}else if(io&&1&l.mode){var y=ys(s);if(null!==y){!(65536&y.flags)&&(y.flags|=256),_s(y,s,l,0,t),mo(us(c,l));break e}}a=c=us(c,l),4!==Ul&&(Ul=2),null===zl?zl=[a]:zl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,hs(0,c,t));break e;case 1:l=c;var _=a.type,v=a.stateNode;if(!(128&a.flags||"function"!=typeof _.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Wl&&Wl.has(v)))){a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,ms(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(e){t=e,Nl===n&&null!==n&&(Nl=n=n.return);continue}break}}function mc(){var e=xl.current;return xl.current=as,null===e?as:e}function gc(){0!==Ul&&3!==Ul&&2!==Ul||(Ul=4),null===Dl||!(268435455&Ll)&&!(268435455&jl)||lc(Dl,Il)}function yc(e,t){var n=Ol;Ol|=2;var r=mc();for(Dl===e&&Il===t||(Yl=null,pc(e,t));;)try{_c();break}catch(t){hc(e,t)}if(ko(),Ol=n,xl.current=r,null!==Nl)throw Error(o(261));return Dl=null,Il=0,Ul}function _c(){for(;null!==Nl;)bc(Nl)}function vc(){for(;null!==Nl&&!Ze();)bc(Nl)}function bc(e){var t=El(e.alternate,e,Al);e.memoizedProps=e.pendingProps,null===t?wc(e):Nl=t,Rl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Zs(n,t)))return n.flags&=32767,void(Nl=n);if(null===e)return Ul=6,void(Nl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Vs(n,t,Al)))return void(Nl=n);if(null!==(t=t.sibling))return void(Nl=t);Nl=t=e}while(null!==t);0===Ul&&(Ul=5)}function kc(e,t,n){var r=vt,i=Cl.transition;try{Cl.transition=null,vt=1,function(e,t,n,r){do{Sc()}while(null!==Zl);if(6&Ol)throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Dl&&(Nl=Dl=null,Il=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Vl||(Vl=!0,Dc(tt,(function(){return Sc(),null}))),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Cl.transition,Cl.transition=null;var s=vt;vt=1;var l=Ol;Ol|=4,Rl.current=null,function(e,t){if(ei=Yt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=s),p===a&&++d===r&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Yt=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,_=t.stateNode,v=_.getSnapshotBeforeUpdate(t.elementType===t.type?g:yo(t.type,g),y);_.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(o(163))}}catch(e){Tc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}m=nl,nl=!1}(e,n),yl(n,e),hr(ti),Yt=!!ei,ti=ei=null,e.current=n,vl(n,e,i),Je(),Ol=l,vt=s,Cl.transition=a}else e.current=n;if(Vl&&(Vl=!1,Zl=e,Jl=i),0===(a=e.pendingLanes)&&(Wl=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ic(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(ql)throw ql=!1,e=Hl,Hl=null,e;!!(1&Jl)&&0!==e.tag&&Sc(),1&(a=e.pendingLanes)?e===Ql?Kl++:(Kl=0,Ql=e):Kl=0,Gi()}(e,t,n,r)}finally{Cl.transition=i,vt=r}return null}function Sc(){if(null!==Zl){var e=bt(Jl),t=Cl.transition,n=vt;try{if(Cl.transition=null,vt=16>e?16:e,null===Zl)var r=!1;else{if(e=Zl,Zl=null,Jl=0,6&Ol)throw Error(o(331));var i=Ol;for(Ol|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(16&Xs.flags){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Xs=u;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:rl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Xs=f;else for(;null!==Xs;){var p=(d=Xs).sibling,h=d.return;if(al(d),d===u){Xs=null;break}if(null!==p){p.return=h,Xs=p;break}Xs=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Xs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(2048&(a=Xs).flags)switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var _=a.sibling;if(null!==_){_.return=a.return,Xs=_;break e}Xs=a.return}}var v=e.current;for(Xs=v;null!==Xs;){var b=(s=Xs).child;if(2064&s.subtreeFlags&&null!==b)b.return=s,Xs=b;else e:for(s=v;null!==Xs;){if(2048&(l=Xs).flags)try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(e){Tc(l,l.return,e)}if(l===s){Xs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Xs=w;break e}Xs=l.return}}if(Ol=i,Gi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{vt=n,Cl.transition=t}}return!1}function Ec(e,t,n){e=Uo(e,t=hs(0,t=us(n,t),1),1),t=tc(),null!==e&&(yt(e,1,t),ic(e,t))}function Tc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){t=Uo(t,e=ms(t,e=us(n,e),1),1),e=tc(),null!==t&&(yt(t,1,e),ic(t,e));break}}t=t.return}}function xc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Dl===e&&(Il&n)===n&&(4===Ul||3===Ul&&(130023424&Il)===Il&&500>Ke()-Gl?pc(e,0):Bl|=n),ic(e,t)}function Rc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=tc();null!==(e=Do(e,t))&&(yt(e,t,n),ic(e,n))}function Cc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Rc(e,n)}function Oc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Rc(e,n)}function Dc(e,t){return We(e,t)}function Nc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,n,r){return new Nc(e,t,n,r)}function Ac(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pc(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Uc(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)Ac(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Mc(n.children,i,a,t);case E:s=8,i|=8;break;case T:return(e=Ic(12,n,t,2|i)).elementType=T,e.lanes=a,e;case O:return(e=Ic(13,n,t,i)).elementType=O,e.lanes=a,e;case D:return(e=Ic(19,n,t,i)).elementType=D,e.lanes=a,e;case A:return Lc(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case x:s=10;break e;case R:s=9;break e;case C:s=11;break e;case N:s=14;break e;case I:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ic(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Mc(e,t,n,r){return(e=Ic(7,e,r,t)).lanes=n,e}function Lc(e,t,n,r){return(e=Ic(22,e,r,t)).elementType=A,e.lanes=n,e.stateNode={isHidden:!1},e}function jc(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function Bc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Fc(e,t,n,r,i,o,a,s,l){return e=new zc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ic(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Io(o),e}function Gc(e){if(!e)return Ri;e:{if(Ge(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ii(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ii(n))return Ui(e,n,t)}return t}function $c(e,t,n,r,i,o,a,s,l){return(e=Fc(n,r,!0,e,0,o,0,s,l)).context=Gc(null),n=e.current,(o=Po(r=tc(),i=nc(n))).callback=null!=t?t:null,Uo(n,o,i),e.current.lanes=i,yt(e,i,r),ic(e,r),e}function Yc(e,t,n,r){var i=t.current,o=tc(),a=nc(i);return n=Gc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Po(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Uo(i,t,a))&&(rc(e,i,a,o),Mo(e,i,a)),a}function qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wc(e,t){Hc(e,t),(e=e.alternate)&&Hc(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oi.current)bs=!0;else{if(!(e.lanes&n||128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ds(t),ho();break;case 5:aa(t);break;case 1:Ii(t.type)&&Mi(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;xi(_o,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(xi(la,1&la.current),t.flags|=128,null):n&t.child.childLanes?js(e,t,n):(xi(la,1&la.current),null!==(e=qs(e,t,n))?e.sibling:null);xi(la,1&la.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return $s(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),xi(la,la.current),r)break;return null;case 22:case 23:return t.lanes=0,Ts(e,t,n)}return qs(e,t,n)}(e,t,n);bs=!!(131072&e.flags)}else bs=!1,io&&1048576&t.flags&&Xi(t,Hi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ys(e,t),e=t.pendingProps;var i=Ni(t,Ci.current);To(t,n),i=Ea(null,t,r,e,i,n);var a=Ta();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ii(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Io(t),i.updater=Go,t.stateNode=i,i._reactInternals=t,Ho(t,r,e,n),t=Os(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ys(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Ac(e)?1:0;if(null!=e){if((e=e.$$typeof)===C)return 11;if(e===N)return 14}return 2}(r),e=yo(r,e),i){case 0:t=Rs(null,t,r,e,n);break e;case 1:t=Cs(null,t,r,e,n);break e;case 11:t=ks(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,yo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Rs(e,t,r,i=t.elementType===r?i:yo(r,i),n);case 1:return r=t.type,i=t.pendingProps,Cs(e,t,r,i=t.elementType===r?i:yo(r,i),n);case 3:e:{if(Ds(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Ao(e,t),jo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ns(e,t,r,n,i=us(Error(o(423)),t));break e}if(r!==i){t=Ns(e,t,r,n,i=us(Error(o(424)),t));break e}for(ro=ci(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Qo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===i){t=qs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&co(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),xs(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return js(e,t,n);case 4:return ia(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ko(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:yo(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,xi(_o,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Oi.current){t=qs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Po(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Eo(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Eo(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,To(t,n),r=r(i=xo(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=yo(r=t.type,t.pendingProps),Ss(e,t,r,i=yo(r.type,i),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yo(r,i),Ys(e,t),t.tag=1,Ii(r)?(e=!0,Mi(t)):e=!1,To(t,n),Yo(t,r,i),Ho(t,r,i,n),Os(null,t,r,!0,e,n);case 19:return $s(e,t,n);case 22:return Ts(e,t,n)}throw Error(o(156,t.tag))};var Vc="function"==typeof reportError?reportError:function(e){console.error(e)};function Zc(e){this._internalRoot=e}function Jc(e){this._internalRoot=e}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xc(){}function eu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=qc(a);s.call(e)}}Yc(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=qc(a);o.call(e)}}var a=$c(t,r,e,0,null,!1,0,"",Xc);return e._reactRootContainer=a,e[hi]=a.current,Gr(8===e.nodeType?e.parentNode:e),dc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=qc(l);s.call(e)}}var l=Fc(e,0,!1,null,0,!1,0,"",Xc);return e._reactRootContainer=l,e[hi]=l.current,Gr(8===e.nodeType?e.parentNode:e),dc((function(){Yc(t,l,n,r)})),l}(n,t,e,i,r);return qc(a)}Jc.prototype.render=Zc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Yc(e,t,null,null)},Jc.prototype.unmount=Zc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Yc(null,e,null,null)})),t[hi]=null}},Jc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&0!==t&&t<At[n].priority;n++);At.splice(n,0,e),0===n&&Lt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(_t(t,1|n),ic(t,Ke()),!(6&Ol)&&($l=Ke()+500,Gi()))}break;case 13:dc((function(){var t=Do(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Wc(e,1)}},kt=function(e){if(13===e.tag){var t=Do(e,134217728);null!==t&&rc(t,e,134217728,tc()),Wc(e,134217728)}},St=function(e){if(13===e.tag){var t=nc(e),n=Do(e,t);null!==n&&rc(n,e,t,tc()),Wc(e,t)}},Et=function(){return vt},Tt=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},ke=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(o(90));W(r),Q(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ce=uc,Oe=dc;var tu={usingClientEntryPoint:!1,Events:[vi,bi,wi,xe,Re,uc]},nu={findFiberByHostInstance:_i,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{it=iu.inject(ru),ot=iu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kc(e))throw Error(o(299));var n=!1,r="",i=Vc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Fc(e,1,!1,null,0,n,0,r,i),e[hi]=t.current,Gr(8===e.nodeType?e.parentNode:e),new Zc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Vc;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=$c(t,null,e,1,null!=n?n:null,i,0,a,s),e[hi]=t.current,Gr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Jc(t)},t.render=function(e,t,n){if(!Qc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(o(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[hi]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var r=n(3935);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},3935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4448)},2408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function _(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=y.prototype;var b=v.prototype=new _;b.constructor=v,m(b,y.prototype),b.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,i)&&!E.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:S.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var R=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+C(l,0):o,w(a)?(i="",null!=e&&(i=e.replace(R,"$&/")+"/"),O(a,t,i,"",(function(e){return e}))):null!=a&&(x(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(R,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",w(e))for(var c=0;c<e.length;c++){var u=o+C(s=e[c],c);l+=O(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=O(s=s.value,t,i,u=o+C(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function D(e,t,n){if(null==e)return e;var r=[],i=0;return O(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},A={transition:null},P={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:A,ReactCurrentOwner:S};t.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=a,t.PureComponent=v,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!E.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=A.transition;A.transition={};try{e()}finally{A.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,_="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(g=!1,b(e),!m)if(null!==r(c))m=!0,A(k);else{var t=r(u);null!==t&&P(w,t.startTime-e)}}function k(e,n){m=!1,g&&(g=!1,_(x),x=-1),h=!0;var o=p;try{for(b(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!O());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(c)&&i(c),b(n)}else i(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&P(w,d.startTime-n),l=!1}return l}finally{f=null,p=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,E=!1,T=null,x=-1,R=5,C=-1;function O(){return!(t.unstable_now()-C<R)}function D(){if(null!==T){var e=t.unstable_now();C=e;var n=!0;try{n=T(!0,e)}finally{n?S():(E=!1,T=null)}}else E=!1}if("function"==typeof v)S=function(){v(D)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,I=N.port2;N.port1.onmessage=D,S=function(){I.postMessage(null)}}else S=function(){y(D,0)};function A(e){T=e,E||(E=!0,S())}function P(e,n){x=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,A(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(_(x),x=-1):g=!0,P(w,o-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,A(k))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},7802:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAuth=t.webAuth=void 0;var r=n(5550),i=n(6245),o=n(7294),a=n(6658);t.webAuth=new r.default.WebAuth({domain:"login.criipto.com",clientID:"aMnRpmOmyfTFzTuN1iWUmAIFgE0r16Hd",redirectUri:"/",audience:"urn:criipto:verify",responseType:"id_token token",scope:"openid email profile"}),t.useAuth=function(){var e=(0,a.default)(),t=e.get("access_token")||sessionStorage.getItem("accessToken"),n=e.get("id_token")||sessionStorage.getItem("idToken"),r=e.get("state")?JSON.parse(e.get("state")):null,s=(0,o.useMemo)((function(){return n?(0,i.default)(n):null}),[n]),l=(0,o.useMemo)((function(){return t?(0,i.default)(t):null}),[t]);return(0,o.useEffect)((function(){t&&n&&(sessionStorage.setItem("accessToken",t),sessionStorage.setItem("idToken",n))}),[t,n]),s&&l?new Date(1e3*l.exp-3e5)<new Date?null:{accessToken:t,idToken:n,profile:s,method:s.sub.split("|")[0],state:r}:null}},4025:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(7294),s=n(982),l=n(8375),c=n(7802),u=n(7880),d=n(3761);n(1211),n(6704);var f=n(4995),p=n(2972);t.default=function(e){var t,n=this,h=(0,c.useAuth)(),m=(0,p.default)(),g=(0,f.useTracking)(),y="hubspot_form_id_".concat("0df4d8e8-0e60-435c-8168-ea6d9056c19b"),_=(0,u.useHubspotUserForm)(),v=_[0],b=_[2],w=(0,u.useHubspotOrganizationForm)()||[],k=w[0],S=w[2],E=a.useState(!1),T=E[0],x=E[1],R=a.useState(null),C=R[0],O=R[1],D=a.useState({consentToProcess:!1,text:(null==v?void 0:v.legalConsentOptions.processingConsentCheckboxLabel)||"",communications:[]}),N=D[0],I=D[1],A=v?{email:v.fields.find((function(e){return["email"].includes(e.name)})),organization:v.fields.find((function(e){return["company","organization"].includes(e.name)})),firstname:v.fields.find((function(e){return["firstname","firstName"].includes(e.name)})),lastname:v.fields.find((function(e){return["lastname","lastName"].includes(e.name)}))}:void 0,P=k?{organization:k.fields.find((function(e){return["company","organization"].includes(e.name)})),email:k.fields.find((function(e){return["email"].includes(e.name)}))}:void 0,U=a.useState(!1),M=U[0],L=U[1],j=a.useState(!1),B=j[0],z=j[1],F=a.useState(!1),G=F[0],$=F[1],Y=a.useState(m.get("organization")||(null===(t=null==h?void 0:h.state)||void 0===t?void 0:t.organization)||""),q=Y[0],H=Y[1],W=a.useState(""),V=W[0],Z=W[1];a.useEffect((function(){h||u.IS_HUBSPOT_PREVIEW||c.webAuth.authorize({redirectUri:window.location.href,responseType:"token id_token",responseMode:"fragment",state:JSON.stringify({organization:q})})}),[h]),a.useEffect((function(){(null==h?void 0:h.profile)&&g.identify(h.profile)}),[null==h?void 0:h.profile]),a.useEffect((function(){var e,t;g.viewedOrganizationSignupForm(),(null===(e=window.hbspt)||void 0===e?void 0:e.forms)&&(null===(t=window.hbspt)||void 0===t||t.forms.create({portalId:"24992676",formId:"0df4d8e8-0e60-435c-8168-ea6d9056c19b",cssRequired:"",target:"#".concat(y)}))}),[]);var J="auth0"!==(null==h?void 0:h.method);return h||u.IS_HUBSPOT_PREVIEW?J&&!v?a.createElement("h3",null,"Loading ..."):a.createElement(a.Fragment,null,a.createElement("h3",null,"Nice to meet you",h?" "+h.profile.name:"","!"),a.createElement("h2",null,e.headline_text),a.createElement("form",{method:"POST",onSubmit:function(e){return i(n,void 0,void 0,(function(){var t=this;return o(this,(function(n){switch(n.label){case 0:return e.preventDefault(),x(!0),[4,Promise.resolve().then((function(){return i(t,void 0,void 0,(function(){var e,t,n,i,a,s,l,c,u,d,p,m;return o(this,(function(o){switch(o.label){case 0:return J?(e=h.profile.name.split(" "),t=e.shift(),n=e.join(" "),[4,b((u={},u[A.firstname.name]={objectTypeId:A.firstname.objectTypeId,value:t},u[A.lastname.name]={objectTypeId:A.lastname.objectTypeId,value:n},u[A.email.name]={objectTypeId:A.email.objectTypeId,value:h.profile.name},u[A.organization.name]={objectTypeId:A.organization.objectTypeId,value:q},u),{consent:N}).catch(console.error)]):[3,2];case 1:o.sent(),o.label=2;case 2:return i=(0,f.ammendUtmTraits)({}),[4,fetch("".concat("https://dashboard.criipto.com","/.netlify/functions/create-tenant"),{method:"POST",body:JSON.stringify({name:q,attribution:null!==(m=null==i?void 0:i.utm_source)&&void 0!==m?m:null,source:window.location.href,products:{verify:M,signatures:B,ageverification:G}}),headers:{Authorization:"Bearer ".concat(h.accessToken,", id_token ").concat(h.idToken)}})];case 3:return(a=o.sent()).status>=400?(s=Error.bind,[4,a.clone().text()]):[3,5];case 4:throw new(s.apply(Error,[void 0,o.sent()]));case 5:return[4,a.json()];case 6:return l=o.sent(),k?[4,S(r((d={},d[P.organization.name]={objectTypeId:P.organization.objectTypeId,value:q},d),(null==P?void 0:P.email)?(p={},p[P.email.name]={objectTypeId:P.email.objectTypeId,value:h.profile.email},p):{}),void 0).catch(console.error)]:[3,8];case 7:o.sent(),o.label=8;case 8:return[4,g.tenantSignedUp()];case 9:return o.sent(),(c=new URL("https://dashboard.criipto.com")).pathname="/tenant/".concat(l.shortTenantId,"/onboarding"),window.location.href=c.href,x(!1),[2]}}))}))})).catch((function(e){var t;x(!1),O(null!==(t=null==e?void 0:e.message)&&void 0!==t?t:e.toString())}))];case 1:return n.sent(),[2]}}))}))}},a.createElement("h4",null,"What do you plan to use Criipto's eID integration for?"),a.createElement("div",{className:"products"},a.createElement("label",null,a.createElement("div",null,a.createElement("input",{type:"checkbox",checked:M,onChange:function(e){return L(e.target.checked)}}),a.createElement("strong",null,"Logins")),a.createElement("p",null,e.product_logins_text)),a.createElement("label",null,a.createElement("div",null,a.createElement("input",{type:"checkbox",checked:B,onChange:function(e){return z(e.target.checked)}}),a.createElement("strong",null,"Signatures")),a.createElement("p",null,e.product_signatures_text)),a.createElement("label",null,a.createElement("div",null,a.createElement("input",{type:"checkbox",checked:G,onChange:function(e){return $(e.target.checked)}}),a.createElement("strong",null,"Age verification")),a.createElement("p",null,e.product_ageverification_text))),a.createElement("div",{className:"input-group"},a.createElement("input",{type:"text",name:"organization",placeholder:"What is the name of your organization?",value:q,onChange:function(e){return H(e.target.value)},required:!0}),a.createElement("label",null,"Your organization")),a.createElement("div",{className:"input-group"},a.createElement("select",{required:!0,value:V,onChange:function(e){return Z(e.target.value)}},a.createElement("option",{value:""},"What best describes what you do?"),a.createElement("option",{value:"developer"},"Developer"),a.createElement("option",{value:"manager"},"Manager"),a.createElement("option",{value:"other"},"Other")),a.createElement("label",null,"Your role")),J?a.createElement("div",{className:"consents"},a.createElement(d.default,{form:v,consent:N,onChange:I})):null,!T&&C?a.createElement("div",{className:"alert alert-danger"},a.createElement("label",null,"Error"),a.createElement("p",null,C)):null,a.createElement("button",{type:"submit",className:"button-cta",disabled:T},T&&a.createElement(a.Fragment,null,a.createElement(s.FontAwesomeIcon,{icon:l.faArrowsRotate,spin:!0}),"  "),e.cta_text)),y&&a.createElement("div",{id:y,style:{display:"none"}})):a.createElement("h3",null,"Please login.")}},3761:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(7294);t.default=function(e){var t=e.form,n=e.consent,o=e.onChange;return i.createElement(i.Fragment,null,t.legalConsentOptions.communicationConsentCheckboxes.map((function(e){var a;return i.createElement("label",{className:"checkbox"},i.createElement("input",{type:"checkbox",required:e.required,checked:(null===(a=null==n?void 0:n.communications.find((function(t){return t.subscriptionTypeId===e.communicationTypeId})))||void 0===a?void 0:a.value)||!1,onChange:function(i){return function(e,i){var a=((null==n?void 0:n.communications)||[]).filter((function(t){return t.subscriptionTypeId!==e.communicationTypeId})).concat([{subscriptionTypeId:e.communicationTypeId,text:e.label,value:i}]);o(r(r({},n),{consentToProcess:(null==n?void 0:n.consentToProcess)||!1,text:t.legalConsentOptions.processingConsentCheckboxLabel,communications:a}))}(e,i.target.checked)}}),i.createElement("div",{dangerouslySetInnerHTML:{__html:e.label}}))})),"REQUIRED_CHECKBOX"===t.legalConsentOptions.processingConsentType?i.createElement("label",{className:"checkbox"},i.createElement("input",{type:"checkbox",required:!0,checked:null==n?void 0:n.consentToProcess,onChange:function(e){return i=e.target.checked,void o(r(r({},n),{consentToProcess:i,text:t.legalConsentOptions.processingConsentCheckboxLabel,communications:(null==n?void 0:n.communications)||[]}));var i}}),i.createElement("div",{dangerouslySetInnerHTML:{__html:t.legalConsentOptions.processingConsentCheckboxLabel}})):null)}},9959:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(7294),s=n(6245),l=n(982),c=n(8375),u=n(1299),d=n(5498),f=n(7802),p=n(6658);n(3213),n(6704);var h=n(4995),m=n(7880),g=n(3761);t.default=function(e){var t=this,n=e.redirect_uri,y=e.headline_text,_=e.cta_text,v="hubspot_form_id_".concat("5f755421-b64c-49cb-a418-fd94909940cc"),b=(0,p.default)(),w=(0,h.useTracking)(),k=a.useState(""),S=k[0],E=k[1],T=a.useState(""),x=T[0],R=T[1],C=a.useState(""),O=C[0],D=C[1],N=a.useState(""),I=N[0],A=N[1],P=a.useState(!1),U=P[0],M=P[1],L=a.useState(null),j=L[0],B=L[1],z=a.useState(!1),F=z[0],G=z[1],$=(0,m.useHubspotUserForm)(),Y=$[0],q=($[1],$[2]),H=a.useState({consentToProcess:!1,text:(null==Y?void 0:Y.legalConsentOptions.processingConsentCheckboxLabel)||"",communications:[]}),W=H[0],V=H[1],Z=Y?{email:Y.fields.find((function(e){return["email"].includes(e.name)})),organization:Y.fields.find((function(e){return["company","organization"].includes(e.name)})),firstname:Y.fields.find((function(e){return["firstname","firstName"].includes(e.name)})),lastname:Y.fields.find((function(e){return["lastname","lastName"].includes(e.name)}))}:void 0,J={redirectUri:window.location.href,responseType:"token id_token",responseMode:"fragment",state:JSON.stringify({organization:x,redirectTo:n.url.href})},K=function(e){f.webAuth.authorize(r({connection:e,mode:"signUp"},J))};return a.useEffect((function(){var e,n,r=b.get("id_token"),a=b.get("access_token"),l=b.get("state")?JSON.parse(b.get("state")):null,c=b.get("error");c?B({error:c,error_description:b.get("error_description")||void 0}):r?function(e,n,r){i(t,void 0,void 0,(function(){var t,i;return o(this,(function(o){switch(o.label){case 0:return G(!0),t=(0,s.default)(n),[4,w.userSignedUp(t)];case 1:return o.sent(),sessionStorage.setItem("accessToken",e),sessionStorage.setItem("idToken",n),[4,new Promise((function(e){return setTimeout(e,300)}))];case 2:return o.sent(),i=new URL(r.redirectTo),r.organization&&i.searchParams.set("organization",r.organization),window.location.href=i.href,[2]}}))}))}(a,r,l):(w.viewedUserSignupForm(),(null===(e=window.hbspt)||void 0===e?void 0:e.forms)&&(null===(n=window.hbspt)||void 0===n||n.forms.create({portalId:"24992676",formId:"5f755421-b64c-49cb-a418-fd94909940cc",cssRequired:"",target:"#".concat(v)})))}),[]),F?a.createElement("h3",null,"Redirecting you ..."):Y?a.createElement(a.Fragment,null,a.createElement("form",{method:"POST",onSubmit:function(e){U||(M(!0),e.preventDefault(),new Promise((function(e,t){f.webAuth.signup(r({email:O,password:I,username:O,connection:"Username-Password-DB"},{name:S}),(function(n,r){return n?t(n):e()}))})).then((function(){return i(t,void 0,void 0,(function(){var e,t,n,r;return o(this,(function(i){switch(i.label){case 0:return Y?(e=S.split(" "),t=e.shift(),n=e.join(" "),[4,q((r={},r[Z.firstname.name]={objectTypeId:Z.firstname.objectTypeId,value:t},r[Z.lastname.name]={objectTypeId:Z.lastname.objectTypeId,value:n},r[Z.email.name]={objectTypeId:Z.email.objectTypeId,value:O},r[Z.organization.name]={objectTypeId:Z.organization.objectTypeId,value:x},r),{consent:W})]):[2];case 1:return i.sent(),[2]}}))}))})).then((function(){return new Promise((function(e,t){f.webAuth.login(r({password:I,username:O,realm:"Username-Password-DB"},J),(function(n){return n?t(n):e()}))}))})).catch((function(e){M(!1),B(e)})))}},y&&a.createElement("h3",null,y),a.createElement("div",{className:"input-group"},a.createElement("input",{type:"text",name:"name",placeholder:"Your name",value:S,onChange:function(e){return E(e.target.value)},required:!0}),a.createElement("label",null,"Your name")),a.createElement("div",{className:"input-group"},a.createElement("input",{type:"text",name:"organization",placeholder:"Your organization",value:x,onChange:function(e){return R(e.target.value)},required:!0}),a.createElement("label",null,"Your organization")),a.createElement("div",{className:"input-group"},a.createElement("input",{type:"email",name:"email",placeholder:"Email",value:O,onChange:function(e){return D(e.target.value)},required:!0}),a.createElement("label",null,"Email")),a.createElement("div",{className:"input-group"},a.createElement("input",{type:"password",name:"password",placeholder:"Password",value:I,onChange:function(e){return A(e.target.value)},required:!0}),a.createElement("label",null,"Password")),a.createElement("div",{className:"consents"},a.createElement(g.default,{form:Y,consent:W,onChange:V})),!U&&j?a.createElement("div",{className:"alert alert-danger"},a.createElement("label",null,"Error"),a.createElement("p",null,j.description||j.errorDescription||j.error_description||j.error)):null,a.createElement("button",{type:"submit",className:"button-cta",disabled:U},U&&a.createElement(a.Fragment,null,a.createElement(l.FontAwesomeIcon,{icon:c.faArrowsRotate,spin:!0}),"  "),_)),a.createElement("div",{className:"social"},a.createElement("p",null,"Or sign up with"),a.createElement("div",{className:"buttons"},a.createElement("button",{onClick:function(){K("google-oauth2")}},a.createElement(l.FontAwesomeIcon,{icon:u.faGoogle}),"   Google"),a.createElement("button",{onClick:function(){K("windowslive")}},a.createElement(l.FontAwesomeIcon,{icon:d.faMicrosoft}),"   Microsoft"))),a.createElement("div",{id:v,style:{display:"none"}})):a.createElement("h3",null,"Loading ...")}},2972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7294);t.default=function(){var e=window.location;return(0,r.useMemo)((function(){return new URLSearchParams(e.search)}),[e])}},7880:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.IS_HUBSPOT_PREVIEW=t.useHubspotOrganizationForm=t.useHubspotUserForm=t.useHubspotForm=t.submitHubspotForm=t.getCookie=void 0;var a=n(7294);function s(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return null}function l(e){return i(this,void 0,void 0,(function(){var t,n,i,a;return o(this,(function(o){switch(o.label){case 0:return t=s("hubspotutk"),n={fields:Object.keys(e.fields).map((function(t){return r({name:t},e.fields[t])})),context:r(r({},t?{hutk:t}:{}),{pageUri:window.location.href,pageId:window.hsVars?window.hsVars.page_id.toString():void 0,pageName:document.title}),legalConsentOptions:e.legalConsentOptions},[4,fetch("https://api-eu1.hsforms.com/submissions/v3/integration/submit/".concat(e.portalId,"/").concat(e.formId),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})];case 1:return(i=o.sent()).status>=400?(a=Error.bind,[4,i.text()]):[3,3];case 2:throw new(a.apply(Error,[void 0,o.sent()]));case 3:return[2]}}))}))}function c(e,t){if(!e||!t)return[void 0,{pending:!1},void 0];var n=(0,a.useState)(void 0),r=n[0],s=n[1],c=(0,a.useState)(!0),u=c[0],d=c[1];return(0,a.useEffect)((function(){e&&t&&(d(!0),fetch("https://forms-eu1.hsforms.com/embed/v3/form/".concat(t,"/").concat(e,"/json")).then((function(e){return e.json()})).then((function(e){var t=e.form.metaData.find((function(e){return"legalConsentOptions"===e.name})),n={fieldGroups:e.form.formFieldGroups,fields:e.form.formFieldGroups.flatMap((function(e){return e.fields})),legalConsentOptions:t?JSON.parse(t.value):null};d(!1),s(n)})))}),[e,t]),[r,{pending:u},function(n,r){return i(this,void 0,void 0,(function(){return o(this,(function(i){return[2,l({portalId:t,formId:e,fields:n,legalConsentOptions:r})]}))}))}]}t.getCookie=s,t.submitHubspotForm=l,t.useHubspotForm=c,t.useHubspotUserForm=function(){return c("5f755421-b64c-49cb-a418-fd94909940cc","24992676")},t.useHubspotOrganizationForm=function(){return c("0df4d8e8-0e60-435c-8168-ea6d9056c19b","24992676")},t.IS_HUBSPOT_PREVIEW=window.location.href.includes("hubspotpreview")},7083:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(7294),o=n(745),a=n(2427),s=n(126),l=n(9959),c=n(4025);function u(){document.querySelectorAll(".react-module").forEach((function(e){var t=e.getAttribute("data-component"),n=e.getAttribute("data-module-instance"),a=JSON.parse(document.getElementById("ReactData--".concat(n)).textContent);"UserSignupForm"===t?(0,o.createRoot)(e).render(i.createElement(l.default,r({},a))):"OrganizationSignupForm"===t&&(0,o.createRoot)(e).render(i.createElement(c.default,r({},a)))}))}n(3348),a.init({dsn:"https://02a9d51602d54e6293d531bbde4d57d4@o1115484.ingest.sentry.io/6396882",integrations:[new s.Integrations.BrowserTracing],tracesSampleRate:0}),document.addEventListener("DOMContentLoaded",u),"complete"!==document.readyState&&"interactive"!=document.readyState||u()},4995:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTracking=t.ammendUtmTraits=t.parseUtmParameters=void 0;var o=n(7880);function a(e,t){return t?(e.utm_source=t.source,t.medium&&(e.utm_medium=t.medium),t.campaign&&(e.utm_campaign=t.campaign),t.content&&(e.utm_content=t.content),t.term&&(e.utm_term=t.term)):sessionStorage.getItem("utm")?e=a(e,JSON.parse(sessionStorage.getItem("utm"))):localStorage.getItem("utm")&&(e=a(e,JSON.parse(localStorage.getItem("utm")))),e}t.parseUtmParameters=function(e){var t=new URLSearchParams(e.search.substring(1));if(t.get("utm_source"))return{source:t.get("utm_source"),medium:t.get("utm_medium")||void 0,campaign:t.get("utm_campaign")||void 0,content:t.get("utm_content")||void 0,term:t.get("utm_term")||void 0}},t.ammendUtmTraits=a;var s=function(e,t){return r(void 0,void 0,void 0,(function(){return i(this,(function(n){return o.IS_HUBSPOT_PREVIEW?[2]:window.analytics?[2,new Promise((function(n){window.analytics.identify(e,t,void 0,n),console.debug("segment.identify",e,t)}))]:(console.error("Segment not enabled"),[2,Promise.resolve()])}))}))},l=function(e,t){return r(void 0,void 0,void 0,(function(){return i(this,(function(n){return o.IS_HUBSPOT_PREVIEW?[2]:window.analytics?[2,new Promise((function(n){window.analytics.track(e,t,n),console.debug("segment.track",e,t)}))]:(console.error("Segment not enabled"),[2,Promise.resolve()])}))}))};t.useTracking=function(){var e=this;return{identify:function(t){return r(e,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return e={name:t.name,email:t.email,email_verified:t.email_verified},[4,s(t.sub,e)];case 1:return n.sent(),[2]}}))}))},viewedUserSignupForm:function(){return r(e,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,l("Viewed user signup form",{page:window.location.href})];case 1:return e.sent(),[2]}}))}))},userSignupError:function(t){return r(e,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,l("User signup error",{page:window.location.href,error:t})];case 1:return e.sent(),[2]}}))}))},userSignedUp:function(t){return r(e,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:return e=t.sub.split("|")[0],n=a({name:t.name,email:t.email,email_verified:t.email_verified}),[4,s(t.sub,n)];case 1:return r.sent(),l("StartTrial"),[4,l("User signed up",{page:window.location.href,method:e})];case 2:return r.sent(),[4,new Promise((function(e){window.plausible?(window.plausible("User signed up",{callback:e}),setTimeout((function(){return e()}),1e3)):e()}))];case 3:return r.sent(),[2]}}))}))},tenantSignedUp:function(){return r(e,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,new Promise((function(e){window.plausible?(window.plausible("Tenant signed up",{callback:e}),setTimeout((function(){return e()}),1e3)):e()}))];case 1:return e.sent(),[2]}}))}))},organizationSignupError:function(t){return r(e,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,l("Organization signup error",{page:window.location.href,error:t})];case 1:return e.sent(),[2]}}))}))},viewedOrganizationSignupForm:function(){return r(e,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,l("Viewed organization signup form",{page:window.location.href})];case 1:return e.sent(),[2]}}))}))}}}},6658:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7294);t.default=function(){return(0,r.useMemo)((function(){return new URLSearchParams(location.hash.substring(1))}),[location])}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(7083)})();
//# sourceURL=https://cdn1.hubspotusercontent-eu1.net/hub/24992676/hub_generated/template_assets/73498357988/1726837076180/Criipto2022/dist/signup.js