PageSourceSearch

https://www.vanzzz.co.uk/_next/static/chunks/pages/_app-c3b70add0dddf5d6.js

js vanzzz.co.uk collected 2026-10-07 19:31:58 UTC 494,894 bytes, 46 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="df34981d-671e-4159-9c91-e7c0184c1757",e._sentryDebugIdIdentifier="sentry-dbid-df34981d-671e-4159-9c91-e7c0184c1757")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92888],{73606:function(e,t,n){"use strict";t.dr=void 0;var r=n(70655),i=r.__importStar(n(95933));Object.defineProperty(t,"dr",{enumerable:!0,get:function(){return i.default}}),r.__importDefault(n(34519))},80489:function(e,t,n){"use strict";var r=n(83454);Object.defineProperty(t,"__esModule",{value:!0}),t.useConfig=void 0;var i=n(70655).__importStar(n(67294)),o=(0,i.createContext)({});t.useConfig=function(){return(0,i.useContext)(o)},t.default=function(e){var t=e.children,n=e.loginUrl,a=void 0===n?r.env.NEXT_PUBLIC_AUTH0_LOGIN||"/api/auth/login":n;return i.default.createElement(o.Provider,{value:{loginUrl:a}},t)}},95933:function(e,t,n){"use strict";var r=n(83454);Object.defineProperty(t,"__esModule",{value:!0}),t.useUser=t.UserContext=t.RequestError=void 0;var i=n(70655),o=i.__importStar(n(67294)),a=i.__importDefault(n(80489)),s=function(e){function t(n){var r=e.call(this)||this;return r.status=n,Object.setPrototypeOf(r,t.prototype),r}return i.__extends(t,e),t}(Error);t.RequestError=s;var u="You forgot to wrap your app in <UserProvider>";t.UserContext=(0,o.createContext)({get user(){throw Error(u)},get error(){throw Error(u)},get isLoading(){throw Error(u)},checkSession:function(){throw Error(u)}}),t.useUser=function(){return(0,o.useContext)(t.UserContext)};var c=function(e){return i.__awaiter(void 0,void 0,void 0,function(){var t;return i.__generator(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,fetch(e)];case 1:return t=n.sent(),[3,3];case 2:throw n.sent(),new s(0);case 3:if(204==t.status)return[2,void 0];if(t.ok)return[2,t.json()];throw new s(t.status)}})})};t.default=function(e){var n=e.children,s=e.user,u=e.profileUrl,l=void 0===u?r.env.NEXT_PUBLIC_AUTH0_PROFILE||"/api/auth/me":u,d=e.loginUrl,f=e.fetcher,p=void 0===f?c:f,h=i.__read((0,o.useState)({user:s,isLoading:!s}),2),m=h[0],y=h[1],v=(0,o.useCallback)(function(){return i.__awaiter(void 0,void 0,void 0,function(){var e,t;return i.__generator(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,p(l)];case 1:return e=n.sent(),y(function(t){return i.__assign(i.__assign({},t),{user:e,error:void 0})}),[3,3];case 2:return t=n.sent(),y(function(e){return i.__assign(i.__assign({},e),{error:t})}),[3,3];case 3:return[2]}})})},[l]);(0,o.useEffect)(function(){m.user||i.__awaiter(void 0,void 0,void 0,function(){return i.__generator(this,function(e){switch(e.label){case 0:return[4,v()];case 1:return e.sent(),y(function(e){return i.__assign(i.__assign({},e),{isLoading:!1})}),[2]}})})},[m.user]);var g=m.user,b=m.error,_=m.isLoading,w=(0,o.useMemo)(function(){return{user:g,error:b,isLoading:_,checkSession:v}},[g,b,_,v]);return o.default.createElement(a.default,{loginUrl:d},o.default.createElement(t.UserContext.Provider,{value:w},n))}},34519:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70655),i=r.__importStar(n(67294)),o=n(80489),a=n(95933),s=function(){return i.default.createElement(i.default.Fragment,null)},u=function(){return i.default.createElement(i.default.Fragment,null)};t.default=function(e,t){return void 0===t&&(t={}),function(n){var c=t.returnTo,l=t.onRedirecting,d=t.onError,f=(0,o.useConfig)().loginUrl,p=(0,a.useUser)(),h=p.user,m=p.error,y=p.isLoading;return((0,i.useEffect)(function(){if((!h||m)&&!y){if(c)e=c;else{var e,t=window.location.toString();e=t.replace(new URL(t).origin,"")||"/"}window.location.assign("".concat(f,"?returnTo=").concat(encodeURIComponent(e)))}},[h,m,y]),m)?(void 0===d?u:d)(m):h?i.default.createElement(e,r.__assign({user:h},n)):(void 0===l?s:l)()}}},82152:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});var r=Object.prototype,i=r.toString,o=r.hasOwnProperty,a=Function.prototype.toString,s=new Map;function u(e,t){try{return function e(t,n){if(t===n)return!0;var r=i.call(t);if(r!==i.call(n))return!1;switch(r){case"[object Array]":if(t.length!==n.length)break;case"[object Object]":if(f(t,n))return!0;var s=c(t),u=c(n),l=s.length;if(l!==u.length)break;for(var p=0;p<l;++p)if(!o.call(n,s[p]))return!1;for(var p=0;p<l;++p){var h=s[p];if(!e(t[h],n[h]))return!1}return!0;case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!=t)return n!=n;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object RegExp]":case"[object String]":return t=="".concat(n);case"[object Map]":case"[object Set]":if(t.size!==n.size)break;
1if(f(t,n))return!0;for(var m=t.entries(),y="[object Map]"===r;;){var v=m.next();if(v.done)break;var g=v.value,b=g[0],_=g[1];if(!n.has(b)||y&&!e(_,n.get(b)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),n=new Uint8Array(n);case"[object DataView]":var w=t.byteLength;if(w===n.byteLength)for(;w--&&t[w]===n[w];);return -1===w;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var E,S=a.call(t);if(S!==a.call(n))break;return!((E=S.length-d.length)>=0)||S.indexOf(d,E)!==E}return!1}(e,t)}finally{s.clear()}}function c(e){return Object.keys(e).filter(l,e)}function l(e){return void 0!==this[e]}var d="{ [native code] }";function f(e,t){var n=s.get(e);if(n){if(n.has(t))return!0}else s.set(e,n=new Set);return n.add(t),!1}},23541:function(e,t,n){"use strict";n.d(t,{Ry:function(){return c}});var r=new WeakMap,i=new WeakMap,o={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},u=function(e,t,n,u){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=s(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return Boolean(e)});o[n]||(o[n]=new WeakMap);var l=o[n],d=[],f=new Set,p=new Set(c),h=function(e){!e||f.has(e)||(f.add(e),h(e.parentNode))};c.forEach(h);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(u),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,a),l.set(e,s),d.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),a++,function(){d.forEach(function(e){var t=r.get(e)-1,o=l.get(e)-1;r.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute(u),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}},c=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),u(r,i,n,"aria-hidden")):function(){return null}}},45880:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(67294),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},o=n(91602);/**
2 * @license lucide-react v0.525.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let a=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:s="",children:u,iconNode:c,...l},d)=>(0,r.createElement)("svg",{ref:d,...i,width:t,height:t,stroke:e,strokeWidth:a?24*Number(n)/Number(t):n,className:(0,o.ze)("lucide",s),...!u&&!(0,o.HN)(l)&&{"aria-hidden":"true"},...l},[...c.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(u)?u:[u]]))},72919:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(67294),i=n(91602),o=n(45880);/**
7 * @license lucide-react v0.525.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */let a=(e,t)=>{let n=(0,r.forwardRef)(({className:n,...a},s)=>(0,r.createElement)(o.Z,{ref:s,iconNode:t,className:(0,i.ze)(`lucide-${(0,i.mA)((0,i.Mh)(e))}`,`lucide-${e}`,n),...a}
11));return n.displayName=(0,i.Mh)(e),n}},77232:function(e,t,n){"use strict";n.r(t),n.d(t,{__iconNode:function(){return i},default:function(){return o}});var r=n(72919);/**
12 * @license lucide-react v0.525.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */let i=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],o=(0,r.Z)("menu",i)},41352:function(e,t,n){"use strict";n.r(t),n.d(t,{__iconNode:function(){return i},default:function(){return o}});var r=n(72919);/**
17 * @license lucide-react v0.525.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */let i=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],o=(0,r.Z)("x",i)},91602:function(e,t,n){"use strict";n.d(t,{HN:function(){return s},Mh:function(){return o},mA:function(){return r},ze:function(){return a}});/**
22 * @license lucide-react v0.525.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),o=e=>{let t=i(e);return t.charAt(0).toUpperCase()+t.slice(1)},a=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),s=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0}},83454:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(77663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(74354)}])},41018:function(e,t,n){"use strict";let r,i,o,a,s,u,c,l,d,f,p,h,m,y,v,g,b,_,w;var E,S,x,k,T,O,I,C,D=n(40539);function R(e,t,n=[t],r="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:D.J})),version:D.J}),e._metadata=i}var M=n(11027),N=n(24806);function j(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||function(){let e=(0,N.s3)();return e&&e.getOptions()}();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)}var A=n(42562),P=n(9227),L=n(27202),F=n(62066);let q=[];function V(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function z(e,t,n){if(n[t.name]){F.X&&A.kg.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,-1===q.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),q.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}F.X&&A.kg.log(`Integration installed: ${t.name}`)}let $=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],U=(e={})=>({name:"InboundFilters",processEvent(t,n,r){var i;let o=r.getOptions(),a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:$],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,o);return(a.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(t)?(F.X&&A.kg.warn(`Event dropped due to being internal Sentry Error.
27Event: ${(0,P.jH)(t)}`),0):(i=a.ignoreErrors,!t.type&&i&&i.length&&(function(e){let t;let n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),n})(t).some(e=>(0,L.U0)(e,i)))?(F.X&&A.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
28Event: ${(0,P.jH)(t)}`),0):t.type||!t.exception||!t.exception.values||0===t.exception.values.length||t.message||t.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)?!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&(0,L.U0)(n,t)}(t,a.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=W(e);return!!n&&(0,L.U0)(n,t)}(t,a.denyUrls)?function(e,t){if(!t||!t.length)return!0;let n=W(e);return!n||(0,L.U0)(n,t)}(t,a.allowUrls)||(F.X&&A.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.
29Event: ${(0,P.jH)(t)}.
30Url: ${W(t)}`),0):(F.X&&A.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.
31Event: ${(0,P.jH)(t)}.
32Url: ${W(t)}`),0):(F.X&&A.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
33Event: ${(0,P.jH)(t)}`),0):(F.X&&A.kg.warn(`Event dropped due to not having an error message, error type or stacktrace.
34Event: ${(0,P.jH)(t)}`),0))?t:null}});function W(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--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return F.X&&A.kg.error(`Cannot extract url for event ${(0,P.jH)(e)}`),null}}var B=n(27575);let Q=new WeakMap,H=()=>({name:"FunctionToString",setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,B.HK)(this),n=Q.has((0,N.s3)())&&void 0!==t?t:this;return r.apply(n,e)}}catch(e){}},setup(e){Q.set(e,!0)}});var G=n(20290);let J=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n;if((n=e)&&(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&Y(e,t)&&X(e,t))}(t,n)||function(e,t){let n=K(t),r=K(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&Y(e,t)&&X(e,t))}(t,n)))return F.X&&A.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function X(e,t){let n=(0,G.Fr)(e),r=(0,G.Fr)(t);if(!n&&!r)return!0;
34if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let 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 Y(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 K(e){return e.exception&&e.exception.values&&e.exception.values[0]}var Z=n(61289),ee=n(84756);let et=ee.n;function en(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}let er={},ei={};function eo(e,t){er[e]=er[e]||[],er[e].push(t)}function ea(e,t){ei[e]||(t(),ei[e]=!0)}function es(e,t){let n=e&&er[e];if(n)for(let r of n)try{r(t)}catch(t){Z.X&&A.kg.error(`Error while triggering instrumentation handler.
35Type: ${e}
36Name: ${(0,G.$P)(r)}
37Error:`,t)}}let eu=ee.n,ec=ee.n;function el(e){let t="history";eo(t,e),ea(t,ed)}function ed(){if(!function(){let e=eu.chrome,t=e&&e.app&&e.app.runtime,n="history"in eu&&!!eu.history.pushState&&!!eu.history.replaceState;return!t&&n}())return;let e=ec.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=i,t=String(n);i=t,es("history",{from:e,to:t})}return e.apply(this,t)}}ec.onpopstate=function(...t){let n=ec.location.href,r=i;if(i=n,es("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,B.hl)(ec.history,"pushState",t),(0,B.hl)(ec.history,"replaceState",t)}let ef=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ep(e,t=!1){let{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function eh(e){let t=ef.exec(e);if(!t){(0,A.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i="",o,a="",s]=t.slice(1),u="",c=s,l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return em({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}function em(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}var ey=n(90759),ev=n(9425),eg=n(81895);function eb(e,t=[]){return[e,t]}function e_(e,t){let n=e[1];for(let e of n){let n=e[0].type,r=t(e,n);if(r)return!0}return!1}function ew(e){return ee.n.__SENTRY__&&ee.n.__SENTRY__.encodePolyfill?ee.n.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}let eE={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function eS(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function ex(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:ep(r)},...i&&{trace:(0,B.Jr)({...i})}}}class ek 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 eT=n(8840),eO=n(50304),eI=n(72271);function eC(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if("number"!=typeof t||isNaN(t)||t<0||t>1){F.X&&A.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}var eD=n(77042);let eR="Not capturing exception because it's already been captured.";class eM{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){let t="string"==typeof e?eh(e):em(e);if(t&&function(e){if(!Z.X)return!0;let{port:t,projectId:n,protocol:r}=e,i=["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(A.kg.error(`Invalid Sentry Dsn: ${t} missing`),!0));return!i&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(t&&isNaN(parseInt(t,10)))||(A.kg.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(A.kg.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(A.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}(e.dsn):F.X&&A.kg.warn("No DSN provided, client will not send events."),this._dsn){var t,n,r;let i=(t=this._dsn,n=e.tunnel,r=e._metadata?e._metadata.sdk:void 0,n||`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${(0,B._j)({sentry_key:t.publicKey,sentry_version:"7",...r&&{sentry_client:`${r.name}/${r.version}`}})}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:i})}}captureException(e,t,n){let r=(0,P.DM)();if((0,P.YO)(e))return F.X&&A.kg.log(eR),r;let i={event_id:r,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n))),i.event_id}captureMessage(e,t,n,r){let i={event_id:(0,P.DM)(),...n},o=(0,ey.Le)(e)?e:String(e),a=(0,ey.pt)(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(a.then(e=>this._captureEvent(e,i,r))),i.event_id}captureEvent(e,t,n){let r=(0,P.DM)();if(t&&t.originalException&&(0,P.YO)(t.originalException))return F.X&&A.kg.log(eR),r;let i={event_id:r,...t},o=e.sdkProcessingMetadata||{},a=o.capturedSpanScope;return this._process(this._captureEvent(e,i,a||n)),i.event_id}captureSession(e){"string"!=typeof e.release?F.X&&A.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,eI.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;
37return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):(0,ev.WD)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];z(this,e,this._integrations),t||V(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){var i,o;let a=eS(n),s=e.type&&"replay_event"!==e.type?e.type:"event";i=e,(o=n&&n.sdk)&&(i.sdk=i.sdk||{},i.sdk.name=i.sdk.name||o.name,i.sdk.version=i.sdk.version||o.version,i.sdk.integrations=[...i.sdk.integrations||[],...o.integrations||[]],i.sdk.packages=[...i.sdk.packages||[],...o.packages||[]]);let u=ex(e,a,r,t);delete e.sdkProcessingMetadata;let c=[{type:s},e];return eb(u,[c])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=function(e,t){let[n,r]=e;return[n,[...r,t]]}(n,function(e){let t="string"==typeof e.data?ew(e.data):e.data;return[(0,B.Jr)({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}(e));let r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=function(e,t,n,r){let i=eS(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:ep(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return eb(o,[a])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let n=`${e}:${t}`;F.X&&A.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))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(F.X&&A.kg.error("Error while sending event:",e),e)):(F.X&&A.kg.error("Transport disabled"),(0,ev.WD)({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let n={};return t.forEach(t=>{t&&z(e,t,n)}),n}(this,e),V(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let o="ok"===e.status,a=o&&0===e.errors||o&&n;a&&((0,eI.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ev.cW(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=(0,N.aF)()){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,eD.R)(i,e,t,n,this,r).then(e=>{if(null===e)return e;let t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0},i=e.contexts&&e.contexts.trace;if(!i&&t){let{traceId:n,spanId:r,parentSpanId:i,dsc:o}=t;e.contexts={trace:(0,B.Jr)({trace_id:n,span_id:r,parent_span_id:i}),...e.contexts};let a=o||(0,eT._l)(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{F.X&&("log"===e.logLevel?A.kg.log(e.message):A.kg.warn(e))})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,o=ej(e),a=eN(e),s=e.type||"error",u=`before send for type \`${s}\``,c=void 0===i?void 0:eC(i);if(a&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",e),(0,ev.$2)(new ek(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let l="replay_event"===s?"replay":s,d=e.sdkProcessingMetadata||{},f=d.capturedSpanIsolationScope;return this._prepareEvent(e,t,n,f).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new ek("An event processor returned `null`, will not send event.","log");let i=t.data&&!0===t.data.__sentry__;if(i)return n;let o=function(e,t,n){let{beforeSend:r,beforeSendTransaction:i,beforeSendSpan:o}=e;if(eN(t)&&r)return r(t,n);if(ej(t)){if(t.spans&&o){let e=[];
37for(let n of t.spans){let t=o(n);t&&e.push(t)}t.spans=e}if(i)return i(t,n)}return t}(r,n,t);return function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,ey.J8)(e))return e.then(e=>{if(!(0,ey.PO)(e)&&null!==e)throw new ek(n);return e},e=>{throw new ek(`${t} rejected with ${e}`)});if(!(0,ey.PO)(e)&&null!==e)throw new ek(n);return e}(o,u)}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",l,e),new ek(`${u} returned \`null\`, will not send event.`,"log");let i=n&&n.getSession();!o&&i&&this._updateSessionFromEvent(i,r);let a=r.transaction_info;return o&&a&&r.transaction!==e.transaction&&(r.transaction_info={...a,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof ek)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new ek(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
38Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}}function eN(e){return void 0===e.type}function ej(e){return"transaction"===e.type}var eA=n(30554);function eP(e,t){let n=eF(e,t),r={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function eL(e,t){return{exception:{values:[eP(e,t)]}}}function eF(e,t){let n=t.stacktrace||t.stack||"",r=t&&eq.test(t.message)?1:0,i="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(n,r,i)}catch(e){}return[]}let eq=/Minified React error #\d+;/i;function eV(e,t,n,r,i){let o;if((0,ey.VW)(t)&&t.error)return eL(e,t.error);if((0,ey.TX)(t)||(0,ey.fm)(t)){if("stack"in t)o=eL(e,t);else{let i=t.name||((0,ey.TX)(t)?"DOMError":"DOMException"),a=t.message?`${i}: ${t.message}`:i;o=ez(e,a,n,r),(0,P.Db)(o,a)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return(0,ey.VZ)(t)?eL(e,t):(0,ey.PO)(t)||(0,ey.cO)(t)?(o=function(e,t,n,r){let i=(0,N.s3)(),o=i&&i.getOptions().normalizeDepth,a=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),s={__serialized__:(0,eg.Qy)(t,o)};if(a)return{exception:{values:[eP(e,a)]},extra:s};let u={exception:{values:[{type:(0,ey.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,B.zf)(e),r=t?"promise rejection":"exception";if((0,ey.VW)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,ey.cO)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:s};if(n){let t=eF(e,n);t.length&&(u.exception.values[0].stacktrace={frames:t})}return u}(e,t,n,i),(0,P.EG)(o,{synthetic:!0}),o):(o=ez(e,t,n,r),(0,P.Db)(o,`${t}`,void 0),(0,P.EG)(o,{synthetic:!0}),o)}function ez(e,t,n,r){let i={};if(r&&n){let r=eF(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if((0,ey.Le)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}let e$=ee.n,eU=0;function eW(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if((0,B.HK)(e))return e}catch(t){return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(e=>eW(e,t));return e.apply(this,i)}catch(e){throw eU++,setTimeout(()=>{eU--}),(0,N.$e)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,P.Db)(e,void 0,void 0),(0,P.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,M.Tb)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}(0,B.$Q)(r,e),(0,B.xp)(e,"__sentry_wrapped__",r);try{let t=Object.getOwnPropertyDescriptor(r,"name");t.configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}class eB extends eM{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e},n=e$.SENTRY_SDK_SOURCE||"npm";R(t,"browser",["browser"],n),super(t),t.sendClientReports&&e$.document&&e$.document.addEventListener("visibilitychange",()=>{"hidden"===e$.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){let i=n&&n.syntheticException||void 0,o=eV(e,t,i,r);return(0,P.EG)(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),(0,ev.WD)(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let o=r&&r.syntheticException||void 0,a=ez(e,t,o,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),(0,ev.WD)(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return;let t=function(e,{metadata:t,tunnel:n,dsn:r}){let 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:ep(r)}};return eb(i,[[{type:"user_report"},e]])}(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(){let e=this._clearOutcomes();if(0===e.length||!this._dsn)return;let t=function(e,t,n){let r=[{type:"client_report"},{timestamp:(0,eA.yW)(),discarded_events:e}];return eb(t?{dsn:t}:{},[r])}(e,this._options.tunnel&&ep(this._dsn));this.sendEnvelope(t)}}function eQ(e){eo("dom",e),ea("dom",eH)}function eH(){if(!ec.document)return;let e=es.bind(null,"dom"),t=eG(e,!0);ec.document.addEventListener("click",t,!1),ec.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=ec[t]&&ec[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,B.hl)(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){let r=eG(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(e){}return t.call(this,n,r,i)}}),(0,B.hl)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function eG(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=function(e){try{return e.target}catch(e){return null}}(n);if("keypress"===n.type&&(!r||!r.tagName||"INPUT"!==r.tagName&&"TEXTAREA"!==r.tagName&&!r.isContentEditable))return;(0,B.xp)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,B.xp)(r,"_sentryId",(0,P.DM)());let i="keypress"===n.type?"input":n.type;!function(e){if(e.type!==a)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch(e){}return!0}(n)&&(e({event:n,name:i,global:t}),a=n.type,s=r?r._sentryId:void 0),clearTimeout(o),o=ec.setTimeout(()=>{s=void 0,a=void 0},1e3)}}let eJ="__sentry_xhr_v3__";function eX(e){eo("xhr",e),ea("xhr",eY)}function eY(){if(!ec.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;(0,B.hl)(e,"open",function(e){return function(...t){let n=1e3*(0,eA.ph)(),r=(0,ey.HD)(t[0])?t[0].toUpperCase():void 0,i=function(e){if((0,ey.HD)(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!r||!i)return e.apply(this,t);this[eJ]={method:r,url:i,request_headers:{}}
38,"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let o=()=>{let e=this[eJ];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}let t={endTimestamp:1e3*(0,eA.ph)(),startTimestamp:n,xhr:this};es("xhr",t)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,B.hl)(this,"onreadystatechange",function(e){return function(...t){return o(),e.apply(this,t)}}):this.addEventListener("readystatechange",o),(0,B.hl)(this,"setRequestHeader",function(e){return function(...t){let[n,r]=t,i=this[eJ];return i&&(0,ey.HD)(n)&&(0,ey.HD)(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),(0,B.hl)(e,"send",function(e){return function(...t){let n=this[eJ];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);let r={startTimestamp:1e3*(0,eA.ph)(),xhr:this};return es("xhr",r),e.apply(this,t)}})}function eK(e,t){let n=(0,N.s3)(),r=(0,N.aF)();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=n.getOptions();if(o<=0)return;let a=(0,eA.yW)(),s={timestamp:a,...e},u=i?(0,A.Cf)(()=>i(s,t)):s;null!==u&&(n.emit&&n.emit("beforeAddBreadcrumb",u,t),r.addBreadcrumb(u,o))}function eZ(){"console"in ee.n&&A.RU.forEach(function(e){e in ee.n.console&&(0,B.hl)(ee.n.console,e,function(t){return A.LD[e]=t,function(...t){es("console",{args:t,level:e});let n=A.LD[e];n&&n.apply(ee.n.console,t)}})})}function e0(e){let t="fetch";eo(t,e),ea(t,e1)}function e1(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in et))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(en(et.fetch))return!0;let e=!1,t=et.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");
38n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=en(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){Z.X&&A.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&(0,B.hl)(ee.n,"fetch",function(e){return function(...t){let{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:e3(t),method:e2(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:e3(t),method:e2(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:1e3*(0,eA.ph)()};es("fetch",{...i});let o=Error().stack;return e.apply(ee.n,t).then(e=>{let t={...i,endTimestamp:1e3*(0,eA.ph)(),response:e};return es("fetch",t),e},e=>{let t={...i,endTimestamp:1e3*(0,eA.ph)(),error:e};throw es("fetch",t),(0,ey.VZ)(e)&&void 0===e.stack&&(e.stack=o,(0,B.xp)(e,"framesToPop",1)),e})}})}function e2(e,t){return!!e&&"object"==typeof e&&!!e[t]}function e3(e){return"string"==typeof e?e:e?e2(e,"url")?e.url:e.toString?e.toString():"":""}var e5=n(72929);let e4=["fatal","error","warning","log","info","debug"];function e6(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let 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}}let e7=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){let t="console";eo(t,e),ea(t,eZ)}(function(t){var n;if((0,N.s3)()!==e)return;let r={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(n=t.level)?"warning":e4.includes(n)?n:"log",message:(0,L.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${(0,L.nK)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}eK(r,{input:t.args,level:t.level})}),t.dom&&eQ((n=t.dom,function(t){let r,i;if((0,N.s3)()!==e)return;let o="object"==typeof n?n.serializeAttribute:void 0,a="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;a&&a>1024&&(a=1024),"string"==typeof o&&(o=[o]);try{let e=t.event,n=e&&e.target?e.target:e;r=(0,e5.Rt)(n,{keyAttrs:o,maxStringLength:a}),i=(0,e5.iY)(n)}catch(e){r="<unknown>"}if(0===r.length)return;let s={category:`ui.${t.name}`,message:r};i&&(s.data={"ui.component_name":i}),eK(s,{event:t.event,name:t.name,global:t.global})})),t.xhr&&eX(function(t){if((0,N.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[eJ];if(!n||!r||!i)return;let{method:o,url:a,status_code:s,body:u}=i,c={xhr:t.xhr,input:u,startTimestamp:n,endTimestamp:r};eK({category:"xhr",data:{method:o,url:a,status_code:s},type:"http"},c)}),t.fetch&&e0(function(t){if((0,N.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(!(!r||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error){let e=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};eK({category:"fetch",data:e,level:"error",type:"http"},i)}else{let e=t.response,i={...t.fetchData,status_code:e&&e.status},o={input:t.args,response:e,startTimestamp:n,endTimestamp:r};eK({category:"fetch",data:i,type:"http"},o)}}}),t.history&&el(function(t){if((0,N.s3)()!==e)return;let n=t.from,r=t.to,i=e6(e$.location.href),o=n?e6(n):void 0,a=e6(r);o&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),eK({category:"navigation",data:{from:n,to:r}})}),t.sentry&&e.on("beforeSendEvent",function(t){(0,N.s3)()===e&&eK({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,P.jH)(t)},{event:t})})}}},e9=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],e8=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,B.hl)(e$,"setTimeout",te),t.setInterval&&(0,B.hl)(e$,"setInterval",te),t.requestAnimationFrame&&(0,B.hl)(e$,"requestAnimationFrame",tt),t.XMLHttpRequest&&"XMLHttpRequest"in e$&&(0,B.hl)(XMLHttpRequest.prototype,"send",tn);let e=t.eventTarget;if(e){let t=Array.isArray(e)?e:e9;t.forEach(tr)}}}};function te(e){return function(...t){let n=t[0];return t[0]=eW(n,{mechanism:{data:{function:(0,G.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function tt(e){return function(t){return e.apply(this,[eW(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,G.$P)(e)},handled:!1,type:"instrument"}})])}}function tn(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e
38=>{e in n&&"function"==typeof n[e]&&(0,B.hl)(n,e,function(t){let n={mechanism:{data:{function:e,handler:(0,G.$P)(t)},handled:!1,type:"instrument"}},r=(0,B.HK)(t);return r&&(n.mechanism.data.handler=(0,G.$P)(r)),eW(t,n)})}),e.apply(this,t)}}function tr(e){let t=e$[e]&&e$[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&((0,B.hl)(t,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=eW(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,G.$P)(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,eW(r,{mechanism:{data:{function:"addEventListener",handler:(0,G.$P)(r),target:e},handled:!1,type:"instrument"}}),i])}}),(0,B.hl)(t,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}let ti=null;function to(e){let t="error";eo(t,e),ea(t,ta)}function ta(){ti=ee.n.onerror,ee.n.onerror=function(e,t,n,r,i){return es("error",{column:r,error:i,line:n,msg:e,url:t}),!!ti&&!ti.__SENTRY_LOADER__&&ti.apply(this,arguments)},ee.n.onerror.__SENTRY_INSTRUMENTED__=!0}let ts=null;function tu(e){let t="unhandledrejection";eo(t,e),ea(t,tc)}function tc(){ts=ee.n.onunhandledrejection,ee.n.onunhandledrejection=function(e){return es("unhandledrejection",e),!ts||!!ts.__SENTRY_LOADER__||ts.apply(this,arguments)},ee.n.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let tl=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&to(t=>{let{stackParser:n,attachStacktrace:r}=td();if((0,N.s3)()!==e||eU>0)return;let{msg:i,url:o,line:a,column:s,error:u}=t,c=function(e,t,n,r){let i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=(0,ey.HD)(t)&&t.length>0?t:(0,e5.l4)();return 0===u.length&&u.push({colno:c,filename:d,function:G.Fi,in_app:!0,lineno:l}),e}(eV(n,u||i,void 0,r,!1),o,a,s);c.level="error",(0,M.eN)(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}),t.onunhandledrejection&&tu(t=>{let{stackParser:n,attachStacktrace:r}=td();if((0,N.s3)()!==e||eU>0)return;let i=function(e){if((0,ey.pt)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),o=(0,ey.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:eV(n,i,void 0,r,!0);o.level="error",(0,M.eN)(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}}};function td(){let e=(0,N.s3)(),t=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return t}let tf=()=>({name:"HttpContext",preprocessEvent(e){if(!e$.navigator&&!e$.location&&!e$.document)return;let t=e.request&&e.request.url||e$.location&&e$.location.href,{referrer:n}=e$.document||{},{userAgent:r}=e$.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}});function tp(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function th(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let tm=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){let o=i.getOptions();!function(e,t,n=250,r,i,o,a){if(!o.exception||!o.exception.values||!a||!(0,ey.V9)(a.originalException,Error))return;let s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=(function e(t,n,r,i,o,a,s,u){if(a.length>=r+1)return a;let c=[...a];if((0,ey.V9)(i[o],Error)){tp(s,u);let a=t(n,i[o]),l=c.length;th(a,o,l,u),c=e(t,n,r,i[o],o,[a,...c],a,l)}return Array.isArray(i.errors)&&i.errors.forEach((i,a)=>
38{if((0,ey.V9)(i,Error)){tp(s,u);let l=t(n,i),d=c.length;th(l,`errors[${a}]`,d,u),c=e(t,n,r,i,o,[l,...c],l,d)}}),c})(e,t,i,a.originalException,r,o.exception.values,s,0).map(e=>(e.value&&(e.value=(0,L.$G)(e.value,n)),e)))}(eP,o.stackParser,o.maxValueLength,n,t,e,r)}}};function ty(e,t,n,r){let i={filename:e,function:"<anonymous>"===t?G.Fi:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let tv=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tg=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tb=/\((\S*)(?::(\d+))(?::(\d+))\)/,t_=e=>{let t=tv.exec(e);if(t){let[,e,n,r]=t;return ty(e,G.Fi,+n,+r)}let n=tg.exec(e);if(n){let e=n[2]&&0===n[2].indexOf("eval");if(e){let e=tb.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[t,r]=tk(n[1]||G.Fi,n[2]);return ty(r,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},tw=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tE=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tS=e=>{let t=tw.exec(e);if(t){let e=t[3]&&t[3].indexOf(" > eval")>-1;if(e){let e=tE.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let n=t[3],r=t[1]||G.Fi;return[r,n]=tk(r,n),ty(n,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},tx=(0,G.pE)(...[[30,t_],[50,tS]]),tk=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:G.Fi,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},tT={};function tO(e){let t=tT[e];if(t)return t;let n=ec[e];if(en(n))return tT[e]=n.bind(ec);let r=ec.document;if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return n?tT[e]=n.bind(ec):n}function tI(...e){return tO("setTimeout")(...e)}function tC(e,t,n=Date.now()){return(e[t]||e.all||0)>n}function tD(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,n,,,o]=e.split(":",5),a=parseInt(t,10),s=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=r+s):i[e]=r+s;else i.all=r+s}else a?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}function tR(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function tM(e,t=tO("fetch")){let n=0,r=0;return function(e,t,n=function(e){let 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,ev.$2)(new ek("Not adding Promise because buffer limit was reached."));let 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 ev.cW((n,r)=>{let i=t.length;if(!i)return n(!0);let o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{(0,ev.WD)(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||64)){let r={},i=e=>n.drain(e);return{send:function(i){let o=[];if(e_(i,(t,n)=>{let i=eE[n];if(tC(r,i)){let r=tR(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)}),0===o.length)return(0,ev.WD)({});let a=eb(i[0],o),s=t=>{e_(a,(n,r)=>{let i=tR(n,r);e.recordDroppedEvent(t,eE[r],i)})},u=()=>t({body:function(e){let[t,n]=e,r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[ew(r),e]:r.push("string"==typeof e?ew(e):e)}for(let e of n){let[t,n]=e;if(i(`
39${JSON.stringify(t)}
40`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,eg.Fv)(n))}i(e)}}return"string"==typeof r?r:function(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}(r)}(a)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&F.X&&A.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=tD(r,e),e),e=>{throw s("network_error"),e});return n.add(u).then(e=>e,e=>
40{if(e instanceof ek)return F.X&&A.kg.error("Skipped sending event because buffer is full."),s("queue_overflow"),(0,ev.WD)({});throw e})},flush:i}}(e,function(i){let o=i.body.length;n+=o,r++;let a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return tT.fetch=void 0,(0,ev.$2)("No fetch implementation available");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.fetch=void 0,n-=o,r--,(0,ev.$2)(e)}})}function tN(e){return[U(),H(),e8(),e7(),tl(),tm(),J(),tf()]}var tj=n(83454),tA=n(49101),tP=n(84739),tL=n(12911),tF=n(95383);class tq{constructor(e={}){this._traceId=e.traceId||(0,P.DM)(),this._spanId=e.spanId||(0,P.DM)().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:eO.ve}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}}var tV=n(13628);function tz(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[tL.E1],i=n[tL.Wb];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}let t$="_sentryScope",tU="_sentryIsolationScope";function tW(e){return{scope:e[t$],isolationScope:e[tU]}}class tB{constructor(e={}){this._traceId=e.traceId||(0,P.DM)(),this._spanId=e.spanId||(0,P.DM)().substring(16),this._startTime=e.startTimestamp||(0,eA.ph)(),this._attributes={},this.setAttributes({[tL.S3]:"manual",[tL.$J]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?eO.i0:eO.ve}}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach(t=>this.setAttribute(t,e[t]))}updateStartTime(e){this._startTime=(0,eO.$k)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=(0,eO.$k)(e),function(e){if(!F.X)return;let{description:t="< unknown name >",op:n="< unknown op >"}=(0,eO.XU)(e),{spanId:r}=e.spanContext(),i=(0,eO.Gx)(e),o=`[Tracing] Finishing "${n}" ${i===e?"root ":""}span "${t}" with ID ${r}`;A.kg.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return(0,B.Jr)({data:this._attributes,description:this._name,op:this._attributes[tL.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,eO._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[tL.S3],_metrics_summary:(0,tV.y)(this),profile_id:this._attributes[tL.p6],exclusive_time:this._attributes[tL.JQ],measurements:tz(this._events),is_segment:this._isStandaloneSpan&&(0,eO.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,eO.Gx)(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){F.X&&A.kg.log("[Tracing] Adding an event to span:",e);let r=tQ(t)?t:n||(0,eA.ph)(),i=tQ(t)?{}:t||{},o={name:e,time:(0,eO.$k)(r),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,N.s3)();e&&e.emit("spanEnd",this);let t=this._isStandaloneSpan||this===(0,eO.Gx)(this);if(!t)return;if(this._isStandaloneSpan){(function(e){let t=(0,N.s3)();if(!t)return;let n=e[1];if(!n||0===n.length){t.recordDroppedEvent("before_send","span");return}let r=t.getTransport();r&&r.send(e).then(null,e=>{F.X&&A.kg.error("Error while sending span:",e)})})(function(e,t){let n=(0,eT.jC)(e[0]),r=t&&t.getDsn(),i=t&&t.getOptions().tunnel,o={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:ep(r)}},a=t&&t.getOptions().beforeSendSpan,s=a?e=>a((0,eO.XU)(e)):e=>(0,eO.XU)(e),u=[];for(let t of e){let e=s(t);e&&u.push([{type:"span"},e])}return eb(o,u)}([this],e));return}let n=this._convertSpanToTransaction();if(n){let e=tW(this).scope||(0,N.nZ)();e.captureEvent(n)}}_convertSpanToTransaction(){if(!tH((0,eO.XU)(this)))return;this._name||(F.X&&A.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=tW(this),n=e||(0,N.nZ)(),r=n.getClient()||(0,N.s3)();if(!0!==this._sampled){F.X&&A.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),r&&r.recordDroppedEvent("sample_rate","transaction");return}let i=(0,eO.Dp)(this).filter(e=>e!==this&&!(e instanceof tB&&e.isStandaloneSpan())),o=i.map(e=>(0,eO.XU)(e)).filter(tH),a=this._attributes[tL.Zj],s={contexts:{trace:(0,eO.HR)(this)},spans:o.length>1e3?o.sort((e,t)=>
40e.start_timestamp-t.start_timestamp).slice(0,1e3):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...(0,B.Jr)({dynamicSamplingContext:(0,eT.jC)(this)})},_metrics_summary:(0,tV.y)(this),...a&&{transaction_info:{source:a}}},u=tz(this._events),c=u&&Object.keys(u).length;return c&&(F.X&&A.kg.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),s.measurements=u),s}}function tQ(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function tH(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}let tG="__SENTRY_SUPPRESS_TRACING__";function tJ(e){let t=tX();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=function(e){let t=e.experimental||{},n={isStandalone:t.standalone,...e};if(e.startTime){let t={...n};return t.startTimestamp=(0,eO.$k)(e.startTime),delete t.startTime,t}return n}(e),r=e.scope||(0,N.nZ)(),i=function(e){let t=(0,tF.Y)(e);if(!t)return;let n=(0,N.s3)(),r=n?n.getOptions():{};return r.parentSpanIsAlwaysRootSpan?(0,eO.Gx)(t):t}(r),o=e.onlyIfParent&&!i;return o?new tq:function({parentSpan:e,spanContext:t,forceTransaction:n,scope:r}){var i;let o;if(!j())return new tq;let a=(0,N.aF)();if(e&&!n)o=function(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[tG]&&(0,eO.Tt)(e),a=o?new tB({...n,parentSpanId:r,traceId:i,sampled:o}):new tq({traceId:i});(0,eO.j5)(e,a);let s=(0,N.s3)();return s&&(s.emit("spanStart",a),n.endTimestamp&&s.emit("spanEnd",a)),a}(e,r,t),(0,eO.j5)(e,o);else if(e){let n=(0,eT.jC)(e),{traceId:i,spanId:a}=e.spanContext(),s=(0,eO.Tt)(e);o=tY({traceId:i,parentSpanId:a,...t},r,s),(0,eT.Lh)(o,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:s}={...a.getPropagationContext(),...r.getPropagationContext()};o=tY({traceId:e,parentSpanId:i,...t},r,s),n&&(0,eT.Lh)(o,n)}return function(e){if(!F.X)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,eO.XU)(e),{spanId:i}=e.spanContext(),o=(0,eO.Tt)(e),a=(0,eO.Gx)(e),s=a===e,u=`[Tracing] Starting ${o?"sampled":"unsampled"} ${s?"root ":""}span`,c=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&c.push(`parent ID: ${r}`),!s){let{op:e,description:t}=(0,eO.XU)(a);c.push(`root ID: ${a.spanContext().spanId}`),e&&c.push(`root op: ${e}`),t&&c.push(`root description: ${t}`)}A.kg.log(`${u}
41  ${c.join("\n  ")}`)}(o),(i=o)&&((0,B.xp)(i,tU,a),(0,B.xp)(i,t$,r)),o}({parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r})}function tX(){let e=(0,tA.c)();return(0,tP.G)(e)}function tY(e,t,n){let r=(0,N.s3)(),i=r&&r.getOptions()||{},{name:o="",attributes:a}=e,[s,u]=t.getScopeData().sdkProcessingMetadata[tG]?[!1]:function(e,t){let n;if(!j(e))return[!1];n="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;let r=eC(n);return void 0===r?(F.X&&A.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(F.X&&A.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(F.X&&A.kg.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,r])}(i,{name:o,parentSampled:n,attributes:a,transactionContext:{name:o,parentSampled:n}}),c=new tB({...e,attributes:{[tL.Zj]:"custom",...e.attributes},sampled:s});return void 0!==u&&c.setAttribute(tL.TE,u),r&&r.emit("spanStart",c),c}let tK=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",tZ=(e,t,n,r)=>{let i,o;return a=>{t.value>=0&&(a||r)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=tK(t.value,n),e(t))}},t0=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,t1=()=>ec.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],t2=()=>{let e=t1();return e&&e.activationStart||0},t3=(e,t)=>
41{let n=t1(),r="navigate";return n&&(ec.document&&ec.document.prerendering||t2()>0?r="prerender":ec.document&&ec.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:t0(),navigationType:r}},t5=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},t4=e=>{let t=t=>{("pagehide"===t.type||ec.document&&"hidden"===ec.document.visibilityState)&&e(t)};ec.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},t6=e=>{let t=!1;return n=>{t||(e(n),t=!0)}},t7=-1,t9=()=>{t7="hidden"!==ec.document.visibilityState||ec.document.prerendering?1/0:0},t8=e=>{"hidden"===ec.document.visibilityState&&t7>-1&&(t7="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",t8,!0),removeEventListener("prerenderingchange",t8,!0))},ne=()=>{addEventListener("visibilitychange",t8,!0),addEventListener("prerenderingchange",t8,!0)},nt=()=>(ec.document&&t7<0&&(t9(),ne()),{get firstHiddenTime(){return t7}}),nn=e=>{ec.document&&ec.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},nr=[1800,3e3],ni=(e,t={})=>{nn(()=>{let n;let r=nt(),i=t3("FCP"),o=e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-t2(),0),i.entries.push(e),n(!0)))})},a=t5("paint",o);a&&(n=tZ(e,i,nr,t.reportAllChanges))})},no=[.1,.25],na=(e,t={})=>{ni(t6(()=>{let n;let r=t3("CLS",0),i=0,o=[],a=e=>{e.forEach(e=>{if(!e.hadRecentInput){let t=o[0],n=o[o.length-1];i&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e])}}),i>r.value&&(r.value=i,r.entries=o,n())},s=t5("layout-shift",a);s&&(n=tZ(e,r,no,t.reportAllChanges),t4(()=>{a(s.takeRecords()),n(!0)}),setTimeout(n,0))}))},ns=[100,300],nu=(e,t={})=>{nn(()=>{let n;let r=nt(),i=t3("FID"),o=e=>{e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},a=e=>{e.forEach(o)},s=t5("first-input",a);n=tZ(e,i,ns,t.reportAllChanges),s&&t4(t6(()=>{a(s.takeRecords()),s.disconnect()}))})},nc=0,nl=1/0,nd=0,nf=e=>{e.forEach(e=>{e.interactionId&&(nl=Math.min(nl,e.interactionId),nc=(nd=Math.max(nd,e.interactionId))?(nd-nl)/7+1:0)})},np=()=>u?nc:performance.interactionCount||0,nh=()=>{"interactionCount"in performance||u||(u=t5("event",nf,{type:"event",buffered:!0,durationThreshold:0}))},nm=[200,500],ny=()=>np()-0,nv=[],ng={},nb=e=>{let t=nv[nv.length-1],n=ng[e.interactionId];if(n||nv.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};ng[t.id]=t,nv.push(t)}nv.sort((e,t)=>t.latency-e.latency),nv.splice(10).forEach(e=>{delete ng[e.id]})}},n_=()=>{let e=Math.min(nv.length-1,Math.floor(ny()/50));return nv[e]},nw=(e,t={})=>{nn(()=>{let n;nh();let r=t3("INP"),i=e=>{e.forEach(e=>{if(e.interactionId&&nb(e),"first-input"===e.entryType){let t=!nv.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime));t&&nb(e)}});let t=n_();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())},o=t5("event",i,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});n=tZ(e,r,nm,t.reportAllChanges),o&&("PerformanceEventTiming"in ec&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),t4(()=>{i(o.takeRecords()),r.value<0&&ny()>0&&(r.value=0,r.entries=[]),n(!0)}))})},nE=[2500,4e3],nS={},nx=(e,t={})=>{nn(()=>{let n;let r=nt(),i=t3("LCP"),o=e=>{let t=e[e.length-1];t&&t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-t2(),0),i.entries=[t],n())},a=t5("largest-contentful-paint",o);if(a){n=tZ(e,i,nE,t.reportAllChanges);let r=t6(()=>{nS[i.id]||(o(a.takeRecords()),a.disconnect(),nS[i.id]=!0,n(!0))});["keydown","click"].forEach(e=>{ec.document&&addEventListener(e,()=>setTimeout(r,0),!0)}),t4(r)}})},nk=[800,1800],nT=e=>{ec.document&&ec.document.prerendering?nn(()=>nT(e)):ec.document&&"complete"!==ec.document.readyState?addEventListener("load",()=>nT(e),!0):setTimeout(e,0)},nO=(e,t={})=>{let n=t3("TTFB"),r=tZ(e,n,nk,t.reportAllChanges);nT(()=>{let e=t1();if(e){let t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-t2(),0),n.entries=[e],r(!0)}})},nI={},nC={};function nD(e,t=!1){return nz("cls",e,nP,c,t)}function nR(e,t=!1){return nz("lcp",e,nF,d,t)}function nM(e){return nz("fid",e,nL,l)}function nN(e){return nz("inp",e,nV,p)}function nj(e,t){return n$(e,t),nC[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),t5(e,t=>{nA(e,{entries:t})},t)}(e),nC[e]=!0),nU(e,t)}function nA(e,t){let n=nI[e];if(n&&n.length)for(let e of n)try{e(t)}catch(e){}}function nP(){return na(e=>{nA("cls",{metric:e}),c=e},{reportAllChanges:!0})}function nL(){return nu(e=>{nA("fid",{metric:e}),l=e})}function nF(){return nx(e=>{nA("lcp",{metric:e}),d=e},{reportAllChanges:!0})}function nq(){return nO(e=>{nA("ttfb",{metric:e}),f=e})}function nV(){return nw(e=>{nA("inp",{metric:e}),p=e})}function nz(e,t,n,r,i=!1){let o;return n$(e,t),nC[e]||(o=n(),nC[e]=!0),r&&t({metric:r}),nU(e,t,i?o:void 0)}function n$(e,t){nI[e]=nI[e]||[],nI[e].push(t)}function nU(e,t,n){return()=>{n&&n();let r=nI[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function nW(e){return"number"==typeof e&&isFinite(e)}function nB(e,t,n,{...r}){let i=(0,eO.XU)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),function(e,t){let n=tX();return n.withActiveSpan?n.withActiveSpan(e,t):(0,N.$e)(n=>((0,tF.D)(n,e||void 0),t(n)))}(e,()=>{let e=tJ({startTime:t,...r});return e&&e.end(n),e})}function nQ(){return ec&&ec.addEventListener&&ec.performance}function nH(e){return e/1e3}let nG=0,nJ={};function nX(e,t,n,r,i,o){let a=o?t[o]:t[`${n}End`],s=t[`${n}Start`];s&&a&&nB(e,r+nH(s),r+nH(a),{op:"browser",name:i||n,attributes:{[tL.S3]:"auto.ui.browser.metrics"}})}function nY(e,t,n,r){let i=t[n];null!=i&&i<2147483647&&(e[r]=i)}let nK=[],nZ=new Map,n0={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};var n1=n(80924);let n2={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function n3(e,t={}){let n;let r=new Map,i=!1,o="externalFinish",a=!t.disableAutoFinish,{idleTimeout:s=n2.idleTimeout,finalTimeout:u=n2.finalTimeout,childSpanTimeout:c=n2.childSpanTimeout,beforeSpanEnd:l}=t,d=(0,N.s3)();if(!d||!j())return new tq;let f=(0,N.nZ)(),p=(0,eO.HN)(),h=function(e){let t=tJ(e);return(0,tF.D)((0,N.nZ)(),t),F.X&&A.kg.log("[Tracing] Started span is an i
41dle span"),t}(e);function m(){n&&(clearTimeout(n),n=void 0)}function y(e){m(),n=setTimeout(()=>{!i&&0===r.size&&a&&(o="idleTimeout",h.end(e))},s)}function v(e){n=setTimeout(()=>{!i&&a&&(o="heartbeatFailed",h.end(e))},c)}function g(e){i=!0,r.clear(),(0,tF.D)(f,p);let t=(0,eO.XU)(h),{start_timestamp:n}=t;if(!n)return;let a=t.data||{};a[tL.ju]||h.setAttribute(tL.ju,o),A.kg.log(`[Tracing] Idle span "${t.op}" finished`);let c=(0,eO.Dp)(h).filter(e=>e!==h),l=0;c.forEach(t=>{t.isRecording()&&(t.setStatus({code:n1.jt,message:"cancelled"}),t.end(e),F.X&&A.kg.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let n=(0,eO.XU)(t),{timestamp:r=0,start_timestamp:i=0}=n,o=i<=e,a=r-i<=(u+s)/1e3;if(F.X){let e=JSON.stringify(t,void 0,2);o?a||A.kg.log("[Tracing] Discarding span since it finished after idle span final timeout",e):A.kg.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!a||!o)&&((0,eO.ed)(h,t),l++)}),l>0&&h.setAttribute("sentry.idle_span_discarded_spans",l)}return h.end=new Proxy(h.end,{apply(e,t,n){l&&l(h);let[r,...i]=n,o=r||(0,eA.ph)(),a=(0,eO.$k)(o),s=(0,eO.Dp)(h).filter(e=>e!==h);if(!s.length)return g(a),Reflect.apply(e,t,[a,...i]);let c=s.map(e=>(0,eO.XU)(e).timestamp).filter(e=>!!e),d=c.length?Math.max(...c):void 0,f=(0,eO.XU)(h).start_timestamp,p=Math.min(f?f+u/1e3:1/0,Math.max(f||-1/0,Math.min(a,d||1/0)));return g(p),Reflect.apply(e,t,[p,...i])}}),d.on("spanStart",e=>{if(i||e===h||(0,eO.XU)(e).timestamp)return;let t=(0,eO.Dp)(h);t.includes(e)&&function(e){m(),r.set(e,!0);let t=(0,eA.ph)();v(t+c/1e3)}(e.spanContext().spanId)}),d.on("spanEnd",e=>{i||function(e){if(r.has(e)&&r.delete(e),0===r.size){let e=(0,eA.ph)();y(e+s/1e3)}}(e.spanContext().spanId)}),d.on("idleSpanEnableAutoFinish",e=>{e===h&&(a=!0,y(),r.size&&v())}),t.disableAutoFinish||y(),setTimeout(()=>{i||(h.setStatus({code:n1.jt,message:"deadline_exceeded"}),o="finalTimeout",h.end())},u),h}let n5=!1;function n4(){let e=(0,eO.HN)(),t=e&&(0,eO.Gx)(e);if(t){let e="internal_error";F.X&&A.kg.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:n1.jt,message:e})}}n4.tag="sentry_tracingErrorCallback";var n6=n(57976),n7=n(89181),n9=n(6911);let n8={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function re(e){let{url:t}=(0,eO.XU)(e).data||{};if(!t||"string"!=typeof t)return;let n=nj("resource",({entries:r})=>{r.forEach(r=>{if("resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)){let t=function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),eA.Z1)?[...r,["http.request.redirect_start",rt(e.redirectStart)],["http.request.fetch_start",rt(e.fetchStart)],["http.request.domain_lookup_start",rt(e.domainLookupStart)],["http.request.domain_lookup_end",rt(e.domainLookupEnd)],["http.request.connect_start",rt(e.connectStart)],["http.request.secure_connection_start",rt(e.secureConnectionStart)],["http.request.connection_end",rt(e.connectEnd)],["http.request.request_start",rt(e.requestStart)],["http.request.response_start",rt(e.responseStart)],["http.request.response_end",rt(e.responseEnd)]]:r}(r);t.forEach(t=>e.setAttribute(...t)),setTimeout(n)}})})}function rt(e=0){return((eA.Z1||performance.timeOrigin)+e)/1e3}function rn(e){try{let t=new URL(e,e$.location.origin);return t.href}catch(e){return}}let rr={...n2,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!0,_experiments:{},...n8},ri=(e={})=>{n5||(n5=!0,to(n4),tu(n4));let{enableInp:t,enableLongTask:n,_experiments:{enableInteractions:r},beforeStartSpan:i,idleTimeout:o,finalTimeout:a,childSpanTimeout:s,markBackgroundSpan:u,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:d,enableHTTPTimings:p,instrumentPageLoad:y,instrumentNavigation:v}={...rr,...e},g=function(){let e=nQ();if(e&&eA.Z1){e.mark&&ec.performance.mark("sentry-tracing-init");let t=nM(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=nH(eA.Z1),r=nH(t.startTime);nJ.fid={value:e.value,unit:"millisecond"},nJ["mark.fid"]={value:n+r,unit:"second"}}),n=nD(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(nJ.cls={value:e.value,unit:""},m=t)},!0),r=nR(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(nJ.lcp={value:e.value,unit:"millisecond"},h=t)},!0),i=nz("ttfb",({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(nJ.ttfb={value:e.value,unit:"millisecond"})},nq,f);return()=>{t(),n(),r(),i()}}return()=>void 0}();t&&function(){let e=nQ();if(e&&eA.Z1){let e=nN(({metric:e})=>{let t;let n=(0,N.s3)();if(!n||void 0==e.value)return;let r=e.entries.find(t=>t.duration===e.value&&n0[t.name]);if(!r)return;let{interactionId:i}=r,o=n0[r.name],a=n.getOptions(),s=nH(eA.Z1+r.startTime),u=nH(e.value),c=(0,N.nZ)(),l=(0,eO.HN)(),d=l?(0,eO.Gx)(l):void 0,f=null!=i?nZ.get(i):void 0,p=f||(d?(0,eO.XU)(d).description:c.getScopeData().transactionName),h=c.getUser(),m=n.getIntegrationByName("Replay"),y=m&&m.getReplayId(),v=void 0!==h?h.email||h.id||h.ip_address:void 0;
41try{t=c.getScopeData().contexts.profile.profile_id}catch(e){}let g=(0,e5.Rt)(r.target),b=(0,B.Jr)({release:a.release,environment:a.environment,transaction:p,[tL.JQ]:e.value,[tL.S3]:"auto.http.browser.inp",user:v||void 0,profile_id:t||void 0,replay_id:y||void 0}),_=tJ({name:g,op:`ui.interaction.${o}`,attributes:b,startTime:s,experimental:{standalone:!0}});_.addEvent("inp",{[tL.E1]:"millisecond",[tL.Wb]:e.value}),_.end(s+u)})}}(),n&&nj("longtask",({entries:e})=>{for(let t of e){if(!(0,eO.HN)())return;let e=nH(eA.Z1+t.startTime),n=nH(t.duration),r=tJ({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[tL.S3]:"auto.ui.browser.metrics"}});r&&r.end(e+n)}}),r&&nj("event",({entries:e})=>{for(let t of e){if(!(0,eO.HN)())return;if("click"===t.name){let e=nH(eA.Z1+t.startTime),n=nH(t.duration),r={name:(0,e5.Rt)(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[tL.S3]:"auto.ui.browser.metrics"}},i=(0,e5.iY)(t.target);i&&(r.attributes["ui.component_name"]=i);let o=tJ(r);o&&o.end(e+n)}}});let b={name:void 0,source:void 0};function _(e,t){let n="pageload"===t.op,r=i?i(t):t,u=r.attributes||{};t.name!==r.name&&(u[tL.Zj]="custom",r.attributes=u),b.name=r.name,b.source=u[tL.Zj];let c=n3(r,{idleTimeout:o,finalTimeout:a,childSpanTimeout:s,disableAutoFinish:n,beforeSpanEnd:e=>{g(),function(e){let t=nQ();if(!t||!ec.performance.getEntries||!eA.Z1)return;let n=nH(eA.Z1),r=t.getEntries(),{op:i,start_timestamp:o}=(0,eO.XU)(e);if(r.slice(nG).forEach(t=>{let r=nH(t.startTime),a=nH(t.duration);if("navigation"!==i||!o||!(n+r<o))switch(t.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{nX(e,t,r,n)}),nX(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),nX(e,t,"fetch",n,"cache","domainLookupStart"),nX(e,t,"domainLookup",n,"DNS"),t.responseEnd&&(nB(e,n+nH(t.requestStart),n+nH(t.responseEnd),{op:"browser",name:"request",attributes:{[tL.S3]:"auto.ui.browser.metrics"}}),nB(e,n+nH(t.responseStart),n+nH(t.responseEnd),{op:"browser",name:"response",attributes:{[tL.S3]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":{(function(e,t,n,r,i){let o=i+n;nB(e,o,o+r,{name:t.name,op:t.entryType,attributes:{[tL.S3]:"auto.resource.browser.metrics"}})})(e,t,r,a,n);let i=nt(),o=t.startTime<i.firstHiddenTime;"first-paint"===t.name&&o&&(nJ.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&o&&(nJ.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":(function(e,t,n,r,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let a=e6(n),s={[tL.S3]:"auto.resource.browser.metrics"};nY(s,t,"transferSize","http.response_transfer_size"),nY(s,t,"encodedBodySize","http.response_content_length"),nY(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus),a.protocol&&(s["url.scheme"]=a.protocol.split(":").pop()),a.host&&(s["server.address"]=a.host),s["url.same_origin"]=n.includes(ec.location.origin);let u=o+r;nB(e,u,u+i,{name:n.replace(ec.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:s})})(e,t,t.name,r,a,n)}}),nG=Math.max(r.length-1,0),function(e){let t=ec.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),nW(n.rtt)&&(nJ["connection.rtt"]={value:n.rtt,unit:"millisecond"})),nW(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),nW(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===i){(function(e){let t=t1();if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})})(nJ),["fcp","fp","lcp"].forEach(e=>{if(!nJ[e]||!o||n>=o)return;let t=nJ[e].value,r=n+nH(t);nJ[e].value=Math.abs((r-o)*1e3)});let t=nJ["mark.fid"];t&&nJ.fid&&(nB(e,t.value,t.value+nH(nJ.fid.value),{name:"first input delay",op:"ui.action",attributes:{[tL.S3]:"auto.ui.browser.metrics"}}),delete nJ["mark.fid"]),"fcp"in nJ||delete nJ.cls,Object.keys(nJ).forEach(e
41=>{!function(e,t,n){let r=(0,eO.HN)(),i=r&&(0,eO.Gx)(r);i&&i.addEvent(e,{[tL.Wb]:t,[tL.E1]:n})}(e,nJ[e].value,nJ[e].unit)}),h&&(h.element&&e.setAttribute("lcp.element",(0,e5.Rt)(h.element)),h.id&&e.setAttribute("lcp.id",h.id),h.url&&e.setAttribute("lcp.url",h.url.trim().slice(0,200)),e.setAttribute("lcp.size",h.size)),m&&m.sources&&m.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,e5.Rt)(t.node)))}h=void 0,m=void 0,nJ={}}(e)}});function l(){["interactive","complete"].includes(e$.document.readyState)&&e.emit("idleSpanEnableAutoFinish",c)}return n&&e$.document&&(e$.document.addEventListener("readystatechange",()=>{l()}),l()),c}return{name:"BrowserTracing",afterAllSetup(e){let n;let i=e$.location&&e$.location.href;e.on("startNavigationSpan",t=>{(0,N.s3)()===e&&(n&&n.end(),n=_(e,{op:"navigation",...t}))}),e.on("startPageLoadSpan",(t,r={})=>{if((0,N.s3)()!==e)return;n&&n.end();let i=r.sentryTrace||rs("sentry-trace"),o=r.baggage||rs("baggage"),a=(0,n6.pT)(i,o);(0,N.nZ)().setPropagationContext(a),n=_(e,{op:"pageload",...t})}),e.on("spanEnd",e=>{let t=(0,eO.XU)(e).op;if(e!==(0,eO.Gx)(e)||"navigation"!==t&&"pageload"!==t)return;let n=(0,N.nZ)(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:(0,eO.Tt)(e),dsc:r.dsc||(0,eT.jC)(e)})}),e$.location&&(y&&ro(e,{name:e$.location.pathname,startTime:eA.Z1?eA.Z1/1e3:void 0,attributes:{[tL.Zj]:"url",[tL.S3]:"auto.pageload.browser"}}),v&&el(({to:t,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(t)){i=void 0;return}n!==t&&(i=void 0,ra(e,{name:e$.location.pathname,attributes:{[tL.Zj]:"url",[tL.S3]:"auto.navigation.browser"}}))})),u&&e$&&e$.document&&e$.document.addEventListener("visibilitychange",()=>{let e=(0,eO.HN)();if(!e)return;let t=(0,eO.Gx)(e);if(e$.document.hidden&&t){let{op:e,status:n}=(0,eO.XU)(t);n||t.setStatus({code:n1.jt,message:"cancelled"}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}),r&&function(e,t,n,r){let i;let o=()=>{let o=(0,eO.HN)(),a=o&&(0,eO.Gx)(o);if(a){let e=(0,eO.XU)(a).op;if(["navigation","pageload"].includes(e))return}i&&(i.setAttribute(tL.ju,"interactionInterrupted"),i.end(),i=void 0),r.name&&(i=n3({name:r.name,op:"ui.action.click",attributes:{[tL.Zj]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n}))};e$.document&&addEventListener("click",o,{once:!1,capture:!0})}(o,a,s,b),t&&function(e){let t=({entries:t})=>{t.forEach(t=>{if(!("duration"in t)||!e.name)return;let n=t.interactionId;if(!(null==n||nZ.has(n))){if(nK.length>10){let e=nK.shift();nZ.delete(e)}nK.push(n),nZ.set(n,e.name)}})};nj("event",t),nj("first-input",t)}(b),function(e){let{traceFetch:t,traceXHR:n,shouldCreateSpanForRequest:r,enableHTTPTimings:i,tracePropagationTargets:o}={traceFetch:n8.traceFetch,traceXHR:n8.traceXHR,...e},a="function"==typeof r?r:e=>!0,s=e=>(function(e,t){let n=e$.location&&e$.location.href;if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch(e){return!1}let o=r.origin===i;return t?(0,L.U0)(r.toString(),t)||o&&(0,L.U0)(r.pathname,t):o}{let n=!!e.match(/^\/(?!\/)/);return t?(0,L.U0)(e,t):n}})(e,o),u={};t&&e0(e=>{let t=function(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;let o=j()&&t(e.fetchData.url);if(e.endTimestamp&&o){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(function(e,t){if(t.response){(0,n1.Q0)(e,t.response.status);let n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:n1.jt,message:"internal_error"});e.end()}(n,e),delete r[t]);return}let a=(0,N.nZ)(),s=(0,N.s3)(),{method:u,url:c}=e.fetchData,l=function(e){try{let t=new URL(e);return t.href}catch(e){return}}(c),d=l?e6(l).host:void 0,f=!!(0,eO.HN)(),p=o&&f?tJ({name:`${u} ${c}`,attributes:{url:c,type:"fetch","http.method":u,"http.url":l,"server.address":d,[tL.S3]:i,[tL.$J]:"http.client"}}):new tq;if(e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p,n(e.fetchData.url)&&s){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=function(e,t,n,r,i){let o=(0,N.aF)(),{traceId:a,spanId:s,sampled:u,dsc:c}={...o.getPropagationContext(),...n.getPropagationContext()},l=i?(0,eO.Hb)(i):(0,n6.$p)(a,s,u),d=(0,n9.IQ)(c||(i?(0,eT.jC)(i):(0,eT._l)(a,t))),f=r.headers||("undefined"!=typeof Request&&(0,ey.V9)(e,Request)?e.headers:void 0);if(!f)return{"sentry-trace":l,baggage:d};if("undefined"!=typeof Headers&&(0,ey.V9)(f,Headers)){let e=new Headers(f);return e.append("sentry-trace",l),d&&e.append(n9.bU,d),e}if(Array.isArray(f)){let e=[...f,["sentry-trace",l]];return d&&e.push([n9.bU,d]),e}{let e="baggage"in f?f.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),d&&t.push(d),{...f,"sentry-trace":l,baggage:t.length>0?t.join(","):void 0}}}(t,s,a,n,j()&&f?p:void 0)}return p}(e,a,s,u);if(t){let n=rn(e.fetchData.url),r=n?e6(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}i&&t&&re(t)}),n&&eX(e=>{let t=function(e,t,n,r){let i=e.xhr,o=i&&i[eJ];if(!i||i.__sentry_own_request__||!o)return;let a=j()&&t(o.url);if(e.endTimestamp&&a){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&void 0!==o.status_code&&((0,n1.Q0)(t,o.status_code),t.end(),delete r[e]);return}let s=rn(o.url),u=s?e6(s).host:void 0,c=!!(0,eO.HN)(),l=a&&c?tJ({name:`${o.method} ${o.url}`,attributes:{type:"xhr","http.method":o.method,"http.url":s,url:o.url,"server.address":u,[tL.S3]:"auto.http.browser",[tL.$J]:"http.client"}}):new tq;i.__sentry_xhr_span_id__=l.spanContext().spanId,r[i.__sentry_xhr_span_id__]=l;let d=(0,N.s3)();return i.setRequestHeader&&n(o.url)&&d&&function(e,t,n){let r=(0,N.nZ)(),i=(0,N.aF)(),{traceId:o,spanId:a,sampled:s,dsc:u}={...i.getPropagationContext(),...r.getPropagationContext()},c=n&&j()?(0,eO.Hb)(n):(0,n6.$p)(o,a,s),l=(0,n9.IQ)(u||(n?(0,eT.jC)(n):(0,eT._l)(o,t)));(function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(n9.bU,n)}catch(e){}})(e,c,l)}(i,d,j()&&c?l:void 0),l}(e,a,s,u);i&&t&&re(t)})}({traceFetch:c,traceXHR:l,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:d,enableHTTPTimings:p})}}};function ro(e,t,n){e.emit("startPageLoadSpan",t,n),(0,N.nZ)().setTransactionName(t.name);let r=(0,eO.HN)(),i=r&&(0,eO.XU)(r).op;return"pageload"===i?r:void 0}function ra(e,t){(0,N.aF)().setPropagationContext((0,n7.Q)()),(0,N.nZ)().setPropagationContext((0,n7.Q)()),e.emit("startNavigationSpan",t),(0,N.nZ)().setTransactionName(t.name);let n=(0,eO.HN)(),r=n&&(0,eO.XU)(n).op;return"navigation"===r?n:void 0}function rs(e){let t=(0,e5.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}var ru=n(11163),rc=n(87364);let rl=ru.events?ru:ru.default;var rd=n(82414);let rf=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function rp(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function rh(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let rm=(e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in ee.n&&void 0!==ee.n.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),o=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||o){var a;let e;let o=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,s=t?function(e,t){e=rp(e).slice(1),t=rp(t).slice(1);let n=rh(e.split("/")),r=rh(t.split("/")),i=Math.min(n.length,r.length),o=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){o=e;break}let a=[];for(let e=o;e<n.length;e++)a.push("..");return(a=a.concat(r.slice(o))).join("/")}(t,o):(e=function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=rf.exec(t);return n?n.slice(1):[]}(o)[2],a&&e.slice(-1*a.length)===a&&(e=e.slice(0,e.length-a.length)),e);r.filename=`${n}${s}`}return r}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t&&t.frames&&t.frames.map(e=>i(e))}}}})}}}catch(t){return e}}(t)),t}}},ry=({assetPrefixPath:e})=>{let t=rm({iteratee:t=>{try{let{origin:n}=new URL(t.filename);t.filename=(0,rd.x)([t,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(n,"app://"),"access",e=>e.replace,"call",t=>t(e,"")])}catch(e){}return t.filename&&t.filename.startsWith("app:///_next")&&(t.filename=decodeURI(t.filename)),t.filename&&t.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(t.in_app=!1),t}});return{...t,name:"NextjsClientStackFrameNormalization"}}
41,rv=ee.n,rg=ee.n;var rb=n(87416);function r_(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var rw=n(83454);function rE(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==rw?rw:0))||void 0!==ee.n.process&&"renderer"===ee.n.process.type)}let rS=ee.n,rx="sentryReplaySession",rk="Unable to send Replay";function rT(e){let t;let n=e[0],r=1;for(;r<e.length;){let 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}function rO(e){let t=rT([e,"optionalAccess",e=>e.host]);return Boolean(rT([t,"optionalAccess",e=>e.shadowRoot])===e)}function rI(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function rC(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,rD).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function rD(e){let t;if("styleSheet"in e)try{t=rC(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}(E=I||(I={}))[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";class rR{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return -1;let t=rT([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]);return()=>-1,null!=t?t:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function rM({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function rN({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function rj(e){return e.toLowerCase()}function rA(e){return e.toUpperCase()}let rP="__rrweb_original__";function rL(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?rj(t):null}function rF(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}let rq=1,rV=RegExp("[^a-z0-9-_:]");function rz(){return rq++}let r$=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,rU=/^(?:[a-z+]+:)?\/\//i,rW=/^www\..*/i,rB=/^(data:)([^,]*),(.*)/i;function rQ(e,t){return(e||"").replace(r$,(e,n,r,i,o,a)=>{let s=r||o||a,u=n||i||"";if(!s)return e;if(rU.test(s)||rW.test(s)||rB.test(s))return`url(${u}${s}${u})`;if("/"===s[0])return`url(${u}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s}${u})`;let c=t.split("/"),l=s.split("/");for(let e of(c.pop(),l))"."!==e&&(".."===e?c.pop():c.push(e));return`url(${u}${c.join("/")}${u})`})}let rH=/^[^ \t\n\r\u000c]+/,rG=/^[, \t\n\r\u000c]+/;function rJ(e,t){if(!t||""===t.trim())return t;let n=e.createElement("a");return n.href=t,n.href}function rX(){let e=document.createElement("a");return e.href="",e.href}function rY(e,t,n,r,i,o){return r?"src"!==n&&("href"!==n||"use"===t&&"#"===r[0])&&("xlink:href"!==n||"#"===r[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;let i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(rG),!(n>=t.length);
41){let o=r(rH);if(","===o.slice(-1))o=rJ(e,o.substring(0,o.length-1)),i.push(o);else{let r="";o=rJ(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,r):"style"===n?rQ(r,rX()):"object"===t&&"data"===n?rJ(e,r):"function"==typeof o?o(n,r,i):r:rJ(e,r):r}function rK(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function rZ(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:rZ(e.parentNode,t,n,r+1)}function r0(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch(e){return!1}}}function r1(e,t,n,r,i,o){try{let a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){let e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,u=-1;if(o){if((u=rZ(a,r0(r,i)))<0)return!0;s=rZ(a,r0(t,n),u>=0?u:1/0)}else{if((s=rZ(a,r0(t,n)))<0)return!1;u=rZ(a,r0(r,i),s>=0?s:1/0)}return s>=0?!(u>=0)||s<=u:!(u>=0)&&!!o}catch(e){}return!!o}function r2(e){return null==e?"":e.toLowerCase()}function r3(e,t){let n;let{doc:r,mirror:i,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:u,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:m={},maskAttributeFn:g,maskTextFn:b,maskInputFn:_,slimDOMOptions:w,dataURLOptions:E={},inlineImages:S=!1,recordCanvas:x=!1,onSerialize:k,onIframeLoad:T,iframeLoadTimeout:O=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:D=5e3,keepIframeSrcFn:R=()=>!1,newlyAddedElement:M=!1}=t,{preserveWhiteSpace:N=!0}=t,j=function(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskAttributeFn:u,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:b={},inlineImages:_,recordCanvas:w,keepIframeSrcFn:E,newlyAddedElement:S=!1}=t,x=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:I.Document,childNodes:[],compatMode:e.compatMode};return{type:I.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:I.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return function(e,t){let n;let{doc:r,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:s,maskInputOptions:u={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:d={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:m=!1,rootId:g,maskAllText:b,maskTextClass:_,unmaskTextClass:w,maskTextSelector:E,unmaskTextSelector:S}=t,x=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,i,o,a),k=function(e){if(e instanceof HTMLFormElement)return"form";let t=rj(e.tagName);return rV.test(t)?"div":t}(e),T={},O=e.attributes.length;for(let t=0;t<O;t++){let n=e.attributes[t];n.name&&!rK(k,n.name,n.value)&&(T[n.name]=rY(r,k,rj(n.name),n.value,e,c))}if("link"===k&&s){let t=Array.from(r.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=rC(t)),n&&(delete T.rel,delete T.href,T._cssText=rQ(n,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=rC(e.sheet);t&&(T._cssText=rQ(t,rX()))}if("input"===k||"textarea"===k||"select"===k||"option"===k){let t=rL(e),n=rF(e,rA(k),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=r1(e,_,E,w,S,rM({type:t,tagName:rA(k),maskInputOptions:u}));T.value=rN({isMasked:r,element:e,value:n,maskInputFn:l})}r&&(T.checked=r)}if("option"===k&&(e.selected&&!u.select?T.selected=!0:delete T.selected),"canvas"===k&&p){if("2d"===e.__context)!function(e){let 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){let i=t.getImageData,o=rP in i?i[rP]:i,a=new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer);if(a.some(e=>0!==e))return!1}return!0}(e)&&(T.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;let r=n.toDataURL(d.type,d.quality);t!==r&&(T.rr_dataURL=t)}}if("img"===k&&f){y||(v=(y=r.createElement("canvas")).getContext("2d"));let t=e,n=t.crossOrigin;t.crossOrigin="anonymous";let i=()=>{t.removeEventListener("load",i);
41try{y.width=t.naturalWidth,y.height=t.naturalHeight,v.drawImage(t,0,0),T.rr_dataURL=y.toDataURL(d.type,d.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?T.crossOrigin=n:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}if(("audio"===k||"video"===k)&&(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime),!m&&(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop)),x){let{width:t,height:n}=e.getBoundingClientRect();T={class:T.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==k||h(T.src)||(e.contentDocument||(T.rr_src=T.src),delete T.src);try{customElements.get(k)&&(n=!0)}catch(e){}return{type:I.Element,tagName:k,attributes:T,childNodes:[],isSVG:Boolean("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:x,rootId:g,isCustom:n}}(e,{doc:n,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:p,maskAttributeFn:u,maskInputOptions:h,maskInputFn:g,dataURLOptions:b,inlineImages:_,recordCanvas:w,keepIframeSrcFn:E,newlyAddedElement:S,rootId:x,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:u,maskInputFn:c,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName,f=e.textContent,p="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||rT([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(f=rC(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=rQ(f,rX())}h&&(f="SCRIPT_PLACEHOLDER");let y=r1(e,r,o,i,a,n);if(p||h||m||!f||!y||(f=s?s(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(u.textarea||y)&&(f=c?c(f,e.parentNode):f.replace(/[\S]/g,"*")),"OPTION"===d&&f){let t=rM({type:null,tagName:d,maskInputOptions:u});f=rN({isMasked:r1(e,r,o,i,a,t),element:e,value:f,maskInputFn:c})}return{type:I.Text,textContent:f||"",isStyle:p,rootId:l}}(e,{maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:x});case e.CDATA_SECTION_NODE:return{type:I.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:I.Comment,textContent:e.textContent||"",rootId:x};default:return!1}}(e,{doc:r,mirror:i,blockClass:o,blockSelector:a,maskAllText:u,unblockSelector:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:g,maskTextFn:b,maskInputFn:_,dataURLOptions:E,inlineImages:S,recordCanvas:x,keepIframeSrcFn:R,newlyAddedElement:M});if(!j)return console.warn(e,"not serialized"),null;n=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===I.Comment)return!0;if(e.type===I.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"))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(r2(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===r2(e.attributes.name)||"icon"===r2(e.attributes.rel)||"apple-touch-icon"===r2(e.attributes.rel)||"shortcut icon"===r2(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&r2(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(r2(e.attributes.property).match(/^(og|twitter|fb):/)||r2(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===r2(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===r2(e.attributes.name)||"googlebot"===r2(e.attributes.name)||"bingbot"===r2(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===r2(e.attributes.name)||"generator"===r2(e.attributes.name)||"framework"===r2(e.attributes.name)||"publisher"===r2(e.attributes.name)||"progid"===r2(e.attributes.name)||r2(e.attributes.property).match(/^article:/)||r2(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===r2(e.attributes.name)||"yandex-verification"===r2(e.attributes.name)||"csrf-token"===r2(e.attributes.name)||"p:domain_verify"===r2(e.attributes.name)||"verify-v1"===r2(e.attributes.name)||"verification"===r2(e.attributes.name)||"shopify-checkout-api-token"===r2(e.attributes.name)))return!0}}return!1}(j,w)&&(N||j.type!==I.Text||j.isStyle||j.textContent.replace(/^\s+|\s+$/gm,"").length)?rz():-2;let A=Object.assign(j,{id:n});if(i.add(e,A),-2===n)return null;
41k&&k(e);let P=!p;if(A.type===I.Element){P=P&&!A.needBlock,delete A.needBlock;let t=e.shadowRoot;t&&rI(t)&&(A.isShadowHost=!0)}if((A.type===I.Document||A.type===I.Element)&&P){w.headWhitespace&&A.type===I.Element&&"head"===A.tagName&&(N=!1);let t={doc:r,mirror:i,blockClass:o,blockSelector:a,maskAllText:u,unblockSelector:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,skipChild:p,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:g,maskTextFn:b,maskInputFn:_,slimDOMOptions:w,dataURLOptions:E,inlineImages:S,recordCanvas:x,preserveWhiteSpace:N,onSerialize:k,onIframeLoad:T,iframeLoadTimeout:O,onStylesheetLoad:C,stylesheetLoadTimeout:D,keepIframeSrcFn:R};for(let n of Array.from(e.childNodes)){let e=r3(n,t);e&&A.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=r3(n,t);r&&(rI(e.shadowRoot)&&(r.isShadow=!0),A.childNodes.push(r))}}return e.parentNode&&rO(e.parentNode)&&rI(e.parentNode)&&(A.isShadow=!0),A.type===I.Element&&"iframe"===A.tagName&&function(e,t,n){let r;let i=e.contentWindow;if(!i)return;let o=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){let r=setTimeout(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(r),o=!0,t()});return}let a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&T){let n=r3(t,{doc:t,mirror:i,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:u,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:g,maskTextFn:b,maskInputFn:_,slimDOMOptions:w,dataURLOptions:E,inlineImages:S,recordCanvas:x,preserveWhiteSpace:N,onSerialize:k,onIframeLoad:T,iframeLoadTimeout:O,onStylesheetLoad:C,stylesheetLoadTimeout:D,keepIframeSrcFn:R});n&&T(e,n)}},O),A.type===I.Element&&"link"===A.tagName&&"stylesheet"===A.attributes.rel&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(e){return}if(r)return;let o=setTimeout(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(o),i=!0,t()})}(e,()=>{if(C){let t=r3(e,{doc:r,mirror:i,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:u,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:g,maskTextFn:b,maskInputFn:_,slimDOMOptions:w,dataURLOptions:E,inlineImages:S,recordCanvas:x,preserveWhiteSpace:N,onSerialize:k,onIframeLoad:T,iframeLoadTimeout:O,onStylesheetLoad:C,stylesheetLoadTimeout:D,keepIframeSrcFn:R});t&&C(e,t)}},D),A}function r5(e){let t;let n=e[0],r=1;for(;r<e.length;){let 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}function r4(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let r6="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.",r7={map:{},getId:()=>(console.error(r6),-1),getNode:()=>(console.error(r6),null),removeNodeFromMap(){console.error(r6)},has:()=>(console.error(r6),!1),reset(){console.error(r6)}};function r9(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),u=this;s<=0||s>t?(r&&(function(...e){iv("clearTimeout")(...e)}(r),r=null),i=a,e.apply(u,o)):r||!1===n.trailing||(r=ig(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(u,o)},s))}}function r8(e,t,n){try{if(!(t in e))return()=>{};let 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()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(r7=new Proxy(r7,{get:(e,t,n)=>("map"===t&&console.error(r6),Reflect.get(e,t,n))}));let ie=Date.now;function it(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:r5([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||r5([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||r5([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:r5([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||r5([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||r5([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function ir(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ii(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function io(e){if(!e)return null;let t=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;return t}function ia(e,t,n,r,i){if(!e)return!1;let o=io(e);if(!o)return!1;let a=r0(t,n);if(!i){let e=r&&o.matches(r);return a(o)&&!e}let s=rZ(o,a),u=-1;return!(s<0)&&(r&&(u=rZ(o,r0(null,r))),s>-1&&u<0||s<u)}function is(e,t){return -2===t.getId(e)}function iu(e){return Boolean(e.changedTouches)}
41function ic(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function il(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function id(e){return Boolean(r5([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(ie=()=>new Date().getTime());class ip{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return(0,rb.h)(this.styleIDMap.get(e),()=>-1)}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function ih(e){let t=null;return r5([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function im(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=ih(n);)n=t;return n}(e);return t.contains(n)}(e))}let iy={};function iv(e){let t=iy[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return iy[e]=r.bind(window)}function ig(...e){return iv("setTimeout")(...e)}var ib=((S=ib||{})[S.DomContentLoaded=0]="DomContentLoaded",S[S.Load=1]="Load",S[S.FullSnapshot=2]="FullSnapshot",S[S.IncrementalSnapshot=3]="IncrementalSnapshot",S[S.Meta=4]="Meta",S[S.Custom=5]="Custom",S[S.Plugin=6]="Plugin",S),i_=((x=i_||{})[x.Mutation=0]="Mutation",x[x.MouseMove=1]="MouseMove",x[x.MouseInteraction=2]="MouseInteraction",x[x.Scroll=3]="Scroll",x[x.ViewportResize=4]="ViewportResize",x[x.Input=5]="Input",x[x.TouchMove=6]="TouchMove",x[x.MediaInteraction=7]="MediaInteraction",x[x.StyleSheetRule=8]="StyleSheetRule",x[x.CanvasMutation=9]="CanvasMutation",x[x.Font=10]="Font",x[x.Log=11]="Log",x[x.Drag=12]="Drag",x[x.StyleDeclaration=13]="StyleDeclaration",x[x.Selection=14]="Selection",x[x.AdoptedStyleSheet=15]="AdoptedStyleSheet",x[x.CustomElement=16]="CustomElement",x),iw=((k=iw||{})[k.MouseUp=0]="MouseUp",k[k.MouseDown=1]="MouseDown",k[k.Click=2]="Click",k[k.ContextMenu=3]="ContextMenu",k[k.DblClick=4]="DblClick",k[k.Focus=5]="Focus",k[k.Blur=6]="Blur",k[k.TouchStart=7]="TouchStart",k[k.TouchMove_Departed=8]="TouchMove_Departed",k[k.TouchEnd=9]="TouchEnd",k[k.TouchCancel=10]="TouchCancel",k),iE=((T=iE||{})[T.Mouse=0]="Mouse",T[T.Pen=1]="Pen",T[T.Touch=2]="Touch",T);class iS{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=function(e){let t;let n=e[0],r=1;for(;r<e.length;){let 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}([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let 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&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let ix=(e,t)=>`${e}@${t}`;class ik{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>
41{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new iS,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!im(i))return;let o=rO(i.parentNode)?this.mirror.getId(ih(i)):this.mirror.getId(i.parentNode),a=r(i);if(-1===o||-1===a)return n.addNode(i);let s=r3(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{ic(e,this.mirror)&&this.iframeManager.addIframe(e),il(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),id(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!iO(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)iI(this.droppedSet,e)||iO(this.removes,e,this.mirror)?iI(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let o=null;for(;n.length;){let e=null;if(o){let t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode),i=r(n.value);if(-1===i)continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host,i=this.mirror.getId(r);if(-1!==i){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),i(e.value)}let a={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!is(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;ia(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:r1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,io(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){let n=rL(t),i=t.tagName;r=rF(t,i,n);let o=rM({maskInputOptions:this.maskInputOptions,tagName:i,type:n}),a=r1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o);r=rN({isMasked:a,element:t,value:r,maskInputFn:this.maskInputFn})}if(ia(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
41,this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!rK(t.tagName,n)&&(i.attributes[n]=rY(this.doc,rj(t.tagName),rj(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement("span");for(let r of(e.oldValue&&n.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(r),o=t.style.getPropertyPriority(r);e!==n.style.getPropertyValue(r)||o!==n.style.getPropertyPriority(r)?""===o?i.styleDiff[r]=e:i.styleDiff[r]=[e,o]:i._unchangedStyles[r]=[e,o]}for(let e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(ia(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=rO(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ia(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||is(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(iT(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(rO(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[ix(n,r)]?iT(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(rO(e.target)&&rI(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(is(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[ix(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!ia(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),id(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function iT(e,t){e.delete(t),t.childNodes.forEach(t=>iT(e,t))}function iO(e,t,n){return 0!==e.length&&function e(t,n,r){let{parentNode:i}=n;if(!i)return!1;let o=r.getId(i);return!!t.some(e=>e.id===o)||e(t,i,r)}(e,t,n)}function iI(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let iC=e=>{if(!g)return e;let t=(...t)=>{try{return e(...t)}catch(e){if(g&&!0===g(e))return()=>{};throw e}};return t};function iD(e){let t;let n=e[0],r=1;for(;r<e.length;){let 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}let iR=[];function iM(e){try{if("composedPath"in e){let 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 iN(e,t){let n=new ik;iR.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=iD([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);i&&window[i]&&(r=window[i]);let o=new r(iC(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function ij({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:a}){let s=iC(r9(iC(a=>{let s=iM(a);if(!s||ia(s,r,i,o,!0))return;let u=n.getId(s);if(s===t&&t.defaultView){let n=it(t.defaultView);e({id:u,x:n.left,y:n.top})}else e({id:u,x:s.scrollLeft,y:s.scrollTop})}),a.scroll||100));return r4("scroll",s,t)}let iA=["INPUT","TEXTAREA","SELECT"],iP=new WeakMap;function iL(e){return function(e,t){if(iz("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||iz("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||iz("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||iz("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules),r=n.indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules),r=n.indexOf(e);t.unshift(r)}return t}(e,[])}
41function iF(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function iq({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);let i="#document"===n.nodeName?iD([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):iD([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=iD([i,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(iD([i,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return iD([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){let n=iD([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),iC(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function iV(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r=iN(e,e.doc),i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){let i;if(!1===t.mousemove)return()=>{};let o="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],u=r9(iC(t=>{let n=Date.now()-i;e(s.map(e=>(e.timeOffset-=n,e)),t),s=[],i=null}),a),c=iC(r9(iC(e=>{let t=iM(e),{clientX:n,clientY:o}=iu(e)?e.changedTouches[0]:e;i||(i=ie()),s.push({x:n,y:o,id:r.getId(t),timeOffset:ie()-i}),u("undefined"!=typeof DragEvent&&e instanceof DragEvent?i_.Drag:e instanceof MouseEvent?i_.MouseMove:i_.TouchMove)}),o,{trailing:!1})),l=[r4("mousemove",c,n),r4("touchmove",c,n),r4("drag",c,n)];return iC(()=>{l.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()=>{};let s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,u=[],c=null,l=t=>a=>{let s=iM(a);if(ia(s,r,i,o,!0))return;let u=null,l=t;if("pointerType"in a){switch(a.pointerType){case"mouse":u=iE.Mouse;break;case"touch":u=iE.Touch;break;case"pen":u=iE.Pen}u===iE.Touch?iw[t]===iw.MouseDown?l="TouchStart":iw[t]===iw.MouseUp&&(l="TouchEnd"):iE.Pen}else iu(a)&&(u=iE.Touch);null!==u?(c=u,(l.startsWith("Touch")&&u===iE.Touch||l.startsWith("Mouse")&&u===iE.Mouse)&&(u=null)):iw[t]===iw.Click&&(u=c,c=null);let d=iu(a)?a.changedTouches[0]:a;if(!d)return;let f=n.getId(s),{clientX:p,clientY:h}=d;iC(e)({type:iw[l],id:f,x:p,y:h,...null!==u&&{pointerType:u}})};return Object.keys(iw).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(e=>{let n=rj(e),r=l(e);if(window.PointerEvent)switch(iw[e]){case iw.MouseDown:case iw.MouseUp:n=n.replace("mouse","pointer");break;case iw.TouchStart:case iw.TouchEnd:return}u.push(r4(n,r,t))}),iC(()=>{u.forEach(e=>e())})}(e),a=ij(e),s=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1,i=iC(r9(iC(()=>{let t=ir(),i=ii();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200));return r4("resize",i,t)}(e,{win:n}),u=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:a,ignoreSelector:s,maskInputOptions:u,maskInputFn:c,sampling:l,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function y(e){let n=iM(e),l=e.isTrusted,y=n&&rA(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||0>iA.indexOf(y)||ia(n,r,i,o,!0))return;let g=n;if(g.classList.contains(a)||s&&g.matches(s))return;let b=rL(n),_=rF(g,y,b),w=!1,E=rM({maskInputOptions:u,tagName:y,type:b}),S=r1(n,f,h,p,m,E);("radio"===b||"checkbox"===b)&&(w=n.checked),_=rN({isMasked:S,element:n,value:_,maskInputFn:c}),v(n,d?{text:_,isChecked:w,userTriggered:l}:{text:_,isChecked:w});let x=n.name;"radio"===b&&x&&w&&t.querySelectorAll(`input[type="radio"][name="${x}"]`).forEach(e=>{if(e!==n){let t=rN({isMasked:S,element:e,value:rF(e,y,b),maskInputFn:c});v(e,d?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}})}function v(t,r){let i=iP.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){iP.set(t,r);let i=n.getId(t);iC(e)({...r,id:i})}}let g="last"===l.input?["change"]:["input","change"],b=g.map(e=>r4(e,iC(y),t)),_=t.defaultView;if(!_)return()=>
41{b.forEach(e=>e())};let w=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),E=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&b.push(...E.map(e=>(function e(t,n,r,i,o=window){let a=o.Object.getOwnPropertyDescriptor(t,n);return o.Object.defineProperty(t,n,i?r:{set(e){ig(()=>{r.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>e(t,n,a||{},!0)})(e[0],e[1],{set(){iC(y)({target:this,isTrusted:!1})}},!1,_))),iC(()=>{b.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:a}){let s=iC(a=>r9(iC(o=>{let s=iM(o);if(!s||ia(s,t,n,r,!0))return;let{currentTime:u,volume:c,muted:l,playbackRate:d}=s;e({type:a,id:i.getId(s),currentTime:u,volume:c,muted:l,playbackRate:d})}),o.media||500)),u=[r4("play",s(0),a),r4("pause",s(1),a),r4("seeked",s(2),a),r4("volumechange",s(3),a),r4("ratechange",s(4),a)];return iC(()=>{u.forEach(e=>e())})}(e),l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){let i,o;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:iC((r,i,o)=>{let[a,s]=o,{id:u,styleId:c}=iF(i,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,adds:[{rule:a,index:s}]}),r.apply(i,o)})});let s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:iC((r,i,o)=>{let[a]=o,{id:s,styleId:u}=iF(i,t,n.styleMirror);return(s&&-1!==s||u&&-1!==u)&&e({id:s,styleId:u,removes:[{index:a}]}),r.apply(i,o)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:iC((r,i,o)=>{let[a]=o,{id:s,styleId:u}=iF(i,t,n.styleMirror);return(s&&-1!==s||u&&-1!==u)&&e({id:s,styleId:u,replace:a}),r.apply(i,o)})})),r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:iC((r,i,o)=>{let[a]=o,{id:s,styleId:u}=iF(i,t,n.styleMirror);return(s&&-1!==s||u&&-1!==u)&&e({id:s,styleId:u,replaceSync:a}),r.apply(i,o)})}));let u={};i$("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(i$("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),i$("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),i$("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));let c={};return Object.entries(u).forEach(([r,i])=>{c[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[r].insertRule,{apply:iC((r,i,o)=>{let[a,s]=o,{id:u,styleId:c}=iF(i.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,adds:[{rule:a,index:[...iL(i),s||0]}]}),r.apply(i,o)})}),i.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:iC((r,i,o)=>{let[a]=o,{id:s,styleId:u}=iF(i.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||u&&-1!==u)&&e({id:s,styleId:u,removes:[{index:[...iL(i),a]}]}),r.apply(i,o)})})}),iC(()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(u).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:n}),d=iq(e,e.doc),f=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:iC((i,a,s)=>{let[u,c,l]=s;if(n.has(u))return o.apply(a,[u,c,l]);let{id:d,styleId:f}=iF(iD([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||f&&-1!==f)&&e({id:d,styleId:f,set:{property:u,value:c,priority:l},index:iL(a.parentRule)}),i.apply(a,s)})});let a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:iC((i,o,s)=>{let[u]=s;if(n.has(u))return a.apply(o,[u]);let{id:c,styleId:l}=iF(iD([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,remove:{property:u},index:iL(o.parentRule)}),i.apply(o,s)})}),iC(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:n}),p=e.collectFonts?function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){let 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};let a=r8(t.fonts,"add",function(t){return function(n){return ig(iC(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=o}),r.push(a),iC(()=>
41{r.forEach(e=>e())})}(e):()=>{},h=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:a}=e,s=!0,u=iC(()=>{let e=t.getSelection();if(!e||s&&iD([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;let u=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let a=e.getRangeAt(t),{startContainer:s,startOffset:c,endContainer:l,endOffset:d}=a,f=ia(s,r,i,o,!0)||ia(l,r,i,o,!0);f||u.push({start:n.getId(s),startOffset:c,end:n.getId(l),endOffset:d})}a({ranges:u})});return u(),r4("selectionchange",u)}(e),m=function({doc:e,customElementCb:t}){let n=e.defaultView;if(!n||!n.customElements)return()=>{};let r=r8(n.customElements,"define",function(e){return function(n,r,i){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,i])}});return r}(e),y=[];for(let t of e.plugins)y.push(t.observer(t.callback,n,t.options));return iC(()=>{iR.forEach(e=>e.reset()),r.disconnect(),i(),o(),a(),s(),u(),c(),l(),d(),f(),p(),h(),m(),y.forEach(e=>e())})}function iz(e){return void 0!==window[e]}function i$(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class iU{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e),a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),o.set(a,t)),a}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
41getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let i=r.get(t);return i||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function iW(e){let t;let n=e[0],r=1;for(;r<e.length;){let 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}class iB{constructor(){this.crossOriginIframeMirror=new iU(rz),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class iQ{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new iU(rz),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new iU(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),iW([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin)return;let t=e.source;if(!t)return;let n=this.crossOriginIframeMap.get(e.source);if(!n)return;let r=this.transformCrossOriginEvent(n,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case ib.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:ib.IncrementalSnapshot,data:{source:i_.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case ib.Meta:case ib.Load:case ib.DomContentLoaded:break;case ib.Plugin:return t;case ib.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case ib.IncrementalSnapshot:switch(t.data.source){case i_.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case i_.Drag:case i_.TouchMove:case i_.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case i_.ViewportResize:return!1;case i_.MediaInteraction:case i_.MouseInteraction:case i_.Scroll:case i_.CanvasMutation:case i_.Input:return this.replaceIds(t.data,e,["id"]),t;case i_.StyleSheetRule:case i_.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case i_.Font:return t;case i_.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case i_.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),iW([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t(t=>{this.replaceStyleIds(t,e,["styleId"])})]),t}}return!1}replace(e,t,n,r){for(let i of r)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
41h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===I.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class iH{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class iG{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!rI(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let n=iN({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(ij({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),ig(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(iq({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(r8(e.prototype,"attachShadow",function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&im(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class iJ{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class iX{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new ip,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:rD(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class iY{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){iv("requestAnimationFrame")(...e)}(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let iK=new rR;function iZ(e={}){let t;let{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:o="rr-block",blockSelector:a=null,unblockSelector:s=null,ignoreClass:u="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:d="rr-mask",unmaskTextClass:f=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:y,maskInputOptions:v,slimDOMOptions:w,maskAttributeFn:E,maskInputFn:S,maskTextFn:x,maxCanvasSize:k=null,packFn:T,sampling:O={},dataURLOptions:I={},mousemoveWait:C,recordCanvas:D=!1,recordCrossOriginIframes:R=!1,recordAfter:M="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:N=!1,collectFonts:j=!1,inlineImages:A=!1,plugins:P,keepIframeSrcFn:L=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:q,onMutation:V,getCanvasManager:z}=e;g=q;let $=!R||window.parent===window,U=!1;if(!$)try{window.parent.document&&(U=!1)}catch(e){U=!0}if($&&!n)throw Error("emit function is required");void 0!==C&&void 0===O.mousemove&&(O.mousemove=C),iK.reset();let W=!0===y?{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!==v?v:{},B=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w}:w||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let Q=0,H=e=>{for(let t of P||[])t.eventProcessor&&(e=t.eventProcessor(e));return T&&!U&&(e=T(e)),e};b=(e,o)=>{let a=e;if(a.timestamp=ie(),(0,rd.x)([iR,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&a.type!==ib.FullSnapshot&&!(a.type===ib.IncrementalSnapshot&&a.data.source===i_.Mutation)&&iR.forEac
41h(e=>e.unfreeze()),$)(0,rd.x)([n,"optionalCall",e=>e(H(a),o)]);else if(U){let e={type:"rrweb",event:H(a),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(a.type===ib.FullSnapshot)t=a,Q=0;else if(a.type===ib.IncrementalSnapshot){if(a.data.source===i_.Mutation&&a.data.isAttachIframe)return;Q++;let e=i&&Q>=i,n=r&&t&&a.timestamp-t.timestamp>r;(e||n)&&er(!0)}};let G=e=>{b({type:ib.IncrementalSnapshot,data:{source:i_.Mutation,...e}})},J=e=>b({type:ib.IncrementalSnapshot,data:{source:i_.Scroll,...e}}),X=e=>b({type:ib.IncrementalSnapshot,data:{source:i_.CanvasMutation,...e}}),Y=e=>b({type:ib.IncrementalSnapshot,data:{source:i_.AdoptedStyleSheet,...e}}),K=new iX({mutationCb:G,adoptedStyleSheetCb:Y}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new iB:new iQ({mirror:iK,mutationCb:G,stylesheetManager:K,recordCrossOriginIframes:R,wrappedEmit:b});for(let e of P||[])e.getMirror&&e.getMirror({nodeMirror:iK,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new iY,et=function(e,t){try{return e?e(t):new iJ}catch(e){return console.warn("Unable to initialize CanvasManager"),new iJ}}(z,{mirror:iK,win:window,mutationCb:e=>b({type:ib.IncrementalSnapshot,data:{source:i_.CanvasMutation,...e}}),recordCanvas:D,blockClass:o,blockSelector:a,unblockSelector:s,maxCanvasSize:k,sampling:O.canvas,dataURLOptions:I,errorHandler:q}),en="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new iH:new iG({mutationCb:G,scrollCb:J,bypassOptions:{onMutation:V,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:l,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:W,dataURLOptions:I,maskAttributeFn:E,maskTextFn:x,maskInputFn:S,recordCanvas:D,inlineImages:A,sampling:O,slimDOMOptions:B,iframeManager:Z,stylesheetManager:K,canvasManager:et,keepIframeSrcFn:L,processedNodeManager:ee},mirror:iK}),er=(e=!1)=>{b({type:ib.Meta,data:{href:window.location.href,width:ii(),height:ir()}},e),K.reset(),en.init(),iR.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new rR,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:u=null,maskTextSelector:c=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:v,slimDOM:g=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:E,iframeLoadTimeout:S,onStylesheetLoad:x,stylesheetLoadTimeout:k,keepIframeSrcFn:T=()=>!1}=t||{};return r3(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:s,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:v,slimDOMOptions:!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===g,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===g?{}:g,dataURLOptions:b,inlineImages:f,recordCanvas:p,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:E,iframeLoadTimeout:S,onStylesheetLoad:x,stylesheetLoadTimeout:k,keepIframeSrcFn:T,newlyAddedElement:!1})}(document,{mirror:iK,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:l,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:W,maskAttributeFn:E,maskInputFn:S,maskTextFn:x,slimDOM:B,dataURLOptions:I,recordCanvas:D,inlineImages:A,onSerialize:e=>{ic(e,iK)&&Z.addIframe(e),il(e,iK)&&K.trackLinkElement(e),id(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:L});if(!t)return console.warn("Failed to snapshot the document");b({type:ib.FullSnapshot,data:{node:t,initialOffset:it(window)}}
41),iR.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,iK.getId(document))};_=er;try{let e=[],t=e=>iC(iV)({onMutation:V,mutationCb:G,mousemoveCb:(e,t)=>b({type:ib.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>b({type:ib.IncrementalSnapshot,data:{source:i_.MouseInteraction,...e}}),scrollCb:J,viewportResizeCb:e=>b({type:ib.IncrementalSnapshot,data:{source:i_.ViewportResize,...e}}),inputCb:e=>b({type:ib.IncrementalSnapshot,data:{source:i_.Input,...e}}),mediaInteractionCb:e=>b({type:ib.IncrementalSnapshot,data:{source:i_.MediaInteraction,...e}}),styleSheetRuleCb:e=>b({type:ib.IncrementalSnapshot,data:{source:i_.StyleSheetRule,...e}}),styleDeclarationCb:e=>b({type:ib.IncrementalSnapshot,data:{source:i_.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>b({type:ib.IncrementalSnapshot,data:{source:i_.Font,...e}}),selectionCb:e=>{b({type:ib.IncrementalSnapshot,data:{source:i_.Selection,...e}})},customElementCb:e=>{b({type:ib.IncrementalSnapshot,data:{source:i_.CustomElement,...e}})},blockClass:o,ignoreClass:u,ignoreSelector:c,maskAllText:l,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:W,inlineStylesheet:m,sampling:O,recordCanvas:D,inlineImages:A,userTriggeredOnInput:N,collectFonts:j,doc:e,maskAttributeFn:E,maskInputFn:S,maskTextFn:x,keepIframeSrcFn:L,blockSelector:a,unblockSelector:s,slimDOMOptions:B,dataURLOptions:I,mirror:iK,iframeManager:Z,stylesheetManager:K,shadowDomManager:en,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:F,plugins:(0,rd.x)([P,"optionalAccess",e=>e.filter,"call",e=>e(e=>e.observer),"optionalAccess",e=>e.map,"call",e=>e(e=>({observer:e.observer,options:e.options,callback:t=>b({type:ib.Plugin,data:{plugin:e.name,payload:t}})}))])||[]},{});Z.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{er(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(r4("DOMContentLoaded",()=>{b({type:ib.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&n()})),e.push(r4("load",()=>{b({type:ib.Load,data:{}}),"load"===M&&n()},window))),()=>{e.forEach(e=>e()),ee.destroy(),_=void 0,g=void 0}}catch(e){console.warn(e)}}function i0(e){return e>9999999999?e:1e3*e}function i1(e){return e>9999999999?e/1e3:e}function i2(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:ib.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,eg.Fv)(t,10,1e3)}}),"console"===t.category)))}function i3(e){let t=e.closest("button,a");return t||e}function i5(e){let t=i4(e);return t&&t instanceof Element?i3(t):t}function i4(e){return"object"==typeof e&&e&&"target"in e?e.target:e}iZ.mirror=iK,iZ.takeFullSnapshot=function(e){if(!_)throw Error("please take full snapshot after start recording");_(e)};class i6{constructor(e,t,n=i2){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){var e;let t=(e=()=>{this._lastMutation=i9()},w||(w=[],(0,B.hl)(rS,"open",function(e){return function(...t){if(w)try{w.forEach(e=>e())}catch(e){}return e.apply(rS,t)}})),w.push(e),()=>{let t=w?w.indexOf(e):-1;t>-1&&w.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n;if(n=this._ignoreSelector,!i7.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||n&&t.matches(n)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let r={timestamp:i1(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===r.node&&1>
41Math.abs(e.timestamp-r.timestamp))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=i1(e)}registerScroll(e=Date.now()){this._lastScroll=i1(e)}registerClick(e){let t=i3(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=i9();for(let n of(this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:o}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:rS.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,a);return}if(i>1){let e={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:rS.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=tI(()=>this._checkClicks(),1e3)}}let i7=["A","BUTTON","INPUT"];function i9(){return Date.now()/1e3}function i8(e){return{timestamp:Date.now()/1e3,type:"default",...e}}(O=C||(C={}))[O.Document=0]="Document",O[O.DocumentType=1]="DocumentType",O[O.Element=2]="Element",O[O.Text=3]="Text",O[O.CDATA=4]="CDATA",O[O.Comment=5]="Comment";let oe=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),ot=e=>t=>{if(!e.isEnabled())return;let n=function(e){let{target:t,message:n}=function(e){let t;let n="click"===e.name,r=null;try{r=n?i5(e.event):i4(e.event),t=(0,e5.Rt)(r,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:r,message:t}}(e);return i8({category:`ui.${e.name}`,...on(t,n)})}(t);if(!n)return;let r="click"===t.name,i=r?t.event:void 0;r&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,i5(t.event)),i2(e,n)};function on(e,t){let n=iZ.mirror.getId(e),r=n&&iZ.mirror.getNode(n),i=r&&iZ.mirror.getMeta(r),o=i&&i.type===C.Element?i:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>e.type===C.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(oe.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(o.attributes)}}:{}}}let or={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:a,encodedBodySize:s,responseStatus:u,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:oa(o),end:oa(i),name:r,data:{size:c,statusCode:u,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:i}=e,o=oa(i);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:l,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:oa(p),end:oa(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:a,duration:i,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:d,domComplete:o,redirectCount:f}}}};function oi(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function oo(e){return or[e.entryType]?or[e.entryType](e):null}function oa(e){return((eA.Z1||rS.performance.timeOrigin)+e)/1e3}function os(e){let t=e.entries[e.entries.length-1],n=t?t.element:void 0;return od(e,"largest-contentful-paint",n)}function ou(e){let t=e.entries[0],n=t&&t.sources?t.sources[0].node:void 0;return od(e,"cumulative-layout-shift",n)}function oc(e){let t=e.entries[e.entries.length-1],n=t?t.target:void 0;return od(e,"first-input-delay",n)}function ol(e){let t=e.entries[e.entries.length-1],n=t?t.target:void 0;return od(e,"interaction-to-next-paint",n)}
41function od(e,t,n){let r=e.value,i=e.rating,o=oa(r),a={type:"web-vital",name:t,start:o,end:o,data:{value:r,size:r,rating:i,nodeId:n?iZ.mirror.getId(n):void 0}};return a}class of extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class op{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new of;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?i0(e):null}}class oh{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(){this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let o=({data:t})=>{if(t.method===e&&t.id===n){if(this._worker.removeEventListener("message",o),!t.success){i(Error("Error in compression worker"));return}r(t.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class om{constructor(e){this._worker=new oh(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=i0(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new of):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class oy{constructor(e){this._fallback=new op,this._compression=new om(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){}}}function ov(){try{return"sessionStorage"in rS&&!!rS.sessionStorage}catch(e){return!1}}function og(e){return void 0!==e&&Math.random()<e}function ob(e){let t=Date.now(),n=e.id||(0,P.DM)(),r=e.started||t,i=e.lastActivity||t,o=e.segmentId||0,a=e.sampled,s=e.previousSessionId;return{id:n,started:r,lastActivity:i,segmentId:o,sampled:a,previousSessionId:s}}function o_(e){if(ov())try{rS.sessionStorage.setItem(rx,JSON.stringify(e))}catch(e){}}function ow({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=og(e)?"session":!!t&&"buffer",o=ob({sampled:i,previousSessionId:r});return n&&o_(o),o}function oE(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function oS(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return oE(e.started,t,r)||oE(e.lastActivity,n,r)}function ox(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!oS(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function ok({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},i){let o=i.stickySession&&function(e){if(!ov())return null;try{let e=rS.sessionStorage.getItem(rx);if(!e)return null;let t=JSON.parse(e);return ob(t)}
41catch(e){return null}}(0);return o?ox(o,{sessionIdleExpire:t,maxReplayDuration:n})?ow(i,{previousSessionId:o.id}):o:ow(i,{previousSessionId:r})}function oT(e,t,n){return!!oI(e,t)&&(oO(e,t,n),!0)}async function oO(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);let r=e.getOptions(),i=function(e,t){try{if("function"==typeof t&&e.type===ib.Custom)return t(e)}catch(e){return null}return e}(t,r.beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(n){await e.stop({reason:n&&n instanceof of?"addEventSizeExceeded":"addEvent"});let t=(0,N.s3)();t&&t.recordDroppedEvent("internal_sdk_error","replay")}}function oI(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=i0(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(e.getOptions()._experiments.traceInternals,!1))}function oC(e){return"transaction"===e.type}function oD(e){return"feedback"===e.type}function oR(e){return!!e.category}function oM(e,t){return t.map(({type:t,start:n,end:r,name:i,data:o})=>{let a=e.throttledAddEvent({type:ib.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 oN(e,t){e.isEnabled()&&null!==t&&!function(e,t){let n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return!!n&&e.includes(n.host)||!!r&&r_(e)===r_(r)}(t.name,(0,N.s3)())&&e.addUpdate(()=>(oM(e,[t]),!0))}function oj(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=o$(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function oA(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function oP(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[o$(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function oL(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function oF(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:a,request:s,response:u}=t,c={type:e,start:n/1e3,end:r/1e3,name:i,data:(0,B.Jr)({method:o,statusCode:a,request:s,response:u})};return c}function oq(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function oV(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,n=function(e){let t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){let t=e.slice(0,15e4);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{let t=JSON.parse(e);return{body:t}}catch(e){}return{body:e}}(n);return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}function oz(e,t){return Object.keys(e).reduce((n,r)=>{let i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=e[r]),n},{})}function o$(e){return new URLSearchParams(e).toString()}function oU(e,t){let n=function(e,t=rS.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(rS.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return(0,L.U0)(n,t)}async function oW(e,t,n){try{let r=await oB(e,t,n),i=oF("resource.fetch",r);oN(n.replay,i)}catch(e){}}async function oB(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=t,{url:a,method:s,status_code:u=0,request_body_size:c,response_body_size:l}=e.data,d=oU(a,n.networkDetailAllowUrls)&&!oU(a,n.networkDetailDenyUrls),f=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?1===n.length&&"string"!=typeof n[0]?oX(n[0],t):2===n.length?oX(n[1],t):{}:{};if(!e)return oV(i,r,void 0);let o=oG(n),[a,s]=oP(o),u=oV(i,r,a);return s?oL(u,s):u}(n,t.input,c):oq(c),p=await oQ(d,n,t.response,l);return{startTimestamp:i,endTimestamp:o,url:a,method:s,statusCode:u,request:f,response:p}}async function oQ(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&void 0!==i)return oq(i);let o=r?oJ(r.headers,n):{};if(!r||!t&&void 0!==i)return oV(o,i,void 0);let[a,s]=await oH(r),u=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let o=e&&e.length&&void 0===n?oj(e):n;if(!r)return oq(o);if(t)return oV(i,o,e);return oV(i,o,void 0)}catch(e){return oV(i,n,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});return s?oL(u,s):u}async function oH(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];
41try{let e=await new Promise((e,n)=>{let r=tI(()=>n(Error("Timeout while trying to read response body")),500);oY(t).then(t=>e(t),e=>n(e)).finally(()=>clearTimeout(r))});return[e]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}}function oG(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function oJ(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function oX(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?oJ(n,t):Array.isArray(n)?{}:oz(n,t):{}}async function oY(e){return await e.text()}async function oK(e,t,n){try{let r=function(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:a,xhr:s}=t,{url:u,method:c,status_code:l=0,request_body_size:d,response_body_size:f}=e.data;if(!u)return null;if(!s||!oU(u,n.networkDetailAllowUrls)||oU(u,n.networkDetailDenyUrls)){let e=oq(d),t=oq(f);return{startTimestamp:i,endTimestamp:o,url:u,method:c,statusCode:l,request:e,response:t}}let p=s[eJ],h=p?oz(p.request_headers,n.networkRequestHeaders):{},m=oz(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e},{}):{}}(s),n.networkResponseHeaders),[y,v]=n.networkCaptureBodies?oP(a):[void 0],[g,b]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return[void 0]}(s):[void 0],_=oV(h,d,y),w=oV(m,f,g);return{startTimestamp:i,endTimestamp:o,url:u,method:c,statusCode:l,request:v?oL(_,v):_,response:b?oL(w,b):w}}(e,t,n),i=oF("resource.xhr",r);oN(n.replay,i)}catch(e){}}async function oZ(e){try{return Promise.all(oM(e,[function(e){let{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}}}}(rS.performance.memory)]))}catch(e){return[]}}async function o0({client:e,scope:t,replayId:n,event:r}){let i="object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations),o={event_id:n,integrations:i};e.emit("preprocessEvent",r,o);let a=await (0,eD.R)(e.getOptions(),r,o,t,e,(0,N.aF)());if(!a)return null;a.platform=a.platform||"javascript";let s=e.getSdkMetadata(),{name:u,version:c}=s&&s.sdk||{};return a.sdk={...a.sdk,name:u||"sentry.javascript.unknown",version:c||"0.0.0"},a}async function o1({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){var a;let s;let u=function({recordingData:e,headers:t}){let n;let r=`${JSON.stringify(t)}
42`;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder,i=t.encode(r);(n=new Uint8Array(i.length+e.length)).set(i),n.set(e,i.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:l,traceIds:d,initialTimestamp:f}=r,p=(0,N.s3)(),h=(0,N.nZ)(),m=p&&p.getTransport(),y=p&&p.getDsn();if(!p||!m||!y||!o.sampled)return(0,ev.WD)({});let v={type:"replay_event",replay_start_timestamp:f/1e3,timestamp:i/1e3,error_ids:l,trace_ids:d,urls:c,replay_id:t,segment_id:n,replay_type:o.sampled},g=await o0({scope:h,client:p,replayId:t,event:v});if(!g)return p.recordDroppedEvent("event_processor","replay",v),(0,ev.WD)({});delete g.sdkProcessingMetadata;let b=(a=p.getOptions().tunnel,eb(ex(g,eS(g),a,y),[[{type:"replay_event"},g],[{type:"replay_recording",length:"string"==typeof u?new TextEncoder().encode(u).length:u.length},u]]));try{s=await m.send(b)}catch(t){let e=Error(rk);try{e.cause=t}catch(e){}throw e}if("number"==typeof s.statusCode&&(s.statusCode<200||s.statusCode>=300))throw new o2(s.statusCode);let _=tD({},s);if(tC(_,"replay"))throw new o3(_);return s}class o2 extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class o3 extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function o5(e,t={count:0,interval:5e3}){let{recordingData:n,options:r}=e;if(n.length)try{return await o1(e),!0}catch(n){if(n instanceof o2||n instanceof o3)throw n;if((0,M.v)("Replays",{_retryCount:t.count}),t.count>=3){let e=Error(`${rk} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise((n,r)=>{tI(async()=>{try{await o5(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let o4="__THROTTLED";class o6{constructor({options:e,recordingOptions:t}){o6.prototype.__init.call(this),o6.prototype.__init2.call(this),o6.prototype.__init3.call(this),o6.prototype.__init4.call(this),o6.prototype.__init5.call(this),o6.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,i,o;let a=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return u(),r=e()}function u(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function c(){return i&&clearTimeout(i),i=tI(s,t),a&&void 0===o&&(o=tI(s,a)),r}return c.cancel=u,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,t,n){let r=new Map,i=e=>{let t=e-5;r.forEach((e,n)=>{n<t&&r.delete(n)})},o=()=>[...r.values()].reduce((e,t)=>
42e+t,0),a=!1;return(...t)=>{let n=Math.floor(Date.now()/1e3);if(i(n),o()>=300){let e=a;return a=!0,e?"__SKIPPED":o4}a=!1;let s=r.get(n)||0;return r.set(n,s+1),e(...t)}}((e,t)=>oI(this,e)?oO(this,e,t):Promise.resolve(null),0,0);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new i6(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){this._handleException(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this.recordingMode,this._options._experiments.traceInternals,this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)throw Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw Error("Replay buffering is in progress, call `flush()` to save the replay");this._options._experiments.traceInternals,this._updateUserActivity();let e=ok({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw Error("Replay recording is already in progress");this._options._experiments.traceInternals;let e=ok({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t;let n=this._canvas;this._stopRecording=iZ({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession())return;let i=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(3!==t.type)return;let{source:n}=t.data;if(n===i_.Mutation&&e.registerMutation(t.timestamp),n===i_.Scroll&&e.registerScroll(t.timestamp),t.data.source===i_.MouseInteraction){let{type:n,id:r}=t.data,i=iZ.mirror.getNode(r);i instanceof HTMLElement&&n===iw.Click&&e.registerClick(i)}}catch(e){}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!oT(e,n,i))return!0;if(!i)return!1;if(i&&e.session&&0===e.session.segmentId&&oT(e,function(e){let t=e.getOptions();return{type:ib.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){let t=e.eventBuffer.getEarliestTimestamp();t&&(e.getOptions()._experiments.traceInternals,e.session.started=t,e.getOptions().stickySession&&o_(e.session))}return"session"===e.recordingMode&&e.flush(),!0})}),onMutation:this._onMutationHandler,...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{var n;this._options._experiments.traceInternals,this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,n=this,function(){if(ov())try{rS.sessionStorage.removeItem(rx)}catch(e){}}(),n.session=void 0}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),this._options._experiments.traceInternals)}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),this._options._experiments.traceInternals)}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();this._options._experiments.traceInternals,await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}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}
42checkAndHandleExpiredSession(){if(this._lastActivity&&oE(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${rS.location.pathname}${rS.location.hash}${rS.location.search}`,t=`${rS.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===o4){let e=i8({category:"replay.throttled"});this.addUpdate(()=>!oT(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||(0,eO.HN)(),t=e&&(0,eO.Gx)(e),n=t&&(0,eO.XU)(t).data||{},r=n[tL.Zj];if(t&&r&&["route","custom"].includes(r))return(0,eO.XU)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){let e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,591 bytes, line 42
42,M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
42++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(J)return J.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;let n=new Worker(t);return new oy(n)}catch(e){}}(t);if(e)return e}return new op}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=ok({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!ox(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{rS.document.addEventListener("visibilitychange",this._handleVisibilityChange),rS.addEventListener("blur",this._handleWindowBlur),rS.addEventListener("focus",this._handleWindowFocus),rS.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){let t=(0,N.s3)();eQ(ot(e)),el(t=>{if(!e.isEnabled())return;let n=function(e){let{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(()=>(oM(e,[n]),!1)))}),function(e){let t=(0,N.s3)();t&&t.on("beforeAddBreadcrumb",t=>
42(function(e,t){if(!e.isEnabled()||!oR(t))return;let n=!oR(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return i8(e);let n=!1,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{let t=(0,eg.Fv)(e,7),r=JSON.stringify(t);if(r.length>5e3)return n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch(e){}return e});return i8({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):i8(t);n&&i2(e,n)})(e,t))}(e),function(e){let t=(0,N.s3)();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a};t&&t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,i;"xhr"===t.category&&(r=n)&&r.xhr&&(function(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=oj(r),o=n.getResponseHeader("content-length")?oA(n.getResponseHeader("content-length")):function(e,t){try{let n="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return oj(n)}catch(e){return}}(n.response,n.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,n),oK(t,n,e)),"fetch"===t.category&&(i=n)&&i.response&&(function(e,t){let{input:n,response:r}=t,i=n?oG(n):void 0,o=oj(i),a=r?oA(r.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),oW(t,n,e))}catch(e){}})(s,e,t))}catch(e){}}(e);let n=Object.assign((t,n)=>{if(!e.isEnabled())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!oC(t)&&!oD(t))return t;let r=e.checkAndHandleExpiredSession();if(!r)return t;if(oD(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:ib.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&n.originalException&&n.originalException.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return null;let i="buffer"===e.recordingMode&&t.message!==rk&&!!t.exception&&!t.type&&og(e.getOptions().errorSampleRate),o=i||"session"===e.recordingMode;return o&&(t.tags={...t.tags,replayId:e.getSessionId()}),t},{id:"Replay"});(0,M.Qy)(n),t&&(t.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){let t=i8({category:"replay.hydrate-error"});i2(e,t)}}(e,t)}),t.on("afterSendEvent",(t,n)=>{if(!e.isEnabled()||t.type&&!oC(t))return;let r=n&&n.statusCode;if(r&&!(r<200)&&!(r>=300)){if(oC(t)){(function(e,t){let n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)})(e,t);return}(function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&tI(()=>{e.sendBufferedReplayOrFlush()})})(e,t)}}),t.on("createDsc",t=>{let n=e.getSessionId();if(n&&e.isEnabled()&&"session"===e.recordingMode){let r=e.checkAndHandleExpiredSession();r&&(t.replay_id=n)}}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",(t,n)=>{let r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];
42return["navigation","paint","resource"].forEach(e=>{r.push(nj(e,n))}),r.push(nR(oi(os,e)),nD(oi(ou,e)),nM(oi(oc,e)),nN(oi(ol,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{rS.document.removeEventListener("visibilitychange",this._handleVisibilityChange),rS.removeEventListener("blur",this._handleWindowBlur),rS.removeEventListener("focus",this._handleWindowFocus),rS.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===rS.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=i8({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=i8({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:o,key:a,target:s}=e;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!a)return null;let u=1===a.length;if(!(n||i||o)&&u)return null;let c=(0,e5.Rt)(s,{maxStringLength:200})||"<unknown>",l=on(s,c);return i8({category:"ui.keyDown",message:c,data:{...l.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:o,key:a}})}(t);n&&i2(e,n)}(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;let t=oS(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire});t||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;let t=this.checkAndHandleExpiredSession();t&&e&&this._createCustomBreadcrumb(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:ib.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(oo).filter(Boolean).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(oM(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}
42_popEventContext(){let 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(){let e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents)&&(await oZ(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await o5({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(t){this._handleException(t),this.stop({reason:"sendReplay"});let e=(0,N.s3)();e&&e.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,n=Date.now(),r=n-t;this._debouncedFlush.cancel();let i=r<this._options.minReplayDuration,o=r>this._options.maxReplayDuration+5e3;if(i||o){this._options._experiments.traceInternals,i&&this._debouncedFlush();return}let a=this.eventBuffer;if(a&&0===this.session.segmentId&&!a.hasCheckout&&this._options._experiments.traceInternals,!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(e){}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&o_(this.session)}__init6(){this._onMutationHandler=e=>{let t=e.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,i=n&&t>n;if(t>r||i){let e=i8({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function o7(e,t){return[...e,...t].join(",")}let o9='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',o8=["content-length","content-type","accept"],ae=!1;class at{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:s={},maskAllText:u=!0,maskAllInputs:c=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:y=[],networkCaptureBodies:v=!0,networkRequestHeaders:g=[],networkResponseHeaders:b=[],mask:_=[],maskAttributes:w=["title","placeholder"],unmask:E=[],block:S=[],unblock:x=[],ignore:k=[],maskFn:T,beforeAddRecordingEvent:O,beforeErrorSampling:I}={}){this.name=at.id;let C=function({mask:e,unmask:t,block:n,unblock:r,ignore:i}){let o=o7(e,[".sentry-mask","[data-sentry-mask]"]),a=o7(t,[]),s={maskTextSelector:o,unmaskTextSelector:a,blockSelector:o7(n,[".sentry-block","[data-sentry-block]",'base[href="/"]']),unblockSelector:o7(r,[]),ignoreSelector:o7(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])};return s}({mask:_,unmask:E,block:S,unblock:x,ignore:k});if(this._recordingOptions={maskAllInputs:c,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:T,maskInputFn:T,maskAttributeFn:(e,t,n)=>(function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o})({maskAttributes:w,maskAllText:u,privacyOptions:C,key:e,value:t,el:n}),...C,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,3
426e5),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:l,maskAllInputs:c,maskAllText:u,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:y,networkCaptureBodies:v,networkRequestHeaders:an(g),networkResponseHeaders:an(b),beforeAddRecordingEvent:O,beforeErrorSampling:I,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${o9}`:o9),this._isInitialized&&rE())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ae}set _isInitialized(e){ae=e}setupOnce(){rE()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){let e=function(e){let t=(0,N.s3)(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...(0,B.Jr)(e)};if(!n)return(0,A.Cf)(()=>{console.warn("SDK client is not available.")}),r;let i=eC(n.replaysSessionSampleRate),o=eC(n.replaysOnErrorSampleRate);return null==i&&null==o&&(0,A.Cf)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(r.sessionSampleRate=i),null!=o&&(r.errorSampleRate=o),r}(this._initialOptions);this._replay=new o6({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{let e=(0,N.s3)(),t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}function an(e){return[...o8,...e.map(e=>e.toLowerCase())]}at.__initStatic();var ar=window;ar.__sentryRewritesTunnelPath__=void 0,ar.SENTRY_RELEASE={id:"71e7cd4a1348abb4d63e5f05e5f618855cda03a5"},ar.__sentryBasePath=void 0,ar.__rewriteFramesAssetPrefixPath__="",function(e){let t={environment:function(e){let t=e?"production":tj.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=tN(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&j(e)&&t.push(function(e={}){let t=ri({...e,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){r&&function(e){let t=!e$.document.getElementById("__NEXT_DATA__");t?e0(t=>{if(void 0!==t.endTimestamp||"GET"!==t.fetchData.method)return;let n=function(e){if(!e[0]||"object"!=typeof e[0]||void 0===e[0].searchParams||!e[1]||"object"!=typeof e[1]||!("headers"in e[1]))return null;try{let t=e[0],n=e[1].headers;if("1"!==n.RSC||"1"===n["Next-Router-Prefetch"])return null;return{targetPathname:t.pathname}}catch(e){return null}}(t.args);if(null===n)return;let r=n.targetPathname;ra(e,{name:r,attributes:{[tL.$J]:"navigation",[tL.S3]:"auto.navigation.nextjs.app_router_instrumentation",[tL.Zj]:"url"}})}):rl.events.on("routeChangeStart",t=>{let n,r;let i=t.split(/[\?#]/,1)[0],o=function(e){let t=(e$.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";t[t.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(i);o?(n=o,r="route"):(n=i,r="url"),ra(e,{name:n,attributes:{[tL.$J]:"navigation",[tL.S3]:"auto.navigation.nextjs.pages_router_instrumentation",[tL.Zj]:r}})})}(e),t.afterAllSetup(e),n&&function(e){let t=!e$.document.getElementById("__NEXT_DATA__");t?ro(e,{name:e$.location.pathname,startTime:eA.Z1?eA.Z1/1e3:void 0,attributes:{[tL.$J]:"pageload",[tL.S3]:"auto.pageload.nextjs.app_router_instrumentation",[tL.Zj]:"url"}}):function(e){let{route:t,params:n,sentryTrace:r,baggage:i}=function(){let e;let t=e$.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){rc.X&&A.kg.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:i,props:o}=e;return n.route=r,n.params=i,o&&o.pageProps&&(n.sentryTrace=o.pageProps._sentryTraceData,n.baggage=o.pageProps._sentryBaggage),n}(),o=t||e$.location.pathname;ro(e,{name:o,startTime:eA.Z1?eA.Z1/1e3:void 0,attributes:{[tL.$J]:"pageload",[tL.S3]:"auto.pageload.nextjs.pages_router_instrumentation",[tL.Zj]:t?"route":"url",...n&&e.getOptions().sendDefaultPii&&{...n}}},{sentryTrace:r,baggage:i})}(e)}(e)}}}());let n=rg.__rewriteFramesAssetPrefixPath__||"";return t.push(ry({assetPrefixPath:n})),t}(e),...e};(function(e){let t=rv.__sentryRewritesTunnelPath__;if(t&&e.dsn){let n=eh(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],o=r[2],a=`${t}?o=${i}&p=${n.projectId}`;o&&(a+=`&r=${o}`),e.tunnel=a,rc.X&&A.kg.info(`Tunneling events to "${a}"`)}else rc.X&&A.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}})(t),R(t,"nextjs",["nextjs","react"]),function(e){let t={...e};R(t,"react"),function(e={}){let t=function(e={}){let t={defaultIntegrations:tN(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:e$.
42SENTRY_RELEASE&&e$.SENTRY_RELEASE.id?e$.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return{...t,...e}}(e);if(function(){let e=e$.chrome?"chrome":"browser",t=e$[e],n=t&&t.runtime&&t.runtime.id,r=e$.location&&e$.location.href||"",i=!!n&&e$===e$.top&&["chrome-extension:","moz-extension:","ms-browser-extension:"].some(e=>r.startsWith(`${e}//`));return!!n&&!i}()){(0,A.Cf)(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}let n={...t,stackParser:(0,G.Sq)(t.stackParser||tx),integrations:function(e){let t;let n=e.defaultIntegrations||[],r=e.integrations;n.forEach(e=>{e.isDefaultInstance=!0}),t=Array.isArray(r)?[...n,...r]:"function"==typeof r?(0,P.lE)(r(n)):n;let i=function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}(t),o=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return -1}(i,e=>"Debug"===e.name);if(-1!==o){let[e]=i.splice(o,1);i.push(e)}return i}(t),transport:t.transport||tM};(function(e,t){!0===t.debug&&(F.X?A.kg.enable():(0,A.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));let n=(0,N.nZ)();n.update(t.initialScope);let r=new e(t);(0,N.nZ)().setClient(r),r.init()})(eB,n),t.autoSessionTracking&&void 0!==e$.document&&((0,M.yj)({ignoreDuration:!0}),(0,M.cg)(),el(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,M.yj)({ignoreDuration:!0}),(0,M.cg)())}))}(t)}(t),(0,M.YA)("runtime","browser");let n=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;n.id="NextClient404Filter",(0,M.Qy)(n)}({dsn:"https://1d7c6d5022b43cf85cf1d496282d76ff@o4507424714719232.ingest.de.sentry.io/4507424718585936",tracesSampleRate:1,debug:!1,replaysOnErrorSampleRate:1,replaysSessionSampleRate:.1,integrations:[new at({maskAllText:!0,blockAllMedia:!0})]})},50186:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clientHookInServerComponentError=function(e){},(0,n(92648).Z)(n(67294)),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91874:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSearchParams=function(){a.clientHookInServerComponentError("useSearchParams");let e=r.useContext(o.SearchParamsContext),t=r.useMemo(()=>e?new f(e):null,[e]);return t},t.usePathname=function(){return a.clientHookInServerComponentError("usePathname"),r.useContext(o.PathnameContext)},Object.defineProperty(t,"ServerInsertedHTMLContext",{enumerable:!0,get:function(){return s.ServerInsertedHTMLContext}}),Object.defineProperty(t,"useServerInsertedHTML",{enumerable:!0,get:function(){return s.useServerInsertedHTML}}),t.useRouter=function(){a.clientHookInServerComponentError("useRouter");let e=r.useContext(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e},t.useSelectedLayoutSegments=p,t.useSelectedLayoutSegment=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"children";a.clientHookInServerComponentError("useSelectedLayoutSegment");let t=p(e);return 0===t.length?null:t[0]},Object.defineProperty(t,"redirect",{enumerable:!0,get:function(){return u.redirect}}),Object.defineProperty(t,"notFound",{enumerable:!0,get:function(){return c.notFound}});var r=n(67294),i=n(21018),o=n(89334),a=n(50186),s=n(89174),u=n(72609),c=n(8930);let l=Symbol("internal for urlsearchparams readonly");function d(){return Error("ReadonlyURLSearchParams cannot be modified")}class f{[Symbol.iterator](){return this[l][Symbol.iterator]()}append(){throw d()}delete(){throw d()}set(){throw d()}sort(){throw d()}constructor(e){this[l]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e)}}function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"children";a.clientHookInServerComponentError("useSelectedLayoutSegments");let{tree:t}=r.useContext(i.LayoutRouterContext);return function e(t,n){let r,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(i)r=t[1][n];else{var a;let e=t[1];r=null!=(a=e.children)?a:Object.values(e)[0]}if(!r)return o;let s=r[0],u=Array.isArray(s)?s[1]:s;return u?(o.push(u),e(r,n,!1,o)):o}(t,e)}t.ReadonlyURLSearchParams=f,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
42dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8930:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notFound=function(){let e=Error(n);throw e.digest=n,e},t.isNotFoundError=function(e){return(null==e?void 0:e.digest)===n};let n="NEXT_NOT_FOUND";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72609:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.redirect=function(e){let t=Error(n);throw t.digest="".concat(n,";").concat(e),t},t.isRedirectError=r,t.getURLFromRedirectError=function(e){return r(e)?e.digest.slice(n.length+1):null};let n="NEXT_REDIRECT";function r(e){return"string"==typeof(null==e?void 0:e.digest)&&e.digest.startsWith(n+";")&&e.digest.length>n.length+1}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71210:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,n,r){return!1},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28045:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(6495).Z,i=n(92648).Z,o=n(91598).Z,a=n(17273).Z,s=o(n(67294)),u=i(n(5443)),c=n(42730),l=n(99309),d=n(59977);n(35086);var f=i(n(61479));let p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function h(e){return void 0!==e.default}function m(e){return"number"==typeof e||void 0===e?e:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function y(e,t,n,i,o,a,s){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let u="decode"in e?e.decode():Promise.resolve();u.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===n&&a(!0),null==i?void 0:i.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;i.current(r({},t,{nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}}))}(null==o?void 0:o.current)&&o.current(e)}})}let v=s.forwardRef((e,t)=>{var{imgAttributes:n,heightInt:i,widthInt:o,qualityInt:u,className:c,imgStyle:l,blurStyle:d,isLazy:f,fill:p,placeholder:h,loading:m,srcString:v,config:g,unoptimized:b,loader:_,onLoadRef:w,onLoadingCompleteRef:E,setBlurComplete:S,setShowAltText:x,onLoad:k,onError:T}=e,O=a(e,["imgAttributes","heightInt","widthInt","qualityInt","className","imgStyle","blurStyle","isLazy","fill","placeholder","loading","srcString","config","unoptimized","loader","onLoadRef","onLoadingCompleteRef","setBlurComplete","setShowAltText","onLoad","onError"]);return m=f?"lazy":m,s.default.createElement(s.default.Fragment,null,s.default.createElement("img",Object.assign({},O,{loading:m,width:o,height:i,decoding:"async","data-nimg":p?"fill":"1",className:c,style:r({},l,d)},n,{ref:s.useCallback(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(T&&(e.src=e.src),e.complete&&y(e,v,h,w,E,S,b))},[v,h,w,E,S,T,b,t]),onLoad:e=>{let t=e.currentTarget;y(t,v,h,w,E,S,b)},onError:e=>{x(!0),"blur"===h&&S(!0),T&&T(e)}})))}),g=s.forwardRef((e,t)=>{let n,i;var o,{src:y,sizes:g,unoptimized:b=!1,priority:_=!1,loading:w,className:E,quality:S,width:x,height:k,fill:T,style:O,onLoad:I,onLoadingComplete:C,placeholder:D="empty",blurDataURL:R,layout:M,objectFit:N,objectPosition:j,lazyBoundary:A,lazyRoot:P}=e,L=a(e,["src","sizes","unoptimized","priority","loading","className","quality","width","height","fill","style","onLoad","onLoadingComplete","placeholder","blurDataURL","layout","objectFit","objectPosition","lazyBoundary","lazyRoot"]);let F=s.useContext(d.ImageConfigContext),q=s.useMemo(()=>{let e=p||F||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>
42e-t),n=e.deviceSizes.sort((e,t)=>e-t);return r({},e,{allSizes:t,deviceSizes:n})},[F]),V=L,z=V.loader||f.default;delete V.loader;let $="__next_img_default"in z;if($){if("custom"===q.loader)throw Error('Image with src "'.concat(y,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}else{let e=z;z=t=>{let{config:n}=t,r=a(t,["config"]);return e(r)}}if(M){"fill"===M&&(T=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[M];e&&(O=r({},O,e));let t={responsive:"100vw",fill:"100vw"}[M];t&&!g&&(g=t)}let U="",W=m(x),B=m(k);if("object"==typeof(o=y)&&(h(o)||void 0!==o.src)){let e=h(y)?y.default:y;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(e)));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(e)));if(n=e.blurWidth,i=e.blurHeight,R=R||e.blurDataURL,U=e.src,!T){if(W||B){if(W&&!B){let t=W/e.width;B=Math.round(e.height*t)}else if(!W&&B){let t=B/e.height;W=Math.round(e.width*t)}}else W=e.width,B=e.height}}let Q=!_&&("lazy"===w||void 0===w);((y="string"==typeof y?y:U).startsWith("data:")||y.startsWith("blob:"))&&(b=!0,Q=!1),q.unoptimized&&(b=!0),$&&y.endsWith(".svg")&&!q.dangerouslyAllowSVG&&(b=!0);let[H,G]=s.useState(!1),[J,X]=s.useState(!1),Y=m(S),K=Object.assign(T?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:N,objectPosition:j}:{},J?{}:{color:"transparent"},O),Z="blur"===D&&R&&!H?{backgroundSize:K.objectFit||"cover",backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'.concat(c.getImageBlurSvg({widthInt:W,heightInt:B,blurWidth:n,blurHeight:i,blurDataURL:R,objectFit:K.objectFit}),'")')}:{},ee=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:u,kind:c}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),l=u.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:u.map((e,r)=>"".concat(s({config:t,src:n,quality:o,width:e})," ").concat("w"===c?e:r+1).concat(c)).join(", "),src:s({config:t,src:n,quality:o,width:u[l]})}}({config:q,src:y,unoptimized:b,width:W,quality:Y,sizes:g,loader:z}),et=y,en={imageSrcSet:ee.srcSet,imageSizes:ee.sizes,crossOrigin:V.crossOrigin},er=s.useRef(I);s.useEffect(()=>{er.current=I},[I]);let ei=s.useRef(C);s.useEffect(()=>{ei.current=C},[C]);let eo=r({isLazy:Q,imgAttributes:ee,heightInt:B,widthInt:W,qualityInt:Y,className:E,imgStyle:K,blurStyle:Z,loading:w,config:q,fill:T,unoptimized:b,placeholder:D,loader:z,srcString:et,onLoadRef:er,onLoadingCompleteRef:ei,setBlurComplete:G,setShowAltText:X},V);return s.default.createElement(s.default.Fragment,null,s.default.createElement(v,Object.assign({},eo,{ref:t})),_?s.default.createElement(u.default,null,s.default.createElement("link",Object.assign({key:"__nimg-"+ee.src+ee.srcSet+ee.sizes,rel:"preload",as:"image",href:ee.srcSet?void 0:ee.src},en))):null)});t.default=g,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48418:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(92648).Z,i=n(17273).Z,o=r(n(67294)),a=n(63297),s=n(4634),u=n(4611),c=n(63794),l=n(22725),d=n(63462),f=n(21018),p=n(57190),h=n(71210),m=n(98684);let y=new Set;function v(e,t,n,r,i){if(i||s.isLocalURL(t)){if(!r.bypassPrefetchedCheck){let i=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,o=t+"%"+n+"%"+i;if(y.has(o))return;y.add(o)}Promise.resolve(e.prefetch(t,n,r)).catch(e=>{})}}function g(e){return"string"==typeof e?e:u.formatUrl(e)}let b=o.default.forwardRef(function(e,t){let n,r;let{href:u,as:y,children:b,prefetch:_,passHref:w,replace:E,shallow:S,scroll:x,locale:k,onClick:T,onMouseEnter:O,onTouchStart:I,legacyBehavior:C=!1}=e,D=i(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);n=b,C&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let R=!1!==_,M=o.default.useContext(d.RouterContext),N=o.default.useContext(f.AppRouterContext),j=null!=M?M:N,A=!M,{href:P,as:L}=o.default.useMemo(()=>
42{if(!M){let e=g(u);return{href:e,as:y?g(y):e}}let[e,t]=a.resolveHref(M,u,!0);return{href:e,as:y?a.resolveHref(M,y):t||e}},[M,u,y]),F=o.default.useRef(P),q=o.default.useRef(L);C&&(r=o.default.Children.only(n));let V=C?r&&"object"==typeof r&&r.ref:t,[z,$,U]=p.useIntersection({rootMargin:"200px"}),W=o.default.useCallback(e=>{(q.current!==L||F.current!==P)&&(U(),q.current=L,F.current=P),z(e),V&&("function"==typeof V?V(e):"object"==typeof V&&(V.current=e))},[L,V,P,U,z]);o.default.useEffect(()=>{j&&$&&R&&v(j,P,L,{locale:k},A)},[L,P,$,k,R,null==M?void 0:M.locale,j,A]);let B={ref:W,onClick(e){C||"function"!=typeof T||T(e),C&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),j&&!e.defaultPrevented&&function(e,t,n,r,i,a,u,c,l,d){let{nodeName:f}=e.currentTarget,p="A"===f.toUpperCase();if(p&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!l&&!s.isLocalURL(n)))return;e.preventDefault();let h=()=>{"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:a,locale:c,scroll:u}):t[i?"replace":"push"](r||n,{forceOptimisticNavigation:!d})};l?o.default.startTransition(h):h()}(e,j,P,L,E,S,x,k,A,R)},onMouseEnter(e){C||"function"!=typeof O||O(e),C&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),j&&(R||!A)&&v(j,P,L,{locale:k,priority:!0,bypassPrefetchedCheck:!0},A)},onTouchStart(e){C||"function"!=typeof I||I(e),C&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),j&&(R||!A)&&v(j,P,L,{locale:k,priority:!0,bypassPrefetchedCheck:!0},A)}};if(c.isAbsoluteUrl(L))B.href=L;else if(!C||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==k?k:null==M?void 0:M.locale,t=(null==M?void 0:M.isLocaleDomain)&&h.getDomainLocale(L,e,null==M?void 0:M.locales,null==M?void 0:M.domainLocales);B.href=t||m.addBasePath(l.addLocale(L,e,null==M?void 0:M.defaultLocale))}return C?o.default.cloneElement(r,B):o.default.createElement("a",Object.assign({},D,B),n)});t.default=b,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57190:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){let{rootRef:t,rootMargin:n,disabled:u}=e,c=u||!o,[l,d]=r.useState(!1),f=r.useRef(null),p=r.useCallback(e=>{f.current=e},[]);r.useEffect(()=>{if(o){if(c||l)return;let e=f.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:o,elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!l){let e=i.requestIdleCallback(()=>d(!0));return()=>i.cancelIdleCallback(e)}},[c,n,t,l,f.current]);let h=r.useCallback(()=>{d(!1)},[]);return[p,l,h]};var r=n(67294),i=n(9311);let o="function"==typeof IntersectionObserver,a=new Map,s=[];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42730:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getImageBlurSvg=function(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r||t,u=i||n,c=o.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return s&&u?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 ".concat(s," ").concat(u,"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='").concat(r&&i?"1":"20","'/%3E").concat(c,"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='").concat(o,"'/%3
42E%3C/svg%3E"):"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='".concat("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none","' x='0' y='0' height='100%25' width='100%25' href='").concat(o,"'/%3E%3C/svg%3E")}},61479:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return"".concat(t.path,"?url=").concat(encodeURIComponent(n),"&w=").concat(r,"&q=").concat(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n.__next_img_default=!0,t.default=n},89174:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useServerInsertedHTML=function(e){let t=r.useContext(i);t&&t(e)},t.ServerInsertedHTMLContext=void 0;var r=(0,n(91598).Z)(n(67294));let i=r.default.createContext(null);t.ServerInsertedHTMLContext=i},14685:function(e,t,n){"use strict";n.d(t,{d:function(){return u},z:function(){return c}});var r=n(85893),i=n(67294),o=n(88426),a=n(12003),s=n(26806);let u=(0,a.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=i.forwardRef((e,t)=>{let{className:n,variant:i,size:a,asChild:c=!1,...l}=e,d=c?o.g7:"button";return(0,r.jsx)(d,{className:(0,s.cn)(u({variant:i,size:a,className:n})),ref:t,...l})});c.displayName="Button"},56967:function(e,t,n){"use strict";n.d(t,{pm:function(){return f}});var r=n(67294);let i=0,o=new Map,a=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),l({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},s=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:n}=t;return n?a(n):e.toasts.forEach(e=>{a(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},u=[],c={toasts:[]};function l(e){c=s(c,e),u.forEach(e=>{e(c)})}function d(e){let{...t}=e,n=(i=(i+1)%Number.MAX_SAFE_INTEGER).toString(),r=e=>l({type:"UPDATE_TOAST",toast:{...e,id:n}}),o=()=>l({type:"DISMISS_TOAST",toastId:n});return l({type:"ADD_TOAST",toast:{...t,id:n,open:!0,onOpenChange:e=>{e||o()}}}),{id:n,dismiss:o,update:r}}function f(){let[e,t]=r.useState(c);return r.useEffect(()=>(u.push(t),()=>{let e=u.indexOf(t);e>-1&&u.splice(e,1)}),[e]),{...e,toast:d,dismiss:e=>l({type:"DISMISS_TOAST",toastId:e})}}},26806:function(e,t,n){"use strict";n.d(t,{cn:function(){return K}});var r=n(90512);let i=e=>{let t=u(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e,i=e=>{let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),o(n,t)||s(e)},a=(e,t)=>{let i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i};return{getClassGroupId:i,getConflictingClassGroupIds:a}},o=(e,t)=>{if(0===e.length)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?o(e.slice(1),r):void 0;if(i)return i;if(0===t.validators.length)return;let a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},a=/^\[(.+)\]$/,s=e=>{if(a.test(e)){let t=a.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},u=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]},i=f(Object.entries(e.classGroups),n);
42return i.forEach(([e,n])=>{c(n,r,e,t)}),r},c=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){let r=""===e?t:l(t,e);r.classGroupId=n;return}if("function"==typeof e){if(d(e)){c(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(([e,i])=>{c(i,l(t,e),n,r)})})},l=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},d=e=>e.isThemeGetter,f=(e,t)=>t?e.map(([e,n])=>{let r=n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e);return[e,r]}):e,p=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,o)=>{n.set(i,o),++t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},h=e=>{let{separator:t,experimentalParseClassName:n}=e,r=1===t.length,i=t[0],o=t.length,a=e=>{let n;let a=[],s=0,u=0;for(let c=0;c<e.length;c++){let l=e[c];if(0===s){if(l===i&&(r||e.slice(c,c+o)===t)){a.push(e.slice(u,c)),u=c+o;continue}if("/"===l){n=c;continue}}"["===l?s++:"]"===l&&s--}let c=0===a.length?e:e.substring(u),l=c.startsWith("!"),d=l?c.substring(1):c,f=n&&n>u?n-u:void 0;return{modifiers:a,hasImportantModifier:l,baseClassName:d,maybePostfixModifierPosition:f}};return n?e=>n({className:e,parseClassName:a}):a},m=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{let r="["===e[0];r?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},y=e=>({cache:p(e.cacheSize),parseClassName:h(e),...i(e)}),v=/\s+/,g=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(v),s="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{modifiers:u,hasImportantModifier:c,baseClassName:l,maybePostfixModifierPosition:d}=n(t),f=Boolean(d),p=r(f?l.substring(0,d):l);if(!p){if(!f||!(p=r(l))){s=t+(s.length>0?" "+s:s);continue}f=!1}let h=m(u).join(":"),y=c?h+"!":h,v=y+p;if(o.includes(v))continue;o.push(v);let g=i(p,f);for(let e=0;e<g.length;++e){let t=g[e];o.push(y+t)}s=t+(s.length>0?" "+s:s)}return s};function b(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=_(e))&&(r&&(r+=" "),r+=t);return r}let _=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=_(e[r]))&&(n&&(n+=" "),n+=t);return n},w=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},E=/^\[(?:([a-z-]+):)?(.+)\]$/i,S=/^\d+\/\d+$/,x=new Set(["px","full","screen"]),k=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,T=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,O=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,I=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,C=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,D=e=>M(e)||x.has(e)||S.test(e),R=e=>B(e,"length",Q),M=e=>Boolean(e)&&!Number.isNaN(Number(e)),N=e=>B(e,"number",M),j=e=>Boolean(e)&&Number.isInteger(Number(e)),A=e=>e.endsWith("%")&&M(e.slice(0,-1)),P=e=>E.test(e),L=e=>k.test(e),F=new Set(["length","size","percentage"]),q=e=>B(e,F,H),V=e=>B(e,"position",H),z=new Set(["image","url"]),$=e=>B(e,z,J),U=e=>B(e,"",G),W=()=>!0,B=(e,t,n)=>{let r=E.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},Q=e=>T.test(e)&&!O.test(e),H=()=>!1,G=e=>I.test(e),J=e=>C.test(e),X=()=>{let e=w("colors"),t=w("spacing"),n=w("blur"),r=w("brightness"),i=w("borderColor"),o=w("borderRadius"),a=w("borderSpacing"),s=w("borderWidth"),u=w("contrast"),c=w("grayscale"),l=w("hueRotate"),d=w("invert"),f=w("gap"),p=w("gradientColorStops"),h=w("gradientColorStopPositions"),m=w("inset"),y=w("margin"),v=w("opacity"),g=w("padding"),b=w("saturate"),_=w("scale"),E=w("sepia"),S=w("skew"),x=w("space"),k=w("translate"),T=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",P,t],C=()=>[P,t],F=()=>["",D,R],z=()=>["auto",M,P],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",P],X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[M,P];return{cacheSize:500,separator:":",theme:{colors:[W],spacing:[D,R],blur:["none","",L,P],brightness:Y(),borderColor:[e],borderRadius:["n
42one","","full",L,P],borderSpacing:C(),borderWidth:F(),contrast:Y(),grayscale:J(),hueRotate:Y(),invert:J(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[A,R],inset:I(),margin:I(),opacity:Y(),padding:C(),saturate:Y(),scale:Y(),sepia:J(),skew:Y(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",P]}],container:["container"],columns:[{columns:[L]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...B(),P]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",j,P]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",P]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",j,P]}],"grid-cols":[{"grid-cols":[W]}],"col-start-end":[{col:["auto",{span:["full",j,P]},P]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[W]}],"row-start-end":[{row:["auto",{span:[j,P]},P]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",P]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",P]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[x]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[x]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",P,t]}],"min-w":[{"min-w":[P,t,"min","max","fit"]}],"max-w":[{"max-w":[P,t,"none","full","min","max","fit","prose",{screen:[L]},L]}],h:[{h:[P,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[P,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[P,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[P,t,"auto","min","max","fit"]}],"font-size":[{text:["base",L,R]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",N]}],"font-family":[{font:[W]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",P]}],"line-clamp":[{"line-clamp":["none",M,N]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",D,P]}],"list-image":[{"list-image":["none",P]}],"list-style-type":[{list:["none","disc","decimal",P]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",D,R]}],"underline-offset":[{"underline-offset":["auto",D,P]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),V]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",q]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}
vendor: 5,162 bytes, line 42
42],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:Q()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Q()]}],"outline-offset":[{"outline-offset":[D,P]}],"outline-w":[{outline:[D,R]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[D,R]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",L,U]}],"shadow-color":[{shadow:[W]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",L,P]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[l]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[l]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",P]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",P]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",P]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[j,P]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",P]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
42],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[D,R,N]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Y=function(e){let t,n,r;let i=function(a){let s=[].reduce((e,t)=>t(e),e());return n=(t=y(s)).cache.get,r=t.cache.set,i=o,o(a)};function o(e){let i=n(e);if(i)return i;let o=g(e,t);return r(e,o),o}return function(){return i(b.apply(null,arguments))}}(X);function K(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Y((0,r.W)(t))}},74354:function(e,t,n){"use strict";n.r(t),n.d(t,{client:function(){return ih},default:function(){return im}});var r,i,o,a,s,u=n(85893),c=n(70655),l=n(13917);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(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)}}function p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var h=function(){return"function"==typeof Symbol},m=function(e){return h()&&Boolean(Symbol[e])},y=function(e){return m(e)?Symbol[e]:"@@"+e};h()&&!m("observable")&&(Symbol.observable=Symbol("observable"));var v=y("iterator"),g=y("observable"),b=y("species");function _(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw TypeError(n+" is not a function");return n}}function w(e){var t=e.constructor;return void 0!==t&&null===(t=t[b])&&(t=void 0),void 0!==t?t:D}function E(e){E.log?E.log(e):setTimeout(function(){throw e})}function S(e){Promise.resolve().then(function(){try{e()}catch(e){E(e)}})}function x(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var n=_(t,"unsubscribe");n&&n.call(t)}}catch(e){E(e)}}}function k(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function T(e,t,n){e._state="running";var r=e._observer;try{var i=_(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(k(e),i)i.call(r,n);else throw n;break;case"complete":k(e),i&&i.call(r)}}catch(e){E(e)}"closed"===e._state?x(e):"running"===e._state&&(e._state="ready")}function O(e,t,n){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:n});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:n}],S(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(T(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)});return}T(e,t,n)}}var I=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new C(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(k(this),x(this))},p(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),C=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){O(this._subscription,"next",e)},t.error=function(e){O(this._subscription,"error",e)},t.complete=function(){O(this._subscription,"complete")},p(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),D=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new I(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(n,r){if("function"!=typeof e){r(TypeError(e+" is not a function"));return}function i(){o.unsubscribe(),n()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){r(e),o.unsubscribe()}},error:r,complete:n})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(w(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(w(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=w(this),r=arguments.length>1,i=!1,o=arguments[1],a=o;return new n(function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=w(this);return new i(function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=w(this);return new n(function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}
42return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[g]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var r=_(t,g);if(r){var i=r.call(t);if(Object(i)!==i)throw TypeError(i+" is not an object");return i instanceof D&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(m("iterator")&&(r=_(t,v)))return new n(function(e){S(function(){if(!e.closed){for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){S(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)(function(e){S(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},p(e,null,[{key:b,get:function(){return this}}]),e}();h()&&Object.defineProperty(D,Symbol("extensions"),{value:{symbol:g,hostReportError:E},configurable:!0});var R=n(13154);function M(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new l.ej("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new l.ej(44);"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(__DEV__?(0,l.kG)(1===r.length,"Found ".concat(r.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,l.kG)(1===r.length,45),n=r[0].name.value),(0,c.__assign)((0,c.__assign)({},e),{definitions:(0,c.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function N(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function j(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return __DEV__?(0,l.kG)(r,"No fragment named ".concat(n)):(0,l.kG)(r,46),r||null;default:return null}}function A(e){return{__ref:String(e)}}function P(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function L(e,t,n,r){if("IntValue"===n.kind||"FloatValue"===n.kind)e[t.value]=Number(n.value);else if("BooleanValue"===n.kind||"StringValue"===n.kind)e[t.value]=n.value;else if("ObjectValue"===n.kind){var i={};n.fields.map(function(e){return L(i,e.name,e.value,r)}),e[t.value]=i}else if("Variable"===n.kind){var o=(r||{})[n.name.value];e[t.value]=o}else if("ListValue"===n.kind)e[t.value]=n.values.map(function(e){var n={};return L(n,t,e,r),n[t.value]});else if("EnumValue"===n.kind)e[t.value]=n.value;else if("NullValue"===n.kind)e[t.value]=null;else throw __DEV__?new l.ej('The inline argument "'.concat(t.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new l.ej(55)}var F=["connection","include","skip","client","rest","export"],q=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(!n.connection.filter||!(n.connection.filter.length>0))return n.connection.key;var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),"".concat(n.connection.key,"(").concat(V(i),")")}var o=e;if(t){var a=V(t);o+="(".concat(a,")")}
42return n&&Object.keys(n).forEach(function(e){-1===F.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(V(n[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=V;return V=e,t}}),V=function(e){return JSON.stringify(e,z)};function z(e,t){return(0,R.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})),t}function $(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return L(n,e.name,e.value,t)}),n}return null}function U(e){return e.alias?e.alias.value:e.name.value}function W(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var o=i[r];if(B(o)){if("__typename"===o.name.value)return e[U(o)]}else{var a=W(e,j(o,n).selectionSet,n);if("string"==typeof a)return a}}}function B(e){return"Field"===e.kind}function Q(e){__DEV__?(0,l.kG)(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,l.kG)(e&&"Document"===e.kind,47);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new l.ej('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new l.ej(48);return e});return __DEV__?(0,l.kG)(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):(0,l.kG)(t.length<=1,49),e}function H(e){return Q(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function G(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function J(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function X(e){var t=H(e);return __DEV__?(0,l.kG)(t&&"query"===t.operation,"Must contain a query definition."):(0,l.kG)(t&&"query"===t.operation,50),t}function Y(e){Q(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new l.ej("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new l.ej(54)}function K(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&L(t,e.variable.name,e.defaultValue)}),t}function Z(e,t){return t?t(e):D.of()}function ee(e){return"function"==typeof e?new er(e):e}function et(e){return e.request.length<=1}var en=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return(0,c.__extends)(t,e),t}(Error),er=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return D.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(ee).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i=ee(n),o=ee(r||new e(Z));return new e(et(i)&&et(o)?function(e){return t(e)?i.request(e)||D.of():o.request(e)||D.of()}:function(e,n){return t(e)?i.request(e,n)||D.of():o.request(e,n)||D.of()})},e.execute=function(e,t){var n,r,i,o;return e.request((i=t.context,(r={variables:(n=function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(0>t.indexOf(i))throw __DEV__?new l.ej("illegal argument: ".concat(i)):new l.ej(27)}return e}(t)).variables||{},extensions:n.extensions||{},operationName:n.operationName,query:n.query}).operationName||(r.operationName="string"!=typeof r.query?G(r.query)||void 0:""),o=(0,c.__assign)({},i),Object.defineProperty(r,"setContext",{enumerable:!1,value:function(e){o="function"==typeof e?(0,c.__assign)((0,c.__assign)({},o),e(o)):(0,c.__assign)((0,c.__assign)({},o),e)}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:function(){return(0,c.__assign)({},o)}}),r))||D.of()},e.concat=function(t,n){var r=ee(t);if(et(r))return __DEV__&&l.kG.warn(new en("You are calling concat on a terminating link, which will have no effect",r)),r;var i=ee(n);return new e(et(i)?function(e){return r.request(e,function(e){return i.request(e)||D.of()})||D.of()}:function(e,t){return r.request(e,function(e){return i.request(e,t)||D.of()})||D.of()})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Z)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new l.ej("request is not implemented"):new l.ej(22)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),ei=er.execute,eo=n(37826),ea=n(25821),es=n(72380),eu=n(97359);let ec=Object.freeze({});function el(e,t,n=es.h8){let r,i,o;let a=new Map;for(let e of Object.values(eu.h))a.set(e,function(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let s=Array.isArray(e),u=[e],c=-1,l=[],d=e,f=[],p=[];do{var h,m,y;let e;c++;let v=c===u.length,g=v&&0!==l.length;if(v){if(i=0===p.length?void 0:f[f.length-1],d=o,o=p.pop(),g){if(s){d=d.slice();let e=0;for(let[t,n]of l){let r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else for(let[e,t]of(d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d)),l))d[e]=t}c=r.index,u=r.keys,l=r.edits,s=r.inArray,r=r.prev}else if(o){if(null==(d=o[i=s?c:u[c]]))continue;f.push(i)}if(!Array.isArray(d)){(0,es.UG)(d)||(0,eo.a)(!1,`Invalid AST Node: ${(0,ea.X)(d)}.`);let n=v?null===(h=a.get(d.kind))||void 0===h?void 0:h.leave:null===(m=a.get(d.kind))||void 0===m?void 0:m.enter;if((e=null==n?void 0:n.call(t,d,i,o,f,p))===ec)break;if(!1===e){if(!v){f.pop();continue}}else if(void 0!==e&&(l.push([i,e]),!v)){if((0,es.UG)(e))d=e;else{f.pop();continue}}}void 0===e&&g&&l.push([i,d]),v?f.pop():(r={inArray:s,index:c,keys:u,edits:l,prev:r},u=(s=Array.isArray(d))?d:null!==(y=n[d.kind])&&void 0!==y?y:[],c=-1,l=[],o&&p.push(o),o=d)}while(void 0!==r);return 0!==l.length?l[l.length-1][1]:e}function ed(e,t){var n,r=e.directives;return!r||!r.length||(n=[],r&&r.length&&r.forEach(function(e){var t;if(!("skip"!==(t=e.name.value)&&"include"!==t)){var r=e.arguments,i=e.name.value;__DEV__?(0,l.kG)(r&&1===r.length,"Incorrect number of arguments for the @".concat(i," directive.")):(0,l.kG)(r&&1===r.length,41);var o=r[0];__DEV__?(0,l.kG)(o.name&&"if"===o.name.value,"Invalid argument for the @".concat(i," directive.")):(0,l.kG)(o.name&&"if"===o.name.value,42);var a=o.value;__DEV__?(0,l.kG)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),"Argument for the @".concat(i," directive must be a variable or a boolean value.")):(0,l.kG)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),43),n.push({directive:e,ifArgument:o})}}),n).every(function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?(0,l.kG)(void 0!==i,"Invalid variable referenced in @".concat(n.name.value," directive.")):(0,l.kG)(void 0!==i,40)):i=r.value.value,"skip"===n.name.value?!i:i})}function ef(e,t,n){var r=new Set(e),i=r.size;return el(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return ec}}),n?!r.size:r.size<i}var ep=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new l.ej("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new l.ej(24);throw r.parseError=e,r}return n},eh=n(30320);function em(e){var t={next:function(){return e.read()}};return eh.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}var ey=function(e,t,n){var r=Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},ev=n(30990),eg=n(21436),eb=Object.prototype.hasOwnProperty;function e_(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ew(e)}function ew(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new eS,i=1;i<n;++i)t=r.merge(t,e[i]);return t}
42var eE=function(e,t,n){return this.merge(e[n],t[n])},eS=function(){function e(e){void 0===e&&(e=eE),this.reconciler=e,this.isObject=R.s,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return(0,R.s)(t)&&(0,R.s)(e)?(Object.keys(t).forEach(function(i){if(eb.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,(0,c.__spreadArray)([e,t,i],r,!1));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,R.s)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,c.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function ex(e){return"incremental"in e}function ek(e,t){var n=e,r=new eS;return ex(t)&&(0,eg.O)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}n=r.merge(n,t)}),n}var eT=Object.prototype.hasOwnProperty;function eO(e,t){e.status>=300&&ey(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function eI(e,t){var n,r;"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&(null===(n=t.next)||void 0===n||n.call(t,e.result)),null===(r=t.error)||void 0===r||r.call(t,e))}var eC=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new l.ej("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n  link: new HttpLink({ uri: '/graphql', fetch })\n});\n    "):new l.ej(23)},eD=n(87392);let eR=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function eM(e){return eN[e.charCodeAt(0)]}let eN=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function ej(e){return el(e,eA)}let eA={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eP(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=eF("(",eP(e.variableDefinitions,", "),")"),n=eP([e.operation,eP([e.name,t]),eP(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+eF(" = ",n)+eF(" ",eP(r," "))},SelectionSet:{leave:({selections:e})=>eL(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=eF("",e,": ")+t,a=o+eF("(",eP(n,", "),")");return a.length>80&&(a=o+eF("(\n",eq(eP(n,"\n")),"\n)")),eP([a,eP(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+eF(" ",eP(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>eP(["...",eF("on ",e),eP(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${eF("(",eP(n,", "),")")} on ${t} ${eF("",eP(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
42,StringValue:{leave:({value:e,block:t})=>t?(0,eD.LZ)(e):`"${e.replace(eR,eM)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eP(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eP(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+eF("(",eP(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>eF("",e,"\n")+eP(["schema",eP(t," "),eL(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>eF("",e,"\n")+eP(["scalar",t,eP(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eF("",e,"\n")+eP(["type",t,eF("implements ",eP(n," & ")),eP(r," "),eL(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>eF("",e,"\n")+t+(eV(n)?eF("(\n",eq(eP(n,"\n")),"\n)"):eF("(",eP(n,", "),")"))+": "+r+eF(" ",eP(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>eF("",e,"\n")+eP([t+": "+n,eF("= ",r),eP(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eF("",e,"\n")+eP(["interface",t,eF("implements ",eP(n," & ")),eP(r," "),eL(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>eF("",e,"\n")+eP(["union",t,eP(n," "),eF("= ",eP(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>eF("",e,"\n")+eP(["enum",t,eP(n," "),eL(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>eF("",e,"\n")+eP([t,eP(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>eF("",e,"\n")+eP(["input",t,eP(n," "),eL(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>eF("",e,"\n")+"directive @"+t+(eV(n)?eF("(\n",eq(eP(n,"\n")),"\n)"):eF("(",eP(n,", "),")"))+(r?" repeatable":"")+" on "+eP(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eP(["extend schema",eP(e," "),eL(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eP(["extend scalar",e,eP(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>eP(["extend type",e,eF("implements ",eP(t," & ")),eP(n," "),eL(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>eP(["extend interface",e,eF("implements ",eP(t," & ")),eP(n," "),eL(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>eP(["extend union",e,eP(t," "),eF("= ",eP(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>eP(["extend enum",e,eP(t," "),eL(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>eP(["extend input",e,eP(t," "),eL(n)]," ")}};function eP(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function eL(e){return eF("{\n",eq(eP(e,"\n")),"\n}")}function eF(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function eq(e){return eF("  ",e.replace(/\n/g,"\n  "))}function eV(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var ez={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},e$=function(e,t){return t(e)},eU=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}};function eW(e){return new D(function(t){t.error(e)})}var eB=(0,l.wY)(function(){return fetch}),eQ=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.print,o=void 0===i?e$:i,a=e.includeExtensions,s=e.preserveHeaderCase,u=e.useGETForQueries,d=e.includeUnusedVariables,f=void 0!==d&&d,p=(0,c.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&eC(r||eB);var h={http:{includeExtensions:a,preserveHeaderCase:s},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return new er(function(e){var t,i,a,s,d=(t=e,i=n,t.getContext().uri||("function"==typeof i?i(t):i||"/graphql")),p=e.getContext(),m={};if(p.clientAwareness){var y=p.clientAwareness,v=y.name,g=y.version;v&&(m["apollographql-client-name"]=v),g&&(m["apollographql-client-version"]=g)}var b=(0,c.__assign)((0,c.__assign)({},m),p.headers),_=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={};
42n.forEach(function(e){i=(0,c.__assign)((0,c.__assign)((0,c.__assign)({},i),e.options),{headers:(0,c.__assign)((0,c.__assign)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=(0,c.__assign)((0,c.__assign)({},o),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var n=Object.create(null);return Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]=e[t]}),n}var r=Object.create(null);Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}});var i=Object.create(null);return Object.keys(r).forEach(function(e){i[r[e].originalName]=r[e].value}),i}(i.headers,o.preserveHeaderCase));var a=e.operationName,s=e.extensions,u=e.variables,l=e.query,d={operationName:a,variables:u};return o.includeExtensions&&(d.extensions=s),o.includeQuery&&(d.query=t(l,ej)),{options:i,body:d}}(e,o,ez,h,{http:p.http,options:p.fetchOptions,credentials:p.credentials,headers:b}),w=_.options,E=_.body;if(E.variables&&!f){var S=new Set(Object.keys(E.variables));el(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&S.delete(e.name.value)}}),S.size&&(E.variables=(0,c.__assign)({},E.variables),S.forEach(function(e){delete E.variables[e]}))}if(!w.signal){var x=eU(),k=x.controller,T=x.signal;(s=k)&&(w.signal=T)}var O="OperationDefinition"===(a=Y(e.query)).kind&&"subscription"===a.operation,I=ef(["defer"],e.query);if(u&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(w.method="GET"),I||O){w.headers=w.headers||{};var C="multipart/mixed;";O&&I&&__DEV__&&l.kG.warn("Multipart-subscriptions do not support @defer"),O?C+="boundary=graphql;subscriptionSpec=1.0,application/json":I&&(C+="deferSpec=20220824,application/json"),w.headers.accept=C}if("GET"===w.method){var M=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=ep(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=ep(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+n.join("&")+a}}(d,E),N=M.newURI,j=M.parseError;if(j)return eW(j);d=N}else try{w.body=ep(E,"Payload")}catch(e){return eW(e)}return new D(function(t){return(r||(0,l.wY)(function(){return fetch})||eB)(d,w).then(function(n){e.setContext({response:n});var r,i=null===(r=n.headers)||void 0===r?void 0:r.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){var n,r,i,o;return(0,c.__awaiter)(this,void 0,void 0,function(){var a,s,u,l,d,f,p,h,m,y,v,g,b,_,w,E,S,x,k,T,O;return(0,c.__generator)(this,function(I){switch(I.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");a=new TextDecoder("utf-8"),s=null===(n=e.headers)||void 0===n?void 0:n.get("content-type"),u="boundary=",l=(null==s?void 0:s.includes(u))?null==s?void 0:s.substring((null==s?void 0:s.indexOf(u))+u.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",d="--".concat(l),f="",p=function(e){var t,n,r,i,o,a,s=e;if(e.body&&(s=e.body),t=s,eh.DN&&t[Symbol.asyncIterator])return r=s[Symbol.asyncIterator](),(n={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},n;if(s.getReader)return em(s.getReader());if(s.stream)return em(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),o=!1,a={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},eh.DN&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(e){var t=null,n=null,r=!1,i=[],o=[];function a(e){if(!n){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){n=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}
42function u(){r=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",a),e.on("error",s),e.on("end",u),e.on("finish",u),e.on("close",u);var c={next:function(){return new Promise(function(e,t){return n?t(n):i.length?e({value:i.shift(),done:!1}):r?e({value:void 0,done:!0}):void o.push([e,t])})}};return eh.DN&&(c[Symbol.asyncIterator]=function(){return this}),c}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),h=!0,I.label=1;case 1:if(!h)return[3,3];return[4,p.next()];case 2:for(y=(m=I.sent()).value,v=m.done,g="string"==typeof y?y:a.decode(y),h=!v,f+=g,b=f.indexOf(d);b>-1;){if(_=void 0,_=(T=[f.slice(0,b),f.slice(b+d.length)])[0],f=T[1],_.trim()){if(w=_.indexOf("\r\n\r\n"),(E=function(e){var t={};return e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}}),t}(_.slice(0,w))["content-type"])&&-1===E.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");S=_.slice(w);try{x=eO(e,S.replace("\r\n","")),(Object.keys(x).length>1||"data"in x||"incremental"in x||"errors"in x||"payload"in x)&&((0,R.s)(x)&&"payload"in x?(k={},"payload"in x&&(k=(0,c.__assign)({},x.payload)),"errors"in x&&(k=(0,c.__assign)((0,c.__assign)({},k),{extensions:(0,c.__assign)((0,c.__assign)({},"extensions"in k?k.extensions:null),((O={})[ev.YG]=x.errors,O))})),null===(r=t.next)||void 0===r||r.call(t,k)):null===(i=t.next)||void 0===i||i.call(t,x))}catch(e){eI(e,t)}}b=f.indexOf(d)}return[3,1];case 3:return null===(o=t.complete)||void 0===o||o.call(t),[2]}})})}(n,t):function(e,t,n){var r;(r=e).text().then(function(e){return eO(r,e)}).then(function(e){return r.status>=300&&ey(r,e,"Response not successful: Received status code ".concat(r.status)),Array.isArray(e)||eT.call(e,"data")||eT.call(e,"errors")||ey(r,e,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(e){return e.operationName}):t.operationName,"'.")),e}).then(function(e){var t,r;null===(t=n.next)||void 0===t||t.call(n,e),null===(r=n.complete)||void 0===r||r.call(n)}).catch(function(e){return eI(e,n)})}(n,e,t)}).catch(function(e){return eI(e,t)}),function(){s&&s.abort()}})})},eH=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,eQ(t).request)||this;return n.options=t,n}return(0,c.__extends)(t,e),t}(er),eG=n(82152),eJ=function(){return Object.create(null)},eX=Array.prototype,eY=eX.forEach,eK=eX.slice,eZ=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=eJ),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return eY.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(eK.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}(),e0=function(){function e(){this.known=new(eh.sy?WeakSet:Set),this.pool=new eZ(eh.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,R.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,R.s)(e)){var t=(0,R.s)(e)?(0,eg.k)(e)?e.slice(0):(0,c.__assign)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,R.s)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var r=e.map(this.admit,this),i=this.pool.lookupArray(r);return!i.array&&(this.known.add(i.array=r),__DEV__&&Object.freeze(r)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],s=this.sortedKeys(e);a.push(s.json);var u=a.length;s.sorted.forEach(function(n){a.push(t.admit(e[n]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=a[u+t]}),__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),e1=Object.assign(function(e){if((0,R.s)(e)){void 0===o&&e2();var t=o.admit(e),n=a.get(t);return void 0===n&&a.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:e2});function e2(){o=new e0,a=new(eh.mr?WeakMap:Map)}function e3(e,t,n){return new D(function(r){var i=r.next,o=r.error,a=r.complete,s=0,u=!1,
42c={then:function(e){return new Promise(function(t){return t(e())})}};function l(e,t){return e?function(t){++s;var n=function(){return e(t)};c=c.then(n,n).then(function(e){--s,i&&i.call(r,e),u&&d.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(r,e)})}:function(e){return t&&t.call(r,e)}}var d={next:l(t,i),error:l(n,o),complete:function(){u=!0,!s&&a&&a.call(r)}},f=e.subscribe(d);return function(){return f.unsubscribe()}})}function e5(e){var t=e4(e);return(0,eg.O)(t)}function e4(e){var t=(0,eg.O)(e.errors)?e.errors.slice(0):[];return ex(e)&&(0,eg.O)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var e6={kind:eu.h.FIELD,name:{kind:eu.h.NAME,value:"__typename"}};function e7(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function e9(e,t){for(var n,r,i,o,a=e7(""),s=e7(""),u=function(e){for(var t=0,n=void 0;t<e.length&&(n=e[t]);++t)if(!(0,eg.k)(n)){if(n.kind===eu.h.OPERATION_DEFINITION)return a(n.name&&n.name.value);if(n.kind===eu.h.FRAGMENT_DEFINITION)return s(n.name.value)}return __DEV__&&l.kG.error("Could not find operation or fragment"),null},d=0,f=t.definitions.length-1;f>=0;--f)t.definitions[f].kind===eu.h.OPERATION_DEFINITION&&++d;var p=(n=new Set,r=[],e.forEach(function(e){e.name?n.add(e.name):e.test&&r.push(e.test)}),function(e){return n.has(e.name.value)||r.some(function(t){return t(e)})}),h=e.some(function(e){return e.remove}),m=function(e){return h&&e&&e.some(p)},y=new Map,v=!1,g={enter:function(e){if(m(e.directives))return v=!0,null}},b=el(t,{Field:g,InlineFragment:g,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,i){var o=u(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,i){if(m(e.directives))return v=!0,null;var o=u(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){y.set(JSON.stringify(r),e)},leave:function(e,t,n,r){return e===y.get(JSON.stringify(r))?e:d>0&&e.selectionSet.selections.every(function(e){return e.kind===eu.h.FIELD&&"__typename"===e.name.value})?(s(e.name.value).removed=!0,v=!0,null):void 0}},Directive:{leave:function(e){if(p(e))return v=!0,null}}});if(!v)return t;var _=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){_(s(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},w=new Set;b.definitions.forEach(function(e){e.kind===eu.h.OPERATION_DEFINITION?_(a(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){w.add(e)}):e.kind!==eu.h.FRAGMENT_DEFINITION||0!==d||s(e.name.value).removed||w.add(e.name.value)}),w.forEach(function(e){_(s(e)).fragmentSpreads.forEach(function(e){w.add(e)})});var E={enter:function(e){var t;if(t=e.name.value,!w.has(t)||s(t).removed)return null}};return!function e(t,n){return!t||t.selectionSet.selections.every(function(t){return t.kind===eu.h.FRAGMENT_SPREAD&&e(n[t.name.value],n)})}(H(i=el(b,{FragmentSpread:E,FragmentDefinition:E,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=_(a(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,c.__assign)((0,c.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))||(__DEV__?(0,l.kG)("Document"===i.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,l.kG)("Document"===i.kind,51),__DEV__?(0,l.kG)(i.definitions.length<=1,"Fragment must have exactly one definition."):(0,l.kG)(i.definitions.length<=1,52),o=i.definitions[0],__DEV__?(0,l.kG)("FragmentDefinition"===o.kind,"Must be a fragment definition."):(0,l.kG)("FragmentDefinition"===o.kind,53),o),N(J(i)))?i:null}var e8=Object.assign(function(e){return el(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==eu.h.OPERATION_DEFINITION){var r=e.selections;if(!(!r||r.some(function(e){return B(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!(B(n)&&n.directives&&n.directives.some(function(e){return"export"===e.name.value})))return(0,c.__assign)((0,c.__assign)({},e),{selections:(0,c.__spreadArray)((0,c.__spreadArray)([],r,!0),[e6],!1)})}}}})},{added:function(e){return e===e6}}),te={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||!e.arguments.some(function(e){return"key"===e.name.value}))&&__DEV__&&l.kG.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}},tt=new Map;function tn(e){var t=tt.get(e)||1;return tt.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function tr(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function ti(e){function t(t){Object.defineProperty(e,t,{value:D})}return eh.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function to(e){return e&&"function"==typeof e.then}var ta=function(e){function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),tr(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),tr(n.observers,"error",e))},complete:function(){var e=n.sub,t=n.sources;if(null!==e){var r=(void 0===t?[]:t).shift();r?to(r)?r.then(function(e){return n.sub=e.subscribe(n.handlers)}):n.sub=r.subscribe(n.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),tr(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new D(t)]),to(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return(0,c.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;
42n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},t}(D);ti(ta);var ts=n(1644),tu=Object.prototype.toString;function tc(e,t){switch(tu.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(e,r){n[r]=tc(e,t)}),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(n){r[n]=tc(e[n],t)}),r;default:return e}}var tl=n(53712),td=Object.assign,tf=Object.hasOwnProperty,tp=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=tm)}catch(e){}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&o.reobserve().catch(function(){}),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}})||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=r,o.queryManager=n,o.isTornDown=!1;var a=n.defaultOptions.watchQuery,s=(void 0===a?{}:a).fetchPolicy,u=void 0===s?"cache-first":s,l=i.fetchPolicy,d=void 0===l?u:l,f=i.initialFetchPolicy;o.options=(0,c.__assign)((0,c.__assign)({},i),{initialFetchPolicy:void 0===f?"standby"===d?u:d:f,fetchPolicy:d}),o.queryId=r.queryId||n.generateQueryId();var p=H(o.query);return o.queryName=p&&p.name&&p.name.value,o}return(0,c.__extends)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||ts.I.ready,r=(0,c.__assign)((0,c.__assign)({},t),{loading:(0,ts.O)(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if("network-only"===o||"no-cache"===o||"standby"===o||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),(0,eG.D)(r.data,{})&&(r.data=void 0),a.complete?(delete r.partial,a.complete&&r.networkStatus===ts.I.loading&&("cache-first"===o||"cac
42he-only"===o)&&(r.networkStatus=ts.I.ready,r.loading=!1)):r.partial=!0,!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||ty(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||!(0,eG.D)(this.last.result,e)||t&&!(0,eG.D)(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||(0,eG.D)(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if("cache-and-network"===r?n.fetchPolicy=r:"no-cache"===r?n.fetchPolicy="no-cache":n.fetchPolicy="network-only",__DEV__&&e&&tf.call(e,"variables")){var i=X(this.query),o=i.variableDefinitions;(!o||!o.some(function(e){return"variables"===e.variable.name.value}))&&__DEV__&&l.kG.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!(0,eG.D)(this.options.variables,e)&&(n.variables=this.options.variables=(0,c.__assign)((0,c.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,ts.I.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,c.__assign)((0,c.__assign)({}
42,e.query?e:(0,c.__assign)((0,c.__assign)((0,c.__assign)((0,c.__assign)({},this.options),{query:this.query}),e),{variables:(0,c.__assign)((0,c.__assign)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId(),i=this.queryInfo,o=i.networkStatus;i.networkStatus=ts.I.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var a=new Set;return this.queryManager.fetchQuery(r,n,ts.I.fetchMore).then(function(s){return t.queryManager.removeQuery(r),i.networkStatus===ts.I.fetchMore&&(i.networkStatus=o),t.queryManager.cache.batch({update:function(r){var i=e.updateQuery;i?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:s.data,variables:n.variables})}):r.writeQuery({query:n.query,variables:n.variables,data:s.data})},onWatchUpdated:function(e){a.add(e.query)}}),s}).finally(function(){a.has(t.query)||th(t)})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){return r(e,{subscriptionData:n,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}__DEV__&&l.kG.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return(0,eG.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},ts.I.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(!n){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==n){__DEV__?(0,l.kG)(n,"Attempted to start a polling query without a polling interval."):(0,l.kG)(n,13),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&((0,ts.O)(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},ts.I.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,c.__assign)((0,c.__assign)({},this.last),{result:this.queryManager.assumeImmutableResults?e:tc(e),variables:t}),(0,eg.O)(e.errors)||delete this.last.error,this.last},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var r=t===ts.I.refetch||t===ts.I.fetchMore||t===ts.I.poll,i=this.options.variables,o=this.options.fetchPolicy,a=(0,tl.o)(this.options,e||{}),s=r?a:td(this.options,a);!r&&(this.updatePolling(),e&&e.variables&&!(0,eG.D)(e.variables,i)&&"standby"!==s.fetchPolicy&&s.fetchPolicy===o&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=ts.I.setVariables)));var u=s.variables&&(0,c.__assign)({},s.variables),l=this.fetch(s,t),d=l.concast,f=l.fromLink,p={next:function(e){n.reportResult(e,u)},error:function(e){n.reportError(e,u)}};return!r&&f&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=d,this.observer=p),d.addObserver(p),d},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError();(n||this.isDifferentFromLastResult(e,t))&&((n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),tr(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=(0,c.__assign)((0,c.__assign)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:ts.I.error,loading:!1});this.updateLastResult(n,t),tr(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(D);function th(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=r,"function"==typeof r)?r.apply(this,arguments):n}}):e.reobserve()}function tm(e){__DEV__&&l.kG.error("Unhandled error",e.message,e.stack)}function ty(e){__DEV__&&e&&__DEV__&&l.kG.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}function tv(e){return e.kind===eu.h.FIELD||e.kind===eu.h.FRAGMENT_SPREAD||e.kind===eu.h.INLINE_FRAGMENT}ti(tp);var tg=null,tb={},t_=1;function tw(e){try{return e()}catch(e){}}var tE="@wry/context:Slot",tS=tw(function(){return globalThis})||tw(function(){return n.g})||Object.create(null),tx=tS[tE]||Array[tE]||function(e){try{Object.defineProperty(tS,tE,{value:e,enumerable:!1,writable:!1,
42configurable:!0})}finally{return e}}(function(){function e(){this.id=["slot",t_++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=tg;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===tb)break;return e!==tg&&(tg.slots[this.id]=t),!0}return tg&&(tg.slots[this.id]=tb),!1},e.prototype.getValue=function(){if(this.hasValue())return tg.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=tg;tg={parent:a,slots:o};try{return t.apply(r,n)}finally{tg=a}},e.bind=function(e){var t=tg;return function(){var n=tg;try{return tg=t,e.apply(this,arguments)}finally{tg=n}}},e.noContext=function(e,t,n){if(!tg)return e.apply(n,t);var r=tg;try{return tg=null,e.apply(n,t)}finally{tg=r}},e}());function tk(){}tx.bind,tx.noContext;var tT=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=tk),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),tO=new tx,tI=Object.prototype.hasOwnProperty,tC=void 0===(s=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:s;function tD(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var tR=[];function tM(e,t){if(!e)throw Error(t||"assertion failure")}function tN(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var tj=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!tL(this))return tA(this),this.value[0]},e.prototype.recompute=function(e){var t;return tM(!this.recomputing,"already recomputing"),tA(this),tL(this)&&(t$(this),tO.withValue(this,tP,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{tD(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,tL(this)||(t=this,tF(t,tV)))),tN(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,tF(this,tq),tD(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),t$(this),tF(this,function(t,n){t.setDirty(),tU(t,e)})},e.prototype.forget=function(){this.dispose()}
42,e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=tR.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(tC(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),tR.push(this.deps),this.deps=null)},e.count=0,e}();function tA(e){var t=tO.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),tL(e)?tq(t,e):tV(t,e),t}function tP(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function tL(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function tF(e,t){var n=e.parents.size;if(n)for(var r=tC(e.parents),i=0;i<n;++i)t(r[i],e)}function tq(e,t){tM(e.childValues.has(t)),tM(tL(t));var n=!tL(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=tR.pop()||new Set;e.dirtyChildren.add(t),n&&tF(e,tq)}function tV(e,t){tM(e.childValues.has(t)),tM(!tL(t));var n,r,i=e.childValues.get(t);0===i.length?e.childValues.set(t,t.value.slice(0)):(n=t.value,(r=i.length)>0&&r===n.length&&i[r-1]===n[r-1]||e.setDirty()),tz(e,t),tL(e)||tF(e,tV)}function tz(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(tR.length<100&&tR.push(n),e.dirtyChildren=null))}function t$(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){tU(e,n)}),e.forgetDeps(),tM(null===e.dirtyChildren)}function tU(e,t){t.parents.delete(e),e.childValues.delete(t),tz(e,t)}var tW={setDirty:!0,dispose:!0,forget:!0};function tB(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=tO.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(tD(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&tI.call(tW,n)?n:"setDirty";tC(r).forEach(function(e){return e[i]()}),t.delete(e),tD(r)}},r}function tQ(){var e=new eZ("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}tQ();var tH=new Set;function tG(e,t){void 0===t&&(t=Object.create(null));var n=new tT(t.max||65536,function(e){return e.dispose()}),r=t.keyArgs,i=t.makeCacheKey||tQ(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new tj(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),tH.add(n),tO.hasValue()||(tH.forEach(function(e){return e.clean()}),tH.clear()),s};function a(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function u(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=u,o.forget=function(){return u(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var tJ=new tx,tX=new WeakMap;function tY(e){var t=tX.get(e);return t||tX.set(e,t={vars:new Set,dep:tB()}),t}function tK(e){tY(e).vars.forEach(function(t){return t.forgetCache(e)})}function tZ(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){tY(e).dep.dirty(r),e.broadcastWatches&&e.broadcastWatches()});var a=Array.from(n);n.clear(),a.forEach(function(t){return t(e)})}}else{var s=tJ.getValue();s&&(i(s),tY(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),tY(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var t0=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=e_(t.resolvers,e)}):this.resolvers=e_(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return(0,c.__awaiter)(this,void 0,void 0,function(){return(0,c.__generator)(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then(function(e){return(0,c.__assign)((0,c.__assign)({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return ef(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return Q(e),e9([{test:function(e){return"client"===e.name.value},remove:!0}],e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,c.__assign)((0,c.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,c.__awaiter)(this,void 0,void 0,function(){return(0,c.__generator)(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return(0,c.__assign)((0,c.__assign)({},t),e.exportedVariables)})]:[2,(0,c.__assign)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return el(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return ec}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===Y(e).operation?e:el(e,{OperationDefinition:{enter:function(e){return(0,c.__assign)((0,c.__assign)({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),(0,c.__awaiter)(this,void 0,void 0,function(){var a,s,u,l,d,f,p,h,m;return(0,c.__generator)(this,function(y){return a=Y(e),s=N(J(e)),u=this.collectSelectionsToResolve(a,s),d=(l=a.operation)?l.charAt(0).toUpperCase()+l.slice(1):"Query",f=this,p=f.cache,h=f.client,m={fragmentMap:s,context:(0,c.__assign)((0,c.__assign)({}
42,n),{cache:p,client:h}),variables:r,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,!1,t,m).then(function(e){return{result:e,exportedVariables:m.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,r){return(0,c.__awaiter)(this,void 0,void 0,function(){var i,o,a,s,u,d=this;return(0,c.__generator)(this,function(f){return i=r.fragmentMap,o=r.context,a=r.variables,s=[n],u=function(e){return(0,c.__awaiter)(d,void 0,void 0,function(){var u,d;return(0,c.__generator)(this,function(c){return(t||r.selectionsToResolve.has(e))&&ed(e,a)?B(e)?[2,this.resolveField(e,t,n,r).then(function(t){var n;void 0!==t&&s.push(((n={})[U(e)]=t,n))})]:("InlineFragment"===e.kind?u=e:(u=i[e.name.value],__DEV__?(0,l.kG)(u,"No fragment named ".concat(e.name.value)):(0,l.kG)(u,11)),u&&u.typeCondition&&(d=u.typeCondition.name.value,r.fragmentMatcher(n,d,o))?[2,this.resolveSelectionSet(u.selectionSet,t,n,r).then(function(e){s.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return ew(s)})]})})},e.prototype.resolveField=function(e,t,n,r){return(0,c.__awaiter)(this,void 0,void 0,function(){var i,o,a,s,u,l,d,f,p,h=this;return(0,c.__generator)(this,function(c){return n?(i=r.variables,s=(o=e.name.value)!==(a=U(e)),l=Promise.resolve(u=n[a]||n[o]),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(d=n.__typename||r.defaultOperationType,(f=this.resolvers&&this.resolvers[d])&&(p=f[s?o:a])&&(l=Promise.resolve(tJ.withValue(this.cache,p,[n,$(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,l.then(function(n){if(void 0===n&&(n=u),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=n)})}),!e.selectionSet||null==n)return n;var i,o,a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(n)?h.resolveSubSelectedArray(e,t||a,n,r):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||a,n,r):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map(function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(i){if(!r.has(i)){var o=new Set;r.set(i,o),el(i,{Directive:function(e,t,r,i,a){"client"===e.name.value&&a.forEach(function(e){n(e)&&tv(e)&&o.add(e)})},FragmentSpread:function(r,i,a,s,u){var c=t[r.name.value];__DEV__?(0,l.kG)(c,"No fragment named ".concat(r.name.value)):(0,l.kG)(c,12);var d=e(c);d.size>0&&(u.forEach(function(e){n(e)&&tv(e)&&o.add(e)}),o.add(r),d.forEach(function(e){o.add(e)}))}})}return r.get(i)}(e)},e}(),t1=new(eh.mr?WeakMap:Map);function t2(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return t1.set(e,(t1.get(e)+1)%1e15),n.apply(this,arguments)})}function t3(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var t5=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;t1.has(n)||(t1.set(n,0),t2(n,"evict"),t2(n,"modify"),t2(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||ts.I.loading;return this.variables&&this.networkStatus!==ts.I.loading&&!(0,eG.D)(this.variables,e.variables)&&(t=ts.I.setVariables),(0,eG.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){t3(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&(0,eG.D)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,eG.D)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():th(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
42t3(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,ts.O)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=(0,c.__assign)((0,c.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,eG.D)(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===t1.get(this.cache)&&(0,eG.D)(t,n.variables)&&(0,eG.D)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,o=new eS,a=(0,eg.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,eg.O)(e.incremental)){var s=ek(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(t4(e,n.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,n.variables))o.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:t1.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(n.variables),s=o.diff(a);i.stopped||i.updateWatch(n.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=ts.I.ready},e.prototype.markError=function(e){return this.networkStatus=ts.I.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function t4(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!e5(e);return!r&&n&&e.data&&(r=!0),r}var t6=Object.prototype.hasOwnProperty,t7=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.queryDeduplication,o=e.onBroadcast,a=e.ssrMode,s=e.clientAwareness,u=e.localState,c=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(eh.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=void 0!==i&&i,this.clientAwareness=void 0===s?{}:s,this.localState=u||new t0({cache:t}),this.ssrMode=void 0!==a&&a,this.assumeImmutableResults=!!c,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(__DEV__?new l.ej("QueryManager stopped while query was in flight"):new l.ej(14))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,n,r=e.mutation,i=e.variables,o=e.optimisticResponse,a=e.updateQueries,s=e.refetchQueries,u=void 0===s?[]:s,d=e.awaitRefetchQueries,f=void 0!==d&&d,p=e.update,h=e.onQueryUpdated,m=e.fetchPolicy,y=void 0===m?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":m,v=e.errorPolicy,g=void 0===v?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||"none":v,b=e.keepRootFields,_=e.context;return(0,c.__awaiter)(this,void 0,void 0,function(){var e,t,n,s,d,m;return(0,c.__generator)(this,function(v){switch(v.label){case 0:if(__DEV__?(0,l.kG)(r,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,l.kG)(r,15),__DEV__?(0,l.kG)("network-only"===y||"no-cache"===y,"Mutations supp
42ort only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,l.kG)("network-only"===y||"no-cache"===y,16),e=this.generateMutationId(),n=(t=this.transform(r)).document,s=t.hasClientExports,r=this.cache.transformForLink(n),i=this.getVariables(r,i),!s)return[3,2];return[4,this.localState.addExportedVariables(r,i,_)];case 1:i=v.sent(),v.label=2;case 2:return d=this.mutationStore&&(this.mutationStore[e]={mutation:r,variables:i,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:e,document:r,variables:i,fetchPolicy:y,errorPolicy:g,context:_,updateQueries:a,update:p,keepRootFields:b}),this.broadcastQueries(),m=this,[2,new Promise(function(t,n){return e3(m.getObservableFromLink(r,(0,c.__assign)((0,c.__assign)({},_),{optimisticResponse:o}),i,!1),function(t){if(e5(t)&&"none"===g)throw new ev.cA({graphQLErrors:e4(t)});d&&(d.loading=!1,d.error=null);var n=(0,c.__assign)({},t);return"function"==typeof u&&(u=u(n)),"ignore"===g&&e5(n)&&delete n.errors,m.markMutationResult({mutationId:e,result:n,document:r,variables:i,fetchPolicy:y,errorPolicy:g,context:_,update:p,updateQueries:a,awaitRefetchQueries:f,refetchQueries:u,removeOptimistic:o?e:void 0,onQueryUpdated:h,keepRootFields:b})}).subscribe({next:function(e){m.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){d&&(d.loading=!1,d.error=t),o&&m.cache.removeOptimistic(e),m.broadcastQueries(),n(t instanceof ev.cA?t:new ev.cA({networkError:t}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&t4(r,e.errorPolicy)){if(ex(r)||i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),ex(r)&&(0,eg.O)(r.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;a.result&&(s=ek(a.result,r)),void 0!==s&&(r.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&t6.call(u,s)){var c=u[s],l=n.queries.get(o),d=l.document,f=l.variables,p=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),h=p.result;if(p.complete&&h){var m=c(h,{mutationResult:r,queryName:d&&G(d)||void 0,queryVariables:f});m&&i.push({result:m,dataId:"ROOT_QUERY",query:d,variables:f})}}})}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach(function(e){return t.write(e)});var a,s=e.update,u=!(ex(a=r)||"hasNext"in a&&"data"in a)||ex(r)&&!r.hasNext;if(s){if(!o){var l=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(r=(0,c.__assign)((0,c.__assign)({},r),{data:l.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}u&&s(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return r})}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult((0,c.__assign)((0,c.__assign)({},t),{result:{data:r}}),e)}catch(e){__DEV__&&l.kG.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),r=e9([te],Q(n)),i=this.localState.clientQuery(n),o=r&&this.localState.serverQuery(r),a={document:n,hasClientExports:n&&ef(["client","export"],n,!0),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:i,serverQuery:o,defaultVars:K(H(n)),asQuery:(0,c.__assign)((0,c.__assign)({},n),{definitions:n.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,c.__assign)((0,c.__assign)({},e),{operation:"query"}):e})})},s=function(e){e&&!t.has(e)&&t.set(e,a)};s(e),s(n),s(i),s(o)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,c.__assign)((0,c.__assign)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,c.__assign)((0,c.__assign)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new t5(this),n=new tp({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:n.query,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?(0,l.kG)(e.query,"query option is required. You must specify your GraphQL document in the query option."):(0,l.kG)(e.query,17),__DEV__?(0,l.kG)("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):(0,l.kG)("Document"===e.query.kind,18),__DEV__?(0,l.kG)(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,l.kG)(!e.returnPartialData,19),__DEV__?(0,l.kG)(!e.pollInterval,"pollInterval option only supported on watchQuery."):(0,l.kG)(!e.pollInterval,20),this.fetchQuery(t,e).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new l.ej("Store reset while query was in flight (not completed in link chain)"):new l.ej(21)),this.queries.forEac
42h(function(e){e.observableQuery?e.networkStatus=ts.I.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?r.set(e,!1):(0,R.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)?r.set(t.transform(e).document,!1):(0,R.s)(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e){n.set(i,o);return}var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}}),i.size&&i.forEach(function(e){var r=tn("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new tp({queryManager:t,queryInfo:i,options:(0,c.__assign)((0,c.__assign)({},e),{fetchPolicy:"network-only"})});(0,l.kG)(o.queryId===r),i.setObservableQuery(o),n.set(r,o)}),__DEV__&&r.size&&r.forEach(function(e,t){!e&&__DEV__&&l.kG.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var u=function(e){return t.getObservableFromLink(n,s,e).map(function(o){"no-cache"!==r&&(t4(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=e5(o),s=(0,ev.ls)(o);if(a||s){var u={};throw a&&(u.graphQLErrors=o.errors),s&&(u.protocolErrors=o.extensions[ev.YG]),new ev.cA(u)}return o})};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new D(function(e){var t=null;return c.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return u(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var u=this.inFlightLinkObservables,l=this.link,d={query:s,variables:n,operationName:G(s)||void 0,context:this.prepareContext((0,c.__assign)((0,c.__assign)({},t),{forceFetch:!r}))};if(t=d.context,r){var f=u.get(s)||new Map;u.set(s,f);var p=e1(n);if(!(o=f.get(p))){var h=new ta([ei(l,d)]);f.set(p,o=h),h.beforeNext(function(){f.delete(p)&&f.size<1&&u.delete(s)})}}else o=new ta([ei(l,d)])}else o=new ta([D.of({data:{}})]),t=this.prepareContext(t);var m=this.transform(e).clientQuery;return m&&(o=e3(o,function(e){return a.localState.runResolvers({document:m,remoteResult:e,context:t,variables:n})})),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(this.transform(e.document).document);return e3(this.getObservableFromLink(i,n.context,n.variables),function(o){var a=e4(o),s=a.length>0;if(r>
42=e.lastRequestId){if(s&&"none"===n.errorPolicy)throw e.markError(new ev.cA({graphQLErrors:a}));e.markResult(o,i,n,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:ts.I.ready};return s&&"ignore"!==n.errorPolicy&&(u.errors=a,u.networkStatus=ts.I.error),u},function(t){var n=(0,ev.MS)(t)?t:new ev.cA({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchQueryObservable=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast},e.prototype.fetchConcastWithInfo=function(e,t,n){var r,i,o=this;void 0===n&&(n=ts.I.loading);var a=this.transform(t.query).document,s=this.getVariables(a,t.variables),u=this.getQuery(e),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,d=void 0===l?c&&c.fetchPolicy||"cache-first":l,f=t.errorPolicy,p=void 0===f?c&&c.errorPolicy||"none":f,h=t.returnPartialData,m=t.notifyOnNetworkStatusChange,y=t.context,v=Object.assign({},t,{query:a,variables:s,fetchPolicy:d,errorPolicy:p,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==m&&m,context:void 0===y?{}:y}),g=function(e){v.variables=e;var r=o.fetchQueryByPolicy(u,v,n);return"standby"!==v.fetchPolicy&&r.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),r},b=function(){return o.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){b(),setTimeout(function(){return r.cancel(e)})}),this.transform(v.query).hasClientExports)r=new ta(this.localState.addExportedVariables(v.query,v.variables,v.context).then(g).then(function(e){return e.sources})),i=!0;else{var _=g(v.variables);i=_.fromLink,r=new ta(_.sources)}return r.promise.then(b,b),{concast:r,fromLink:i}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?tn("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})});var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof t5&&e.watcher.observableQuery;if(r){if(u){c.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),i}null!==u&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach(function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=u(i,a,o)}u&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,l=t.returnPartialData,d=t.context,f=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:this.transform(i).document,variables:o,networkStatus:n});var h=function(){return e.getDiff(o)},m=function(t,n){void 0===n&&(n=e.networkStatus||ts.I.loading);var a=t.result;!__DEV__||l||(0,eG.D)(a,{})||ty(t.missing);var s=function(e){return D.of((0,c.__assign)({data:e,loading:(0,ts.O)(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:d,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):"none"===u&&n===ts.I.refetch&&Array.isArray(t.missing)?s(void 0):s(a)},y="no-cache"===a?0:n===ts.I.refetch&&"merge"!==s?1:2,v=function(){return r.getResultsFromLink(e,y,{variables:o,context:d,fetchPolicy:a,errorPolicy:u})},g=f&&"number"==typeof p&&p!==n&&(0,ts.O)(n);switch(a){default:case"cache-first":var b=h();if(b.complete)return{fromLink:!1,sources:[m(b,e.markReady())]};if(l||g)return{fromLink:!0,sources:[m(b),v()]};return{fromLink:!0,sources:[v()]};case"cache-and-network":var b=h();if(b.complete||l||g)return{fromLink:!0,sources:[m(b),v()]};return{fromLink:!0,sources:[v()]};case"cache-only":return{fromLink:!1,sources:[m(h(),e.markReady())]};case"network-only":if(g)return{fromLink:!0,sources:[m(h()),v()]};return{fromLink:!0,sources:[v()]};case"no-cache":if(g)return{fromLink:!0,sources:[m(e.getDiff()),v()]};return{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new t5(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,c.__assign)((0,c.__assign)({},t),{clientAwareness:this.clientAwareness})},e}(),t9=n(14012),t8=!1,ne=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,u=e.ssrForceFetchDelay,c=void 0===u?0:u,d=e.connectToDevTools,f=void 0===d?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:d,p=e.queryDeduplication,h=void 0===p||p,m=e.defaultOptions,y=e.assumeImmutableResults,v=e.resolvers,g=e.typeDefs,b=e.fragmentMatcher,_=e.name,w=e.version,E=e.link;if(E||(E=n?new eH({uri:n,credentials:r,headers:i}):er.empty()),!o)throw __DEV__?new l.ej("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new l.ej(9);if(this.link=E,this.cache=o,this.disableNetworkFetches=s||c>0,this.queryDeduplication=h,this.defaultOptions=m||Object.create(null),this.typeDefs=g,c&&setTimeout(function(){return t.disableNetworkFetches=!1},c),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),f&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!t8&&f&&__DEV__&&(t8=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,x=S&&S.userAgent,k=void 0;"string"==typeof x&&(x.indexOf("Chrome/")>-1?k="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":x.indexOf("Firefox/")>-1&&(k="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),k&&__DEV__&&l.kG.log("Download the Apollo DevTools for a better development experience: "+k)}this.version="3.7.11",this.localState=new t0({cache:o,client:this,resolvers:v,fragmentMatcher:b}
42),this.queryManager=new t7({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:h,ssrMode:s,clientAwareness:{name:_,version:w},localState:this.localState,assumeImmutableResults:void 0!==y&&y,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,t9.J)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,c.__assign)((0,c.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,t9.J)(this.defaultOptions.query,e)),__DEV__?(0,l.kG)("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,l.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,c.__assign)((0,c.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,t9.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return ei(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var i=Promise.all(r);return i.queries=n,i.results=r,i.catch(function(e){__DEV__&&l.kG.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),nt=function(){function e(){this.getFragmentDoc=tG(M)}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.o
42ptimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,c.__assign)((0,c.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,c.__assign)((0,c.__assign)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=(0,c.__rest)(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=(0,c.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery((0,c.__assign)((0,c.__assign)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment((0,c.__assign)((0,c.__assign)({},e),{data:i})),i)}})},e}(),nn=function(e){function t(n,r,i,o){var a,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)s.missing=((a={})[s.path[u]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,c.__extends)(t,e),t}(Error),nr=n(48702),ni=Object.prototype.hasOwnProperty;function no(e){return null==e}function na(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=no(r)?no(i)?void 0:{_id:i}:{id:r}),no(r)&&!no(i)&&(r=i),!no(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var ns={dataIdFromObject:na,addTypename:!0,resultCaching:!0,canonizeResults:!1};function nu(e){var t=e.canonizeResults;return void 0===t?ns.canonizeResults:t}var nc=/^[_a-z][_0-9a-z]*/i;function nl(e){var t=e.match(nc);return t?t[0]:e}function nd(e){return(0,R.s)(e)&&!P(e)&&!(0,eg.k)(e)}function nf(e,t){var n=N(J(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var np=Object.create(null),nh=function(){return np},nm=Object.create(null),ny=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,nr.J)(P(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return P(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return A(e);if(P(e))return e;var r=n.policies.identify(e)[0];if(r){var i=A(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,c.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),ni.call(this.data,e)){var n=this.data[e];if(n&&ni.call(n,t))return n[t]}return"__typename"===t&&ni.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof nb?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),ni.call(this.data,e))?this.data[e]:this instanceof nb?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;P(e)&&(e=e.__ref),P(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){__DEV__?(0,l.kG)("string"==typeof n,"store.merge expects a string ID"):(0,l.kG)("string"==typeof n,1);var a=new eS(nw).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);
42i||(s.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=nl(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof nb||delete a[e]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[n]===a.__typename&&delete s.__typename,Object.keys(s).forEach(function(e){return r.group.dirty(n,e)})}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,s={DELETE:np,INVALIDATE:nm,isReference:P,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||A(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(u){var l=nl(u),d=r[u];if(void 0!==d){var f="function"==typeof t?t:t[u]||t[l];if(f){var p=f===nh?np:f((0,nr.J)(d),(0,c.__assign)((0,c.__assign)({},s),{fieldName:l,storeFieldName:u,storage:n.getStorage(e,u)}));p===nm?n.group.dirty(e,u):(p===np&&(p=void 0),p!==d&&(i[u]=p,o=!0,d=p))}void 0!==d&&(a=!1)}}),o)return this.merge(e,i),a&&(this instanceof nb?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=nh,r):nh)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(ni.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof nb&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){ni.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&ni.call(e,n)||t.delete(n)}),e){var n=e.__META,r=(0,c.__rest)(e,["__META"]);Object.keys(r).forEach(function(e){t.merge(e,r[e])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof nb?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){ni.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof nb;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!ni.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){P(e)&&(t[e.__ref]=!0),(0,R.s)(e)&&Object.keys(e).forEach(function(t){var n=e[t];(0,R.s)(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),nv=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?tB():null,this.keyMaker=new eZ(eh.mr)}
42,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var n=nl(t);n!==t&&this.d(n+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function ng(e,t){nE(e)&&e.group.depend(t,"__exists")}i=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=t.seed,o=e.call(this,n,new nv(void 0===r||r))||this;return o.stump=new n_(o),o.storageTrie=new eZ(eh.mr),i&&o.replace(i),o}return(0,c.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(r=ny||(ny={})),r.Root=i;var nb=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return(0,c.__extends)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){(0,eG.D)(r[n],i[n])||t.group.dirty(e,n)}
42):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,c.__assign)((0,c.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return ni.call(this.data,t)?(0,c.__assign)((0,c.__assign)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(ny),n_=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new nv(t.group.caching,t.group))||this}return(0,c.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(nb);function nw(e,t,n){var r=e[n],i=t[n];return(0,eG.D)(r,i)?r:i}function nE(e){return!!(e instanceof ny&&e.group.caching)}function nS(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var nx=function(){function e(e){var t=this;this.knownResults=new(eh.mr?WeakMap:Map),this.config=(0,tl.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:nu(e)}),this.canon=e.canon||new e0,this.executeSelectionSet=tG(function(e){var n,r=e.context.canonizeResults,i=nS(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?(0,c.__assign)((0,c.__assign)({},o),{result:t.canon.admit(o.result)}):o:(ng(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:nS,makeCacheKey:function(e,t,n,r){if(nE(n.store))return n.store.makeCacheKey(e,P(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=tG(function(e){return ng(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(nE(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new e0},e.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,r=e.query,i=e.rootId,o=e.variables,a=e.returnPartialData,s=e.canonizeResults,u=void 0===s?this.config.canonizeResults:s,l=this.config.cache.policies;o=(0,c.__assign)((0,c.__assign)({},K(X(r))),o);var d=A(void 0===i?"ROOT_QUERY":i),f=this.executeSelectionSet({selectionSet:Y(r).selectionSet,objectOrReference:d,enclosingRef:d,context:(0,c.__assign)({store:n,query:r,policies:l,variables:o,varString:e1(o),canonizeResults:u},nf(r,this.config.fragments))});if(f.missing&&(t=[new nn(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(f.missing),f.missing,r,o)],!(void 0===a||a)))throw t[0];return{result:f.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,n,r){if(nE(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,n=this,r=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,a=e.context;if(P(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=a.variables,u=a.policies,c=a.store.getFieldValue(i,"__typename"),d=[],f=new eS;function p(e,n){var r;return e.missing&&(t=f.merge(t,((r={})[n]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof c&&!u.rootIdsByTypename[c]&&d.push({__typename:c});var h=new Set(r.selections);h.forEach(function(e){var r,m;if(ed(e,s)){if(B(e)){var y=u.readField({fieldName:e.name.value,field:e,variables:a.variables,from:i},a),v=U(e);void 0===y?e8.added(e)||(t=f.merge(t,((r={})[v]="Can't find field '".concat(e.name.value,"' on ").concat(P(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),r))):(0,eg.k)(y)?y=p(n.executeSubSelectedArray({field:e,array:y,enclosingRef:o,context:a}),v):e.selectionSet?null!=y&&(y=p(n.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:y,enclosingRef:P(y)?y:o,context:a}),v)):a.canonizeResults&&(y=n.canon.pass(y)),void 0!==y&&d.push(((m={})[v]=y,m))}else{var g=j(e,a.lookupFragment);if(!g&&e.kind===eu.h.FRAGMENT_SPREAD)throw __DEV__?new l.ej("No fragment named ".concat(e.name.value)):new l.ej(5);g&&u.fragmentMatches(g,c)&&g.selectionSet.selections.forEach(h.add,h)}}});var m={result:ew(d),missing:t},y=a.canonizeResults?this.canon.admit(m):(0,nr.J)(m);return y.result&&this.knownResults.set(y.result,r),y},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new eS;function u(e,n){var r;return e.missing&&(t=s.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,eg.k)(e)?u(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?u(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:P(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){(0,R.s)(n)&&(__DEV__?(0,l.kG)(!P(n),"Missing selection set for object of type ".concat(P(n)?e.get(n.__ref,"__typename"):n&&n.__typename," returned for query field ").concat(t.name.value)):(0,l.kG)(!P(n),6),Object.values(n).forEac
42h(r.add,r))})}}(a.store,r,e),e)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),nk=Object.create(null);function nT(e){var t=JSON.stringify(e);return nk[t]||(nk[t]=Object.create(null))}function nO(e){var t=nT(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=nC(e,function(e){var i=nR(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&ni.call(t,e[0])&&(i=nR(t,e,nD)),__DEV__?(0,l.kG)(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):(0,l.kG)(void 0!==i,2),i});return"".concat(n.typename,":").concat(JSON.stringify(i))})}function nI(e){var t=nT(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=JSON.stringify(nC(e,function(e){var n=e[0],o=n.charAt(0);if("@"===o){if(r&&(0,eg.O)(r.directives)){var a=n.slice(1),s=r.directives.find(function(e){return e.name.value===a}),u=s&&$(s,i);return u&&nR(u,e.slice(1))}return}if("$"===o){var c=n.slice(1);if(i&&ni.call(i,c)){var l=e.slice(0);return l[0]=c,nR(i,l)}return}if(t)return nR(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function nC(e,t){var n=new eS;return(function e(t){var n=nT(t);if(!n.paths){var r=n.paths=[],i=[];t.forEach(function(n,o){(0,eg.k)(n)?(e(n).forEach(function(e){return r.push(i.concat(e))}),i.length=0):(i.push(n),(0,eg.k)(t[o+1])||(r.push(i.slice(0)),i.length=0))})}return n.paths})(e).reduce(function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e},Object.create(null))}function nD(e,t){return e[t]}function nR(e,t,n){return n=n||nD,function e(t){return(0,R.s)(t)?(0,eg.k)(t)?t.map(e):nC(Object.keys(t).sort(),function(e){return nR(t,e)}):t}(t.reduce(function e(t,r){return(0,eg.k)(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}function nM(e){return void 0!==e.args?e.args:e.field?$(e.field,e.variables):null}q.setStringify(e1);var nN=function(){},nj=function(e,t){return t.fieldName},nA=function(e,t,n){return(0,n.mergeObjects)(e,t)},nP=function(e,t){return t},nL=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,c.__assign)({dataIdFromObject:na},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r,i=this,o=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=t&&t.storeObject||e,s=(0,c.__assign)((0,c.__assign)({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=nq(arguments,a);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var d=l(e,s);if((0,eg.k)(d))l=nO(d);else{r=d;break}}return r=r?String(r):void 0,s.keyObject?[r,s.keyObject]:[r]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=(0,c.__rest)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),ni.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]})},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?nA:!1===t?nP:e.merge}a(r,t.merge),r.keyFn=!1===i?nN:(0,eg.k)(i)?nO(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach(function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;r.keyFn=!1===s?nj:(0,eg.k)(s)?nI(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||nj)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?(0,l.kG)(!r||r===e,"Cannot change root ".concat(e," __typename more than once")):(0,l.kG)(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEac
42h(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(nc);r&&r[0]===e||t.fuzzySubtypes.set(e,RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!ni.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach(function(e){var r=t.getTypePolicy(e),i=r.fields;Object.assign(n,(0,c.__rest)(r,["fields"])),Object.assign(n.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(n){t.updateTypePolicy(e,n)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},c=!!(n&&this.fuzzySubtypes.size),d=!1,f=0;f<s.length;++f){var p=s[f];if(p.has(o))return a.has(o)||(d&&__DEV__&&l.kG.warn("Inferring subtype ".concat(t," of supertype ").concat(o)),a.add(o)),!0;p.forEach(u),c&&f===s.length-1&&function e(t,n,r){return!!(0,R.s)(n)&&((0,eg.k)(n)?n.every(function(n){return e(t,n,r)}):t.selections.every(function(t){if(B(t)&&ed(t,r)){var i=U(t);return ni.call(n,i)&&(!t.selectionSet||e(t.selectionSet,n[i],r))}return!0}))}(e.selectionSet,n,r)&&(c=!1,d=!0,this.fuzzySubtypes.forEach(function(e,n){var r=t.match(e);r&&r[0]===t&&u(n)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!!(n&&n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n,r,i,o,a=e.typename,s=e.fieldName,u=this.getFieldPolicy(a,s,!1),c=u&&u.keyFn;if(c&&a)for(var l={typename:a,fieldName:s,field:e.field||null,variables:e.variables},d=nM(e);c;){var f=c(d,l);if((0,eg.k)(f))c=nI(f);else{o=f||s;break}}return void 0===o&&(o=e.field?(t=e.field,n=e.variables,r=null,t.directives&&(r={},t.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(t){var i=t.name,o=t.value;return L(r[e.name.value],i,o,n)})})),i=null,t.arguments&&t.arguments.length&&(i={},t.arguments.forEach(function(e){return L(i,e.name,e.value,n)})),q(t.name.value,i,r)):q(s,nM(e))),!1===o?s:s===nl(o)?o:s+":"+o},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=nl(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=nF(this,n,e,t,t.store.getStorage(P(n)?n.__ref:n,i));return tJ.withValue(this.cache,u,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,s=n.merge;return s===nA?nV(r.store)(e,t):s===nP?t:(r.overwrite&&(e=void 0),s(e,t,nF(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function nF(e,t,n,r,i){var o=e.getStoreFieldName(n),a=nl(o),s=n.variables||r.variables,u=r.store,c=u.toReference,l=u.canRead;return{args:nM(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:P,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(nq(arguments,t,s),r)},mergeObjects:nV(r.store)}}function nq(e,t,n){var r,i,o,a=e[0],s=e[1],u=e.length;return"string"==typeof a?o={fieldName:a,from:u>1?s:t}:(o=(0,c.__assign)({},a),ni.call(o,"from")||(o.from=t)),__DEV__&&void 0===o.from&&__DEV__&&l.kG.warn("Undefined 'from' passed to readField with arguments ".concat((r=Array.from(e),i=tn("stringifyForDisplay"),JSON.stringify(r,function(e,t){return void 0===t?i:t}).split(JSON.stringify(i)).join("<undefined>")))),void 0===o.variables&&(o.variables=n),o}function nV(e){return function(t,n){if((0,eg.k)(t)||(0,eg.k)(n))throw __DEV__?new l.ej("Cannot automatically merge arrays"):new l.ej(4);if((0,R.s)(t)&&(0,R.s)(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(P(t)&&nd(n))return e.merge(t.__ref,n),t;if(nd(t)&&P(n))return e.merge(t,n.__ref),n;if(nd(t)&&nd(n))return(0,c.__assign)((0,c.__assign)({},t),n)}return n}}function nz(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:(0,c.__assign)((0,c.__assign)({},e),{clientOnly:t,deferred:n})),i}var n$=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,u=H(r),d=new eS;a=(0,c.__assign)((0,c.__assign)({},K(u)),a);var f=(0,c.__assign)((0,c.__assign)({store:e,written:Object.create(null),merge:function(e,t){return d.merge
42(e,t)},variables:a,varString:e1(a)},nf(r,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),p=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:f});if(!P(p))throw __DEV__?new l.ej("Could not identify object ".concat(JSON.stringify(i))):new l.ej(7);return f.incomingById.forEach(function(t,r){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=A(r);if(o&&o.map.size){var u=n.applyMerges(o,s,i,f);if(P(u))return;i=u}if(__DEV__&&!f.overwrite){var c=Object.create(null);a.forEach(function(e){e.selectionSet&&(c[e.name.value]=!0)});var d=function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==c[nl(e)]||d(e)||function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(!(!a||P(o)||(0,eG.D)(o,a)||Object.keys(o).every(function(e){return void 0!==r.getFieldValue(a,e)}))){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),u=nl(n),c="".concat(s,".").concat(u);if(!nH.has(c)){nH.add(c);var d=[];(0,eg.k)(o)||(0,eg.k)(a)||[o,a].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||d.includes(t)||d.push(t)}),__DEV__&&l.kG.warn("Cache data may be lost when replacing the ".concat(u," field of a ").concat(s," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(c," field, so InMemoryCache can safely merge these objects:\n\n  existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n  incoming: ").concat(JSON.stringify(a).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(s,i,e,f.store)})}e.merge(r,i)}),e.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,u=Object.create(null),d=n&&s.rootTypenamesById[n]||W(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof d&&(u.__typename=d);var f=function(){var e=nq(arguments,u,o.variables);if(P(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var n=s.readField((0,c.__assign)((0,c.__assign)({},e),{from:t.storeObject}),o);if(void 0!==n)return n}}return s.readField(e,o)},p=new Set;this.flattenFields(i,r,o,d).forEach(function(e,n){var i,o=r[U(n)];if(p.add(n),void 0!==o){var c=s.getStoreFieldName({typename:d,fieldName:n.name.value,field:n,variables:e.variables}),h=nW(a,c),m=t.processFieldValue(o,n,n.selectionSet?nz(e,!1,!1):e,h),y=void 0;n.selectionSet&&(P(m)||nd(m))&&(y=f("__typename",m));var v=s.getMergeFunction(d,n.name.value,y);v?h.info={field:n,typename:d,merge:v}:nQ(a,c),u=e.merge(u,((i={})[c]=m,i))}else __DEV__&&!e.clientOnly&&!e.deferred&&!e8.added(n)&&!s.getReadFunction(d,n.name.value)&&__DEV__&&l.kG.error("Missing field '".concat(U(n),"' while writing result ").concat(JSON.stringify(r,null,2)).substring(0,1e3))});try{var h=s.identify(r,{typename:d,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:u,readField:f}),m=h[0],y=h[1];n=n||m,y&&(u=o.merge(u,y))}catch(e){if(!n)throw e}if("string"==typeof n){var v=A(n),g=o.written[n]||(o.written[n]=[]);if(g.indexOf(i)>=0||(g.push(i),this.reader&&this.reader.isFresh(r,v,i,o)))return v;var b=o.incomingById.get(n);return b?(b.storeObject=o.merge(b.storeObject,u),b.mergeTree=function e(t,n){if(t===n||!n||nB(n))return t;if(!t||nB(t))return n;var r=t.info&&n.info?(0,c.__assign)((0,c.__assign)({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,o={info:r,map:i?new Map:t.map.size?t.map:n.map};if(i){var a=new Set(n.map.keys());t.map.forEach(function(t,r){o.map.set(r,e(t,n.map.get(r))),a.delete(r)}),a.forEach(function(r){o.map.set(r,e(n.map.get(r),t.map.get(r)))})}return o}
42(b.mergeTree,a),p.forEach(function(e){return b.fieldNodeSet.add(e)})):o.incomingById.set(n,{storeObject:u,mergeTree:nB(a)?void 0:a,fieldNodeSet:p}),v}return u},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?(0,eg.k)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,n,nW(r,o));return nQ(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?tc(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=W(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,a=new eZ(!1);return function e(s,u){var c=a.lookup(s,u.clientOnly,u.deferred);c.visited||(c.visited=!0,s.selections.forEach(function(a){if(ed(a,n.variables)){var s=u.clientOnly,c=u.deferred;if(!(s&&c)&&(0,eg.O)(a.directives)&&a.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=$(e,n.variables);r&&!1===r.if||(c=!0)}}),B(a)){var d=i.get(a);d&&(s=s&&d.clientOnly,c=c&&d.deferred),i.set(a,nz(n,s,c))}else{var f=j(a,n.lookupFragment);if(!f&&a.kind===eu.h.FRAGMENT_SPREAD)throw __DEV__?new l.ej("No fragment named ".concat(a.name.value)):new l.ej(8);f&&o.fragmentMatches(f,r,t,n.variables)&&e(f.selectionSet,nz(n,s,c))}}}))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var o=this;if(e.map.size&&!P(n)){var a,s,u=!(0,eg.k)(n)&&(P(t)||nd(t))?t:void 0,d=n;u&&!i&&(i=[P(u)?u.__ref:u]);var f=function(e,t){return(0,eg.k)(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=f(u,t),a=f(d,t);if(void 0!==a){i&&i.push(t);var c=o.applyMerges(e,n,a,r,i);c!==a&&(s=s||new Map).set(t,c),i&&(0,l.kG)(i.pop()===t)}}),s&&(n=(0,eg.k)(d)?d.slice(0):(0,c.__assign)({},d),s.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(a=r.store).getStorage.apply(a,i)):n},e}(),nU=[];function nW(e,t){var n=e.map;return n.has(t)||n.set(t,nU.pop()||{map:new Map}),n.get(t)}function nB(e){return!e||!(e.info||e.map.size)}function nQ(e,t){var n=e.map,r=n.get(t);r&&nB(r)&&(nU.push(r),n.delete(t))}var nH=new Set,nG=function(e){function t(t){void 0===t&&(t={});var n,r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=tZ,r.txCount=0,r.config=(n=t,(0,tl.o)(ns,n)),r.addTypename=!!r.config.addTypename,r.policies=new nL({cac
42he:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,c.__extends)(t,e),t.prototype.init=function(){var e=this.data=new ny.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new n$(this,this.storeReader=new nx({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:nu(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=tG(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(nE(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,e1({optimistic:r,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,c.__assign)((0,c.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof nn)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(ni.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,c.__assign)((0,c.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||function(e){tY(e).vars.forEach(function(t){return t.attachCache(e)})}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&tK(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){e1.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(P(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&l.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(ni.call(e,"id"))return!1;e=(0,c.__assign)((0,c.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),e1.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),tK(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,u=function(e){var i=n.data,o=n.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=i,n.optimisticData=o}},l=new Set;return s&&!this.txCount&&this.broadcastWatches((0,c.__assign)((0,c.__assign)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,u):!1===o?u(this.data):u(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&l.size?(this.broadcastWatches((0,c.__assign)((0,c.__assign)({},e),{onWatchUpdated:function(e,t){var n=s.call(this,e,t);return!1!==n&&l.delete(e),n}})),l.size&&l.forEach(function(e){return n.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.t
42ypenameDocumentCache.get(e);return t||(t=e8(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.transformForLink=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,r,n)))&&(n&&(0,eG.D)(n.result,r.result)||e.callback(e.lastDiff=r,n))},t}(nt),nJ=n(67294),nX=n(85317),nY=function(e){var t=e.client,n=e.children,r=(0,nX.K)();return nJ.createElement(r.Consumer,null,function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),__DEV__?(0,l.kG)(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):(0,l.kG)(e.client,29),nJ.createElement(r.Provider,{value:e},n)})},nK=n(73606),nZ=n(41664),n0=n.n(nZ),n1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n2=nJ.createContext&&nJ.createContext(n1),n3=function(){return(n3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},n5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function n4(e){return function(t){return nJ.createElement(n6,n3({attr:n3({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return nJ.createElement(t.tag,n3({key:n},t.attr),e(t.child))})}(e.child))}}function n6(e){var t=function(t){var n,r=e.attr,i=e.size,o=e.title,a=n5(e,["attr","size","title"]),s=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),nJ.createElement("svg",n3({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:n,style:n3(n3({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&nJ.createElement("title",null,o),e.children)};return void 0!==n2?nJ.createElement(n2.Consumer,null,function(e){return t(e)}):t(n1)}function n7(e){return n4({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 378.7c-73.4 0-133.3 59.9-133.3 133.3S438.6 645.3 512 645.3 645.3 585.4 645.3 512 585.4 378.7 512 378.7zM911.8 512c0-55.2.5-109.9-2.6-165-3.1-64-17.7-120.8-64.5-167.6-46.9-46.9-103.6-61.4-167.6-64.5-55.2-3.1-109.9-2.6-165-2.6-55.2 0-109.9-.5-165 2.6-64 3.1-120.8 17.7-167.6 64.5C132.6 226.3 118.1 283 115 347c-3.1 55.2-2.6 109.9-2.6 165s-.5 109.9 2.6 165c3.1 64 17.7 120.8 64.5 167.6 46.9 46.9 103.6 61.4 167.6 64.5 55.2 3.1 109.9 2.6 165 2.6 55.2 0 109.9.5 165-2.6 64-3.1 120.8-17.7 167.6-64.5 46.9-46.9 61.4-103.6 64.5-167.6 3.2-55.1 2.6-109.8 2.6-165zM512 717.1c-113.5 0-205.1-91.6-205.1-205.1S398.5 306.9 512 306.9 717.1 398.5 717.1 512 625.5 717.1 512 717.1zm213.5-370.7c-26.5 0-47.9-21.4-47.9-47.9s21.4-47.9 47.9-47.9 47.9 21.4 47.9 47.9a47.84 47.84 0 0 1-47.9 47.9z"}}]})(e)}function n9(e){return n4({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"}}]})(e)}function n8(e){return n4({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"}}]})(e)}let re=()=>(0,u.jsx)("footer",{className:"px-5 py-10 bg-acid  ",children:(0,u.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,u.jsxs)("div",{className:"flex space-x-10 ",children:[(0,u.jsxs)("div",{children:[(0,u.jsx)("h2",{className:"font-MargoBeuys text-lg mb-3",children:"Contact Us"}),(0,u.jsxs)("p",{className:"text-sm mb-3",children:["38 High Street, ",(0,u.jsx)("br",{}),"Huntingdon, ",(0,u.jsx)("br",{}),"PE29 3AQ"]}),(0,u.jsx)("p",{className:"text-sm",children:"07725 069743"})]}),(0,u.jsxs)("div",{children:[(0,u.jsx)("h2",{className:"font-MargoBeuys text-lg mb-3",children:"Socials"}),(0,u.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,u.jsx)("a",{href:"https://www.facebook.com/profile.php?id=100092833656575","aria-label":"Facebook",children:(0,u.jsx)(n9,{className:"text-2xl"})}),(0,u.jsx)("a",{href:"https://www.instagram.com/thevanzzzconcept/","aria-label":"Instagram",children:(0,u.jsx)(n7,{className:"text-3xl"})}),(0,u.jsx)("a",{href:"https://www.tiktok.com/@thevanzzzconcept","aria-label":"TikTok",children:(0,u.jsx)(n8,{className:"text-2xl"})})]})]})]}),(0,u.jsxs)("div",{className:"text-right mt-5",children:[(0,u.jsx)(n0(),{className:"mr-5 text-sm",href:"/terms-and-conditions",children:"Terms & Conditions"}),(0,u.jsx)(n0(),{className:"text-sm",href:"privacy-policy",children:"Privacy Policy"})]})]})});var rt=n(14685),rn=n(25675),rr=n.n(rn),ri=n(41352),ro=n(77232),ra=n(12854),rs=n(12003),ru=n(26806);let rc=ra.fC,rl=ra.xz;ra.x8;let rd=ra.h_,rf=nJ.forwardRef((e,t)=>
42{let{className:n,...r}=e;return(0,u.jsx)(ra.aV,{className:(0,ru.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...r,ref:t})});rf.displayName=ra.aV.displayName;let rp=(0,rs.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),rh=nJ.forwardRef((e,t)=>{let{side:n="right",className:r,children:i,...o}=e;return(0,u.jsxs)(rd,{children:[(0,u.jsx)(rf,{}),(0,u.jsxs)(ra.VY,{ref:t,className:(0,ru.cn)(rp({side:n}),r),...o,children:[(0,u.jsxs)(ra.x8,{className:"absolute right-4 top-4 roun
42ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,u.jsx)(ri.default,{className:"h-4 w-4"}),(0,u.jsx)("span",{className:"sr-only",children:"Close"})]}),i]})]})});rh.displayName=ra.VY.displayName;let rm=e=>{let{className:t,...n}=e;return(0,u.jsx)("div",{className:(0,ru.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...n})};rm.displayName="SheetHeader";let ry=e=>{let{className:t,...n}=e;return(0,u.jsx)("div",{className:(0,ru.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n})};ry.displayName="SheetFooter";let rv=nJ.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,u.jsx)(ra.Dx,{ref:t,className:(0,ru.cn)("text-lg font-semibold text-foreground",n),...r})});rv.displayName=ra.Dx.displayName;let rg=nJ.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,u.jsx)(ra.dk,{ref:t,className:(0,ru.cn)("text-sm text-muted-foreground",n),...r})});rg.displayName=ra.dk.displayName;var rb=n(39332);let r_=e=>{let{withLinks:t,changeOnScroll:n}=e,[r,i]=(0,nJ.useState)(!1),[o,a]=(0,nJ.useState)(!1),s=(0,rb.usePathname)(),c="/book"===s;(0,nJ.useEffect)(()=>{let e=()=>{window.scrollY>50&&n?i(!0):i(!1)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[n]);let l=()=>{a(!1)};return(0,u.jsx)("div",{children:(0,u.jsx)("nav",{className:"".concat(n?"fixed":"absolute"," ").concat(r?"bg-black/30 backdrop-blur-md":"bg-gradient-to-b from-black/40 to-transparent"," px-5 py-3 items-center w-full top-0 z-[150] transition-all"),children:(0,u.jsxs)("div",{className:"flex justify-between max-w-7xl mx-auto items-center",children:[(0,u.jsx)(n0(),{href:"/",children:(0,u.jsx)(rr(),{src:"/small-logo.webp",alt:"logo",width:50,height:50,className:"brightness-0 invert"})}),t&&(0,u.jsxs)("div",{className:"md:flex space-x-5 text-white  hidden",children:[(0,u.jsx)(n0(),{href:"#our-vans",className:"p-2 my-2 w-fit px-4 font-bold hover:text-acid transition-colors",scroll:!1,children:"Our vans"}),(0,u.jsx)(n0(),{href:"#reviews",className:"p-2 my-2 w-fit px-4 font-bold hover:text-acid transition-colors",scroll:!1,children:"Reviews"}),(0,u.jsx)(n0(),{href:"#how-it-works",className:"p-2 my-2 w-fit px-4 font-bold hover:text-acid transition-colors",scroll:!1,children:"How it works"}),(0,u.jsx)(n0(),{href:"#discover",className:"p-2 my-2 w-fit px-4 font-bold hover:text-acid transition-colors",scroll:!1,children:"Discover"}),(0,u.jsx)(n0(),{href:"#contact-us",className:"p-2 my-2 w-fit px-4 font-bold hover:text-acid transition-colors",scroll:!1,children:"Contact us"})]}),(0,u.jsxs)("div",{className:"flex items-center gap-4",children:[!c&&(0,u.jsx)(n0(),{href:"/book",className:t?"hidden md:block":"block",children:(0,u.jsx)(rt.z,{variant:"default",className:"bg-acid hover:bg-acid/90 text-black font-bold  rounded-lg",children:"Book Now"})}),t&&(0,u.jsxs)(rc,{open:o,onOpenChange:a,children:[(0,u.jsx)(rl,{asChild:!0,children:(0,u.jsxs)(rt.z,{variant:"ghost",size:"icon",className:"md:hidden text-white hover:bg-white/10 relative z-[1000]",children:[o?(0,u.jsx)(ri.default,{className:"h-6 w-6"}):(0,u.jsx)(ro.default,{className:"h-6 w-6"}),(0,u.jsx)("span",{className:"sr-only",children:"Toggle menu"})]})}),(0,u.jsx)(rh,{side:"right",className:"w-[300px] sm:w-[400px] bg-white z-[1000]",children:(0,u.jsxs)("nav",{className:"flex flex-col gap-4 mt-10",children:[(0,u.jsx)(n0(),{href:"#our-vans",className:"p-2 text-lg font-bold hover:text-acid transition-colors",scroll:!1,onClick:l,children:"Our vans"}),(0,u.jsx)(n0(),{href:"#how-it-works",className:"p-2 text-lg font-bold hover:text-acid transition-colors",scroll:!1,onClick:l,children:"How it works"}),(0,u.jsx)(n0(),{href:"#reviews",className:"p-2 text-lg font-bold hover:text-acid transition-colors",scroll:!1,onClick:l,children:"Reviews"}),(0,u.jsx)(n0(),{href:"#discover",className:"p-2 text-lg font-bold hover:text-acid transition-colors",scroll:!1,onClick:l,children:"Discover"}),(0,u.jsx)(n0(),{href:"#contact-us",className:"p-2 text-lg font-bold hover:text-acid transition-colors",scroll:!1,onClick:l,children:"Contact us"}),!c&&(0,u.jsx)(n0(),{href:"/book",onClick:l,children:(0,u.jsx)(rt.z,{className:"w-full bg-acid hover:bg-acid/90 text-black font-bold  rounded-lg mt-4",children:"Book Now"})})]})})]})]})]})})})},rw=e=>{let{children:t,withLinks:n,changeOnScroll:r}=e;return(0,u.jsxs)("div",{className:"flex flex-col min-h-[100vh]",children:[(0,u.jsx)(r_,{withLinks:n,changeOnScroll:r}),(0,u.jsx)("div",{className:"flex-1",children:t}),(0,u.jsx)(re,{})]})};n(5759);var rE=n(56967),rS=n(73935),rx=n(36206),rk=n(28771),rT=n(65936),rO=n(25360),rI=n(46063),rC=n(42651),rD=n(29115),rR=n(75320),rM=n(79698),rN=n(77342),rj=n(9981),rA=n(96219),rP="ToastProvider",[rL,rF,rq]=(0,rT.B)("Toast"),[rV,rz]=(0,rO.b)("Toast",[rq]),[r$,rU]=rV(rP),rW=e=>{let{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:a}=e,[s,c]=nJ.useState(null),[l,d]=nJ.useState(0),f=nJ.useRef(!1),p=nJ.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${rP}\`. Expected non-empty \`string\`.`),(0,u.jsx)(rL.Provider,{scope:t,children:(0,u.jsx)(r$,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:o,toastCount:l,viewport:s,onViewportChange:c,onToastAdd:nJ.useCallback(()=>d(e=>e+1),[]),onToastRemove:nJ.useCallback(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:a})})};rW.displayName=rP;var rB="ToastViewport",rQ=["F8"],rH="toast.viewportPause",rG="toast.viewportResume",rJ=nJ.forwardRef((e,t)=>
42{let{__scopeToast:n,hotkey:r=rQ,label:i="Notifications ({hotkey})",...o}=e,a=rU(rB,n),s=rF(n),c=nJ.useRef(null),l=nJ.useRef(null),d=nJ.useRef(null),f=nJ.useRef(null),p=(0,rk.e)(t,f,a.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=a.toastCount>0;nJ.useEffect(()=>{let e=e=>{let t=0!==r.length&&r.every(t=>e[t]||e.code===t);t&&f.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r]),nJ.useEffect(()=>{let e=c.current,t=f.current;if(m&&e&&t){let n=()=>{if(!a.isClosePausedRef.current){let e=new CustomEvent(rH);t.dispatchEvent(e),a.isClosePausedRef.current=!0}},r=()=>{if(a.isClosePausedRef.current){let e=new CustomEvent(rG);t.dispatchEvent(e),a.isClosePausedRef.current=!1}},i=t=>{let n=!e.contains(t.relatedTarget);n&&r()},o=()=>{let t=e.contains(document.activeElement);t||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",i),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",o),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",i),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",o),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}},[m,a.isClosePausedRef]);let y=nJ.useCallback(({tabbingDirection:e})=>{let t=s(),n=t.map(t=>{let n=t.ref.current,r=[n,...function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(n)];return"forwards"===e?r:r.reverse()});return("forwards"===e?n.reverse():n).flat()},[s]);return nJ.useEffect(()=>{let e=f.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey,r="Tab"===t.key&&!n;if(r){let n=document.activeElement,r=t.shiftKey,i=t.target===e;if(i&&r){l.current?.focus();return}let o=y({tabbingDirection:r?"backwards":"forwards"}),a=o.findIndex(e=>e===n);ii(o.slice(a+1))?t.preventDefault():r?l.current?.focus():d.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[s,y]),(0,u.jsxs)(rI.I0,{ref:c,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:m?void 0:"none"},children:[m&&(0,u.jsx)(rY,{ref:l,onFocusFromOutsideViewport:()=>{let e=y({tabbingDirection:"forwards"});ii(e)}}),(0,u.jsx)(rL.Slot,{scope:n,children:(0,u.jsx)(rR.WV.ol,{tabIndex:-1,...o,ref:p})}),m&&(0,u.jsx)(rY,{ref:d,onFocusFromOutsideViewport:()=>{let e=y({tabbingDirection:"backwards"});ii(e)}})]})});rJ.displayName=rB;var rX="ToastFocusProxy",rY=nJ.forwardRef((e,t)=>{let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,o=rU(rX,n);return(0,u.jsx)(rA.T,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:e=>{let t=e.relatedTarget,n=!o.viewport?.contains(t);n&&r()}})});rY.displayName=rX;var rK="Toast",rZ=nJ.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:i,onOpenChange:o,...a}=e,[s=!0,c]=(0,rN.T)({prop:r,defaultProp:i,onChange:o});return(0,u.jsx)(rD.z,{present:n||s,children:(0,u.jsx)(r2,{open:s,...a,ref:t,onClose:()=>c(!1),onPause:(0,rM.W)(e.onPause),onResume:(0,rM.W)(e.onResume),onSwipeStart:(0,rx.M)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,rx.M)(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)}
42),onSwipeCancel:(0,rx.M)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,rx.M)(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),c(!1)})})})});rZ.displayName=rK;var[r0,r1]=rV(rK,{onClose(){}}),r2=nJ.forwardRef((e,t)=>{let{__scopeToast:n,type:r="foreground",duration:i,open:o,onClose:a,onEscapeKeyDown:s,onPause:c,onResume:l,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:p,onSwipeEnd:h,...m}=e,y=rU(rK,n),[v,g]=nJ.useState(null),b=(0,rk.e)(t,e=>g(e)),_=nJ.useRef(null),w=nJ.useRef(null),E=i||y.duration,S=nJ.useRef(0),x=nJ.useRef(E),k=nJ.useRef(0),{onToastAdd:T,onToastRemove:O}=y,I=(0,rM.W)(()=>{let e=v?.contains(document.activeElement);e&&y.viewport?.focus(),a()}),C=nJ.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(k.current),S.current=new Date().getTime(),k.current=window.setTimeout(I,e))},[I]);nJ.useEffect(()=>{let e=y.viewport;if(e){let t=()=>{C(x.current),l?.()},n=()=>{let e=new Date().getTime()-S.current;x.current=x.current-e,window.clearTimeout(k.current),c?.()};return e.addEventListener(rH,n),e.addEventListener(rG,t),()=>{e.removeEventListener(rH,n),e.removeEventListener(rG,t)}}},[y.viewport,E,c,l,C]),nJ.useEffect(()=>{o&&!y.isClosePausedRef.current&&C(E)},[o,E,y.isClosePausedRef,C]),nJ.useEffect(()=>(T(),()=>O()),[T,O]);let D=nJ.useMemo(()=>v?function e(t){let n=[],r=Array.from(t.childNodes);return r.forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&n.push(t.textContent),t.nodeType===t.ELEMENT_NODE){let r=t.ariaHidden||t.hidden||"none"===t.style.display,i=""===t.dataset.radixToastAnnounceExclude;if(!r){if(i){let e=t.dataset.radixToastAnnounceAlt;e&&n.push(e)}else n.push(...e(t))}}}),n}(v):null,[v]);return y.viewport?(0,u.jsxs)(u.Fragment,{children:[D&&(0,u.jsx)(r3,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite","aria-atomic":!0,children:D}),(0,u.jsx)(r0,{scope:n,onClose:I,children:rS.createPortal((0,u.jsx)(rL.ItemSlot,{scope:n,children:(0,u.jsx)(rI.fC,{asChild:!0,onEscapeKeyDown:(0,rx.M)(s,()=>{y.isFocusedToastEscapeKeyDownRef.current||I(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,u.jsx)(rR.WV.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":y.swipeDirection,...m,ref:b,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,rx.M)(e.onKeyDown,e=>{"Escape"!==e.key||(s?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:(0,rx.M)(e.onPointerDown,e=>{0===e.button&&(_.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,rx.M)(e.onPointerMove,e=>{if(!_.current)return;let t=e.clientX-_.current.x,n=e.clientY-_.current.y,r=Boolean(w.current),i=["left","right"].includes(y.swipeDirection),o=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,a=i?o(0,t):0,s=i?0:o(0,n),u="touch"===e.pointerType?10:2,c={x:a,y:s},l={originalEvent:e,delta:c};r?(w.current=c,it("toast.swipeMove",f,l,{discrete:!1})):ir(c,y.swipeDirection,u)?(w.current=c,it("toast.swipeStart",d,l,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>u||Math.abs(n)>u)&&(_.current=null)}),onPointerUp:(0,rx.M)(e.onPointerUp,e=>{let t=w.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),w.current=null,_.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};ir(t,y.swipeDirection,y.swipeThreshold)?it("toast.swipeEnd",h,r,{discrete:!0}):it("toast.swipeCancel",p,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),r3=e=>{let{__scopeToast:t,children:n,...r}=e,i=rU(rK,t),[o,a]=nJ.useState(!1),[s,c]=nJ.useState(!1);return function(e=()=>{}){let t=(0,rM.W)(e);(0,rj.b)(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>a(!0)),nJ.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),s?null:(0,u.jsx)(rC.h,{asChild:!0,children:(0,u.jsx)(rA.T,{...r,children:o&&(0,u.jsxs)(u.Fragment,{children:[i.label," ",n]})})})},r5=nJ.forwardRef((e,t)=>
42{let{__scopeToast:n,...r}=e;return(0,u.jsx)(rR.WV.div,{...r,ref:t})});r5.displayName="ToastTitle";var r4=nJ.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,u.jsx)(rR.WV.div,{...r,ref:t})});r4.displayName="ToastDescription";var r6="ToastAction",r7=nJ.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,u.jsx)(ie,{altText:n,asChild:!0,children:(0,u.jsx)(r8,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${r6}\`. Expected non-empty \`string\`.`),null)});r7.displayName=r6;var r9="ToastClose",r8=nJ.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,i=r1(r9,n);return(0,u.jsx)(ie,{asChild:!0,children:(0,u.jsx)(rR.WV.button,{type:"button",...r,ref:t,onClick:(0,rx.M)(e.onClick,i.onClose)})})});r8.displayName=r9;var ie=nJ.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...i}=e;return(0,u.jsx)(rR.WV.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function it(e,t,n,{discrete:r}){let i=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,rR.jH)(i,o):i.dispatchEvent(o)}var ir=(e,t,n=0)=>{let r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return"left"===t||"right"===t?o&&r>n:!o&&i>n};function ii(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}let io=nJ.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,u.jsx)(rJ,{ref:t,className:(0,ru.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",n),...r})});io.displayName=rJ.displayName;let ia=(0,rs.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),is=nJ.forwardRef((e,t)=>{let{className:n,variant:r,...i}=e;return(0,u.jsx)(rZ,{ref:t,className:(0,ru.cn)(ia({variant:r}),n),...i})});is.displayName=rZ.displayName;let iu=nJ.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,u.jsx)(r7,{ref:t,className:(0,ru.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",n),...r})});iu.displayName=r7.displayName;let ic=nJ.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,u.jsx)(r8,{ref:t,className:(0,ru.cn)("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",n),"toast-close":"",...r,children:(0,u.jsx)(ri.default,{className:"h-4 w-4"})})});ic.displayName=r8.displayName;let il=nJ.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,u.jsx)(r5,{ref:t,className:(0,ru.cn)("text-sm font-semibold [&+div]:text-xs",n),...r})});il.displayName=r5.displayName;let id=nJ.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,u.jsx)(r4,{ref:t,className:(0,ru.cn)("text-sm opacity-90",n),...r})});function ip(){let{toasts:e}=(0,rE.pm)();return(0,u.jsxs)(rW,{children:[e.map(function(e){let{id:t,title:n,description:r,action:i,...o}=e;return(0,u.jsxs)(is,{...o,children:[(0,u.jsxs)("div",{className:"grid gap-1",children:[n&&(0,u.jsx)(il,{children:n}),r&&(0,u.jsx)(id,{children:r})]}),i,(0,u.jsx)(ic,{})]},t)}),(0,u.jsx)(io,{})]})}id.displayName=r4.displayName;let ih=new ne({uri:"".concat("https://vanzzz-backend-production.up.railway.app","/graphql"),cache:new nG});function im(e){let{Component:t,pageProps:n}=e,r=(0,rb.usePathname)(),i="/"===r;return(0,u.jsx)(nK.dr,{children:(0,u.jsxs)(nY,{client:ih,children:[(null==r?void 0:r.includes("/dashboard"))?(0,u.jsx)(t,{...n}):(0,u.jsx)(rw,{withLinks:i,changeOnScroll:i,children:(0,u.jsx)(t,{...n})}),(0,u.jsx)(ip,{})]})})}},5759:function(){},77663:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u=[],c=!1,l=-1;function d(){c&&r&&(c=!1,r.length?u=r.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(r=u,u=[];++l<t;)r&&r[l].run();l=-1,t=u.length}r=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||c||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},25675:function(e,t,n){e.exports=n(28045)},41664:function(e,t,n){e.exports=n(48418)},39332:function(e,t,n){e.exports=n(91874)},11163:function(e,t,n){e.exports=n(90387)},71642:function(e,t,n){"use strict";n.d(t,{Av:function(){return a},pF:function(){return r},xv:function(){return o},zi:function(){return i}});
42var r="right-scroll-bar-position",i="width-before-scroll-bar",o="with-scroll-bars-hidden",a="--removed-body-scroll-bar-size"},37087:function(e,t,n){"use strict";n.d(t,{jp:function(){return m}});var r=n(67294),i=n(6525),o=n(71642),a={left:0,top:0,right:0,gap:0},s=function(e){return parseInt(e||"",10)||0},u=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[s(n),s(r),s(i)]},c=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return a;var t=u(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},l=(0,i.Ws)(),d="data-scroll-locked",f=function(e,t,n,r){var i=e.left,a=e.top,s=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n  .".concat(o.xv," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(u,"px ").concat(r,";\n  }\n  body[").concat(d,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(u,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(o.pF," {\n    right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(o.zi," {\n    margin-right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(o.pF," .").concat(o.pF," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(o.zi," .").concat(o.zi," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(d,"] {\n    ").concat(o.Av,": ").concat(u,"px;\n  }\n")},p=function(){var e=parseInt(document.body.getAttribute(d)||"0",10);return isFinite(e)?e:0},h=function(){r.useEffect(function(){return document.body.setAttribute(d,(p()+1).toString()),function(){var e=p()-1;e<=0?document.body.removeAttribute(d):document.body.setAttribute(d,e.toString())}},[])},m=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,o=void 0===i?"margin":i;h();var a=r.useMemo(function(){return c(o)},[o]);return r.createElement(l,{styles:f(a,!t,o,n?"":"!important")})}},42026:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var r=n(70655),i=n(67294),o=n(71642),a=n(99495),s=(0,n(87122)._)(),u=function(){},c=i.forwardRef(function(e,t){var n=i.useRef(null),o=i.useState({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:u}),c=o[0],l=o[1],d=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,y=e.shards,v=e.sideCar,g=e.noIsolation,b=e.inert,_=e.allowPinchZoom,w=e.as,E=e.gapMode,S=(0,r.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=(0,a.q)([n,t]),k=(0,r.__assign)((0,r.__assign)({},S),c);return i.createElement(i.Fragment,null,m&&i.createElement(v,{sideCar:s,removeScrollBar:h,shards:y,noIsolation:g,inert:b,setCallbacks:l,allowPinchZoom:!!_,lockRef:n,gapMode:E}),d?i.cloneElement(i.Children.only(f),(0,r.__assign)((0,r.__assign)({},k),{ref:x})):i.createElement(void 0===w?"div":w,(0,r.__assign)({},k,{className:p,ref:x}),f))});c.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},c.classNames={fullWidth:o.zi,zeroRight:o.pF};var l=n(66781),d=n(37087),f=n(6525),p=!1;if("undefined"!=typeof window)try{var h=Object.defineProperty({},"passive",{get:function(){return p=!0,!0}});window.addEventListener("test",h,h),window.removeEventListener("test",h,h)}catch(e){p=!1}var m=!!p&&{passive:!1},y=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},v=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),g(e,r)){var i=b(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},g=function(e,t){return"v"===e?y(t,"overflowY"):y(t,"overflowX")},b=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},_=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,u=n.target,c=t.contains(u),l=!1,d=s>0,f=0,p=0;do{var h=b(e,u),m=h[0],y=h[1]-h[2]-a*m;(m||y)&&g(e,u)&&(f+=y,p+=m),u=u instanceof ShadowRoot?u.host:u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(i&&1>Math.abs(f)||!i&&s>f)?l=!0:!d&&(i&&1>Math.abs(p)||!i&&-s>p)&&(l=!0),l},w=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},E=function(e){return[e.deltaX,e.deltaY]},S=function(e){return e&&"current"in e?e.current:e},x=0,k=[],T=(0,l.L)(s,function(e){var t=i.useRef([]),n=i.useRef([0,0]),o=i.useRef(),a=i.useState(x++)[0],s=i.useState(f.Ws)[0],u=i.useRef(e);i.useEffect(function(){u.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,r.__spreadArray)([e.lockRef.current],(e.shards||[]).map(S),!0).filter(
42Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!u.current.allowPinchZoom;var r,i=w(e),a=n.current,s="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],l=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=v(d,l);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=v(d,l)),!f)return!1;if(!o.current&&"changedTouches"in e&&(s||c)&&(o.current=r),!r)return!0;var p=o.current||r;return _(p,t,e,"h"===p?s:c,!0)},[]),l=i.useCallback(function(e){if(k.length&&k[k.length-1]===s){var n="deltaY"in e?E(e):w(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(u.current.shards||[]).map(S).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?c(e,i[0]):!u.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),p=i.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),h=i.useCallback(function(e){n.current=w(e),o.current=void 0},[]),y=i.useCallback(function(t){p(t.type,E(t),t.target,c(t,e.lockRef.current))},[]),g=i.useCallback(function(t){p(t.type,w(t),t.target,c(t,e.lockRef.current))},[]);i.useEffect(function(){return k.push(s),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:g}),document.addEventListener("wheel",l,m),document.addEventListener("touchmove",l,m),document.addEventListener("touchstart",h,m),function(){k=k.filter(function(e){return e!==s}),document.removeEventListener("wheel",l,m),document.removeEventListener("touchmove",l,m),document.removeEventListener("touchstart",h,m)}},[]);var b=e.removeScrollBar,T=e.inert;return i.createElement(i.Fragment,null,T?i.createElement(s,{styles:"\n  .block-interactivity-".concat(a," {pointer-events: none;}\n  .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,b?i.createElement(d.jp,{gapMode:e.gapMode}):null)}),O=i.forwardRef(function(e,t){return i.createElement(c,(0,r.__assign)({},e,{ref:t,sideCar:T}))});O.classNames=c.classNames;var I=O},6525:function(e,t,n){"use strict";n.d(t,{Ws:function(){return s}});var r,i=n(67294),o=function(){var e=0,t=null;return{add:function(i){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},a=function(){var e=o();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},s=function(){var e=a();return function(t){return e(t.styles,t.dynamic),null}}},70655:function(e,t,n){"use strict";n.r(t),n.d(t,{__assign:function(){return o},__asyncDelegator:function(){return k},__asyncGenerator:function(){return x},__asyncValues:function(){return T},__await:function(){return S},__awaiter:function(){return h},__classPrivateFieldGet:function(){return R},__classPrivateFieldIn:function(){return N},__classPrivateFieldSet:function(){return M},__createBinding:function(){return y},__decorate:function(){return s},__esDecorate:function(){return c},__exportStar:function(){return v},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return D},__importStar:function(){return C}
vendor: 4,542 bytes, line 42
42,__makeTemplateObject:function(){return O},__metadata:function(){return p},__param:function(){return u},__propKey:function(){return d},__read:function(){return b},__rest:function(){return a},__runInitializers:function(){return l},__setFunctionName:function(){return f},__spread:function(){return _},__spreadArray:function(){return E},__spreadArrays:function(){return w},__values:function(){return g}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t,n,r,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,u=r.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!t&&e?r.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),f=!1,p=n.length-1;p>=0;p--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var y=(0,n[p])("accessor"===u?{get:d.get,set:d.set}:d[c],h);if("accessor"===u){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw TypeError("Object expected");(s=a(y.get))&&(d.get=s),(s=a(y.set))&&(d.set=s),(s=a(y.init))&&i.push(s)}else(s=a(y))&&("field"===u?i.push(s):d[c]=s)}l&&Object.defineProperty(l,r.name,d),f=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function m(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(u){return function(s){if(n)throw 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,u])}}}var y=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);
42(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function v(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||y(t,e,n)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function w(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function E(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function S(e){return this instanceof S?(this.v=e,this):new S(e)}function x(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{var n;(n=i[e](t)).value instanceof S?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function k(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:S(e[r](t)),done:!1}:i?i(t):t}:i}}function T(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&y(t,e,n);return I(t,e),t}function D(e){return e&&e.__esModule?e:{default:e}}function R(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function M(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function N(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},99495:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});var r=n(67294);function i(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,a=new WeakMap;function s(e,t){var n,s,u,c=(n=t||null,s=function(t){return e.forEach(function(e){return i(e,t)})},(u=(0,r.useState)(function(){return{value:n,callback:s,facade:{get current(){return u.value},set current(value){var e=u.value;e!==value&&(u.value=value,u.callback(value,e))}}}})[0]).callback=s,u.facade);return o(function(){var t=a.get(c);if(t){var n=new Set(t),r=new Set(e),o=c.current;
42n.forEach(function(e){r.has(e)||i(e,null)}),r.forEach(function(e){n.has(e)||i(e,o)})}a.set(c,e)},[e]),c}},66781:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(70655),i=n(67294),o=function(e){var t=e.sideCar,n=(0,r.__rest)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw Error("Sidecar medium not found");return i.createElement(o,(0,r.__assign)({},n))};function a(e,t){return e.useMedium(t),o}o.isSideCarExport=!0},87122:function(e,t,n){"use strict";n.d(t,{_:function(){return o}});var r=n(70655);function i(e){return e}function o(e){void 0===e&&(e={});var t,n,o,a=(void 0===t&&(t=i),n=[],o=!1,{read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var r=t(e,o);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return a.options=(0,r.__assign)({async:!0,ssr:!1},e),a}},1644:function(e,t,n){"use strict";var r,i;function o(e){return!!e&&e<7}n.d(t,{I:function(){return r},O:function(){return o}}),(i=r||(r={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error"},30990:function(e,t,n){"use strict";n.d(t,{MS:function(){return s},YG:function(){return o},cA:function(){return c},ls:function(){return a}});var r=n(70655);n(13917);var i=n(13154),o=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function s(e){return e.hasOwnProperty("graphQLErrors")}var u=function(e){var t=(0,r.__spreadArray)((0,r.__spreadArray)((0,r.__spreadArray)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,i.s)(e)&&e.message||"Error message not found."}).join("\n")},c=function(e){function t(n){var r=n.graphQLErrors,i=n.protocolErrors,o=n.clientErrors,a=n.networkError,s=n.errorMessage,c=n.extraInfo,l=e.call(this,s)||this;return l.name="ApolloError",l.graphQLErrors=r||[],l.protocolErrors=i||[],l.clientErrors=o||[],l.networkError=a||null,l.message=s||u(l),l.extraInfo=c,l.__proto__=t.prototype,l}return(0,r.__extends)(t,e),t}(Error)},85317:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(67294),i=n(30320).aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function o(){var e=r.createContext[i];return e||(Object.defineProperty(r.createContext,i,{value:e=r.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},21436:function(e,t,n){"use strict";n.d(t,{O:function(){return i},k:function(){return r}});var r=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},30320:function(e,t,n){"use strict";n.d(t,{DN:function(){return s},JC:function(){return l},aS:function(){return a},mr:function(){return i},sy:function(){return o}});var r=n(13917),i="function"==typeof WeakMap&&"ReactNative"!==(0,r.wY)(function(){return navigator.product}),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s=a&&Symbol.asyncIterator,u="function"==typeof(0,r.wY)(function(){return window.document.createElement}),c=(0,r.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,l=u&&!c},53712:function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var r=e[t];void 0!==r&&(n[t]=r)})}),n}n.d(t,{o:function(){return r}})},48702:function(e,t,n){"use strict";n.d(t,{J:function(){return i}}),n(13917);var r=n(13154);function i(e){if(__DEV__){var t;
42(t=new Set([e])).forEach(function(e){(0,r.s)(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(n){(0,r.s)(e[n])&&t.add(e[n])})})}return e}},14012:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=n(70655),i=n(53712);function o(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,r.__assign)((0,r.__assign)({},e&&e.variables),t.variables)})}},13154:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,{s:function(){return r}})},13917:function(e,t,n){"use strict";n.d(t,{ej:function(){return u},kG:function(){return c},wY:function(){return p}});var r,i=n(70655),o="Invariant Violation",a=Object.setPrototypeOf,s=void 0===a?function(e,t){return e.__proto__=t,e}:a,u=function(e){function t(n){void 0===n&&(n=o);var r=e.call(this,"number"==typeof n?o+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=o,s(r,t.prototype),r}return(0,i.__extends)(t,e),t}(Error);function c(e,t){if(!e)throw new u(t)}var l=["debug","log","warn","error","silent"],d=l.indexOf("log");function f(e){return function(){if(l.indexOf(e)>=d)return(console[e]||console.log).apply(console,arguments)}}function p(e){try{return e()}catch(e){}}(r=c||(c={})).debug=f("debug"),r.log=f("log"),r.warn=f("warn"),r.error=f("error");var h=p(function(){return globalThis})||p(function(){return window})||p(function(){return self})||p(function(){return global})||p(function(){return p.constructor("return this")()}),m="__DEV__",y=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(h,m,{value:"production"!==p(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),h[m]}}(),v=n(83454);function g(e){try{return e()}catch(e){}}var b=g(function(){return globalThis})||g(function(){return window})||g(function(){return self})||g(function(){return global})||g(function(){return g.constructor("return this")()}),_=!1;!b||g(function(){return"production"})||g(function(){return v})||(Object.defineProperty(b,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),_=!0),n(51270).H,_&&(delete b.process,_=!1),__DEV__?c("boolean"==typeof y,y):c("boolean"==typeof y,39)},36206:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{M:function(){return r}})},65936:function(e,t,n){"use strict";n.d(t,{B:function(){return u}});var r=n(67294),i=n(25360),o=n(28771),a=n(88426),s=n(85893);function u(e){let t=e+"CollectionProvider",[n,u]=(0,i.b)(t),[c,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,i=r.useRef(null),o=r.useRef(new Map).current;return(0,s.jsx)(c,{scope:t,itemMap:o,collectionRef:i,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=l(f,n),u=(0,o.e)(t,i.collectionRef);return(0,s.jsx)(a.g7,{ref:u,children:r})});p.displayName=f;let h=e+"CollectionItemSlot",m="data-radix-collection-item",y=r.forwardRef((e,t)=>{let{scope:n,children:i,...u}=e,c=r.useRef(null),d=(0,o.e)(t,c),f=l(h,n);return r.useEffect(()=>(f.itemMap.set(c,{ref:c,...u}),()=>void f.itemMap.delete(c))),(0,s.jsx)(a.g7,{[m]:"",ref:d,children:i})});return y.displayName=h,[{Provider:d,Slot:p,ItemSlot:y},function(t){let n=l(e+"CollectionConsumer",t),i=r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return i},u]}},28771:function(e,t,n){"use strict";n.d(t,{F:function(){return o},e:function(){return a}});var r=n(67294);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function a(...e){return r.useCallback(o(...e),e)}},25360:function(e,t,n){"use strict";n.d(t,{b:function(){return a},k:function(){return o}});var r=n(67294),i=n(85893);function o(e,t){let n=r.createContext(t),o=e=>{let{children:t,...o}=e,a=r.useMemo(()=>o,Object.values(o));return(0,i.jsx)(n.Provider,{value:a,children:t})};return o.displayName=e+"Provider",[o,function(i){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function a(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,o){let a=r.createContext(o),s=n.length;n=[...n,o];let u=t=>{let{scope:n,children:o,...u}=t,c=n?.[e]?.[s]||a,l=r.useMemo(()=>u,Object.values(u));return(0,i.jsx)(c.Provider,{value:l,children:o})};return u.displayName=t+"Provider",[u,function(n,i){let u=i?.[e]?.[s]||a,c=r.useContext(u);if(c)return c;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},12854:function(e,t,n){"use strict";n.d(t,{Dx:function(){return en},VY:function(){return et},aV:function(){return ee},dk:function(){return er},fC:function(){return Y},h_:function(){return Z},hg:function(){return T},jm:function(){return H},p8:function(){return w}
42,x8:function(){return ei},xz:function(){return K}});var r=n(67294),i=n(36206),o=n(28771),a=n(25360),s=n(91276),u=n(77342),c=n(46063),l=n(95420),d=n(42651),f=n(29115),p=n(75320),h=n(27552),m=n(42026),y=n(23541),v=n(88426),g=n(85893),b="Dialog",[_,w]=(0,a.b)(b),[E,S]=_(b),x=e=>{let{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:a,modal:c=!0}=e,l=r.useRef(null),d=r.useRef(null),[f=!1,p]=(0,u.T)({prop:i,defaultProp:o,onChange:a});return(0,g.jsx)(E,{scope:t,triggerRef:l,contentRef:d,contentId:(0,s.M)(),titleId:(0,s.M)(),descriptionId:(0,s.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:c,children:n})};x.displayName=b;var k="DialogTrigger",T=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=S(k,n),s=(0,o.e)(t,a.triggerRef);return(0,g.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":B(a.open),...r,ref:s,onClick:(0,i.M)(e.onClick,a.onOpenToggle)})});T.displayName=k;var O="DialogPortal",[I,C]=_(O,{forceMount:void 0}),D=e=>{let{__scopeDialog:t,forceMount:n,children:i,container:o}=e,a=S(O,t);return(0,g.jsx)(I,{scope:t,forceMount:n,children:r.Children.map(i,e=>(0,g.jsx)(f.z,{present:n||a.open,children:(0,g.jsx)(d.h,{asChild:!0,container:o,children:e})}))})};D.displayName=O;var R="DialogOverlay",M=r.forwardRef((e,t)=>{let n=C(R,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=S(R,e.__scopeDialog);return o.modal?(0,g.jsx)(f.z,{present:r||o.open,children:(0,g.jsx)(N,{...i,ref:t})}):null});M.displayName=R;var N=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=S(R,n);return(0,g.jsx)(m.Z,{as:v.g7,allowPinchZoom:!0,shards:[i.contentRef],children:(0,g.jsx)(p.WV.div,{"data-state":B(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),j="DialogContent",A=r.forwardRef((e,t)=>{let n=C(j,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=S(j,e.__scopeDialog);return(0,g.jsx)(f.z,{present:r||o.open,children:o.modal?(0,g.jsx)(P,{...i,ref:t}):(0,g.jsx)(L,{...i,ref:t})})});A.displayName=j;var P=r.forwardRef((e,t)=>{let n=S(j,e.__scopeDialog),a=r.useRef(null),s=(0,o.e)(t,n.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,y.Ry)(e)},[]),(0,g.jsx)(F,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,i.M)(e.onFocusOutside,e=>e.preventDefault())})}),L=r.forwardRef((e,t)=>{let n=S(j,e.__scopeDialog),i=r.useRef(!1),o=r.useRef(!1);return(0,g.jsx)(F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||n.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let r=t.target,a=n.triggerRef.current?.contains(r);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),F=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,...u}=e,d=S(j,n),f=r.useRef(null),p=(0,o.e)(t,f);return(0,h.EW)(),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.M,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,g.jsx)(c.XB,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":B(d.open),...u,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(J,{titleId:d.titleId}),(0,g.jsx)(X,{contentRef:f,descriptionId:d.descriptionId})]})]})}),q="DialogTitle",V=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=S(q,n);return(0,g.jsx)(p.WV.h2,{id:i.titleId,...r,ref:t})});V.displayName=q;var z="DialogDescription",$=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=S(z,n);return(0,g.jsx)(p.WV.p,{id:i.descriptionId,...r,ref:t})});$.displayName=z;var U="DialogClose",W=r.forwardRef((e,t)=>
42{let{__scopeDialog:n,...r}=e,o=S(U,n);return(0,g.jsx)(p.WV.button,{type:"button",...r,ref:t,onClick:(0,i.M)(e.onClick,()=>o.onOpenChange(!1))})});function B(e){return e?"open":"closed"}W.displayName=U;var Q="DialogTitleWarning",[H,G]=(0,a.k)(Q,{contentName:j,titleName:q,docsSlug:"dialog"}),J=({titleId:e})=>{let t=G(Q),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
43
44If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
45
46For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return r.useEffect(()=>{if(e){let t=document.getElementById(e);t||console.error(n)}},[n,e]),null},X=({contentRef:e,descriptionId:t})=>{let n=G("DialogDescriptionWarning"),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return r.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");if(t&&n){let e=document.getElementById(t);e||console.warn(i)}},[i,e,t]),null},Y=x,K=T,Z=D,ee=M,et=A,en=V,er=$,ei=W},46063:function(e,t,n){"use strict";n.d(t,{I0:function(){return v},XB:function(){return f},fC:function(){return y}});var r,i=n(67294),o=n(36206),a=n(75320),s=n(28771),u=n(79698),c=n(85893),l="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:y,onInteractOutside:v,onDismiss:g,...b}=e,_=i.useContext(d),[w,E]=i.useState(null),S=w?.ownerDocument??globalThis?.document,[,x]=i.useState({}),k=(0,s.e)(t,e=>
46E(e)),T=Array.from(_.layers),[O]=[..._.layersWithOutsidePointerEventsDisabled].slice(-1),I=T.indexOf(O),C=w?T.indexOf(w):-1,D=_.layersWithOutsidePointerEventsDisabled.size>0,R=C>=I,M=function(e,t=globalThis?.document){let n=(0,u.W)(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){m("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[..._.branches].some(e=>e.contains(t));!R||n||(p?.(e),v?.(e),e.defaultPrevented||g?.())},S),N=function(e,t=globalThis?.document){let n=(0,u.W)(e),r=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!r.current&&m("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[..._.branches].some(e=>e.contains(t));n||(y?.(e),v?.(e),e.defaultPrevented||g?.())},S);return function(e,t=globalThis?.document){let n=(0,u.W)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{let t=C===_.layers.size-1;t&&(f?.(e),!e.defaultPrevented&&g&&(e.preventDefault(),g()))},S),i.useEffect(()=>{if(w)return n&&(0===_.layersWithOutsidePointerEventsDisabled.size&&(r=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),_.layersWithOutsidePointerEventsDisabled.add(w)),_.layers.add(w),h(),()=>{n&&1===_.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=r)}},[w,S,n,_]),i.useEffect(()=>()=>{w&&(_.layers.delete(w),_.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,_]),i.useEffect(()=>{let e=()=>x({});return document.addEventListener(l,e),()=>document.removeEventListener(l,e)},[]),(0,c.jsx)(a.WV.div,{...b,ref:k,style:{pointerEvents:D?R?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.M)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,o.M)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,o.M)(e.onPointerDownCapture,M.onPointerDownCapture)})});f.displayName="DismissableLayer";var p=i.forwardRef((e,t)=>{let n=i.useContext(d),r=i.useRef(null),o=(0,s.e)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(a.WV.div,{...e,ref:o})});function h(){let e=new CustomEvent(l);document.dispatchEvent(e)}function m(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,a.jH)(i,o):i.dispatchEvent(o)}p.displayName="DismissableLayerBranch";var y=f,v=p},27552:function(e,t,n){"use strict";n.d(t,{EW:function(){return o}});var r=n(67294),i=0;function o(){r.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??a()),document.body.insertAdjacentElement("beforeend",e[1]??a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},95420:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var i=n(67294),o=n(28771),a=n(75320),s=n(79698),u=n(85893),c="focusScope.autoFocusOnMount",l="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:v,...g}=e,[b,_]=i.useState(null),w=(0,s.W)(f),E=(0,s.W)(v),S=i.useRef(null),x=(0,o.e)(t,e=>_(e)),k=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(k.paused||!b)return;let t=e.target;b.contains(t)?S.current=t:m(S.current,{select:!0})},t=function(e){if(k.paused||!b)return;let t=e.relatedTarget;null===t||b.contains(t)||m(S.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){let t=document.activeElement;if(t===document.body)for(let t of e)t.removedNodes.length>0&&m(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,b,k.paused]),i.useEffect(()=>{if(b){y.add(k);let e=document.activeElement,t=b.contains(e);if(!t){let t=new CustomEvent(c,d);b.addEventListener(c,w),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(p(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(b))}return()=>{b.removeEventListener(c,w),setTimeout(()=>{let t=new CustomEvent(l,d);b.addEventListener(l,E),b.dispatchEvent(t),t.defaultPrevented||m(e??document.body,{select:!0}),b.removeEventListener(l,E),y.remove(k)},0)}}},[b,w,E,k]);let T=i.useCallback(e=>{if(!n&&!r||k.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=p(e),n=h(t,e),r=h(t.reverse(),e);return[n,r]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(o,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,k.paused]);return(0,u.jsx)(a.WV.div,{tabIndex:-1,...g,ref:x,onKeyDown:T})});function p(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function h(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}f.displayName="FocusScope";var y=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=v(r,e)).unshift(e)},remove(e){r=v(r,e),r[0]?.resume()}});function v(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},91276:function(e,t,n){"use strict";n.d(t,{M:function(){return u}});var r,i=n(67294),o=n(9981),a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function u(e){let[t,n]=i.useState(a());return(0,o.b)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},42651:function(e,t,n){"use strict";n.d(t,{h:function(){return u}});var r=n(67294),i=n(73935),o=n(75320),a=n(9981),s=n(85893),u=r.forwardRef((e,t)=>
46{let{container:n,...u}=e,[c,l]=r.useState(!1);(0,a.b)(()=>l(!0),[]);let d=n||c&&globalThis?.document?.body;return d?i.createPortal((0,s.jsx)(o.WV.div,{...u,ref:t}),d):null});u.displayName="Portal"},29115:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var r=n(67294),i=n(28771),o=n(9981),a=e=>{let t,n;let{present:a,children:u}=e,c=function(e){var t;let[n,i]=r.useState(),a=r.useRef({}),u=r.useRef(e),c=r.useRef("none"),[l,d]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,n)=>{let r=t[e][n];return r??e},e?"mounted":"unmounted"));return r.useEffect(()=>{let e=s(a.current);c.current="mounted"===l?e:"none"},[l]),(0,o.b)(()=>{let t=a.current,n=u.current;if(n!==e){let r=c.current,i=s(t);e?d("MOUNT"):"none"===i||t?.display==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),u.current=e}},[e,d]),(0,o.b)(()=>{if(n){let e;let t=n.ownerDocument.defaultView??window,r=r=>{let i=s(a.current),o=i.includes(r.animationName);if(r.target===n&&o&&(d("ANIMATION_END"),!u.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},i=e=>{e.target===n&&(c.current=s(a.current))};return n.addEventListener("animationstart",i),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",i),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}d("ANIMATION_END")},[n,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:r.useCallback(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(a),l="function"==typeof u?u({present:c.isPresent}):r.Children.only(u),d=(0,i.e)(c.ref,(t=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?l.ref:(t=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?l.props.ref:l.props.ref||l.ref);return"function"==typeof u||c.isPresent?r.cloneElement(l,{ref:d}):null};function s(e){return e?.animationName||"none"}a.displayName="Presence"},75320:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return u}});var r=n(67294),i=n(73935),o=n(88426),a=n(85893),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...i}=e,s=r?o.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(s,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function u(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},88426:function(e,t,n){"use strict";n.d(t,{A4:function(){return u},g7:function(){return a}});var r=n(67294),i=n(28771),o=n(85893),a=r.forwardRef((e,t)=>{let{children:n,...i}=e,a=r.Children.toArray(n),u=a.find(c);if(u){let e=u.props.children,n=a.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(s,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,o.jsx)(s,{...i,ref:t,children:n})});a.displayName="Slot";var s=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){let e,a;let s=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?(0,i.F)(t,s):s})}return r.Children.count(n)>1?r.Children.only(null):null});s.displayName="SlotClone";var u=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function c(e){return r.isValidElement(e)&&e.type===u}},79698:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(67294);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}}
46,77342:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(67294),i=n(79698);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[o]=n,a=r.useRef(o),s=(0,i.W)(t);return r.useEffect(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,u=(0,i.W)(n),c=r.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u]);return[s?e:o,c]}},9981:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(67294),i=Boolean(globalThis?.document)?r.useLayoutEffect:()=>{}},96219:function(e,t,n){"use strict";n.d(t,{T:function(){return a},f:function(){return s}});var r=n(67294),i=n(75320),o=n(85893),a=r.forwardRef((e,t)=>(0,o.jsx)(i.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName="VisuallyHidden";var s=a},84739:function(e,t,n){"use strict";n.d(t,{G:function(){return f}});var r=n(49101),i=n(90759),o=n(84756),a=n(10017);class s{constructor(e,t){let n,r;n=e||new a.s,r=t||new a.s,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t;let n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return(0,i.J8)(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}_popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}}function u(){let e=(0,r.c)(),t=(0,r.q)(e);return t.stack=t.stack||new s((0,o.Y)("defaultCurrentScope",()=>new a.s),(0,o.Y)("defaultIsolationScope",()=>new a.s))}function c(e){return u().withScope(e)}function l(e,t){let n=u();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function d(e){return u().withScope(()=>e(u().getIsolationScope()))}function f(e){let t=(0,r.q)(e);return t.acs?t.acs:{withIsolationScope:d,withScope:c,withSetScope:l,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>u().getScope(),getIsolationScope:()=>u().getIsolationScope()}}},49101:function(e,t,n){"use strict";n.d(t,{c:function(){return o},q:function(){return a}});var r=n(84756),i=n(40539);function o(){return a(r.n),r.n}function a(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||i.J,t[i.J]=t[i.J]||{}}},72189:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="production"},24806:function(e,t,n){"use strict";n.d(t,{$e:function(){return l},aF:function(){return u},lW:function(){return c},nZ:function(){return s},s3:function(){return d}});var r=n(84756),i=n(84739),o=n(49101),a=n(10017);function s(){let e=(0,o.c)(),t=(0,i.G)(e);return t.getCurrentScope()}function u(){let e=(0,o.c)(),t=(0,i.G)(e);return t.getIsolationScope()}function c(){return(0,r.Y)("globalScope",()=>new a.s)}function l(...e){let t=(0,o.c)(),n=(0,i.G)(t);if(2===e.length){let[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}function d(){return s().getClient()}},62066:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},11027:function(e,t,n){"use strict";n.d(t,{Qy:function(){return m},Tb:function(){return l},YA:function(){return p},cg:function(){return b},eN:function(){return d},v:function(){return f},yj:function(){return y},yl:function(){return h}});var r=n(42562),i=n(84756),o=n(72189),a=n(24806),s=n(62066),u=n(72271),c=n(77042);function l(e,t){return(0,a.nZ)().captureException(e,(0,c.U0)(t))}function d(e,t){return(0,a.nZ)().captureEvent(e,t)}function f(e,t){(0,a.aF)().setContext(e,t)}function p(e,t){(0,a.aF)().setTag(e,t)}async function h(e){let t=(0,a.s3)();return t?t.flush(e):(s.X&&r.kg.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function m(e){(0,a.aF)().addEventProcessor(e)}function y(e){let t=(0,a.s3)(),n=(0,a.aF)(),r=(0,a.nZ)(),{release:s,environment:c=o.J}=t&&t.getOptions()||{},{userAgent:l}=i.n.navigator||{},d=(0,u.Hv)({release:s,environment:c,user:r.getUser()||n.getUser(),...l&&{userAgent:l},...e}),f=n.getSession();return f&&"ok"===f.status&&(0,u.CT)(f,{status:"exited"}),v(),n.setSession(d),r.setSession(d),d}function v(){let e=(0,a.aF)(),t=(0,a.nZ)(),n=t.getSession()||e.getSession();n&&(0,u.RJ)(n),g(),e.setSession(),t.setSession()}function g(){let e=(0,a.aF)(),t=(0,a.nZ)(),n=(0,a.s3)(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function b(e=!1){if(e){v();return}g()}},13628:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var r=n(27575);function i(e){let t=e._sentryMetrics;if(!t)return;let n={};for(let[,[e,i]]of t)n[e]||(n[e]=[]),n[e].push((0,r.Jr)(i));return n}},10017:function(e,t,n){"use strict";n.d(t,{s:function(){return d}});var r=n(89181),i=n(90759),o=n(30554),a=n(9227),s=n(42562),u=n(72271),c=n(95383);class l{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=(0,r.Q)()}clone(){let e=new l;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,c.D)(e,(0,c.Y)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,u.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}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,[n,r]=t instanceof d?[t.getScopeData(),t.getRequestSession()]:(0,i.PO)(t)?[e,e.requestSession]:[],{tags:o,extra:a,user:s,contexts:u,level:c,fingerprint:l=[],propagationContext:f}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...a},this._contexts={...this._contexts,...u},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),l.length&&(this._fingerprint=l),f&&(this._propagationContext=f),r&&(this._requestSession=r),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._session=void 0,(0,c.D)(this,void 0),this._attachments=[],this._propagationContext=(0,r.Q)(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,o.yW)(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,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}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,c.Y)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:(0,a.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:(0,a.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:(0,a.DM)();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(s.kg.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
46h(e=>{e(this)}),this._notifyingListeners=!1)}}let d=l},12911:function(e,t,n){"use strict";n.d(t,{$J:function(){return o},E1:function(){return u},JQ:function(){return d},S3:function(){return a},TE:function(){return i},Wb:function(){return c},Zj:function(){return r},ju:function(){return s},p6:function(){return l}});let r="sentry.source",i="sentry.sample_rate",o="sentry.op",a="sentry.origin",s="sentry.idle_span_finish_reason",u="sentry.measurement_unit",c="sentry.measurement_value",l="sentry.profile_id",d="sentry.exclusive_time"},72271:function(e,t,n){"use strict";n.d(t,{CT:function(){return s},Hv:function(){return a},RJ:function(){return u}});var r=n(30554),i=n(9227),o=n(27575);function a(e){let t=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,o.Jr)({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};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.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),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{let 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 u(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},8840:function(e,t,n){"use strict";n.d(t,{Lh:function(){return c},_l:function(){return l},jC:function(){return d}});var r=n(27575),i=n(72189),o=n(24806),a=n(12911),s=n(50304);let u="_frozenDsc";function c(e,t){(0,r.xp)(e,u,t)}function l(e,t){let n=t.getOptions(),{publicKey:o}=t.getDsn()||{},a=(0,r.Jr)({environment:n.environment||i.J,release:n.release,public_key:o,trace_id:e});return t.emit("createDsc",a),a}function d(e){let t=(0,o.s3)();if(!t)return{};let n=l((0,s.XU)(e).trace_id||"",t),r=(0,s.Gx)(e);if(!r)return n;let i=r[u];if(i)return i;let c=(0,s.XU)(r),d=c.data||{},f=d[a.TE];null!=f&&(n.sample_rate=`${f}`);let p=d[a.Zj];return p&&"url"!==p&&(n.transaction=c.description),n.sampled=String((0,s.Tt)(r)),t.emit("createDsc",n),n}},80924:function(e,t,n){"use strict";n.d(t,{OP:function(){return i},Q0:function(){return a},jt:function(){return o},pq:function(){return r}});let r=0,i=1,o=2;function a(e,t){e.setAttribute("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"};default:return{code:o,message:"internal_error"}}return{code:o,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}},77042:function(e,t,n){"use strict";n.d(t,{U0:function(){return E},R:function(){return _}});var r=n(9227),i=n(30554),o=n(27202),a=n(84756),s=n(81895),u=n(72189),c=n(24806),l=n(9425),d=n(42562),f=n(90759),p=n(62066),h=n(10017),m=n(27575),y=n(8840),v=n(50304);function g(e,t){let{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:d,propagationContext:f,transactionName:p,span:h}=t;b(e,"extra",n),b(e,"tags",r),b(e,"user",i),b(e,"contexts",o),b(e,"sdkProcessingMetadata",s),a&&(e.level=a),p&&(e.transactionName=p),h&&(e.span=h),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function b(e,t,n){if(n&&Object.keys(n).length)for(let r in e[t]={...e[t]},n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}function _(e,t,n,b,_,E){var S;let{normalizeDepth:x=3,normalizeMaxBreadth:k=1e3}
46=e,T={...t,event_id:t.event_id||n.event_id||(0,r.DM)(),timestamp:t.timestamp||(0,i.yW)()},O=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:u.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,o.$G)(e.message,a));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,o.$G)(s.value,a));let c=e.request;c&&c.url&&(c.url=(0,o.$G)(c.url,a))})(T,e),S=T,O.length>0&&(S.sdk=S.sdk||{},S.sdk.integrations=[...S.sdk.integrations||[],...O]),void 0===t.type&&function(e,t){let n;let r=a.n._sentryDebugIds;if(!r)return;let i=w.get(t);i?n=i:(n=new Map,w.set(t,n));let o=Object.keys(r).reduce((e,i)=>{let o;let a=n.get(i);a?o=a:(o=t(i),n.set(i,o));for(let t=o.length-1;t>=0;t--){let n=o[t];if(n.filename){e[n.filename]=r[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){}}(T,e.stackParser);let I=function(e,t){if(!t)return e;let n=e?e.clone():new h.s;return n.update(t),n}(b,n.captureContext);n.mechanism&&(0,r.EG)(T,n.mechanism);let C=_?_.getEventProcessors():[],D=(0,c.lW)().getScopeData();if(E){let e=E.getScopeData();g(D,e)}if(I){let e=I.getScopeData();g(D,e)}let R=[...n.attachments||[],...D.attachments];R.length&&(n.attachments=R),function(e,t){var n,i;let{fingerprint:o,span:a,breadcrumbs:s,sdkProcessingMetadata:u}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,u=(0,m.Jr)(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});let c=(0,m.Jr)(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});let l=(0,m.Jr)(i);l&&Object.keys(l).length&&(e.user={...l,...e.user});let d=(0,m.Jr)(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),a&&(e.level=a),s&&"transaction"!==e.type&&(e.transaction=s)})(e,t),a&&function(e,t){e.contexts={trace:(0,v.wy)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,y.jC)(t),...e.sdkProcessingMetadata};let n=(0,v.Gx)(t),r=(0,v.XU)(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,a),(n=e).fingerprint=n.fingerprint?(0,r.lE)(n.fingerprint):[],o&&(n.fingerprint=n.fingerprint.concat(o)),n.fingerprint&&!n.fingerprint.length&&delete n.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,s),(i=e).sdkProcessingMetadata={...i.sdkProcessingMetadata,...u}}(T,D);let M=[...C,...D.eventProcessors],N=function e(t,n,r,i=0){return new l.cW((o,a)=>{let s=t[i];if(null===n||"function"!=typeof s)o(n);else{let u=s({...n},r);p.X&&s.id&&null===u&&d.kg.log(`Event processor "${s.id}" dropped event`),(0,f.J8)(u)?u.then(n=>e(t,n,r,i+1).then(o)).then(null,a):e(t,u,r,i+1).then(o).then(null,a)}})}(M,T,n);return N.then(e=>(e&&function(e){let 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||[];let n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof x&&x>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,s.Fv)(e.data,t,n)}}))},...e.user&&{user:(0,s.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,s.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,s.Fv)(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=(0,s.Fv)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,s.Fv)(e.data,t,n)}}))),r}(e,x,k):e)}let w=new WeakMap;function E(e){return e?e instanceof h.s||"function"==typeof e||Object.keys(e).some(e=>S.includes(e))?{captureContext:e}:e:void 0}let S=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},95383:function(e,t,n){"use strict";n.d(t,{D:function(){return o},Y:function(){return a}});var r=n(27575);let i="_sentrySpan";function o(e,t){t?(0,r.xp)(e,i,t):delete e[i]}function a(e){return e[i]}},50304:function(e,t,n){"use strict";n.d(t,{$k:function(){return g},Dp:function(){return O},Gx:function(){return I},HN:function(){return C},HR:function(){return m},Hb:function(){return v},Tt:function(){return w},XU:function(){return _},_4:function(){return E},ed:function(){return T},i0:function(){return h},j5:function(){return k},ve:function(){return p},wy:function(){return y}});var r=n(27575),i=n(57976),o=n(30554),a=n(84739),s=n(49101),u=n(24806),c=n(13628),l=n(12911),d=n(80924),f=n(95383);let p=0,h=1;function m(e){let{spanId:t,traceId:n}=e.spanContext(),{data:i,op:o,parent_span_id:a,status:s,origin:u}=_(e);return(0,r.Jr)({parent_span_id:a,span_id:t,trace_id:n,data:i,op:o,status:s,origin:u})}function y(e){let{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:i}=_(e);return(0,r.Jr)({parent_span_id:i,span_id:t,trace_id:n})}function v(e){let{traceId:t,spanId:n}=e.spanContext(),r=w(e);return(0,i.$p)(t,n,r)}function g(e){return"number"==typeof e?b(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?b(e.getTime()):(0,o.ph)()}function b(e){return e>9999999999?e/1e3:e}function _(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:i,startTime:o,name:a,endTime:s,parentSpanId:u,status:d}=e;return(0,r.Jr)({span_id:t,trace_id:n,data:i,description:a,parent_span_id:u,start_timestamp:g(o),timestamp:g(s)||void 0,status:E(d),op:i[l.$J],origin:i[l.S3],_metrics_summary:(0,c.y)(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function w(e){let{traceFlags:t}=e.spanContext();return t===h}function E(e){return e&&e.code!==d.pq?e.code===d.OP?"ok":e.message||"unknown_error":void 0}let S="_sentryChildSpans",x="_sentryRootSpan";function k(e,t){let n=e[x]||e;(0,r.xp)(t,x,n),e[S]?e[S].add(t):(0,r.xp)(e,S,new Set([t]))}function T(e,t){e[S]&&e[S].delete(t)}function O(e){let t=new Set;return function e(n){if(!t.has(n)&&w(n)){t.add(n);let r=n[S]?Array.from(n[S]):[];for(let t of r)e(t)}}(e),Array.from(t)}function I(e){return e[x]||e}function C(){let e=(0,s.c)(),t=(0,a.G)(e);return t.getActiveSpan?t.getActiveSpan():(0,f.Y)((0,u.nZ)())}},87364:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},6911:function(e,t,n){"use strict";n.d(t,{EN:function(){return c},IQ:function(){return l},bU:function(){return a}});var r=n(61289),i=n(90759),o=n(42562);let a="baggage",s="sentry-",u=/^sentry-/;function c(e){let t=e&&((0,i.HD)(e)||Array.isArray(e))?Array.isArray(e)?e.reduce((e,t)=>
46{let n=d(t);for(let t of Object.keys(n))e[t]=n[t];return e},{}):d(e):void 0;if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(u)){let r=t.slice(s.length);e[r]=n}return e},{});return Object.keys(n).length>0?n:void 0}function l(e){if(!e)return;let t=Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${s}${t}`]=n),e),{});return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],i)=>{let a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===i?a:`${e},${a}`;return s.length>8192?(r.X&&o.kg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s},"")}(t)}function d(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(e[t]=n,e),{})}},72929:function(e,t,n){"use strict";n.d(t,{Rt:function(){return a},iY:function(){return c},l4:function(){return s},qT:function(){return u}});var r=n(90759),i=n(84756);let o=i.n;function a(e,t={}){if(!e)return"<unknown>";try{let n,i=e,a=[],s=0,u=0,c=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;i&&s++<5&&(n=function(e,t){let n,i,a,s,u;let c=[];if(!e||!e.tagName)return"";if(o.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}c.push(e.tagName.toLowerCase());let l=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(l&&l.length)l.forEach(e=>{c.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&c.push(`#${e.id}`),(n=e.className)&&(0,r.HD)(n))for(u=0,i=n.split(/\s+/);u<i.length;u++)c.push(`.${i[u]}`);let d=["aria-label","type","name","title","alt"];for(u=0;u<d.length;u++)a=d[u],(s=e.getAttribute(a))&&c.push(`[${a}="${s}"]`);return c.join("")}(i,c),"html"!==n&&(!(s>1)||!(u+3*a.length+n.length>=l)));)a.push(n),u+=n.length,i=i.parentNode;return a.reverse().join(" > ")}catch(e){return"<unknown>"}}function s(){try{return o.document.location.href}catch(e){return""}}function u(e){return o.document&&o.document.querySelector?o.document.querySelector(e):null}function c(e){if(!o.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},87416:function(e,t,n){"use strict";function r(e,t){return null!=e?e:t()}n.d(t,{h:function(){return r}})},82414:function(e,t,n){"use strict";function r(e){let t;let n=e[0],r=1;for(;r<e.length;){let 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:function(){return r}})},61289:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},90759:function(e,t,n){"use strict";n.d(t,{Cy:function(){return v},HD:function(){return c},J8:function(){return y},Kj:function(){return m},Le:function(){return l},PO:function(){return f},TX:function(){return s},V9:function(){return g},VW:function(){return a},VZ:function(){return i},cO:function(){return p},fm:function(){return u},kK:function(){return h},pt:function(){return d},y1:function(){return b}});let r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return g(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 u(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function l(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||l(e)||"object"!=typeof e&&"function"!=typeof e}function f(e){return o(e,"Object")}function p(e){return"undefined"!=typeof Event&&g(e,Event)}function h(e){return"undefined"!=typeof Element&&g(e,Element)}function m(e){return o(e,"RegExp")}function y(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function v(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function g(e,t){try{return e instanceof t}catch(e){return!1}}function b(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},42562:function(e,t,n){"use strict";n.d(t,{Cf:function(){return s},LD:function(){return a},RU:function(){return o},kg:function(){return u}});var r=n(61289),i=n(84756);let o=["debug","info","warn","error","log","assert","trace"],a={};function s(e){if(!("console"in i.n))return e();let t=i.n.console,n={},r=Object.keys(a);
46r.forEach(e=>{let r=a[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let u=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.X?o.forEach(n=>{t[n]=(...t)=>{e&&s(()=>{i.n.console[n](`Sentry Logger [${n}]:`,...t)})}}):o.forEach(e=>{t[e]=()=>void 0}),t}()},9227:function(e,t,n){"use strict";n.d(t,{DM:function(){return o},Db:function(){return u},EG:function(){return c},YO:function(){return l},jH:function(){return s},lE:function(){return d}});var r=n(27575),i=n(84756);function o(){let e=i.n,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".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){let{message:t,event_id:n}=e;if(t)return t;let r=a(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function u(e,t,n){let 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){let n=a(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function l(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]}},81895:function(e,t,n){"use strict";n.d(t,{Fv:function(){return a},Qy:function(){return function e(t,n=3,r=102400){let i=a(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}}});var r=n(90759),i=n(27575),o=n(20290);function a(e,t=100,n=Infinity){try{return function e(t,n,a=Infinity,s=Infinity,u=function(){let 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++){let r=t[e];if(r===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}}]}()){let[c,l]=u;if(null==n||["number","boolean","string"].includes(typeof n)&&!Number.isNaN(n))return n;let d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,r.y1)(t))return"[VueViewModel]";if((0,r.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${(0,o.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let n=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(n))return`[HTMLElement: ${n}]`;return`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(t,n);if(!d.startsWith("[object "))return d;if(n.__sentry_skip_normalization__)return n;let f="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:a;if(0===f)return d.replace("object ","");if(c(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,f-1,s,u)}catch(e){}let p=Array.isArray(n)?[]:{},h=0,m=(0,i.Sh)(n);for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(h>=s){p[t]="[MaxProperties ~]";break}let n=m[t];p[t]=e(t,n,f-1,s,u),h++}return l(n),p}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},27575:function(e,t,n){"use strict";n.d(t,{$Q:function(){return l},HK:function(){return d},Jr:function(){return v},Sh:function(){return p},_j:function(){return f},hl:function(){return u},xp:function(){return c},zf:function(){return y}});var r=n(72929),i=n(61289),o=n(90759),a=n(42562),s=n(27202);function u(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&l(i,r),e[t]=i}
46function c(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){i.X&&a.kg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function l(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,c(e,"__sentry_original__",t)}catch(e){}}function d(e){return e.__sentry_original__}function f(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function p(e){if((0,o.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if(!(0,o.cO)(e))return e;{let t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...m(e)};return"undefined"!=typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(t.detail=e.detail),t}}function h(e){try{return(0,o.kK)(e)?(0,r.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function m(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function y(e,t=40){let n=Object.keys(p(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,s.$G)(n[0],t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return(0,s.$G)(r,t)}}return""}function v(e){let t=new Map;return function e(t,n){if(function(e){if(!(0,o.PO)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.keys(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,t)}},89181:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});var r=n(9227);function i(){return{traceId:(0,r.DM)(),spanId:(0,r.DM)().substring(16)}}},20290:function(e,t,n){"use strict";n.d(t,{$P:function(){return c},Fi:function(){return r},Fr:function(){return l},Sq:function(){return s},pE:function(){return a}});let r="?",i=/\(error: (.*)\)/,o=/captureMessage|captureException/;function a(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,a=0)=>{let s=[],u=e.split("\n");for(let e=n;e<u.length;e++){let n=u[e];if(n.length>1024)continue;let r=i.test(n)?n.replace(i,"$1"):n;if(!r.match(/\S*Error: /)){for(let e of t){let t=e(r);if(t){s.push(t);break}}if(s.length>=50+a)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),o.test(t[t.length-1].function||"")&&(t.pop(),o.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||r}))}(s.slice(a))}}function s(e){return Array.isArray(e)?a(...e):e}let u="<anonymous>";function c(e){try{if(!e||"function"!=typeof e)return u;return e.name||u}catch(e){return u}}function l(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(e){}}}},27202:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},U0:function(){return a},nK:function(){return o}});var r=n(90759);function i(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let i=e[t];try{(0,r.y1)(i)?n.push("[VueViewModel]"):n.push(String(i))}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))}},9425:function(e,t,n){"use strict";n.d(t,{$2:function(){return s},WD:function(){return a},cW:function(){return u}});var r,i,o=n(90759);function a(e){return new u(t=>{t(e)})}function s(e){return new u((t,n)=>{n(e)})}(r=i||(i={}))[r.PENDING=0]="PENDING",r[r.RESOLVED=1]="RESOLVED",r[r.REJECTED=2]="REJECTED";class u{constructor(e){u.prototype.__init.call(this),u.prototype.__init2.call(this),u.prototype.__init3.call(this),u.prototype.__init4.call(this),this._state=i.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new u((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 u((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>
46{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(i.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(i.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===i.PENDING){if((0,o.J8)(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===i.RESOLVED&&e[1](this._value),this._state===i.REJECTED&&e[2](this._value),e[0]=!0)})}}}},30554:function(e,t,n){"use strict";n.d(t,{Z1:function(){return a},ph:function(){return o},yW:function(){return i}});var r=n(84756);function i(){return Date.now()/1e3}let o=function(){let{performance:e}=r.n;if(!e||!e.now)return i;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}(),a=(()=>{let{performance:e}=r.n;if(!e||!e.now)return;let t=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=e.timing&&e.timing.navigationStart,a="number"==typeof o?Math.abs(o+t-n):36e5;return i<36e5||a<36e5?i<=a?e.timeOrigin:o:n})()},57976:function(e,t,n){"use strict";n.d(t,{$p:function(){return s},pT:function(){return a}});var r=n(6911),i=n(9227);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e,t){let n=function(e){let t;if(!e)return;let n=e.match(o);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),a=(0,r.EN)(t),{traceId:s,parentSpanId:u,parentSampled:c}=n||{};return n?{traceId:s||(0,i.DM)(),parentSpanId:u||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:c,dsc:a||{}}:{traceId:s||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}function s(e=(0,i.DM)(),t=(0,i.DM)().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}},40539:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="8.9.2"},84756:function(e,t,n){"use strict";n.d(t,{Y:function(){return o},n:function(){return i}});var r=n(40539);let i=globalThis;function o(e,t,n){let o=n||i,a=o.__SENTRY__=o.__SENTRY__||{},s=a[r.J]=a[r.J]||{};return s[e]||(s[e]=t())}},12003:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var r=n(90512);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=r.W,a=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return o(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=t,u=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;let o=i(t)||i(r);return a[e][o]}),c=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t?void 0:null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...c}[t]):({...s,...c})[t]===n})?[...e,n,r]:e},[]);return o(e,u,l,null==n?void 0:n.class,null==n?void 0:n.className)}},90512:function(e,t,n){"use strict";function r(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{W:function(){return r}}),t.Z=r},37826:function(e,t,n){"use strict";function r(e,t){let n=Boolean(e);if(!n)throw Error(t)}n.d(t,{a:function(){return r}})},25821:function(e,t,n){"use strict";function r(e){return function e(t,n){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,n){if(null===t)return"null";if(n.includes(t))return"[Circular]";let r=[...n,t];if("function"==typeof t.toJSON){let n=t.toJSON();if(n!==t)return"string"==typeof n?n:e(n,r)}else if(Array.isArray(t))return function(t,n){if(0===t.length)return"[]";if(n.length>2)return"[Array]";let r=Math.min(10,t.length),i=t.length-r,o=[];for(let i=0;i<r;++i)o.push(e(t[i],n));return 1===i?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(t,r);return function(t,n){let r=Object.entries(t);if(0===r.length)return"{}";if(n.length>2)return"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(t)+"]";let i=r.map(([t,r])=>t+": "+e(r,n));return"{ "+i.join(", ")+" }"}(t,r)}(t,n);default:return String(t)}}(e,[])}n.d(t,{X:function(){return r}})},72380:function(e,t,n){"use strict";var r,i;n.d(t,{UG:function(){return c},WU:function(){return a},Ye:function(){return o},h8:function(){return s},ku:function(){return r}});class o{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class a{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
46Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},u=new Set(Object.keys(s));function c(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&u.has(t)}(i=r||(r={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription"},87392:function(e,t,n){"use strict";n.d(t,{LZ:function(){return o},wv:function(){return i}});var r=n(68297);function i(e){var t,n;let i=Number.MAX_SAFE_INTEGER,o=null,a=-1;for(let t=0;t<e.length;++t){let s=e[t],u=function(e){let t=0;for(;t<e.length&&(0,r.FD)(e.charCodeAt(t));)++t;return t}(s);u!==s.length&&(o=null!==(n=o)&&void 0!==n?n:t,a=t,0!==t&&u<i&&(i=u))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!==(t=o)&&void 0!==t?t:0,a+1)}function o(e,t){let n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||(0,r.FD)(e.charCodeAt(0))),s=n.endsWith('\\"""'),u=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=u||c,d=!(null!=t&&t.minimize)&&(!o||e.length>70||l||a||s),f="",p=o&&(0,r.FD)(e.charCodeAt(0));return(d&&!p||a)&&(f+="\n"),f+=n,(d||l)&&(f+="\n"),'"""'+f+'"""'}},68297:function(e,t,n){"use strict";function r(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}n.d(t,{FD:function(){return r},HQ:function(){return s},LQ:function(){return a},X1:function(){return i}})},97359:function(e,t,n){"use strict";var r,i;n.d(t,{h:function(){return r}}),(i=r||(r={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="StringValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"},51270:function(e,t,n){"use strict";n.d(t,{H:function(){return o},T:function(){return a}});var r=n(37826),i=n(25821);class o{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,r.a)(!1,`Body must be a string. Received: ${(0,i.X)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function a(e){return e instanceof o}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[49774,40179],function(){return t(41018),t(6840),t(90387)}),_N_E=e.O()}]);

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