vendor: 34,133 bytes, lines 1-9
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/terms-DjxYOdpV.js","assets/locale-HSwmt2Gl.js","assets/privacy-DIu6_vaV.js","assets/login-D4Xxls2R.js","assets/LoginPage-CDbLkf1C.js","assets/HugeiconsIcon-BtBphpMu.js","assets/dist-CtIQDrL6.js","assets/link-CCnnRanE.js","assets/useStore-CCnvOJQv.js","assets/with-selector-oanpa6AH.js","assets/button-GKyCwBEE.js","assets/ThemeToggle-D7edTjUB.js","assets/toggle-group-SXupfUVm.js","assets/dist-ihGQ_t-k.js","assets/input-BV73C3O7.js","assets/legal-DCZWH2ox.js","assets/fr-CVsT1vAM.js","assets/app-Bd4EQTuM.js","assets/DashboardShell-CKl6EuyX.js","assets/api-BhWy47Pp.js","assets/BrandContext-BlD9NX6A.js","assets/NavIcons-BZSA6djZ.js","assets/sheet-C3D-Eoi2.js","assets/dist-CzJzRJx8.js","assets/dist-C8pGeEzH.js","assets/routes-DMh7Rzn2.js","assets/LandingPage-BxUKtkaQ.js","assets/ScoreGauge-Da9tGzoN.js","assets/useNavigate-DR7EC6M6.js","assets/errors-W2qkV-Wk.js","assets/contentLinks--DLa5lYC.js","assets/posts-CA95OSP5.js","assets/seo-D49KEnFw.js","assets/LiveAnswerDemo-CIkSp86r.js","assets/content-Cd_Da0Ii.js","assets/trackers.index-B1rDyzVh.js","assets/ContentIndexPage-CDVhiiaD.js","assets/ContentShell-DrxG7Sq3.js","assets/news.index-BraX2ITT.js","assets/blog.index-CvLpBaDG.js","assets/alternatives.index-DAapuLGH.js","assets/trackers._slug-BhIa-JUg.js","assets/ContentPostPage-SLWu67xd.js","assets/trackers._slug-vjkum99M.js","assets/report._scanId-DGv1tDNC.js","assets/news._slug-Cxaj-iIv.js","assets/news._slug-DkIaab5-.js","assets/blog._slug-JaE6DZf4.js","assets/blog._slug-B4f8UXFh.js","assets/alternatives._slug-S6dffi2E.js","assets/alternatives._slug-B05o_2_y.js","assets/fr.index-DMh7Rzn2.js","assets/fr.terms-DnjBtQxT.js","assets/fr.privacy-M8yg4Tjt.js","assets/fr.login-CG0tcpYe.js","assets/fr.legal-__tcPpp4.js","assets/fr.app-BSUF3hOn.js","assets/app.index-1t9oPbX_.js","assets/OverviewPage-DZoBEVp_.js","assets/chart-Ddi9IxsS.js","assets/RankingList-DHRYbPNk.js","assets/ghostChart-D4e5n9cj.js","assets/SentimentBar-CSbvaiFA.js","assets/useDelayedReveal-CDHVhKJ9.js","assets/app.sources-CJC9IneI.js","assets/SourcesPage-zukVEcCk.js","assets/LockedTail-CbaWiM-e.js","assets/UpgradeButton-Dhr5kyoe.js","assets/react-D013m_DF.js","assets/app.settings-Dvrb0PRH.js","assets/BrandSetup-CAO0Bo7N.js","assets/checkbox-D9lXYJ3u.js","assets/dist-BZ0afLlF.js","assets/PageHeader-CK5zSbja.js","assets/PromptsList-DnFfa2as.js","assets/app.reputation-gOOyUE-H.js","assets/ReputationPage-B8U6yrLt.js","assets/EngineConversation-Dthj5rIN.js","assets/app.prompts-BeK0y5_W.js","assets/PromptsPage-CtrH7Lpp.js","assets/app.onboarding-BjDuT8_g.js","assets/OnboardingWizard-BbNQLRpi.js","assets/app.competitors-BftTZH2t.js","assets/CompetitorsPage-C_Ykl_21.js","assets/app.advice-eo6wcqKo.js","assets/AdvicePage-EiKouYkE.js","assets/app.account-DLZGn-hn.js","assets/AccountPage-CBStGu24.js","assets/fr.trackers.index-B1rDyzVh.js","assets/fr.news.index-BraX2ITT.js","assets/fr.blog.index-CvLpBaDG.js","assets/fr.alternatives.index-DAapuLGH.js","assets/fr.trackers._slug-BhIa-JUg.js","assets/fr.trackers._slug-DBgucEYn.js","assets/fr.report._scanId-D6NFcQCc.js","assets/fr.news._slug-Cxaj-iIv.js","assets/fr.news._slug-D-vzKekw.js","assets/fr.blog._slug-JaE6DZf4.js","assets/fr.blog._slug-QaBZbuK5.js","assets/fr.alternatives._slug-S6dffi2E.js","assets/fr.alternatives._slug-Cq18mi6q.js","assets/fr.app.index-1t9oPbX_.js","assets/fr.app.sources-CJC9IneI.js","assets/fr.app.settings-Dvrb0PRH.js","assets/fr.app.reputation-gOOyUE-H.js","assets/fr.app.prompts-BeK0y5_W.js","assets/fr.app.onboarding-BjDuT8_g.js","assets/fr.app.competitors-BftTZH2t.js","assets/fr.app.advice-eo6wcqKo.js","assets/fr.app.account-DLZGn-hn.js"])))=>i.map(i=>d[i]); 2import{a as e,i as t,l as n,n as r,o as i,r as a,s as o,t as s}from"./locale-HSwmt2Gl.js";import{a as c,d as l,i as u,l as d,n as f,p,s as m,t as h,u as g}from"./dist-CtIQDrL6.js";import{A as _,B as v,C as y,D as b,E as x,F as S,H as C,I as w,L as ee,M as te,N as ne,O as E,P as re,R as ie,S as ae,T as oe,U as se,V as ce,_ as D,a as O,b as le,d as ue,f as de,h as fe,i as k,j as A,k as pe,l as me,m as he,n as ge,o as _e,r as ve,t as ye,u as be,v as xe,w as Se,x as Ce}from"./useStore-CCnvOJQv.js";import{a as we,i as Te,n as Ee,r as De,t as Oe}from"./redirect-DCb_aIiF.js";import{n as ke,r as Ae}from"./matchContext-AeXphlnY.js";import{t as je}from"./link-CCnnRanE.js";import{a as j,i as M,n as Me,o as Ne,r as Pe,t as N}from"./preload-helper-CVWJA_BG.js";import{c as Fe,d as Ie,f as Le,g as Re,h as ze,l as Be,m as Ve,n as He,o as Ue,p as We,r as Ge,s as Ke,t as qe,u as Je}from"./api-BhWy47Pp.js";import{a as Ye,i as Xe,n as Ze,r as Qe,t as $e}from"./ThemeToggle-D7edTjUB.js";import{C as et,a as tt,c as nt,g as rt,l as it,n as at,o as ot,r as st,t as ct,x as lt}from"./HugeiconsIcon-BtBphpMu.js";import{i as ut,r as dt}from"./toggle-group-SXupfUVm.js";import{n as ft,r as pt,t as mt}from"./dist-ihGQ_t-k.js";import{t as ht}from"./dist-C8pGeEzH.js";import{a as gt,i as _t,n as vt,o as yt,r as bt,t as xt}from"./dist-z43lObiX.js";import{a as St,c as Ct,f as wt,i as Tt,m as Et,n as Dt,o as Ot,r as kt,s as At,t as jt}from"./dist-CzJzRJx8.js";import{r as Mt,t as Nt}from"./button-GKyCwBEE.js";import{a as Pt,c as Ft,d as It,f as Lt,i as Rt,l as zt,n as Bt,o as Vt,p as Ht,r as Ut,s as Wt,t as Gt,u as Kt}from"./seo-D49KEnFw.js";import{n as qt,t as Jt}from"./content-Cd_Da0Ii.js";import{a as Yt,n as Xt,t as Zt}from"./posts-CA95OSP5.js";import{i as Qt,r as $t,t as en}from"./ScoreGauge-Da9tGzoN.js";var tn=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,E());else{var t=n(l);t!==null&&ae(x,t.startTime-e)}}var S=!1,C=-1,w=5,ee=-1;function te(){return g?!0:!(e.unstable_now()-ee<w)}function ne(){if(g=!1,S){var t=e.unstable_now();ee=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&te());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ae(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?E():S=!1}}}var E;if(typeof y==`function`)E=function(){y(ne)};else if(typeof MessageChannel<`u`){var re=new MessageChannel,ie=re.port2;re.port1.onmessage=ne,E=function(){ie.postMessage(null)}}else E=function(){_(ne,0)};function ae(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ae(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,E()))),r},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),nn=o(((e,t)=>{t.exports=tn()})),rn=o((e=>{var t=nn(),n=i(),r=p();function a(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(s(e)!==e)throw Error(a(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return u(i),e;if(o===r)return u(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var c=!1,l=i.child;l;){if(l===n){c=!0,n=i,r=o;break}if(l===r){c=!0,r=i,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=i;break}if(l===r){c=!0,r=o,n=i;break}l=l.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,h=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),te=Symbol.for(`react.memo`),ne=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),re=Symbol.for(`react.memo_cache_sentinel`),ie=Symbol.iterator;function ae(e){return typeof e!=`object`||!e?null:(e=ie&&e[ie]||e[`@@iterator`],typeof e==`function`?e:null)}var oe=Symbol.for(`react.client.reference`);function se(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case ee:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case te:return t=e.displayName||null,t===null?se(e.type)||`Memo`:t;case ne:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}var ce=Array.isArray,D=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},ue=[],de=-1;function fe(e){return{current:e}}function k(e){0>de||(e.current=ue[de],ue[de]=null,de--)}function A(e,t){de++,ue[de]=e.current,e.current=t}var pe=fe(null),me=fe(null),he=fe(null),ge=fe(null);function _e(e,t){switch(A(he,t),A(me,e),A(pe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Zd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zd(t),e=Qd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}k(pe),A(pe,e)}function ve(){k(pe),k(me),k(he)}function ye(e){e.memoizedState!==null&&A(ge,e);var t=pe.current,n=Qd(t,e.type);t!==n&&(A(me,e),A(pe,n))}function be(e){me.current===e&&(k(pe),k(me)),ge.current===e&&(k(ge),cp._currentValue=le)}var xe,Se;function Ce(e){if(xe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);xe=t&&t[1]||``,Se=-1<e.stack.indexOf(` 3 at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return` 4`+xe+e+Se}var we=!1;function Te(e,t){if(!e||we)return``;we=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(` 5`),l=s.split(` 6`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=` 7`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{we=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ce(n):``}function Ee(e,t){switch(e.tag){case 26:case 27:case 5:return Ce(e.type);case 16:return Ce(`Lazy`);case 13:return e.child!==t&&t!==null?Ce(`Suspense Fallback`):Ce(`Suspense`);case 19:return Ce(`SuspenseList`);case 0:case 15:return Te(e.type,!1);case 11:return Te(e.type.render,!1);case 1:return Te(e.type,!0);case 31:return Ce(`Activity`);default:return``}}function De(e){try{var t=``,n=null;do t+=Ee(e,n),n=e,e=e.return;while(e);return t}catch(e){return` 8Error generating stack: `+e.message+` 9`+e.stack}}var Oe=Object.prototype.hasOwnProperty,ke=t.unstable_scheduleCallback,Ae=t.unstable_cancelCallback,je=t.unstable_shouldYield,j=t.unstable_requestPaint,M=t.unstable_now,Me=t.unstable_getCurrentPriorityLevel,Ne=t.unstable_ImmediatePriority,Pe=t.unstable_UserBlockingPriority,N=t.unstable_NormalPriority,Fe=t.unstable_LowPriority,Ie=t.unstable_IdlePriority,Le=t.log,Re=t.unstable_setDisableYieldValue,ze=null,Be=null;function Ve(e){if(typeof Le==`function`&&Re(e),Be&&typeof Be.setStrictMode==`function`)try{Be.setStrictMode(ze,e)}catch{}}var He=Math.clz32?Math.clz32:Ge,Ue=Math.log,We=Math.LN2;function Ge(e){return e>>>=0,e===0?32:31-(Ue(e)/We|0)|0}var Ke=256,qe=262144,Je=4194304;function Ye(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ye(n))):i=Ye(o):i=Ye(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ye(n))):i=Ye(o)):i=Ye(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $e(){var e=Je;return Je<<=1,!(Je&62914560)&&(Je=4194304),e}function et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-He(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&rt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function rt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-He(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function it(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-He(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function at(e,t){var n=t&-t;return n=n&42?1:ot(n),(n&(e.suspendedLanes|t))===0?n:0}function ot(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function st(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ct(){var e=O.p;return e===0?(e=window.event,e===void 0?32:wp(e.type)):e}function lt(e,t){var n=O.p;try{return O.p=e,t()}finally{O.p=n}}var ut=Math.random().toString(36).slice(2),dt=`__reactFiber$`+ut,ft=`__reactProps$`+ut,pt=`__reactContainer$`+ut,mt=`__reactEvents$`+ut,ht=`__reactListeners$`+ut,gt=`__reactHandles$`+ut,_t=`__reactResources$`+ut,vt=`__reactMarker$`+ut;function yt(e){delete e[dt],delete e[ft],delete e[mt],delete e[ht],delete e[gt]}function bt(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pt]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xf(e);e!==null;){if(n=e[dt])return n;e=xf(e)}return t}e=n,n=e.parentNode}return null}function xt(e){if(e=e[dt]||e[pt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function St(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function Ct(e){var t=e[_t];return t||=e[_t]={hoistableStyles:new Map,hoistableScripts:new Map},t}function wt(e){e[vt]=!0}var Tt=new Set,Et={};function Dt(e,t){Ot(e,t),Ot(e+`Capture`,t)}function Ot(e,t){for(Et[e]=t,e=0;e<t.length;e++)Tt.add(t[e])}var kt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),At={},jt={};function Mt(e){return Oe.call(jt,e)?!0:Oe.call(At,e)?!1:kt.test(e)?jt[e]=!0:(At[e]=!0,!1)}function Nt(e,t,n){if(Mt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Pt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Ft(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function It(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Lt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Rt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zt(e){if(!e._valueTracker){var t=Lt(e)?`checked`:`value`;e._valueTracker=Rt(e,t,``+e[t])}}function Bt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Lt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Vt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Ht=/[\n"\\]/g;function Ut(e){return e.replace(Ht,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Wt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+It(t)):e.value!==``+It(t)&&(e.value=``+It(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Kt(e,o,It(n)):Kt(e,o,It(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+It(s):e.removeAttribute(`name`)}function Gt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){zt(e);return}n=n==null?``:``+It(n),t=t==null?n:``+It(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),zt(e)}function Kt(e,t,n){t===`number`&&Vt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function qt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+It(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Jt(e,t,n){if(t!=null&&(t=``+It(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+It(n)}function Yt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(a(92));if(ce(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}n??=``,t=n}n=It(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),zt(e)}function Xt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Qt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Zt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function $t(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(a(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Qt(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&Qt(e,o,t[o])}function en(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var tn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),rn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function an(e){return rn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function on(){}var sn=null;function cn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ln=null,un=null;function dn(e){var t=xt(e);if(t&&(e=t.stateNode)){var n=e[ft]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Wt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Ut(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[ft]||null;if(!i)throw Error(a(90));Wt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Bt(r)}break a;case`textarea`:Jt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&qt(e,!!n.multiple,t,!1)}}}var fn=!1;function pn(e,t,n){if(fn)return e(t,n);fn=!0;try{return e(t)}finally{if(fn=!1,(ln!==null||un!==null)&&(Ou(),ln&&(t=ln,e=un,un=ln=null,dn(t),e)))for(t=0;t<e.length;t++)dn(e[t])}}function mn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ft]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(a(231,t,typeof n));return n}var hn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),gn=!1;if(hn)try{var _n={};Object.defineProperty(_n,"passive",{get:function(){gn=!0}}),window.addEventListener(`test`,_n,_n),window.removeEventListener(`test`,_n,_n)}catch{gn=!1}var vn=null,yn=null,bn=null;function xn(){if(bn)return bn;var e,t=yn,n=t.length,r,i=`value`in vn?vn.value:vn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return bn=i.slice(e,1<r?1-r:void 0)}function Sn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Cn(){return!0}function wn(){return!1}function Tn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Cn:wn,this.isPropagationStopped=wn,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Cn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Cn)},persist:function(){},isPersistent:Cn}),t}var En={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dn=Tn(En),On=m({},En,{view:0,detail:0}),kn=Tn(On),An,jn,Mn,Nn=m({},On,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Mn&&(Mn&&e.type===`mousemove`?(An=e.screenX-Mn.screenX,jn=e.screenY-Mn.screenY):jn=An=0,Mn=e),An)},movementY:function(e){return`movementY`in e?e.movementY:jn}}),Pn=Tn(Nn),Fn=Tn(m({},Nn,{dataTransfer:0})),In=Tn(m({},On,{relatedTarget:0})),Ln=Tn(m({},En,{animationName:0,elapsedTime:0,pseudoElement:0})),Rn=Tn(m({},En,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),zn=Tn(m({},En,{data:0})),Bn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Vn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F
95`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Hn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Un(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hn[e])?!!t[e]:!1}function Wn(){return Un}var Gn=Tn(m({},On,{key:function(e){if(e.key){var t=Bn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Sn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Vn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wn,charCode:function(e){return e.type===`keypress`?Sn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Sn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Kn=Tn(m({},Nn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),qn=Tn(m({},On,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wn})),Jn=Tn(m({},En,{propertyName:0,elapsedTime:0,pseudoElement:0})),Yn=Tn(m({},Nn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Xn=Tn(m({},En,{newState:0,oldState:0})),Zn=[9,13,27,32],Qn=hn&&`CompositionEvent`in window,$n=null;hn&&`documentMode`in document&&($n=document.documentMode);var er=hn&&`TextEvent`in window&&!$n,tr=hn&&(!Qn||$n&&8<$n&&11>=$n),nr=` `,rr=!1;function ir(e,t){switch(e){case`keyup`:return Zn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ar(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var or=!1;function sr(e,t){switch(e){case`compositionend`:return ar(t);case`keypress`:return t.which===32?(rr=!0,nr):null;case`textInput`:return e=t.data,e===nr&&rr?null:e;default:return null}}function cr(e,t){if(or)return e===`compositionend`||!Qn&&ir(e,t)?(e=xn(),bn=yn=vn=null,or=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return tr&&t.locale!==`ko`?null:t.data;default:return null}}var lr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!lr[e.type]:t===`textarea`}function dr(e,t,n,r){ln?un?un.push(r):un=[r]:ln=r,t=Fd(t,`onChange`),0<t.length&&(n=new Dn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var fr=null,pr=null;function mr(e){Od(e,0)}function hr(e){if(Bt(St(e)))return e}function gr(e,t){if(e===`change`)return t}var _r=!1;if(hn){var vr;if(hn){var yr=`oninput`in document;if(!yr){var br=document.createElement(`div`);br.setAttribute(`oninput`,`return;`),yr=typeof br.oninput==`function`}vr=yr}else vr=!1;_r=vr&&(!document.documentMode||9<document.documentMode)}function xr(){fr&&(fr.detachEvent(`onpropertychange`,Sr),pr=fr=null)}function Sr(e){if(e.propertyName===`value`&&hr(pr)){var t=[];dr(t,pr,e,cn(e)),pn(mr,t)}}function Cr(e,t,n){e===`focusin`?(xr(),fr=t,pr=n,fr.attachEvent(`onpropertychange`,Sr)):e===`focusout`&&xr()}function wr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return hr(pr)}function Tr(e,t){if(e===`click`)return hr(t)}function Er(e,t){if(e===`input`||e===`change`)return hr(t)}function Dr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Or=typeof Object.is==`function`?Object.is:Dr;function kr(e,t){if(Or(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Oe.call(t,i)||!Or(e[i],t[i]))return!1}return!0}function Ar(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jr(e,t){var n=Ar(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Ar(n)}}function Mr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vt(e.document)}return t}function Pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Fr=hn&&`documentMode`in document&&11>=document.documentMode,Ir=null,Lr=null,Rr=null,zr=!1;function Br(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zr||Ir==null||Ir!==Vt(r)||(r=Ir,`selectionStart`in r&&Pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 72,303 bytes, line 9
9sNode:r.focusNode,focusOffset:r.focusOffset}),Rr&&kr(Rr,r)||(Rr=r,r=Fd(Lr,`onSelect`),0<r.length&&(t=new Dn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ir)))}function Vr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Hr={animationend:Vr(`Animation`,`AnimationEnd`),animationiteration:Vr(`Animation`,`AnimationIteration`),animationstart:Vr(`Animation`,`AnimationStart`),transitionrun:Vr(`Transition`,`TransitionRun`),transitionstart:Vr(`Transition`,`TransitionStart`),transitioncancel:Vr(`Transition`,`TransitionCancel`),transitionend:Vr(`Transition`,`TransitionEnd`)},Ur={},Wr={};hn&&(Wr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Hr.animationend.animation,delete Hr.animationiteration.animation,delete Hr.animationstart.animation),`TransitionEvent`in window||delete Hr.transitionend.transition);function Gr(e){if(Ur[e])return Ur[e];if(!Hr[e])return e;var t=Hr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wr)return Ur[e]=t[n];return e}var Kr=Gr(`animationend`),qr=Gr(`animationiteration`),Jr=Gr(`animationstart`),Yr=Gr(`transitionrun`),Xr=Gr(`transitionstart`),Zr=Gr(`transitioncancel`),Qr=Gr(`transitionend`),$r=new Map,ei=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);ei.push(`scrollEnd`);function ti(e,t){$r.set(e,t),Dt(t,[e])}var ni=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},P=[],ri=0,ii=0;function ai(){for(var e=ri,t=ii=ri=0;t<e;){var n=P[t];P[t++]=null;var r=P[t];P[t++]=null;var i=P[t];P[t++]=null;var a=P[t];if(P[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ci(n,i,a)}}function F(e,t,n,r){P[ri++]=e,P[ri++]=t,P[ri++]=n,P[ri++]=r,ii|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function oi(e,t,n,r){return F(e,t,n,r),li(e)}function si(e,t){return F(e,null,null,t),li(e)}function ci(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-He(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function li(e){if(50<yu)throw yu=0,bu=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ui={};function di(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fi(e,t,n,r){return new di(e,t,n,r)}function pi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mi(e,t){var n=e.alternate;return n===null?(n=fi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function hi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function gi(e,t,n,r,i,o){var s=0;if(r=e,typeof e==`function`)pi(e)&&(s=1);else if(typeof e==`string`)s=$f(e,n,pe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case E:return e=fi(31,n,t,i),e.elementType=E,e.lanes=o,e;case v:return _i(n.children,i,o,t);case y:s=8,i|=24;break;case b:return e=fi(12,n,t,i|2),e.elementType=b,e.lanes=o,e;case w:return e=fi(13,n,t,i),e.elementType=w,e.lanes=o,e;case ee:return e=fi(19,n,t,i),e.elementType=ee,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case S:s=10;break a;case x:s=9;break a;case C:s=11;break a;case te:s=14;break a;case ne:s=16,r=null;break a}s=29,n=Error(a(130,e===null?`null`:typeof e,``)),r=null}return t=fi(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function _i(e,t,n,r){return e=fi(7,e,r,t),e.lanes=n,e}function vi(e,t,n){return e=fi(6,e,null,t),e.lanes=n,e}function yi(e){var t=fi(18,null,null,0);return t.stateNode=e,t}function bi(e,t,n){return t=fi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xi=new WeakMap;function Si(e,t){if(typeof e==`object`&&e){var n=xi.get(e);return n===void 0?(t={value:e,source:t,stack:De(t)},xi.set(e,t),t):n}return{value:e,source:t,stack:De(t)}}var Ci=[],wi=0,Ti=null,Ei=0,Di=[],Oi=0,ki=null,Ai=1,ji=``;function Mi(e,t){Ci[wi++]=Ei,Ci[wi++]=Ti,Ti=e,Ei=t}function Ni(e,t,n){Di[Oi++]=Ai,Di[Oi++]=ji,Di[Oi++]=ki,ki=e;var r=Ai;e=ji;var i=32-He(r)-1;r&=~(1<<i),n+=1;var a=32-He(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ai=1<<32-He(t)+i|n<<i|r,ji=a+e}else Ai=1<<a|n<<i|r,ji=e}function Pi(e){e.return!==null&&(Mi(e,1),Ni(e,1,0))}function Fi(e){for(;e===Ti;)Ti=Ci[--wi],Ci[wi]=null,Ei=Ci[--wi],Ci[wi]=null;for(;e===ki;)ki=Di[--Oi],Di[Oi]=null,ji=Di[--Oi],Di[Oi]=null,Ai=Di[--Oi],Di[Oi]=null}function Ii(e,t){Di[Oi++]=Ai,Di[Oi++]=ji,Di[Oi++]=ki,Ai=t.id,ji=t.overflow,ki=e}var Li=null,Ri=null,I=!1,zi=null,Bi=!1,Vi=Error(a(519));function Hi(e){throw Ji(Si(Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Vi}function Ui(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[dt]=e,t[ft]=r,n){case`dialog`:W(`cancel`,t),W(`close`,t);break;case`iframe`:case`object`:case`embed`:W(`load`,t);break;case`video`:case`audio`:for(n=0;n<Ed.length;n++)W(Ed[n],t);break;case`source`:W(`error`,t);break;case`img`:case`image`:case`link`:W(`error`,t),W(`load`,t);break;case`details`:W(`toggle`,t);break;case`input`:W(`invalid`,t),Gt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:W(`invalid`,t);break;case`textarea`:W(`invalid`,t),Yt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Vd(t.textContent,n)?(r.popover!=null&&(W(`beforetoggle`,t),W(`toggle`,t)),r.onScroll!=null&&W(`scroll`,t),r.onScrollEnd!=null&&W(`scrollend`,t),r.onClick!=null&&(t.onclick=on),t=!0):t=!1,t||Hi(e,!0)}function Wi(e){for(Li=e.return;Li;)switch(Li.tag){case 5:case 31:case 13:Bi=!1;return;case 27:case 3:Bi=!0;return;default:Li=Li.return}}function Gi(e){if(e!==Li)return!1;if(!I)return Wi(e),I=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||$d(e.type,e.memoizedProps)),n=!n),n&&Ri&&Hi(e),Wi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));Ri=bf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));Ri=bf(e)}else t===27?(t=Ri,cf(e.type)?(e=yf,yf=null,Ri=e):Ri=t):Ri=Li?vf(e.stateNode.nextSibling):null;return!0}function Ki(){Ri=Li=null,I=!1}function qi(){var e=zi;return e!==null&&(au===null?au=e:au.push.apply(au,e),zi=null),e}function Ji(e){zi===null?zi=[e]:zi.push(e)}var Yi=fe(null),Xi=null,Zi=null;function Qi(e,t,n){A(Yi,t._currentValue),t._currentValue=n}function $i(e){e._currentValue=Yi.current,k(Yi)}function ea(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ta(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var s=i.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ea(o.return,n,e),r||(s=null);break a}o=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(a(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ea(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function na(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if(i.flags&524288)o=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(a(387));if(s=s.memoizedProps,s!==null){var c=i.type;Or(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===ge.current){if(s=i.alternate,s===null)throw Error(a(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[cp]:e.push(cp))}i=i.return}e!==null&&ta(t,e,n,r),t.flags|=262144}function ra(e){for(e=e.firstContext;e!==null;){if(!Or(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ia(e){Xi=e,Zi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function aa(e){return sa(Xi,e)}function oa(e,t){return Xi===null&&ia(e),sa(e,t)}function sa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Zi===null){if(e===null)throw Error(a(308));Zi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zi=Zi.next=t;return n}var ca=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},la=t.unstable_scheduleCallback,ua=t.unstable_NormalPriority,da={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fa(){return{controller:new ca,data:new Map,refCount:0}}function pa(e){e.refCount--,e.refCount===0&&la(ua,function(){e.controller.abort()})}var ma=null,ha=0,ga=0,_a=null;function va(e,t){if(ma===null){var n=ma=[];ha=0,ga=bd(),_a={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ha++,t.then(ya,ya),t}function ya(){if(--ha===0&&ma!==null){_a!==null&&(_a.status=`fulfilled`);var e=ma;ma=null,ga=0,_a=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ba(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var xa=D.S;D.S=function(e,t){cu=M(),typeof t==`object`&&t&&typeof t.then==`function`&&va(e,t),xa!==null&&xa(e,t)};var Sa=fe(null);function Ca(){var e=Sa.current;return e===null?Gl.pooledCache:e}function wa(e,t){t===null?A(Sa,Sa.current):A(Sa,t.pool)}function Ta(){var e=Ca();return e===null?null:{parent:da._currentValue,pool:e}}var Ea=Error(a(460)),Da=Error(a(474)),Oa=Error(a(542)),ka={then:function(){}};function Aa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ja(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(on,on),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Fa(e),e;default:if(typeof t.status==`string`)t.then(on,on);else{if(e=Gl,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Fa(e),e}throw Na=t,Ea}}function Ma(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Na=e,Ea):e}}var Na=null;function Pa(){if(Na===null)throw Error(a(459));var e=Na;return Na=null,e}function Fa(e){if(e===Ea||e===Oa)throw Error(a(483))}var Ia=null,La=0;function Ra(e){var t=La;return La+=1,Ia===null&&(Ia=[]),ja(Ia,e,t)}function za(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ba(e,t){throw t.$$typeof===h?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Va(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=mi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=vi(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===ne&&Ma(a)===t.type)?(t=i(t,n.props),za(t,n),t.return=e,t):(t=gi(n.type,n.key,n.props,null,e.mode,r),za(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=bi(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=_i(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=vi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=gi(t.type,t.key,t.props,null,e.mode,n),za(n,t),n.return=e,n;case _:return t=bi(t,e.mode,n),t.return=e,t;case ne:return t=Ma(t),f(e,t,n)}if(ce(t)||ae(t))return t=_i(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ra(t),n);if(t.$$typeof===S)return f(e,oa(e,t),n);Ba(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case ne:return n=Ma(n),p(e,t,n,r)}if(ce(n)||ae(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ra(n),r);if(n.$$typeof===S)return p(e,t,oa(e,n),r);Ba(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case _:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ne:return r=Ma(r),m(e,t,n,r,i)}if(ce(r)||ae(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ra(r),i);if(r.$$typeof===S)return m(e,t,n,oa(t,r),i);Ba(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),I&&Mi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return I&&Mi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),I&&Mi(i,h),l}function y(i,s,c,l){if(c==null)throw Error(a(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),I&&Mi(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return I&&Mi(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),I&&Mi(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===v&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===v){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ne&&Ma(l)===r.type){n(e,r.sibling),c=i(r,o.props),za(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===v?(c=_i(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=gi(o.type,o.key,o.props,null,e.mode,c),za(c,o),c.return=e,e=c)}return s(e);case _:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=bi(o,e.mode,c),c.return=e,e=c}return s(e);case ne:return o=Ma(o),b(e,r,o,c)}if(ce(o))return h(e,r,o,c);if(ae(o)){if(l=ae(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ra(o),c);if(o.$$typeof===S)return b(e,r,oa(e,o),c);Ba(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=vi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{La=0;var i=b(e,t,n,r);return Ia=null,i}catch(t){if(t===Ea||t===Oa)throw t;var a=fi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ha=Va(!0),Ua=Va(!1),Wa=!1;function Ga(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ka(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ja(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,V&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=li(e),ci(e,null,n),t}return F(e,r,t,n),li(e)}function Ya(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}function Xa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Za=!1;function Qa(){if(Za){var e=_a;if(e!==null)throw e}}function $a(e,t,n,r){Za=!1;var i=e.updateQueue;Wa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(U&f)===f:(r&f)===f){f!==0&&f===ga&&(Za=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Wa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),$l|=o,e.lanes=o,e.memoizedState=d}}function eo(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function to(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)eo(n[e],t)}var no=fe(null),ro=fe(0);function io(e,t){e=Zl,A(ro,e),A(no,t),Zl=e|t.baseLanes}function ao(){A(ro,Zl),A(no,no.current)}function oo(){Zl=ro.current,k(no),k(ro)}var so=fe(null),co=null;function lo(e){var t=e.alternate;A(ho,ho.current&1),A(so,e),co===null&&(t===null||no.current!==null||t.memoizedState!==null)&&(co=e)}function uo(e){A(ho,ho.current),A(so,e),co===null&&(co=e)}function fo(e){e.tag===22?(A(ho,ho.current),A(so,e),co===null&&(co=e)):po(e)}function po(){A(ho,ho.current),A(so,so.current)}function mo(e){k(so),co===e&&(co=null),k(ho)}var ho=fe(0);function go(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||hf(n)||gf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _o=0,L=null,R=null,vo=null,yo=!1,bo=!1,xo=!1,So=0,Co=0,wo=null,To=0;function Eo(){throw Error(a(321))}function Do(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Or(e[n],t[n]))return!1;return!0}function Oo(e,t,n,r,i,a){return _o=a,L=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Gs:Ks,xo=!1,a=n(r,i),xo=!1,bo&&(a=Ao(t,n,r,i)),ko(e),a}function ko(e){D.H=Ws;var t=R!==null&&R.next!==null;if(_o=0,vo=R=L=null,yo=!1,Co=0,wo=null,t)throw Error(a(300));e===null||lc||(e=e.dependencies,e!==null&&ra(e)&&(lc=!0))}function Ao(e,t,n,r){L=e;var i=0;do{if(bo&&(wo=null),Co=0,bo=!1,25<=i)throw Error(a(301));if(i+=1,vo=R=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=qs,o=t(n,r)}while(bo);return o}function jo(){var e=D.H,t=e.useState()[0];return t=typeof t.then==`function`?Ro(t):t,e=e.useState()[0],(R===null?null:R.memoizedState)!==e&&(L.flags|=1024),t}function Mo(){var e=So!==0;return So=0,e}function No(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Po(e){if(yo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yo=!1}_o=0,vo=R=L=null,bo=!1,Co=So=0,wo=null}function Fo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vo===null?L.memoizedState=vo=e:vo=vo.next=e,vo}function Io(){if(R===null){var e=L.alternate;e=e===null?null:e.memoizedState}else e=R.next;var t=vo===null?L.memoizedState:vo.next;if(t!==null)vo=t,R=e;else{if(e===null)throw L.alternate===null?Error(a(467)):Error(a(310));R=e,e={memoizedState:R.memoizedState,baseState:R.baseState,baseQueue:R.baseQueue,queue:R.queue,next:null},vo===null?L.memoizedState=vo=e:vo=vo.next=e}return vo}function Lo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ro(e){var t=Co;return Co+=1,wo===null&&(wo=[]),e=ja(wo,e,t),t=L,(vo===null?t.memoizedState:vo.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Gs:Ks),e}function zo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ro(e);if(e.$$typeof===S)return aa(e)}throw Error(a(438,String(e)))}function Bo(e){var t=null,n=L.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=L.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Lo(),L.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=re;return t.index++,n}function Vo(e,t){return typeof t==`function`?t(e):t}function Ho(e){return Uo(Io(),R,e)}function Uo(e,t,n){var r=e.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(_o&f)===f:(U&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ga&&(d=!0);else if((_o&p)===p){u=u.next,p===ga&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,L.lanes|=p,$l|=p;f=u.action,xo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,L.lanes|=f,$l|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Or(o,e.memoizedState)&&(lc=!0,d&&(n=_a,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Wo(e){var t=Io(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Or(o,t.memoizedState)||(lc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Go(e,t,n){var r=L,i=Io(),o=I;if(o){if(n===void 0)throw Error(a(407));n=n()}else n=t();var s=!Or((R||i).memoizedState,n);if(s&&(i.memoizedState=n,lc=!0),i=i.queue,gs(Jo.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||vo!==null&&vo.memoizedState.tag&1){if(r.flags|=2048,ds(9,{destroy:void 0},qo.bind(null,r,i,n,t),null),Gl===null)throw Error(a(349));o||_o&127||Ko(r,t,n)}return n}function Ko(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=L.updateQueue,t===null?(t=Lo(),L.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function qo(e,t,n,r){t.value=n,t.getSnapshot=r,Yo(t)&&Xo(e)}function Jo(e,t,n){return n(function(){Yo(t)&&Xo(e)})}function Yo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Or(e,n)}catch{return!0}}function Xo(e){var t=si(e,2);t!==null&&Cu(t,e,2)}function Zo(e){var t=Fo();if(typeof e==`function`){var n=e;if(e=n(),xo){Ve(!0);try{n()}finally{Ve(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:e},t}function Qo(e,t,n,r){return e.baseState=n,Uo(e,R,typeof r==`function`?r:Vo)}function $o(e,t,n,r,i){if(Vs(e))throw Error(a(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};D.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,es(t,o)):(o.next=n.next,t.pending=n.next=o)}}function es(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=D.T,o={};D.T=o;try{var s=n(i,r),c=D.S;c!==null&&c(o,s),ts(e,t,s)}catch(n){rs(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),D.T=a}}else try{a=n(i,r),ts(e,t,a)}catch(n){rs(e,t,n)}}function ts(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ns(e,t,n)},function(n){return rs(e,t,n)}):ns(e,t,n)}function ns(e,t,n){t.status=`fulfilled`,t.value=n,is(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,es(e,n)))}function rs(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,is(t),t=t.next;while(t!==r)}e.action=null}function is(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function as(e,t){return t}function os(e,t){if(I){var n=Gl.formState;if(n!==null){a:{var r=L;if(I){if(Ri){b:{for(var i=Ri,a=Bi;i.nodeType!==8;){if(!a){i=null;break b}if(i=vf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ri=vf(i.nextSibling),r=i.data===`F!`;break a}}Hi(r)}r=!1}r&&(t=n[0])}}return n=Fo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:as,lastRenderedState:t},n.queue=r,n=Rs.bind(null,L,r),r.dispatch=n,r=Zo(!1),a=Bs.bind(null,L,!1,r.queue),r=Fo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=$o.bind(null,L,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ss(e){return cs(Io(),R,e)}function cs(e,t,n){if(t=Uo(e,t,as)[0],e=Ho(Vo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ro(t)}catch(e){throw e===Ea?Oa:e}else r=t;t=Io();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(L.flags|=2048,ds(9,{destroy:void 0},ls.bind(null,i,n),null)),[r,a,e]}function ls(e,t){e.action=t}function us(e){var t=Io(),n=R;if(n!==null)return cs(t,n,e);Io(),t=t.memoizedState,n=Io();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ds(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=L.updateQueue,t===null&&(t=Lo(),L.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function fs(){return Io().memoizedState}function ps(e,t,n,r){var i=Fo();L.flags|=e,i.memoizedState=ds(1|t,{destroy:void 0},n,r===void 0?null:r)}function ms(e,t,n,r){var i=Io();r=r===void 0?null:r;var a=i.memoizedState.inst;R!==null&&r!==null&&Do(r,R.memoizedState.deps)?i.memoizedState=ds(t,a,n,r):(L.flags|=e,i.memoizedState=ds(1|t,a,n,r))}function hs(e,t){ps(8390656,8,e,t)}function gs(e,t){ms(2048,8,e,t)}function _s(e){L.flags|=4;var t=L.updateQueue;if(t===null)t=Lo(),L.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function vs(e){var t=Io().memoizedState;return _s({ref:t,nextImpl:e}),function(){if(V&2)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function ys(e,t){return ms(4,2,e,t)}function bs(e,t){return ms(4,4,e,t)}function xs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ss(e,t,n){n=n==null?null:n.concat([e]),ms(4,4,xs.bind(null,t,e),n)}function Cs(){}function ws(e,t){var n=Io();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Do(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ts(e,t){var n=Io();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Do(t,r[1]))return r[0];if(r=e(),xo){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r}function Es(e,t,n){return n===void 0||_o&1073741824&&!(U&261930)?e.memoizedState=t:(e.memoizedState=n,e=Su(),L.lanes|=e,$l|=e,n)}function Ds(e,t,n,r){return Or(n,t)?n:no.current===null?!(_o&42)||_o&1073741824&&!(U&261930)?(lc=!0,e.memoizedState=n):(e=Su(),L.lanes|=e,$l|=e,t):(e=Es(e,n,r),Or(e,t)||(lc=!0),e)}function Os(e,t,n,r,i){var a=O.p;O.p=a!==0&&8>a?a:8;var o=D.T,s={};D.T=s,Bs(e,!1,t,n);try{var c=i(),l=D.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?zs(e,t,ba(c,r),xu(e)):zs(e,t,r,xu(e))}catch(n){zs(e,t,{then:function(){},status:`rejected`,reason:n},xu())}finally{O.p=a,o!==null&&s.types!==null&&(o.types=s.types),D.T=o}}function ks(){}function As(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=js(e).queue;Os(e,i,t,le,n===null?ks:function(){return Ms(e),n(r)})}function js(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ms(e){var t=js(e);t.next===null&&(t=e.alternate.memoizedState),zs(e,t.next.queue,{},xu())}function Ns(){return aa(cp)}function Ps(){return Io().memoizedState}function Fs(){return Io().memoizedState}function Is(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=xu();e=qa(n);var r=Ja(t,e,n);r!==null&&(Cu(r,t,n),Ya(r,t,n)),t={cache:fa()},e.payload=t;return}t=t.return}}function Ls(e,t,n){var r=xu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Vs(e)?Hs(t,n):(n=oi(e,t,n,r),n!==null&&(Cu(n,e,r),Us(n,t,r)))}function Rs(e,t,n){zs(e,t,n,xu())}function zs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vs(e))Hs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Or(s,o))return F(e,t,i,0),Gl===null&&ai(),!1}catch{}if(n=oi(e,t,i,r),n!==null)return Cu(n,e,r),Us(n,t,r),!0}return!1}function Bs(e,t,n,r){if(r={lane:2,revertLane:bd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Vs(e)){if(t)throw Error(a(479))}else t=oi(e,n,r,2),t!==null&&Cu(t,e,2)}function Vs(e){var t=e.alternate;return e===L||t!==null&&t===L}function Hs(e,t){bo=yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Us(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}var Ws={readContext:aa,use:zo,useCallback:Eo,useContext:Eo,useEffect:Eo,useImperativeHandle:Eo,useLayoutEffect:Eo,useInsertionEffect:Eo,useMemo:Eo,useReducer:Eo,useRef:Eo,useState:Eo,useDebugValue:Eo,useDeferredValue:Eo,useTransition:Eo,useSyncExternalStore:Eo,useId:Eo,useHostTransitionStatus:Eo,useFormState:Eo,useActionState:Eo,useOptimistic:Eo,useMemoCache:Eo,useCacheRefresh:Eo};Ws.useEffectEvent=Eo;var Gs={readContext:aa,use:zo,useCallback:function(e,t){return Fo().memoizedState=[e,t===void 0?null:t],e},useContext:aa,useEffect:hs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ps(4194308,4,xs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ps(4194308,4,e,t)},useInsertionEffect:function(e,t){ps(4,2,e,t)},useMemo:function(e,t){var n=Fo();t=t===void 0?null:t;var r=e();if(xo){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Fo();if(n!==void 0){var i=n(t);if(xo){Ve(!0);try{n(t)}finally{Ve(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ls.bind(null,L,e),[r.memoizedState,e]},useRef:function(e){var t=Fo();return e={current:e},t.memoizedState=e},useState:function(e){e=Zo(e);var t=e.queue,n=Rs.bind(null,L,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Cs,useDeferredValue:function(e,t){return Es(Fo(),e,t)},useTransition:function(){var e=Zo(!1);return e=Os.bind(null,L,e.queue,!0,!1),Fo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=L,i=Fo();if(I){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Gl===null)throw Error(a(349));U&127||Ko(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,hs(Jo.bind(null,r,o,e),[e]),r.flags|=2048,ds(9,{destroy:void 0},qo.bind(null,r,o,n,t),null),n},useId:function(){var e=Fo(),t=Gl.identifierPrefix;if(I){var n=ji,r=Ai;n=(r&~(1<<32-He(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=So++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=To++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ns,useFormState:os,useActionState:os,useOptimistic:function(e){var t=Fo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Bs.bind(null,L,!0,n),n.dispatch=t,[e,t]},useMemoCache:Bo,useCacheRefresh:function(){return Fo().memoizedState=Is.bind(null,L)},useEffectEvent:function(e){var t=Fo(),n={impl:e};return t.memoizedState=n,function(){if(V&2)throw Error(a(440));return n.impl.apply(void 0,arguments)}}},Ks={readContext:aa,use:zo,useCallback:ws,useContext:aa,useEffect:gs,useImperativeHandle:Ss,useInsertionEffect:ys,useLayoutEffect:bs,useMemo:Ts,useReducer:Ho,useRef:fs,useState:function(){return Ho(Vo)},useDebugValue:Cs,useDeferredValue:function(e,t){return Ds(Io(),R.memoizedState,e,t)},useTransition:function(){var e=Ho(Vo)[0],t=Io().memoizedState;return[typeof e==`boolean`?e:Ro(e),t]},useSyncExternalStore:Go,useId:Ps,useHostTransitionStatus:Ns,useFormState:ss,useActionState:ss,useOptimistic:function(e,t){return Qo(Io(),R,e,t)},useMemoCache:Bo,useCacheRefresh:Fs};Ks.useEffectEvent=vs;var qs={readContext:aa,use:zo,useCallback:ws,useContext:aa,useEffect:gs,useImperativeHandle:Ss,useInsertionEffect:ys,useLayoutEffect:bs,useMemo:Ts,useReducer:Wo,useRef:fs,useState:function(){return Wo(Vo)},useDebugValue:Cs,useDeferredValue:function(e,t){var n=Io();return R===null?Es(n,e,t):Ds(n,R.memoizedState,e,t)},useTransition:function(){var e=Wo(Vo)[0],t=Io().memoizedState;return[typeof e==`boolean`?e:Ro(e),t]},useSyncExternalStore:Go,useId:Ps,useHostTransitionStatus:Ns,useFormState:us,useActionState:us,useOptimistic:function(e,t){var n=Io();return R===null?(n.baseState=e,[e,n.queue.dispatch]):Qo(n,R,e,t)},useMemoCache:Bo,useCacheRefresh:Fs};qs.useEffectEvent=vs;function Js(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ys={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=xu(),i=qa(r);i.payload=t,n!=null&&(i.callback=n),t=Ja(e,i,r),t!==null&&(Cu(t,e,r),Ya(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=xu(),i=qa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ja(e,i,r),t!==null&&(Cu(t,e,r),Ya(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=xu(),r=qa(n);r.tag=2,t!=null&&(r.callback=t),t=Ja(e,r,n),t!==null&&(Cu(t,e,n),Ya(t,e,n))}};function Xs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!kr(n,r)||!kr(i,a):!0}function Zs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ys.enqueueReplaceState(t,t.state,null)}function Qs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function $s(e){ni(e)}function ec(e){console.error(e)}function tc(e){ni(e)}function nc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function rc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function ic(e,t,n){return n=qa(n),n.tag=3,n.payload={element:null},n.callback=function(){nc(e,t)},n}function ac(e){return e=qa(e),e.tag=3,e}function oc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){rc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){rc(t,n,r),typeof i!=`function`&&(du===null?du=new Set([this]):du.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function sc(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&na(t,n,i,!0),n=so.current,n!==null){switch(n.tag){case 31:case 13:return co===null?Fu():n.alternate===null&&Ql===0&&(Ql=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===ka?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),ed(e,r,i)),!1;case 22:return n.flags|=65536,r===ka?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),ed(e,r,i)),!1}throw Error(a(435,n.tag))}return ed(e,r,i),Fu(),!1}if(I)return t=so.current,t===null?(r!==Vi&&(t=Error(a(423),{cause:r}),Ji(Si(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Si(r,n),i=ic(e.stateNode,r,i),Xa(e,i),Ql!==4&&(Ql=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Vi&&(e=Error(a(422),{cause:r}),Ji(Si(e,n)))),!1;var o=Error(a(520),{cause:r});if(o=Si(o,n),iu===null?iu=[o]:iu.push(o),Ql!==4&&(Ql=2),t===null)return!0;r=Si(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=ic(n.stateNode,r,e),Xa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(du===null||!du.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=ac(i),oc(i,e,n,r),Xa(n,i),!1}n=n.return}while(n!==null);return!1}var cc=Error(a(461)),lc=!1;function uc(e,t,n,r){t.child=e===null?Ua(t,null,n,r):Ha(t,e.child,n,r)}function dc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ia(t),r=Oo(e,t,n,o,a,i),s=Mo(),e!==null&&!lc?(No(e,t,i),Nc(e,t,i)):(I&&s&&Pi(t),t.flags|=1,uc(e,t,r,i),t.child)}function fc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!pi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,pc(e,t,a,r,i)):(e=gi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Pc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?kr:n,n(o,r)&&e.ref===t.ref)return Nc(e,t,i)}return t.flags|=1,e=mi(a,r),e.ref=t.ref,e.return=t,t.child=e}function pc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(kr(a,r)&&e.ref===t.ref)if(lc=!1,t.pendingProps=r=a,Pc(e,i))e.flags&131072&&(lc=!0);else return t.lanes=e.lanes,Nc(e,t,i)}return yc(e,t,n,r,i)}function mc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return z(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&wa(t,a===null?null:a.cachePool),a===null?ao():io(t,a),fo(t);else return r=t.lanes=536870912,z(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&wa(t,null),ao(),po(t)):(wa(t,a.cachePool),io(t,a),po(t),t.memoizedState=null);return uc(e,t,i,n),t.child}function hc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function z(e,t,n,r,i){var a=Ca();return a=a===null?null:{parent:da._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&wa(t,null),ao(),fo(t),e!==null&&na(e,t,r,!0),t.childLanes=i,null}function B(e,t){return t=Oc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function gc(e,t,n){return Ha(t,e.child,null,n),e=B(t,t.pendingProps),e.flags|=2,mo(t),t.memoizedState=null,e}function _c(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(I){if(r.mode===`hidden`)return e=B(t,r),t.lanes=536870912,hc(null,e);if(uo(t),(e=Ri)?(e=mf(e,Bi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ki===null?null:{id:Ai,overflow:ji},retryLane:536870912,hydrationErrors:null},n=yi(e),n.return=t,t.child=n,Li=t,Ri=null)):e=null,e===null)throw Hi(t);return t.lanes=536870912,null}return B(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(uo(t),i)if(t.flags&256)t.flags&=-257,t=gc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558));else if(lc||na(e,t,n,!1),i=(n&e.childLanes)!==0,lc||i){if(r=Gl,r!==null&&(s=at(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,si(e,s),Cu(r,e,s),cc;Fu(),t=gc(e,t,n)}else e=o.treeContext,Ri=vf(s.nextSibling),Li=t,I=!0,zi=null,Bi=!1,e!==null&&Ii(t,e),t=B(t,r),t.flags|=4096;return t}return e=mi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function vc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(a(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function yc(e,t,n,r,i){return ia(t),n=Oo(e,t,n,r,void 0,i),r=Mo(),e!==null&&!lc?(No(e,t,i),Nc(e,t,i)):(I&&r&&Pi(t),t.flags|=1,uc(e,t,n,i),t.child)}function bc(e,t,n,r,i,a){return ia(t),t.updateQueue=null,n=Ao(t,r,n,i),ko(e),r=Mo(),e!==null&&!lc?(No(e,t,a),Nc(e,t,a)):(I&&r&&Pi(t),t.flags|=1,uc(e,t,n,a),t.child)}function xc(e,t,n,r,i){if(ia(t),t.stateNode===null){var a=ui,o=n.contextType;typeof o==`object`&&o&&(a=aa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ys,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ga(t),o=n.contextType,a.context=typeof o==`object`&&o?aa(o):ui,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Js(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ys.enqueueReplaceState(a,a.state,null),$a(t,r,a,i),Qa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Qs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ui,typeof u==`object`&&u&&(o=aa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Zs(t,a,r,o),Wa=!1;var f=t.memoizedState;a.state=f,$a(t,r,a,i),Qa(),l=t.memoizedState,s||f!==l||Wa?(typeof d==`function`&&(Js(t,n,d,r),l=t.memoizedState),(c=Wa||Xs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ka(e,t),o=t.memoizedProps,u=Qs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ui,typeof l==`object`&&l&&(c=aa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Zs(t,a,r,c),Wa=!1,f=t.memoizedState,a.state=f,$a(t,r,a,i),Qa();var p=t.memoizedState;o!==d||f!==p||Wa||e!==null&&e.dependencies!==null&&ra(e.dependencies)?(typeof s==`function`&&(Js(t,n,s,r),p=t.memoizedState),(u=Wa||Xs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ra(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,vc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ha(t,e.child,null,i),t.child=Ha(t,null,n,i)):uc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Nc(e,t,i),e}function Sc(e,t,n,r){return Ki(),t.flags|=256,uc(e,t,n,r),t.child}var Cc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wc(e){return{baseLanes:e,cachePool:Ta()}}function Tc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=nu),e}function Ec(e,t,n){var r=t.pendingProps,i=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(ho.current&2)!=0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(I){if(i?lo(t):po(t),(e=Ri)?(e=mf(e,Bi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ki===null?null:{id:Ai,overflow:ji},retryLane:536870912,hydrationErrors:null},n=yi(e),n.return=t,t.child=n,Li=t,Ri=null)):e=null,e===null)throw Hi(t);return gf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(po(t),i=t.mode,c=Oc({mode:`hidden`,children:c},i),r=_i(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=wc(n),r.childLanes=Tc(e,s,n),t.memoizedState=Cc,hc(null,r)):(lo(t),Dc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(lo(t),t.flags&=-257,t=kc(e,t,n)):t.memoizedState===null?(po(t),c=r.fallback,i=t.mode,r=Oc({mode:`visible`,children:r.children},i),c=_i(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ha(t,e.child,null,n),r=t.child,r.memoizedState=wc(n),r.childLanes=Tc(e,s,n),t.memoizedState=Cc,t=hc(null,r)):(po(t),t.child=e.child,t.flags|=128,t=null);else if(lo(t),gf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(a(419)),r.stack=``,r.digest=s,Ji({value:r,source:null,stack:null}),t=kc(e,t,n)}else if(lc||na(e,t,n,!1),s=(n&e.childLanes)!==0,lc||s){if(s=Gl,s!==null&&(r=at(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,si(e,r),Cu(s,e,r),cc;hf(c)||Fu(),t=kc(e,t,n)}else hf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ri=vf(c.nextSibling),Li=t,I=!0,zi=null,Bi=!1,e!==null&&Ii(t,e),t=Dc(t,r.children),t.flags|=4096);return t}return i?(po(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=mi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=_i(c,i,n,null),c.flags|=2):c=mi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,hc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=wc(n):(i=c.cachePool,i===null?i=Ta():(l=da._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=Tc(e,s,n),t.memoizedState=Cc,hc(e.child,r)):(lo(t),n=e.child,e=n.sibling,n=mi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Dc(e,t){return t=Oc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Oc(e,t){return e=fi(22,e,null,t),e.lanes=0,e}function kc(e,t,n){return Ha(t,e.child,null,n),e=Dc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ac(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ea(e.return,t,n)}function jc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Mc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=ho.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,A(ho,o),uc(e,t,r,n),r=I?Ei:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ac(e,n,t);else if(e.tag===19)Ac(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&go(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),jc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&go(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}jc(t,!0,n,null,a,r);break;case`together`:jc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Nc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$l|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(na(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=mi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Pc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&ra(e))):!0}function Fc(e,t,n){switch(t.tag){case 3:_e(t,t.stateNode.containerInfo),Qi(t,da,e.memoizedState.cache),Ki();break;case 27:case 5:ye(t);break;case 4:_e(t,t.stateNode.containerInfo);break;case 10:Qi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,uo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(lo(t),e=Nc(e,t,n),e===null?null:e.sibling):Ec(e,t,n):(lo(t),t.flags|=128,null);lo(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(na(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Mc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),A(ho,ho.current),r)break;return null;case 22:return t.lanes=0,mc(e,t,n,t.pendingProps);case 24:Qi(t,da,e.memoizedState.cache)}return Nc(e,t,n)}function Ic(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)lc=!0;else{if(!Pc(e,n)&&!(t.flags&128))return lc=!1,Fc(e,t,n);lc=!!(e.flags&131072)}else lc=!1,I&&t.flags&1048576&&Ni(t,Ei,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ma(t.elementType),t.type=e,typeof e==`function`)pi(e)?(r=Qs(e,r),t.tag=1,t=xc(null,t,e,r,n)):(t.tag=0,t=yc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===C){t.tag=11,t=dc(null,t,e,r,n);break a}else if(i===te){t.tag=14,t=fc(null,t,e,r,n);break a}}throw t=se(e)||e,Error(a(306,t,``))}}return t;case 0:return yc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Qs(r,t.pendingProps),xc(e,t,r,i,n);case 3:a:{if(_e(t,t.stateNode.containerInfo),e===null)throw Error(a(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,Ka(e,t),$a(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Qi(t,da,r),r!==o.cache&&ta(t,[da],n,!0),Qa(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Sc(e,t,r,n);break a}else if(r!==i){i=Si(Error(a(424)),t),Ji(i),t=Sc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ri=vf(e.firstChild),Li=t,I=!0,zi=null,Bi=!0,n=Ua(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ki(),r===i){t=Nc(e,t,n);break a}uc(e,t,r,n)}t=t.child}return t;case 26:return vc(e,t),e===null?(n=zf(t.type,null,t.pendingProps,null))?t.memoizedState=n:I||(n=t.type,e=t.pendingProps,r=Xd(he.current).createElement(n),r[dt]=t,r[ft]=e,Wd(r,n,e),wt(r),t.stateNode=r):t.memoizedState=zf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ye(t),e===null&&I&&(r=t.stateNode=Sf(t.type,t.pendingProps,he.current),Li=t,Bi=!0,i=Ri,cf(t.type)?(yf=i,Ri=vf(r.firstChild)):Ri=i),uc(e,t,t.pendingProps.children,n),vc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&I&&((i=r=Ri)&&(r=ff(r,t.type,t.pendingProps,Bi),r===null?i=!1:(t.stateNode=r,Li=t,Ri=vf(r.firstChild),Bi=!1,i=!0)),i||Hi(t)),ye(t),i=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,$d(i,o)?r=null:s!==null&&$d(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=Oo(e,t,jo,null,null,n),cp._currentValue=i),vc(e,t),uc(e,t,r,n),t.child;case 6:return e===null&&I&&((e=n=Ri)&&(n=pf(n,t.pendingProps,Bi),n===null?e=!1:(t.stateNode=n,Li=t,Ri=null,e=!0)),e||Hi(t)),null;case 13:return Ec(e,t,n);case 4:return _e(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ha(t,null,r,n):uc(e,t,r,n),t.child;case 11:return dc(e,t,t.type,t.pendingProps,n);case 7:return uc(e,t,t.pendingProps,n),t.child;case 8:return uc(e,t,t.pendingProps.children,n),t.child;case 12:return uc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Qi(t,t.type,r.value),uc(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,ia(t),i=aa(i),r=r(i),t.flags|=1,uc(e,t,r,n),t.child;case 14:return fc(e,t,t.type,t.pendingProps,n);case 15:return pc(e,t,t.type,t.pendingProps,n);case 19:return Mc(e,t,n);case 31:return _c(e,t,n);case 22:return mc(e,t,n,t.pendingProps);case 24:return ia(t),r=aa(da),e===null?(i=Ca(),i===null&&(i=Gl,o=fa(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},Ga(t),Qi(t,da,i)):((e.lanes&n)!==0&&(Ka(e,t),$a(t,null,null,n),Qa()),i=e.memoizedState,o=t.memoizedState,i.parent===r?(r=o.cache,Qi(t,da,r),r!==i.cache&&ta(t,[da],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Qi(t,da,r))),uc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function Lc(e){e.flags|=4}function Rc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Mu())e.flags|=8192;else throw Na=ka,Da}else e.flags&=-16777217}function zc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!ep(t))if(Mu())e.flags|=8192;else throw Na=ka,Da}function Bc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:$e(),e.lanes|=t,ru|=t)}function Vc(e,t){if(!I)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Hc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Uc(e,t,n){var r=t.pendingProps;switch(Fi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hc(t),null;case 1:return Hc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),$i(da),ve(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Gi(t)?Lc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,qi())),Hc(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(Lc(t),o===null?(Hc(t),Rc(t,i,null,r,n)):(Hc(t),zc(t,o))):o?o===e.memoizedState?(Hc(t),t.flags&=-16777217):(Lc(t),Hc(t),zc(t,o)):(e=e.memoizedProps,e!==r&&Lc(t),Hc(t),Rc(t,i,e,r,n)),null;case 27:if(be(t),n=he.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Hc(t),null}e=pe.current,Gi(t)?Ui(t,e):(e=Sf(i,r,n),t.stateNode=e,Lc(t))}return Hc(t),null;case 5:if(be(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Hc(t),null}if(o=pe.current,Gi(t))Ui(t,o);else{var s=Xd(he.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[dt]=t,o[ft]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Wd(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Lc(t)}}return Hc(t),Rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=he.current,Gi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Li,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Vd(e.nodeValue,n)),e||Hi(t,!0)}else e=Xd(e).createTextNode(r),e[dt]=t,t.stateNode=e}return Hc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Gi(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[dt]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Hc(t),e=!1}else n=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(mo(t),t):(mo(t),null);if(t.flags&128)throw Error(a(558))}return Hc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[dt]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Hc(t),i=!1}else i=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(mo(t),t):(mo(t),null)}return mo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Bc(t,t.updateQueue),Hc(t),null);case 4:return ve(),e===null&&jd(t.stateNode.containerInfo),Hc(t),null;case 10:return $i(t.type),Hc(t),null;case 19:if(k(ho),r=t.memoizedState,r===null)return Hc(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)Vc(r,!1);else{if(Ql!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=go(e),o!==null){for(t.flags|=128,Vc(r,!1),e=o.updateQueue,t.updateQueue=e,Bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)hi(n,e),n=n.sibling;return A(ho,ho.current&1|2),I&&Mi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&M()>lu&&(t.flags|=128,i=!0,Vc(r,!1),t.lanes=4194304)}else{if(!i)if(e=go(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Bc(t,e),Vc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!I)return Hc(t),null}else 2*M()-r.renderingStartTime>lu&&n!==536870912&&(t.flags|=128,i=!0,Vc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Hc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=M(),e.sibling=null,n=ho.current,A(ho,i?n&1|2:n&1),I&&Mi(t,r.treeForkCount),e);case 22:case 23:return mo(t),oo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Hc(t),t.subtreeFlags&6&&(t.flags|=8192)):Hc(t),n=t.updateQueue,n!==null&&Bc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&k(Sa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),$i(da),Hc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Wc(e,t){switch(Fi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $i(da),ve(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return be(t),null;case 31:if(t.memoizedState!==null){if(mo(t),t.alternate===null)throw Error(a(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(ho),null;case 4:return ve(),null;case 10:return $i(t.type),null;case 22:case 23:return mo(t),oo(),e!==null&&k(Sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return $i(da),null;case 25:return null;default:return null}}function Gc(e,t){switch(Fi(t),t.tag){case 3:$i(da),ve();break;case 26:case 27:case 5:be(t);break;case 4:ve();break;case 31:t.memoizedState!==null&&mo(t);break;case 13:mo(t);break;case 19:k(ho);break;case 10:$i(t.type);break;case 22:case 23:mo(t),oo(),e!==null&&k(Sa);break;case 24:$i(da)}}function Kc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){$u(t,t.return,e)}}function qc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){$u(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){$u(t,t.return,e)}}function Jc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{to(t,n)}catch(t){$u(e,e.return,t)}}}function Yc(e,t,n){n.props=Qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){$u(e,t,n)}}function Xc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){$u(e,t,n)}}function Zc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){$u(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){$u(e,t,n)}else n.current=null}function Qc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){$u(e,e.return,t)}}function $c(e,t,n){try{var r=e.stateNode;Gd(r,e.type,n,t),r[ft]=t}catch(t){$u(e,e.return,t)}}function el(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&cf(e.type)||e.tag===4}function tl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||el(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&cf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=on));else if(r!==4&&(r===27&&cf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&cf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(rl(e,t,n),e=e.sibling;e!==null;)rl(e,t,n),e=e.sibling}function il(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Wd(t,r,n),t[dt]=e,t[ft]=n}catch(t){$u(e,e.return,t)}}var al=!1,ol=!1,sl=!1,cl=typeof WeakSet==`function`?WeakSet:Set,ll=null;function ul(e,t){if(e=e.containerInfo,Jd=_p,e=Nr(e),Pr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Yd={focusedElem:e,selectionRange:n},_p=!1,ll=t;ll!==null;)if(t=ll,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ll=e;else for(;ll!==null;){switch(t=ll,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Qs(n.type,i);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){$u(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)df(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:df(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(a(163))}if(e=t.sibling,e!==null){e.return=t.return,ll=e;break}ll=t.return}}function dl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:El(e,n),r&4&&Kc(5,n);break;case 1:if(El(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){$u(n,n.return,e)}else{var i=Qs(n.type,t.memoizedProps);t=t.memoizedState;
vendor: 4,312 bytes, line 9
9try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){$u(n,n.return,e)}}r&64&&Jc(n),r&512&&Xc(n,n.return);break;case 3:if(El(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{to(e,t)}catch(e){$u(n,n.return,e)}}break;case 27:t===null&&r&4&&il(n);case 26:case 5:El(e,n),t===null&&r&4&&Qc(n),r&512&&Xc(n,n.return);break;case 12:El(e,n);break;case 31:El(e,n),r&4&&_l(e,n);break;case 13:El(e,n),r&4&&vl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=rd.bind(null,n),_f(e,n))));break;case 22:if(r=n.memoizedState!==null||al,!r){t=t!==null&&t.memoizedState!==null||ol,i=al;var a=ol;al=r,(ol=t)&&!a?Ol(e,n,(n.subtreeFlags&8772)!=0):El(e,n),al=i,ol=a}break;case 30:break;default:El(e,n)}}function fl(e){var t=e.alternate;t!==null&&(e.alternate=null,fl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var pl=null,ml=!1;function hl(e,t,n){for(n=n.child;n!==null;)gl(e,t,n),n=n.sibling}function gl(e,t,n){if(Be&&typeof Be.onCommitFiberUnmount==`function`)try{Be.onCommitFiberUnmount(ze,n)}catch{}switch(n.tag){case 26:ol||Zc(n,t),hl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ol||Zc(n,t);var r=pl,i=ml;cf(n.type)&&(pl=n.stateNode,ml=!1),hl(e,t,n),Cf(n.stateNode),pl=r,ml=i;break;case 5:ol||Zc(n,t);case 6:if(r=pl,i=ml,pl=null,hl(e,t,n),pl=r,ml=i,pl!==null)if(ml)try{(pl.nodeType===9?pl.body:pl.nodeName===`HTML`?pl.ownerDocument.body:pl).removeChild(n.stateNode)}catch(e){$u(n,t,e)}else try{pl.removeChild(n.stateNode)}catch(e){$u(n,t,e)}break;case 18:pl!==null&&(ml?(e=pl,lf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Up(e)):lf(pl,n.stateNode));break;case 4:r=pl,i=ml,pl=n.stateNode.containerInfo,ml=!0,hl(e,t,n),pl=r,ml=i;break;case 0:case 11:case 14:case 15:qc(2,n,t),ol||qc(4,n,t),hl(e,t,n);break;case 1:ol||(Zc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Yc(n,t,r)),hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:ol=(r=ol)||n.memoizedState!==null,hl(e,t,n),ol=r;break;default:hl(e,t,n)}}function _l(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Up(e)}catch(e){$u(t,t.return,e)}}}function vl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Up(e)}catch(e){$u(t,t.return,e)}}function yl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cl),t;default:throw Error(a(435,e.tag))}}function bl(e,t){var n=yl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=id.bind(null,e,t);t.then(r,r)}})}function xl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(cf(c.type)){pl=c.stateNode,ml=!1;break a}break;case 5:pl=c.stateNode,ml=!1;break a;case 3:case 4:pl=c.stateNode.containerInfo,ml=!0;break a}c=c.return}if(pl===null)throw Error(a(160));gl(o,s,i),pl=null,ml=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Cl(t,e),t=t.sibling}var Sl=null;function Cl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xl(t,e),wl(e),r&4&&(qc(3,e,e.return),Kc(3,e),qc(5,e,e.return));break;case 1:xl(t,e),wl(e),r&512&&(ol||n===null||Zc(n,n.return)),r&64&&al&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=Sl;if(xl(t,e),wl(e),r&512&&(ol||n===null||Zc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:o=i.getElementsByTagName(`title`)[0],(!o||o[vt]||o[dt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector(`head >
9 title`))),Wd(o,r,n),o[dt]=e,wt(o),r=o;break a;case`link`:var s=Zf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=i.createElement(r),Wd(o,r,n),i.head.appendChild(o);break;case`meta`:if(s=Zf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=i.createElement(r),Wd(o,r,n),i.head.appendChild(o);break;default:throw Error(a(468,r))}o[dt]=e,wt(o),r=o}e.stateNode=r}else Qf(i,e.type,e.stateNode);else e.stateNode=Kf(i,r,e.memoizedProps);
vendor: 65,915 bytes, lines 9-10
9else o===r?r===null&&e.stateNode!==null&&$c(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Qf(i,e.type,e.stateNode):Kf(i,r,e.memoizedProps))}break;case 27:xl(t,e),wl(e),r&512&&(ol||n===null||Zc(n,n.return)),n!==null&&r&4&&$c(e,e.memoizedProps,n.memoizedProps);break;case 5:if(xl(t,e),wl(e),r&512&&(ol||n===null||Zc(n,n.return)),e.flags&32){i=e.stateNode;try{Xt(i,``)}catch(t){$u(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,$c(e,i,n===null?i:n.memoizedProps)),r&1024&&(sl=!0);break;case 6:if(xl(t,e),wl(e),r&4){if(e.stateNode===null)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){$u(e,e.return,t)}}break;case 3:if(Xf=null,i=Sl,Sl=Ef(t.containerInfo),xl(t,e),Sl=i,wl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Up(t.containerInfo)}catch(t){$u(e,e.return,t)}sl&&(sl=!1,Tl(e));break;case 4:r=Sl,Sl=Ef(e.stateNode.containerInfo),xl(t,e),wl(e),Sl=r;break;case 12:xl(t,e),wl(e);break;case 31:xl(t,e),wl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bl(e,r)));break;case 13:xl(t,e),wl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(su=M()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bl(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=al,d=ol;if(al=u||i,ol=d||l,xl(t,e),ol=d,al=u,wl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||al||ol||Dl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,i)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){$u(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){$u(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?uf(m,!0):uf(l.stateNode,!1)}catch(e){$u(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,bl(e,n))));break;case 19:xl(t,e),wl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bl(e,r)));break;case 30:break;case 21:break;default:xl(t,e),wl(e)}}function wl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(el(r)){n=r;break}r=r.return}if(n==null)throw Error(a(160));switch(n.tag){case 27:var i=n.stateNode;rl(e,tl(e),i);break;case 5:var o=n.stateNode;n.flags&32&&(Xt(o,``),n.flags&=-33),rl(e,tl(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;nl(e,tl(e),s);break;default:throw Error(a(161))}}catch(t){$u(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Tl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Tl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function El(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dl(e,t.alternate,t),t=t.sibling}function Dl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qc(4,t,t.return),Dl(t);break;case 1:Zc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Yc(t,t.return,n),Dl(t);break;case 27:Cf(t.stateNode);case 26:case 5:Zc(t,t.return),Dl(t);break;case 22:t.memoizedState===null&&Dl(t);break;case 30:Dl(t);break;default:Dl(t)}e=e.sibling}}function Ol(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Ol(i,a,n),Kc(4,a);break;case 1:if(Ol(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){$u(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)eo(c[i],s)}catch(e){$u(r,r.return,e)}}n&&o&64&&Jc(a),Xc(a,a.return);break;case 27:il(a);case 26:case 5:Ol(i,a,n),n&&r===null&&o&4&&Qc(a),Xc(a,a.return);break;case 12:Ol(i,a,n);break;case 31:Ol(i,a,n),n&&o&4&&_l(i,a);break;case 13:Ol(i,a,n),n&&o&4&&vl(i,a);break;case 22:a.memoizedState===null&&Ol(i,a,n),Xc(a,a.return);break;case 30:break;default:Ol(i,a,n)}t=t.sibling}}function kl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&pa(n))}function Al(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pa(e))}function jl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ml(e,t,n,r),t=t.sibling}function Ml(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:jl(e,t,n,r),i&2048&&Kc(9,t);break;case 1:jl(e,t,n,r);break;case 3:jl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pa(e)));break;case 12:if(i&2048){jl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){$u(t,t.return,e)}}else jl(e,t,n,r);break;case 31:jl(e,t,n,r);break;case 13:jl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?jl(e,t,n,r):(a._visibility|=2,Nl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?jl(e,t,n,r):Pl(e,t),i&2048&&kl(o,t);break;case 24:jl(e,t,n,r),i&2048&&Al(t.alternate,t);break;default:jl(e,t,n,r)}}function Nl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Nl(a,o,s,c,i),Kc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Nl(a,o,s,c,i)):u._visibility&2?Nl(a,o,s,c,i):Pl(a,o),i&&l&2048&&kl(o.alternate,o);break;case 24:Nl(a,o,s,c,i),i&&l&2048&&Al(o.alternate,o);break;default:Nl(a,o,s,c,i)}t=t.sibling}}function Pl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Pl(n,r),i&2048&&kl(r.alternate,r);break;case 24:Pl(n,r),i&2048&&Al(r.alternate,r);break;default:Pl(n,r)}t=t.sibling}}var Fl=8192;function Il(e,t,n){if(e.subtreeFlags&Fl)for(e=e.child;e!==null;)Ll(e,t,n),e=e.sibling}function Ll(e,t,n){switch(e.tag){case 26:Il(e,t,n),e.flags&Fl&&e.memoizedState!==null&&tp(n,Sl,e.memoizedState,e.memoizedProps);break;case 5:Il(e,t,n);break;case 3:case 4:var r=Sl;Sl=Ef(e.stateNode.containerInfo),Il(e,t,n),Sl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Fl,Fl=16777216,Il(e,t,n),Fl=r):Il(e,t,n));break;default:Il(e,t,n)}}function Rl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function zl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ll=r,Hl(r,e)}Rl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bl(e),e=e.sibling}function Bl(e){switch(e.tag){case 0:case 11:case 15:zl(e),e.flags&2048&&qc(9,e,e.return);break;case 3:zl(e);break;case 12:zl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vl(e)):zl(e);break;default:zl(e)}}function Vl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ll=r,Hl(r,e)}Rl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qc(8,t,t.return),Vl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Vl(t));break;default:Vl(t)}e=e.sibling}}function Hl(e,t){for(;ll!==null;){var n=ll;switch(n.tag){case 0:case 11:case 15:qc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:pa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ll=r;else a:for(n=e;ll!==null;){r=ll;var i=r.sibling,a=r.return;if(fl(r),r===n){ll=null;break a}if(i!==null){i.return=a,ll=i;break a}ll=a}}}var Ul={getCacheForType:function(e){var t=aa(da),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return aa(da).controller.signal}},Wl=typeof WeakMap==`function`?WeakMap:Map,V=0,Gl=null,H=null,U=0,Kl=0,ql=null,Jl=!1,Yl=!1,Xl=!1,Zl=0,Ql=0,$l=0,eu=0,tu=0,nu=0,ru=0,iu=null,au=null,ou=!1,su=0,cu=0,lu=1/0,uu=null,du=null,fu=0,pu=null,mu=null,hu=0,gu=0,_u=null,vu=null,yu=0,bu=null;function xu(){return V&2&&U!==0?U&-U:D.T===null?ct():bd()}function Su(){if(nu===0)if(!(U&536870912)||I){var e=qe;qe<<=1,!(qe&3932160)&&(qe=262144),nu=e}else nu=536870912;return e=so.current,e!==null&&(e.flags|=32),nu}function Cu(e,t,n){(e===Gl&&(Kl===2||Kl===9)||e.cancelPendingCommit!==null)&&(Au(e,0),Du(e,U,nu,!1)),tt(e,n),(!(V&2)||e!==Gl)&&(e===Gl&&(!(V&2)&&(eu|=n),Ql===4&&Du(e,U,nu,!1)),fd(e))}function wu(e,t,n){if(V&6)throw Error(a(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ze(e,t),i=r?Ru(e,t):Iu(e,t,!0),o=r;do{if(i===0){Yl&&!r&&Du(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Eu(n)){i=Iu(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;i=iu;var l=c.current.memoizedState.isDehydrated;if(l&&(Au(c,s).flags|=256),s=Iu(c,s,!1),s!==2){if(Xl&&!l){c.errorRecoveryDisabledLanes|=o,eu|=o,i=4;break a}o=au,au=i,o!==null&&(au===null?au=o:au.push.apply(au,o))}i=s}if(o=!1,i!==2)continue}}if(i===1){Au(e,0),Du(e,t,0,!0);break}a:{switch(r=e,o=i,o){case 0:case 1:throw Error(a(345));case 4:if((t&4194048)!==t)break;case 6:Du(r,t,nu,!Jl);break a;case 2:au=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(i=su+300-M(),10<i)){if(Du(r,t,nu,!Jl),Xe(r,0,!0)!==0)break a;hu=t,r.timeoutHandle=nf(Tu.bind(null,r,n,au,uu,ou,t,nu,eu,ru,Jl,o,`Throttled`,-0,0),i);break a}Tu(r,n,au,uu,ou,t,nu,eu,ru,Jl,o,null,-0,0)}}break}while(1);fd(e)}function Tu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},Ll(t,a,d);var m=(a&62914560)===a?su-M():(a&4194048)===a?cu-M():0;if(m=rp(d,m),m!==null){hu=a,e.cancelPendingCommit=m(Gu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Du(e,a,o,!l);return}}Gu(e,t,a,n,r,i,o,s,c)}function Eu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Or(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Du(e,t,n,r){t&=~tu,t&=~eu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-He(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&rt(e,n,t)}function Ou(){return V&6?!0:(pd(0,!1),!1)}function ku(){if(H!==null){if(Kl===0)var e=H.return;else e=H,Zi=Xi=null,Po(e),Ia=null,La=0,e=H;for(;e!==null;)Gc(e.alternate,e),e=e.return;H=null}}function Au(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,rf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),hu=0,ku(),Gl=e,H=n=mi(e.current,null),U=t,Kl=0,ql=null,Jl=!1,Yl=Ze(e,t),Xl=!1,ru=nu=tu=eu=$l=Ql=0,au=iu=null,ou=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-He(r),a=1<<i;t|=e[i],r&=~a}return Zl=t,ai(),n}function ju(e,t){L=null,D.H=Ws,t===Ea||t===Oa?(t=Pa(),Kl=3):t===Da?(t=Pa(),Kl=4):Kl=t===cc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,ql=t,H===null&&(Ql=1,nc(e,Si(t,e.current)))}function Mu(){var e=so.current;return e===null?!0:(U&4194048)===U?co===null:(U&62914560)===U||U&536870912?e===co:!1}function Nu(){var e=D.H;return D.H=Ws,e===null?Ws:e}function Pu(){var e=D.A;return D.A=Ul,e}function Fu(){Ql=4,Jl||(U&4194048)!==U&&so.current!==null||(Yl=!0),!($l&134217727)&&!(eu&134217727)||Gl===null||Du(Gl,U,nu,!1)}function Iu(e,t,n){var r=V;V|=2;var i=Nu(),a=Pu();(Gl!==e||U!==t)&&(uu=null,Au(e,t)),t=!1;var o=Ql;a:do try{if(Kl!==0&&H!==null){var s=H,c=ql;switch(Kl){case 8:ku(),o=6;break a;case 3:case 2:case 9:case 6:so.current===null&&(t=!0);var l=Kl;if(Kl=0,ql=null,Hu(e,s,c,l),n&&Yl){o=0;break a}break;default:l=Kl,Kl=0,ql=null,Hu(e,s,c,l)}}Lu(),o=Ql;break}catch(t){ju(e,t)}while(1);return t&&e.shellSuspendCounter++,Zi=Xi=null,V=r,D.H=i,D.A=a,H===null&&(Gl=null,U=0,ai()),o}function Lu(){for(;H!==null;)Bu(H)}function Ru(e,t){var n=V;V|=2;var r=Nu(),i=Pu();Gl!==e||U!==t?(uu=null,lu=M()+500,Au(e,t)):Yl=Ze(e,t);a:do try{if(Kl!==0&&H!==null){t=H;var o=ql;b:switch(Kl){case 1:Kl=0,ql=null,Hu(e,t,o,1);break;case 2:case 9:if(Aa(o)){Kl=0,ql=null,Vu(t);break}t=function(){Kl!==2&&Kl!==9||Gl!==e||(Kl=7),fd(e)},o.then(t,t);break a;case 3:Kl=7;break a;case 4:Kl=5;break a;case 7:Aa(o)?(Kl=0,ql=null,Vu(t)):(Kl=0,ql=null,Hu(e,t,o,7));break;case 5:var s=null;switch(H.tag){case 26:s=H.memoizedState;case 5:case 27:var c=H;if(s?ep(s):c.stateNode.complete){Kl=0,ql=null;var l=c.sibling;if(l!==null)H=l;else{var u=c.return;u===null?H=null:(H=u,Uu(u))}break b}}Kl=0,ql=null,Hu(e,t,o,5);break;case 6:Kl=0,ql=null,Hu(e,t,o,6);break;case 8:ku(),Ql=6;break a;default:throw Error(a(462))}}zu();break}catch(t){ju(e,t)}while(1);return Zi=Xi=null,D.H=r,D.A=i,V=n,H===null?(Gl=null,U=0,ai(),Ql):0}function zu(){for(;H!==null&&!je();)Bu(H)}function Bu(e){var t=Ic(e.alternate,e,Zl);e.memoizedProps=e.pendingProps,t===null?Uu(e):H=t}function Vu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=bc(n,t,t.pendingProps,t.type,void 0,U);break;case 11:t=bc(n,t,t.pendingProps,t.type.render,t.ref,U);break;case 5:Po(t);default:Gc(n,t),t=H=hi(t,Zl),t=Ic(n,t,Zl)}e.memoizedProps=e.pendingProps,t===null?Uu(e):H=t}function Hu(e,t,n,r){Zi=Xi=null,Po(t),Ia=null,La=0;var i=t.return;try{if(sc(e,i,t,n,U)){Ql=1,nc(e,Si(n,e.current)),H=null;return}}catch(t){if(i!==null)throw H=i,t;Ql=1,nc(e,Si(n,e.current)),H=null;return}t.flags&32768?(I||r===1?e=!0:Yl||U&536870912?e=!1:(Jl=e=!0,(r===2||r===9||r===3||r===6)&&(r=so.current,r!==null&&r.tag===13&&(r.flags|=16384))),Wu(t,e)):Uu(t)}function Uu(e){var t=e;do{if(t.flags&32768){Wu(t,Jl);return}e=t.return;var n=Uc(t.alternate,t,Zl);if(n!==null){H=n;return}if(t=t.sibling,t!==null){H=t;return}H=t=e}while(t!==null);Ql===0&&(Ql=5)}function Wu(e,t){do{var n=Wc(e.alternate,e);if(n!==null){n.flags&=32767,H=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){H=e;return}H=e=n}while(e!==null);Ql=6,H=null}function Gu(e,t,n,r,i,o,s,c,l){e.cancelPendingCommit=null;do Xu();while(fu!==0);if(V&6)throw Error(a(327));if(t!==null){if(t===e.current)throw Error(a(177));if(o=t.lanes|t.childLanes,o|=ii,nt(e,n,o,s,c,l),e===Gl&&(H=Gl=null,U=0),mu=t,pu=e,hu=n,gu=o,_u=i,vu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ad(N,function(){return Zu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=D.T,D.T=null,i=O.p,O.p=2,s=V,V|=4;try{ul(e,t,n)}finally{V=s,O.p=i,D.T=r}}fu=1,Ku(),qu(),Ju()}}function Ku(){if(fu===1){fu=0;var e=pu,t=mu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=D.T,D.T=null;var r=O.p;O.p=2;var i=V;V|=4;try{Cl(t,e);var a=Yd,o=Nr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Mr(s.ownerDocument.documentElement,s)){if(c!==null&&Pr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=jr(s,h),v=jr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}_p=!!Jd,Yd=Jd=null}finally{V=i,O.p=r,D.T=n}}e.current=t,fu=2}}function qu(){if(fu===2){fu=0;var e=pu,t=mu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=D.T,D.T=null;var r=O.p;O.p=2;var i=V;V|=4;try{dl(e,t.alternate,t)}finally{V=i,O.p=r,D.T=n}}fu=3}}function Ju(){if(fu===4||fu===3){fu=0,j();var e=pu,t=mu,n=hu,r=vu;t.subtreeFlags&10256||t.flags&10256?fu=5:(fu=0,mu=pu=null,Yu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(du=null),st(n),t=t.stateNode,Be&&typeof Be.onCommitFiberRoot==`function`)try{Be.onCommitFiberRoot(ze,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=D.T,i=O.p,O.p=2,D.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{D.T=t,O.p=i}}hu&3&&Xu(),fd(e),i=e.pendingLanes,n&261930&&i&42?e===bu?yu++:(yu=0,bu=e):yu=0,pd(0,!1)}}function Yu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pa(t)))}function Xu(){return Ku(),qu(),Ju(),Zu()}function Zu(){if(fu!==5)return!1;var e=pu,t=gu;gu=0;var n=st(hu),r=D.T,i=O.p;try{O.p=32>n?32:n,D.T=null,n=_u,_u=null;var o=pu,s=hu;if(fu=0,mu=pu=null,hu=0,V&6)throw Error(a(331));var c=V;if(V|=4,Bl(o.current),Ml(o,o.current,s,n),V=c,pd(0,!1),Be&&typeof Be.onPostCommitFiberRoot==`function`)try{Be.onPostCommitFiberRoot(ze,o)}catch{}return!0}finally{O.p=i,D.T=r,Yu(e,t)}}function Qu(e,t,n){t=Si(n,t),t=ic(e.stateNode,t,2),e=Ja(e,t,2),e!==null&&(tt(e,2),fd(e))}function $u(e,t,n){if(e.tag===3)Qu(e,e,n);else for(;t!==null;){if(t.tag===3){Qu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(du===null||!du.has(r))){e=Si(n,e),n=ac(2),r=Ja(t,n,2),r!==null&&(oc(n,r,t,e),tt(r,2),fd(r));break}}t=t.return}}function ed(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Wl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Xl=!0,i.add(n),e=td.bind(null,e,t,n),t.then(e,e))}function td(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Gl===e&&(U&n)===n&&(Ql===4||Ql===3&&(U&62914560)===U&&300>M()-su?!(V&2)&&Au(e,0):tu|=n,ru===U&&(ru=0)),fd(e)}function nd(e,t){t===0&&(t=$e()),e=si(e,t),e!==null&&(tt(e,t),fd(e))}function rd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nd(e,n)}function id(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),nd(e,n)}function ad(e,t){return ke(e,t)}var od=null,sd=null,cd=!1,ld=!1,ud=!1,dd=0;function fd(e){e!==sd&&e.next===null&&(sd===null?od=sd=e:sd=sd.next=e),ld=!0,cd||(cd=!0,yd())}function pd(e,t){if(!ud&&ld){ud=!0;do for(var n=!1,r=od;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-He(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,vd(r,a))}else a=U,a=Xe(r,r===Gl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ze(r,a)||(n=!0,vd(r,a));r=r.next}while(n);ud=!1}}function md(){hd()}function hd(){ld=cd=!1;var e=0;dd!==0&&tf()&&(e=dd);for(var t=M(),n=null,r=od;r!==null;){var i=r.next,a=gd(r,t);a===0?(r.next=null,n===null?od=i:n.next=i,i===null&&(sd=n)):(n=r,(e!==0||a&3)&&(ld=!0)),r=i}fu!==0&&fu!==5||pd(e,!1),dd!==0&&(dd=0)}function gd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-He(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Gl,n=U,n=Xe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Kl===2||Kl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ae(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ze(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ae(r),st(n)){case 2:case 8:n=Pe;break;case 32:n=N;break;case 268435456:n=Ie;break;default:n=N}return r=_d.bind(null,e),n=ke(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ae(r),e.callbackPriority=2,e.callbackNode=null,2}function _d(e,t){if(fu!==0&&fu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xu()&&e.callbackNode!==n)return null;var r=U;return r=Xe(e,e===Gl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(wu(e,r,t),gd(e,M()),e.callbackNode!=null&&e.callbackNode===n?_d.bind(null,e):null)}function vd(e,t){if(Xu())return null;wu(e,t,!0)}function yd(){of(function(){V&6?ke(Ne,md):hd()})}function bd(){if(dd===0){var e=ga;e===0&&(e=Ke,Ke<<=1,!(Ke&261888)&&(Ke=256)),dd=e}return dd}function xd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:an(``+e)}function Sd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Cd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=xd((i[ft]||null).action),o=r.submitter;o&&(t=(t=o[ft]||null)?xd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Dn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(dd!==0){var e=o?Sd(i,o):new FormData(i);As(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Sd(i,o):new FormData(i),As(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var wd=0;wd<ei.length;wd++){var Td=ei[wd];ti(Td.toLowerCase(),`on`+(Td[0].toUpperCase()+Td.slice(1)))}ti(Kr,`onAnimationEnd`),ti(qr,`onAnimationIteration`),ti(Jr,`onAnimationStart`),ti(`dblclick`,`onDoubleClick`),ti(`focusin`,`onFocus`),ti(`focusout`,`onBlur`),ti(Yr,`onTransitionRun`),ti(Xr,`onTransitionStart`),ti(Zr,`onTransitionCancel`),ti(Qr,`onTransitionEnd`),Ot(`onMouseEnter`,[`mouseout`,`mouseover`]),Ot(`onMouseLeave`,[`mouseout`,`mouseover`]),Ot(`onPointerEnter`,[`pointerout`,`pointerover`]),Ot(`onPointerLeave`,[`pointerout`,`pointerover`]),Dt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Dt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Dt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Dt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Dt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Dt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Ed=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Dd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Ed));function Od(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ni(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ni(e)}i.currentTarget=null,a=c}}}}function W(e,t){var n=t[mt];n===void 0&&(n=t[mt]=new Set);var r=e+`__bubble`;n.has(r)||(Md(t,e,2,!1),n.add(r))}function kd(e,t,n){var r=0;t&&(r|=4),Md(n,e,r,t)}var Ad=`_reactListening`+Math.random().toString(36).slice(2);function jd(e){if(!e[Ad]){e[Ad]=!0,Tt.forEach(function(t){t!==`selectionchange`&&(Dd.has(t)||kd(t,!1,e),kd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ad]||(t[Ad]=!0,kd(`selectionchange`,!1,t))}}function Md(e,t,n,r){switch(wp(t)){case 2:var i=vp;break;case 8:i=yp;break;default:i=bp}n=i.bind(null,t,n,e),i=void 0,!gn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Nd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var c=r.stateNode.containerInfo;if(c===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;c!==null;){if(o=bt(c),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}c=c.parentNode}}r=r.return}pn(function(){var r=a,i=cn(n),o=[];a:{var c=$r.get(e);if(c!==void 0){var l=Dn,u=e;switch(e){case`keypress`:if(Sn(n)===0)break a;case`keydown`:case`keyup`:l=Gn;break;case`focusin`:u=`focus`,l=In;break;case`focusout`:u=`blur`,l=In;break;case`beforeblur`:case`afterblur`:l=In;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Pn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Fn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=qn;break;case Kr:case qr:case Jr:l=Ln;break;case Qr:l=Jn;break;case`scroll`:case`scrollend`:l=kn;break;case`wheel`:l=Yn;break;case`copy`:case`cut`:case`paste`:l=Rn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Kn;break;case`toggle`:case`beforetoggle`:l=Xn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=mn(m,p),g!=null&&d.push(Pd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),o.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==sn&&(u=n.relatedTarget||n.fromElement)&&(bt(u)||u[pt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?bt(u):null,u!==null&&(f=s(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Pn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Kn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:St(l),h=u==null?c:St(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,bt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Id,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Ld(o,c,l,d,!1),u!==null&&f!==null&&Ld(o,f,u,d,!0)}}a:{if(c=r?St(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=gr;else if(ur(c))if(_r)v=Er;else{v=wr;var y=Cr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&en(r.elementType)&&(v=gr):v=Tr;if(v&&=v(e,r)){dr(o,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Kt(c,`number`,c.value)}switch(y=r?St(r):window,e){case`focusin`:(ur(y)||y.contentEditable===`true`)&&(Ir=y,Lr=r,Rr=null);break;case`focusout`:Rr=Lr=Ir=null;break;case`mousedown`:zr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:zr=!1,Br(o,n,i);break;case`selectionchange`:if(Fr)break;case`keydown`:case`keyup`:Br(o,n,i)}var b;if(Qn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else or?ir(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(tr&&n.locale!==`ko`&&(or||x!==`onCompositionStart`?x===`onCompositionEnd`&&or&&(b=xn()):(vn=i,yn=`value`in vn?vn.value:vn.textContent,or=!0)),y=Fd(r,x),0<y.length&&(x=new zn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=ar(n),b!==null&&(x.data=b)))),(b=er?sr(e,n):cr(e,n))&&(x=Fd(r,`onBeforeInput`),0<x.length&&(y=new zn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),Cd(o,e,r,n,i)}Od(o,t)})}function Pd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=mn(e,n),i!=null&&r.unshift(Pd(e,i,a)),i=mn(e,t),i!=null&&r.push(Pd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Id(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ld(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=mn(n,a),l!=null&&o.unshift(Pd(n,l,c))):i||(l=mn(n,a),l!=null&&o.push(Pd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Rd=/\r\n?/g,zd=/\u0000|\uFFFD/g;function Bd(e){return(typeof e==`string`?e:``+e).replace(Rd,` 10`).replace(zd,``)}function Vd(e,t){return t=Bd(t),Bd(e)===t}function Hd(e,t,n,r,i,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Xt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Xt(e,``+r);break;case`className`:Pt(e,`class`,r);break;case`tabIndex`:Pt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Pt(e,n,r);break;case`style`:$t(e,r,o);break;case`data`:if(t!==`object`){Pt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Hd(e,t,`name`,i.name,i,null),Hd(e,t,`formEncType`,i.formEncType,i,null),Hd(e,t,`formMethod`,i.formMethod,i,null),Hd(e,t,`formTarget`,i.formTarget,i,null)):(Hd(e,t,`encType`,i.encType,i,null),Hd(e,t,`method`,i.method,i,null),Hd(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=on);break;case`onScroll`:r!=null&&W(`scroll`,e);break;case`onScrollEnd`:r!=null&&W(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=an(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:W(`beforetoggle`,e),W(`toggle`,e),Nt(e,`popover`,r);break;case`xlinkActuate`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ft(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ft(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ft(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Nt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=tn.get(n)||n,Nt(e,n,r))}}function Ud(e,t,n,r,i,o){switch(n){case`style`:$t(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Xt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Xt(e,``+r);break;case`onScroll`:r!=null&&W(`scroll`,e);break;case`onScrollEnd`:r!=null&&W(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=on);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Et.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),o=e[ft]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,i),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Nt(e,n,r)}}}function Wd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:W(`error`,e),W(`load`,e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:Hd(e,t,o,s,n,null)}}i&&Hd(e,t,`srcSet`,n.srcSet,n,null),r&&Hd(e,t,`src`,n.src,n,null);return;case`input`:W(`invalid`,e);var c=o=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(a(137,t));break;default:Hd(e,t,r,d,n,null)}}Gt(e,o,c,l,u,s,i,!1);return;case`select`:for(i in W(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Hd(e,t,i,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&qt(e,!!r,n,!0):qt(e,!!r,t,!1);return;case`textarea`:for(s in W(`invalid`,e),o=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(a(91));break;default:Hd(e,t,s,c,n,null)}Yt(e,r,i,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Hd(e,t,l,r,n,null)}return;case`dialog`:W(`beforetoggle`,e),W(`toggle`,e),W(`cancel`,e),W(`close`,e);break;case`iframe`:case`object`:W(`load`,e);break;case`video`:case`audio`:for(r=0;r<Ed.length;r++)W(Ed[r],e);break;case`image`:W(`error`,e),W(`load`,e);break;case`details`:W(`toggle`,e);break;case`embed`:case`source`:case`link`:W(`error`,e),W(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:Hd(e,t,u,r,n,null)}return;default:if(en(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Ud(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Hd(e,t,c,r,n,null))}function Gd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Hd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(a(137,t));break;default:m!==f&&Hd(e,t,p,m,r,f)}}Wt(e,s,c,l,u,d,o,i);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Hd(e,t,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(o!=null||l!=null))switch(i){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Hd(e,t,i,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?qt(e,!!n,n?[]:``,!1):qt(e,!!n,t,!0)):qt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Hd(e,t,c,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(i!=null||o!=null))switch(s){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(a(91));break;default:i!==o&&Hd(e,t,s,i,r,o)}Jt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Hd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Hd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Hd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(a(137,t));break;default:Hd(e,t,u,p,r,m)}return;default:if(en(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Ud(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Ud(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Hd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Hd(e,t,f,p,r,m)}function Kd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function qd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Kd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Kd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Jd=null,Yd=null;function Xd(e){return e.nodeType===9?e:e.ownerDocument}function Zd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Qd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function $d(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ef=null;function tf(){var e=window.event;return e&&e.type===`popstate`?e===ef?!1:(ef=e,!0):(ef=null,!1)}var nf=typeof setTimeout==`function`?setTimeout:void 0,rf=typeof clearTimeout==`function`?clearTimeout:void 0,af=typeof Promise==`function`?Promise:void 0,of=typeof queueMicrotask==`function`?queueMicrotask:af===void 0?nf:function(e){return af.resolve(null).then(e).catch(sf)};function sf(e){setTimeout(function(){throw e})}function cf(e){return e===`head`}function lf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Up(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Cf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Cf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[vt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Cf(e.ownerDocument.body);n=i}while(n);Up(t)}function uf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function df(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:df(n),yt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function ff(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[vt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=vf(e.nextSibling),e===null)break}return null}function pf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=vf(e.nextSibling),e===null))return null;return e}function mf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=vf(e.nextSibling),e===null))return null;return e}function hf(e){return e.data===`$?`||e.data===`$~`}function gf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function _f(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function vf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var yf=null;function bf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return vf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function xf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function Sf(e,t,n){switch(t=Xd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(a(452));return e;case`head`:if(e=t.head,!e)throw Error(a(453));return e;case`body`:if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function Cf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yt(e)}var wf=new Map,Tf=new Set;function Ef(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Df=O.d;O.d={f:Of,r:kf,D:Mf,C:Nf,L:Pf,m:Ff,X:Lf,S:If,M:Rf};function Of(){var e=Df.f(),t=Ou();return e||t}function kf(e){var t=xt(e);t!==null&&t.tag===5&&t.type===`form`?Ms(t):Df.r(e)}var Af=typeof document>`u`?null:document;function jf(e,t,n){var r=Af;if(r&&typeof t==`string`&&t){var i=Ut(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Tf.has(i)||(Tf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Wd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function Mf(e){Df.D(e),jf(`dns-prefetch`,e,null)}function Nf(e,t){Df.C(e,t),jf(`preconnect`,e,t)}function Pf(e,t,n){Df.L(e,t,n);var r=Af;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ut(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ut(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ut(n.imageSizes)+`"]`)):i+=`[href="`+Ut(e)+`"]`;var a=i;switch(t){case`style`:a=Bf(e);break;case`script`:a=Wf(e)}wf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),wf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Vf(a))||t===`script`&&r.querySelector(Gf(a))||(t=r.createElement(`link`),Wd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function Ff(e,t){Df.m(e,t);var n=Af;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ut(r)+`"][href="`+Ut(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Wf(e)}if(!wf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),wf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Gf(a)))return}r=n.createElement(`link`),Wd(r,`link`,e),wt(r),n.head.appendChild(r)}}}function If(e,t,n){Df.S(e,t,n);var r=Af;if(r&&e){var i=Ct(r).hoistableStyles,a=Bf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Vf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=wf.get(a))&&Jf(e,n);var c=o=r.createElement(`link`);wt(c),Wd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,qf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Lf(e,t){Df.X(e,t);var n=Af;if(n&&e){var r=Ct(n).hoistableScripts,i=Wf(e),a=r.get(i);a||(a=n.querySelector(Gf(i)),a||(e=m({src:e,async:!0},t),(t=wf.get(i))&&Yf(e,t),a=n.createElement(`script`),wt(a),Wd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rf(e,t){Df.M(e,t);var n=Af;if(n&&e){var r=Ct(n).hoistableScripts,i=Wf(e),a=r.get(i);a||(a=n.querySelector(Gf(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=wf.get(i))&&Yf(e,t),a=n.createElement(`script`),wt(a),Wd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function zf(e,t,n,r){var i=(i=he.current)?Ef(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Bf(n.href),n=Ct(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Bf(n.href);var o=Ct(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Vf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),wf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},wf.set(e,n),o||Uf(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Wf(n),n=Ct(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Bf(e){return`href="`+Ut(e)+`"`}function Vf(e){return`link[rel="stylesheet"][`+e+`]`}function Hf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Uf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Wd(t,`link`,n),wt(t),e.head.appendChild(t))}function Wf(e){return`[src="`+Ut(e)+`"]`}function Gf(e){return`script[async]`+e}function Kf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ut(n.href)+`"]`);if(r)return t.instance=r,wt(r),r;var i=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),wt(r),Wd(r,`style`,i),qf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Bf(n.href);var o=e.querySelector(Vf(i));if(o)return t.state.loading|=4,t.instance=o,wt(o),o;r=Hf(n),(i=wf.get(i))&&Jf(r,i),o=(e.ownerDocument||e).createElement(`link`),wt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Wd(o,`link`,r),t.state.loading|=4,qf(o,n.precedence,e),t.instance=o;case`script`:return o=Wf(n.src),(i=e.querySelector(Gf(o)))?(t.instance=i,wt(i),i):(r=n,(i=wf.get(o))&&(r=m({},n),Yf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),wt(i),Wd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,qf(r,n.precedence,e));return t.instance}function qf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Jf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Yf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Xf=null;function Zf(e,t,n){if(Xf===null){var r=new Map,i=Xf=new Map;i.set(n,r)}else i=Xf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[vt]||a[dt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Qf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function $f(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function ep(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function tp(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Bf(r.href),a=t.querySelector(Vf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ip.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,wt(a);return}a=t.ownerDocument||t,r=Hf(r),(i=wf.get(i))&&Jf(r,i),a=a.createElement(`link`),wt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Wd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ip.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var np=0;function rp(e,t){return e.stylesheets&&e.count===0&&op(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&op(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&np===0&&(np=62500*qd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&op(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>np?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ip(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)op(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ap=null;function op(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ap=new Map,t.forEach(sp,e),ap=null,ip.call(e))}function sp(e,t){if(!(t.state.loading&4)){var n=ap.get(e);if(n)var r=n.get(null);else{n=new Map,ap.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ip.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var cp={$$typeof:S,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function lp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=et(0),this.hiddenUpdates=et(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function up(e,t,n,r,i,a,o,s,c,l,u,d){return e=new lp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=fi(3,null,null,t),e.current=a,a.stateNode=e,t=fa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ga(a),e}function dp(e){return e?(e=ui,e):ui}function fp(e,t,n,r,i,a){i=dp(i),r.context===null?r.context=i:r.pendingContext=i,r=qa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ja(e,r,t),n!==null&&(Cu(n,e,t),Ya(n,e,t))}function pp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mp(e,t){pp(e,t),(e=e.alternate)&&pp(e,t)}function hp(e){if(e.tag===13||e.tag===31){var t=si(e,67108864);t!==null&&Cu(t,e,67108864),mp(e,67108864)}}function gp(e){if(e.tag===13||e.tag===31){var t=xu();t=ot(t);var n=si(e,t);n!==null&&Cu(n,e,t),mp(e,t)}}var _p=!0;function vp(e,t,n,r){var i=D.T;D.T=null;var a=O.p;try{O.p=2,bp(e,t,n,r)}finally{O.p=a,D.T=i}}function yp(e,t,n,r){var i=D.T;D.T=null;var a=O.p;try{O.p=8,bp(e,t,n,r)}finally{O.p=a,D.T=i}}function bp(e,t,n,r){if(_p){var i=xp(r);if(i===null)Nd(e,t,r,Sp,n),Np(e,r);else if(Fp(i,e,t,n,r))r.stopPropagation();else if(Np(e,r),t&4&&-1<Mp.indexOf(e)){for(;i!==null;){var a=xt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ye(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-He(o);s.entanglements[1]|=c,o&=~c}fd(a),!(V&6)&&(lu=M()+500,pd(0,!1))}}break;case 31:case 13:s=si(a,2),s!==null&&Cu(s,a,2),Ou(),mp(a,2)}if(a=xp(r),a===null&&Nd(e,t,r,Sp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Nd(e,t,r,null,n)}}function xp(e){return e=cn(e),Cp(e)}var Sp=null;function Cp(e){if(Sp=null,e=bt(e),e!==null){var t=s(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=c(t),e!==null)return e;e=null}else if(n===31){if(e=l(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Sp=e,null}function wp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Me()){case Ne:return 2;case Pe:return 8;case N:case Fe:return 32;case Ie:return 268435456;default:return 32}default:return 32}}var Tp=!1,Ep=null,Dp=null,Op=null,kp=new Map,Ap=new Map,jp=[],Mp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Np(e,t){switch(e){case`focusin`:case`focusout`:Ep=null;break;case`dragenter`:case`dragleave`:Dp=null;break;case`mouseover`:case`mouseout`:Op=null;break;case`pointerover`:case`pointerout`:kp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ap.delete(t.pointerId)}}function Pp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=xt(t),t!==null&&hp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Fp(e,t,n,r,i){switch(t){case`focusin`:return Ep=Pp(Ep,e,t,n,r,i),!0;case`dragenter`:return Dp=Pp(Dp,e,t,n,r,i),!0;case`mouseover`:return Op=Pp(Op,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return kp.set(a,Pp(kp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ap.set(a,Pp(Ap.get(a)||null,e,t,n,r,i)),!0}return!1}function Ip(e){var t=bt(e.target);if(t!==null){var n=s(t);if(n!==null){if(t=n.tag,t===13){if(t=c(n),t!==null){e.blockedOn=t,lt(e.priority,function(){gp(n)});return}}else if(t===31){if(t=l(n),t!==null){e.blockedOn=t,lt(e.priority,function(){gp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);sn=r,n.target.dispatchEvent(r),sn=null}else return t=xt(n),t!==null&&hp(t),e.blockedOn=n,!1;t.shift()}return!0}function Rp(e,t,n){Lp(e)&&n.delete(t)}function zp(){Tp=!1,Ep!==null&&Lp(Ep)&&(Ep=null),Dp!==null&&Lp(Dp)&&(Dp=null),Op!==null&&Lp(Op)&&(Op=null),kp.forEach(Rp),Ap.forEach(Rp)}function Bp(e,n){e.blockedOn===n&&(e.blockedOn=null,Tp||(Tp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,zp)))}var Vp=null;function Hp(e){Vp!==e&&(Vp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Vp===e&&(Vp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Cp(r||n)===null)continue;break}var a=xt(n);a!==null&&(e.splice(t,3),t-=3,As(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Up(e){function t(t){return Bp(t,e)}Ep!==null&&Bp(Ep,e),Dp!==null&&Bp(Dp,e),Op!==null&&Bp(Op,e),kp.forEach(t),Ap.forEach(t);for(var n=0;n<jp.length;n++){var r=jp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<jp.length&&(n=jp[0],n.blockedOn===null);)Ip(n),n.blockedOn===null&&jp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ft]||null;if(typeof a==`function`)o||Hp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ft]||null)s=o.formAction;else if(Cp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Hp(n)}}}function Wp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Gp(e){this._internalRoot=e}Kp.prototype.render=Gp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var n=t.current;fp(n,xu(),e,t,null,null)},Kp.prototype.unmount=Gp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fp(e.current,2,null,e,null,null),Ou(),t[pt]=null}};function Kp(e){this._internalRoot=e}Kp.prototype.unstable_scheduleHydration=function(e){if(e){var t=ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jp.length&&t!==0&&t<jp[n].priority;n++);jp.splice(n,0,e),n===0&&Ip(e)}};var qp=n.version;if(qp!==`19.2.7`)throw Error(a(527,qp,`19.2.7`));O.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(a(188)):(e=Object.keys(e).join(`,`),Error(a(268,e)));return e=d(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Jp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:D,reconcilerVersion:`19.2.7`};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Yp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yp.isDisabled&&Yp.supportsFiber)try{ze=Yp.inject(Jp),Be=Yp}catch{}}e.hydrateRoot=function(e,t,n){if(!o(e))throw Error(a(299));var r=!1,i=``,s=$s,c=ec,l=tc,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=up(e,1,!0,t,n??null,r,i,u,s,c,l,Wp),t.context=dp(null),n=t.current,r=xu(),r=ot(r),i=qa(r),i.callback=null,Ja(n,i,r),n=r,t.current.lanes=n,tt(t,n),fd(t),e[pt]=t.current,jd(e),new Kp(t)}})),an=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=rn()})),on=`__TSS_CONTEXT`,sn=Symbol.for(`TSS_SERVER_FUNCTION`),cn=Symbol.for(`TSS_SERVER_FUNCTION_FACTORY`),ln=`application/x-tss-framed`,un={JSON:0,CHUNK:1,END:2,ERROR:3};`${ln}`;var dn=/;\s*v=(\d+)/;function fn(e){let t=e.match(dn);return t?parseInt(t[1],10):void 0}function pn(e){let t=fn(e);if(t!==void 0&&t!==1)throw Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var mn=()=>window.__TSS_START_OPTIONS__;function hn(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function gn(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function _n(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=gn(r):Array.isArray(t)?t.push(gn(r)):n[e]=[t,gn(r)]}return n}var vn=bn(JSON.parse),yn=xn(JSON.stringify,JSON.parse);function bn(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=_n(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function xn(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=hn(e,r);return t?`?${t}`:``}}var Sn=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Cn=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),wn=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Tn=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);
10i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},En=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},Dn=(e,t,n)=>{if(!(!Oe(n)&&!Te(n)))throw Oe(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Oe(n)?`redirected`:Te(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Tn(e,t.index),isFetching:!1,error:n})),Te(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Oe(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},On=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},kn=(e,t,n)=>{let r=Tn(e,n);e.updateMatch(t,e=>({...e,context:r}))},An=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Dn(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,Dn(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Oe(n)&&!Te(n)&&(e.serialError??=n)},jn=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!wn(e,t)&&(n.options.loader||n.options.beforeLoad||Hn(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Sn(e)},i);r._nonReactive.pendingTimeout=t}},Mn=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;jn(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Dn(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Nn=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=A(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&An(e,n,o),s&&An(e,n,s),jn(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=A();let f={...Tn(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=wn(e,t),_={search:p,abortController:c,params:m,preload:g,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},y=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(Oe(r)||Te(r))&&(u(),An(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},b;try{if(b=r.options.beforeLoad(_),v(b))return u(),b.catch(t=>{An(e,n,t)}).then(y)}catch(t){u(),An(e,n,t)}y(b)},Pn=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Nn(e,n,t,i),s=()=>{if(On(e,n))return;let t=Mn(e,n,i);return v(t)?t.then(o):o()};return a()},Fn=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},In=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Tn(e,r),d=wn(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Ln=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Vn(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(In(e,t,n,r,i)),l=!!s&&v(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;Dn(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Tn(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>
10({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Tn(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,Te(t)&&await i.options.notFoundComponent?.preload?.(),Dn(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Dn(e,e.router.getMatch(n),t)}!Oe(o)&&!Te(o)&&await Vn(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Tn(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Dn(e,r,t)}},Rn=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(In(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await Ln(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){Oe(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await Ln(e,t,i,n,d):kn(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(On(e,i)){if(!e.router.getMatch(i))return e.matches[n];kn(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=wn(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&Dn(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=A(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function zn(e){let t=e,n=[];Cn(t.router)&&Sn(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=Pn(t,e);v(n)&&await n}catch(e){if(Oe(e))throw e;if(Te(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,a=r&&!t.preload?En(t,r):void 0,o=r&&t.preload?0:a===void 0?i:Math.min(a+1,i),s,c;for(let e=0;e<o;e++)n.push(Rn(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(Oe(e))throw e;Te(e)?s??=e:c??=e}if(c!==void 0)throw c}let l=s??(r&&!t.preload?r:void 0),u=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!l&&r&&t.preload)return t.matches;if(l){let e=En(t,l);e===void 0&&E();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),l.routeId=n.routeId;let a=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await Vn(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Vn(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Fn(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=Sn(t);
10if(v(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Bn(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Vn(e,t=Un){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===Un?(()=>{if(e._componentsPromise===void 0){let t=Bn(e,Un);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Bn(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Hn(e){for(let t of Un)if(e.options[t]?.preload)return!0;return!1}var Un=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function Wn(e){return{input:({url:t})=>{for(let n of e)t=Kn(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=qn(e[n],t);return t}}}function Gn(e){let t=xe(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=fe([`/`,t,e.pathname]),e)}}function Kn(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function qn(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Jn(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),x=r(()=>Yn(o,_.get())),S=r(()=>Yn(s,v.get())),C=r(()=>Yn(c,y.get())),w=r(()=>_.get()[0]),ee=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),te=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),ne=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:x.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),E=b(64);function re(e){let t=E.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),E.set(e,t)),t}let ie={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:x,pendingMatches:S,cachedMatches:C,firstId:w,hasPending:ee,matchRouteDeps:te,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:ne,getRouteMatchStore:re,setMatches:ae,setPending:oe,setCached:se};ae(e.matches),a?.(ie);function ae(e){Xn(e,o,_,n,i)}function oe(e){Xn(e,s,v,n,i)}function se(e){Xn(e,c,y,n,i)}return ie}function Yn(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function Xn(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}_(n.get(),a)||n.set(a)})}var Zn=`__TSR_index`,Qn=`popstate`,$n=`beforeunload`;function er(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=ir(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Zn];i=tr(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Zn];i=tr(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Zn]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function tr(e,t){t||={};let n=ar();
10return{...t,key:n,__TSR_key:n,[Zn]:e}}function nr(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>ir(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=ar();t.history.replaceState({[Zn]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=ir(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Zn]-l.state[Zn],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=er({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener($n,S,{capture:!0}),t.removeEventListener(Qn,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener($n,S,{capture:!0}),t.addEventListener(Qn,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function rr(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function ir(e,t){let n=rr(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=ar();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[Zn]:0,key:a,__TSR_key:a}}}function ar(){return(Math.random()+1).toString(36).substring(7)}function or(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function sr(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var cr=new WeakMap,lr=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=de(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=nr()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=b(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Jn(fr(this.latestLocation),e),Mr(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=xe(o);t&&t!==`/`&&e.push(Gn({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Wn(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=x(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&oe(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>
10{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:te(e).path,external:!1,searchStr:o,search:C(t?.search,i),hash:te(r.slice(1)).path,state:se(t?.state,a)}}let o=new URL(i,this.origin),s=Kn(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:te(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:C(t?.search,c),hash:te(s.hash.slice(1)).path,state:se(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>D({base:e,to:t.includes(`//`)?ue(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>mr({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,w(t.params,s)),d=this.routesByPath[le(l)],f;if(d)f=this.getRouteBranch(d);else if(l.includes(`$`))f=[];else{let e=this.getMatchedRoutes(l);f=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(f=[...f,this.options.notFoundRoute])}if(f.length&&ee(u))for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let p=e.leaveParams?l:te(he({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,m=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,pr(t.options.validateSearch,{...e,...m}))}catch{}}),m=e}m=hr({search:m,dest:t,destRoutes:f,_includeValidateSearch:e._includeValidateSearch}),m=C(o,m);let h=this.options.stringifySearch(m),g=t.hash===!0?n.hash:t.hash?w(t.hash,n.hash):void 0,_=g?`#${g}`:``,v=t.state===!0?n.state:t.state?w(t.state,n.state):{};v=se(n.state,v);let y=`${p}${h}${_}`,b,x,S=!1;if(this.rewrite){let e=new URL(y,this.origin),t=qn(this.rewrite,e);b=e.href.replace(e.origin,``),t.origin===this.origin?x=t.pathname+t.search+t.hash:(x=t.href,S=!0)}else b=re(y),x=b;return{publicHref:x,href:b,pathname:p,search:m,searchStr:h,state:v,hash:g??``,external:S,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=ae(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,w(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];
10e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=ne(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=le(this.latestLocation.href)===le(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=A(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=ir(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=Kn(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(ie(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?cr.set(this.latestLocation,t):cr.delete(this.latestLocation);let n=this.latestLocation,r=sr(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await zn({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){Oe(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):Te(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(sr(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>
10{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&ie(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=Vn,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await zn({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(Oe(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});Te(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=Se(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!ne(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?ne(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??yn,parseSearch:e.parseSearch??vn,protocolAllowlist:e.protocolAllowlist??pe}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=Ce(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParam
10s:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:le(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?_r(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;n<a.length;n++){let r=a[n],o=c[n-1],u,d,f;{let n=o?.search??e.search,i=o?._strictSearch??void 0;try{let e=pr(r.options.validateSearch,{...n})??void 0;u={...n,...e},d={...i,...e},f=void 0}catch(e){let r=e;if(e instanceof ur||(r=new ur(e.message,{cause:e})),t?.throwOnError)throw r;u=n,d={},f=r}}let p=r.options.loaderDeps?.({search:u})??``,m=p?JSON.stringify(p):``,{interpolatedPath:h,usedParams:g}=he({path:r.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),_=r.id+h+m,v=this.getMatch(_),y=l.get(r.id),b=v?._strictParams??g,x;if(!v)try{vr(r,b)}catch(e){if(x=Te(e)||Oe(e)?e:new dr(e.message,{cause:e}),t?.throwOnError)throw x}Object.assign(i,b);let S=y?`stay`:`enter`,w;if(v)w={...v,cause:S,params:y?.params??i,_strictParams:b,search:C(y?y.search:v.search,u),_strictSearch:d};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||Hn(r)?`pending`:`success`;w={id:_,ssr:r.options.ssr,index:n,routeId:r.id,params:y?.params??i,_strictParams:b,pathname:h,updatedAt:Date.now(),search:y?C(y.search,u):u,_strictSearch:d,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:x,__routeContext:void 0,_nonReactive:{loadPromise:A()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:S,loaderDeps:y?se(y.loaderDeps,p):p,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(w.globalNotFound=s===r.id),w.searchError=f;let ee=this.getParentContext(o);w.context={...ee,...w.__routeContext,...w.__beforeLoadContext},c[n]=w}for(let t=0;t<c.length;t++){let n=c[t],r=this.looseRoutesById[n.routeId],a=this.getMatch(n.id),o=l.get(n.routeId);if(n.params=o?C(o.params,i):i,!a){let i=c[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=ce(t),i={...e.search};for(let e of t)try{Object.assign(i,pr(e.options.validateSearch,i))}catch{}let a=ce(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{vr(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},ur=class extends Error{},dr=class extends Error{};function fr(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function pr(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new ur(`Async validation not supported`);if(n.issues)throw new ur(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function mr({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=le(e),a,o=y(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function hr({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return gr(n)(e,t,r??!1)}function gr(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>
10t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=pr(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=w(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function _r(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return Ae}function vr(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function yr(){try{return sessionStorage}catch{return}}var br=`tsr-scroll-restoration-v1_3`,xr=yr();function Sr(){try{return JSON.parse(xr?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Cr(){try{xr?.setItem(br,JSON.stringify(wr))}catch{}}var wr=Sr(),Tr=`data-scroll-restoration-id`,Er=e=>e.state.__TSR_key||e.href;function Dr(e){let t=e.getAttribute(Tr);if(t)return`[${Tr}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var Or=!1,kr=`window`;function Ar(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function jr(e){let t=[];for(let n of e){if(n===kr)continue;let e=Ar(n);e&&t.push(e)}return t}function Mr(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||Er,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(Or||!r.restoring))if(e.target===document)o(kr,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=wr[e]||={};for(let[e,n]of a)e===kr?t[kr]=n:e.isConnected&&(t[Dr(e)]=n)};n&&!r.restoration&&(r.restoration=!0,Or=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Cr()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=wr[u];if(e){let t=wr[l];for(let n in e){if(n===kr){if(s)continue}else{let e=Ar(n);if(!e||s&&o&&(c??=jr(o),c.includes(e)))continue}t||=wr[l]={},t[n]??=e[n]}}}Or=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=cr.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?wr[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===kr){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=Ar(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=jr(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Or=!1}}))}var Nr=Symbol.for(`TSR_DEFERRED_PROMISE`);function Pr(e,t){let n=e;return n[Nr]?n:(n[Nr]={status:`pending`},n.then(e=>{n[Nr].status=`success`,n[Nr].data=e}).catch(e=>{n[Nr].status=`error`,n[Nr].error={data:(t?.serializeError??or)(e),__isServerError:!0}}),n)}function Fr(e,t){if(e)return typeof e==`string`?e:e[t]}function Ir(e){return e?.scriptFormat??`module`}function Lr(e,t,n){let r=Rr(t),i=Fr(n,`script`)??r.crossOrigin;return{...Ir(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function Rr(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function zr(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function Br(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var Vr=(e=>(e[e.AggregateError=1]=`AggregateError`,e[e.ArrowFunction=2]=`ArrowFunction`,e[e.ErrorPrototypeStack=4]=`ErrorPrototypeStack`,e[e.ObjectAssign=8]=`ObjectAssign`,e[e.BigIntTypedArray=16]=`BigIntTypedArray`,e[e.RegExp=32]=`RegExp`,e))(Vr||{}),Hr=Symbol.asyncIterator,Ur=Symbol.hasInstance,Wr=Symbol.isConcatSpreadable,Gr=Symbol.iterator,Kr=Symbol.match,qr=Symbol.matchAll,Jr=Symbol.replace,Yr=Symbol.search,Xr=Symbol.species,Zr=Symbol.split,Qr=Symbol.toPrimitive,$r=Symbol.toStringTag,ei=Symbol.unscopables,ti={[Hr]:0,[Ur]:1,[Wr]:2,[Gr]:3,[Kr]:4,[qr]:5,[Jr]:6,[Yr]:7,[Xr]:8,[Zr]:9,[Qr]:10,[$r]:11,[ei]:12},ni={0:Hr,1:Ur,2:Wr,3:Gr,4:Kr,5:qr,6:Jr,7:Yr,8:Xr,9:Zr,10:Qr,11:$r,12:ei},P=void 0,ri={2:!0,3:!1,1:P,0:null,4:-0,5:1/0,6:-1/0,7:NaN},ii={0:`Error`,1:`EvalError`,2:`RangeError`,3:`ReferenceError`,4:`SyntaxError`,5:`TypeError`,6:`URIError`},ai={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function F(e,t,n,r,i,a,o,s,c,l,u,d){return{t:e,i:t,s:n,c:r,m:i,p:a,e:o,a:s,f:c,b:l,o:u,l:d}}function oi(e){return F(2,P,e,P,P,P,P,P,P,P,P,P)}var si=oi(2),ci=oi(3),li=oi(1),ui=oi(0),di=oi(4),fi=oi(5),pi=oi(6),mi=oi(7
10);function hi(e){switch(e){case`"`:return`\\"`;case`\\`:return`\\\\`;case` 11`:return`\\n`;case`\r`:return`\\r`;case`\b`:return`\\b`;case` `:return`\\t`;case`\f`:return`\\f`;case`<`:return`\\x3C`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return P}}function gi(e){let t=``,n=0,r;for(let i=0,a=e.length;i<a;i++)r=hi(e[i]),r&&(t+=e.slice(n,i)+r,n=i+1);return n===0?t=e:t+=e.slice(n),t}function _i(e){switch(e){case`\\\\`:return`\\`;case`\\"`:return`"`;case`\\n`:return` 12`;case`\\r`:return`\r`;case`\\b`:return`\b`;case`\\t`:return` `;case`\\f`:return`\f`;case`\\x3C`:return`<`;case`\\u2028`:return`\u2028`;case`\\u2029`:return`\u2029`;default:return e}}function vi(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,_i)}var yi=`__SEROVAL_REFS__`,bi=new Map,xi=new Map;function Si(e){return bi.has(e)}function Ci(e){return xi.has(e)}function wi(e){if(Si(e))return bi.get(e);throw new da(e)}function Ti(e){if(Ci(e))return xi.get(e);throw new fa(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,yi,{value:xi,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,yi,{value:xi,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,yi,{value:xi,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,yi,{value:xi,configurable:!0,writable:!1,enumerable:!1});function Ei(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function Di(e){let t=ii[Ei(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function Oi(e,t){let n=Di(e),r=Object.getOwnPropertyNames(e);for(let i=0,a=r.length,o;i<a;i++)o=r[i],o!==`name`&&o!==`message`&&(o===`stack`?t&4&&(n||={},n[o]=e[o]):(n||={},n[o]=e[o]));return n}function ki(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function Ai(e){switch(e){case 1/0:return fi;case-1/0:return pi}return e===e?Object.is(e,-0)?di:F(0,P,e,P,P,P,P,P,P,P,P,P):mi}function ji(e){return F(1,P,gi(e),P,P,P,P,P,P,P,P,P)}function Mi(e){return F(3,P,``+e,P,P,P,P,P,P,P,P,P)}function Ni(e){return F(4,e,P,P,P,P,P,P,P,P,P,P)}function Pi(e,t){let n=t.valueOf();return F(5,e,n===n?t.toISOString():``,P,P,P,P,P,P,P,P,P)}function Fi(e,t){return F(6,e,P,gi(t.source),t.flags,P,P,P,P,P,P,P)}function Ii(e,t){return F(17,e,ti[t],P,P,P,P,P,P,P,P,P)}function Li(e,t){return F(18,e,gi(wi(t)),P,P,P,P,P,P,P,P,P)}function Ri(e,t,n){return F(25,e,n,gi(t),P,P,P,P,P,P,P,P)}function I(e,t,n){return F(9,e,P,P,P,P,P,n,P,P,ki(t),P)}function zi(e,t){return F(21,e,P,P,P,P,P,P,t,P,P,P)}function Bi(e,t,n){return F(15,e,P,t.constructor.name,P,P,P,P,n,t.byteOffset,P,t.length)}function Vi(e,t,n){return F(16,e,P,t.constructor.name,P,P,P,P,n,t.byteOffset,P,t.byteLength)}function Hi(e,t,n){return F(20,e,P,P,P,P,P,P,n,t.byteOffset,P,t.byteLength)}function Ui(e,t,n){return F(13,e,Ei(t),P,gi(t.message),n,P,P,P,P,P,P)}function Wi(e,t,n){return F(14,e,Ei(t),P,gi(t.message),n,P,P,P,P,P,P)}function Gi(e,t){return F(7,e,P,P,P,P,P,t,P,P,P,P)}function Ki(e,t){return F(28,P,P,P,P,P,P,[e,t],P,P,P,P)}function qi(e,t){return F(30,P,P,P,P,P,P,[e,t],P,P,P,P)}function Ji(e,t,n){return F(31,e,P,P,P,P,P,n,t,P,P,P)}function Yi(e,t){return F(32,e,P,P,P,P,P,P,t,P,P,P)}function Xi(e,t){return F(33,e,P,P,P,P,P,P,t,P,P,P)}function Zi(e,t){return F(34,e,P,P,P,P,P,P,t,P,P,P)}function Qi(e,t,n,r){return F(35,e,n,P,P,P,P,t,P,P,P,r)}var{toString:$i}=Object.prototype,ea={parsing:1,serialization:2,deserialization:3};function ta(e){return`Seroval Error (step: ${ea[e]})`}var na=(e,t)=>ta(e),ra=class extends Error{constructor(e,t){super(na(e,t)),this.cause=t}},ia=class extends ra{constructor(e){super(`parsing`,e)}},aa=class extends ra{constructor(e){super(`deserialization`,e)}};function oa(e){return`Seroval Error (specific: ${e})`}var sa=class extends Error{constructor(e){super(oa(1)),this.value=e}},ca=class extends Error{constructor(e){super(oa(2))}},la=class extends Error{constructor(e){super(oa(3))}}
12,ua=class extends Error{constructor(e){super(oa(4))}},da=class extends Error{constructor(e){super(oa(5)),this.value=e}},fa=class extends Error{constructor(e){super(oa(6))}},pa=class extends Error{constructor(e){super(oa(7))}},ma=class extends Error{constructor(e){super(oa(8))}},ha=class extends Error{constructor(e){super(oa(9))}},ga=class{constructor(e,t){this.value=e,this.replacement=t}},_a=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e};_a.toString(),((e,t)=>{e.s(t),e.p.s=1,e.p.v=t}).toString(),((e,t)=>{e.f(t),e.p.s=2,e.p.v=t}).toString();var va=()=>{let e=[],t=[],n=!0,r=!1,i=0,a=(e,n,r)=>{for(r=0;r<i;r++)t[r]&&t[r][n](e)},o=(t,i,a,o)=>{for(i=0,a=e.length;i<a;i++)o=e[i],!n&&i===a-1?t[r?`return`:`throw`](o):t.next(o)},s=(e,r)=>(n&&(r=i++,t[r]=e),o(e),()=>{n&&(t[r]=t[i],t[i--]=void 0)});return{__SEROVAL_STREAM__:!0,on:e=>s(e),next:t=>{n&&(e.push(t),a(t,`next`))},throw:i=>{n&&(e.push(i),a(i,`throw`),n=!1,r=!1,t.length=0)},return:i=>{n&&(e.push(i),a(i,`return`),n=!1,r=!0,t.length=0)}}};va.toString();var ya=e=>t=>()=>{let n=0,r={[e]:()=>r,next:()=>{if(n>t.d)return{done:!0,value:void 0};let e=n++,r=t.v[e];if(e===t.t)throw r;return{done:e===t.d,value:r}}};return r};ya.toString();var ba=(e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c=(e=0,t=s.length)=>{for(;e<t;e++)s[e].s({done:!0,value:void 0})};n.on({next:e=>{let t=s.shift();t&&t.s({done:!1,value:e}),o.push(e)},throw:e=>{let t=s.shift();t&&t.f(e),c(),i=o.length,a=!0,o.push(e)},return:e=>{let t=s.shift();t&&t.s({done:!0,value:e}),c(),i=o.length,o.push(e)}});let l={[e]:()=>l,next:()=>{if(i===-1){let e=r++;if(e>=o.length){let e=t();return s.push(e),e.p}return{done:!1,value:o[e]}}if(r>i)return{done:!0,value:void 0};let e=r++,n=o[e];if(e!==i)return{done:!1,value:n};if(a)throw n;return{done:!0,value:n}}};return l};ba.toString();var xa=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer};xa.toString();function Sa(e){return`__SEROVAL_SEQUENCE__`in e}function Ca(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function wa(e){let t=[],n=-1,r=-1,i=e[Gr]();for(;;)try{let e=i.next();if(t.push(e.value),e.done){r=t.length-1;break}}catch(e){n=t.length,t.push(e)}return Ca(t,n,r)}var Ta=ya(Gr);function Ea(e){return Ta(e)}var Da={},Oa={},ka={0:{},1:{},2:{},3:{},4:{},5:{}};function Aa(e){return`__SEROVAL_STREAM__`in e}function ja(){return va()}function Ma(e){let t=ja(),n=e[Hr]();async function r(){try{let e=await n.next();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var Na=ba(Hr,_a);function Pa(e){return Na(e)}async function Fa(e){try{return[1,await e]}catch(e){return[0,e]}}function Ia(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function La(e,t){e.marked.add(t)}function Ra(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function za(e,t){let n=e.refs.get(t);return n==null?{type:0,value:Ra(e,t)}:(La(e,n),{type:1,value:Ni(n)})}function Ba(e,t){let n=za(e,t);return n.type===1?n:Si(t)?{type:2,value:Li(n.value,t)}:n}function Va(e,t){let n=Ba(e,t);if(n.type!==0)return n.value;if(t in ti)return Ii(n.value,t);throw new sa(t)}function Ha(e,t){let n=za(e,ka[t]);return n.type===1?n.value:F(26,n.value,t,P,P,P,P,P,P,P,P,P)}function Ua(e){let t=za(e,Da);return t.type===1?t.value:F(27,t.value,P,P,P,P,P,P,Va(e,Gr),P,P,P)}function Wa(e){let t=za(e,Oa);return t.type===1?t.value:F(29,t.value,P,P,P,P,P,[Ha(e,1),Va(e,Hr)],P,P,P,P)}function Ga(e,t,n,r){return F(n?11:10,e,P,P,P,r,P,P,P,P,ki(t),P)}function Ka(e,t,n,r){return F(8,t,P,P,P,P,{k:n,v:r},P,Ha(e,0),P,P,P)}function qa(e,t,n){let r=new Uint8Array(n),i=``;for(let e=0,t=r.length;e<t;e++)i+=String.fromCharCode(r[e]);return F(19,t,gi(btoa(i)),P,P,P,P,P,Ha(e,5),P,P,P)}function Ja(e,t){return{base:Ia(e,t),child:void 0}}var Ya=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return go(this._p,this.depth,e)}};async function Xa(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await go(e,t,n[i]):r[i]=0;return r}async function Za(e,t,n,r){return I(n,r,await Xa(e,t,r))}
12async function Qa(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(gi(r[n][0])),a.push(await go(e,t,r[n][1]));return Gr in n&&(i.push(Va(e.base,Gr)),a.push(Ki(Ua(e.base),await go(e,t,wa(n))))),Hr in n&&(i.push(Va(e.base,Hr)),a.push(qi(Wa(e.base),await go(e,t,Ma(n))))),$r in n&&(i.push(Va(e.base,$r)),a.push(ji(n[$r]))),Wr in n&&(i.push(Va(e.base,Wr)),a.push(n[Wr]?si:ci)),{k:i,v:a}}async function $a(e,t,n,r,i){return Ga(n,r,i,await Qa(e,t,r))}async function eo(e,t,n,r){return zi(n,await go(e,t,r.valueOf()))}async function to(e,t,n,r){return Bi(n,r,await go(e,t,r.buffer))}async function no(e,t,n,r){return Vi(n,r,await go(e,t,r.buffer))}async function ro(e,t,n,r){return Hi(n,r,await go(e,t,r.buffer))}async function io(e,t,n,r){let i=Oi(r,e.base.features);return Ui(n,r,i?await Qa(e,t,i):P)}async function ao(e,t,n,r){let i=Oi(r,e.base.features);return Wi(n,r,i?await Qa(e,t,i):P)}async function oo(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await go(e,t,n)),a.push(await go(e,t,o));return Ka(e.base,n,i,a)}async function so(e,t,n,r){let i=[];for(let n of r.keys())i.push(await go(e,t,n));return Gi(n,i)}async function co(e,t,n,r){let i=e.base.plugins;if(i)for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.async&&o.test(r))return Ri(n,o.tag,await o.parse.async(r,new Ya(e,t),{id:n}))}return P}async function lo(e,t,n,r){let[i,a]=await Fa(r);return F(12,n,i,P,P,P,P,P,await go(e,t,a),P,P,P)}function uo(e,t,n,r,i){let a=[],o=n.on({next:n=>{La(this.base,t),go(this,e,n).then(e=>{a.push(Yi(t,e))},e=>{i(e),o()})},throw:n=>{La(this.base,t),go(this,e,n).then(e=>{a.push(Xi(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{La(this.base,t),go(this,e,n).then(e=>{a.push(Zi(t,e)),r(a),o()},e=>{i(e),o()})}})}async function fo(e,t,n,r){return Ji(n,Ha(e.base,4),await new Promise(uo.bind(e,t,n,r)))}async function po(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await go(e,t,r.v[n]);return Qi(n,i,r.t,r.d)}async function mo(e,t,n,r){if(Array.isArray(r))return Za(e,t,n,r);if(Aa(r))return fo(e,t,n,r);if(Sa(r))return po(e,t,n,r);let i=r.constructor;if(i===ga)return go(e,t,r.replacement);let a=await co(e,t,n,r);if(a)return a;switch(i){case Object:return $a(e,t,n,r,!1);case P:return $a(e,t,n,r,!0);case Date:return Pi(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return io(e,t,n,r);case Number:case Boolean:case String:case BigInt:return eo(e,t,n,r);case ArrayBuffer:return qa(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return to(e,t,n,r);case DataView:return ro(e,t,n,r);case Map:return oo(e,t,n,r);case Set:return so(e,t,n,r);default:break}if(i===Promise||r instanceof Promise)return lo(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return Fi(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return no(e,t,n,r);default:break}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return ao(e,t,n,r);if(r instanceof Error)return io(e,t,n,r);if(Gr in r||Hr in r)return $a(e,t,n,r,!!i);throw new sa(r)}async function ho(e,t,n){let r=Ba(e.base,n);if(r.type!==0)return r.value;let i=await co(e,t,r.value,n);if(i)return i;throw new sa(n)}async function go(e,t,n){switch(typeof n){case`boolean`:return n?si:ci;case`undefined`:return li;case`string`:return ji(n);case`number`:return Ai(n);case`bigint`:return Mi(n);case`object`:if(n){let r=Ba(e.base,n);return r.type===0?await mo(e,t+1,r.value,n):r.value}return ui;case`symbol`:return Va(e.base,n);
12case`function`:return ho(e,t,n);default:throw new sa(n)}}async function _o(e,t){try{return await go(e,0,t)}catch(e){throw e instanceof ia?e:new ia(e)}}var L=(e=>(e[e.Vanilla=1]=`Vanilla`,e[e.Cross=2]=`Cross`,e))(L||{});function R(e){return e}function vo(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&vo(e,r.extends))}}function yo(e){if(e){let t=new Set;return vo(t,e),[...t]}}function bo(e){switch(e){case`Int8Array`:return Int8Array;case`Int16Array`:return Int16Array;case`Int32Array`:return Int32Array;case`Uint8Array`:return Uint8Array;case`Uint16Array`:return Uint16Array;case`Uint32Array`:return Uint32Array;case`Uint8ClampedArray`:return Uint8ClampedArray;case`Float32Array`:return Float32Array;case`Float64Array`:return Float64Array;case`BigInt64Array`:return BigInt64Array;case`BigUint64Array`:return BigUint64Array;default:throw new pa(e)}}var xo=1e6,So=1e4,Co=2e4;function wo(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var To=1e3;function Eo(e,t){let n=t.refs||new Map;return`types`in n||Object.assign(n,{types:new Map}),{mode:e,plugins:t.plugins,refs:n,features:t.features??63^(t.disabledFeatures||0),depthLimit:t.depthLimit||To}}function Do(e){return{mode:2,base:Eo(2,e),child:P}}var Oo=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return hs(this._p,this.depth,e)}};function ko(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new ma({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function Ao(e,t,n){return ko(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function jo(e,t,n){return ko(e.base,t),e.base.refs.set(t,n),n}function Mo(e,t,n){return e.mode===1?Ao(e,t,n):jo(e,t,n)}function No(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new ma(e)}function Po(e,t){return Mo(e,t.i,Ti(vi(t.s)))}
12function Fo(e,t,n){let r=n.a,i=r.length,a=Mo(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=hs(e,t,o));return wo(a,n.o),a}function Io(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function Lo(e){switch(e){case Hr:case Wr:case $r:case Gr:return!0;default:return!1}}function Ro(e,t,n){Io(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function zo(e,t,n,r,i){if(typeof r==`string`)Ro(n,vi(r),hs(e,t,i));else{let a=hs(e,t,r);switch(typeof a){case`string`:Ro(n,a,hs(e,t,i));break;case`symbol`:Lo(a)&&(n[a]=hs(e,t,i));break;default:throw new ma(r)}}}function Bo(e,t,n){e.base.refs.types.set(t,n)}function Vo(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new ma(t)}function Ho(e,t,n,r){let i=n.k;if(i.length>0)for(let a=0,o=n.v,s=i.length;a<s;a++)zo(e,t,r,i[a],o[a]);return r}function Uo(e,t,n){let r=Mo(e,n.i,n.t===10?{}:Object.create(null));return Ho(e,t,n.p,r),wo(r,n.o),r}function Wo(e,t){return Mo(e,t.i,new Date(t.s))}function Go(e,t){if(e.base.features&32){let n=vi(t.c);if(n.length>Co)throw new ma(t);return Mo(e,t.i,new RegExp(n,t.m))}throw new ca(t)}function Ko(e,t,n){let r=Mo(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(hs(e,t,a[i]));return r}function qo(e,t,n){let r=Mo(e,n.i,new Map);for(let i=0,a=n.e.k,o=n.e.v,s=a.length;i<s;i++)r.set(hs(e,t,a[i]),hs(e,t,o[i]));return r}function Jo(e,t){if(t.s.length>xo)throw new ma(t);return Mo(e,t.i,xa(vi(t.s)))}function Yo(e,t,n){let r=bo(n.c),i=hs(e,t,n.f),a=n.b??0;if(a<0||a>i.byteLength)throw new ma(n);return Mo(e,n.i,new r(i,a,n.l))}function Xo(e,t,n){let r=hs(e,t,n.f),i=n.b??0;if(i<0||i>r.byteLength)throw new ma(n);return Mo(e,n.i,new DataView(r,i,n.l))}function Zo(e,t,n,r){if(n.p){let i=Ho(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function Qo(e,t,n){return Zo(e,t,n,Mo(e,n.i,AggregateError([],vi(n.m))))}function $o(e,t,n){let r=No(n,ai,n.s);return Zo(e,t,n,Mo(e,n.i,new r(vi(n.m))))}
12function es(e,t,n){let r=_a(),i=Mo(e,n.i,r.p),a=hs(e,t,n.f);return n.s?r.s(a):r.f(a),i}function ts(e,t,n){return Mo(e,n.i,Object(hs(e,t,n.f)))}function ns(e,t,n){let r=e.base.plugins;if(r){let i=vi(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return Mo(e,n.i,o.deserialize(n.s,new Oo(e,t),{id:n.i}))}}throw new la(n.c)}function rs(e,t){let n=Mo(e,t.i,Mo(e,t.s,_a()).p);return Bo(e,t.s,22),n}function is(e,t,n){let r=e.base.refs.get(n.i);if(r)return Vo(e,n,n.i,22),r.s(hs(e,t,n.a[1])),P;throw new ua(`Promise`)}function as(e,t,n){let r=e.base.refs.get(n.i);if(r)return Vo(e,n,n.i,22),r.f(hs(e,t,n.a[1])),P;throw new ua(`Promise`)}function os(e,t,n){return hs(e,t,n.a[0]),Ea(hs(e,t,n.a[1]))}function ss(e,t,n){return hs(e,t,n.a[0]),Pa(hs(e,t,n.a[1]))}function cs(e,t,n){let r=Mo(e,n.i,ja());Bo(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)hs(e,t,i[n]);return r}function ls(e,t,n){let r=e.base.refs.get(n.i);if(r)return Vo(e,n,n.i,31),r.next(hs(e,t,n.f)),P;throw new ua(`Stream`)}function us(e,t,n){let r=e.base.refs.get(n.i);if(r)return Vo(e,n,n.i,31),r.throw(hs(e,t,n.f)),P;throw new ua(`Stream`)}function ds(e,t,n){let r=e.base.refs.get(n.i);if(r)return Vo(e,n,n.i,31),r.return(hs(e,t,n.f)),P;throw new ua(`Stream`)}function fs(e,t,n){return hs(e,t,n.f),P}function ps(e,t,n){return hs(e,t,n.a[1]),P}function ms(e,t,n){let r=Mo(e,n.i,Ca([],n.s,n.l));for(let i=0,a=n.a.length;i<a;i++)r.v[i]=hs(e,t,n.a[i]);return r}function hs(e,t,n){if(t>e.base.depthLimit)throw new ha(e.base.depthLimit);switch(t+=1,n.t){case 2:return No(n,ri,n.s);case 0:return Number(n.s);case 1:return vi(String(n.s));case 3:if(String(n.s).length>So)throw new ma(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return Po(e,n);case 9:return Fo(e,t,n);case 10:case 11:return Uo(e,t,n);case 5:return Wo(e,n);case 6:return Go(e,n);case 7:return Ko(e,t,n);case 8:return qo(e,t,n);case 19:return Jo(e,n);case 16:case 15:return Yo(e,t,n);case 20:return Xo(e,t,n);case 14:return Qo(e,t,n);case 13:return $o(e,t,n);case 12:return es(e,t,n);case 17:return No(n,ni,n.s);case 21:return ts(e,t,n);case 25:return ns(e,t,n);case 22:return rs(e,n);case 23:return is(e,t,n);case 24:return as(e,t,n);case 28:return os(e,t,n);case 30:return ss(e,t,n);case 31:return cs(e,t,n);case 32:return ls(e,t,n);case 33:return us(e,t,n);case 34:return ds(e,t,n);case 27:return fs(e,t,n);case 29:return ps(e,t,n);case 35:return ms(e,t,n);default:throw new ca(n)}}function gs(e,t){try{return hs(e,0,t)}catch(e){throw new aa(e)}}var _s=(()=>T).toString();/=>/.test(_s);function vs(e,t){return gs(Do({plugins:yo(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function ys(e,t={}){let n=Ja(1,{plugins:yo(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await _o(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function bs(e){return e}function xs(e){return R({tag:`$TSR/t/`+e.key,test:e.test,parse:{sync(t,n,r){return{v:n.parse(e.toSerializable(t))}},async async(t,n,r){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,r){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,r){return e.fromSerializable(n.deserialize(t.v))}})}var Ss=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}},Cs=globalThis.Buffer,ws=!!Cs&&typeof Cs.from==`function`;function Ts(e){if(e.length===0)return``;if(ws)return Cs.from(e).toString(`base64`);let t=32768,n=[];for(let r=0;r<e.length;r+=t){let i=e.subarray(r,r+t);n.push(String.fromCharCode.apply(null,i))}return btoa(n.join(``))}function Es(e){if(e.length===0)return new Uint8Array;
12if(ws){let t=Cs.from(e,`base64`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var Ds=Object.create(null),Os=Object.create(null),ks=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(Es(e))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),As=new TextEncoder,js=e=>new ReadableStream({start(t){e.on({next(e){try{typeof e==`string`?t.enqueue(As.encode(e)):t.enqueue(Es(e.$b64))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Ms=`(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))`,Ns=`(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})`;function Ps(e){let t=ja(),n=e.getReader();return(async()=>{try{for(;;){let{done:e,value:r}=await n.read();if(e){t.return(void 0);break}t.next(Ts(r))}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}function Fs(e){let t=ja(),n=e.getReader(),r=new TextDecoder(`utf-8`,{fatal:!0});return(async()=>{try{for(;;){let{done:e,value:i}=await n.read();if(e){try{let e=r.decode();e.length>0&&t.next(e)}catch{}t.return(void 0);break}try{let e=r.decode(i,{stream:!0});e.length>0&&t.next(e)}catch{t.next({$b64:Ts(i)})}}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}var Is=R({tag:`tss/RawStream`,extends:[R({tag:`tss/RawStreamFactory`,test(e){return e===Ds},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return Ms},deserialize(e,t,n){return Ds}}),R({tag:`tss/RawStreamFactoryText`,test(e){return e===Os},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return Ns},deserialize(e,t,n){return Os}})],test(e){return e instanceof Ss},parse:{sync(e,t,n){let r=e.hint===`text`?Os:Ds;return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(ja())}},async async(e,t,n){let r=e.hint===`text`?Os:Ds,i=e.hint===`text`?Fs(e.stream):Ps(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(r),stream:await t.parse(i)}},stream(e,t,n){let r=e.hint===`text`?Os:Ds,i=e.hint===`text`?Fs(e.stream):Ps(e.stream);return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(i)}}},serialize(e,t,n){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t,n){let r=t.deserialize(e.stream);return t.deserialize(e.hint)===`text`?js(r):ks(r)}});function Ls(e){return R({tag:`tss/RawStream`,test:()=>!1,parse:{},serialize(){throw Error(`RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.`)},deserialize(t,n,r){return e(typeof n?.deserialize==`function`?n.deserialize(t.streamId):t.streamId)}})}var Rs=R({tag:`$TSR/Error`,test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return`new Error(`+t.serialize(e.message)+`)`},deserialize(e,t){return Error(t.deserialize(e.message))}}),zs={},Bs=e=>new ReadableStream({start:t=>{e.on({next:e=>{try{t.enqueue(e)}catch{}},throw:e=>{t.error(e)},return:()=>{try{t.close()}catch{}}})}}),Vs=R({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===zs},parse:{sync(){return zs},async async(){return await Promise.resolve(zs)},stream(){return zs}},serialize(){return Bs.toString()},deserialize(){return zs}});function Hs(e){let t=ja(),n=e.getReader();async function r(){try{let e=await n.read();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var Us=[Rs,Is,R({tag:`seroval/plugins/web/ReadableStream`,extends:[Vs],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(zs),stream:t.parse(ja())}},async async(e,t){return{factory:await t.parse(zs),stream:await t.parse(Hs(e))}},stream(e,t){return{factory:t.parse(zs),stream:t.parse(Hs(e))}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){return Bs(t.deserialize(e.stream))}})];function Ws(){return[...(mn()?.serializationAdapters)?.map(xs)??[],...Us]}var Gs=new TextDecoder,Ks=new Uint8Array,qs=16*1024*1024,Js=32*1024*1024,Ys=1024,Xs=1e5;function Zs(e){let t=new Map,n=new Map,r=new Set,i=!1,a=null,o=0,s,c=new ReadableStream({start(e){s=e},cancel(){i=!0;try{a?.cancel()}catch{}
12t.forEach(e=>{try{e.error(Error(`Framed response cancelled`))}catch{}}),t.clear(),n.clear(),r.clear()}});function l(e){let i=n.get(e);if(i)return i;if(r.has(e))return new ReadableStream({start(e){e.close()}});if(n.size>=Ys)throw Error(`Too many raw streams in framed response (max ${Ys})`);let a=new ReadableStream({start(n){t.set(e,n)},cancel(){r.add(e),t.delete(e),n.delete(e)}});return n.set(e,a),a}function u(e){return l(e),t.get(e)}return(async()=>{let n=e.getReader();a=n;let c=[],l=0;function d(){if(l<9)return null;let e=c[0];if(e.length>=9)return{type:e[0],streamId:(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0,length:(e[5]<<24|e[6]<<16|e[7]<<8|e[8])>>>0};let t=new Uint8Array(9),n=0,r=9;for(let e=0;e<c.length&&r>0;e++){let i=c[e],a=Math.min(i.length,r);t.set(i.subarray(0,a),n),n+=a,r-=a}return{type:t[0],streamId:(t[1]<<24|t[2]<<16|t[3]<<8|t[4])>>>0,length:(t[5]<<24|t[6]<<16|t[7]<<8|t[8])>>>0}}function f(e){if(e===0)return Ks;let t=new Uint8Array(e),n=0,r=e;for(;r>0&&c.length>0;){let e=c[0];if(!e)break;let i=Math.min(e.length,r);t.set(e.subarray(0,i),n),n+=i,r-=i,i===e.length?c.shift():c[0]=e.subarray(i)}return l-=e,t}try{for(;;){let{done:e,value:a}=await n.read();if(i||e)break;if(a){if(l+a.length>Js)throw Error(`Framed response buffer exceeded ${Js} bytes`);for(c.push(a),l+=a.length;;){let e=d();if(!e)break;let{type:n,streamId:i,length:a}=e;if(n!==un.JSON&&n!==un.CHUNK&&n!==un.END&&n!==un.ERROR)throw Error(`Unknown frame type: ${n}`);if(n===un.JSON){if(i!==0)throw Error(`Invalid JSON frame streamId (expected 0)`)}else if(i===0)throw Error(`Invalid raw frame streamId (expected non-zero)`);if(a>qs)throw Error(`Frame payload too large: ${a} bytes (max ${qs})`);let c=9+a;if(l<c)break;if(++o>Xs)throw Error(`Too many frames in framed response (max ${Xs})`);f(9);let p=f(a);switch(n){case un.JSON:try{s.enqueue(Gs.decode(p))}catch{}break;case un.CHUNK:{let e=u(i);e&&e.enqueue(p);break}case un.END:{let e=u(i);if(r.add(i),e){try{e.close()}catch{}t.delete(i)}break}case un.ERROR:{let e=u(i);if(r.add(i),e){let n=Gs.decode(p);e.error(Error(n)),t.delete(i)}break}}}}}if(l!==0)throw Error(`Incomplete frame at end of framed response`);try{s.close()}catch{}t.forEach(e=>{try{e.close()}catch{}}),t.clear()}catch(e){try{s.error(e)}catch{}t.forEach(t=>{try{t.error(e)}catch{}}),t.clear()}finally{try{n.releaseLock()}catch{}a=null}})(),{getOrCreateStream:l,jsonChunks:c}}var Qs=null;async function $s(e){e.length>0&&await Promise.allSettled(e)}var ec=Object.prototype.hasOwnProperty;function tc(e){for(let t in e)if(ec.call(e,t))return!0;return!1}async function nc(e,t,n){Qs||=Ws();let r=t[0],i=r.fetch??n,a=r.data instanceof FormData?`formData`:`payload`,o=r.headers?new Headers(r.headers):new Headers;if(o.set(`x-tsr-serverFn`,`true`),a===`payload`&&o.set(`accept`,`${ln}, application/x-ndjson, application/json`),r.method===`GET`){if(a===`formData`)throw Error(`FormData is not supported with GET requests`);let t=await rc(r);if(t!==void 0){let n=hn({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;if(r.method===`POST`){let e=await ac(r);e?.contentType&&o.set(`content-type`,e.contentType),s=e?.body}return await oc(async()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function rc(e){let t=!1,n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&tc(e.context)&&(t=!0,n.context=e.context),t)return ic(n)}async function ic(e){return JSON.stringify(await Promise.resolve(ys(e,{plugins:Qs})))}async function ac(e){if(e.data instanceof FormData){let t;return e.context&&tc(e.context)&&(t=await ic(e.context)),t!==void 0&&e.data.set(on,t),{body:e.data}}let t=await rc(e);if(t)return{body:t,contentType:`application/json`}}async function oc(e){let t;try{t=await e()}catch(e){if(e instanceof Response)t=e;else throw console.log(e),e}if(t.headers.get(`x-tss-raw`)===`true`)return t;let n=t.headers.get(`content-type`);if(n||E(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){if(pn(n),!t.body)throw Error(`No response body for framed response`);
12let{getOrCreateStream:r,jsonChunks:i}=Zs(t.body),a=[Ls(r),...Qs||[]],o=new Map;e=await sc({jsonStream:i,onMessage:e=>vs(e,{refs:o,plugins:a}),onError(e,t){console.error(e,t)}})}else if(n.includes(`application/json`)){let n=await t.json(),r=[];try{e=vs(n,{plugins:Qs})}finally{}await $s(r)}if(e||E(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=Ee(e);if(n)throw n;if(Te(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function sc({jsonStream:e,onMessage:t,onError:n}){let r=e.getReader(),{value:i,done:a}=await r.read();if(a||!i)throw Error(`Stream ended before first object`);let o=JSON.parse(i),s=!1,c=(async()=>{try{for(;;){let{value:e,done:i}=await r.read();if(i)break;if(e)try{let n=[];try{t(JSON.parse(e))}finally{}await $s(n)}catch(t){n?.(`Invalid JSON: ${e}`,t)}}}catch(e){s||n?.(`Stream processing error:`,e)}})(),l,u=[];try{l=t(o)}catch(e){throw s=!0,r.cancel().catch(()=>{}),e}return await $s(u),Promise.resolve(l).catch(()=>{s=!0,r.cancel().catch(()=>{})}),c.finally(()=>{try{r.releaseLock()}catch{}}),l}function cc(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=mn()?.serverFns?.fetch;return nc(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[sn]:!0})}var lc=bs({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(sn in e)?!1:!!e[sn],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>cc(e)});function uc(e){if(Array.isArray(e))return e.flatMap(e=>uc(e));if(typeof e!=`string`)return[];let t=[],n=0,r,i,a,o,s,c=()=>{for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length},l=()=>(i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`);for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&l();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.slice(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.slice(r))}return t}function dc(e){return e instanceof Headers?e:Array.isArray(e)||typeof e==`object`?new Headers(e):null}function fc(...e){return e.reduce((e,t)=>{let n=dc(t);if(!n)return e;for(let[t,r]of n.entries())t===`set-cookie`?uc(r).forEach(t=>e.append(`set-cookie`,t)):e.set(t,r);return e},new Headers)}function pc(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function mc(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function hc(e){window.$_TSR||E();let t=e.options.serializationAdapters;if(t?.length){let e=new Map;t.forEach(t=>{e.set(t.key,t.fromSerializable)}),window.$_TSR.t=e,window.$_TSR.buffer.forEach(e=>e())}window.$_TSR.initialized=!0,window.$_TSR.router||E();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=pc(e.i)}),n.lastMatchId&&=pc(n.lastMatchId);let{manifest:r,dehydratedData:i,lastMatchId:a}=n;e.ssr={manifest:r};let o=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:o},await e.options.hydrate?.(i);let s=e.matchRoutes(e.stores.location.get()),c=Promise.all(s.map(t=>e.loadRouteChunk(e.looseRoutesById[t.routeId])));function l(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=A();t._nonReactive.minPendingPromise=r,t._forcePending=!0,setTimeout(()=>{r.resolve(),e.updateMatch(t.id,e=>(e._nonReactive.minPendingPromise=void 0,{...e,_forcePending:void 0}))},n)}}function u(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let d;s.forEach(e=>{let t=n.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,u(e);return}mc(e,t),u(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&d===void 0&&(d=e.index,l(e))}),e.stores.setMatches(s);let f=e.stores.matches.get(),p=e.stores.location.get();await Promise.all(f.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=f[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:p,navigate:t=>e.navigate({...t,_fromLocation:p}),buildLocation:e.buildLocation,cause:t.cause,abortController:t.abortController,preload:!1,matches:s,routeId:n.id};
12t.__routeContext=n.options.context(i)??void 0}t.context={...r,...t.__routeContext,...t.__beforeLoadContext};let i={ssr:e.options.ssr,matches:f,match:t,params:t.params,loaderData:t.loaderData},a=await n.options.head?.(i),o=await n.options.scripts?.(i);t.meta=a?.meta,t.links=a?.links,t.headScripts=a?.scripts,t.styles=a?.styles,t.scripts=o}catch(e){if(Te(e))t.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${t.routeId}`,e);else throw t.error=e,console.error(`Error during hydration for route ${t.routeId}:`,e),e}}));let m=s[s.length-1].id!==a;if(!s.some(e=>e.ssr===!1)&&!m)return s.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),c;let h=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(m){let t=s[1];t||E(),l(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=h,h.then(()=>{e.batch(()=>{e.stores.status.get()===`pending`&&(e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(t.id,e=>({...e,_displayPending:void 0,displayPendingPromise:void 0}))})})}return c}var z=n(i(),1),B=e();function gc({promise:e}){if(_e)return _e(e);let t=Pr(e);if(t[Nr].status===`pending`)throw t;if(t[Nr].status===`error`)throw t[Nr].error;return t[Nr].data}function _c(e){let t=(0,B.jsx)(vc,{...e});return e.fallback?(0,B.jsx)(z.Suspense,{fallback:e.fallback,children:t}):t}function vc(e){let t=gc(e);return e.children(t)}function yc(e){let t=e.errorComponent??xc;return(0,B.jsx)(bc,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?z.createElement(t,{error:n,reset:r}):e.children})}var bc=class extends z.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function xc({error:e}){let[t,n]=z.useState(!1);return(0,B.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,B.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,B.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,B.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,B.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,B.jsx)(`div`,{children:(0,B.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,B.jsx)(`code`,{children:e.message}):null})}):null]})}var Sc=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(Sc||{});function Cc({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function wc(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Tc=[],Ec=0,{link:Dc,unlink:Oc,propagate:kc,checkDirty:Ac,shallowPropagate:jc}=Cc({update(e){return e._update()},notify(e){Tc[Nc++]=e,e.flags&=~Sc.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Sc.Mutable|Sc.Dirty,Lc(e))}}),Mc=0,Nc=0,Pc,Fc=0;function Ic(e){try{++Fc,e()}finally{--Fc||Rc()}}function Lc(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Oc(n,e)}function Rc(){if(!(Fc>0)){for(;Mc<Nc;){let e=Tc[Mc];Tc[Mc++]=void 0,e.notify()}Mc=0,Nc=0}}function zc(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?Sc.None:Sc.Mutable,get(){return Pc!==void 0&&Dc(i,Pc,Ec),i._snapshot},subscribe(e){let t=wc(e),n={current:!1},r=Bc(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Pc,o=t?.compare??Object.is;if(n)Pc=i,++Ec,i.depsTail=void 0;else if(e===void 0)return!1;
12n&&(i.flags=Sc.Mutable|Sc.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Pc=a,n&&(i.flags&=~Sc.RecursedCheck),Lc(i)}}};return n?(i.flags=Sc.Mutable|Sc.Dirty,i.get=function(){let e=i.flags;if(e&Sc.Dirty||e&Sc.Pending&&Ac(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&jc(e)}}else e&Sc.Pending&&(i.flags=e&~Sc.Pending);return Pc!==void 0&&Dc(i,Pc,Ec),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(kc(e),jc(e),Rc())}},i}function Bc(e){let t=()=>{let t=Pc;Pc=n,++Ec,n.depsTail=void 0,n.flags=Sc.Watching|Sc.RecursedCheck;try{return e()}finally{Pc=t,n.flags&=~Sc.RecursedCheck,Lc(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Sc.Watching|Sc.RecursedCheck,notify(){let e=this.flags;e&Sc.Dirty||e&Sc.Pending&&Ac(this.deps,this)?t():this.flags=Sc.Watching},stop(){this.flags=Sc.None,this.depsTail=void 0,Lc(this)}};return t(),n}function Vc(e){let t=ge(),n=`not-found-${ye(t.stores.location,e=>e.pathname)}-${ye(t.stores.status,e=>e)}`;return(0,B.jsx)(yc,{getResetKey:()=>n,onCatch:(t,n)=>{if(Te(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Te(t))return e.fallback?.(t);throw t},children:e.children})}function Hc(){return(0,B.jsx)(`p`,{children:`Not Found`})}function Uc(e){return(0,B.jsx)(B.Fragment,{children:e.children})}function Wc(e,t,n){return t.options.notFoundComponent?(0,B.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,B.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,B.jsx)(Hc,{})}var Gc=z.memo(function({matchId:e}){let t=ge(),n=t.stores.matchStores.get(e);n||E();let r=ye(t.stores.loadedAt,e=>e),i=ye(n,e=>e);return(0,B.jsx)(Kc,{router:t,matchId:e,resetKey:r,matchState:z.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Kc({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,B.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?z.Suspense:Uc,f=s?yc:Uc,p=l?Vc:Uc;return(0,B.jsxs)(i.isRoot?i.options.shellComponent??Uc:Uc,{children:[(0,B.jsx)(ke.Provider,{value:t,children:(0,B.jsx)(d,{fallback:o,children:(0,B.jsx)(f,{getResetKey:()=>n,errorComponent:s||xc,onCatch:(e,t)=>{if(Te(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,B.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return z.createElement(l,e)},children:u||r._displayPending?(0,B.jsx)(k,{fallback:o,children:(0,B.jsx)(Jc,{matchId:t})}):(0,B.jsx)(Jc,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(qc,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function qc({resetKey:e}){let t=ge(),n=z.useRef(void 0);return me(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...sr(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var Jc=z.memo(function({matchId:e}){let t=ge(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||E();let i=ye(r,e=>e),a=i.routeId,o=t.routesById[a],s=z.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=z.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,B.jsx)(e,{},s):(0,B.jsx)(Yc,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);
12if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=A();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return Te(i.error)||E(),Wc(t,o,i.error);if(i.status===`redirected`)throw Oe(i.error)||E(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Yc=z.memo(function(){let e=ge(),t=z.useContext(ke),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=ye(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=ye(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,B.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||E(),Wc(e,a,void 0);if(!i)return null;let s=(0,B.jsx)(Gc,{matchId:i});return n===`__root__`?(0,B.jsx)(z.Suspense,{fallback:o,children:s}):s});function Xc(){let e=ge(),t=z.useRef({router:e,mounted:!1}),[n,r]=z.useState(!1),i=ye(e.stores.isLoading,e=>e),a=ye(e.stores.hasPending,e=>e),o=be(i),s=i||n||a,c=be(s),l=i||a,u=be(l);return e.startTransition=e=>{r(!0),z.startTransition(()=>{e(),r(!1)})},z.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return le(e.latestLocation.publicHref)!==le(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),me(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),me(()=>{o&&!i&&e.emit({type:`onLoad`,...sr(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),me(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...sr(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),me(()=>{if(c&&!s){let t=sr(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Ic(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function Zc(){let e=ge(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,B.jsx)(t,{}):null,r=(0,B.jsxs)(typeof document<`u`&&e.ssr?Uc:z.Suspense,{fallback:n,children:[(0,B.jsx)(Xc,{}),(0,B.jsx)(Qc,{})]});return e.options.InnerWrap?(0,B.jsx)(e.options.InnerWrap,{children:r}):r}function Qc(){let e=ge(),t=ye(e.stores.firstId,e=>e),n=ye(e.stores.loadedAt,e=>e),r=t?(0,B.jsx)(Gc,{matchId:t}):null;return(0,B.jsx)(ke.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,B.jsx)(yc,{getResetKey:()=>n,errorComponent:xc,onCatch:void 0,children:r})})}var $c=e=>({createMutableStore:zc,createReadonlyStore:zc,batch:Ic}),el=e=>new tl(e),tl=class extends lr{constructor(e){super(e,$c)}};function nl({router:e,children:t,...n}
12){ee(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,B.jsx)(ve.Provider,{value:e,children:t});return e.options.Wrap?(0,B.jsx)(e.options.Wrap,{children:r}):r}function rl({router:e,...t}){return(0,B.jsx)(nl,{router:e,...t,children:(0,B.jsx)(Zc,{})})}function il(e){let t=ge({warn:e?.router===void 0}),n=e?.router||t,r=(0,z.useRef)(void 0);return ye(n.stores.__store,t=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){let n=se(r.current,e.select(t));return r.current=n,n}return e.select(t)}return t})}function al(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function ol(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,B.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,B.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,B.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,B.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,B.jsx)(sl,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function sl({attrs:e,children:t,preventScriptHoist:n}){ge();let r=O(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(z.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return al(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,al(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,B.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,B.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,B.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var cl=e=>{let t=ge(),n=t.options.ssr?.nonce,r=ye(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),ne),i=z.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:S(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=ye(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),ne),o=ye(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=Br(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:Fr(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},ne),s=ye(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...Lr(a,t,e),nonce:n}})})}),i},ne),c=ye(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),ne),l=ye(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),ne),u=[];return zr(u,i),u.push(...s),zr(u,a),u.push(...o),zr(u,c),zr(u,l),u};function ll(e){let t=cl(e.assetCrossOrigin),n=ge().options.ssr?.nonce;return(0,B.jsx)(B.Fragment,{children:t.map(e=>(0,z.createElement)(ol,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var ul=()=>
12{let e=ge(),t=e.options.ssr?.nonce,n=n=>{let r=[],i=e.ssr?.manifest;if(!i)return[];for(let e of n){let n=i.routes[e.routeId]?.scripts;if(n)for(let e of n)r.push({tag:`script`,attrs:{...e.attrs,nonce:t},children:e.children,...typeof e.attrs?.src==`string`?{preventScriptHoist:!0}:{}})}return r},r=e=>e.map(e=>e.scripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,suppressHydrationWarning:!0,nonce:t},children:e})),i=ye(e.stores.matches,n,ne);return dl(e,ye(e.stores.matches,r,ne),i)};function dl(e,t,n){let r=[...t,...n];return(0,B.jsx)(B.Fragment,{children:r.map((e,t)=>(0,z.createElement)(ol,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}function fl(e){return e!==`__proto__`&&e!==`constructor`&&e!==`prototype`}function pl(e,t){let n=Object.create(null);if(e)for(let t of Object.keys(e))fl(t)&&(n[t]=e[t]);if(t&&typeof t==`object`)for(let e of Object.keys(t))fl(e)&&(n[e]=t[e]);return n}function ml(e){if(!e)return Object.create(null);let t=Object.create(null);for(let n of Object.keys(e))fl(n)&&(t[n]=e[n]);return t}var hl=()=>{throw Error(`createServerOnlyFn() functions can only be called on the server!`)},gl=(e,t)=>{let n=t||e||{};n.method===void 0&&(n.method=`GET`);let r=e=>gl(void 0,{...n,validator:e,inputValidator:e});return Object.assign(e=>gl(void 0,{...n,...e}),{options:n,middleware:e=>{let t=[...n.middleware||[]];e.map(e=>{cn in e?e.options.middleware&&t.push(...e.options.middleware):t.push(e)});let r=gl(void 0,{...n,middleware:t});return r[cn]=!0,r},validator:r,inputValidator:r,handler:(...e)=>{let[t,r]=e,i={...n,extractedFn:t,serverFn:r},a=[...i.middleware||[],bl(i)];return t.method=n.method,Object.assign(async e=>{let n=await _l(a,`client`,{...t,...i,data:e?.data,headers:e?.headers,signal:e?.signal,fetch:e?.fetch,context:ml()}),r=Ee(n.error);if(r)throw r;if(n.error)throw n.error;return n.result},{...t,method:n.method,__executeServer:async e=>{let n=hl(),r=n.contextAfterGlobalMiddlewares;return await _l(a,`server`,{...t,...e,serverFnMeta:t.serverFnMeta,context:pl(e.context,r),request:n.request}).then(e=>({result:e.result,error:e.error,context:e.sendContext}))}})}})};async function _l(e,t,n){let r=vl([...mn()?.functionMiddleware||[],...e]);if(t===`server`){let e=hl({throwIfNotFound:!1});e?.executedRequestMiddlewares&&(r=r.filter(t=>!e.executedRequestMiddlewares.has(t)))}let i=async e=>{let n=r.shift();if(!n)return e;try{let r=`validator`in n.options?n.options.validator:void 0;!r&&`inputValidator`in n.options&&(r=n.options.inputValidator),r&&t===`server`&&(e.data=await yl(r,e.data));let a;if(t===`client`?`client`in n.options&&(a=n.options.client):`server`in n.options&&(a=n.options.server),a){let t=async(t={})=>{let n=await i({...e,...t,context:pl(e.context,t.context),sendContext:pl(e.sendContext,t.sendContext),headers:fc(e.headers,t.headers),_callSiteFetch:e._callSiteFetch,fetch:e._callSiteFetch??t.fetch??e.fetch,result:t.result===void 0?t instanceof Response?t:e.result:t.result,error:t.error??e.error});if(n.error)throw n.error;return n},n=await a({...e,next:t});if(Oe(n))return{...e,error:n};if(n instanceof Response)return{...e,result:n};if(!n)throw Error(`User middleware returned undefined. You must call next() or return a result in your middlewares.`);return n}return i(e)}catch(t){return{...e,error:t}}};return i({...n,headers:n.headers||{},sendContext:n.sendContext||{},context:n.context||ml(),_callSiteFetch:n.fetch})}function vl(e,t=100){let n=new Set,r=[],i=(e,a)=>{if(a>t)throw Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);e.forEach(e=>{e.options.middleware&&i(e.options.middleware,a+1),n.has(e)||(n.add(e),r.push(e))})};return i(e,0),r}async function yl(e,t){if(e==null)return{};if(`~standard`in e){let n=await e[`~standard`].validate(t);if(n.issues)throw Error(JSON.stringify(n.issues,void 0,2));return n.value}if(`parse`in e)return e.parse(t);if(typeof e==`function`)return e(t);throw Error(`Invalid validator type!`)}function bl(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:n,fetch:r,...i})=>{let a={...i,context:n,fetch:r};return t(await e.extractedFn?.(a))},server:async({next:t,...n})=>{let r=await e.serverFn?.(n);return t({...n,result:r})}}}}var xl=(e,t)=>{let n={type:`request`,...t||e},r=e=>xl({},Object.assign(n,{validator:e,inputValidator:e}));return{options:n,middleware:e=>xl({},Object.assign(n,{middleware:e})),validator:r,inputValidator:r,client:e=>xl({},Object.assign(n,{client:e})),server:e=>xl({},Object.assign(n,{server:e}))}};function Sl(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&Sl(e,r.extends))}}var Cl=e=>({getOptions:async()=>{let t=await e();if(t.serializationAdapters){let e=new Set;Sl(e,t.serializationAdapters),t.serializationAdapters=Array.from(e)}return t},createMiddleware:xl}),wl=xl({type:`request`}),Tl=xl({type:`request`}),El=xl({type:`request`}),Dl=xl({type:`request`}),Ol=Cl(()=>({requestMiddleware:[wl,Tl,El,Dl]})),kl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Al=new class extends kl{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();
12this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},jl={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ml=new class{#e=jl;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Nl(e){setTimeout(e,0)}var Pl=typeof window>`u`||`Deno`in globalThis;function Fl(){}function Il(e,t){return typeof e==`function`?e(t):e}function Ll(e){return typeof e==`number`&&e>=0&&e!==1/0}function Rl(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zl(e,t){return typeof e==`function`?e(t):e}function Bl(e,t){return typeof e==`function`?e(t):e}function Vl(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Ul(o,t.options))return!1}else if(!V(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Hl(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Wl(t.options.mutationKey)!==Wl(a))return!1}else if(!V(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ul(e,t){return(t?.queryKeyHashFn||Wl)(e)}function Wl(e){return JSON.stringify(e,(e,t)=>ql(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function V(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>V(e[n],t[n])):!1}var Gl=Object.prototype.hasOwnProperty;function H(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=Kl(e)&&Kl(t);if(!r&&!(ql(e)&&ql(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:Gl.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=H(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function U(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function Kl(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ql(e){if(!Jl(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!Jl(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function Jl(e){return Object.prototype.toString.call(e)===`[object Object]`}function Yl(e){return new Promise(t=>{Ml.setTimeout(t,e)})}function Xl(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:H(e,t)}function Zl(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ql(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var $l=Symbol();function eu(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===$l?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function tu(e,t){return typeof e==`function`?e(...t):!!e}function nu(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var ru=(()=>{let e=()=>Pl;return{isServer(){return e()},setIsServer(t){e=t}}})();function iu(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}function au(e){let t;if(e.then(e=>(t=e,e),Fl)?.catch(Fl),t!==void 0)return{data:t}}function ou(e){return e}function su(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function cu(e,t,n){let r=()=>{let r=e.promise?.then(t).catch(e=>n(e)?Promise.reject(Error(`redacted`)):Promise.reject(e));return r?.catch(Fl),r};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status===`pen
12ding`&&{promise:r()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function lu(e){return e.state.isPaused}function uu(e){return e.state.status===`success`}function du(e){return!0}function fu(e,t={}){let n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??lu,r=e.getMutationCache().getAll().flatMap(e=>n(e)?[su(e)]:[]),i=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??uu,a=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??du,o=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??ou;return{mutations:r,queries:e.getQueryCache().getAll().flatMap(e=>i(e)?[cu(e,o,a)]:[])}}function pu(e,t,n){if(typeof t!=`object`||!t)return;let r=e.getMutationCache(),i=e.getQueryCache(),a=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??ou,o=t.mutations||[],s=t.queries||[];o.forEach(({state:t,...i})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...i},t)}),s.forEach(({queryKey:t,state:r,queryHash:o,meta:s,promise:c,dehydratedAt:l,queryType:u})=>{let d=c?au(c):void 0,f=r.data===void 0?d?.data:r.data,p=f===void 0?f:a(f),m=i.get(o),h=m?.state.status===`pending`,g=m?.state.fetchStatus===`fetching`;if(m){let e=d&&l!==void 0&&l>m.state.dataUpdatedAt;if(r.dataUpdatedAt>m.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=r;m.setState({...t,data:p,...r.status===`pending`&&p!==void 0&&{status:`success`,...!g&&{fetchStatus:`idle`}}})}}else m=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:t,queryHash:o,meta:s,_type:u},{...r,data:p,fetchStatus:`idle`,status:r.status===`pending`&&p!==void 0?`success`:r.status});c&&!d&&!h&&!g&&(l===void 0||l>m.state.dataUpdatedAt)&&m.fetch(void 0,{initialPromise:Promise.resolve(c).then(a)}).catch(Fl)})}var mu=Nl;function hu(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=mu,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var gu=hu(),_u=new class extends kl{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function vu(e){return Math.min(1e3*2**e,3e4)}function yu(e){return(e??`online`)===`online`?_u.isOnline():!0}var bu=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function xu(e){let t=!1,n=0,r,i=iu(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new bu(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Al.isFocused()&&(e.networkMode===`always`||_u.isOnline())&&e.canRun(),u=()=>yu(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(ru.isServer()?0:3),o=e.retryDelay??vu,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),Yl(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Su=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ll(this.gcTime)&&(this.#e=Ml.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ru.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Ml.clearTimeout(this.#e),this.#e=void 0)}};function Cu(e){return{onFetch:(t,n)=>
12{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{nu(e,()=>t.signal,()=>n=!0)},u=eu(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Ql:Zl;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Tu:wu,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:wu(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function wu(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Tu(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Eu=class extends Su{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=ku(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ku(this.options);e.data!==void 0&&(this.setState(Ou(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Xl(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Fl).catch(Fl):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Bl(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$l||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>zl(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Rl(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)}
12)},i=()=>{let e=eu(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Cu(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=xu({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof bu&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof bu){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Du(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Ou(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),gu.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Du(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:yu(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Ou(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ku(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Au=class extends kl{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=iu(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Mu(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Nu(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Nu(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof Bl(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!U(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Pu(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||Bl(this.options.enabled,this.#t)!==Bl(t.enabled,this.#t)||zl(this.options.staleTime,this.#t)!==zl(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||Bl(this.options.enabled,this.#t)!==Bl(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Iu(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pen
12ding`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Fl)),t}#g(){this.#b();let e=zl(this.options.staleTime,this.#t);if(ru.isServer()||this.#r.isStale||!Ll(e))return;let t=Rl(this.#r.dataUpdatedAt,e)+1;this.#d=Ml.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(ru.isServer()||Bl(this.options.enabled,this.#t)===!1||!Ll(this.#p)||this.#p===0)&&(this.#f=Ml.setInterval(()=>{(this.options.refetchIntervalInBackground||Al.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(Ml.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(Ml.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Mu(e,t),o=i&&Pu(e,n,t,r);(a||o)&&(l={...l,...Du(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=Xl(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=Xl(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Fu(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Bl(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=iu())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!U(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){gu.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function ju(e,t){return Bl(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&Bl(t.retryOn
12Mount,e)===!1)}function Mu(e,t){return ju(e,t)||e.state.data!==void 0&&Nu(e,t,t.refetchOnMount)}function Nu(e,t,n){if(Bl(t.enabled,e)!==!1&&zl(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Fu(e,t)}return!1}function Pu(e,t,n,r){return(e!==t||Bl(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Fu(e,n)}function Fu(e,t){return Bl(t.enabled,e)!==!1&&e.isStaleByTime(zl(t.staleTime,e))}function Iu(e,t){return!U(e.getCurrentResult(),t)}var Lu=class extends Su{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ru(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=xu({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),gu.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ru(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var zu=class extends kl{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Lu({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Bu(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Bu(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Bu(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>
vendor: 4,312 bytes, line 12
12e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Bu(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){gu.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Hl(t,e))}findAll(e={}){return this.getAll().filter(t=>Hl(e,t))}notify(e){gu.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return gu.batch(()=>Promise.all(e.map(e=>e.continue().catch(Fl))))}};function Bu(e){return e.options.scope?.id}var Vu=class extends kl{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Ul(r,t),a=this.get(i);return a||(a=new Eu({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){gu.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Vl(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Vl(e,t)):t}notify(e){gu.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){gu.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){gu.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Hu=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Vu,this.#t=e.mutationCache||new zu,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Al.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=_u.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(zl(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Il(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return gu.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;gu.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return gu.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=gu.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Fl).catch(Fl)}invalidateQueries(e,t={}){return gu.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=gu.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Fl)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Fl)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(zl(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Fl).catch(Fl)}
12fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Fl).catch(Fl)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return _u.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Wl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{V(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Wl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{V(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Ul(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===$l&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Uu=z.createContext(void 0),Wu=e=>{let t=z.useContext(Uu);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Gu=({client:e,children:t})=>(z.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,B.jsx)(Uu.Provider,{value:e,children:t})),Ku=z.createContext(!1),qu=()=>z.useContext(Ku);Ku.Provider;function Ju(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Yu=z.createContext(Ju()),Xu=()=>z.useContext(Yu),Zu=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?tu(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Qu=e=>{z.useEffect(()=>{e.clearReset()},[e])},$u=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||tu(n,[e.error,r])),ed=(e,t)=>t.state.data===void 0,td=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},nd=(e,t)=>e.isLoading&&e.isFetching&&!t,rd=(e,t)=>e?.suspense&&t.isPending,id=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function ad(e,t,n){let r=qu(),i=Xu(),a=Wu(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,td(o),Zu(o,i,s),Qu(i);let l=!a.getQueryCache().get(o.queryHash),[u]=z.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(z.useSyncExternalStore(z.useCallback(e=>{let t=f?u.subscribe(gu.batchCalls(e)):Fl;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),z.useEffect(()=>{u.setOptions(o)},[o,u]),rd(o,d))throw id(o,u,i);if($u({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!ru.isServer()&&nd(d,r)&&(l?id(o,u,i):s?.promise)?.catch(Fl).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function od(e,t){return ad({...e,enabled:!0,suspense:!0,throwOnError:ed,placeholderData:void 0},Au,t)}function sd(e,t,n){let r=e.options;if(e.options={...e.options,context:{...r.context,queryClient:t},Wrap:({children:e})=>(0,B.jsx)(n?.WrapProvider||z.Fragment,{children:(0,B.jsx)(Gu,{client:t,children:(0,B.jsx)(r.Wrap||z.Fragment,{children:e})})})},e.isServer){let n=cd();e.options.dehydrate=async()=>{let i=await r.dehydrate?.call(r),a=fu(t);
12return e.serverSsr.onRenderFinished(()=>n.close()),{...i,dehydratedQueryClient:a,queryStream:n.stream}};let i=t.getDefaultOptions();t.setDefaultOptions({...i,dehydrate:{shouldDehydrateQuery:()=>!0,...i.dehydrate}}),t.getQueryCache().subscribe(r=>{if(r.type===`added`){if(!e.serverSsr.isDehydrated())return;if(n.isClosed()){console.warn(`tried to stream query ${r.query.queryHash} after stream was already closed`);return}n.enqueue(fu(t,{shouldDehydrateQuery:e=>{var t;return e.queryHash===r.query.queryHash?((t=i.dehydrate)?.shouldDehydrateQuery)?.call(t,e)??!0:!1}}))}})}else if(e.options.hydrate=async e=>{await r.hydrate?.call(r,e),pu(t,e.dehydratedQueryClient);let n=e.queryStream.getReader();n.read().then(async function e({done:r,value:i}){if(pu(t,i),!r)return e(await n.read())}).catch(e=>{console.error(`Error reading query stream:`,e)})},n?.handleRedirects??!0){let n=t.getMutationCache().config;t.getMutationCache().config={...n,onError:(t,r,i,a)=>Oe(t)?(t.options._fromLocation=e.state.location,e.navigate(e.resolveRedirect(t).options)):n.onError?.call(n,t,r,i,a)};let r=t.getQueryCache().config;t.getQueryCache().config={...r,onError:(t,n)=>Oe(t)?(t.options._fromLocation=e.state.location,e.navigate(e.resolveRedirect(t).options)):r.onError?.call(r,t,n)}}return e}function cd(){let e,t=new ReadableStream({start(t){e=t}}),n=!1;return{stream:t,enqueue:t=>e.enqueue(t),close:()=>{e.close(),n=!0},isClosed:()=>n,error:t=>e.error(t)}}var ld=Object.defineProperty,ud=(e,t,n)=>t in e?ld(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dd=(e,t,n)=>ud(e,typeof t==`symbol`?t:t+``,n),fd=void 0,pd=class{constructor(e,t){if(dd(this,`address`),dd(this,`auth`),dd(this,`adminAuth`),dd(this,`encodedTsPromise`),dd(this,`debug`),dd(this,`fetchOptions`),dd(this,`fetch`),dd(this,`logger`),dd(this,`mutationQueue`,[]),dd(this,`isProcessingQueue`,!1),typeof t==`boolean`)throw Error("skipConvexDeploymentUrlCheck as the second argument is no longer supported. Please pass an options object, `{ skipConvexDeploymentUrlCheck: true }`.");(t??{}).skipConvexDeploymentUrlCheck!==!0&&ze(e),this.logger=t?.logger===!1?Be({verbose:!1}):t?.logger!==!0&&t?.logger?t.logger:Fe({verbose:!1}),this.address=e,this.debug=!0,this.auth=void 0,this.adminAuth=void 0,this.fetch=t?.fetch,t?.auth&&this.setAuth(t.auth)}backendUrl(){return`${this.address}/api`}get url(){return this.address}setAuth(e){this.clearAuth(),this.auth=e}setAdminAuth(e,t){if(this.clearAuth(),t!==void 0){let n=new TextEncoder().encode(JSON.stringify(t)),r=btoa(String.fromCodePoint(...n));this.adminAuth=`${e}:${r}`}else this.adminAuth=e}clearAuth(){this.auth=void 0,this.adminAuth=void 0}setDebug(e){this.debug=e}setFetchOptions(e){this.fetchOptions=e}async consistentQuery(e,...t){let n=Ve(t[0]),r=this.getTimestamp();return await this.queryInner(e,n,{timestampPromise:r})}async getTimestamp(){return this.encodedTsPromise?this.encodedTsPromise:this.encodedTsPromise=this.getTimestampInner()}async getTimestampInner(){let e=this.fetch||fd||fetch,t={"Content-Type":`application/json`,"Convex-Client":`npm-${Re}`},n=await e(`${this.address}/api/query_ts`,{...this.fetchOptions,method:`POST`,headers:t});if(!n.ok)throw Error(await n.text());let{ts:r}=await n.json();return r}async query(e,...t){let n=Ve(t[0]);return await this.queryInner(e,n,{})}async queryInner(e,t,n){let r=Ke(e),i=[Le(t)],a={"Content-Type":`application/json`,"Convex-Client":`npm-${Re}`};this.adminAuth?a.Authorization=`Convex ${this.adminAuth}`:this.auth&&(a.Authorization=`Bearer ${this.auth}`);let o=this.fetch||fd||fetch,s=n.timestampPromise?await n.timestampPromise:void 0,c=JSON.stringify({path:r,format:`convex_encoded_json`,args:i,...s?{ts:s}:{}}),l=await o(s?`${this.address}/api/query_at_ts`:`${this.address}/api/query`,{...this.fetchOptions,body:c,method:`POST`,headers:a});if(!l.ok&&l.status!==560)throw Error(await l.text());let u=await l.json();if(this.debug)for(let e of u.logLines??[])Je(this.logger,`info`,`query`,r,e);switch(u.status){case`success`:return We(u.value);case`error`:throw u.errorData===void 0?Error(u.errorMessage):md(u.errorData,new Ie(u.errorMessage));default:throw Error(`Invalid response: ${JSON.stringify(u)}`)}}async mutationInner(e,t){let n=Ke(e),r=JSON.stringify({path:n,format:`convex_encoded_json`,args:[Le(t)]}),i={"Content-Type":`application/json`,"Convex-Client":`npm-${Re}`};this.adminAuth?i.Authorization=`Convex ${this.adminAuth}`:this.auth&&(i.Authorization=`Bearer ${this.auth}`);let a=await(this.fetch||fd||fetch)(`${this.address}/api/mutation`,{...this.fetchOptions,body:r,method:`POST`,headers:i});if(!a.ok&&a.status!==560)throw Error(await a.text());let o=await a.json();if(this.debug)for(let e of o.logLines??[])Je(this.logger,`info`,`mutation`,n,e);switch(o.status){case`success`:return We(o.value);case`error`:throw o.errorData===void 0?Error(o.errorMessage):md(o.errorData,new Ie(o.errorMessage));default:throw Error(`Invalid response: ${JSON.stringify(o)}`)}}async processMutationQueue(){if(!this.isProcessingQueue){for(this.isProcessingQueue=!0;
12this.mutationQueue.length>0;){let{mutation:e,args:t,resolve:n,reject:r}=this.mutationQueue.shift();try{n(await this.mutationInner(e,t))}catch(e){r(e)}}this.isProcessingQueue=!1}}enqueueMutation(e,t){return new Promise((n,r)=>{this.mutationQueue.push({mutation:e,args:t,resolve:n,reject:r}),this.processMutationQueue()})}async mutation(e,...t){let[n,r]=t,i=Ve(n);return r?.skipQueue?await this.mutationInner(e,i):await this.enqueueMutation(e,i)}async action(e,...t){let n=Ve(t[0]),r=Ke(e),i=JSON.stringify({path:r,format:`convex_encoded_json`,args:[Le(n)]}),a={"Content-Type":`application/json`,"Convex-Client":`npm-${Re}`};this.adminAuth?a.Authorization=`Convex ${this.adminAuth}`:this.auth&&(a.Authorization=`Bearer ${this.auth}`);let o=await(this.fetch||fd||fetch)(`${this.address}/api/action`,{...this.fetchOptions,body:i,method:`POST`,headers:a});if(!o.ok&&o.status!==560)throw Error(await o.text());let s=await o.json();if(this.debug)for(let e of s.logLines??[])Je(this.logger,`info`,`action`,r,e);switch(s.status){case`success`:return We(s.value);case`error`:throw s.errorData===void 0?Error(s.errorMessage):md(s.errorData,new Ie(s.errorMessage));default:throw Error(`Invalid response: ${JSON.stringify(s)}`)}}async function(e,t,...n){let r=Ve(n[0]),i=typeof e==`string`?e:Ke(e),a=JSON.stringify({componentPath:t,path:i,format:`convex_encoded_json`,args:Le(r)}),o={"Content-Type":`application/json`,"Convex-Client":`npm-${Re}`};this.adminAuth?o.Authorization=`Convex ${this.adminAuth}`:this.auth&&(o.Authorization=`Bearer ${this.auth}`);let s=await(this.fetch||fd||fetch)(`${this.address}/api/function`,{...this.fetchOptions,body:a,method:`POST`,headers:o});if(!s.ok&&s.status!==560)throw Error(await s.text());let c=await s.json();if(this.debug)for(let e of c.logLines??[])Je(this.logger,`info`,`any`,i,e);switch(c.status){case`success`:return We(c.value);case`error`:throw c.errorData===void 0?Error(c.errorMessage):md(c.errorData,new Ie(c.errorMessage));default:throw Error(`Invalid response: ${JSON.stringify(c)}`)}}};function md(e,t){return t.data=We(e),t}var hd=(0,z.createContext)(void 0);function gd({children:e,client:t,useAuth:n}){let{isLoading:r,isAuthenticated:i,fetchAccessToken:a}=n(),[o,s]=(0,z.useState)(null),[c,l]=(0,z.useState)(!1);r&&o!==null&&(s(null),l(!1)),!r&&!i&&o!==!1&&(s(!1),l(!1));let u=i&&(o??!1);return z.createElement(hd.Provider,{value:{isLoading:o===null,isAuthenticated:u,isRefreshing:c&&u}},z.createElement(_d,{authProviderAuthenticated:i,fetchAccessToken:a,authProviderLoading:r,client:t,setIsConvexAuthenticated:s,setIsRefreshing:l}),z.createElement(He,{client:t},e),z.createElement(vd,{authProviderAuthenticated:i,fetchAccessToken:a,authProviderLoading:r,client:t,setIsConvexAuthenticated:s,setIsRefreshing:l}))}function _d({authProviderAuthenticated:e,fetchAccessToken:t,authProviderLoading:n,client:r,setIsConvexAuthenticated:i,setIsRefreshing:a}){return(0,z.useEffect)(()=>{let n=!0;if(e)return r.setAuth(t,e=>{n&&i(()=>e)},e=>{n&&a(e)}),()=>{n=!1,i(e=>e?!1:null),a(!1)}},[e,t,n,r,i,a]),null}function vd({authProviderAuthenticated:e,fetchAccessToken:t,authProviderLoading:n,client:r,setIsConvexAuthenticated:i,setIsRefreshing:a}){return(0,z.useEffect)(()=>{if(e)return()=>{r.clearAuth(),i(()=>null),a(!1)}},[e,t,n,r,i,a]),null}var yd=typeof window>`u`;function bd(e){return e.length>=2&&[`convexQuery`,`convexAction`].includes(e[0])&&e[2]===`skip`}function xd(e){return e.length>=2&&e[0]===`convexQuery`}function Sd(e){return e.length>=2&&e[0]===`convexAction`}function Cd(e){return`convexQuery|${Ke(e[1])}|${JSON.stringify(Le(e[2]))}`}var wd=class{convexClient;subscriptions;unsubscribe;serverHttpClient;_queryClient;ssrQueryMode;get queryClient(){if(!this._queryClient)throw Error(`ConvexQueryClient not connected to TanStack QueryClient.`);return this._queryClient}constructor(e,t={}){typeof e==`string`?this.convexClient=new Ge(e,t):this.convexClient=e,t.dangerouslyUseInconsistentQueriesDuringSSR?this.ssrQueryMode=`inconsistent`:this.ssrQueryMode=`consistent`,this.subscriptions={},t.queryClient&&(this._queryClient=t.queryClient,this.unsubscribe=this.subscribeInner(t.queryClient.getQueryCache())),yd&&(this.serverHttpClient=new pd(this.convexClient.url))}connect(e){if(this.unsubscribe)throw Error(`already subscribed!`);this._queryClient=e,this.unsubscribe=this.subscribeInner(e.getQueryCache())}onUpdate=()=>{gu.batch(()=>{for(let e of Object.keys(this.subscriptions))this.onUpdateQueryKeyHash(e)})};onUpdateQueryKeyHash(e){let t=this.subscriptions[e];if(!t)throw Error(`Internal ConvexQueryClient error: onUpdateQueryKeyHash called for ${e}`);let n=this.queryClient.getQueryCache().get(e);if(!n)return;let{queryKey:r,watch:i}=t,a;try{a={ok:!0,value:i.localQueryResult()}}catch(e){a={ok:!1,error:e}}if(a.ok){let e=a.value;this.queryClient.setQueryData(r,t=>{if(t!==void 0)return e})}else{let{error:e}=a;
12n?.setState({error:e,errorUpdateCount:n.state.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.state.fetchFailureCount+1,fetchFailureReason:e,fetchStatus:`idle`,status:`error`},{meta:`set by ConvexQueryClient`})}}subscribeInner(e){return yd?()=>{}:e.subscribe(e=>{if(xd(e.query.queryKey)&&!bd(e.query.queryKey))switch(e.type){case`removed`:this.subscriptions[e.query.queryHash].unsubscribe(),delete this.subscriptions[e.query.queryHash];break;case`added`:{let[t,n,r,i]=e.query.queryKey,a=this.convexClient.watchQuery(n,r,{}),o=a.onUpdate(()=>{this.onUpdateQueryKeyHash(e.query.queryHash)});this.subscriptions[e.query.queryHash]={queryKey:e.query.queryKey,watch:a,unsubscribe:o};break}case`observerAdded`:break;case`observerRemoved`:e.query.getObserversCount();break;case`observerResultsUpdated`:break;case`updated`:if(e.action.type===`setState`&&e.action.setStateOptions?.meta===`set by ConvexQueryClient`)break;break;case`observerOptionsUpdated`:break}})}queryFn(e=Ed){return async t=>{if(bd(t.queryKey))throw Error(`Skipped query should not actually be run, should { enabled: false }`);if(xd(t.queryKey)){let[e,n,r]=t.queryKey;return yd?this.ssrQueryMode===`consistent`?await this.serverHttpClient.consistentQuery(n,r):await this.serverHttpClient.query(n,r):await this.convexClient.query(n,r)}if(Sd(t.queryKey)){let[e,n,r]=t.queryKey;return yd?await this.serverHttpClient.action(n,r):await this.convexClient.action(n,r)}return e(t)}}hashFn(e=Wl){return t=>xd(t)?Cd(t):e(t)}queryOptions=(e,t)=>({queryKey:[`convexQuery`,Ke(e),t],queryFn:this.queryFn(),staleTime:1/0})};function Td(e,...t){let n=t[0]??{};return{queryKey:[`convexQuery`,Ke(e),n===`skip`?`skip`:n],staleTime:1/0,...n===`skip`?{enabled:!1}:{}}}function Ed(e){throw Error(`Query key is not for a Convex Query: `+e.queryKey)}var Dd=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Od=`VisuallyHidden`,W=z.forwardRef((e,t)=>(0,B.jsx)(c.span,{...e,ref:t,style:{...Dd,...e.style}}));W.displayName=Od;var kd=W,Ad=`Accordion`,jd=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[Md,Nd,Pd]=ut(Ad),[Fd,Id]=u(Ad,[Pd,yt]),Ld=yt(),Rd=z.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return(0,B.jsx)(Md.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,B.jsx)(Wd,{...a,ref:t}):(0,B.jsx)(Ud,{...i,ref:t})})});Rd.displayName=Ad;var[zd,Bd]=Fd(Ad),[Vd,Hd]=Fd(Ad,{collapsible:!1}),Ud=z.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,c]=ft({prop:n,defaultProp:r??``,onChange:i,caller:Ad});return(0,B.jsx)(zd,{scope:e.__scopeAccordion,value:z.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:z.useCallback(()=>a&&c(``),[a,c]),children:(0,B.jsx)(Vd,{scope:e.__scopeAccordion,collapsible:a,children:(0,B.jsx)(qd,{...o,ref:t})})})}),Wd=z.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=ft({prop:n,defaultProp:r??[],onChange:i,caller:Ad}),c=z.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=z.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,B.jsx)(zd,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:l,children:(0,B.jsx)(Vd,{scope:e.__scopeAccordion,collapsible:!0,children:(0,B.jsx)(qd,{...a,ref:t})})})}),[Gd,Kd]=Fd(Ad),qd=z.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,dir:i,orientation:a=`vertical`,...o}=e,s=g(z.useRef(null),t),l=Nd(n),u=dt(i)===`ltr`,d=pt(e.onKeyDown,e=>{if(!jd.includes(e.key))return;let t=e.target,n=l().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let o=r,s=i-1,c=()=>{o=r+1,o>s&&(o=0)},d=()=>{o=r-1,o<0&&(o=s)};switch(e.key){case`Home`:o=0;break;case`End`:o=s;break;case`ArrowRight`:a===`horizontal`&&(u?c():d());break;case`ArrowDown`:a===`vertical`&&c();break;case`ArrowLeft`:a===`horizontal`&&(u?d():c());break;case`ArrowUp`:a===`vertical`&&d();break}n[o%i].ref.current?.focus()});return(0,B.jsx)(Gd,{scope:n,disabled:r,direction:i,orientation:a,children:(0,B.jsx)(Md.Slot,{scope:n,children:(0,B.jsx)(c.div,{...o,"data-orientation":a,ref:s,onKeyDown:r?void 0:d})})})}),Jd=`AccordionItem`,[Yd,Xd]=Fd(Jd),Zd=z.forwardRef((e,t)=>
12{let{__scopeAccordion:n,value:r,...i}=e,a=Kd(Jd,n),o=Bd(Jd,n),s=Ld(n),c=mt(),l=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return(0,B.jsx)(Yd,{scope:n,open:l,disabled:u,triggerId:c,children:(0,B.jsx)(_t,{"data-orientation":a.orientation,"data-state":af(l),...s,...i,ref:t,disabled:u,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});Zd.displayName=Jd;var Qd=`AccordionHeader`,$d=z.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=Kd(Ad,n),a=Xd(Qd,n);return(0,B.jsx)(c.h3,{"data-orientation":i.orientation,"data-state":af(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})});$d.displayName=Qd;var ef=`AccordionTrigger`,tf=z.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=Kd(Ad,n),a=Xd(ef,n),o=Hd(ef,n),s=Ld(n);return(0,B.jsx)(Md.ItemSlot,{scope:n,children:(0,B.jsx)(gt,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});tf.displayName=ef;var nf=`AccordionContent`,rf=z.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=Kd(Ad,n),a=Xd(nf,n),o=Ld(n);return(0,B.jsx)(bt,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})});rf.displayName=nf;function af(e){return e?`open`:`closed`}var of=Rd,sf=Zd,cf=$d,lf=tf,uf=rf,df=!1;function ff(){let[e,t]=z.useState(df);return z.useEffect(()=>{df||(df=!0,t(!0))},[]),e}var pf=z.useSyncExternalStore;function mf(){return()=>{}}function hf(){return pf(mf,()=>!0,()=>!1)}var gf=typeof pf==`function`?hf:ff,_f=`Avatar`,[vf,yf]=u(_f),[bf,xf]=vf(_f),Sf=z.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=z.useState(`idle`);return(0,B.jsx)(bf,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,B.jsx)(c.span,{...r,ref:t})})});Sf.displayName=_f;var Cf=`AvatarImage`,wf=z.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=xf(Cf,n),s=Of(r,a),l=h(e=>{i(e),o.onImageLoadingStatusChange(e)});return f(()=>{s!==`idle`&&l(s)},[s,l]),s===`loaded`?(0,B.jsx)(c.img,{...a,ref:t,src:r}):null});wf.displayName=Cf;var Tf=`AvatarFallback`,Ef=z.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=xf(Tf,n),[o,s]=z.useState(r===void 0);return z.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,B.jsx)(c.span,{...i,ref:t}):null});Ef.displayName=Tf;function Df(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function Of(e,{referrerPolicy:t,crossOrigin:n}){let r=gf(),i=z.useRef(null),a=r?(i.current||=new window.Image,i.current):null,[o,s]=z.useState(()=>Df(a,e));return f(()=>{s(Df(a,e))},[a,e]),f(()=>{let e=e=>()=>{s(e)};if(!a)return;let r=e(`loaded`),i=e(`error`);return a.addEventListener(`load`,r),a.addEventListener(`error`,i),t&&(a.referrerPolicy=t),typeof n==`string`&&(a.crossOrigin=n),()=>{a.removeEventListener(`load`,r),a.removeEventListener(`error`,i)}},[a,n,t]),o}var kf=Sf,Af=wf,jf=Ef;function Mf(e){let[t,n]=z.useState(void 0);return f(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var Nf=[`top`,`right`,`bottom`,`left`],Pf=Math.min,Ff=Math.max,If=Math.round,Lf=Math.floor,Rf=e=>({x:e,y:e}),zf={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Bf(e,t,n){return Ff(e,Pf(t,n))}function Vf(e,t){return typeof e==`function`?e(t):e}function Hf(e){return e.split(`-`)[0]}function Uf(e){return e.split(`-`)[1]}function Wf(e){return e===`x`?`y`:`x`}function Gf(e){return e===`y`?`height`:`width`}function Kf(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function qf(e){return Wf(Kf(e))}function Jf(e,t,n){n===void 0&&(n=!1);
vendor: 5,073 bytes, line 12
12let r=Uf(e),i=qf(e),a=Gf(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=rp(o)),[o,rp(o)]}function Yf(e){let t=rp(e);return[Xf(e),t,Xf(t)]}function Xf(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Zf=[`left`,`right`],Qf=[`right`,`left`],$f=[`top`,`bottom`],ep=[`bottom`,`top`];function tp(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Qf:Zf:t?Zf:Qf;case`left`:case`right`:return t?$f:ep;default:return[]}}function np(e,t,n,r){let i=Uf(e),a=tp(Hf(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Xf)))),a}function rp(e){let t=Hf(e);return zf[t]+e.slice(t.length)}function ip(e){return{top:0,right:0,bottom:0,left:0,...e}}function ap(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ip(e)}function op(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function sp(e,t,n){let{reference:r,floating:i}=e,a=Kf(t),o=qf(t),s=Gf(o),c=Hf(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Uf(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function cp(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Vf(t,e),p=ap(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=op(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=op(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var lp=50,up=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:cp},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=sp(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<lp&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=sp(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},dp=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Vf(e,t)||{};if(l==null)return{};let d=ap(u),f={x:n,y:r},p=qf(i),m=Gf(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,ee=C/2-h[m]/2-1,te=Pf(d[_],ee),ne=Pf(d[v],ee),E=te,re=C-h[m]-ne,ie=C/2-h[m]/2+w,ae=Bf(E,ie,re),oe=!c.arrow&&Uf(i)!=null&&ie!==ae&&a.reference[m]/2-(ie<E?te:ne)-h[m]/2<0,se=oe?ie<E?ie-E:ie-re:0;return{[p]:f[p]+se,data:{[p]:ae,centerOffset:ie-ae-se,...oe&&{alignmentOffset:se}},reset:oe}}}),fp=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Vf(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Hf(r),_=Kf(o),v=Hf(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[rp(o)]:Yf(o)),x=p!==`none`;!d&&x&&b.push(...np(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],ee=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Jf(r,a,y);w.push(C[e[0]],C[e[1]])}if(ee=[...ee,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Kf(t))||ee.every(e=>Kf(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:ee},reset:{placement:t}};let n=ee.filter(e=>e.overflows[0]<=0).sort((e,t)=>
vendor: 5,968 bytes, line 12
12e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=ee.filter(e=>{if(x){let t=Kf(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function pp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function mp(e){return Nf.some(t=>e[t]>=0)}var hp=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Vf(e,t);switch(i){case`referenceHidden`:{let e=pp(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:mp(e)}}}case`escaped`:{let e=pp(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:mp(e)}}}default:return{}}}}},gp=new Set([`left`,`top`]);async function _p(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Hf(n),s=Uf(n),c=Kf(n)===`y`,l=gp.has(o)?-1:1,u=a&&c?-1:1,d=Vf(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var vp=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await _p(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},yp=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Vf(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Kf(Hf(i)),p=Wf(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Bf(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Bf(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},bp=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Vf(e,t),u={x:n,y:r},d=Kf(i),f=Wf(d),p=u[f],m=u[d],h=Vf(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=gp.has(Hf(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},xp=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Vf(e,t),u=await o.detectOverflow(t,l),d=Hf(i),f=Uf(i),p=Kf(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Pf(h-u[g],v),x=Pf(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Ff(u.left,0),t=Ff(u.right,0),n=Ff(u.top,0),r=Ff(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Ff(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Ff(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let ee=await o.getDimensions(s.floating);return m!==ee.width||h!==ee.height?{reset:{rects:!0}}:{}}}};function Sp(){return typeof window<`u`}function Cp(e){return Ep(e)?(e.nodeName||``).toLowerCase():`#document`}function wp(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Tp(e){return((Ep(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ep(e){return Sp()?e instanceof Node||e instanceof wp(e).Node:!1}function Dp(e){return Sp()?e instanceof Element||e instanceof wp(e).Element:!1}function Op(e){return Sp()?e instanceof HTMLElement||e instanceof wp(e).HTMLElement:!1}function kp(e){return!Sp()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof wp(e).ShadowRoot}function Ap(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Vp(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function jp(e){return/^(table|td|th)$/.test(Cp(e))}function Mp(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Np=/transform|translate|scale|rotate|perspective|filter/,Pp=/paint|layout|strict|content/,Fp=e=>!!e&&e!==`none`,Ip;function Lp(e){let t=Dp(e)?Vp(e):e;return Fp(t.transform)||Fp(t.translate)||Fp(t.scale)||Fp(t.rotate)||Fp(t.perspective)||!zp()&&(Fp(t.backdropFilter)||Fp(t.filter))||Np.test(t.willChange||``)||Pp.test(t.contain||``)}function Rp(e){let t=Up(e);for(;Op(t)&&!Bp(t);){if(Lp(t))return t;if(Mp(t))return null;t=Up(t)}return null}function zp(){return Ip??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ip}function Bp(e){return/^(html|body|#document)$/.test(Cp(e))}function Vp(e){return wp(e).getComputedStyle(e)}function Hp(e){return Dp(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Up(e){if(Cp(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||kp(e)&&e.host||Tp(e);return kp(t)?t.host:t}function Wp(e){let t=Up(e);return Bp(t)?e.ownerDocument?e.ownerDocument.body:e.body:Op(t)&&Ap(t)?t:Wp(t)}function Gp(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Wp(e),i=r===e.ownerDocument?.body,a=wp(r);if(i){let e=Kp(a);
vendor: 6,486 bytes, line 12
12return t.concat(a,a.visualViewport||[],Ap(r)?r:[],e&&n?Gp(e):[])}else return t.concat(r,Gp(r,[],n))}function Kp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qp(e){let t=Vp(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Op(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=If(n)!==a||If(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Jp(e){return Dp(e)?e:e.contextElement}function Yp(e){let t=Jp(e);if(!Op(t))return Rf(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=qp(t),o=(a?If(n.width):n.width)/r,s=(a?If(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Xp=Rf(0);function Zp(e){let t=wp(e);return!zp()||!t.visualViewport?Xp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wp(e)?!1:t}function $p(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Jp(e),o=Rf(1);t&&(r?Dp(r)&&(o=Yp(r)):o=Yp(e));let s=Qp(a,n,r)?Zp(a):Rf(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=wp(a),t=r&&Dp(r)?wp(r):r,n=e,i=Kp(n);for(;i&&r&&t!==n;){let e=Yp(i),t=i.getBoundingClientRect(),r=Vp(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=wp(i),i=Kp(n)}}return op({width:u,height:d,x:c,y:l})}function em(e,t){let n=Hp(e).scrollLeft;return t?t.left+n:$p(Tp(e)).left+n}function tm(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-em(e,n),y:n.top+t.scrollTop}}function nm(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Tp(r),s=t?Mp(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Rf(1),u=Rf(0),d=Op(r);if((d||!d&&!a)&&((Cp(r)!==`body`||Ap(o))&&(c=Hp(r)),d)){let e=$p(r);l=Yp(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?tm(o,c):Rf(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function rm(e){return Array.from(e.getClientRects())}function im(e){let t=Tp(e),n=Hp(e),r=e.ownerDocument.body,i=Ff(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ff(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+em(e),s=-n.scrollTop;return Vp(r).direction===`rtl`&&(o+=Ff(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var am=25;function om(e,t){let n=wp(e),r=Tp(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=zp();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=em(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=am&&(a-=o)}else l<=am&&(a+=l);return{width:a,height:o,x:s,y:c}}function sm(e,t){let n=$p(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Op(e)?Yp(e):Rf(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function cm(e,t,n){let r;if(t===`viewport`)r=om(e,n);else if(t===`document`)r=im(Tp(e));else if(Dp(t))r=sm(t,n);else{let n=Zp(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return op(r)}function lm(e,t){let n=Up(e);return n===t||!Dp(n)||Bp(n)?!1:Vp(n).position===`fixed`||lm(n,t)}function um(e,t){let n=t.get(e);if(n)return n;let r=Gp(e,[],!1).filter(e=>Dp(e)&&Cp(e)!==`body`),i=null,a=Vp(e).position===`fixed`,o=a?Up(e):e;for(;Dp(o)&&!Bp(o);){let t=Vp(o),n=Lp(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Ap(o)&&!n&&lm(e,o))?r=r.filter(e=>e!==o):i=t,o=Up(o)}return t.set(e,r),r}function dm(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Mp(t)?[]:um(t,this._c):[].concat(n),r],o=cm(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=cm(t,a[e],i);s=Ff(n.top,s),c=Pf(n.right,c),l=Pf(n.bottom,l),u=Ff(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function fm(e){let{width:t,height:n}=qp(e);return{width:t,height:n}}function pm(e,t,n){let r=Op(t),i=Tp(t),a=n===`fixed`,o=$p(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Rf(0);function l(){c.x=em(i)}if(r||!r&&!a)if((Cp(t)!==`body`||Ap(i))&&(s=Hp(t)),r){let e=$p(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?tm(i,s):Rf(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function mm(e){return Vp(e).position===`static`}function hm(e,t){if(!Op(e)||Vp(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Tp(e)===n&&(n=n.ownerDocument.body),n}function gm(e,t){let n=wp(e);if(Mp(e))return n;if(!Op(e)){let t=Up(e);for(;t&&!Bp(t);){if(Dp(t)&&!mm(t))return t;t=Up(t)}return n}let r=hm(e,t);for(;r&&jp(r)&&mm(r);)r=hm(r,t);return r&&Bp(r)&&mm(r)&&!Lp(r)?n:r||Rp(e)||n}var _m=async function(e){let t=this.getOffsetParent||gm,n=this.getDimensions,r=await n(e.floating);return{reference:pm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vm(e){return Vp(e).direction===`rtl`}var ym={convertOffsetParentRelativeRectToViewportRelativeRect:nm,getDocumentElement:Tp,getClippingRect:dm,getOffsetParent:gm,getElementRects:_m,getClientRects:rm,getDimensions:fm,getScale:Yp,isElement:Dp,isRTL:vm};function bm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xm(e,t){let n=null,r,i=Tp(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Lf(d),h=Lf(i.clientWidth-(u+f)),g=Lf(i.clientHeight-(d+p)),_=Lf(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Ff(0,Pf(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!bm(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Sm(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Jp(e),u=i||a?[...l?Gp(l):[],...t?Gp(t):[]]:[];
vendor: 4,101 bytes, line 12
12u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?xm(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$p(e):null;c&&g();function g(){let t=$p(e);h&&!bm(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Cm=vp,wm=yp,Tm=fp,Em=xp,Dm=hp,Om=dp,km=bp,Am=(e,t,n)=>{let r=new Map,i={platform:ym,...n},a={...i.platform,_c:r};return up(e,t,{...i,platform:a})},jm=n(p(),1),Mm=typeof document<`u`?z.useLayoutEffect:function(){};function Nm(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Nm(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Nm(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Pm(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fm(e,t){let n=Pm(e);return Math.round(t*n)/n}function Im(e){let t=z.useRef(e);return Mm(()=>{t.current=e}),t}function Lm(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=z.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=z.useState(r);Nm(f,r)||p(r);let[m,h]=z.useState(null),[g,_]=z.useState(null),v=z.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=z.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=z.useRef(null),C=z.useRef(null),w=z.useRef(u),ee=c!=null,te=Im(c),ne=Im(i),E=Im(l),re=z.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};ne.current&&(e.platform=ne.current),Am(S.current,C.current,e).then(e=>{let t={...e,isPositioned:E.current!==!1};ie.current&&!Nm(w.current,t)&&(w.current=t,jm.flushSync(()=>{d(t)}))})},[f,t,n,ne,E]);Mm(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ie=z.useRef(!1);Mm(()=>(ie.current=!0,()=>{ie.current=!1}),[]),Mm(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(te.current)return te.current(b,x,re);re()}},[b,x,re,te,ee]);let ae=z.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),oe=z.useMemo(()=>({reference:b,floating:x}),[b,x]),se=z.useMemo(()=>{let e={position:n,left:0,top:0};if(!oe.floating)return e;let t=Fm(oe.floating,u.x),r=Fm(oe.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Pm(oe.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,oe.floating,u.x,u.y]);return z.useMemo(()=>({...u,update:re,refs:ae,elements:oe,floatingStyles:se}),[u,re,ae,oe,se])}var Rm=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Om({element:r.current,padding:i}).fn(n):r?Om({element:r,padding:i}).fn(n):{}}}},zm=(e,t)=>{let n=Cm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bm=(e,t)=>{let n=wm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vm=(e,t)=>({fn:km(e).fn,options:[e,t]}),Hm=(e,t)=>{let n=Tm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Um=(e,t)=>{let n=Em(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wm=(e,t)=>{let n=Dm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gm=(e,t)=>{let n=Rm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Km=`Arrow`,qm=z.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,B.jsx)(c.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 3
120 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,B.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});qm.displayName=Km;var Jm=qm,Ym=`Popper`,[Xm,Zm]=u(Ym),[Qm,$m]=Xm(Ym),eh=e=>{let{__scopePopper:t,children:n}=e,[r,i]=z.useState(null),[a,o]=z.useState(void 0);return(0,B.jsx)(Qm,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};eh.displayName=Ym;var th=`PopperAnchor`,nh=z.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=$m(th,n),o=z.useRef(null),s=a.onAnchorChange,l=g(t,z.useCallback(e=>{o.current=e,e&&s(e)},[s])),u=z.useRef(null);z.useEffect(()=>{if(!r)return;let e=u.current;u.current=r.current,e!==u.current&&s(u.current)});let d=a.placementState&&fh(a.placementState),f=d?.[0],p=d?.[1];return r?null:(0,B.jsx)(c.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...i,ref:l})});nh.displayName=th;var rh=`PopperContent`,[ih,ah]=Xm(rh),oh=z.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u,collisionPadding:d=0,sticky:p=`partial`,hideWhenDetached:m=!1,updatePositionStrategy:_=`optimized`,onPlaced:v,...y}=e,b=$m(rh,n),[x,S]=z.useState(null),C=g(t,e=>S(e)),[w,ee]=z.useState(null),te=Mf(w),ne=te?.width??0,E=te?.height??0,re=r+(a===`center`?``:`-`+a),ie=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},ae=u?Array.isArray(u)?u:[u]:void 0,oe=ae!==void 0&&ae.length>0,se={padding:ie,boundary:ae?.filter(uh),altBoundary:oe},{refs:ce,floatingStyles:D,placement:O,isPositioned:le,middlewareData:ue}=Lm({strategy:`fixed`,placement:re,whileElementsMounted:(...e)=>Sm(...e,{animationFrame:_===`always`}),elements:{reference:b.anchor},middleware:[zm({mainAxis:i+E,alignmentAxis:o}),l&&Bm({mainAxis:!0,crossAxis:!1,limiter:p===`partial`?Vm():void 0,...se}),l&&Hm({...se}),Um({...se,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),w&&Gm({element:w,padding:s}),dh({arrowWidth:ne,arrowHeight:E}),m&&Wm({strategy:`referenceHidden`,...se})]}),de=b.setPlacementState;f(()=>(de(O),()=>{de(void 0)}),[O,de]);let[fe,k]=fh(O),A=h(v);f(()=>{le&&A?.()},[le,A]);let pe=ue.arrow?.x,me=ue.arrow?.y,he=ue.arrow?.centerOffset!==0,[ge,_e]=z.useState();return f(()=>{x&&_e(window.getComputedStyle(x).zIndex)},[x]),(0,B.jsx)(`div`,{ref:ce.setFloating,"data-radix-popper-content-wrapper":``,style:{...D,transform:le?D.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ge,"--radix-popper-transform-origin":[ue.transformOrigin?.x,ue.transformOrigin?.y].join(` `),...ue.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,B.jsx)(ih,{scope:n,placedSide:fe,placedAlign:k,onArrowChange:ee,arrowX:pe,arrowY:me,shouldHideArrow:he,children:(0,B.jsx)(c.div,{"data-side":fe,"data-align":k,...y,ref:C,style:{...y.style,animation:le?void 0:`none`}})})})});oh.displayName=rh;var sh=`PopperArrow`,ch={top:`bottom`,right:`left`,bottom:`top`,left:`right`},lh=z.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=ah(sh,n),a=ch[i.placedSide];return(0,B.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,B.jsx)(Jm,{...r,ref:t,style:{...r.style,display:`block`}})})});lh.displayName=sh;function uh(e){return e!==null}var dh=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=fh(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function fh(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var ph=eh,mh=nh,hh=oh,gh=lh,_h=`Progress`,vh=100,[yh,bh]=u(_h),[xh,Sh]=yh(_h),Ch=z.forwardRef((e,t)=>
12{let{__scopeProgress:n,value:r=null,max:i,getValueLabel:a=Eh,...o}=e;(i||i===0)&&!kh(i)&&console.error(jh(`${i}`,`Progress`));let s=kh(i)?i:vh;r!==null&&!Ah(r,s)&&console.error(Mh(`${r}`,`Progress`));let l=Ah(r,s)?r:null,u=Oh(l)?a(l,s):void 0;return(0,B.jsx)(xh,{scope:n,value:l,max:s,children:(0,B.jsx)(c.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Oh(l)?l:void 0,"aria-valuetext":u,role:`progressbar`,"data-state":Dh(l,s),"data-value":l??void 0,"data-max":s,...o,ref:t})})});Ch.displayName=_h;var wh=`ProgressIndicator`,Th=z.forwardRef((e,t)=>{let{__scopeProgress:n,...r}=e,i=Sh(wh,n);return(0,B.jsx)(c.div,{"data-state":Dh(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});Th.displayName=wh;function Eh(e,t){return`${Math.round(e/t*100)}%`}function Dh(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}function Oh(e){return typeof e==`number`}function kh(e){return Oh(e)&&!isNaN(e)&&e>0}function Ah(e,t){return Oh(e)&&!isNaN(e)&&e<=t&&e>=0}function jh(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${vh}\`.`}function Mh(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 13 - a positive number 14 - less than the value passed to \`max\` (or ${vh} if no \`max\` prop is set) 15 - \`null\` or \`undefined\` if the progress is indeterminate. 16 17Defaulting to \`null\`.`}var Nh=Ch,Ph=Th,Fh=`Separator`,Ih=`horizontal`,Lh=[`horizontal`,`vertical`],Rh=z.forwardRef((e,t)=>{let{decorative:n,orientation:r=Ih,...i}=e,a=zh(r)?r:Ih,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,B.jsx)(c.div,{"data-orientation":a,...o,...i,ref:t})});Rh.displayName=Fh;function zh(e){return Lh.includes(e)}var Bh=Rh,[Vh,Hh]=u(`Tooltip`,[Zm]),Uh=Zm(),Wh=`TooltipProvider`,Gh=700,Kh=`tooltip.open`,[qh,Jh]=Vh(Wh),Yh=e=>{let{__scopeTooltip:t,delayDuration:n=Gh,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=z.useRef(!0),s=z.useRef(!1),c=z.useRef(0);return z.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,B.jsx)(qh,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:z.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:z.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:z.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};Yh.displayName=Wh;var Xh=`Tooltip`,[Zh,Qh]=Vh(Xh),$h=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=Jh(Xh,e.__scopeTooltip),l=Uh(t),[u,d]=z.useState(null),f=mt(),p=z.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=z.useRef(!1),[_,v]=ft({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Kh))):c.onClose(),a?.(e)},caller:Xh}),y=z.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=z.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=z.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=z.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return z.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,B.jsx)(ph,{...l,children:(0,B.jsx)(Zh,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:z.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:z.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};$h.displayName=Xh;var eg=`TooltipTrigger`,tg=z.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Qh(eg,n),a=Jh(eg,n),o=Uh(n),s=g(t,z.useRef(null),i.onTriggerChange),l=z.useRef(!1),u=z.useRef(!1),d=z.useCallback(()=>l.current=!1,[]);return z.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,B.jsx)(mh,{asChild:!0,...o,children:(0,B.jsx)(c.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:pt(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:pt(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:pt(e.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:pt(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:pt(e.onBlur,i.onClose),onClick:pt(e.onClick,i.onClose)})})});tg.displayName=eg;var ng=`TooltipPortal`,[rg,ig]=Vh(ng,{forceMount:void 0}),ag=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=Qh(ng,t);return(0,B.jsx)(rg,{scope:t,forceMount:n,children:(0,B.jsx)(ht,{present:n||a.open,children:(0,B.jsx)(wt,{asChild:!0,container:i,children:r})})})};ag.displayName=ng;var og=`TooltipContent`,sg=z.forwardRef((e,t)=>
vendor: 4,843 bytes, line 17
17{let n=ig(og,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Qh(og,e.__scopeTooltip);return(0,B.jsx)(ht,{present:r||o.open,children:o.disableHoverableContent?(0,B.jsx)(fg,{side:i,...a,ref:t}):(0,B.jsx)(cg,{side:i,...a,ref:t})})}),cg=z.forwardRef((e,t)=>{let n=Qh(og,e.__scopeTooltip),r=Jh(og,e.__scopeTooltip),i=z.useRef(null),a=g(t,i),[o,s]=z.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=z.useCallback(()=>{s(null),d(!1)},[d]),p=z.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=gg(r,hg(r,n.getBoundingClientRect())),a=_g(t.getBoundingClientRect());s(yg([...i,...a])),d(!0)},[d]);return z.useEffect(()=>()=>f(),[f]),z.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),z.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!vg(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,B.jsx)(fg,{...e,ref:a})}),[lg,ug]=Vh(Xh,{isInside:!1}),dg=d(`TooltipContent`),fg=z.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=Qh(og,n),l=Uh(n),{onClose:u}=c;return z.useEffect(()=>(document.addEventListener(Kh,u),()=>document.removeEventListener(Kh,u)),[u]),z.useEffect(()=>{if(c.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,B.jsx)(Et,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,B.jsxs)(hh,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,B.jsx)(dg,{children:r}),(0,B.jsx)(lg,{scope:n,isInside:!0,children:(0,B.jsx)(kd,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});sg.displayName=og;var pg=`TooltipArrow`,mg=z.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Uh(n);return ug(pg,n).isInside?null:(0,B.jsx)(gh,{...i,...r,ref:t})});mg.displayName=pg;function hg(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function gg(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function _g(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function vg(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function yg(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),bg(t)}function bg(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var xg=Yh,Sg=$h,Cg=tg,wg=ag,Tg=sg,Eg=mg,Dg={fr:{chip:`Erreur 404`,title:`Page introuvable`,body:`Cette page nâexiste pas ou a changé dâadresse. Même la Pythie nâa pas de réponse à cette URL.`,home:`Retour à lâaccueil`},en:{chip:`Error 404`,title:`Page not found`,body:`This page doesnât exist or has moved. Even the Pythie has no answer for this URL.`,home:`Back to home`}};function Og(){let e=r(il({select:e=>e.location.pathname})),t=Dg[e],n=a(e);return(0,B.jsx)(`div`,{className:`min-h-dvh bg-background font-sans text-foreground antialiased`,children:(0,B.jsxs)(`div`,{className:`relative mx-auto flex min-h-dvh w-full max-w-5xl flex-col px-5 sm:px-8`,children:[(0,B.jsx)(`div`,{"aria-hidden":!0,
17className:`pointer-events-none absolute inset-y-0 left-0 hidden border-l border-dashed border-ink/10 sm:block`}),(0,B.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-y-0 right-0 hidden border-r border-dashed border-ink/10 sm:block`}),(0,B.jsxs)(`header`,{className:`flex items-center justify-between gap-4 border-b py-5`,children:[(0,B.jsxs)(je,{to:n,className:`flex items-center gap-2 text-[17px] font-semibold tracking-tight`,children:[(0,B.jsx)(Ye,{}),`Pythie`]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,B.jsx)(`span`,{className:`hidden font-mono text-[10px] uppercase tracking-[0.14em] text-muted-foreground sm:inline`,children:t.chip}),(0,B.jsx)($e,{locale:e})]})]}),(0,B.jsxs)(`main`,{className:`reveal flex flex-1 flex-col items-center justify-center py-20 text-center`,children:[(0,B.jsx)(`p`,{className:`font-mono text-7xl font-semibold leading-none tracking-tighter text-muted-foreground/25 sm:text-8xl`,children:`404`}),(0,B.jsx)(`h1`,{className:`mt-8 text-2xl font-semibold tracking-tight sm:text-3xl`,children:t.title}),(0,B.jsx)(`p`,{className:`mt-3 max-w-md text-balance text-sm text-muted-foreground`,children:t.body}),(0,B.jsx)(Nt,{asChild:!0,className:`mt-8`,children:(0,B.jsx)(je,{to:n,children:t.home})})]}),(0,B.jsx)(`footer`,{className:`border-t py-8 text-center`,children:(0,B.jsx)(`p`,{className:`font-mono text-[10px] uppercase tracking-[0.14em] text-muted-foreground/60`,children:`© Pythie 2026`})})]})})}var G=typeof window<`u`?window:void 0,kg=typeof globalThis<`u`?globalThis:G;typeof self>`u`&&(kg.self=kg),typeof File>`u`&&(kg.File=function(){});var Ag=kg?.navigator,K=kg?.document,jg=kg?.location,Mg=kg?.fetch,Ng=kg!=null&&kg.XMLHttpRequest&&`withCredentials`in new kg.XMLHttpRequest?kg.XMLHttpRequest:void 0,Pg=kg?.AbortController,Fg=kg?.CompressionStream,Ig=Ag?.userAgent,q=G??{},Lg=`1.386.3`,Rg={DEBUG:!1,LIB_VERSION:Lg,LIB_NAME:`web`,JS_SDK_VERSION:Lg};function zg(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function Bg(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){zg(a,r,i,o,s,`next`,e)}function s(e){zg(a,r,i,o,s,`throw`,e)}o(void 0)}))}}function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J.apply(null,arguments)}function Vg(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Hg,Ug=function(e){return e.GZipJS=`gzip-js`,e.Base64=`base64`,e}({}),Wg=[`$snapshot`,`$pageview`,`$pageleave`,`$set`,`survey dismissed`,`survey sent`,`survey shown`,`$identify`,`$groupidentify`,`$create_alias`,`$$client_ingestion_warning`,`$web_experiment_applied`,`$feature_enrollment_update`,`$feature_flag_called`],Gg=`NativeGzipValidationError`,Kg=e=>e.length>=2&&e[0]===31&&e[1]===139,qg=e=>!(!e||typeof e!=`object`)&&(`name`in e?String(e.name):``)===`NotReadableError`,Jg=e=>{var t=Error(`Native gzip produced invalid output: `+e);throw t.name=Gg,t},Yg=function(){var e=Bg((function*(e,t){18>e.size&&Jg(`too-short`);var n=new Uint8Array(yield e.slice(0,10).arrayBuffer());Kg(n)&&n[2]===8||Jg(`invalid-header`);var r=new DataView(yield e.slice(e.size-8).arrayBuffer());r.getUint32(0,!0)!==(e=>{for(var t=(()=>{if(Hg)return Hg;Hg=[];for(var e=0;256>e;e++){for(var t=e,n=0;8>n;n++)t=1&t?3988292384^t>>>1:t>>>1;Hg[e]=t>>>0}return Hg})(),n=4294967295,r=0;e.length>r;r++)n=t[255&(n^e[r])]^n>>>8;return(4294967295^n)>>>0})(t)&&Jg(`invalid-crc`);var i=t.length>>>0;r.getUint32(4,!0)!==i&&Jg(`invalid-size`)}));return function(t,n){return e.apply(this,arguments)}}();function Xg(){return Xg=Bg((function*(e,t,n){t===void 0&&(t=!0);try{var r=new TextEncoder().encode(e),i=new CompressionStream(`gzip`),a=i.writable.getWriter(),o=a.write(r).then((()=>a.close())).catch(function(){var e=Bg((function*(e){try{yield a.abort(e)}catch{}throw e}));return function(t){return e.apply(this,arguments)}}()),s=new Response(i.readable).blob(),[c]=yield Promise.all([s,o]);return yield Yg(c,r),c}catch(e){if(n!=null&&n.rethrow)throw e;return t&&console.error(`Failed to gzip compress data`,e),null}})),Xg.apply(this,arguments)}var Zg=`amazonbot,amazonproductbot,app.hypefactors.com,applebot,archive.org_bot,awariobot,backlinksextendedbot,baiduspider,bingbot,bingpreview,chrome-lighthouse,dataforseobot,deepscan,duckduckbot,facebookexternal,facebookcatalog,http://yandex.com/bots,hubspot,ia_archiver,leikibot,linkedinbot,meta-externalagent,mj12bot,msnbot,nessus,petalbot,pinterest,prerender,rogerbot,screaming frog,sebot-wa,sitebulb,slackbot,slurp,trendictionbot,turnitin,twitterbot,vercel-screenshot,vercelbot,yahoo! slurp,yandexbot,zoombot,bot.htm,bot.php,(bot;,bot/,crawler,ahrefsbot,ahrefssiteaudit,semrushbot,siteauditbot,splitsignalbot,gptbot,oai-searchbot,chatgpt-user,perplexitybot,better uptime bot,sentryuptimebot,uptimerobot,headlesschrome,cypress,google-hoteladsverifier,adsbot-google,apis-google,duplexweb-google,feedfetcher-google,google favicon,google web preview,google-read-aloud,googlebot,googleother,google-cloudvertexbot,googleweblight,mediapartners-google,storebot-google,google-inspectiontool,bytespider`.split(`,`),Qg=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var n=e.toLowerCase();return Zg.concat(t).some((e=>{var t=e.toLowerCase();return n.indexOf(t)!==-1}))};function Y(e,t){return e.indexOf(t)!==-1}var $g=function(e){return e.trim()},e_=function(e){return e.replace(/^\$/,``)},t_=Object.prototype,n_=t_.hasOwnProperty,r_=t_.toString,X=Array.isArray||function(e){return r_.call(e)===`[object Array]`},i_=e=>typeof e==`function`,a_=e=>e===Object(e)&&!X(e),o_=e=>{if(a_(e)){for(var t in e)if(n_.call(e,t))return!1;return!0}return!1},Z=e=>e===void 0,s_=e=>r_.call(e)==`[object String]`,c_=e=>s_(e)&&e.trim().length===0,l_=e=>e===null,Q=e=>Z(e)||l_(e),u_=e=>r_.call(e)==`[object Number]`&&e==e,d_=e=>u_(e)&&e>0,f_=e=>r_.call(e)===`[object Boolean]`,p_=e=>e instanceof FormData,m_=e=>Y(Wg,e);function h_(e){return typeof e!=`object`||!e}function g_(e,t){return{}.toString.call(e)===`[object `+t+`]`}function __(e){return typeof Event<`u`&&function(e,t){try{return e instanceof t}catch{return!1}}(e,Event)}var v_=[!0,`true`,1,`1`,`yes`],y_=e=>Y(v_,e),b_=[!1,`false`,0,`0`,`no`];function x_(e,t,n,r,i){return t>n&&(r.warn(`min cannot be greater than max.`),t=n),u_(e)?e>n?(r.warn(` cannot be greater than max: `+n+`. Using max value instead.`),n):t>e?(r.warn(` cannot be less than min: `+t+`. Using min value instead.`),t):e:(r.warn(` must be a number. using max or fallback. max: `+n+`, fallback: `+i),x_(i||n,t,n,r))}
17var S_=class{constructor(e){this.$t={},this.zt=e.zt,this.Gt=x_(e.bucketSize,0,100,e.Zt),this.Qt=x_(e.refillRate,0,this.Gt,e.Zt),this.Jt=x_(e.refillInterval,0,864e5,e.Zt)}Kt(e,t){var n=Math.floor((t-e.lastAccess)/this.Jt);n>0&&(e.tokens=Math.min(e.tokens+n*this.Qt,this.Gt),e.lastAccess+=n*this.Jt)}consumeRateLimit(e){var t,n=Date.now(),r=String(e),i=this.$t[r];return i?this.Kt(i,n):this.$t[r]=i={tokens:this.Gt,lastAccess:n},i.tokens===0||(i.tokens--,i.tokens===0&&((t=this.zt)==null||t.call(this,e)),i.tokens===0)}stop(){this.$t={}}},C_,w_,T_,E_=`Mobile`,D_=`iOS`,O_=`Android`,k_=`Tablet`,A_=O_+` `+k_,j_=`iPad`,M_=`Apple`,N_=M_+` Watch`,P_=`Safari`,F_=`BlackBerry`,I_=`Samsung`,L_=I_+`Browser`,R_=I_+` Internet`,z_=`Chrome`,B_=z_+` OS`,V_=z_+` `+D_,H_=`Internet Explorer`,U_=H_+` `+E_,W_=`Opera`,G_=W_+` Mini`,K_=`Edge`,q_=`Microsoft `+K_,J_=`Firefox`,Y_=J_+` `+D_,X_=`Nintendo`,Z_=`PlayStation`,Q_=`Xbox`,$_=O_+` `+E_,ev=E_+` `+P_,tv=`Windows`,nv=tv+` Phone`,rv=`Nokia`,iv=`Ouya`,av=`Generic`,ov=av+` `+E_.toLowerCase(),sv=av+` `+k_.toLowerCase(),cv=`Konqueror`,lv=`Oculus Browser`,uv=`Vivaldi`,dv=`Yandex`,fv=`Whale`,pv=`DuckDuckGo`,mv=`Pale Moon`,hv=`Waterfox`,gv=`Brave`,_v=`Google Search App`,vv=`(\\d+(\\.\\d+)?)`,yv=RegExp(`Version/`+vv),bv=new RegExp(Q_,`i`),xv=RegExp(Z_+` \\w+`,`i`),Sv=RegExp(X_+` \\w+`,`i`),Cv=RegExp(F_+`|PlayBook|BB10`,`i`),wv={"NT3.51":`NT 3.11`,"NT4.0":`NT 4.0`,"5.0":`2000`,5.1:`XP`,5.2:`XP`,"6.0":`Vista`,6.1:`7`,6.2:`8`,6.3:`8.1`,6.4:`10`,"10.0":`10`},Tv=function(e,t,n,r){return t||=``,function(e){return e!=null&&e.brave?gv:null}(n)||(r!=null&&r.detectGoogleSearchApp&&Y(e,`GSA/`)?_v:Y(e,` OPR/`)&&Y(e,`Mini`)?G_:Y(e,` OPR/`)?W_:Cv.test(e)?F_:Y(e,`IE`+E_)||Y(e,`WPDesktop`)?U_:Y(e,`OculusBrowser`)?lv:Y(e,L_)?R_:Y(e,K_)||Y(e,`Edg/`)?q_:Y(e,uv+`/`)?uv:Y(e,`YaBrowser/`)?dv:Y(e,fv+`/`)?fv:Y(e,pv+`/`)||Y(e,`Ddg/`)?pv:Y(e,`FBIOS`)?`Facebook `+E_:Y(e,`UCWEB`)||Y(e,`UCBrowser`)?`UC Browser`:Y(e,`CriOS`)?V_:Y(e,`CrMo`)||Y(e,z_)?z_:Y(e,O_)&&Y(e,P_)?$_:Y(e,`FxiOS`)?Y_:Y(e.toLowerCase(),cv.toLowerCase())?cv:Y(e,gv+`/`)?gv:((e,t)=>t&&Y(t,M_)||function(e){return Y(e,P_)&&!Y(e,z_)&&!Y(e,O_)}(e))(e,t)?Y(e,E_)?ev:P_:Y(e,`PaleMoon/`)?mv:Y(e,hv+`/`)?hv:Y(e,J_)?J_:Y(e,`MSIE`)||Y(e,`Trident/`)?H_:Y(e,`Gecko`)?J_:``)},Ev={[U_]:[RegExp(`rv:`+vv)],[q_]:[RegExp(K_+`?\\/`+vv)],[z_]:[RegExp(`(`+z_+`|CrMo)\\/`+vv)],[V_]:[RegExp(`CriOS\\/`+vv)],"UC Browser":[RegExp(`(UCBrowser|UCWEB)\\/`+vv)],[P_]:[yv],[ev]:[yv],[W_]:[RegExp(`(Opera|OPR)\\/`+vv)],[J_]:[RegExp(J_+`\\/`+vv)],[Y_]:[RegExp(`FxiOS\\/`+vv)],[cv]:[RegExp(`Konqueror[:/]?`+vv,`i`)],[F_]:[RegExp(F_+` `+vv),yv],[$_]:[RegExp(`android\\s`+vv,`i`)],[R_]:[RegExp(L_+`\\/`+vv)],[lv]:[RegExp(`OculusBrowser\\/`+vv)],[uv]:[RegExp(uv+`\\/`+vv)],[dv]:[RegExp(`YaBrowser\\/`+vv)],[fv]:[RegExp(fv+`\\/`+vv)],[gv]:[RegExp(gv+`\\/`+vv)],[pv]:[RegExp(`(DuckDuckGo|Ddg)\\/`+vv)],[mv]:[RegExp(`PaleMoon\\/`+vv)],[hv]:[RegExp(hv+`\\/`+vv)],[_v]:[RegExp(`GSA\\/`+vv)],[H_]:[RegExp(`(rv:|MSIE )`+vv)],Mozilla:[RegExp(`rv:`+vv)]},Dv=function(e,t,n,r){var i=Ev[Tv(e,t,n,r)];if(Z(i))return null;for(var a=0;i.length>a;a++){var o=e.match(i[a]);if(o)return parseFloat(o[o.length-2])}return null},Ov=[[RegExp(Q_+`; `+Q_+` (.*?)[);]`,`i`),e=>[Q_,e&&e[1]||``]],[new RegExp(X_,`i`),[X_,``]],[new RegExp(Z_,`i`),[Z_,``]],[Cv,[F_,``]],[new RegExp(tv,`i`),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[nv,``];if(new RegExp(E_).test(t)&&!/IEMobile\b/.test(t))return[tv+` `+E_,``];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=wv[n[1]]||``;return/arm/i.test(t)&&(r=`RT`),[tv,r]}return[tv,``]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[D_,[e[3],e[4],e[5]||`0`].join(`.`)]:[D_,``]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t=``;return e&&e.length>=3&&(t=Z(e[2])?e[3]:e[2]),[`watchOS`,t]}],[RegExp(`(`+O_+` (\\d+)\\.(\\d+)\\.?(\\d+)?|`+O_+`)`,`i`),e=>e&&e[2]?[O_,[e[2],e[3],e[4]||`0`].join(`.`)]:[O_,``]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=[`Mac OS X`,``];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||`0`].join(`.`)),t}],[/Mac/i,[`Mac OS X`,``]],[/CrOS/,[B_,``]],[/Linux|debian/i,[`Linux`,``]]],kv=function(e){return Sv.test(e)?X_:xv.test(e)?Z_:bv.test(e)?Q_:new RegExp(iv,`i`).test(e)?iv:RegExp(`(`+nv+`|WPDesktop)`,`i`).test(e)?nv:/iPad/.test(e)?j_:/iPod/.test(e)?`iPod Touch`:/iPhone/.test(e)?`iPhone`:/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?N_:Cv.test(e)?F_:/(kobo)\s(ereader|touch)/i.test(e)?`Kobo`:new RegExp(rv,`i`).test(e)?rv:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?`Kindle Fire`:/(Android|ZTE)/i.test(e)?new RegExp(E_).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?O_:A_:RegExp(`(pda|`+E_+`)`,`i`).test(e)?ov:new RegExp(k_,`i`).test(e)&&!RegExp(k_+` pc`,`i`).test(e)?sv:``},Av=e=>e instanceof Error,jv={trace:{text:`TRACE`,number:1},debug:{text:`DEBUG`,number:5},info:{text:`INFO`,number:9},warn:{text:`WARN`,number:13},error:{text:`ERROR`,number:17},fatal:{text:`FATAL`,number:21}},Mv=jv.info;function Nv(e){if(f_(e))return{boolValue:e};if(typeof e==`number`)return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e==`string`)return{stringValue:e};if(X(e))return{arrayValue:{values:e.map((e=>Nv(e)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function Pv(e){var t=[];for(var n in e){var r=e[n];l_(r)||Z(r)||t.push({key:n,value:Nv(r)})}return t}function Fv(e){var t=globalThis._posthogChunkIds;if(t){var n=Object.keys(t);return T_&&n.length===w_||(w_=n.length,T_=n.reduce(((n,r)=>{C_||={};var i=C_[r];if(i)n[i[0]]=i[1];else for(var a=e(r),o=a.length-1;o>=0;o--){var s=a[o]?.filename,c=t[r];
17if(s&&c){n[s]=c,C_[r]=[s,c];break}}return n}),{})),T_}}var Iv=class{constructor(e,t,n){n===void 0&&(n=[]),this.coercers=e,this.stackParser=t,this.modifiers=n}buildFromUnknown(e,t){t===void 0&&(t={});var n=t&&t.mechanism||{handled:!0,type:`generic`},r=this.buildCoercingContext(n,t,0).apply(e),i=this.buildParsingContext(t),a=this.parseStacktrace(r,i);return{$exception_list:this.convertToExceptionList(a,n),$exception_level:`error`}}modifyFrames(e){var t=this;return Bg((function*(){for(var n of e)n.stacktrace&&n.stacktrace.frames&&X(n.stacktrace.frames)&&(n.stacktrace.frames=yield t.applyModifiers(n.stacktrace.frames));return e}))()}coerceFallback(e){return{type:`Error`,value:`Unknown error`,stack:e.syntheticException?.stack,synthetic:!0}}parseStacktrace(e,t){var n,r;return e.cause!=null&&(n=this.parseStacktrace(e.cause,t)),e.stack!=``&&e.stack!=null&&(r=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?t.skipFirstLines:0),t.chunkIdMap)),J({},e,{cause:n,stack:r})}applyChunkIds(e,t){return e.map((e=>(e.filename&&t&&(e.chunk_id=t[e.filename]),e)))}applyCoercers(e,t){for(var n of this.coercers)if(n.match(e))return n.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return Bg((function*(){var n=e;for(var r of t.modifiers)n=yield r(n);return n}))()}convertToExceptionList(e,t){var n,r,i={type:e.type,value:e.value,mechanism:{type:t.type??`generic`,handled:(n=t.handled)==null||n,synthetic:(r=e.synthetic)!=null&&r}};e.stack&&(i.stacktrace={type:`raw`,frames:e.stack});var a=[i];return e.cause!=null&&a.push(...this.convertToExceptionList(e.cause,J({},t,{handled:!0}))),a}buildParsingContext(e){return{chunkIdMap:Fv(this.stackParser),skipFirstLines:e.skipFirstLines??1}}buildCoercingContext(e,t,n){n===void 0&&(n=0);var r=(n,r)=>{if(4>=r){var i=this.buildCoercingContext(e,t,r);return this.applyCoercers(n,i)}};return J({},t,{syntheticException:n==0?t.syntheticException:void 0,mechanism:e,apply:e=>r(e,n),next:e=>r(e,n+1)})}},Lv=`?`;function Rv(e,t,n,r,i){var a={platform:e,filename:t,function:n===`<anonymous>`?Lv:n,in_app:!0};return Z(r)||(a.lineno=r),Z(i)||(a.colno=i),a}var zv=(e,t)=>{var n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?Lv:e.split(`@`)[0],n?`safari-extension:`+t:`safari-web-extension:`+t]:[e,t]},Bv=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Vv=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Hv=/\((\S*)(?::(\d+))(?::(\d+))\)/,Uv=(e,t)=>{var n=Bv.exec(e);if(n){var[,r,i,a]=n;return Rv(t,r,Lv,+i,+a)}var o=Vv.exec(e);if(o){if(o[2]&&o[2].indexOf(`eval`)===0){var s=Hv.exec(o[2]);s&&(o[2]=s[1],o[3]=s[2],o[4]=s[3])}var[c,l]=zv(o[1]||Lv,o[2]);return Rv(t,l,c,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},Wv=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Gv=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Kv=(e,t)=>{var n=Wv.exec(e);if(n){if(n[3]&&n[3].indexOf(` > eval`)>-1){var r=Gv.exec(n[3]);r&&(n[1]=n[1]||`eval`,n[3]=r[1],n[4]=r[2],n[5]=``)}var i=n[3],a=n[1]||Lv;return[a,i]=zv(a,i),Rv(t,i,a,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},qv=/\(error: (.*)\)/,Jv=class{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var n=s_(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:n?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?`DOMError`:`DOMException`}getValue(e){var t=e.name||(this.isDOMError(e)?`DOMError`:`DOMException`);return e.message?t+`: `+e.message:t}isDOMException(e){return g_(e,`DOMException`)}isDOMError(e){return g_(e,`DOMError`)}},Yv=class{match(e){return(e=>e instanceof Error)(e)}coerce(e,t){return{type:this.getType(e),value:this.getMessage(e,t),stack:this.getStack(e),cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,t){var n=e.message;return String(n.error&&typeof n.error.message==`string`?n.error.message:n)}getStack(e){return e.stacktrace||e.stack||void 0}},Xv=class{constructor(){}match(e){return g_(e,`ErrorEvent`)&&e.error!=null}coerce(e,t){return t.apply(e.error)||{type:`ErrorEvent`,value:e.message,stack:t.syntheticException?.stack,synthetic:!0}}},Zv=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,Qv=class{match(e){return typeof e==`string`}coerce(e,t){var[n,r]=this.getInfos(e);return{type:n??`Error`,value:r??e,stack:t.syntheticException?.stack,synthetic:!0}}getInfos(e){var t=`Error`,n=e,r=e.match(Zv);return r&&(t=r[1],n=r[2]),[t,n]}},$v=[`fatal`,`error`,`warning`,`log`,`info`,`debug`];
17function ey(e,t){t===void 0&&(t=40);var n=Object.keys(e);if(n.sort(),!n.length)return`[object has no keys]`;for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(`, `);if(t>=i.length)return r===n.length?i:i.length>t?i.slice(0,t)+`...`:i}return``}var ty=class{match(e){return typeof e==`object`&&!!e}coerce(e,t){var n=this.getErrorPropertyFromObject(e);return n?t.apply(n):{type:this.getType(e),value:this.getValue(e),stack:t.syntheticException?.stack,level:this.isSeverityLevel(e.level)?e.level:`error`,synthetic:!0}}getType(e){return __(e)?e.constructor.name:`Error`}getValue(e){if(`name`in e&&typeof e.name==`string`){var t=`'`+e.name+`' captured as exception`;return`message`in e&&typeof e.message==`string`&&(t+=` with message: '`+e.message+`'`),t}if(`message`in e&&typeof e.message==`string`)return e.message;var n=this.getObjectClassName(e);return(n&&n!==`Object`?`'`+n+`'`:`Object`)+` captured as exception with keys: `+ey(e)}isSeverityLevel(e){return s_(e)&&!c_(e)&&$v.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if({}.hasOwnProperty.call(e,t)){var n=e[t];if(Av(n))return n}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{return}}},ny=class{match(e){return __(e)}coerce(e,t){var n=e.constructor.name;return{type:n,value:n+` captured as exception with keys: `+ey(e),stack:t.syntheticException?.stack,synthetic:!0}}},ry=class{match(e){return h_(e)}coerce(e,t){return{type:`Error`,value:`Primitive value captured as exception: `+String(e),stack:t.syntheticException?.stack,synthetic:!0}}},iy=class{match(e){return g_(e,`PromiseRejectionEvent`)||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!__(e))return!1;try{var t=e.detail;return typeof t==`object`&&!!t&&`reason`in t}catch{return!1}}coerce(e,t){var n=this.getUnhandledRejectionReason(e);return h_(n)?{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: `+String(n),stack:t.syntheticException?.stack,synthetic:!0}:t.apply(n)}getUnhandledRejectionReason(e){try{if(`reason`in e)return e.reason;if(`detail`in e&&e.detail!=null&&typeof e.detail==`object`&&`reason`in e.detail)return e.detail.reason}catch{}return e}},ay=`$message`,oy=`$timestamp`,sy=new Set([ay,oy]),cy={enabled:!0,max_bytes:32768};function ly(e){return e?{enabled:e.enabled??cy.enabled,max_bytes:dy(e.max_bytes,cy.max_bytes)}:J({},cy)}var uy=class{constructor(e){this.Yt=[],this.Xt=0,this.qt=ly(e)}setConfig(e){this.qt=ly(e),this.er()}add(e){var t=function(e){var t=function(e){var t=new WeakSet;try{return JSON.stringify(e,((e,n)=>{if(typeof n==`bigint`)return n.toString();if(typeof n!=`function`&&typeof n!=`symbol`){if(n instanceof Date)return n.toISOString();if(n instanceof Error)return{name:n.name,message:n.message,stack:n.stack};if(n&&typeof n==`object`){if(t.has(n))return`[Circular]`;t.add(n)}return n}}))}catch{return}}(e);if(t)try{var n=JSON.parse(t);if(!a_(n))return;var r=n,i=r[ay],a=r[oy];return!s_(i)||i.trim().length===0||!s_(a)&&!u_(a)?void 0:{step:r,json:t}}catch{return}}(e);if(t){var n=function(e){if(typeof TextEncoder<`u`)return new TextEncoder().encode(e).length;for(var t=encodeURIComponent(e),n=0,r=0;t.length>r;r++)t[r]===`%`?(n+=1,r+=2):n+=1;return n}(t.json);n>this.qt.max_bytes||(this.Yt.push({step:t.step,bytes:n}),this.Xt+=n,this.er())}}getAttachable(){return this.Yt.map((e=>e.step))}clear(){this.Yt=[],this.Xt=0}size(){return this.Yt.length}er(){for(;this.Xt>this.qt.max_bytes&&this.Yt.length>0;){var e=this.Yt.shift();e&&(this.Xt-=e.bytes)}}};function dy(e,t){if(!u_(e)||e===1/0||e===-1/0)return t;var n=Math.floor(e);return 0>n?t:n}var fy=function(e,t){var{debugEnabled:n}=t===void 0?{}:t,r={k(t){if(G&&(Rg.DEBUG||q.POSTHOG_DEBUG||n)&&!Z(G.console)&&G.console){for(var r=(`__rrweb_original__`in G.console[t])?G.console[t].__rrweb_original__:G.console[t],i=arguments.length,a=Array(i>1?i-1:0),o=1;i>o;o++)a[o-1]=arguments[o];r(e,...a)}},debug(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];r.k(`debug`,...t)},info(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];r.k(`log`,...t)},warn(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];r.k(`warn`,...t)},error(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];r.k(`error`,...t)},critical(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];console.error(e,...n)},uninitializedWarning(e){r.error(`You must initialize PostHog before calling `+e)},createLogger:(t,n)=>fy(e+` `+t,n)};return r},$=fy(`[PostHog.js]`),py=$.createLogger,my=py(`[ExternalScriptsLoader]`),hy=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return my.warn(t+` was requested but loading of external scripts is disabled.`),n(`Loa
17ding of external scripts is disabled`);var r=K?.querySelectorAll(`script`);if(r){for(var i,a=function(){if(r[o].src===t){var e=r[o];return e.__posthog_loading_callback_fired?{v:n()}:(e.addEventListener(`load`,(t=>{e.__posthog_loading_callback_fired=!0,n(void 0,t)})),e.onerror=e=>n(e),{v:void 0})}},o=0;r.length>o;o++)if(i=a())return i.v}var s=()=>{if(!K)return n(`document not found`);var r=K.createElement(`script`);if(r.type=`text/javascript`,r.crossOrigin=`anonymous`,r.src=t,r.onload=e=>{r.__posthog_loading_callback_fired=!0,n(void 0,e)},r.onerror=e=>n(e),e.config.prepare_external_dependency_script&&(r=e.config.prepare_external_dependency_script(r)),!r)return n(`prepare_external_dependency_script returned null`);if(e.config.external_scripts_inject_target===`head`)K.head.appendChild(r);else{var i,a=K.querySelectorAll(`body > script`);a.length>0?(i=a[0].parentNode)==null||i.insertBefore(r,a[0]):K.body.appendChild(r)}};K!=null&&K.body?s():K?.addEventListener(`DOMContentLoaded`,s)};q.__PosthogExtensions__=q.__PosthogExtensions__||{},q.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{if(t!==`remote-config`){var r;if(e.config.strict_script_versioning)r=e.requestRouter.endpointFor(`assets`,`/static/`+e.version+`/`+t+`.js`);else{var i=`/static/`+t+`.js?v=`+e.version;if(t===`toolbar`){var a=3e5;i=i+`&t=`+Math.floor(Date.now()/a)*a}r=e.requestRouter.endpointFor(`assets`,i)}hy(e,r,n)}else hy(e,e.requestRouter.endpointFor(`assets`,`/array/`+e.config.token+`/config.js`),n)},q.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{hy(e,e.requestRouter.endpointFor(`api`,t),n)};var gy=`$people_distinct_id`,_y=`$device_id`,vy=`__alias`,yy=`__timers`,by=`$autocapture_disabled_server_side`,xy=`$heatmaps_enabled_server_side`,Sy=`$exception_capture_enabled_server_side`,Cy=`$error_tracking_suppression_rules`,wy=`$error_tracking_capture_extension_exceptions`,Ty=`$web_vitals_enabled_server_side`,Ey=`$dead_clicks_enabled_server_side`,Dy=`$product_tours_enabled_server_side`,Oy=`$web_vitals_allowed_metrics`,ky=`$session_recording_remote_config`,Ay=`$replay_sample_rate`,jy=`$replay_override_sampling`,My=`$replay_override_linked_flag`,Ny=`$replay_override_url_trigger`,Py=`$replay_override_event_trigger`,Fy=`$sesid`,Iy=`$session_is_sampled`,Ly=`$enabled_feature_flags`,Ry=`$active_feature_flags`,zy=`$early_access_features`,By=`$feature_flag_details`,Vy=`$feature_flag_payloads`,Hy=`$feature_flag_request_id`,Uy=`$override_feature_flags`,Wy=`$override_feature_flag_payloads`,Gy=`$stored_person_properties`,Ky=`$stored_group_properties`,qy=`$surveys`,Jy=`$surveys_loaded_at`,Yy=`$surveys_activated`,Xy=`ph_product_tours`,Zy=`$flag_call_reported`,Qy=`$flag_call_reported_session_id`,$y=`$feature_flag_errors`,eb=`$feature_flag_evaluated_at`,tb=`$user_state`,nb=`$client_session_props`,rb=`$capture_rate_limit`,ib=`$initial_campaign_params`,ab=`$initial_referrer_info`,ob=`$initial_person_info`,sb=`$epp`,cb=`__POSTHOG_TOOLBAR__`,lb=`$posthog_cookieless`,ub=`$sdk_debug_extensions_init_method`,db=`$sdk_debug_extensions_init_time_ms`,fb=`$sdk_debug_recording_script_not_loaded`,pb=`PostHog loadExternalDependency extension not found.`,mb=`on_reject`,hb=`always`,gb=`anonymous`,_b=`identified`,vb=`identified_only`,yb=`visibilitychange`,bb=`beforeunload`,xb=`$pageview`,Sb=`$pageleave`,Cb=`$identify`,wb=`$groupidentify`;function Tb(e,t){X(e)&&e.forEach(t)}function Eb(e,t){if(!Q(e))if(X(e))e.forEach(t);else if(p_(e))e.forEach(((e,n)=>t(e,n)));else for(var n in e)n_.call(e,n)&&t(e[n],n)}var Db=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];for(var i of n)for(var a in i)i[a]!==void 0&&(e[a]=i[a]);return e};function Ob(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}var kb=function(e){try{return e()}catch{return}},Ab=function(e){return function(){try{for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return e.apply(this,n)}catch(e){$.critical(`Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A.`),$.critical(e)}}},jb=function(e){var t={};return Eb(e,(function(e,n){(s_(e)&&e.length>0||u_(e))&&(t[n]=e)})),t},Mb=[`herokuapp.com`,`vercel.app`,`netlify.app`];function Nb(e){var t=e?.hostname;if(!s_(t))return!1;var n=t.split(`.`).slice(-2).join(`.`);for(var r of Mb)if(n===r)return!1;return!0}function Pb(e,t,n,r){var{capture:i=!1,passive:a=!0}=r??{};e?.addEventListener(t,n,{capture:i,passive:a})}function Fb(e){return e.name===`ph_toolbar_internal`}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return u_(e)&&isFinite(e)&&Math.floor(e)===e});var Ib=class e{constructor(e){if(this.bytes=e,e.length!==16)throw TypeError(`not 128-bit length`)}static fromFieldsV7(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||0>t||0>n||0>r||0>i||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw RangeError(`invalid field value`);var a=new Uint8Array(16);return a[0]=t/2**40,a[1]=t/2**32,a[2]=t/2**24,a[3]=t/2**16,a[4]=t/2**8,a[5]=t,a[6]=112|n>>>8,a[7]=n,a[8]=128|r>>>24,a[9]=r>>>16,a[10]=r>>>8,a[11]=r,a[12]=i>>>24,a[13]=i>>>16,a[14]=i>>>8,a[15]=i,new e(a)}toString(){for(var e=``,t=0;this.bytes.length>t;t++)e=e+(this.bytes[t]>>>4).toString(16)+(15&this.bytes[t]).toString(16),t!==3&&t!==5&&t!==7&&t!==9||(e+=`-`);
17if(e.length!==36)throw Error(`Invalid UUIDv7 was generated`);return e}clone(){return new e(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var t=0;16>t;t++){var n=this.bytes[t]-e.bytes[t];if(n!==0)return Math.sign(n)}return 0}},Lb=class{constructor(){this.S=0,this.C=0,this.I=new Bb}generate(){var e=this.generateOrAbort();if(Z(e)){this.S=0;var t=this.generateOrAbort();if(Z(t))throw Error(`Could not generate UUID after timestamp reset`);return t}return e}generateOrAbort(){var e=Date.now();if(e>this.S)this.S=e,this.T();else{if(this.S>=e+1e4)return;this.C++,this.C>4398046511103&&(this.S++,this.T())}return Ib.fromFieldsV7(this.S,Math.trunc(this.C/2**30),this.C&2**30-1,this.I.nextUint32())}T(){this.C=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}},Rb,zb=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<`u`&&UUIDV7_DENY_WEAK_RNG)throw Error(`no cryptographically strong RNG available`);for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};G&&!Z(G.crypto)&&crypto.getRandomValues&&(zb=e=>crypto.getRandomValues(e));var Bb=class{constructor(){this.M=new Uint32Array(8),this.R=1/0}nextUint32(){return this.M.length>this.R||(zb(this.M),this.R=0),this.M[this.R++]}},Vb=()=>Hb().toString(),Hb=()=>(Rb||=new Lb).generate(),Ub=``,Wb=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Gb={O:()=>!!K,D(e){$.error(`cookieStore error: `+e)},A(e){if(K){try{for(var t=e+`=`,n=K.cookie.split(`;`).filter((e=>e.length)),r=0;n.length>r;r++){for(var i=n[r];i.charAt(0)==` `;)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}}catch{}return null}},F(e){var t;try{t=JSON.parse(Gb.A(e))||{}}catch{}return t},N(e,t,n,r,i){if(!K)return!1;try{var a=``,o=``,s=function(e,t){if(t){var n=function(e,t){if(t===void 0&&(t=K),Ub)return Ub;if(!t||[`localhost`,`127.0.0.1`].includes(e))return``;for(var n=e.split(`.`),r=Math.min(n.length,8),i=`dmn_chk_`+Vb();!Ub&&r--;){var a=n.slice(r).join(`.`),o=i+`=1;domain=.`+a+`;path=/`;t.cookie=o+`;max-age=3`,t.cookie.includes(i)&&(t.cookie=o+`;max-age=0`,Ub=a)}return Ub}(e);if(!n){var r=(e=>{var t=e.match(Wb);return t?t[0]:``})(e);r!==n&&$.info(`Warning: cookie subdomain discovery mismatch`,r,n),n=r}return n?`; domain=.`+n:``}return``}(K.location.hostname,r);if(n){var c=new Date;c.setTime(c.getTime()+864e5*n),a=`; expires=`+c.toUTCString()}i&&(o=`; secure`);var l=e+`=`+encodeURIComponent(JSON.stringify(t))+a+`; SameSite=Lax; path=/`+s+o;return l.length>3686.4&&$.warn(`cookieStore warning: large cookie, len=`+l.length),K.cookie=l,!0}catch{return!1}},q(e,t){if(K!=null&&K.cookie)try{Gb.N(e,``,-1,t)}catch{return}}},Kb=null,qb={O(){if(!l_(Kb))return Kb;var e=!0;if(Z(G))e=!1;else try{var t=`__mplssupport__`;qb.N(t,`xyz`),qb.A(t)!==`"xyz"`&&(e=!1),qb.q(t)}catch{e=!1}return e||$.error(`localStorage unsupported; falling back to cookie store`),Kb=e,e},D(e){$.error(`localStorage error: `+e)},A(e){try{return G?.localStorage.getItem(e)}catch(e){qb.D(e)}return null},F(e){try{return JSON.parse(qb.A(e))||{}}catch{}return null},N(e,t){try{return G?.localStorage.setItem(e,JSON.stringify(t)),!0}catch(e){qb.D(e)}return!1},q(e){try{G?.localStorage.removeItem(e)}catch(e){qb.D(e)}}},Jb=[_y,`distinct_id`,Fy,Iy,sb,ob,tb],Yb={},Xb={O:()=>!0,D(e){$.error(`memoryStorage error: `+e)},A:e=>Yb[e]||null,F:e=>Yb[e]||null,N:(e,t)=>(Yb[e]=t,!0),q(e){delete Yb[e]}},Zb=null,Qb={O(){if(!l_(Zb))return Zb;if(Zb=!0,Z(G))Zb=!1;else try{var e=`__support__`;Qb.N(e,`xyz`),Qb.A(e)!==`"xyz"`&&(Zb=!1),Qb.q(e)}catch{Zb=!1}return Zb},D(e){$.error(`sessionStorage error: `,e)},A(e){try{return G?.sessionStorage.getItem(e)}catch(e){Qb.D(e)}return null},F(e){try{return JSON.parse(Qb.A(e))||null}catch{}return null},N(e,t){try{return G?.sessionStorage.setItem(e,JSON.stringify(t)),!0}catch(e){Qb.D(e)}return!1},q(e){try{G?.sessionStorage.removeItem(e)}catch(e){Qb.D(e)}}},$b=class{constructor(e){this._instance=e}get qt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.qt.cookieless_mode===hb||this.isRejected()||this.consent===-1&&this.qt.cookieless_mode===mb}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.qt.opt_out_capturing_by_default}optInOut(e){this.nr.N(this.sr,+!!e,this.qt.cookie_expiration,this.qt.cross_subdomain_cookie,this.qt.secure_cookie)}reset(){this.nr.q(this.sr,this.qt.cross_subdomain_cookie)}get sr(){var{token:e,opt_out_capturing_cookie_prefix:t,consent_persistence_name:n}=this._instance.config;return n||(t?t+e:`__ph_opt_in_out_`+e)}get ir(){var e=this.nr.A(this.sr);return y_(e)?1:Y(b_,e)?0:-1}get nr(){var e=this.qt.opt_out_capturing_persistence_type,t=e===`localStorage`?qb:Gb;if(!this.ar||this.ar!==t){this.ar=t;var n=e===`localStorage`?Gb:qb;n.A(this.sr)&&(this.ar.A(this.sr)||this.optInOut(y_(n.A(this.sr))),n.q(this.sr,this.qt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.qt.respect_dnt&&[Ag?.doNotTrack,Ag?.msDoNotTrack,q.doNotTrack].some((e=>y_(e)))}},ex=1,tx=3,nx=11;function rx(e){return e instanceof Element&&(e.id===cb||!(e.closest==null||!e.closest(`.toolbar-global-fade-container`)))}function ix(e){return!!e&&e.nodeType===ex}function ax(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function ox(e){return!!e&&e.nodeType===tx}function sx(e){return!!e&&e.nodeType===nx&&ix(e.host)}function cx(e){return e?$g(e).split(/\s+/):[]}function lx(e){var t=G?.location.href;return!!(t&&e&&e.some((e=>t.match(e))))}function ux(e){var t=``;switch(typeof e.className){case`string`:t=e.className;break;case`object`:t=(e.className&&`baseVal`in e.className?e.className.baseVal:null)||e.getAttribute(`class`)||``;break;default:t=``}return cx(t)}function dx(e){return Q(e)?null:$g(e).split(/(\s+)/).filter((e=>Nx(e))).join(``).replace(/[\r\n]/g,` `).replace(/[ ]+/g,` `).substring(0,255)}function fx(e){var t=``;return Tx(e)&&!Ex(e)&&e.childNodes&&e.childNodes.length&&Eb(e.childNodes,(function(e){ox(e)&&e.textContent&&(t+=dx(e.textContent)??``)})),$g(t)}function px(e){return Z(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var mx=[`a`,`button`,`form`,`input`,`select`,`textarea`,`label`];function hx(e,t){if(Z(t))return!0;var n,r=function(e){if(t.some((t=>e.matches(t))))return{v:!0}};for(var i of e)if(n=r(i))return n.v;return!1}function gx(e){var t=e.parentNode;return!(!t||!ix(t))&&t}var _x=[`next`,`previous`,`prev`,`>`,`<`],vx=[..._x,`+`,`-`,`â`,`â`],yx=(e,t)=>/[a-z0-9]/i.test(t)?e.includes(t):e===t,bx=[`.ph-no-rageclick`,`.ph-no-capture`],xx=[``,`text`,`search`,`email`,`password`,`url`,`tel`,`number`];function Sx(e,t){if(!G||Cx(e))return!1;var n,r,i,a;if(f_(t)?(n=!!t&&bx,r=void 0,i=!1):(n=t?.css_selector_ignorelist??bx,r=t?.content_ignorelist,i=(a=t?.ignore_text_selection)!=null&&a),!1===n||i&&function(e){return!(!e||!ix(e))&&(!!ax(e,`textarea`)||(ax(e,`input`)?Y(xx,(e.getAttribute(`type`)||``).toLowerCase()):function(e){if(e.isContentEditable)return!0;var t=e.getAttribute==null?void 0:e.getAttribute(`contenteditable`);return t===`true`||t===``}(e)))}(e))return!1;var{targetElementList:o}=wx(e,!1);return!function(e,t){if(!1===e||Z(e))return!1;var n;if(!0===e)n=_x;else{if(!X(e))return!1;if(e.length>10)return $.error(`[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching.`),!1;n=e.map((e=>e.toLowerCase()))}return t.some((e=>{var{safeText:t,ariaLabel:r}=e;return n.some((e=>yx(t,e)||yx(r,e)))}))}(r,o.map((e=>({safeText:fx(e).toLowerCase(),ariaLabel:e.getAttribute(`aria-label`)?.toLowerCase().trim()||``}))))&&!hx(o,n)}var Cx=e=>!e||ax(e,`html`)||!ix(e),wx=(e,t)=>{if(!G||Cx(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[e],i=e;i.parentNode&&!ax(i,`body`);)if(sx(i.parentNode))r.push(i.parentNode.host),i=i.parentNode.host;else{var a=gx(i);if(!a)break;if(t||mx.indexOf(a.tagName.toLowerCase())>-1)n=!0;else{var o=G.getComputedStyle(a);o&&o.getPropertyValue(`cursor`)===`pointer`&&(n=!0)}r.push(a),i=a}return{parentIsUsefulElement:n,targetElementList:r}};function Tx(e){for(var t=e;t.parentNode&&!ax(t,`body`);t=t.parentNode){var n=ux(t);if(Y(n,`ph-sensitive`)||Y(n,`ph-no-capture`))return!1}if(Y(ux(e),`ph-include`))return!0;var r=e.type||``;if(s_(r))switch(r.toLowerCase()){case`hidden`:case`password`:return!1}
17var i=e.name||e.id||``;return!s_(i)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,``))}function Ex(e){return!!(ax(e,`input`)&&![`button`,`checkbox`,`submit`,`reset`].includes(e.type)||ax(e,`select`)||ax(e,`textarea`)||e.getAttribute(`contenteditable`)===`true`)}var Dx=`(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})`,Ox=RegExp(`^(?:`+Dx+`)$`),kx=new RegExp(Dx),Ax=`\\d{3}-?\\d{2}-?\\d{4}`,jx=RegExp(`^(`+Ax+`)$`),Mx=RegExp(`(`+Ax+`)`);function Nx(e,t){return t===void 0&&(t=!0),!(Q(e)||s_(e)&&(e=$g(e),(t?Ox:kx).test((e||``).replace(/[- ]/g,``))||(t?jx:Mx).test(e)))}function Px(e){var t=fx(e);return Nx(t=(t+` `+Fx(e)).trim())?t:``}function Fx(e){var t=``;return e&&e.childNodes&&e.childNodes.length&&Eb(e.childNodes,(function(e){if(e&&e.tagName?.toLowerCase()===`span`)try{var n=fx(e);t=(t+` `+n).trim(),e.childNodes&&e.childNodes.length&&(t=(t+` `+Fx(e)).trim())}catch(e){$.error(`[AutoCapture]`,e)}})),t}function Ix(e){return e.replace(/"|\\"/g,`\\"`)}function Lx(e){var t=e.attr__class;return t?X(t)?t:cx(t):void 0}var Rx=py(`[Dead Clicks]`),zx=()=>!0,Bx=e=>{var t,n=!((t=e.instance.persistence)==null||!t.get_property(Ey)),r=e.instance.config.capture_dead_clicks;return f_(r)?r:!!a_(r)||n},Vx=class{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(e,t,n){this.instance=e,this.isEnabled=t,this.onCapture=n,this.startIfEnabledOrStop()}onRemoteConfig(e){`captureDeadClicks`in e&&(this.instance.persistence&&this.instance.persistence.register({[Ey]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(e){var t,n;(t=q.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture&&e(),(n=q.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,`dead-clicks-autocapture`,(t=>{t?Rx.error(`failed to load script`,t):e()}))}hr(){var e;if(K){if(!this.lr&&(e=q.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var t=a_(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.lr=q.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.lr.start(K),Rx.info(`starting...`)}}else Rx.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,Rx.info(`stopping...`))}},Hx=py(`[SegmentIntegration]`),Ux=`posthog-js`;function Wx(e,t){var{organization:n,projectId:r,prefix:i,severityAllowList:a=[`error`],sendExceptionsToPostHog:o=!0}=t===void 0?{}:t;return t=>{if(a!==`*`&&!a.includes(t.level)||!e.__loaded)return t;t.tags||={};var s=e.requestRouter.endpointFor(`ui`,`/project/`+e.config.token+`/person/`+e.get_distinct_id());t.tags[`PostHog Person URL`]=s,e.sessionRecordingStarted()&&(t.tags[`PostHog Recording URL`]=e.get_session_replay_url({withTimestamp:!0}));var c,l=t.exception?.values||[],u=l.map((e=>J({},e,{stacktrace:e.stacktrace?J({},e.stacktrace,{type:`raw`,frames:(e.stacktrace.frames||[]).map((e=>J({},e,{platform:`web:javascript`})))}):void 0}))),d={$exception_message:l[0]?.value||t.message,$exception_type:l[0]?.type,$exception_level:t.level,$exception_list:u,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:l[0]?.value||t.message,$sentry_exception_type:l[0]?.type,$sentry_tags:t.tags};return n&&r&&(d.$sentry_url=(i||`https://sentry.io/organizations/`)+n+`/issues/?project=`+r+`&query=`+t.event_id),o&&((c=e.exceptions)==null||c.sendExceptionEvent(d)),t}}var Gx=class{constructor(e,t,n,r,i,a){this.name=Ux,this.setupOnce=function(o){o(Wx(e,{organization:t,projectId:n,prefix:r,severityAllowList:i,sendExceptionsToPostHog:a==null||a}))}}},Kx=class{constructor(e){this.cr=(e,t,n)=>{n&&(n.noSessionId||n.activityTimeout||n.sessionPastMaximumLength||n.crossTabAdoption)&&($.info(`[PageViewManager] Session rotated, clearing pageview state`,{sessionId:e,changeReason:n}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.vr()}vr(){this.pr=this._instance.sessionManager?.onSessionId(this.cr)}destroy(){var e;(e=this.pr)==null||e.call(this),this.pr=void 0}doPageView(e,t){var n=this.gr(e,t);return this.dr={pathname:G?.location.pathname??``,pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),n}doPageLeave(e){return this.gr(e,this.dr?.pageViewId)}doEvent(){return{$pageview_id:this.dr?.pageViewId}}gr(e,t){var n=this.dr;if(!n)return{$pageview_id:t};var r={$pageview_id:t,$prev_pageview_id:n.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:a,lastScrollY:o,maxScrollY:s,maxContentHeight:c,lastContentY:l,maxContentY:u}=i;if(!(Z(a)||Z(o)||Z(s)||Z(c)||Z(l)||Z(u))){a=Math.ceil(a),o=Math.ceil(o),s=Math.ceil(s),c=Math.ceil(c),l=Math.ceil(l),u=Math.ceil(u);var d=a>1?x_(o/a,0,1,$):1,f=a>1?x_(s/a,0,1,$):1,p=c>1?x_(l/c,0,1,$):1,m=c>1?x_(u/c,0,1,$):1;r=Db(r,{$prev_pageview_last_scroll:o,$prev_pageview_last_scroll_percentage:d,$prev_pageview_max_scroll:s,$prev_pageview_max_scroll_percentage:f,$prev_pageview_last_content:l,$prev_pageview_last_content_percentage:p,$prev_pageview_max_content:u,$prev_pageview_max_content_percentage:m})}}return n.pathname&&(r.$prev_pageview_pathname=n.pathname),n.timestamp&&(r.$prev_pageview_duration=(e.getTime()-n.timestamp.getTime())/1e3),r}},qx=[`flags`,`surveys`],Jx={[gy]:{exposure:`hidden`}
17,[vy]:{exposure:`hidden`},__cmpns:{exposure:`hidden`},[yy]:{exposure:`hidden`},[by]:{exposure:`event`},[xy]:{exposure:`hidden`},[Sy]:{exposure:`event`},[Cy]:{exposure:`hidden`},[wy]:{exposure:`event`},[Ty]:{exposure:`event`},[Ey]:{exposure:`event`},[Dy]:{exposure:`hidden`},[Oy]:{exposure:`event`},[ky]:{exposure:`hidden`},$session_recording_enabled_server_side:{exposure:`hidden`},[Fy]:{exposure:`hidden`},[Iy]:{exposure:`event`},[Ay]:{exposure:`event`,shouldSkipFromEventProperties:e=>l_(e)},$session_past_minimum_duration:{exposure:`event`},$session_recording_url_trigger_activated_session:{exposure:`event`},$session_recording_event_trigger_activated_session:{exposure:`event`},$debug_first_full_snapshot_timestamp:{exposure:`event`},[Ly]:{exposure:`derived`,storageGroup:`flags`,shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!a_(e))return{};for(var t={},n=Object.keys(e),r=0;n.length>r;r++)t[`$feature/`+n[r]]=e[n[r]];return t}},[Ry]:{exposure:`event`,storageGroup:`flags`},[zy]:{exposure:`hidden`},[By]:{exposure:`hidden`,storageGroup:`flags`},[Vy]:{exposure:`event`,storageGroup:`flags`},[Hy]:{exposure:`event`,storageGroup:`flags`,volatile:!0}
17,[Uy]:{exposure:`event`},[Wy]:{exposure:`hidden`},[Gy]:{exposure:`hidden`},[Ky]:{exposure:`hidden`},[qy]:{exposure:`hidden`,storageGroup:`surveys`},[Jy]:{exposure:`hidden`,storageGroup:`surveys`,volatile:!0},[Yy]:{exposure:`event`},[Xy]:{exposure:`hidden`},$product_tours_activated:{exposure:`hidden`},$conversations_widget_session_id:{exposure:`event`},$conversations_ticket_id:{exposure:`event`},$conversations_widget_state:{exposure:`event`},$conversations_user_traits:{exposure:`event`},[Zy]:{exposure:`hidden`},[Qy]:{exposure:`hidden`},[$y]:{exposure:`hidden`},[eb]:{exposure:`hidden`,storageGroup:`flags`,volatile:!0},[tb]:{exposure:`hidden`},[nb]:{exposure:`hidden`},[rb]:{exposure:`hidden`},[ib]:{exposure:`hidden`},[ab]:{exposure:`hidden`},[ob]:{exposure:`hidden`},[sb]:{exposure:`hidden`},[jy]:{exposure:`event`},[My]:{exposure:`event`},[Ny]:{exposure:`event`},[Py]:{exposure:`event`},[ub]:{exposure:`event`},[db]:{exposure:`event`},[fb]:{exposure:`event`},$sdk_debug_replay_event_trigger_status:{exposure:`event`},$sdk_debug_replay_linked_flag_trigger_status:{exposure:`event`},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:`event`},$sdk_debug_replay_remote_trigger_matching_config:{exposure:`event`},$sdk_debug_replay_trigger_groups_count:{exposure:`event`},$sdk_debug_replay_url_trigger_status:{exposure:`event`},$session_recording_start_reason:{exposure:`event`}},Yx=[[`$posthog_sr_group_event_trigger_`,{exposure:`hidden`}],[`$posthog_sr_group_url_trigger_`,{exposure:`hidden`}],[`$posthog_sr_group_sampling_`,{exposure:`hidden`}]],Xx=e=>{var t=Jx[e];if(t)return t;for(var[n,r]of Yx)if(e.indexOf(n)===0)return r},Zx=e=>{var t=K?.createElement(`a`);return Z(t)?null:(t.href=e,t)},Qx=function(e,t){for(var n,r=((e.split(`#`)[0]||``).split(/\?(.*)/)[1]||``).replace(/^\?+/g,``).split(`&`),i=0;r.length>i;i++){var a=r[i].split(`=`);
17if(a[0]===t){n=a;break}}if(!X(n)||2>n.length)return``;var o=n[1];try{o=decodeURIComponent(o)}catch{$.error(`Skipping decoding for malformed query param: `+o)}return o.replace(/\+/g,` `)},$x=function(e,t,n){if(!e||!t||!t.length)return e;for(var r=e.split(`#`),i=r[1],a=(r[0]||``).split(`?`),o=a[1],s=a[0],c=(o||``).split(`&`),l=[],u=0;c.length>u;u++){var d=c[u].split(`=`);X(d)&&(t.includes(d[0])?l.push(d[0]+`=`+n):l.push(c[u]))}var f=s;return o!=null&&(f+=`?`+l.join(`&`)),i!=null&&(f+=`#`+i),f},eS=function(e,t){var n=e.match(RegExp(t+`=([^&]*)`));return n?n[1]:null},tS=`https?://(.*)`,nS=[`gclid`,`gclsrc`,`dclid`,`gbraid`,`wbraid`,`fbclid`,`msclkid`,`twclid`,`li_fat_id`,`igshid`,`ttclid`,`rdt_cid`,`epik`,`qclid`,`sccid`,`irclid`,`_kx`],rS=[`utm_source`,`utm_medium`,`utm_campaign`,`utm_content`,`utm_term`,`gad_source`,`mc_cid`,...nS],iS=`<masked>`,aS=[`li_fat_id`];function oS(e,t,n){if(!K)return{};var r,i=t?[...nS,...n||[]]:[],a=sS($x(K.URL,i,iS),e);return Db((r={},Eb(aS,(function(e){var t=Gb.A(e);r[e]=t||null})),r),a)}function sS(e,t){var n=rS.concat(t||[]),r={};return Eb(n,(function(t){r[t]=Qx(e,t)||null})),r}function cS(e){var t=function(e){return e?e.search(tS+`google.([^/?]*)`)===0?`google`:e.search(tS+`bing.com`)===0?`bing`:e.search(tS+`y
17ahoo.com`)===0?`yahoo`:e.search(tS+`duckduckgo.com`)===0?`duckduckgo`:null:null}(e),n=t==`yahoo`?`p`:`q`,r={};if(!l_(t)){r.$search_engine=t;var i=K?Qx(K.referrer,n):``;i.length&&(r.ph_keyword=i)}return r}function lS(){return navigator.language||navigator.userLanguage}var uS=`$direct`;function dS(){return K?.referrer||uS}function fS(e,t){var n=e?[...nS,...t||[]]:[],r=jg?.href.substring(0,1e3);return{r:dS().substring(0,1e3),u:r?$x(r,n,iS):void 0}}function pS(e){var{r:t,u:n}=e,r={$referrer:t,$referring_domain:t==null?void 0:t==uS?uS:Zx(t)?.host};if(n){r.$current_url=n;var i=Zx(n);r.$host=i?.host,r.$pathname=i?.pathname,Db(r,sS(n))}return t&&Db(r,cS(t)),r}function mS(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function hS(){try{return new Date().getTimezoneOffset()}catch{return}}var gS={flags:eb,surveys:Jy},_S=[`cookie`,`localstorage`,`localstorage+cookie`,`sessionstorage`,`memory`],vS=`main`,yS=class{constructor(e,t,n){if(n===void 0&&(n=!0),this.mr={},this.yr=!1,this.br=!1,this.qt=e,this._r=n,this.props={},this.wr=!1,this.kr=(e=>{var t=``;return e.token&&(t=e.token.replace(/\+/g,`PL`).replace(/\//g,`SL`).replace(/=/g,`EQ`)),e.persistence_name?`ph_`+e.persistence_name:`ph_`+t+`_posthog`})(e),this.nr=this.Sr(e),this.br=this.Cr(e),this.load(),e.debug&&$.info(`Persistence loaded`,e.persistence,J({},this.props)),this.update_config(e,e,t),this.save(),G){var r=()=>this.flush();Pb(G,`beforeunload`,r,{capture:!1}),Pb(G,`pagehide`,r,{capture:!1})}}Ir(){var e=this.qt?.persistence_save_debounce_ms;return u_(e)&&e>0?e:0}isDisabled(){return!!this.Tr}Sr(e){_S.indexOf(e.persistence.toLowerCase())===-1&&($.critical(`Unknown persistence type `+e.persistence+`; falling back to localStorage+cookie`),e.persistence=`localStorage+cookie`);var t,n=function(e,t){e===void 0&&(e=[]),t===void 0&&(t=!1);var n=[...Jb,...e];return J({},qb,{F(e){try{var n={};try{n=Gb.F(e)||{}}catch{}var r,i=JSON.parse(qb.A(e)||`{}`);if(t){var a={};for(var o in n){var s=n[o];l_(s)||s===``||(a[o]=s)}r=Db(i,a)}else r=Db(n,i);return qb.N(e,r),r}catch{}return null},N(e,t,r,i,a,o){var s=qb.N(e,t,void 0,void 0,o);try{var c={};n.forEach((e=>{t[e]&&(c[e]=t[e])})),Object.keys(c).length&&Gb.N(e,c,r,i,a,o)}catch(e){qb.D(e)}return s},q(e,t){try{G?.localStorage.removeItem(e),Gb.q(e,t)}catch(e){qb.D(e)}}})}(e.cookie_persisted_properties||[],e.__preview_cookie_wins_on_conflict||!1),r=!1,i=e.persistence.toLowerCase();return i===`localstorage`&&qb.O()?(t=qb,r=!0):i===`localstorage+cookie`&&n.O()?(t=n,r=!0):i===`sessionstorage`&&Qb.O()?t=Qb:i===`memory`?t=Xb:i===`cookie`?t=Gb:n.O()?(t=n,r=!0):t=Gb,this.yr=r,t}Er(e){return this.kr+`__`+e}Cr(e){return this.yr&&!!e.split_storage}Mr(e){var t=e??this.qt.feature_flag_cache_ttl_ms;if(!t||0>=t)return!1;var n=this.props[eb];return!n||typeof n!=`number`||Date.now()-n>t}properties(){var e={};return Eb(this.props,((t,n)=>{var r=Xx(n);if(r?.exposure===`derived`){if(r.shouldSkipFromEventProperties!=null&&r.shouldSkipFromEventProperties(t,n===Ly?()=>this.Mr():()=>!1))return;r.transformToEventProperties&&Db(e,r.transformToEventProperties(t))}else if(!r||r.exposure===`event`){if(r!=null&&r.shouldSkipFromEventProperties!=null&&r.shouldSkipFromEventProperties(t,(()=>!1)))return;e[n]=t}})),e}load(){if(!this.Tr){var e=this.nr.F(this.kr);e&&(this.props=Db({},e)),this.br&&this.Rr()}}Rr(){for(var e of qx){var t=qb.F(this.Er(e));if(t&&!o_(t)){var n=this.Pr(e);n.persisted=!0,this.Or(e)||(n.fingerprint=this.Lr(t,e)),this.Ar(e,t)||Db(this.props,t)}}}Or(e){return Object.keys(this.props).some((t=>Xx(t)?.storageGroup===e))}Ar(e,t){var n=gS[e];if(!n)return!1;var r=t[n],i=this.props[n];return u_(r)&&u_(i)&&i>r}refreshKey(e){if(!this.Tr){var t=this.br?Xx(e)?.storageGroup:void 0,n=t?qb.F(this.Er(t)):this.nr.F(this.kr);if(n&&e in n)this.Fr(e,n[e]);else{if(t){var r=this.nr.F(this.kr);if(r&&e in r)return void this.Fr(e,r[e])}this.Nr(e)}}}save(){if(!this.Tr){var e=this.Ir();e>0?Z(this.Dr)&&(this.Dr=setTimeout((()=>{this.Dr=void 0,this.$r()}),e)):this.$r()}}flush(){Z(this.Dr)||(clearTimeout(this.Dr),this.Dr=void 0,this.$r())}$r(){this.Tr||(this.br?this.qr():this.jr(this.nr,this.kr,this.props,vS))}qr(){var{main:e,groups:t}=this.Br();for(var n of(this.jr(this.nr,this.kr,e,vS),qx)){var r,i=t[n];(!o_(i)||(r=this.mr[n])!=null&&r.persisted)&&this.jr(qb,this.Er(n),i,n)}}Br(){var e={},t={};for(var n of qx)t[n]={};return Eb(this.props,((n,r)=>{var i=Xx(r)?.storageGroup;i?t[i][r]=n:e[r]=n})),{main:e,groups:t}}Lr(e,t){if(t===vS)return JSON.stringify(e)+`|`+this.Hr+`|`+this.Ur+`|`+this.zr;var n={};return Eb(e,((e,t)=>
17{var r;n[t]=(r=Xx(t))!=null&&r.volatile?`__volatile__`:e})),JSON.stringify(n)}jr(e,t,n,r){var i=this.Pr(r);if(r===vS||i.dirty||Z(i.fingerprint)){var a;try{if((a=this.Lr(n,r))===i.fingerprint)return void(i.dirty=!1)}catch{a=void 0}e.N(t,n,this.Hr,this.Ur,this.zr,this.qt.debug)?(i.dirty=!1,r!==vS&&(i.persisted=!0),Z(a)||(i.fingerprint=a)):this.qt.debug&&$.warn(`failed to persist storage entry "`+t+`"; will retry on next save`)}}remove(e){var{keepGroupEntries:t=!1}=e===void 0?{}:e;if(Z(this.Dr)||(clearTimeout(this.Dr),this.Dr=void 0),this.nr.q(this.kr,!1),this.nr.q(this.kr,!0),!t&&this._r)for(var n of qx)qb.q(this.Er(n));t?delete this.mr[vS]:this.mr={}}clear(){this.remove(),this.props={}}register_once(e,t,n){if(a_(e)){Z(t)&&(t=`None`),this.Hr=Z(n)?this.Vr:n;var r=!1;if(Eb(e,((e,n)=>{this.props.hasOwnProperty(n)&&this.props[n]!==t||(this.Fr(n,e),r=!0)})),r)return this.save(),!0}return!1}register(e,t){if(a_(e)){this.Hr=Z(t)?this.Vr:t;var n=!1;if(Eb(e,((t,r)=>{e.hasOwnProperty(r)&&this.props[r]!==t&&(this.Fr(r,t),n=!0)})),n)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.Nr(e),this.save())}update_campaign_params(){if(!this.wr){var e=oS(this.qt.custom_campaign_params,this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties);o_(jb(e))||this.register(e),this.wr=!0}}update_search_keyword(){var e;this.register((e=K?.referrer)?cS(e):{})}update_referrer_info(){this.register_once({$referrer:dS(),$referring_domain:K!=null&&K.referrer&&Zx(K.referrer)?.host||uS},void 0)}set_initial_person_info(){this.props[ib]||this.props[ab]||this.register_once({[ob]:fS(this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};Eb([ab,ib],(t=>{var n=this.props[t];n&&Eb(n,(function(t,n){e[`$initial_`+e_(n)]=t}))}));var t,n,r=this.props[ob];return r&&Db(e,(t=pS(r),n={},Eb(t,(function(e,t){n[`$initial_`+e_(t)]=e})),n)),e}safe_merge(e){return Eb(this.props,(function(t,n){n in e||(e[n]=t)})),e}update_config(e,t,n){this.Vr=this.Hr=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!n),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie);var r=e.persistence!==t.persistence||!((e,t)=>{if(e.length!==t.length)return!1;var n=[...e].sort(),r=[...t].sort();return n.every(((e,t)=>e===r[t]))})(e.cookie_persisted_properties||[],t.cookie_persisted_properties||[]),i=r?this.Sr(e):this.nr,a=this.Cr(e);if(r||a!==this.br){var o=this.props;this.clear(),this.nr=i,this.br=a,this.props=o,this.save()}}set_disabled(e){this.Tr=e,this.Tr?this.remove():this.save()}set_cross_subdomain(e){e!==this.Ur&&(this.Ur=e,this.remove({keepGroupEntries:!0}),this.save())}set_secure(e){e!==this.zr&&(this.zr=e,this.remove({keepGroupEntries:!0}),this.save())}set_event_timer(e,t){var n=this.props[yy]||{};n[e]=t,this.Fr(yy,n),this.save()}remove_event_timer(e){var t=this.props[yy]||{},n=t[e];return Z(n)||(delete t[e],this.Fr(yy,t),this.save()),n}get_property(e){return this.props[e]}set_property(e,t){this.Fr(e,t),this.save()}Fr(e,t){var n;this.props[e]=t,(n=Xx(e))!=null&&n.volatile||this.Wr(e)}Nr(e){delete this.props[e],this.Wr(e)}Wr(e){var t=Xx(e)?.storageGroup;t&&(this.Pr(t).dirty=!0)}Pr(e){return this.mr[e]||(this.mr[e]={})}},bS={Activation:`events`,Cancellation:`cancelEvents`},xS={Popover:`popover`,API:`api`,Widget:`widget`,ExternalSurvey:`external_survey`},SS={SHOWN:`survey shown`,DISMISSED:`survey dismissed`,SENT:`survey sent`,ABANDONED:`survey abandoned`},CS={SURVEY_ID:`$survey_id`,SURVEY_NAME:`$survey_name`,SURVEY_RESPONSE:`$survey_response`,SURVEY_ITERATION:`$survey_iteration`,SURVEY_ITERATION_START_DATE:`$survey_iteration_start_date`,SURVEY_PARTIALLY_COMPLETED:`$survey_partially_completed`,SURVEY_SUBMISSION_ID:`$survey_submission_id`,SURVEY_QUESTIONS:`$survey_questions`,SURVEY_COMPLETED:`$survey_completed`,PRODUCT_TOUR_ID:`$product_tour_id`,SURVEY_LAST_SEEN_DATE:`$survey_last_seen_date`,SURVEY_LANGUAGE:`$survey_language`},wS={Popover:`popover`,Inline:`inline`},TS={SHOWN:`product tour shown`,DISMISSED:`product tour dismissed`,COMPLETED:`product tour completed`,STEP_SHOWN:`product tour step shown`,STEP_COMPLETED:`product tour step completed`,BUTTON_CLICKED:`product tour button clicked`,STEP_SELECTOR_FAILED:`product tour step selector failed`,BANNER_CONTAINER_SELECTOR_FAILED:`product tour banner container selector failed`,BANNER_ACTION_CLICKED:`product tour banner action clicked`},ES={TOUR_ID:`$product_tour_id`,TOUR_NAME:`$product_tour_name`,TOUR_ITERATION:`$product_tour_iteration`,TOUR_RENDER_REASON:`$product_tour_render_reason`,TOUR_STEP_ID:`$product_tour_step_id`,TOUR_STEP_ORDER:`$product_tour_step_order`,TOUR_STEP_TYPE:`$product_tour_step_type`,TOUR_DISMISS_REASON:`$product_tour_dismiss_reason`,TOUR_BUTTON_TEXT:`$product_tour_button_text`,TOUR_BUTTON_ACTION:`$product_tour_button_action`,TOUR_BUTTON_LINK:`$product_tour_button_link`,TOUR_BUTTON_TOUR_ID:`$product_tour_button_tour_id`,TOUR_STEPS_COUNT:`$product_tour_steps_count`,TOUR_STEP_SELECTOR:`$product_tour_step_selector`,TOUR_STEP_SELECTOR_FOUND:`$product_tour_step_selector_found`,TOUR_STEP_ELEMENT_TAG:`$product_tour_step_element_tag`,TOUR_STEP_ELEMENT_ID:`$product_tour_step_element_id`,TOUR_STEP_ELEMENT_CLASSES:`$product_tour_step_element_classes`,TOUR_STEP_ELEMENT_TEXT:`$product_tour_step_element_text`,TOUR_ERROR:`$product_tour_error`,TOUR_MATCHES_COUNT:`$product_tour_matches_count`,TOUR_FAILURE_PHASE:`$product_tour_failure_phase`,TOUR_WAITED_FOR_ELEMENT:`$product_tour_waited_for_element`,TOUR_WAIT_DURATION_MS:`$product_tour_wait_duration_ms`,TOUR_BANNER_SELECTOR:`$product_tour_banner_selector`,TOUR_LINKED_SURVEY_ID:`$product_tour_linked_survey_id`,USE_MANUAL_SELECTOR:`$use_manual_selector`,INFERENCE_DATA_PRESENT:`$inference_data_present`,TOUR_LAST_SEEN_DATE:`$product_tour_last_seen_date`,TOUR_TYPE:`$product_tour_type`},DS=py(`[RateLimiter]`),OS=class{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;
17if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach((e=>{DS.info((e||`events`)+` is quota limited.`),this.serverLimits[e]=new Date().getTime()+6e4}))}catch(e){DS.warn(`could not rate limit - continuing. Error: "`+e?.message+`"`,{text:t});return}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){return this.instance.config.rate_limiting?.events_per_second||10}get captureEventsBurstLimit(){return Math.max(this.instance.config.rate_limiting?.events_burst_limit||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var t;e===void 0&&(e=!1);var{captureEventsBurstLimit:n,captureEventsPerSecond:r}=this,i=new Date().getTime(),a=this.instance.persistence?.get_property(rb)??{tokens:n,last:i};a.tokens+=(i-a.last)/1e3*r,a.last=i,a.tokens>n&&(a.tokens=n);var o=1>a.tokens;return o||e||(a.tokens=Math.max(0,a.tokens-1)),!o||this.lastEventRateLimited||e||this.instance.capture(`$$client_ingestion_warning`,{$$client_ingestion_warning_message:`posthog-js client rate limited. Config is set to `+r+` events per second and `+n+` events burst limit.`},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=o,(t=this.instance.persistence)==null||t.set_property(rb,a),{isRateLimited:o,remainingTokens:a.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||`events`]||!1;return!1!==t&&new Date().getTime()<t}},kS=py(`[RemoteConfig]`),AS=class{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=q._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}Gr(e){var t,n;(t=q.__PosthogExtensions__)!=null&&t.loadExternalDependency?(n=q.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,`remote-config`,(()=>e(this.remoteConfig))):e()}Zr(e){this._instance._send_request({method:`GET`,url:this._instance.requestRouter.endpointFor(`assets`,`/array/`+this._instance.config.token+`/config`),callback(t){e(t.json)}})}load(){try{if(this.remoteConfig)return kS.info(`Using preloaded remote config`,this.remoteConfig),this.Qr(this.remoteConfig),void this.Jr();if(this._instance.Kr())return void kS.warn(`Remote config is disabled. Falling back to local config.`);this.Gr((e=>{if(!e)return kS.info(`No config found after loading remote JS config. Falling back to JSON.`),void this.Zr((e=>{this.Qr(e),this.Jr()}));this.Qr(e),this.Jr()}))}catch(e){kS.error(`Error loading remote config`,e)}}stop(){this.Yr&&=(clearInterval(this.Yr),void 0)}refresh(){!this._instance.Kr()&&K&&K.visibilityState!==`hidden`&&this._instance.reloadFeatureFlags()}
17Jr(){if(!this.Yr){var e=this._instance.config.remote_config_refresh_interval_ms??3e5;e!==0&&(this.Yr=setInterval((()=>{this.refresh()}),e))}}Qr(e){var t;e||kS.error(`Failed to fetch remote config from PostHog.`),this._instance.Qr(e??{}),!1!==e?.hasFeatureFlags&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(t=this._instance.featureFlags)==null||t.ensureFlagsLoaded())}},jS={GZipJS:`gzip-js`,Base64:`base64`},MS=Uint8Array,NS=Uint16Array,PS=Uint32Array,FS=new MS([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]),IS=new MS([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]),LS=new MS([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),RS=function(e,t){for(var n=new NS(31),r=0;31>r;++r)n[r]=t+=1<<e[r-1];var i=new PS(n[30]);for(r=1;30>r;++r)for(var a=n[r];n[r+1]>a;++a)i[a]=a-n[r]<<5|r;return[n,i]},zS=RS(FS,2),BS=zS[1];zS[0][28]=258,BS[258]=28;for(var VS=RS(IS,0)[1],HS=new NS(32768),US=0;32768>US;++US){var WS=(43690&US)>>>1|(21845&US)<<1;HS[US]=((65280&(WS=(61680&(WS=(52428&WS)>>>2|(13107&WS)<<2))>>>4|(3855&WS)<<4))>>>8|(255&WS)<<8)>>>1}var GS=function(e,t,n){for(var r=e.length,i=0,a=new NS(t);r>i;++i)++a[e[i]-1];var o,s=new NS(t);for(i=0;t>i;++i)s[i]=s[i-1]+a[i-1]<<1;if(n){o=new NS(1<<t);var c=15-t;for(i=0;r>i;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=s[e[i]-1]++<<u,f=d|(1<<u)-1;f>=d;++d)o[HS[d]>>>c]=l}else for(o=new NS(r),i=0;r>i;++i)o[i]=HS[s[e[i]-1]++]>>>15-e[i];return o},KS=new MS(288);for(US=0;144>US;++US)KS[US]=8;for(US=144;256>US;++US)KS[US]=9;for(US=256;280>US;++US)KS[US]=7;for(US=280;288>US;++US)KS[US]=8;var qS=new MS(32);for(US=0;32>US;++US)qS[US]=5;var JS=GS(KS,9,0),YS=GS(qS,5,0),XS=function(e){return(e/8>>0)+(7&e&&1)},ZS=function(e,t,n){(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof NS?NS:e instanceof PS?PS:MS)(n-t);return r.set(e.subarray(t,n)),r},QS=function(e,t,n){var r=t/8>>0;e[r]|=n<<=7&t,e[r+1]|=n>>>8},$S=function(e,t,n){var r=t/8>>0;e[r]|=n<<=7&t,e[r+1]|=n>>>8,e[r+2]|=n>>>16},eC=function(e,t){for(var n=[],r=0;e.length>r;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,a=n.slice();if(!i)return[new MS(0),0];if(i==1){var o=new MS(n[0].s+1);return o[n[0].s]=1,[o,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var s=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=i-1;)s=n[n[d].f>n[l].f?l++:d++],c=n[l!=u&&n[d].f>n[l].f?l++:d++],n[u++]={s:-1,f:s.f+c.f,l:s,r:c};var f=a[0].s;for(r=1;i>r;++r)a[r].s>f&&(f=a[r].s);var p=new NS(f+1),m=tC(n[u-1],p,0);if(m>t){r=0;var h=0,g=m-t,_=1<<g;for(a.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));i>r;++r){var v=a[r].s;if(t>=p[v])break;h+=_-(1<<m-p[v]),p[v]=t}for(h>>>=g;h>0;){var y=a[r].s;t>p[y]?h-=1<<t-p[y]++-1:++r}for(;r>=0&&h;--r){var b=a[r].s;p[b]==t&&(--p[b],++h)}m=t}return[new MS(p),m]},tC=function(e,t,n){return e.s==-1?Math.max(tC(e.l,t,n+1),tC(e.r,t,n+1)):t[e.s]=n},nC=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new NS(++t),r=0,i=e[0],a=1,o=function(e){n[r++]=e},s=1;t>=s;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},rC=function(e,t){for(var n=0,r=0;t.length>r;++r)n+=e[r]*t[r];return n},iC=function(e,t,n){var r=n.length,i=XS(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;r>a;++a)e[i+a+4]=n[a];return 8*(i+4+r)},aC=function(e,t,n,r,i,a,o,s,c,l,u){QS(t,u++,n),++i[256];for(var d=eC(i,15),f=d[0],p=d[1],m=eC(a,15),h=m[0],g=m[1],_=nC(f),v=_[0],y=_[1],b=nC(h),x=b[0],S=b[1],C=new NS(19),w=0;v.length>w;++w)C[31&v[w]]++;for(w=0;x.length>w;++w)C[31&x[w]]++;for(var ee=eC(C,7),te=ee[0],ne=ee[1],E=19;E>4&&!te[LS[E-1]];--E);var re,ie,ae,oe,se=l+5<<3,ce=rC(i,KS)+rC(a,qS)+o,D=rC(i,f)+rC(a,h)+o+14+3*E+rC(C,te)+(2*C[16]+3*C[17]+7*C[18]);if(ce>=se&&D>=se)return iC(t,u,e.subarray(c,c+l));if(QS(t,u,1+(ce>D)),u+=2,ce>D){re=GS(f,p,0),ie=f,ae=GS(h,g,0),oe=h;var O=GS(te,ne,0);for(QS(t,u,y-257),QS(t,u+5,S-1),QS(t,u+10,E-4),u+=14,w=0;E>w;++w)QS(t,u+3*w,te[LS[w]]);u+=3*E;for(var le=[v,x],ue=0;2>ue;++ue){var de=le[ue];for(w=0;de.length>w;++w)QS(t,u,O[fe=31&de[w]]),u+=te[fe],fe>15&&(QS(t,u,de[w]>>>5&127),u+=de[w]>>>12)}}else re=JS,ie=KS,ae=YS,oe=qS;for(w=0;s>w;++w)if(r[w]>
17255){var fe;$S(t,u,re[257+(fe=r[w]>>>18&31)]),u+=ie[fe+257],fe>7&&(QS(t,u,r[w]>>>23&31),u+=FS[fe]);var k=31&r[w];$S(t,u,ae[k]),u+=oe[k],k>3&&($S(t,u,r[w]>>>5&8191),u+=IS[k])}else $S(t,u,re[r[w]]),u+=ie[r[w]];return $S(t,u,re[256]),u+ie[256]},oC=new PS([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),sC=function(){for(var e=new PS(256),t=0;256>t;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),cC=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function lC(e,t){t===void 0&&(t={});var n=function(){var e=4294967295;return{p(t){for(var n=e,r=0;t.length>r;++r)n=sC[255&n^t[r]]^n>>>8;e=n},d(){return 4294967295^e}}}(),r=e.length;n.p(e);var i,a,o,s,c,l=(s=10+((i=t).filename&&i.filename.length+1||0),c=8,function(e,t,n,r,i,a){var o=e.length,s=new MS(r+o+5*(1+Math.floor(o/7e3))+i),c=s.subarray(r,s.length-i),l=0;if(!t||8>o)for(var u=0;o>=u;u+=65535){var d=u+65535;o>d?l=iC(c,l,e.subarray(u,d)):(c[u]=!0,l=iC(c,l,e.subarray(u,o)))}else{for(var f=oC[t-1],p=f>>>13,m=8191&f,h=(1<<n)-1,g=new NS(32768),_=new NS(h+1),v=Math.ceil(n/3),y=2*v,b=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<y)&h},x=new PS(25e3),S=new NS(288),C=new NS(32),w=0,ee=0,te=(u=0,0),ne=0,E=0;o>u;++u){var re=b(u),ie=32767&u,ae=_[re];if(g[ie]=ae,_[re]=ie,u>=ne){var oe=o-u;if((w>7e3||te>24576)&&oe>423){l=aC(e,c,0,x,S,C,ee,te,E,u-E,l),te=w=ee=0,E=u;for(var se=0;286>se;++se)S[se]=0;for(se=0;30>se;++se)C[se]=0}var ce=2,D=0,O=m,le=ie-ae&32767;if(oe>2&&re==b(u-le))for(var ue=Math.min(p,oe)-1,de=Math.min(32767,u),fe=Math.min(258,oe);de>=le&&--O&&ie!=ae;){if(e[u+ce]==e[u+ce-le]){for(var k=0;fe>k&&e[u+k]==e[u+k-le];++k);if(k>ce){if(ce=k,D=le,k>ue)break;var A=Math.min(le,k-2),pe=0;for(se=0;A>se;++se){var me=u-le+se+32768&32767,he=me-g[me]+32768&32767;he>pe&&(pe=he,ae=me)}}}le+=(ie=ae)-(ae=g[ie])+32768&32767}if(D){x[te++]=268435456|BS[ce]<<18|VS[D];var ge=31&BS[ce],_e=31&VS[D];ee+=FS[ge]+IS[_e],++S[257+ge],++C[_e],ne=u+ce,++w}else x[te++]=e[u],++S[e[u]]}}l=aC(e,c,!0,x,S,C,ee,te,E,u-E,l)}return ZS(s,0,r+XS(l)+i)}(a=e,(o=t).level==null?6:o.level,o.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+o.mem,s,c)),u=l.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=2>t.level?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&cC(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;n.length>=r;++r)e[r+10]=n.charCodeAt(r)}}(l,t),cC(l,u-8,n.d()),cC(l,u-4,r),l}var uC=!!Ng||!!Mg,dC=`text/plain`,fC=!1,pC=(e,t)=>{var[n,r]=e.split(`#`),[i,a]=n.split(`?`);if(!a)return e;var o=a.split(`&`).filter((e=>e.split(`=`)[0]!==t)).join(`&`);return i+(o?`?`+o:``)+(r?`#`+r:``)},mC=function(e,t,n){n===void 0&&(n=!0);var[r,i]=e.split(`?`),a=J({},t),o=i?.split(`&`).map((e=>{var t,[r,i]=e.split(`=`),o=n&&(t=a[r])!=null?t:i;return delete a[r],r+`=`+o}))??[],s=function(e,t){var n,r;t===void 0&&(t=`&`);var i=[];return Eb(e,(function(e,t){Z(e)||Z(t)||t===`undefined`||(n=encodeURIComponent((e=>e instanceof File)(e)?e.name:e.toString()),r=encodeURIComponent(t),i[i.length]=r+`=`+n)})),i.join(t)}(a);return s&&o.push(s),r+`?`+o.join(`&`)},hC=(e,t)=>JSON.stringify(e,((e,t)=>typeof t==`bigint`?t.toString():t),t),gC=e=>{if(e.tr)return e.tr;var{data:t,compression:n}=e;if(t){if(n===jS.GZipJS){var r=lC(function(e,t){var n=e.length;if(typeof TextEncoder<`u`)return new TextEncoder().encode(e);for(var r=new MS(e.length+(e.length>>>1)),i=0,a=function(e){r[i++]=e},o=0;n>o;++o){if(i+5>r.length){var s=new MS(i+8+(n-o<<1));s.set(r),r=s}var c=e.charCodeAt(o);128>c?a(c):2048>c?(a(192|c>>>6),a(128|63&c)):c>55295&&57344>c?(a(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++o))>>>18),a(128|c>>>12&63),a(128|c>>>6&63),a(128|63&c)):(a(224|c>>>12),a(128|c>>>6&63),a(128|63&c))}return ZS(r,0,i)}(hC(t)),{mtime:0});return{contentType:dC,body:r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength),estimatedSize:r.byteLength}}if(n===jS.Base64){var i=(e=>`data=`+encodeURIComponent(typeof e==`string`?e:hC(e)))(function(e){return e&&btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,((e,t)=>String.fromCharCode(parseInt(t,16)))))}(hC(t)));return{contentType:`application/x-www-form-urlencoded`,body:i,estimatedSize:new Blob([i]).size}}var a=hC(t);return{contentType:`application/json`,body:a,estimatedSize:new Blob([a]).size}}},_C=e=>{var t,n,r,i=gC(e);return!i||(n=e.compression,r=Qx(e.url,`compression`),n!==Ug.GZipJS&&r!==Ug.GZipJS&&r!==`gzip`)||((t=i.body)instanceof ArrayBuffer?Kg(new Uint8Array(t)):ArrayBuffer.isView(t)&&Kg(new Uint8Array(t.buffer,t.byteOffset,t.byteLength)))?{url:e.url,encodedBody:i}:(fC=!0,{url:pC(e.url,`compression`),encodedBody:gC(J({},e,{compression:void 0,tr:void 0}))})},vC=function(){var e=Bg((function*(e){var t=yield function(e,t,n){return Xg.apply(this,arguments)}(hC(e.data),Rg.DEBUG,{rethrow:!0});if(!t)return e;var n=yield t.arrayBuffer();return J({},e,{tr:{contentType:dC,body:n,estimatedSize:n.byteLength}})}));return function(t){return e.apply(this,arguments)}}(),yC=(e,t)=>mC(e,{_:new Date().getTime().toString(),ver:Rg.JS_SDK_VERSION,compression:t}),bC=[];Mg&&bC.push({transport:`fetch`,method(e){var{url:t,encodedBody:n}=_C(e),{contentType:r,body:i,estimatedSize:a}=n??{},o=new Headers;Eb(e.headers,(function(e,t){o.append(t,e)})),r&&o.append(`Content-Type`,r);var s=null;if(Pg){var c=new Pg;s={signal:c.signal,timeout:setTimeout((()=>c.abort()),e.timeout)}}Mg(t,J({method:e?.method||`GET`,headers:o,keepalive:e.method===`POST`&&52428.8>(a||0),body:i,signal:s?.signal},e.fetchOptions)).then((t=>t.text().then((n=>{var r={statusCode:t.status,text:n};if(t.status===200)try{r.json=JSON.parse(n)}catch(e){$.error(e)}e.callback==null||e.callback(r)})))).catch((t=>{$.error(t),e.callback==null||e.callback({statusCode:0,error:t})})).finally((()=>s?clearTimeout(s.timeout):null))}}),Ng&&bC.push({transport:`XHR`,method(e){var t=new Ng,{url:n,encodedBody:r}=_C(e);t.open(e.method||`GET`,n,!0);var{contentType:i,body:a}=r??{};Eb(e.headers,(function(e,n){t.setRequestHeader(n,e)})),i&&t.setRequestHeader(`Content-Type`,i),e.timeout&&(t.timeout=e.timeout),t.onreadystatechange=()=>{if(t.readyState===4){var n={statusCode:t.status,text:t.responseText};if(t.status===200)try{n.json=JSON.parse(t.responseText)}catch{}e.callback==null||e.callback(n)}},t.send(a)}}),Ag!=null&&Ag.sendBeacon&&bC.push({transport:`sendBeacon`,method(e){try{var{url:t,encodedBody:n}=_C(e),r=mC(t,{beacon:`1`}),{contentType:i,body:a}=n??{};if(!a)return;var o=a instanceof Blob?a:new Blob([a],{type:i});Ag.sendBeacon(r,o)}catch{}}});var xC=3e3,SC=class{constructor(e,t){this.Xr=!0,this.ei=[],this.ti=x_(t?.flush_interval_ms||xC,250,5e3,$.createLogger(`flush interval`),xC),this.ri=e}enqueue(e){this.ei.push(e),this.ii||this.ni()}unload(){this.si();var e=this.ei.length>0?this.oi():{},t=Object.values(e);[...t.filter((e=>e.url.indexOf(`/e`)===0)),...t.filter((e=>e.url.indexOf(`/e`)!==0))].map((e=>{this.ri(J({},e,{transport:`sendBeacon`}))}))}enable(){this.Xr=!1,this.ni()}ni(){var e=this;this.Xr||(this.ii=setTimeout((()=>
17{if(this.si(),this.ei.length>0){var t=this.oi(),n=function(){var n=t[r],i=new Date().getTime();n.data&&X(n.data)&&Eb(n.data,(e=>{e.offset=Math.abs(e.timestamp-i),delete e.timestamp})),e.ri(n)};for(var r in t)n()}}),this.ti))}si(){clearTimeout(this.ii),this.ii=void 0}oi(){var e={};return Eb(this.ei,(t=>{var n,r=t,i=(r?r.batchKey:null)||r.url;Z(e[i])&&(e[i]=J({},r,{data:[]})),(n=e[i].data)==null||n.push(r.data)})),this.ei=[],e}},CC=[`retriesPerformedSoFar`],wC=class{constructor(e){this.ai=!1,this.li=3e3,this.ei=[],this._instance=e,this.ei=[],this.ui=!0,!Z(G)&&`onLine`in G.navigator&&(this.ui=G.navigator.onLine,this.hi=()=>{this.ui=!0,this.ci()},this.di=()=>{this.ui=!1},Pb(G,`online`,this.hi),Pb(G,`offline`,this.di))}get length(){return this.ei.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,n=Vg(e,CC);d_(t)&&(n.url=mC(n.url,{retry_count:t})),this._instance._send_request(J({},n,{callback:e=>{e.statusCode===200||e.statusCode>=400&&500>e.statusCode||(t??0)>=10?n.callback==null||n.callback(e):this.vi(J({retriesPerformedSoFar:t},n))}}))}vi(e){var t=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=t+1;var n=function(e){var t=3e3*2**e,n=t/2,r=Math.min(18e5,t),i=Math.random()-.5;return Math.ceil(r+i*(r-n))}(t),r=Date.now()+n;this.ei.push({retryAt:r,requestOptions:e});var i=`Enqueued failed request for retry in `+n;navigator.onLine||(i+=` (Browser is offline)`),$.warn(i),this.ai||(this.ai=!0,this.fi())}fi(){if(this.pi&&clearTimeout(this.pi),this.ei.length===0)return this.ai=!1,void(this.pi=void 0);this.pi=setTimeout((()=>{this.ui&&this.ei.length>0&&this.ci(),this.fi()}),this.li)}ci(){var e=Date.now(),t=[],n=this.ei.filter((n=>e>n.retryAt||(t.push(n),!1)));if(this.ei=t,n.length>0)for(var{requestOptions:r}of n)this.retriableRequest(r)}unload(){for(var{requestOptions:e}of(this.pi&&=(clearTimeout(this.pi),void 0),this.ai=!1,Z(G)||(this.hi&&=(G.removeEventListener(`online`,this.hi),void 0),this.di&&=(G.removeEventListener(`offline`,this.di),void 0)),this.ei))try{this._instance._send_request(J({},e,{transport:`sendBeacon`}))}catch(e){$.error(e)}this.ei=[]}},TC=class{constructor(e){this.gi=()=>{this.mi||={};var e=this.scrollElement(),t=this.scrollY(),n=e?Math.max(0,e.scrollHeight-e.clientHeight):0,r=t+(e?.clientHeight||0),i=e?.scrollHeight||0;this.mi.lastScrollY=Math.ceil(t),this.mi.maxScrollY=Math.max(t,this.mi.maxScrollY??0),this.mi.maxScrollHeight=Math.max(n,this.mi.maxScrollHeight??0),this.mi.lastContentY=r,this.mi.maxContentY=Math.max(r,this.mi.maxContentY??0),this.mi.maxContentHeight=Math.max(i,this.mi.maxContentHeight??0)},this._instance=e}get yi(){return this._instance.config.scroll_root_selector}getContext(){return this.mi}resetContext(){var e=this.mi;return setTimeout(this.gi,0),e}startMeasuringScrollPosition(){Pb(G,`scroll`,this.gi,{capture:!0}),Pb(G,`scrollend`,this.gi,{capture:!0}),Pb(G,`resize`,this.gi)}scrollElement(){if(!this.yi)return G?.document.documentElement;for(var e of X(this.yi)?this.yi:[this.yi]){var t=G?.document.querySelector(e);if(t)return t}}bi(e){var t=e===`y`?`scrollTop`:`scrollLeft`;if(this.yi){var n=this.scrollElement();return n&&n[t]||0}return G?e===`y`?G.scrollY||G.pageYOffset||G.document.documentElement.scrollTop||0:G.scrollX||G.pageXOffset||G.document.documentElement.scrollLeft||0:0}scrollY(){return this.bi(`y`)}scrollX(){return this.bi(`x`)}},EC=e=>fS(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties),DC=class{constructor(e,t,n,r){this.wi=e=>{var t=this.xi();if(!t||t.sessionId!==e){var n={sessionId:e,props:this.ki(this._instance)};this.Si.register({[nb]:n})}},this._instance=e,this.Ci=t,this.Si=n,this.ki=r||EC,this.Ci.onSessionId(this.wi)}xi(){return this.Si.props[nb]}getSetOnceProps(){var e=this.xi()?.props;return e?`r`in e?pS(e):{$referring_domain:e.referringDomain,$pathname:e.initialPathName,utm_source:e.utm_source,utm_campaign:e.utm_campaign,utm_medium:e.utm_medium,utm_content:e.utm_content,utm_term:e.utm_term}:{}}getSessionProps(){var e={};return Eb(jb(this.getSetOnceProps()),((t,n)=>{n===`$current_url`&&(n=`url`),e[`$session_entry_`+e_(n)]=t})),e}},OC=class{constructor(){this.Ii={}}on(e,t){return this.Ii[e]||(this.Ii[e]=[]),this.Ii[e].push(t),()=>{this.Ii[e]=this.Ii[e].filter((e=>e!==t))}}emit(e,t){for(var n of this.Ii[e]||[])n(t);for(var r of this.Ii[`*`]||[])r(e,t)}},kC=py(`[SessionId]`),AC=class{on(e,t){return this.Ti.on(e,t)}constructor(e,t,n){var r;if(this.Ei=null,this.Mi=[],this.Ri=void 0,this.Pi=!1,this.Ti=new OC,this.Oi=(e,t)=>!(!d_(e)||!d_(t))&&Math.abs(e-t)>
17this.sessionTimeoutMs,!e.persistence)throw Error(`SessionIdManager requires a PostHogPersistence instance`);if(e.config.cookieless_mode===hb)throw Error(`SessionIdManager cannot be used with cookieless_mode="always"`);this.qt=e.config,this.Si=e.persistence,this.Li=void 0,this.Ai=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Fi=t||Vb,this.Ni=n||Vb;var i=this.qt.persistence_name||this.qt.token;if(this._sessionTimeoutMs=1e3*x_(this.qt.session_idle_timeout_seconds||1800,60,36e3,kC.createLogger(`session_idle_timeout_seconds`),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Di(),this.$i=`ph_`+i+`_window_id`,this.qi=`ph_`+i+`_primary_window_exists`,this.ji()){var a=Qb.F(this.$i),o=Qb.F(this.qi);a&&!o?this.Li=a:Qb.q(this.$i),Qb.N(this.qi,!0)}if((r=this.qt.bootstrap)!=null&&r.sessionID)try{var s=(e=>{var t=this.qt.bootstrap.sessionID.replace(/-/g,``);if(t.length!==32)throw Error(`Not a valid UUID`);if(t[12]!==`7`)throw Error(`Not a UUIDv7`);return parseInt(t.substring(0,12),16)})();this.Bi(this.qt.bootstrap.sessionID,new Date().getTime(),s)}catch(e){kC.error(`Invalid sessionID in bootstrap`,e)}this.Hi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return Z(this.Mi)&&(this.Mi=[]),this.Mi.push(e),this.Ai&&e(this.Ai,this.Li),()=>{this.Mi=this.Mi.filter((t=>t!==e))}}ji(){return this.qt.persistence!==`memory`&&!this.Si.Tr&&Qb.O()}Ui(e){e!==this.Li&&(this.Li=e,this.ji()&&Qb.N(this.$i,e))}zi(){return this.Li?this.Li:this.ji()?Qb.F(this.$i):null}Vi(e){var t=this.Ei;return!l_(t)&&!l_(e)&&5e3>Math.abs(e-t)}Bi(e,t,n){var r=t!==this._sessionActivityTimestamp,i=!(e!==this.Ai||n!==this._sessionStartTimestamp);this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this.Ai=e,i&&!r||i&&this.Vi(t)||(this.Ei=t,this.Si.register({[Fy]:[t,e,n]}))}Wi(){var e=this.qt?.persistence_save_debounce_ms;return d_(e)&&e>0}Gi(){this.Wi()?this.Si.refreshKey(Fy):(this.Si.flush(),this.Si.load())}Zi(){if(!l_(this._sessionActivityTimestamp)&&this._sessionActivityTimestamp!==this.Ei){this.Gi();var[,e,t]=this.Qi();e===this.Ai&&t===this._sessionStartTimestamp&&(this.Ei=this._sessionActivityTimestamp,this.Si.register({[Fy]:[this._sessionActivityTimestamp,this.Ai??null,this._sessionStartTimestamp]}),this.Si.flush())}}Ji(){var[e]=this.Qi(),t=d_(e)?e:0,n=d_(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0;return Math.max(t,n)}Ki(e){return this.Gi(),this.Oi(e,this.Ji())}Qi(){var e=this.Si.props[Fy];return X(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.Ei=null,clearTimeout(this.Yi),this.Yi=void 0,this.Bi(null,null,null)}destroy(){this.Pi=!0,this.Zi(),clearTimeout(this.Yi),this.Yi=void 0,this.Ri&&G&&(G.removeEventListener(bb,this.Ri,{capture:!1}),this.Ri=void 0),this.Mi=[]}Hi(){this.Ri=()=>{this.Zi(),this.ji()&&Qb.q(this.qi)},Pb(G,bb,this.Ri,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(e===void 0&&(e=!1),t===void 0&&(t=null),this.qt.cookieless_mode===hb)throw Error(`checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"`);var n=t||new Date().getTime(),[,r,i]=this.Qi(),a=this.Ji(),o=this.zi(),s=d_(i)&&Math.abs(n-i)>864e5,c=!1,l=!1,u=!r,d=r,f=!u&&!e&&this.Oi(n,a);f&&((f=this.Ki(n))||kC.info(`cross-tab refresh kept the session alive`,{sessionId:r}),[,r,i]=this.Qi()),u||f||s?(r=this.Fi(),o=this.Ni(),kC.info(`new session ID generated`,{sessionId:r,windowId:o,changeReason:{noSessionId:u,activityTimeout:f,sessionPastMaximumLength:s}}),i=n,c=!0):(o||(o=this.Ni(),c=!0),(l=r!==d)&&(kC.info(`adopted cross-tab session id`,{sessionId:r,windowId:o}),c=!0));var p=d_(a)&&e&&!s?a:n,m=d_(i)?i:new Date().getTime();this.Ui(o),this.Bi(r,p,m),e||this.Di();var h={noSessionId:u,activityTimeout:f,sessionPastMaximumLength:s,crossTabAdoption:l};return c&&this.Mi.forEach((e=>e(r,o,h))),{sessionId:r,windowId:o,sessionStartTimestamp:m,changeReason:c?h:void 0,lastActivityTimestamp:a}}Di(){this.Pi||(clearTimeout(this.Yi),this.Yi=setTimeout((()=>{if(!this.Pi)if(this.Ki(new Date().getTime())){var e=this.Ai;this.resetSessionId(),this.Ti.emit(`forcedIdleReset`,{idleSessionId:e})}else this.Di()}),1.1*this.sessionTimeoutMs))}},jC=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&Qg(n,t))return!0;try{var r=e?.userAgentData;if(r!=null&&r.brands&&r.brands.some((e=>Qg(e?.brand,t))))return!0}catch{}return!!e.webdriver},MC=function(e,t){if(!function(e){try{new RegExp(e)}catch{return!1}return!0}(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function NC(e,t,n){return hC({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}var PC={exact:(e,t)=>
17t.some((t=>e.some((e=>t===e)))),is_not:(e,t)=>t.every((t=>e.every((e=>t!==e)))),regex:(e,t)=>t.some((t=>e.some((e=>MC(t,e))))),not_regex:(e,t)=>t.every((t=>e.every((e=>!MC(t,e))))),icontains:(e,t)=>t.map(FC).some((t=>e.map(FC).some((e=>t.includes(e))))),not_icontains:(e,t)=>t.map(FC).every((t=>e.map(FC).every((e=>!t.includes(e))))),gt:(e,t)=>t.some((t=>{var n=parseFloat(t);return!isNaN(n)&&e.some((e=>n>parseFloat(e)))})),lt:(e,t)=>t.some((t=>{var n=parseFloat(t);return!isNaN(n)&&e.some((e=>n<parseFloat(e)))}))},FC=e=>e.toLowerCase();function IC(e,t){return!e||Object.entries(e).every((e=>{var[n,r]=e,i=t?.[n];if(Z(i)||l_(i))return!1;var a=[String(i)],o=PC[r.operator];return!!o&&o(r.values,a)}))}var LC=`custom`,RC=`i.posthog.com`,zC=/^\/static\//,BC=class{constructor(e){this.Xi={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,``);return e===`https://app.posthog.com`?`https://us.i.posthog.com`:e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,``):this.apiHost}get uiHost(){var e=this.instance.config.ui_host?.replace(/\/$/,``);return e||=this.apiHost.replace(`.`+RC,`.posthog.com`),e===`https://app.posthog.com`?`https://us.posthog.com`:e}get region(){return this.Xi[this.apiHost]||(this.Xi[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?`us`:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?`eu`:LC),this.Xi[this.apiHost]}en(e){if(zC.test(e)){var t=this.instance.config.asset_host;if(typeof t==`string`)return t.trim().replace(/\/$/,``)||void 0}}endpointFor(e,t){if(t===void 0&&(t=``),t&&=t[0]===`/`?t:`/`+t,e===`ui`)return this.uiHost+t;if(e===`flags`)return this.flagsApiHost+t;if(e===`assets`){var n=this.en(t);if(n)return``+n+t}if(this.region===LC)return this.apiHost+t;var r=RC+t;switch(e){case`assets`:return`https://`+this.region+`-assets.`+r;case`api`:return`https://`+this.region+`.`+r}}},VC=py(`[Surveys]`),HC=`seenSurvey_`,UC=[xS.Popover,xS.Widget,xS.API],WC={ignoreConditions:!1,ignoreDelay:!1,displayType:wS.Popover},GC=py(`[PostHog ExternalIntegrations]`),KC={intercom:`intercom-integration`,crispChat:`crisp-chat-integration`},qC=class{constructor(e){this._instance=e}ur(e,t){var n;(n=q.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,e,(e=>{if(e)return GC.error(`failed to load script`,e);t()}))}startIfEnabledOrStop(){var e=this,t=function(t){var n,i,a;!r||(n=q.__PosthogExtensions__)!=null&&(n=n.integrations)!=null&&n[t]||e.ur(KC[t],(()=>{var n;(n=q.__PosthogExtensions__)==null||(n=n.integrations)==null||(n=n[t])==null||n.start(e._instance)})),!r&&(i=q.__PosthogExtensions__)!=null&&(i=i.integrations)!=null&&i[t]&&((a=q.__PosthogExtensions__)==null||(a=a.integrations)==null||(a=a[t])==null||a.stop())};for(var[n,r]of Object.entries((i=this._instance.config.integrations)??{})){var i;t(n)}}},JC,YC={},XC=0,ZC=()=>{},QC=`Consent opt in/out is not valid with cookieless_mode="always" and will be ignored`,$C=`Surveys module not available`,ew=`sanitize_properties is deprecated. Use before_send instead`,tw=`Invalid value for property_denylist config: `,nw=`posthog`,rw=!uC&&Ig?.indexOf(`MSIE`)===-1&&Ig?.indexOf(`Mozilla`)===-1,iw=e=>{var t;return J({api_host:`https://us.i.posthog.com`,flags_api_host:null,ui_host:null,asset_host:null,token:``,autocapture:!0,cross_subdomain_cookie:Nb(K?.location),persistence:`localStorage+cookie`,persistence_name:``,cookie_persisted_properties:[],loaded:ZC,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:`if_capture_pageview`,defaults:e??`unset`,__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,__preview_cookie_wins_on_conflict:!1,debug:jg&&s_(jg?.search)&&jg.search.indexOf(`__posthog_debug=true`)!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,strict_script_versioning:!1,enable_recording_console_log:void 0,secure_cookie:(G==null||(t=G.location)==null?void 0:t.protocol)===`https:`,ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:`localStorage`,consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(e){$.error(`Bad HTTP status: `+e.statusCode+` `+e.text)},get_device_id:e=>e,capture_performance:void 0,name:`posthog`,bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:vb,before_send:void 0,request_queue_config:{flush_interval_ms:xC},error_tracking:{},_onCapture:ZC},(e=>({rageclick:e&&e>=`2026-05-30`?{content_ignorelist:vx,ignore_text_selection:!0}
17:!e||`2025-11-30`>e||{content_ignorelist:!0},capture_pageview:!e||`2025-05-24`>e||`history_change`,session_recording:e&&e>=`2025-11-30`?{strictMinimumDuration:!0}:{},external_scripts_inject_target:e&&e>=`2026-01-30`?`head`:`body`,internal_or_test_user_hostname:e&&e>=`2026-01-30`?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:e&&e>=`2026-05-30`?250:0,split_storage:!(!e||`2026-05-30`>e),detect_google_search_app:!(!e||`2026-05-30`>e)}))(e))},aw=[[`process_person`,`person_profiles`],[`xhr_headers`,`request_headers`],[`cookie_name`,`persistence_name`],[`disable_cookie`,`disable_persistence`],[`__preview_disable_beacon`,`disable_beacon`],[`store_google`,`save_campaign_params`],[`verbose`,`debug`]],ow=e=>{var t={};for(var[n,r]of aw)Z(e[n])||(t[r]=e[n]);var i=Db({},t,e),a=e.__preview_external_dependency_versioned_paths;return Z(a)||(Z(e.strict_script_versioning)&&(i.strict_script_versioning=!!a),s_(a)&&Z(e.asset_host)&&(i.asset_host=a)),X(e.property_blacklist)&&(Z(e.property_denylist)?i.property_denylist=e.property_blacklist:X(e.property_denylist)?i.property_denylist=[...e.property_blacklist,...e.property_denylist]:$.error(tw+e.property_denylist)),i},sw=class{constructor(){this.__forceAllowLocalhost=!1}get tn(){return this.__forceAllowLocalhost}set tn(e){$.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}},cw=class e{rn(e,t){if(e){var n=this.nn.indexOf(e);n!==-1&&this.nn.splice(n,1)}return this.nn.push(t),t.initialize==null||t.initialize(),t}sn(){return this.config.cookieless_mode===hb||this.config.cookieless_mode===mb&&this.consent.isRejected()}get decideEndpointWasHit(){var e;return(e=this.featureFlags?.hasLoadedFlags)!=null&&e}get flagsEndpointWasHit(){var e;return(e=this.featureFlags?.hasLoadedFlags)!=null&&e}constructor(){this.webPerformance=new sw,this.an=!1,this.version=Rg.LIB_VERSION,this.ln=new OC,this.nn=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=iw(),this.SentryIntegration=Gx,this.sentryIntegration=e=>function(e,t){var n=Wx(e,t);return{name:Ux,processEvent:e=>n(e)}}(this,e),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint=`/e/`,this.un=!1,this.hn=null,this.cn=null,this.dn=null,this.scrollManager=new TC(this),this.pageViewManager=new Kx(this),this.rateLimiter=new OS(this),this.requestRouter=new BC(this),this.consent=new $b(this),this.externalIntegrations=new qC(this);var t=e.__defaultExtensionClasses??{};this.featureFlags=t.featureFlags&&new t.featureFlags(this),this.toolbar=t.toolbar&&new t.toolbar(this),this.surveys=t.surveys&&new t.surveys(this),this.conversations=t.conversations&&new t.conversations(this),this.logs=t.logs&&new t.logs(this),this.experiments=t.experiments&&new t.experiments(this),this.exceptions=t.exceptions&&new t.exceptions(this),this.people={set:(e,t,n)=>{var r=s_(e)?{[e]:t}:e;this.setPersonProperties(r),n?.({})},set_once:(e,t,n)=>{var r=s_(e)?{[e]:t}:e;this.setPersonProperties(void 0,r),n?.({})}},this.on(`eventCaptured`,(e=>$.info(`send "`+e?.event+`"`,e)))}init(t,n,r){if(r&&r!==nw){var i=YC[r]??new e;return i._init(t,n,r),YC[r]=i,YC[nw][r]=i,i}return this._init(t,n,r)}_init(e,t,n){var r;t===void 0&&(t={});var i=s_(e)?e.trim():``;if(!i)return $.critical(`PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()`),this;if(this.__loaded)return console.warn(`[PostHog.js]`,`You have already initialized PostHog! Re-initializing is a no-op`),this;this.__loaded=!0,this.config={},t.debug=this.vn(t.debug),this.fn=t,this.pn=[],t.person_profiles?this.cn=t.person_profiles:t.process_person&&(this.cn=t.process_person);var a=iw(t.defaults),o=ow(t),s=Db({},a,o,{name:n,token:i});a_(a.rageclick)&&a_(o.rageclick)&&(s.rageclick=Db({},a.rageclick,o.rageclick)),this.set_config(s),this.config.on_xhr_error&&$.error(`on_xhr_error is deprecated. Use on_request_error instead`),this.compression=t.disable_compression?void 0:jS.GZipJS;var c=this.gn();this.persistence=new yS(this.config,c),this.sessionPersistence=this.config.persistence===`
17sessionStorage`||this.config.persistence===`memory`?this.persistence:new yS(J({},this.config,{persistence:`sessionStorage`}),c,!1);var l=J({},this.persistence.props),u=J({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.mn=new SC((e=>this.yn(e)),this.config.request_queue_config),this.bn=new wC(this),this.__request_queue=[];var d=this.sn();if(d||(this.sessionManager=new AC(this),this.sessionPropsManager=new DC(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?($.info(`Deferring extension initialization to improve startup performance`),setTimeout((()=>{this._n(d)}),0)):($.info(`Initializing extensions synchronously`),this._n(d)),Rg.DEBUG=Rg.DEBUG||this.config.debug,Rg.DEBUG&&$.info(`Starting in debug mode`,{this:this,config:t,thisC:J({},this.config),p:l,s:u}),!this.config.identity_distinct_id||(r=t.bootstrap)!=null&&r.distinctID||(t.bootstrap=J({},t.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),t.bootstrap?.distinctID!==void 0){var f=t.bootstrap.distinctID,p=this.get_distinct_id(),m=this.persistence.get_property(tb);if(t.bootstrap.isIdentifiedID&&p!=null&&p!==f&&m===gb)this.identify(f);else if(t.bootstrap.isIdentifiedID&&p!=null&&p!==f&&m===_b)$.warn(`Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.`);else{var h=this.config.get_device_id(Vb()),g=t.bootstrap.isIdentifiedID?h:f;this.persistence.set_property(tb,t.bootstrap.isIdentifiedID?_b:gb),this.register({distinct_id:f,$device_id:g})}}if(d)this.register_once({distinct_id:lb,$device_id:null},``);else if(!this.get_distinct_id()){var _=this.config.get_device_id(Vb());this.register_once({distinct_id:_,$device_id:_},``),this.persistence.set_property(tb,gb)}return Pb(G,`onpagehide`in self?`pagehide`:`unload`,this._handle_unload.bind(this),{passive:!1}),t.segment?function(e,t){var n=e.config.segment;if(!n)return t();(function(e,t){var n=e.config.segment;if(!n)return t();var r=n=>{var r=()=>n.anonymousId()||Vb();e.config.get_device_id=r,n.id()&&(e.register({distinct_id:n.id(),$device_id:r()}),e.persistence.set_property(tb,_b)),t()},i=n.user();`then`in i&&i_(i.then)?i.then(r):r(i)})(e,(()=>{n.register((e=>{Promise&&Promise.resolve||Hx.warn(`This browser does not have Promise support, and can not use the segment integration`);var t=(t,n)=>{if(!n)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(Hx.info(`No userId set, resetting PostHog`),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(Hx.info(`UserId set, identifying with PostHog`),e.identify(t.event.userId));var r=e.calculateEventProperties(n,t.event.properties);return t.event.properties=Object.assign({},r,t.event.properties),t};return{name:`PostHog JS`,type:`enrichment`,version:`1.0.0`,isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>t(e,e.event.event),page:e=>t(e,xb),identify:e=>t(e,Cb),screen:e=>t(e,`$screen`)}})(e)).then((()=>{t()}))}))}(this,(()=>this.wn())):this.wn(),i_(this.config._onCapture)&&this.config._onCapture!==ZC&&($.warn("onCapture is deprecated. Please use `before_send` instead"),this.on(`eventCaptured`,(e=>this.config._onCapture(e.event,e)))),this.config.ip&&$.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}_n(t){var n=performance.now(),r=J({},e.__defaultExtensionClasses,this.config.__extensionClasses),i=[];r.featureFlags&&this.nn.push(this.featureFlags=this.featureFlags??new r.featureFlags(this)),r.exceptions&&this.nn.push(this.exceptions=this.exceptions??new r.exceptions(this)),r.historyAutocapture&&this.nn.push(this.historyAutocapture=new r.historyAutocapture(this)),r.tracingHeaders&&this.nn.push(this.tracingHeaders=new r.tracingHeaders(this)),r.siteApps&&this.nn.push(this.siteApps=new r.siteApps(this)),r.sessionRecording&&!t&&this.nn.push(this.sessionRecording=new r.sessionRecording(this)),this.config.disable_scroll_properties||i.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),r.autocapture&&this.nn.push(this.autocapture=new r.autocapture(this)),r.surveys&&this.nn.push(this.surveys=this.surveys??new r.surveys(this)),r.logs&&this.nn.push(this.logs=this.logs??new r.logs(this)),r.conversations&&this.nn.push(this.conversations=this.conversations??new r.conversations(this)),r.productTours&&this.nn.push(this.productTours=new r.productTours(this)),r.heatmaps&&this.nn.push(this.heatmaps=new r.heatmaps(this)),r.webVitalsAutocapture&&this.nn.push(this.webVitalsAutocapture=new r.webVitalsAutocapture(this)),r.exceptionObserver&&this.nn.push(this.exceptionObserver=new r.exceptionObserver(this)),r.deadClicksAutocapture&&this.nn.push(this.deadClicksAutocapture=new r.deadClicksAutocapture(this,Bx)),r.toolbar&&this.nn.push(this.toolbar=this.toolbar??new r.toolbar(this)),r.experiments&&this.nn.push(this.experiments=this.experiments??new r.experiments(this)),this.nn.forEach((e=>{e.initialize&&i.push((()=>{e.initialize==null||e.initialize()}))})),i.push((()=>
17{if(this.xn){var e=this.xn;this.xn=void 0,this.Qr(e)}})),this.kn(i,n)}kn(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout((()=>{this.kn(e,t)}),0);var n=e.shift();if(n)try{n()}catch(e){$.error(`Error initializing extension:`,e)}}var r=Math.round(performance.now()-t);this.register_for_session({[ub]:this.config.__preview_deferred_init_extensions?`deferred`:`synchronous`,[db]:r}),this.config.__preview_deferred_init_extensions&&$.info(`PostHog extensions initialized (`+r+`ms)`)}Qr(e){var t;if(!K||!K.body)return $.info(`document not ready yet, trying again in 500 milliseconds...`),void setTimeout((()=>{this.Qr(e)}),500);this.config.__preview_deferred_init_extensions&&(this.xn=e),this.Sn=e,this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Y(e.supportedCompression,jS.GZipJS)?jS.GZipJS:Y(e.supportedCompression,jS.Base64)?jS.Base64:void 0),(t=e.analytics)!=null&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.cn?this.cn:vb}),this.nn.forEach((t=>t.onRemoteConfig==null?void 0:t.onRemoteConfig(e)))}wn(){try{this.config.loaded(this)}catch(e){$.critical("`loaded` function failed",e)}if(this.Cn(),this.config.internal_or_test_user_hostname&&jg!=null&&jg.hostname){var e=jg.hostname,t=this.config.internal_or_test_user_hostname;(typeof t==`string`?e===t:t.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.sn())&&this.In()}),1),this.Tn=new AS(this),this.Tn.load()}Cn(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.mn)==null||e.enable())}_dom_loaded(){this.is_capturing()&&Tb(this.__request_queue,(e=>this.yn(e))),this.__request_queue=[],this.Cn()}_handle_unload(){var e,t,n,r;(e=this.surveys)==null||e.handlePageUnload(),this.config.request_batching?(this.En()&&this.capture(Sb),(t=this.logs)==null||t.flushLogs(`sendBeacon`),(n=this.mn)==null||n.unload(),(r=this.bn)==null||r.unload()):this.En()&&this.capture(Sb,null,{transport:`sendBeacon`})}_send_request(e){this.__loaded&&(rw?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=mC(e.url,{ip:+!!this.config.ip}),e.headers=J({},this.config.request_headers,e.headers),e.compression=e.compression===`best-available`?this.compression:e.compression,(Z(this.config.disable_beacon)?this.config.__preview_disable_beacon:this.config.disable_beacon)&&(e.disableTransport=[`sendBeacon`]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(e=>{var t=J({},e);t.timeout=t.timeout||6e4,t.url=yC(t.url,t.compression);var n=t.transport??`fetch`,r=bC.filter((e=>!t.disableTransport||!e.transport||!t.disableTransport.includes(e.transport))),i=function(e,t){for(var r=0;e.length>r;r++)if(e[r].transport===n)return e[r]}(r)?.method??r[0].method;if(!i)throw Error(`No available transport method`);n!==`sendBeacon`&&t.data&&t.compression===jS.GZipJS&&Fg&&!fC?vC(t).then((e=>{i(e)})).catch((n=>{if(qg(n))return fC=!0,void i(J({},t,{compression:void 0,url:yC(e.url,void 0)}));(e=>{if(!e||typeof e!=`object`)return!1;var t=`name`in e?String(e.name):``;return qg(e)||t===Gg})(n)&&(fC=!0),i(t)})):i(t)})(J({},e,{callback:t=>{var n,r;this.rateLimiter.checkForLimiting(t),400>t.statusCode||(n=(r=this.config).on_request_error)==null||n.call(r,t),e.callback==null||e.callback(t)}}))))}yn(e){this.bn?this.bn.retriableRequest(e):this._send_request(e)}_execute_array(e){XC++;try{var t,n=[],r=[],i=[];Tb(e,(e=>{if(e)if(X(t=e[0]))i.push(e);else if(i_(e))try{e.call(this)}catch(t){$.error(`Error executing queued PostHog call`,e,t)}else X(e)&&t===`alias`?n.push(e):X(e)&&t.indexOf(`capture`)!==-1&&i_(this[t])?i.push(e):r.push(e)}));var a=function(e,t){Tb(e,(function(e){try{if(X(e[0])){var n=t;Eb(e,(function(e){n=n[e[0]].apply(n,e.slice(1))}))}else t[e[0]].apply(t,e.slice(1))}catch(t){$.error(`Error executing queued PostHog call`,e,t)}}))};a(n,this),a(r,this),a(i,this)}finally{XC--}}push(t){if(XC>0&&X(t)&&s_(t[0])){var n=e.prototype[t[0]];i_(n)&&n.apply(this,t.slice(1))}else this._execute_array([t])}capture(e,t,n){var r,i,a,o;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.mn){if(this.is_capturing())if(!Z(e)&&s_(e)){var s=!this.config.opt_out_useragent_filter&&this._is_bot();if(!s||this.config.__preview_capture_bot_pageviews){var c=n!=null&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(c==null||!c.isRateLimited){t!=null&&t.$current_url&&!s_(t?.$current_url)&&($.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),t==null||delete t.$current_url),e!==`$exception`||n!=null&&n.Mn||$.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var l=new Date,u=n?.timestamp||l,d=n?.uuid||Vb(),f={uuid:d,event:e,properties:this.calculateEventProperties(e,t||{},u,d)};e===xb&&this.config.__preview_capture_bot_pageviews&&s&&(f.event=`$bot_pageview`,f.properties.$browser_type=`bot`),c&&(f.properties.$lib_rate_limit_remaining_tokens=c.remainingTokens),n!=null&&n.$set&&(f.$set=n?.$set);var p,m,h,g=this.Rn(n?.$set_once,e!==wb,e===Cb);if(g&&(f.$set_once=g),n!=null&&n._noTruncate||(r=this.config.properties_string_max_length,i=f,a=e=>s_(e)?e.slice(0,r):e,o=new Set,f=function e(t,n){return t===Object(t)?o.has(t)?void 0:(o.add(t),X(t)?(r=[],Tb(t,(t=>{r.push(e(t))}))):(r={},Eb(t,((t,n)=>{o.has(t)||(r[n]=e(t,n))}))),r):a?a(t):t;var r}(i)),f.timestamp=u,Z(n?.timestamp)||(f.properties.$event_time_override_provided=!0,f.properties.$event_time_override_system_time=l),e===SS.DISMISSED||e===SS.SENT){var _=t?.[CS.SURVEY_ID],v=t?.[CS.SURVEY_ITERATION];(e=>{try{var t=(e=>((e,t)=>{var n=``+HC+t.id;return t.current_iteration&&t.current_iteration>0&&(n=``+HC+t.id+`_`+t.current_iteration),n})(0,e))(e);if(localStorage.getItem(t))return;localStorage.setItem(t,`true`)}catch(e){VC.error(`Failed to persist survey seen state`,e)}})({id:_,current_iteration:v}),f.$set=J({},f.$set,{[(p={id:_,current_iteration:v},m=e===SS.SENT?`responded`:`dismissed`,h=`$survey_`+m+`/`+p.id,p.current_iteration&&p.current_iteration>0&&(h=`$survey_`+m+`/`+p.id+`/`+p.current_iteration),h)]:!0})}else e===SS.SHOWN&&(f.$set=J({},f.$set,{[CS.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===TS.SHOWN){var y=t?.[ES.TOUR_TYPE];y&&(f.$set=J({},f.$set,{[ES.TOUR_LAST_SEEN_DATE+`/`+y]:new Date().toISOString()}))}var b=J({},f.properties.$set,f.$set);if(o_(b)||this.setPersonPropertiesForFlags(b),!Q(this.config.before_send)){var x=this.Pn(f);if(!x)return;f=x}this.ln.emit(`eventCaptured`,f);var S={method:`POST`,url:n?._url??this.requestRouter.endpointFor(`api`,this.analyticsDefaultEndpoint),data:f,compression:`best-available`,batchKey:n?._batchKey,transport:n?.transport};return!this.config.request_batching||n&&(n==null||!n._batchKey)||n!=null&&n.send_instantly?this.yn(S):this.mn.enqueue(S),f}$.critical(`This capture call is ignored due to client rate limiting.`)}}else $.error(`No event name provided to posthog.capture`)}else $.uninitializedWarning(`posthog.capture`)}_addCaptureHook(e){return this.on(`eventCaptured`,(t=>e(t.event,t)))}calculateEventProperties(e,t,n,r,i){if(n||=new Date,!this.persistence||!this.sessionPersistence)return t;var a=i?void 0:this.persistence.remove_event_timer(e),o=J({},t);if(o.token=this.config.token,o.$config_defaults=this.config.defaults,this.sn()&&(o.$cookieless_mode=!0),e===`$snapshot`){var s=J({},this.persistence.properties(),this.sessionPersistence.properties());return o.distinct_id=s.distinct_id,(!s_(o.distinct_id)&&!u_(o.distinct_id)||c_(o.distinct_id))&&$.error(`Invalid distinct_id for replay event. This indicates a bug in your implementation`),o}var c,l=function(e,t,n){var r,i,a;if(!Ig)return{};var o,s,c,l,u,d=e?[...nS,...t||[]]:[],[f,p]=function(e){for(var t=0;Ov.length>t;t++){var[n,r]=Ov[t],i=n.exec(e),a=i&&(i_(r)?r(i,e):r);if(a)return a}return[``,``]}(Ig),m=(o=typeof navigator<`u`?navigator:void 0)!=null&&o.brave?{brave:!0}:{},h={detectGoogleSearchApp:n},g=Db(jb({$os:f,$os_version:p,$browser:Tv(Ig,navigator.vendor,m,h),$device:kv(Ig),$device_type:(c=Ig,l={userAgentDataPlatform:(r=navigator)==null||(r=r.userAgentData)==null?void 0:r.platform,maxTouchPoints:navigator?.maxTouchPoints,screenWidth:G==null||(i=G.screen)==null?void 0:i.width,screenHeight:G==null||(a=G.screen)==null?void 0:a.height,devicePixelRatio:G?.devicePixelRatio},u=kv(c),u===j_||u===A_||u===`Kobo`||u===`Kindle Fire`||u===sv?k_:u===X_||u===Q_||u===Z_||u===iv?`Console`:u===N_?`Wearable`:u?E_:l?.userAgentDataPlatform===`Android`&&(l?.maxTouchPoints??0)>0?600>Math.min(l?.screenWidth??0,l?.screenHeight??0)/(l?.devicePixelRatio??1)?E_:k_:`Desktop`),$timezone:mS(),$timezone_offset:hS()}),{$current_url:$x(jg?.href,d,iS),$host:jg?.host,$pathname:jg?.pathname,$raw_user_agent:Ig.length>1e3?Ig.substring(0,997)+`...`:Ig,$browser_version:Dv(Ig,navigator.vendor,m,h),$browser_language:l
17S(),$browser_language_prefix:(s=lS(),typeof s==`string`?s.split(`-`)[0]:void 0),$screen_height:G?.screen.height,$screen_width:G?.screen.width,$viewport_height:G?.innerHeight,$viewport_width:G?.innerWidth,$lib:Rg.LIB_NAME,$lib_version:Rg.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3});return Rg.SDK_DIST_CHANNEL&&(g.$sdk_dist_channel=Rg.SDK_DIST_CHANNEL),g}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties,this.config.detect_google_search_app);if(this.sessionManager){var{sessionId:u,windowId:d}=this.sessionManager.checkAndGetSessionAndWindowId(i,n.getTime());o.$session_id=u,o.$window_id=d}this.sessionPropsManager&&Db(o,this.sessionPropsManager.getSessionProps());try{this.sessionRecording&&Db(o,this.sessionRecording.sdkDebugProperties),o.$sdk_debug_retry_queue_size=this.bn?.length}catch(e){o.$sdk_debug_error_capturing_properties=String(e)}if(this.requestRouter.region===LC&&(o.$lib_custom_api_host=this.config.api_host),c=e!==xb||i?e!==Sb||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,r),o=Db(o,c),e===xb&&K&&(o.title=K.title),!Z(a)){var f=n.getTime()-a;o.$duration=parseFloat((f/1e3).toFixed(3))}Ig&&this.config.opt_out_useragent_filter&&(o.$browser_type=this._is_bot()?`bot`:`browser`),(o=Db({},l,this.persistence.properties(),this.sessionPersistence.properties(),o)).$is_identified=this._isIdentified(),X(this.config.property_denylist)?Eb(this.config.property_denylist,(function(e){delete o[e]})):$.error(tw+this.config.property_denylist+` or property_blacklist config: `+this.config.property_blacklist);var p=this.config.sanitize_properties;p&&($.error(ew),o=p(o,e));var m=this.On();return o.$process_person_profile=m,m&&!i&&this.Ln(`_calculate_event_properties`),o}Rn(e,t,n){if(t===void 0&&(t=!0),n===void 0&&(n=!1),!this.persistence||!this.On()||this.an&&!n)return e;var r=Db({},this.persistence.get_initial_props(),this.sessionPropsManager?.getSetOnceProps()||{},e||{}),i=this.config.sanitize_properties;return i&&($.error(ew),r=i(r,`$set_once`)),t&&(this.an=!0),o_(r)?void 0:r}register(e,t){var n;(n=this.persistence)==null||n.register(e,t)}register_once(e,t,n){var r;(r=this.persistence)==null||r.register_once(e,t,n)}register_for_session(e){var t;(t=this.sessionPersistence)==null||t.register(e)}unregister(e){var t;(t=this.persistence)==null||t.unregister(e)}unregister_for_session(e){var t;(t=this.sessionPersistence)==null||t.unregister(e)}An(e,t){this.register({[e]:t})}getFeatureFlag(e,t){return this.featureFlags?.getFeatureFlag(e,t)}getFeatureFlagPayload(e){return this.featureFlags?.getFeatureFlagPayload(e)}getFeatureFlagResult(e,t){return this.featureFlags?.getFeatureFlagResult(e,t)}isFeatureEnabled(e,t){return this.featureFlags?.isFeatureEnabled(e,t)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,t,n){var r;(r=this.featureFlags)==null||r.updateFlags(e,t,n)}updateEarlyAccessFeatureEnrollment(e,t,n){var r;(r=this.featureFlags)==null||r.updateEarlyAccessFeatureEnrollment(e,t,n)}getEarlyAccessFeatures(e,t,n){return t===void 0&&(t=!1),this.featureFlags?.getEarlyAccessFeatures(e,t,n)}on(e,t){return this.ln.on(e,t)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:$C}),()=>{})}onSessionId(e){return this.sessionManager?.onSessionId(e)??(()=>{})}getSurveys(e,t){t===void 0&&(t=!1),this.surveys?this.surveys.getSurveys(e,t):e([],{isLoaded:!1,error:$C})}getActiveMatchingSurveys(e,t){t===void 0&&(t=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,t):e([],{isLoaded:!1,error:$C})}renderSurvey(e,t){var n;(n=this.surveys)==null||n.renderSurvey(e,t)}displaySurvey(e,t){var n;t===void 0&&(t=WC),(n=this.surveys)==null||n.displaySurvey(e,t)}cancelPendingSurvey(e){var t;(t=this.surveys)==null||t.cancelPendingSurvey(e)}canRenderSurvey(e){return this.surveys?.canRenderSurvey(e)??{visible:!1,disabledReason:$C}}canRenderSurveyAsync(e,t){return t===void 0&&(t=!1),this.surveys?.canRenderSurveyAsync(e,t)??Promise.resolve({visible:!1,disabledReason:$C})}Fn(e){return!e||c_(e)?($.critical(`Unique user id has not been set in posthog.identify`),!1):e===lb?
17($.critical(`The string "`+e+`" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.`),!1):![`distinct_id`,`distinctid`].includes(e.toLowerCase())&&![`undefined`,`null`].includes(e.toLowerCase())||($.critical(`The string "`+e+`" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.`),!1)}identify(e,t,n){if(!this.__loaded||!this.persistence)return $.uninitializedWarning(`posthog.identify`);if(u_(e)&&(e=e.toString(),$.warn(`The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.`)),this.Fn(e)&&this.Ln(`posthog.identify`)){var r=this.get_distinct_id();this.register({$user_id:e}),this.get_property(_y)||this.register_once({$had_persisted_distinct_id:!0,$device_id:r},``),e!==r&&e!==this.get_property(vy)&&(this.unregister(vy),this.register({distinct_id:e}));var i,a=(this.persistence.get_property(tb)||gb)===gb;e!==r&&a?(this.persistence.set_property(tb,_b),this.setPersonPropertiesForFlags({$set:t||{},$set_once:n||{}},!1),this.capture(Cb,{distinct_id:e,$anon_distinct_id:r},{$set:t||{},$set_once:n||{}}),this.dn=NC(e,t,n),(i=this.featureFlags)==null||i.setAnonymousDistinctId(r)):(t||n)&&this.setPersonProperties(t,n),e!==r&&(this.reloadFeatureFlags(),this.unregister(Zy))}}setPersonProperties(e,t){if((e||t)&&this.Ln(`posthog.setPersonProperties`)){var n=NC(this.get_distinct_id(),e,t);this.dn===n?$.info(`A duplicate setPersonProperties call was made with the same properties. It has been ignored.`):(this.setPersonPropertiesForFlags({$set:e||{},$set_once:t||{}},!0),this.capture(`$set`,{$set:e||{},$set_once:t||{}}),this.dn=n)}}group(e,t,n){if(e&&t){var r=this.getGroups(),i=r[e]!==t;if(i&&this.resetGroupPropertiesForFlags(e),this.register({$groups:J({},r,{[e]:t})}),i||n){var a={$group_type:e,$group_key:t};n&&(a.$group_set=n),this.capture(wb,a)}n&&this.setGroupPropertiesForFlags({[e]:n}),i&&!n&&this.reloadFeatureFlags()}else $.error(`posthog.group requires a group type and group key`)}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){var n;t===void 0&&(t=!0),(n=this.featureFlags)==null||n.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(e){var t;e===void 0&&(e=!0),(t=this.featureFlags)==null||t.resetPersonPropertiesForFlags(e)}setGroupPropertiesForFlags(e,t){var n;t===void 0&&(t=!0),this.Ln(`posthog.setGroupPropertiesForFlags`)&&((n=this.featureFlags)==null||n.setGroupPropertiesForFlags(e,t))}resetGroupPropertiesForFlags(e){var t;(t=this.featureFlags)==null||t.resetGroupPropertiesForFlags(e)}reset(e){var t,n,r,i,a,o,s,c;if($.info(`reset`),!this.__loaded)return $.uninitializedWarning(`posthog.reset`);var l,u=this.get_property(_y),d=this.get_property(ky);if(this.consent.reset(),(t=this.persistence)==null||t.clear(),(n=this.sessionPersistence)==null||n.clear(),Z(d)||(l=this.persistence)==null||l.register({[ky]:d}),(r=this.surveys)==null||r.reset(),(i=this.Tn)==null||i.stop(),(a=this.featureFlags)==null||a.reset(),(o=this.conversations)==null||o.reset(),(s=this.persistence)==null||s.set_property(tb,gb),(c=this.sessionManager)==null||c.resetSessionId(),this.dn=null,this.config.cookieless_mode===hb)this.register_once({distinct_id:lb,$device_id:null},``);else{var f=this.config.get_device_id(Vb());this.register_once({distinct_id:f,$device_id:e?f:u},``)}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(e,t){var n;this.config.identity_distinct_id=e,this.config.identity_hash=t,this.alias(e),(n=this.conversations)==null||n.Nn()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,(e=this.conversations)==null||e.Dn()}get_distinct_id(){return this.get_property(`distinct_id`)}getGroups(){return this.get_property(`$groups`)||{}}get_session_id(){return this.sessionManager?.checkAndGetSessionAndWindowId(!0).sessionId??``}get_session_replay_url(e){if(!this.sessionManager)return``;var{sessionId:t,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=this.requestRouter.endpointFor(`ui`,`/project/`+this.config.token+`/replay/`+t);if(e!=null&&e.withTimestamp&&n){var i=e.timestampLookBack??10;if(!n)return r;r+=`?t=`+Math.max(Math.floor((new Date().getTime()-n)/1e3)-i,0)}return r}alias(e,t){return e===this.get_property(gy)?($.critical(`Attempting to create alias for existing People user - aborting.`),-2):this.Ln(`posthog.alias`)?(Z(t)&&(t=this.get_distinct_id()),e===t?($.warn(`alias matches current distinct_id - skipping api call.`),this.identify(e),-1):(this.An(vy,e),this.capture(`$create_alias`,{alias:e,distinct_id:t}))):void 0}set_config(e){var t=J({},this.config);if(a_(e)){var n,r,i,a,o,s,c,l,u,d,f;Db(this.config,ow(e));var p=this.gn();(n=this.persistence)==null||n.update_config(this.config,t,p),this.sessionPersistence=this.config.persistence===`
17sessionStorage`||this.config.persistence===`memory`?this.persistence:new yS(J({},this.config,{persistence:`sessionStorage`}),p,!1);var m=this.vn(this.config.debug);f_(m)&&(this.config.debug=m),f_(this.config.debug)&&(this.config.debug?(Rg.DEBUG=!0,qb.O()&&qb.N(`ph_debug`,!0),$.info(`set_config`,{config:e,oldConfig:t,newConfig:J({},this.config)})):(Rg.DEBUG=!1,qb.O()&&qb.q(`ph_debug`))),(r=this.exceptionObserver)==null||r.onConfigChange(),(i=this.exceptions)==null||i.onConfigChange(),(a=this.sessionRecording)==null||a.startIfEnabledOrStop(),(o=this.tracingHeaders)==null||o.startIfEnabledOrStop(),(s=this.autocapture)==null||s.startIfEnabled(),(c=this.heatmaps)==null||c.startIfEnabled(),(l=this.exceptionObserver)==null||l.startIfEnabledOrStop(),(u=this.deadClicksAutocapture)==null||u.startIfEnabledOrStop(),(d=this.surveys)==null||d.loadIfEnabled(),this.$n(),(f=this.externalIntegrations)==null||f.startIfEnabledOrStop()}}_overrideSDKInfo(e,t){Rg.LIB_NAME=e,Rg.LIB_VERSION=t}startSessionRecording(e){var t,n,r,i,a,o=!0===e,s={sampling:o||!(e==null||!e.sampling),linked_flag:o||!(e==null||!e.linked_flag),url_trigger:o||!(e==null||!e.url_trigger),event_trigger:o||!(e==null||!e.event_trigger)};Object.values(s).some(Boolean)&&((t=this.sessionManager)==null||t.checkAndGetSessionAndWindowId(),s.sampling&&((n=this.sessionRecording)==null||n.overrideSampling()),s.linked_flag&&((r=this.sessionRecording)==null||r.overrideLinkedFlag()),s.url_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger(`url`)),s.event_trigger&&((a=this.sessionRecording)==null||a.overrideTrigger(`event`))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,t){if(this.exceptions){var n=Error(`PostHog syntheticException`),r=this.exceptions.buildProperties(e,{handled:!0,syntheticException:n});return this.exceptions.sendExceptionEvent(J({},r,t))}}addExceptionStep(e,t){var n;(n=this.exceptions)==null||n.addExceptionStep(e,t)}captureLog(e){var t;(t=this.logs)==null||t.captureLog(e)}get logger(){return this.logs?.logger??e.qn}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var t;return(t=this.toolbar?.loadToolbar(e))!=null&&t}get_property(e){return this.persistence?.props[e]}getSessionProperty(e){return this.sessionPersistence?.props[e]}toString(){var e=this.config.name??nw;return e!==nw&&(e=nw+`.`+e),e}_isIdentified(){return this.persistence?.get_property(tb)===_b||this.sessionPersistence?.get_property(tb)===_b}On(){var e,t;return!(this.config.person_profiles===`never`||this.config.person_profiles===vb&&!this._isIdentified()&&o_(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[vy])&&((t=this.persistence)==null||(t=t.props)==null||!t[sb]))}En(){return!0===this.config.capture_pageleave||this.config.capture_pageleave===`if_capture_pageview`&&(!0===this.config.capture_pageview||this.config.capture_pageview===`history_change`)}createPersonProfile(){this.On()||this.Ln(`posthog.createPersonProfile`)&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.Ln(`posthog.setInternalOrTestUser`)&&this.setPersonProperties({$internal_or_test_user:!0})}Ln(e){return this.config.person_profiles===`never`?($.error(e+` was called, but process_person is set to "never". This call will be ignored.`),!1):(this.An(sb,!0),!0)}gn(){if(this.config.cookieless_mode===`always`)return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==mb)}$n(){var e,t,n=this.gn();return this.persistence?.Tr!==n&&((e=this.persistence)==null||e.set_disabled(n)),this.sessionPersistence?.Tr!==n&&((t=this.sessionPersistence)==null||t.set_disabled(n)),n}opt_in_capturing(t){var n;if(this.config.cookieless_mode!==hb){if(this.sn()){var r,i;this.reset(!0),(r=this.sessionManager)==null||r.destroy(),(i=this.pageViewManager)==null||i.destroy(),this.sessionManager=new AC(this),this.pageViewM
17anager=new Kx(this),this.persistence&&(this.sessionPropsManager=new DC(this,this.sessionManager,this.persistence));var a,o=this.config.__extensionClasses?.sessionRecording??e.__defaultExtensionClasses?.sessionRecording;o&&(this.sessionRecording=this.rn(this.sessionRecording,new o(this)),this.Sn&&((a=this.sessionRecording)==null||a.onRemoteConfig==null||a.onRemoteConfig(this.Sn)))}var s;this.consent.optInOut(!0),this.$n(),this.Cn(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode==mb&&((s=this.surveys)==null||s.loadIfEnabled()),(Z(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture(t?.captureEventName??`$opt_in`,t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.In()}else $.warn(QC)}opt_out_capturing(){var e,t,n;this.config.cookieless_mode===hb?$.warn(QC):(this.config.cookieless_mode===mb&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.$n(),this.config.cookieless_mode===mb&&(this.register({distinct_id:lb,$device_id:null}),(e=this.sessionRecording)==null||e.stopRecording(),this.sessionRecording=void 0,(t=this.sessionManager)==null||t.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.config.capture_pageview&&this.In(),this.Cn()))}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===1?`granted`:e===0?`denied`:`pending`}is_capturing(){return this.config.cookieless_mode===hb||(this.config.cookieless_mode===mb?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.$n()}_is_bot(){return Ag?jC(Ag,this.config.custom_blocked_useragents):void 0}In(){K&&(K.visibilityState===`visible`?this.un||(this.un=!0,this.capture(xb,{title:K.title},{send_instantly:!0}),this.hn&&=(K.removeEventListener(yb,this.hn),null)):this.hn||(this.hn=this.In.bind(this),Pb(K,yb,this.hn)))}debug(e){!1===e?(G?.console.log(`You've disabled debug mode.`),this.set_config({debug:!1})):(G?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Kr(){var e,t,n,r,i,a,o=this.fn||{};return`advanced_disable_flags`in o?!!o.advanced_disable_flags:!1===this.config.advanced_disable_flags?!0===this.config.advanced_disable_decide?($.warn(`Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version.`),!0):(n=`advanced_disable_decide`,r=$,i=(t=`advanced_disable_flags`)in(e=o)&&!Q(e[t]),a=n in e&&!Q(e[n]),i?e[t]:!!a&&(r&&r.warn(`Config field '`+n+`' is deprecated. Please use '`+t+`' instead. The old field will be removed in a future major version.`),e[n])):!!this.config.advanced_disable_flags}Pn(e){if(Q(this.config.before_send))return e;var t=X(this.config.before_send)?this.config.before_send:[this.config.before_send],n=e;for(var r of t){if(n=r(n),Q(n)){var i=`Event '`+e.event+`' was rejected in beforeSend function`;return m_(e.event)?$.warn(i+`. This can cause unexpected behavior.`):$.info(i),null}n.properties&&!o_(n.properties)||$.warn(`Event '`+e.event+`' has no properties after beforeSend function, this is likely an error.`)}return n}getPageViewId(){return this.pageViewManager.dr?.pageViewId}captureTraceFeedback(e,t){this.capture(`$ai_feedback`,{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,n){this.capture(`$ai_metric`,{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(n)})}vn(e){var t=f_(e)&&!e,n=qb.O()&&qb.A(`ph_debug`)===`true`;return!t&&(!!n||e)}};cw.__defaultExtensionClasses={},cw.qn={trace:JC=()=>{},debug:JC,info:JC,warn:JC,error:JC,fatal:JC},function(e,t){for(var n=0;t.length>n;n++)e.prototype[t[n]]=Ab(e.prototype[t[n]])}(cw,[`identify`]);var lw=class{constructor(e){this.disabled=!1===e;var t=a_(e)?e:{};this.thresholdPx=t.threshold_px||30,this.timeoutMs=t.timeout_ms||1e3,this.clickCount=t.click_count||3,this.clicks=[]}isRageClick(e,t,n){if(this.disabled)return!1;var r=this.clicks[this.clicks.length-1];if(r&&Math.abs(e-r.x)+Math.abs(t-r.y)<this.thresholdPx&&this.timeoutMs>n-r.timestamp){if(this.clicks.push({x:e,y:t,timestamp:n}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:n}];return!1}},uw=`$copy_autocapture`,dw=py(`[AutoCapture]`);function fw(e,t){return t.length>e?t.slice(0,e)+`...`:t}function pw(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!ix(t));return t}function mw(e,t){var n,{e:r,maskAllElementAttributes:i,maskAllText:a,elementAttributeIgnoreList:o,elementsC
17hainAsString:s}=t;if(!ix(e))return{props:{}};for(var c=[e],l=e;l.parentNode&&!ax(l,`body`);)if(sx(l.parentNode))c.push(l.parentNode.host),l=l.parentNode.host;else{if(!ix(l.parentNode))break;c.push(l.parentNode),l=l.parentNode}var u,d,f=[],p={},m=!1,h=!1;if(Eb(c,(e=>{var t=Tx(e);if(ax(e,`a`)){var n=e.getAttribute(`href`);m=t&&!!n&&Nx(n)&&n}Y(ux(e),`ph-no-capture`)&&(h=!0),f.push(function(e,t,n,r){var i=e.tagName.toLowerCase(),a={tag_name:i};mx.indexOf(i)>-1&&!n&&(a.$el_text=i.toLowerCase()===`a`||i.toLowerCase()===`button`?fw(1024,Px(e)):fw(1024,fx(e)));var o=ux(e);o.length>0&&(a.classes=o.filter((function(e){return e!==``}))),Eb(e.attributes,(function(n){var i;if((!Ex(e)||[`name`,`id`,`class`,`aria-label`].indexOf(n.name)!==-1)&&(r==null||!r.includes(n.name))&&!t&&Nx(n.value)&&(!s_(i=n.name)||i.substring(0,10)!==`_ngcontent`&&i.substring(0,7)!==`_nghost`)){var o=n.value;n.name===`class`&&(o=cx(o).join(` `)),a[`attr__`+n.name]=fw(1024,o)}}));for(var s=1,c=1,l=e;l=pw(l);)s++,l.tagName===e.tagName&&c++;return a.nth_child=s,a.nth_of_type=c,a}(e,i,a,o)),Db(p,function(e){if(!Tx(e))return{};var t={};return Eb(e.attributes,(function(e){if(e.name&&e.name.indexOf(`data-ph-capture-attribute`)===0){var n=e.name.replace(`data-ph-capture-attribute-`,``),r=e.value;n&&r&&Nx(r)&&(t[n]=r)}})),t}(e))})),h)return{props:{},explicitNoCapture:h};if(a||(f[0].$el_text=ax(e,`a`)||ax(e,`button`)?Px(e):fx(e)),m){var g;f[0].attr__href=m;var _=Zx(m)?.host,v=G==null||(g=G.location)==null?void 0:g.host;_&&v&&_!==v&&(u=m)}return{props:Db({$event_type:r.type,$ce_version:1},s?{}:{$elements:f},{$elements_chain:(d=f,function(e){return e.map((e=>{var t=``;if(e.tag_name&&(t+=e.tag_name),e.attr_class)for(var n of(e.attr_class.sort(),e.attr_class))t+=`.`+n.replace(/"/g,``);var r=J({},e.text?{text:e.text}:{},{"nth-child":e.nth_child??0,"nth-of-type":e.nth_of_type??0},e.href?{href:e.href}:{},e.attr_id?{attr_id:e.attr_id}:{},e.attributes),i={};return Ob(r).sort(((e,t)=>{var[n]=e,[r]=t;return n.localeCompare(r)})).forEach((e=>{var[t,n]=e;return i[Ix(t.toString())]=Ix(n.toString())})),(t+=`:`)+Ob(i).map((e=>{var[t,n]=e;return t+`="`+n+`"`})).join(``)})).join(`;`)}(function(e){return e.map((e=>{var t={text:e.$el_text?.slice(0,400),tag_name:e.tag_name,href:e.attr__href?.slice(0,2048),attr_class:Lx(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return Ob(e).filter((e=>{var[t]=e;return t.indexOf(`attr__`)===0})).forEach((e=>{var[n,r]=e;return t.attributes[n]=r})),t}))}(d)))},(n=f[0])!=null&&n.$el_text?{$el_text:f[0]?.$el_text}:{},u&&r.type===`click`?{$external_click_url:u}:{},p)}}var hw=py(`[ExceptionAutocapture]`),gw=py(`[TracingHeaders]`),_w=py(`[Web Vitals]`),vw=9e5,yw=`disabled`,bw=`lazy_loading`,xw=`awaiting_config`,Sw=`missing_config`;py(`[SessionRecording]`),py(`[SessionRecording]`);var Cw=`[SessionRecording]`,ww=py(Cw),Tw=py(`[Heatmaps]`);function Ew(e){return a_(e)&&`clientX`in e&&`clientY`in e&&u_(e.clientX)&&u_(e.clientY)}var Dw=py(`[Product Tours]`),Ow=[`$set_once`,`$set`],kw=py(`[SiteApps]`),Aw=`Error while initializing PostHog app with config id `;function jw(e,t,n){if(Q(e))return!1;switch(n){case`exact`:return e===t;case`contains`:var r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`).replace(/_/g,`.`).replace(/%/g,`.*`);return new RegExp(r,`i`).test(e);case`regex`:try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}var Mw=class{constructor(e){this.jn=new OC,this.Bn=(e,t)=>this.Hn(e,t)&&this.Un(e,t)&&this.zn(e,t)&&this.Vn(e,t),this.Hn=(e,t)=>t==null||!t.event||e?.event===t?.event,this._instance=e,this.Wn=new Set,this.Gn=new Set}init(){var e;Z(this._instance?._addCaptureHook)||(e=this._instance)==null||e._addCaptureHook(((e,t)=>{this.on(e,t)}))}register(e){var t;if(!Z(this._instance?._addCaptureHook)&&(e.forEach((e=>{var t,n;(t=this.Gn)==null||t.add(e),(n=e.steps)==null||n.forEach((e=>{var t;(t=this.Wn)==null||t.add(e?.event||``)}))})),(t=this._instance)!=null&&t.autocapture)){var n,r=new Set;e.forEach((e=>{var t;(t=e.steps)==null||t.forEach((e=>{e!=null&&e.selector&&r.add(e?.selector)}))})),(n=this._instance)==null||n.autocapture.setElementSelectors(r)}}on(e,t){t!=null&&e.length!=0&&(this.Wn.has(e)||this.Wn.has(t?.event))&&this.Gn&&this.Gn?.size>
170&&this.Gn.forEach((e=>{this.Zn(t,e)&&this.jn.emit(`actionCaptured`,e.name)}))}Qn(e){this.onAction(`actionCaptured`,(t=>e(t)))}Zn(e,t){if(t?.steps==null)return!1;for(var n of t.steps)if(this.Bn(e,n))return!0;return!1}onAction(e,t){return this.jn.on(e,t)}Un(e,t){if(t!=null&&t.url){var n,r=e==null||(n=e.properties)==null?void 0:n.$current_url;if(!r||typeof r!=`string`||!jw(r,t.url,t.url_matching||`contains`))return!1}return!0}zn(e,t){return!!this.Jn(e,t)&&!!this.Kn(e,t)&&!!this.Yn(e,t)}Jn(e,t){var n;if(t==null||!t.href)return!0;var r=this.Xn(e);if(r.length>0)return r.some((e=>jw(e.href,t.href,t.href_matching||`exact`)));var i,a=(e==null||(n=e.properties)==null?void 0:n.$elements_chain)||``;return!!a&&jw((i=a.match(/(?::|")href="(.*?)"/))?i[1]:``,t.href,t.href_matching||`exact`)}Kn(e,t){var n;if(t==null||!t.text)return!0;var r=this.Xn(e);if(r.length>0)return r.some((e=>jw(e.text,t.text,t.text_matching||`exact`)||jw(e.$el_text,t.text,t.text_matching||`exact`)));var i,a,o,s=(e==null||(n=e.properties)==null?void 0:n.$elements_chain)||``;return!!s&&(i=function(e){for(var t,n=[],r=/(?::|")text="(.*?)"/g;!Q(t=r.exec(e));)n.includes(t[1])||n.push(t[1]);return n}(s),a=t.text,o=t.text_matching||`exact`,i.some((e=>jw(e,a,o))))}Yn(e,t){var n,r;if(t==null||!t.selector)return!0;var i=e==null||(n=e.properties)==null?void 0:n.$element_selectors;if(i!=null&&i.includes(t.selector))return!0;var a=(e==null||(r=e.properties)==null?void 0:r.$elements_chain)||``;if(t.selector_regex&&a)try{return new RegExp(t.selector_regex).test(a)}catch{return!1}return!1}Xn(e){var t;return(e==null||(t=e.properties)==null?void 0:t.$elements)==null?[]:e?.properties.$elements}Vn(e,t){return t==null||!t.properties||t.properties.length===0||IC(t.properties.reduce(((e,t)=>{var n=X(t.value)?t.value.map(String):t.value==null?[]:[String(t.value)];return e[t.key]={values:n,operator:t.operator||`exact`},e}),{}),e?.properties)}},Nw=class{constructor(e){this._instance=e,this.es=new Map,this.ts=new Map,this.rs=new Map}ns(e,t){return!!e&&IC(e.propertyFilters,t?.properties)}ss(e,t){var n=new Map;return e.forEach((e=>{var r;(r=e.conditions)==null||(r=r[t])==null||(r=r.values)==null||r.forEach((t=>{if(t!=null&&t.name){var r=n.get(t.name)||[];r.push(e.id),n.set(t.name,r)}}))})),n}os(e,t,n){var r=(n===bS.Activation?this.es:this.ts).get(e),i=[];return this.ls((e=>{i=e.filter((e=>r?.includes(e.id)))})),i.filter((r=>{var i,a=(i=r.conditions)==null||(i=i[n])==null||(i=i.values)==null?void 0:i.find((t=>t.name===e));return this.ns(a,t)}))}register(e){Z(this._instance?._addCaptureHook)||(this.us(e),this.hs(e))}hs(e){var t=e.filter((e=>{var t;return e.conditions?.actions&&((t=e.conditions)==null||(t=t.actions)==null||(t=t.values)==null?void 0:t.length)>0}));t.length!==0&&(this.cs??(this.cs=new Mw(this._instance),this.cs.init(),this.cs.Qn((e=>{this.onAction(e)}))),t.forEach((e=>{var t,n,r,i,a;e.conditions&&(t=e.conditions)!=null&&t.actions&&(n=e.conditions)!=null&&(n=n.actions)!=null&&n.values&&((r=e.conditions)==null||(r=r.actions)==null||(r=r.values)==null?void 0:r.length)>0&&((i=this.cs)==null||i.register(e.conditions.actions.values),(a=e.conditions)==null||(a=a.actions)==null||(a=a.values)==null||a.forEach((t=>{if(t&&t.name){var n=this.rs.get(t.name);n&&n.push(e.id),this.rs.set(t.name,n||[e.id])}})))})))}us(e){var t,n=e.filter((e=>{var t;return e.conditions?.events&&((t=e.conditions)==null||(t=t.events)==null||(t=t.values)==null?void 0:t.length)>0})),r=e.filter((e=>{var t;return e.conditions?.cancelEvents&&((t=e.conditions)==null||(t=t.cancelEvents)==null||(t=t.values)==null?void 0:t.length)>0}));n.length===0&&r.length===0||((t=this._instance)==null||t._addCaptureHook(((e,t)=>{this.onEvent(e,t)})),this.es=this.ss(e,bS.Activation),this.ts=this.ss(e,bS.Cancellation))}onEvent(e,t){var n,r=this.le(),i=this.ds(),a=this.vs(),o=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[i])||[];if(a===e&&t&&o.length>0){var s,c;r.info(`event matched, removing item from activated items`,{event:e,eventPayload:t,existingActivatedItems:o});var l=(t==null||(s=t.properties)==null?void 0:s.$survey_id)||(t==null||(c=t.properties)==null?void 0:c.$product_tour_id);if(l){var u=o.indexOf(l);0>u||(o.splice(u,1),this.fs(o))}}else{if(this.ts.has(e)){var d=this.os(e,t,bS.Cancellation);d.length>0&&(r.info(`cancel event matched, cancelling items`,{event:e,itemsToCancel:d.map((e=>e.id))}),d.forEach((e=>{var t=o.indexOf(e.id);0>t||o.splice(t,1),this.ps(e.id)}
17)),this.fs(o))}if(this.es.has(e)){r.info(`event name matched`,{event:e,eventPayload:t,items:this.es.get(e)});var f=this.os(e,t,bS.Activation);this.fs(o.concat(f.map((e=>e.id))||[]))}}}onAction(e){var t,n=this.ds(),r=((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[n])||[];this.rs.has(e)&&this.fs(r.concat(this.rs.get(e)||[]))}fs(e){var t=this.le(),n=[...new Set(e)].filter((e=>!this.gs(e)));t.info(`updating activated items`,{activatedItems:n}),this.ys(n)}getActivatedIds(){var e,t=this.ds();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[t])||[]}getEventToItemsMap(){return this.es}bs(){return this.cs}},Pw=class extends Nw{constructor(e){super(e)}ds(){return Yy}vs(){return SS.SHOWN}ls(e){var t;(t=this._instance)==null||t.getSurveys(e)}ps(e){var t;(t=this._instance)==null||t.cancelPendingSurvey(e)}le(){return VC}ys(e){var t;(t=this._instance)==null||(t=t.persistence)==null||t.register({[Yy]:e})}gs(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}},Fw=`SDK is not enabled or survey functionality is not yet loaded`,Iw=`Disabled. Not loading surveys.`,Lw=G!=null&&G.location?eS(G.location.hash,`__posthog`)||eS(location.hash,`state`):null,Rw=`_postHogToolbarParams`,zw=py(`[Toolbar]`),Bw=py(`[FeatureFlags]`),Vw=py(`[FeatureFlags]`,{debugEnabled:!0}),Hw=`" failed. Feature flags didn't load in time.`,Uw=e=>{for(var t={},n=0;e.length>n;n++)t[e[n]]=!0;return t},Ww=e=>{var t={};for(var[n,r]of Ob(e||{}))r&&(t[n]=r);return t},Gw=py(`[Error tracking]`),Kw=`Refusing to render web experiment since the viewer is a likely bot`,qw={icontains:(e,t)=>!!G&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!G&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!G&&MC(t.href,e),not_regex:(e,t)=>!!G&&!MC(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e},Jw=class e{get qt(){return this._instance.config}constructor(t){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(t){t===void 0&&(t=!1),n.getWebExperiments((t=>{e._s(`retrieved web experiments from the server`),n.ws=new Map,t.forEach((t=>{if(t.feature_flag_key){var r;n.ws&&(e._s(`setting flag key `,t.feature_flag_key,` to web experiment `,t),(r=n.ws)==null||r.set(t.feature_flag_key,t));var i=n._instance.getFeatureFlag(t.feature_flag_key);s_(i)&&t.variants[i]&&n.xs(t.name,i,t.variants[i].transforms)}else if(t.variants)for(var a in t.variants){var o=t.variants[a];e.ks(o)&&n.xs(t.name,a,o.transforms)}}))}),t)},this._instance=t,this._instance.onFeatureFlags((e=>{this.onFeatureFlags(e)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())e._s(Kw);else if(!this.qt.disable_web_experiments){if(Q(this.ws))return this.ws=new Map,this.loadIfEnabled(),void this.previewWebExperiment();e._s(`applying feature flags`,t),t.forEach((e=>{var t;if(this.ws&&(t=this.ws)!=null&&t.has(e)){var n=this._instance.getFeatureFlag(e),r=this.ws?.get(e);n&&r!=null&&r.variants[n]&&this.xs(r.name,n,r.variants[n].transforms)}}))}}previewWebExperiment(){var t=e.getWindowLocation();if(t!=null&&t.search){var n=Qx(t?.search,`__experiment_id`),r=Qx(t?.search,`__experiment_variant`);n&&r&&(e._s(`previewing web experiments `+n+` && `+r),this.getWebExperiments((e=>{this.Ss(parseInt(n),r,e)}),!1,!0))}}loadIfEnabled(){this.qt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,n){if(this.qt.disable_web_experiments&&!n)return e([]);var r=this._instance.get_property(`$web_experiments`);if(r&&!t)return e(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor(`api`,`/api/web_experiments/?token=`+this.qt.token),method:`GET`,callback:t=>e(t.statusCode===200&&t.json&&t.json.experiments||[])})}Ss(t,n,r){var i=r.filter((e=>e.id===t));i&&i.length>0&&(e._s(`Previewing web experiment [`+i[0].name+`] with variant [`+n+`]`),this.xs(i[0].name,n,i[0].variants[n].transforms))}static ks(t){return!Q(t.conditions)&&e.Cs(t)&&e.Is(t)}static Cs(t){if(Q(t.conditions)||Q(t.conditions?.url))return!0;var n,r=e.getWindowLocation();return!!r&&((n=t.conditions)==null||!n.url||qw[t.conditions?.urlMatchType??`icontains`](t.conditions.url,r))}
17static getWindowLocation(){return G?.location}static Is(e){if(Q(e.conditions)||Q(e.conditions?.utm))return!0;var t=oS();if(t.utm_source){var n,r,i,a,o,s,c,l,u=(n=e.conditions)==null||(n=n.utm)==null||!n.utm_campaign||((r=e.conditions)==null||(r=r.utm)==null?void 0:r.utm_campaign)==t.utm_campaign,d=(i=e.conditions)==null||(i=i.utm)==null||!i.utm_source||((a=e.conditions)==null||(a=a.utm)==null?void 0:a.utm_source)==t.utm_source,f=(o=e.conditions)==null||(o=o.utm)==null||!o.utm_medium||((s=e.conditions)==null||(s=s.utm)==null?void 0:s.utm_medium)==t.utm_medium,p=(c=e.conditions)==null||(c=c.utm)==null||!c.utm_term||((l=e.conditions)==null||(l=l.utm)==null?void 0:l.utm_term)==t.utm_term;return u&&f&&p&&d}return!1}static _s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];$.info(`[WebExperiments] `+e,n)}xs(t,n,r){this._is_bot()?e._s(Kw):n===`control`?e._s(`Control variants leave the page unmodified.`):r.forEach((r=>{r.selector&&(e._s(`applying transform of variant `+n+` for experiment `+t+` `,r),(document?.querySelectorAll(r.selector))?.forEach((e=>{var t=e;r.html&&(t.innerHTML=r.html),r.css&&t.setAttribute(`style`,r.css)})))}))}_is_bot(){return Ag&&this._instance?jC(Ag,this.qt.custom_blocked_useragents):void 0}},Yw=py(`[Conversations]`),Xw=`Conversations not available yet.`,Zw={featureFlags:class{constructor(e){this.Ts=!1,this.Es=!1,this.Ms=!1,this.Rs=!1,this.Ps=!1,this.Os=!1,this.Ls=!1,this.As=!1,this._instance=e,this.featureFlagEventHandlers=[]}get qt(){return this._instance.config}get Si(){return this._instance.persistence}Fs(e){return this._instance.get_property(e)}Ns(){var e;return(e=this.Si?.Mr(this.qt.feature_flag_cache_ttl_ms))!=null&&e}Ds(){return!!this.Ns()&&(this.As||this.Ms||(this.As=!0,Bw.warn(`Feature flag cache is stale, triggering refresh...`),this.reloadFeatureFlags()),!0)}$s(){var e=this.qt.evaluation_contexts??this.qt.evaluation_environments;return!this.qt.evaluation_environments||this.qt.evaluation_contexts||this.Ls||(Bw.warn(`evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version.`),this.Ls=!0),e!=null&&e.length?e.filter((e=>{var t=e&&typeof e==`string`&&e.trim().length>0;return t||Bw.error(`Invalid evaluation context found:`,e,`Expected non-empty string`),t})):[]}qs(){return this.$s().length>0}js(){var e=this.qt.flag_keys;if(!Z(e)){if(X(e))return e.filter((e=>{var t=e&&typeof e==`string`&&e.trim().length>0;return t||Bw.error(`Invalid flag key found:`,e,`Expected non-empty string`),t}));Bw.error(`Invalid flag_keys found:`,e,`Expected array of non-empty strings`)}}initialize(){var{config:e}=this._instance,t=e.bootstrap?.featureFlags??{};if(Object.keys(t).length){var n=e.bootstrap?.featureFlagPayloads??{},r=Object.keys(t).filter((e=>!!t[e])).reduce(((e,n)=>(e[n]=t[n]||!1,e)),{}),i=Object.keys(n).filter((e=>r[e])).reduce(((e,t)=>(n[t]&&(e[t]=n[t]),e)),{});this.receivedFeatureFlags({featureFlags:r,featureFlagPayloads:i})}}updateFlags(e,t,n){var r=n!=null&&n.merge?this.getFlagVariants():{},i=n!=null&&n.merge?this.getFlagPayloads():{},a=J({},r,e),o=J({},i,t),s={};for(var[c,l]of Object.entries(a)){var u=typeof l==`string`;s[c]={key:c,enabled:!!u||!!l,variant:u?l:void 0,reason:void 0,metadata:Z(o?.[c])?void 0:{id:0,version:void 0,description:void 0,payload:o[c]}}}this.receivedFeatureFlags({flags:s})}get hasLoadedFlags(){return this.Es}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.Fs(By),t=this.Fs(Uy),n=this.Fs(Wy);if(!n&&!t)return e||{};var r=Db({},e||{});for(var i of[...new Set([...Object.keys(n||{}),...Object.keys(t||{})])]){var a,o,s=r[i],c=t?.[i],l=Z(c)?(a=s?.enabled)!=null&&a:!!c,u=Z(c)?s.variant:typeof c==`string`?c:void 0,d=n?.[i],f=J({},s,{enabled:l,variant:l?u??s?.variant:void 0});l!==s?.enabled&&(f.original_enabled=s?.enabled),u!==s?.variant&&(f.original_variant=s?.variant),d&&(f.metadata=J({},s?.metadata,{payload:d,original_payload:s==null||(o=s.metadata)==null?void 0:o.payload})),r[i]=f}return this.Ts||=(Bw.warn(` Overriding feature flag details!`,{flagDetails:e,overriddenPayloads:n,finalDetails:r}),!0),r}getFlagVariants(){var e=this.Fs(Ly),t=this.Fs(Uy);if(!t)return e||{};for(var n=Db({},e),r=Object.keys(t),i=0;r.length>i;i++)n[r[i]]=t[r[i]];return this.Ts||=(Bw.warn(` Overriding feature flags!`,{enabledFlags:e,overriddenFlags:t,finalFlags:n}),!0),n}getFlagPayloads(){var e=this.Fs(Vy),t=this.Fs(Wy);if(!t)return e||{};for(var n=Db({},e||{}),r=Object.keys(t),i=0;r.length>i;i++)n[r[i]]=t[r[i]];return this.Ts||=(Bw.warn(` Overriding feature flag payloads!`,{flagPayloads:e,overriddenPayloads:t,finalPayloads:n}),!0),n}reloadFeatureFlags(){this.Rs||this.qt.advanced_disable_feature_flags||this.Bs||(this._instance.ln.emit(`featureFlagsReloading`,!0),this.Bs=setTimeout((()=>{this.Hs()}),5))}Us(){clearTimeout(this.Bs),this.Bs=void 0}ensureFlagsLoaded(){this.Es||this.Ms||this.Bs||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.Rs=e}Hs(e){if(this.Us(),!this._instance.Kr())if(this.Ms)this.Ps=!0;else{var t=this.qt.token,n=this.Fs(_y),r={token:t,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:J({},this.Si?.get_initial_props()||{},this.Fs(Gy)||{}),group_properties:this.Fs(Ky),timezone:mS()};l_(n)||Z(n)||(r.$device_id=n),(e!=null&&e.disableFlags||this.qt.advanced_disable_feature_flags)&&(r.disable_flags=!0),this.qs()&&(r.evaluation_contexts=this.$s());var i=this.js();Z(i)||(r.flag_keys=i);var a=!!this.qt.advanced_only_evaluate_survey_feature_flags,o=this._instance.requestRouter.endpointFor(`flags`,`/flags/?v=2`+(this.qt.advanced_only_evaluate_survey_feature_flags?`&only_evaluate_survey_feature_flags=true`:``));this.Ms=!0,this._instance._send_request({method:`POST`,url:o,data:r,compression:this.qt.disable_compression?void 0:jS.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback:e=>{var t,n,i,o=!0;
17if(e.statusCode===200&&(this.Ps||(this.$anon_distinct_id=void 0),o=!1),this.Ms=!1,!r.disable_flags||this.Ps){this.Os=!o;var s=[];e.error?e.error instanceof Error?s.push(e.error.name===`AbortError`?`timeout`:`connection_error`):s.push(`unknown_error`):e.statusCode!==200&&s.push(`api_error_`+e.statusCode),(t=e.json)!=null&&t.errorsWhileComputingFlags&&s.push(`errors_while_computing_flags`);var c=!((n=e.json)==null||(n=n.quotaLimited)==null||!n.includes(`feature_flags`));c&&s.push(`quota_limited`),(i=this.Si)==null||i.register({[$y]:s}),c?Bw.warn(`You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more.`):(r.disable_flags||this.receivedFeatureFlags(e.json??{},o,{partialResponse:a}),this.Ps&&(this.Ps=!1,this.Hs()))}}})}}getFeatureFlag(e,t){if(t===void 0&&(t={}),!t.fresh||this.Os)if(this.Es||this.getFlags()&&this.getFlags().length>0){if(!this.Ds()){var n=this.getFeatureFlagResult(e,t);return n?.variant??n?.enabled}}else Bw.warn(`getFeatureFlag for key "`+e+Hw)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){return this.getFeatureFlagResult(e,{send_event:!1})?.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.Os)if(this.Es||this.getFlags()&&this.getFlags().length>0){if(!this.Ds()){var n=this.getFlagVariants(),r=e in n,i=n[e],a=this.getFlagPayloads()[e],o=String(i),s=this.Fs(Hy)||void 0,c=this.Fs(eb)||void 0,l=this.Fs(Zy)||{};if(this.qt.advanced_feature_flags_dedup_per_session){var u,d=this._instance.get_session_id(),f=this.Fs(Qy);d&&d!==f&&(l={},(u=this.Si)==null||u.register({[Zy]:l,[Qy]:d}))}if((t.send_event||!(`send_event`in t))&&(!(e in l)||!l[e].includes(o))){var p,m,h,g,_,v,y,b;X(l[e])?l[e].push(o):l[e]=[o],(p=this.Si)==null||p.register({[Zy]:l});var x=this.getFeatureFlagDetails(e),S=[...this.Fs($y)??[]];Z(i)&&S.push(`flag_missing`);var C={$feature_flag:e,$feature_flag_response:i,$feature_flag_payload:a||null,$feature_flag_request_id:s,$feature_flag_evaluated_at:c,$feature_flag_bootstrapped_response:((m=this.qt.bootstrap)==null||(m=m.featureFlags)==null?void 0:m[e])||null,$feature_flag_bootstrapped_payload:((h=this.qt.bootstrap)==null||(h=h.featureFlagPayloads)==null?void 0:h[e])||null,$used_bootstrap_value:!this.Os};Z(x==null||(g=x.metadata)==null?void 0:g.version)||(C.$feature_flag_version=x.metadata.version);var w,ee=(x==null||(_=x.reason)==null?void 0:_.description)??(x==null||(v=x.reason)==null?void 0:v.code);ee&&(C.$feature_flag_reason=ee),x!=null&&(y=x.metadata)!=null&&y.id&&(C.$feature_flag_id=x.metadata.id),Z(x?.original_variant)&&Z(x?.original_enabled)||(C.$feature_flag_original_response=Z(x.original_variant)?x.original_enabled:x.original_variant),x!=null&&(b=x.metadata)!=null&&b.original_payload&&(C.$feature_flag_original_payload=x==null||(w=x.metadata)==null?void 0:w.original_payload),S.length&&(C.$feature_flag_error=S.join(`,`)),this._instance.capture(`$feature_flag_called`,C)}if(r){var te=a;if(!Z(a))try{te=JSON.parse(a)}catch{}return{key:e,enabled:!!i,variant:typeof i==`string`?i:void 0,payload:te}}}}else Bw.warn(`getFeatureFlagResult for key "`+e+Hw)}getRemoteConfigPayload(e,t){var n=this.qt.token,r={distinct_id:this._instance.get_distinct_id(),token:n};this.qs()&&(r.evaluation_contexts=this.$s());var i=this.js();Z(i)||(r.flag_keys=i),this._instance._send_request({method:`POST`,url:this._instance.requestRouter.endpointFor(`flags`,`/flags/?v=2`),data:r,compression:this.qt.disable_compression?void 0:jS.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback(n){var r=n.json?.featureFlagPayloads;t(r?.[e]||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.Os){if(this.Es||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(e,t);return Z(n)?void 0:!!n}Bw.warn(`isFeatureEnabled for key "`+e+Hw)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}
17receivedFeatureFlags(e,t,n){if(this.Si){this.Es=!0;var r=this.getFlagVariants(),i=this.getFlagPayloads(),a=this.getFlagsWithDetails();(function(e,t,n,r,i,a){n===void 0&&(n={}),r===void 0&&(r={}),i===void 0&&(i={});var o=(e=>{var t=e.flags;return t?(e.featureFlags=Object.fromEntries(Object.keys(t).map((e=>[e,t[e].variant??t[e].enabled]))),e.featureFlagPayloads=Object.fromEntries(Object.keys(t).filter((e=>t[e].enabled)).filter((e=>t[e].metadata?.payload)).map((e=>[e,t[e].metadata?.payload])))):Bw.warn(`Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version`),e})(e),s=o.flags,c=o.featureFlags,l=o.featureFlagPayloads;if(c){var u=e.requestId,d=e.evaluatedAt;if(X(c)){Bw.warn(`v1 of the feature flags endpoint is deprecated. Please use the latest version.`);var f={};if(c)for(var p=0;c.length>p;p++)f[c[p]]=!0;t&&t.register({[Ry]:c,[Ly]:f})}else{var m=c,h=l,g=s;if(a!=null&&a.partialResponse)m=J({},n,m),h=J({},r,h),g=J({},i,g);else if(e.errorsWhileComputingFlags)if(s){var _=new Set(Object.keys(s).filter((e=>{var t;return!((t=s[e])!=null&&t.failed)})));m=J({},n,Object.fromEntries(Object.entries(m).filter((e=>{var[t]=e;return _.has(t)})))),h=J({},r,Object.fromEntries(Object.entries(h||{}).filter((e=>{var[t]=e;return _.has(t)})))),g=J({},i,Object.fromEntries(Object.entries(g||{}).filter((e=>{var[t]=e;return _.has(t)}))))}else m=J({},n,m),h=J({},r,h),g=J({},i,g);t&&t.register(J({[Ry]:Object.keys(Ww(m)),[Ly]:m||{},[Vy]:h||{},[By]:g||{}},u?{[Hy]:u}:{},d?{[eb]:d}:{}))}}})(e,this.Si,r,i,a,n),t||(this.As=!1),this.zs(t)}}override(e,t){t===void 0&&(t=!1),Bw.warn(`override is deprecated. Please use overrideFeatureFlags instead.`),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.Si)return Bw.uninitializedWarning(`posthog.featureFlags.overrideFeatureFlags`);if(!1===e)return this.Si.unregister(Uy),this.Si.unregister(Wy),this.zs(),Vw.info(`All overrides cleared`);if(X(e)){var t=Uw(e);return this.Si.register({[Uy]:t}),this.zs(),Vw.info(`Flag overrides set`,{flags:e})}if(e&&typeof e==`object`&&(`flags`in e||`payloads`in e)){var n,r=e;if(this.Ts=!!((n=r.suppressWarning)!=null&&n),`flags`in r){if(!1===r.flags)this.Si.unregister(Uy),Vw.info(`Flag overrides cleared`);else if(r.flags){if(X(r.flags)){var i=Uw(r.flags);this.Si.register({[Uy]:i})}else this.Si.register({[Uy]:r.flags});Vw.info(`Flag overrides set`,{flags:r.flags})}}`payloads`in r&&(!1===r.payloads?(this.Si.unregister(Wy),Vw.info(`Payload overrides cleared`)):r.payloads&&(this.Si.register({[Wy]:r.payloads}),Vw.info(`Payload overrides set`,{payloads:r.payloads}))),this.zs();return}if(e&&typeof e==`object`)return this.Si.register({[Uy]:e}),this.zs(),Vw.info(`Flag overrides set`,{flags:e});Bw.warn(`Invalid overrideOptions provided to overrideFeatureFlags`,{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Es){var{flags:t,flagVariants:n}=this.Vs();e(t,n)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,n){var r,i=(this.Fs(zy)||[]).find((t=>t.flagKey===e)),a={[`$feature_enrollment/`+e]:t},o={$feature_flag:e,$feature_enrollment:t,$set:a};i&&(o.$early_access_feature_name=i.name),n&&(o.$feature_enrollment_stage=n),this._instance.capture(`$feature_enrollment_update`,o),this.setPersonPropertiesForFlags(a,!1);var s=J({},this.getFlagVariants(),{[e]:t});(r=this.Si)==null||r.register({[Ry]:Object.keys(Ww(s)),[Ly]:s}),this.zs()}getEarlyAccessFeatures(e,t,n){t===void 0&&(t=!1);var r=this.Fs(zy),i=n?`&`+n.map((e=>`stage=`+e)).join(`&`):``;if(r&&!t)return e(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor(`api`,`/api/early_access_features/?token=`+this.qt.token+i),method:`GET`,callback:t=>{var n,r;if(t.json){var i=t.json.earlyAccessFeatures;return(n=this.Si)==null||n.unregister(zy),(r=this.Si)==null||r.register({[zy]:i}),e(i)}}})}Vs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((e=>t[e])),flagVariants:Object.keys(t).filter((e=>t[e])).reduce(((e,n)=>(e[n]=t[n],e)),{})}}zs(e){var{flags:t,flagVariants:n}=this.Vs();
17this.featureFlagEventHandlers.forEach((r=>r(t,n,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this.Fs(Gy)||{},r=e?.$set||(e!=null&&e.$set_once?{}:e),i=e?.$set_once,a={};if(i)for(var o in i)({}).hasOwnProperty.call(i,o)&&(o in n||(a[o]=i[o]));this._instance.register({[Gy]:J({},n,a,r)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(e){e===void 0&&(e=!0),this._instance.unregister(Gy),e&&this._instance.reloadFeatureFlags()}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this.Fs(Ky)||{};Object.keys(n).length!==0&&Object.keys(n).forEach((t=>{n[t]=J({},n[t],e[t]),delete e[t]})),this._instance.register({[Ky]:J({},n,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.Fs(Ky)||{};this._instance.register({[Ky]:J({},t,{[e]:{}})})}else this._instance.unregister(Ky)}reset(){this.Es=!1,this.Ms=!1,this.Rs=!1,this.Ps=!1,this.Os=!1,this.$anon_distinct_id=void 0,this.Us(),this.Ts=!1}}},Qw={sessionRecording:class{get qt(){return this._instance.config}get Si(){return this._instance.persistence}get started(){var e;return!((e=this.Ws)==null||!e.isStarted)}get status(){return this.Gs===xw||this.Gs===Sw?this.Gs:this.Ws?.status??this.Gs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.Gs=yw,this.Zs=void 0,this._instance=e,!this._instance.sessionManager)throw ww.error(`started without valid sessionManager`),Error(Cw+` started without valid sessionManager. This is a bug.`);if(this.qt.cookieless_mode===hb)throw Error(Cw+` cannot be used with cookieless_mode="always"`)}initialize(){this.startIfEnabledOrStop()}get Qs(){var e,t=!((e=this._instance.get_property(ky))==null||!e.enabled),n=!this.qt.disable_session_recording,r=this.qt.disable_session_recording||this._instance.consent.isOptedOut();return G&&t&&n&&!r}startIfEnabledOrStop(e){var t;if(!this.Qs||(t=this.Ws)==null||!t.isStarted){var n=!Z(Object.assign)&&!Z(Array.from);this.Qs&&n?(this.Js(e),ww.info(`starting`)):(this.Gs=yw,this.stopRecording())}}Js(e){var t,n,r;this.Qs&&(this.Gs!==xw&&this.Gs!==Sw&&(this.Gs=bw),q!=null&&(t=q.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(n=q.__PosthogExtensions__)!=null&&n.initSessionRecording?this.Ks(e):(r=q.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,this.Ys,(t=>{if(t)return ww.error(`could not load recorder`,t);this.Ks(e)})))}stopRecording(){var e,t;(e=this.Zs)==null||e.call(this),this.Zs=void 0,(t=this.Ws)==null||t.stop()}Xs(){var e,t;(e=this.Zs)==null||e.call(this),this.Zs=void 0,(t=this.Ws)==null||t.discard()}eo(){var e,t;(e=this.Si)==null||e.unregister(Iy),(t=this.Si)==null||t.unregister(Ay)}ro(e,t){if(Q(e))return null;var n,r=u_(e)?e:parseFloat(e);return typeof(n=r)!=`number`||!Number.isFinite(n)||0>n||n>1?(ww.warn(t+` must be between 0 and 1. Ignoring invalid value:`,e),null):r}io(e){if(this.Si){var t,n=this.Si,r=()=>{var t=!1===e.sessionRecording?void 0:e.sessionRecording,r=this.ro(this.qt.session_recording?.sampleRate,`session_recording.sampleRate`),i=this.ro(t?.sampleRate,`remote config sampleRate`),a=r??i;Q(a)&&this.eo();var o=t?.minimumDurationMilliseconds;n.register({[ky]:J({cache_timestamp:Date.now(),enabled:!!t},t,{networkPayloadCapture:J({capturePerformance:e.capturePerformance},t?.networkPayloadCapture),canvasRecording:{enabled:t?.recordCanvas,fps:t?.canvasFps,quality:t?.canvasQuality},sampleRate:a,minimumDurationMilliseconds:Z(o)?null:o,endpoint:t?.endpoint,triggerMatchType:t?.triggerMatchType,masking:t?.masking,urlTriggers:t?.urlTriggers,version:t?.version,triggerGroups:t?.triggerGroups})})};r(),(t=this.Zs)==null||t.call(this),this.Zs=this._instance.sessionManager?.onSessionId(r)}}onRemoteConfig(e){`sessionRecording`in e?!1===e.sessionRecording?(this.io(e),this.Xs()):(this.io(e),this.startIfEnabledOrStop()):(this.Gs===xw&&(this.Gs=Sw,ww.warn(`config refresh failed, recording will not start until page reload`)),this.startIfEnabledOrStop())}log(e,t){var n;t===void 0&&(t=`log`),(n=this.Ws)!=null&&n.log?this.Ws.log(e,t):ww.warn(`log called before recorder was ready`)}get Ys(){var e,t,n=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(ky);return(n==null||(t=n.scriptConfig)==null?void 0:t.script)||`lazy-recorder`}no(){var e,t=this._instance.get_property(ky);if(!t)return!1;try{e=typeof t==`object`?t:JSON.parse(t)}catch(e){return ww.warn(`persisted remote config for session recording is invali
17d and will be ignored`,e),!1}var n=e.cache_timestamp??Date.now();return 36e5>=Date.now()-n}Ks(e){var t;if((t=q.__PosthogExtensions__)==null||!t.initSessionRecording)return ww.warn(`Called on script loaded before session recording is available. This can be caused by adblockers.`),void this._instance.register_for_session({[fb]:!0});if(this.Ws||(this.Ws=q.__PosthogExtensions__?.initSessionRecording(this._instance),this.Ws._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.no()){if(this.Gs===Sw||this.Gs===xw)return;this.Gs=xw,ww.info(`persisted remote config is stale, requesting fresh config before starting`),new AS(this._instance).load();return}this.Gs=bw,this.Ws.start(e)}onRRwebEmit(e){var t;(t=this.Ws)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.Ws||(t=this.Si)==null||t.register({[My]:!0}),(e=this.Ws)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.Ws||(t=this.Si)==null||t.register({[jy]:!0}),(e=this.Ws)==null||e.overrideSampling()}overrideTrigger(e){var t,n;this.Ws||(n=this.Si)==null||n.register({[e===`url`?Ny:Py]:!0}),(t=this.Ws)==null||t.overrideTrigger(e)}get sdkDebugProperties(){return this.Ws?.sdkDebugProperties||{$recording_status:this.status}}tryAddCustomEvent(e,t){var n;return!((n=this.Ws)==null||!n.tryAddCustomEvent(e,t))}}},$w={autocapture:class{constructor(e){this.so=!1,this.oo=null,this.ao=!1,this.instance=e,this.rageclicks=new lw(e.config.rageclick),this.lo=null}initialize(){this.startIfEnabled()}get qt(){var e=a_(this.instance.config.autocapture)?this.instance.config.autocapture:{};return e.url_allowlist=e.url_allowlist?.map((e=>new RegExp(e))),e.url_ignorelist=e.url_ignorelist?.map((e=>new RegExp(e))),e}uo(){if(this.isBrowserSupported()){if(G&&K){var e=e=>{e||=G?.event;try{this.ho(e)}catch(e){dw.error(`Failed to capture event`,e)}};if(Pb(K,`submit`,e,{capture:!0}),Pb(K,`change`,e,{capture:!0}),Pb(K,`click`,e,{capture:!0}),this.qt.capture_copied_text){var t=e=>{e||=G?.event;try{this.ho(e,uw)}catch(e){dw.error(`Failed to capture copy/cut event`,e)}};Pb(K,`copy`,t,{capture:!0}),Pb(K,`cut`,t,{capture:!0})}}}else dw.info(`Disabling Automatic Event Collection because this browser is not supported`)}startIfEnabled(){this.isEnabled&&!this.so&&(this.uo(),this.so=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.ao=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[by]:!!e.autocapture_opt_out}),this.oo=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.lo=e}getElementSelectors(e){var t,n=[];return(t=this.lo)==null||t.forEach((t=>{(K?.querySelectorAll(t))?.forEach((r=>{e===r&&n.push(t)}))})),n}get isEnabled(){var e=this.instance.persistence?.props[by];if(l_(this.oo)&&!f_(e)&&!this.instance.Kr())return!1;var t=this.oo??!!e;return!!this.instance.config.autocapture&&!t}ho(e,t){if(t===void 0&&(t=`$autocapture`),this.isEnabled){var n,r=px(e);ox(r)&&(r=r.parentNode||null),t===`$autocapture`&&e.type===`click`&&e instanceof MouseEvent&&this.instance.config.rageclick&&(n=this.rageclicks)!=null&&n.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&Sx(r,this.instance.config.rageclick)&&this.ho(e,`$rageclick`);var i=t===uw;if(r&&function(e,t,n,r,i){var a,o,s;if(n===void 0&&(n=void 0),!G||Cx(e)||(a=n)!=null&&a.url_allowlist&&!lx(n.url_allowlist)||(o=n)!=null&&o.url_ignorelist&&lx(n.url_ignorelist))return!1;if((s=n)!=null&&s.dom_event_allowlist){var c=n.dom_event_allowlist;if(c&&!c.some((e=>t.type===e)))return!1}var{parentIsUsefulElement:l,targetElementList:u}=wx(e,r);if(!function(e,t){var n=t?.element_allowlist;if(Z(n))return!0;var r,i=function(e){if(n.some((t=>e.tagName.toLowerCase()===t)))return{v:!0}};for(var a of e)if(r=i(a))return r.v;return!1}(u,n)||!hx(u,n?.css_selector_allowlist))return!1;var d=G.getComputedStyle(e);if(d&&d.getPropertyValue(`cursor`)===`pointer`&&t.type===`click`)return!0;var f=e.tagName.toLowerCase();switch(f){case`html`:return!1;case`form`:return(i||[`submit`]).indexOf(t.type)>=0;case`input`:case`select`:case`textarea`:return(i||[`change`,`click`]).indexOf(t.type)>=0;default:return l?(i||[`click`]).indexOf(t.type)>=0:(i||[`click`]).indexOf(t.type)>=0&&(mx.indexOf(f)>-1||e.getAttribute(`contenteditable`)===`true`)}}(r,e,this.qt,i,i?[`copy`,`cut`]:void 0)){var{props:a,explicitNoCapture:o}=mw(r,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.qt.element_attribute_ignorelist,elementsC
17hainAsString:this.ao});if(o)return!1;var s=this.getElementSelectors(r);if(s&&s.length>0&&(a.$element_selectors=s),t===uw){var c,l=dx(G==null||(c=G.getSelection())==null?void 0:c.toString()),u=e.type||`clipboard`;if(!l)return!1;a.$selected_content=l,a.$copy_type=u}return this.instance.capture(t,a),!0}}}isBrowserSupported(){return i_(K?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.co=(G==null||(t=G.location)==null?void 0:t.pathname)||``}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview===`history_change`}startIfEnabled(){this.isEnabled&&($.info(`History API monitoring enabled, starting...`),this.monitorHistoryChanges())}stop(){this.do&&this.do(),this.do=void 0,$.info(`History API monitoring stopped`)}monitorHistoryChanges(){G&&G.history&&(this.vo(`pushState`),this.vo(`replaceState`),this.fo())}vo(e){var t;if(G&&((t=G.history[e])==null||!t.__posthog_wrapped__)){var n=this;(function(e,t,n){try{if(!(t in e))return()=>{};var r=e[t],i=n(r);return i_(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=i,()=>{e[t]===i&&(e[t]=r)}}catch{return()=>{}}})(G.history,e,(t=>function(r,i,a){t.call(this,r,i,a),n.po(e)}))}}po(e){try{var t,n=G==null||(t=G.location)==null?void 0:t.pathname;if(!n)return;n!==this.co&&this.isEnabled&&this._instance.capture(xb,{navigation_type:e}),this.co=n}catch(t){$.error(`Error capturing `+e+` pageview`,t)}}fo(){if(!this.do){var e=()=>{this.po(`popstate`)};Pb(G,`popstate`,e),this.do=()=>{G&&G.removeEventListener(`popstate`,e)}}}},heatmaps:class{get qt(){return this.instance.config}constructor(e){var t;this.mo=!1,this.so=!1,this.yo=null,this.instance=e,this.mo=!((t=this.instance.persistence)==null||!t.props[xy]),this.rageclicks=new lw(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return a_(this.qt.capture_heatmaps)&&this.qt.capture_heatmaps.flush_interval_milliseconds&&(e=this.qt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Q(this.qt.capture_heatmaps)?Q(this.qt.enable_heatmaps)?this.mo:this.qt.enable_heatmaps:!1!==this.qt.capture_heatmaps}startIfEnabled(){if(this.isEnabled){if(this.so)return;Tw.info(`starting...`),this.bo(),this.At()}else clearInterval(this.yo??void 0),this._o(),this.getAndClearBuffer()}onRemoteConfig(e){if(`heatmaps`in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[xy]:t}),this.mo=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.M;return this.M=void 0,e}wo(e){this.Mt(e.originalEvent,`deadclick`)}At(){this.yo&&clearInterval(this.yo),this.yo=K?.visibilityState===`visible`?setInterval(this.ci.bind(this),this.flushIntervalMilliseconds):null}bo(){G&&K&&(this.xo=this.ci.bind(this),Pb(G,bb,this.xo),this.ko=e=>this.Mt(e||G?.event),Pb(K,`click`,this.ko,{capture:!0}),this.So=e=>this.Co(e||G?.event),Pb(K,`mousemove`,this.So,{capture:!0}),this.Io=new Vx(this.instance,zx,this.wo.bind(this)),this.Io.startIfEnabledOrStop(),this.To=this.At.bind(this),Pb(K,yb,this.To),this.so=!0)}_o(){var e;G&&K&&(this.xo&&G.removeEventListener(bb,this.xo),this.ko&&K.removeEventListener(`click`,this.ko,{capture:!0}),this.So&&K.removeEventListener(`mousemove`,this.So,{capture:!0}),this.To&&K.removeEventListener(yb,this.To),clearTimeout(this.Eo),(e=this.Io)==null||e.stop(),this.so=!1)}Mo(e,t){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),a=function(e,t,n){for(var r=e;r&&ix(r)&&!ax(r,`body`);){if(r===n)return!1;if(Y(t,G?.getComputedStyle(r).position))return!0;r=gx(r)}return!1}(px(e),[`fixed`,`sticky`],i);return{x:e.clientX+(a?0:r),y:e.clientY+(a?0:n),target_fixed:a,type:t}}Mt(e,t){var n;if(t===void 0&&(t=`click`),!rx(e.target)&&Ew(e)){var r=this.Mo(e,t);(n=this.rageclicks)!=null&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&Sx(px(e),this.instance.config.rageclick)&&this.Ro(J({},r,{type:`rageclick`})),this.Ro(r)}}Co(e){!rx(e.target)&&Ew(e)&&(clearTimeout(this.Eo),this.Eo=setTimeout((()=>{this.Ro(this.Mo(e,`mousemove`))}),500))}Ro(e){if(G){var t=G.location.href,n=this.qt.custom_personal_data_properties,r=$x(t,this.qt.mask_personal_data_properties?[...nS,...n||[]]:[],iS);this.M=this.M||{},this.M[r]||(this.M[r]=[]),this.M[r].push(e)}}ci(){this.M&&!o_(this.M)&&this.instance.capture(`$$heatmap`,{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:Vx,webVitalsAutocapture:class{constructor(e){var t;this.mo=!1,this.so=!1,this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Po=()=>{clearTimeout(this.Oo),this.M.metrics.length!==0&&(this._instance.capture(`$web_vitals`,this.M.metrics.reduce(((e,t)=>J({},e,{[`$web_vitals_`+t.name+`_event`]:J({},t),[`$web_vitals_`+t.name+`_value`]:t.value})),{})),this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=e=>{this.M=this.M||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var t=this.Lo();if(!Z(t))if(Q(e?.name)||Q(e?.value))_w.error(`Invalid metric received`,e);else if(!this.Ao||this.Ao>e.value){this.M.url!==t&&(this.Po(),this.Oo=setTimeout(this.Po,this.flushToCaptureTimeoutMs)),Z(this.M.url)&&(this.M.url=t),this.M.firstMetricTimestamp=Z(this.M.firstMetricTimestamp)?Date.now():this.M.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0);var n=this._instance.sessionManager?.checkAndGetSessionAndWindowId(!0),r=J({},e,{$current_url:t,timestamp:Date.now()});Z(n)||(r.$session_id=n.sessionId,r.$window_id=n.windowId),this.M.metrics.push(r),this.M.metrics.length===this.allowedMetrics.length&&this.Po()}else _w.error(`Ignoring metric with value >= `+this.Ao,e)},this.Fo=()=>
17{if(!this.so){var e,t,n,r,i=q.__PosthogExtensions__;Z(i)||Z(i.postHogWebVitalsCallbacks)||({onLCP:e,onCLS:t,onFCP:n,onINP:r}=i.postHogWebVitalsCallbacks),e&&t&&n&&r?(this.allowedMetrics.indexOf(`LCP`)>-1&&e(this.ht.bind(this)),this.allowedMetrics.indexOf(`CLS`)>-1&&t(this.ht.bind(this)),this.allowedMetrics.indexOf(`FCP`)>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf(`INP`)>-1&&r(this.ht.bind(this)),this.so=!0):_w.error(`web vitals callbacks not loaded - not starting`)}},this._instance=e,this.mo=!((t=this._instance.persistence)==null||!t.props[Ty]),this.startIfEnabled()}get No(){return this._instance.config.capture_performance}get allowedMetrics(){var e=a_(this.No)?this.No?.web_vitals_allowed_metrics:void 0;return Q(e)?this._instance.persistence?.props[Oy]||[`CLS`,`FCP`,`INP`,`LCP`]:e}get flushToCaptureTimeoutMs(){return(a_(this.No)?this.No.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=a_(this.No)?this.No.web_vitals_attribution:void 0;return e!=null&&e}get Ao(){var e=a_(this.No)&&u_(this.No.__web_vitals_max_value)?this.No.__web_vitals_max_value:vw;return e>0&&6e4>=e?vw:e}get isEnabled(){var e=jg?.protocol;if(e!==`http:`&&e!==`https:`)return _w.info(`Web Vitals are disabled on non-http/https protocols`),!1;var t=a_(this.No)?this.No.web_vitals:f_(this.No)?this.No:void 0;return f_(t)?t:this.mo}startIfEnabled(){this.isEnabled&&!this.so&&(_w.info(`enabled, starting...`),this.ur(this.Fo))}onRemoteConfig(e){if(`capturePerformance`in e){var t=a_(e.capturePerformance)&&!!e.capturePerformance.web_vitals,n=a_(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[Ty]:t}),this._instance.persistence.register({[Oy]:n})),this.mo=t,this.startIfEnabled()}}ur(e){var t,n;(t=q.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(n=q.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.useAttribution?`web-vitals-with-attribution`:`web-vitals`,(t=>{t?_w.error(`failed to load script`,t):e()}))}Lo(){var e=G?G.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties;return $x(e,this._instance.config.mask_personal_data_properties?[...nS,...t||[]]:[],iS)}_w.error(`Could not determine current URL`)}}},eT={exceptionObserver:class{constructor(e){var t;this.Fo=()=>{var e;if(G&&this.isEnabled&&(e=q.__PosthogExtensions__)!=null&&e.errorWrappingFunctions){var t=q.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,n=q.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,r=q.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.Do&&this.qt.capture_unhandled_errors&&(this.Do=t(this.captureException.bind(this))),!this.$o&&this.qt.capture_unhandled_rejections&&(this.$o=n(this.captureException.bind(this))),!this.qo&&this.qt.capture_console_errors&&(this.qo=r(this.captureException.bind(this)))}catch(e){hw.error(`failed to start`,e),this.jo()}}},this._instance=e,this.Bo=!((t=this._instance.persistence)==null||!t.props[Sy]),this.Ho=new S_({refillRate:this._instance.config.error_tracking.__exceptionRateLimiterRefillRate??1,bucketSize:this._instance.config.error_tracking.__exceptionRateLimiterBucketSize??10,refillInterval:1e4,Zt:hw}),this.qt=this.Uo(),this.startIfEnabledOrStop()}Uo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return a_(e)?t=J({},t,e):(Z(e)?this.Bo:e)&&(t=J({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.qt.capture_console_errors||this.qt.capture_unhandled_errors||this.qt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(hw.info(`enabled`),this.jo(),this.ur(this.Fo)):this.jo()}ur(e){var t,n;(t=q.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(n=q.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,`exception-autocapture`,(t=>{if(t)return hw.error(`failed to load script`,t);e()}))}jo(){var e,t,n;(e=this.Do)==null||e.call(this),this.Do=void 0,(t=this.$o)==null||t.call(this),this.$o=void 0,(n=this.qo)==null||n.call(this),this.qo=void 0}onRemoteConfig(e){`autocaptureExceptions`in e&&(this.Bo=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[Sy]:this.Bo}),this.qt=this.Uo(),this.startIfEnabledOrStop())}onConfigChange(){this.qt=this.Uo()}
17captureException(e){var t,n,r=(e==null||(t=e.$exception_list)==null||(t=t[0])==null?void 0:t.type)??`Exception`;this.Ho.consumeRateLimit(r)?hw.info(`Skipping exception capture because of client rate limiting.`,{exception:r}):(n=this._instance.exceptions)==null||n.sendExceptionEvent(e)}},exceptions:class{constructor(e){this.zo=[],this.Vo=new Iv([new Jv,new iy,new Xv,new Yv,new ny,new ty,new Qv,new ry],function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];return function(t,r){r===void 0&&(r=0);for(var i=[],a=t.split(` 18`),o=r;a.length>o;o++){var s=a[o];if(1024>=s.length){var c=qv.test(s)?s.replace(qv,`$1`):s;if(!c.match(/\S*Error: /)){for(var l of n){var u=l(c,e);if(u){i.push(u);break}}if(i.length>=50)break}}}return function(e){if(!e.length)return[];var t=Array.from(e);return t.reverse(),t.slice(0,50).map((e=>{return J({},e,{filename:e.filename||(n=t,n[n.length-1]||{}).filename,function:e.function||Lv});var n}))}(i)}}(`web:javascript`,Uv,Kv)),this._instance=e,this.zo=this._instance.persistence?.get_property(Cy)??[],this.Wo=ly(this.Go()),this.Zo=new uy(this.Wo)}onConfigChange(){this.Wo=ly(this.Go()),this.Zo.setConfig(this.Wo)}onRemoteConfig(e){if(`errorTracking`in e){var t=e.errorTracking?.suppressionRules??[],n=e.errorTracking?.captureExtensionExceptions;this.zo=t,this._instance.persistence&&this._instance.persistence.register({[Cy]:this.zo,[wy]:n})}}get Qo(){var e,t=!!this._instance.get_property(wy);return(e=this._instance.config.error_tracking.captureExtensionExceptions??t)!=null&&e}buildProperties(e,t){return this.Vo.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.Wo.enabled)try{if(!s_(e)||e.trim().length===0)return void Gw.warn(`Ignoring exception step because message must be a non-empty string`);var{sanitizedProperties:n,droppedKeys:r}=function(e){if(!e)return{sanitizedProperties:{},droppedKeys:[]};var t=[];return{sanitizedProperties:Object.keys(e).reduce(((n,r)=>sy.has(r)?(t.push(r),n):(n[r]=e[r],n)),{}),droppedKeys:t}}(this.Jo(t));r.length>0&&Gw.warn(`Ignoring reserved exception step fields`,{droppedKeys:r}),this.Zo.add(J({[ay]:e,[oy]:new Date().toISOString()},n))}catch(e){Gw.error(`Failed to add exception step. Ignoring breadcrumb.`,e)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Ko(t)){if(this.Yo(t))return this.Xo(`Exception dropped: matched a suppression rule`),void Gw.info(`Skipping exception capture because a suppression rule matched`);if(!this.Qo&&this.ea(t))return this.Xo(`Exception dropped: thrown by a browser extension`),void Gw.info(`Skipping exception capture because it was thrown by an extension`);if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ta(t))return this.Xo(`Exception dropped: thrown by the PostHog SDK`),void Gw.info(`Skipping exception capture because it was thrown by the PostHog SDK`)}var n=this.Wo.enabled&&Q(e.$exception_steps)?this.ra(e):e;try{var r=this._instance.capture(`$exception`,n,{_noTruncate:!0,_batchKey:`exceptionEvent`,Mn:!0});return r&&this.Zo.clear(),r}catch(e){Gw.error(`Failed to capture exception event. Dropping this exception.`,e),this.Zo.clear();return}}catch(e){Gw.error(`Failed to process exception event. Ignoring this exception.`,e);return}}ra(e){try{var t=this.Zo.getAttachable();return t.length===0?e:J({},e,{$exception_steps:t})}catch(t){return Gw.error(`Failed to read buffered exception steps. Capturing exception without steps.`,t),e}}Xo(e){this.Wo.enabled&&this.Zo.add({[ay]:e,[oy]:new Date().toISOString()})}Jo(e){return a_(e)?J({},e):{}}Go(){return this._instance.config.error_tracking?.exception_steps??{}}Yo(e){if(e.length===0)return!1;var t=e.reduce(((e,t)=>{var{type:n,value:r}=t;return s_(n)&&n.length>0&&e.$exception_types.push(n),s_(r)&&r.length>0&&e.$exception_values.push(r),e}),{$exception_types:[],$exception_values:[]});return this.zo.some((e=>{var n=e.values.map((e=>{var n=PC[e.operator],r=X(e.value)?e.value:[e.value],i=t[e.key]??[];return r.length>0&&n(r,i)}));return e.type===`OR`?n.some(Boolean):n.every(Boolean)}))}ea(e){return e.flatMap((e=>e.stacktrace?.frames??[])).some((e=>e.filename&&e.filename.startsWith(`chrome-extension://`)))}ta(e){if(e.length>0){var t,n,r=e[0].stacktrace?.frames??[],i=r[r.length-1];return(t=i==null||(n=i.filename)==null?void 0:n.includes(`posthog.com/static`))!=null&&t}return!1}Ko(e){return!Q(e)&&X(e)}}},tT=J({productTours:class{get Si(){return this._instance.persistence}constructor(e){this.ia=null,this.na=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){`productTours`in e&&(this.Si&&this.Si.register({[Dy]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.ia||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(Dy)||this.ur((()=>this.sa()))}ur(e){var t,n;(t=q.__PosthogExtensions__)!=null&&t.generateProductTours?e():(n=q.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,`product-tours`,(t=>{t?Dw.error(`Could not load product tours script`,t):e()}))}sa(){var e;!this.ia&&(e=q.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.ia=q.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!X(this.na)||t){var n=this.Si;if(n){var r=n.props[Xy];if(X(r)&&!t)return this.na=r,void e(r,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor(`api`,`/api/product_tours/?token=`+this._instance.config.token),method:`GET`,callback:t=>{var r=t.statusCode;if(r!==200||!t.json){var i=`Product Tours API could not be loaded, status: `+r;Dw.error(i),e([],{isLoaded:!1,error:i});return}var a=X(t.json.product_tours)?t.json.product_tours:[];this.na=a,n&&n.register({[Xy]:a}),e(a,{isLoaded:!0})}})}else e(this.na,{isLoaded:!0})}getActiveProductTours(e){Q(this.ia)?e([],{isLoaded:!1,error:`Product tours not loaded`}):this.ia.getActiveProductTours(e)}showProductTour(e){var t;(t=this.ia)==null||t.showTourById(e)}previewTour(e){this.ia?this.ia.previewTour(e):this.ur((()=>{var t;this.sa(),(t=this.ia)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.ia)==null||e.dismissTour(`user_clicked_skip`)}nextStep(){var e;(e=this.ia)==null||e.nextStep()}previousStep(){var e;(e=this.ia)==null||e.previousStep()}clearCache(){var e;this.na=null,(e=this.Si)==null||e.unregister(Xy)}resetTour(e){var t;(t=this.ia)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.ia)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.ia)==null||t.cancelPendingTour(e)}}},Zw),nT={siteApps:class{constructor(e){this._instance=e,this.oa=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}aa(e,t){if(t){var n=this.globalsForEvent(t);this.oa.push(n),this.oa.length>1e3&&(this.oa=this.oa.slice(10))}}get siteAppLoaders(){var e;return(e=q._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.aa.bind(this));this.la=()=>{e(),this.oa=[],this.la=void 0}}}globalsForEvent(e){if(!e)throw Error(`Event payload is required`);var t={},n=this._instance.get_property(`$groups`)||[],r=this._instance.get_property(`$stored_group_properties`)||{};for(var[i,a]of Object.entries(r))t[i]={id:n[i],type:i,properties:a};var{$set_once:o,$set:s}=e;return{event:J({},Vg(e,Ow),{properties:J({},e.properties,s?{$set:J({},e.properties?.$set??{},s)}:{},o?{$set_once:J({},e.properties?.$set_once??{},o)}:{}),elements_chain:e.properties?.$elements_chain??``,distinct_id:e.properties?.distinct_id}),person:{properties:this._instance.get_property(`$stored_person_properties`)},groups:t}}setupSiteApp(e){var t=this.apps[e.id],n=()=>{var n;!t.errored&&this.oa.length&&(kw.info(`Processing `+this.oa.length+` events for site app with id `+e.id),this.oa.forEac
18h((e=>t.processEvent==null?void 0:t.processEvent(e))),t.processedBuffer=!0),Object.values(this.apps).every((e=>e.processedBuffer||e.errored))&&((n=this.la)==null||n.call(this))},r=!1,i=i=>{t.errored=!i,t.loaded=!0,kw.info(`Site app with id `+e.id+` `+(i?`loaded`:`errored`)),r&&n()};try{var{processEvent:a}=e.init({posthog:this._instance,callback(e){i(e)}});a&&(t.processEvent=a),r=!0}catch(t){kw.error(Aw+e.id,t),i(!1)}if(r&&t.loaded)try{n()}catch(n){kw.error(`Error while processing buffered events PostHog app with config id `+e.id,n),t.errored=!0}}ua(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of e)this.setupSiteApp(n)}ha(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var n of Object.values(this.apps))try{n.processEvent==null||n.processEvent(t)}catch(t){kw.error(`Error while processing event `+e.event+` for site app `+n.id,t)}}}onRemoteConfig(e){var t,n,r,i=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.ua(),void this._instance.on(`eventCaptured`,(e=>this.ha(e)))):void kw.error(`PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.`);if((n=this.la)==null||n.call(this),(r=e.siteApps)!=null&&r.length)if(this.isEnabled){var a=function(e){var t;q[`__$$ph_site_app_`+e]=i._instance,(t=q.__PosthogExtensions__)==null||t.loadSiteApp==null||t.loadSiteApp(i._instance,s,(t=>{if(t)return kw.error(Aw+e,t)}))};for(var{id:o,url:s}of e.siteApps)a(o)}else kw.error(`PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.`)}}},rT={tracingHeaders:class{constructor(e){this.ca=void 0,this.da=void 0,this.va=void 0,this.Fo=()=>{var e,t,n=this.fa();n?(Z(this.ca)&&(this.ca=(e=q.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null?void 0:e._patchXHR(n,(()=>this._instance.get_distinct_id()),this._instance.sessionManager)),Z(this.da)&&(this.da=(t=q.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null?void 0:t._patchFetch(n,(()=>this._instance.get_distinct_id()),this._instance.sessionManager))):this.jo()},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,n;(t=q.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns?e():(n=q.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,`tracing-headers`,(t=>{if(t)return gw.error(`failed to load script`,t);e()}))}pa(){return this._instance.config.tracing_headers??this._instance.config.addTracingHeaders??this._instance.config.__add_tracing_headers}fa(){var e=this.pa();return X(e)?(X(this.va)?this.va.splice(0,this.va.length,...e):this.va=[...e],e.length>0?this.va:void 0):(X(this.va)&&this.va.splice(0),this.va=e||void 0,this.va)}jo(){var e,t;(e=this.ca)==null||e.call(this),(t=this.da)==null||t.call(this),this.ca=void 0,this.da=void 0}startIfEnabledOrStop(){this.fa()?this.ur(this.Fo):this.jo()}}},iT=J({surveys:class{get qt(){return this._instance.config}constructor(e){this.ga=void 0,this._surveyManager=null,this.ma=!1,this.ya=[],this.ba=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.qt.disable_surveys){var t=e.surveys;if(Q(t))return VC.warn(`Flags not loaded yet. Not loading surveys.`);var n=X(t);this.ga=n?t.length>0:t,VC.info(`flags response received, isSurveysEnabled: `+this.ga),this.loadIfEnabled()}}reset(){localStorage.removeItem(`lastSeenSurveyDate`);for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(n!=null&&n.startsWith(HC)||n!=null&&n.startsWith(`inProgressSurvey_`))&&e.push(n)}e.forEach((e=>localStorage.removeItem(e)))}loadIfEnabled(){if(!this._surveyManager)if(this.ma)VC.info(`Already initializing surveys, skipping...`);else if(this.qt.disable_surveys)VC.info(Iw);else if(this.qt.cookieless_mode&&this._instance.consent.isOptedOut())VC.info(`Not loading surveys in cookieless mode without consent.`);else{var e=q?.__PosthogExtensions__;if(e){if(!Z(this.ga)||this.qt.advanced_enable_surveys){var t=this.ga||this.qt.advanced_enable_surveys;this.ma=!0;try{var n=e.generateSurveys;if(n)return void this._a(n,t);var r=e.loadExternalDependency;if(!r)return void this.wa(pb);r(this._instance,`surveys`,(n=>
18{n||!e.generateSurveys?this.wa(`Could not load surveys script`,n):this._a(e.generateSurveys,t)}))}catch(e){throw this.wa(`Error initializing surveys`,e),e}finally{this.ma=!1}}}else VC.error(`PostHog Extensions not found.`)}}_a(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new Pw(this._instance),VC.info(`Surveys loaded successfully`),this.xa({isLoaded:!0})}wa(e,t){VC.error(e,t),this.xa({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.ya.push(e),this._surveyManager&&this.xa({isLoaded:!0}),()=>{this.ya=this.ya.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.qt.disable_surveys)return VC.info(Iw),e([]);var n,r=this._instance.get_property(qy);if(r&&!t)return e(r,{isLoaded:!0});typeof Promise<`u`&&this.ba?this.ba.then((t=>{var{surveys:n,context:r}=t;return e(n,r)})):(typeof Promise<`u`&&(this.ba=new Promise((e=>{n=e}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor(`api`,`/api/surveys/?token=`+this.qt.token),method:`GET`,timeout:this.qt.surveys_request_timeout_ms,callback:t=>{var r;this.ba=null;var i=t.statusCode;if(i!==200||!t.json){var a=`Surveys API could not be loaded, status: `+i;VC.error(a);var o={isLoaded:!1,error:a};e([],o),n?.({surveys:[],context:o});return}var s,c=t.json.surveys||[],l=c.filter((e=>function(e){return!(!e.start_date||e.end_date)}(e)&&(function(e){var t;return!((t=e.conditions)==null||(t=t.events)==null||(t=t.values)==null||!t.length)}(e)||function(e){var t;return!((t=e.conditions)==null||(t=t.actions)==null||(t=t.values)==null||!t.length)}(e))));l.length>0&&((s=this._surveyEventReceiver)==null||s.register(l)),(r=this._instance.persistence)==null||r.register({[qy]:c,[Jy]:Date.now()});var u={isLoaded:!0};e(c,u),n?.({surveys:c,context:u})}}))}xa(e){for(var t of this.ya)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(e){VC.error(`Error in survey callback`,e)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Q(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);VC.warn(`init was not called`)}ka(e){var t=null;return this.getSurveys((n=>{t=n.find((t=>t.id===e))??null})),t}Sa(e){if(Q(this._surveyManager))return{eligible:!1,reason:Fw};var t=typeof e==`string`?this.ka(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:`Survey not found`}}canRenderSurvey(e){if(Q(this._surveyManager))return VC.warn(`init was not called`),{visible:!1,disabledReason:Fw};var t=this.Sa(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Q(this._surveyManager)?(VC.warn(`init was not called`),Promise.resolve({visible:!1,disabledReason:Fw})):new Promise((n=>{this.getSurveys((t=>{var r=t.find((t=>t.id===e))??null;if(r){var i=this.Sa(r);n({visible:i.eligible,disabledReason:i.reason})}else n({visible:!1,disabledReason:`Survey not found`})}),t)}))}renderSurvey(e,t,n){var r;if(Q(this._surveyManager))VC.warn(`init was not called`);else{var i=typeof e==`string`?this.ka(e):e;if(i!=null&&i.id)if(UC.includes(i.type)){var a=K?.querySelector(t);if(a)return(r=i.appearance)!=null&&r.surveyPopupDelaySeconds?(VC.info(`Rendering survey `+i.id+` with delay of `+i.appearance.surveyPopupDelaySeconds+` seconds`),void setTimeout((()=>{var e;VC.info(`Rendering survey `+i.id+` with delay of `+i.appearance?.surveyPopupDelaySeconds+` seconds`),(e=this._surveyManager)==null||e.renderSurvey(i,a,n),VC.info(`Survey `+i.id+` rendered`)}),1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,a,n);VC.warn(`Survey element not found`)}else VC.warn(`Surveys of type `+i.type+` cannot be rendered in the app`);else VC.warn(`Survey not found`)}}displaySurvey(e,t){var n;if(Q(this._surveyManager))VC.warn(`init was not called`);else{var r=this.ka(e);if(r){var i=r;if((n=r.appearance)!=null&&n.surveyPopupDelaySeconds&&t.ignoreDelay&&(i=J({},r,{appearance:J({},r.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==wS.Popover&&t.initialResponses&&VC.warn(`initialResponses is only supported for popover surveys. prefill will not be applied.`),!1===t.ignoreConditions){var a=this.canRenderSurvey(r);if(!a.visible)return void VC.warn(`Survey is not eligible to be displayed: `,a.disabledReason)}t.displayType===wS.Inline?this.renderSurvey(i,t.selector,t.properties):this._surveyManager.handlePopoverSurvey(i,t)}else VC.warn(`Survey not found`)}}cancelPendingSurvey(e){Q(this._surveyManager)?VC.warn(`init was not called`):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},Zw),aT={toolbar:class{constructor(e){this.instance=e}Ca(e){q.ph_toolbar_state=e}Ia(){return q.ph_toolbar_state??0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,n){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),Fb(this.instance.config)||!G||!K)return!1;e??=G.location,n??=G.history;try{if(!t){try{G.localStorage.setItem(`test`,`test`),G.localStorage.removeItem(`test`)}catch{return!1}t=G?.localStorage}var r,i=Lw||eS(e.hash,`__posthog`)||eS(e.hash,`state`),a=i?kb((()=>JSON.parse(atob(decodeURIComponent(i)))))||kb((()=>JSON.parse(decodeURIComponent(i)))):null;
18return a&&a.action===`ph_authorize`?((r=a).source=`url`,r&&Object.keys(r).length>0&&(a.desiredHash?e.hash=a.desiredHash:n?n.replaceState(n.state,``,e.pathname+e.search):e.hash=``)):((r=JSON.parse(t.getItem(Rw)||`{}`)).source=`localstorage`,delete r.userIntent),!(!r.token||this.instance.config.token!==r.token||(this.loadToolbar(r),0))}catch{return!1}}Ta(e){var t=q.ph_load_toolbar||q.ph_load_editor;!Q(t)&&i_(t)?t(e,this.instance):zw.warn(`No toolbar load function found`)}loadToolbar(e){var t=!(K==null||!K.getElementById(cb));if(!G||t)return!1;var n=this.instance.requestRouter.region===`custom`&&this.instance.config.advanced_disable_toolbar_metrics,r=J({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor(`ui`)},n?{instrument:!1}:{});if(G.localStorage.setItem(Rw,JSON.stringify(J({},r,{source:void 0}))),this.Ia()===2)this.Ta(r);else if(this.Ia()===0){var i;this.Ca(1),(i=q.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this.instance,`toolbar`,(e=>{if(e)return zw.error(`[Toolbar] Failed to load`,e),void this.Ca(0);this.Ca(2),this.Ta(r)})),Pb(G,`turbolinks:load`,(()=>{this.Ca(0),this.loadToolbar(r)}))}return!0}Ea(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,n){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(e,t,n)}}},oT=J({experiments:Jw},Zw),sT=J({},Zw,Qw,$w,eT,tT,nT,iT,rT,aT,oT,{conversations:class{constructor(e){this.Ma=void 0,this._conversationsManager=null,this.Ra=!1,this.Pa=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Q(t)||(f_(t)?this.Ma=t:(this.Ma=t.enabled,this.Pa=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ma=void 0,this.Pa=null}loadIfEnabled(){if(!(this._conversationsManager||this.Ra||this._instance.config.disable_conversations||Fb(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=q?.__PosthogExtensions__;if(e&&!Z(this.Ma)&&this.Ma)if(this.Pa&&this.Pa.token){this.Ra=!0;try{var t=e.initConversations;if(t)return this.Oa(t),void(this.Ra=!1);var n=e.loadExternalDependency;if(!n)return void this.La(pb);n(this._instance,`conversations`,(t=>{t||!e.initConversations?this.La(`Could not load conversations script`,t):this.Oa(e.initConversations),this.Ra=!1}))}catch(e){this.La(`Error initializing conversations`,e),this.Ra=!1}}else Yw.error(`Conversations enabled but missing token in remote config.`)}}Oa(e){if(this.Pa)try{this._conversationsManager=e(this.Pa,this._instance),Yw.info(`Conversations loaded successfully`)}catch(e){this.La(`Error completing conversations initialization`,e)}else Yw.error(`Cannot complete initialization: remote config is null`)}La(e,t){Yw.error(e,t),this._conversationsManager=null,this.Ra=!1}show(){this._conversationsManager?this._conversationsManager.show():Yw.warn(`Conversations not loaded yet.`)}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return!0===this.Ma&&!l_(this._conversationsManager)}isVisible(){var e;return(e=this._conversationsManager?.isVisible())!=null&&e}sendMessage(e,t,n){var r=this;return Bg((function*(){return r._conversationsManager?r._conversationsManager.sendMessage(e,t,n):(Yw.warn(Xw),null)}))()}getMessages(e,t){var n=this;return Bg((function*(){return n._conversationsManager?n._conversationsManager.getMessages(e,t):(Yw.warn(Xw),null)}))()}markAsRead(e){var t=this;return Bg((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Yw.warn(Xw),null)}))()}getTickets(e){var t=this;return Bg((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Yw.warn(Xw),null)}))()}requestRestoreLink(e){var t=this;return Bg((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Yw.warn(Xw),null)}))()}restoreFromToken(e){var t=this;return Bg((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Yw.warn(Xw),null)}))()}restoreFromUrlToken(){var e=this;return Bg((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Yw.warn(Xw),null)}))()}getCurrentTicketId(){return this._conversationsManager?.getCurrentTicketId()??null}getWidgetSessionId(){return this._conversationsManager?.getWidgetSessionId()??null}Nn(){var e;(e=this._conversationsManager)==null||e.setIdentity()}Dn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},{logs:class{constructor(e){var t;this.Aa=!1,this.Fa=!1,this.Zt=py(`[logs]`),this.Na=[],this.Da=0,this.$a=0,this.qa=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.Aa=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t=e.logs?.captureConsoleLogs;!Q(t)&&t&&(this.Aa=!0,this.loadIfEnabled())}reset(){this.Na=[],this.ii&&=(clearTimeout(this.ii),void 0),this.Da=0,this.$a=0,this.qa=!1}loadIfEnabled(){if(this.Aa&&!this.Fa){var e=q?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,`logs`,(t=>{var n;t||(n=e.logs)==null||!n.initializeLogs?this.Zt.error(`Could not load logs script`,t):(e.logs.initializeLogs(this._instance),this.Fa=!0)})):this.Zt.error(pb)}else this.Zt.error(`PostHog Extensions not found.`)}}captureLog(e){if(this._instance.is_capturing())if(e&&e.body){var t=this._instance.config.logs?.flushIntervalMs??3e3,n=this._instance.config.logs?.maxLogsPerInterval??1e3,r=Date.now();if(t>r-this.$a||(this.$a=r,this.Da=0,this.qa=!1),n>this.Da){this.Da++;var i=function(e,t){var{text:n,number:r}=jv[e.level||`info`]||Mv,i=String(Date.now())+`000000`,a={};t.distinctId&&(a.posthogDistinctId=t.distinctId),t.sessionId&&(a.sessionId=t.sessionId),t.currentUrl&&(a[`url.full`]=t.currentUrl),t.screenName&&(a[`screen.name`]=t.screenName),t.appState&&(a[`app.state`]=t.appState),t.activeFeatureFlags&&t.activeFeatureFlags.length>0&&(a.feature_flags=t.activeFeatureFlags);var o=J({},a,e.attributes||{}),s={timeUnixNano:i,observedTimeUnixNano:i,severityNumber:r,severityText:n,body:{stringValue:e.body},attributes:Pv(o)};return e.trace_id&&(s.traceId=e.trace_id),e.span_id&&(s.spanId=e.span_id),Z(e.trace_flags)||(s.flags=e.trace_flags),s}(e,this.ja());this.Na.push({record:i}),(this._instance.config.logs?.maxBufferSize??100)>this.Na.length?this.Ba():this.flushLogs()}else this.qa||=(this.Zt.warn(`captureLog dropping logs: exceeded `+n+` logs per `+t+`ms`),!0)}else this.Zt.warn(`captureLog requires a body`)}get logger(){return this.Ha||={trace:(e,t)=>this.captureLog({body:e,level:`trace`,attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:`debug`,attributes:t}),info:(e,t)=>this.captureLog({body:e,level:`info`,attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:`warn`,attributes:t}),error:(e,t)=>
18this.captureLog({body:e,level:`error`,attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:`fatal`,attributes:t})},this.Ha}flushLogs(e){if(this.ii&&=(clearTimeout(this.ii),void 0),this.Na.length!==0){var t=this.Na;this.Na=[];var n=this._instance.config.logs,r=J({"service.name":n?.serviceName||`unknown_service`},n?.environment&&{"deployment.environment":n.environment},n?.serviceVersion&&{"service.version":n.serviceVersion},n?.resourceAttributes),i=function(e,t,n,r){return{resourceLogs:[{resource:{attributes:Pv(t)},scopeLogs:[{scope:{name:n,version:r},logRecords:e}]}]}}(t.map((e=>e.record)),r,Rg.LIB_NAME,Rg.LIB_VERSION),a=this._instance.requestRouter.endpointFor(`api`,`/i/v1/logs`)+`?token=`+encodeURIComponent(this._instance.config.token);this._instance.yn({method:`POST`,url:a,data:i,compression:`best-available`,batchKey:`logs`,transport:e})}}Ba(){this.ii||=setTimeout((()=>{this.ii=void 0,this.flushLogs()}),this._instance.config.logs?.flushIntervalMs??3e3)}ja(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:n}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=n}if(q!=null&&(e=q.location)!=null&&e.href&&(t.currentUrl=q.location.href),this._instance.featureFlags){var r=this._instance.featureFlags.getFlags();r&&r.length>0&&(t.activeFeatureFlags=r)}return t}}});cw.__defaultExtensionClasses=J({},sT);var cT=function(){Rg.SDK_DIST_CHANNEL=`npm`;var e=YC[nw]=new cw;return function(){function e(){e.done||(e.done=!0,rw=!1,Eb(YC,(function(e){e._dom_loaded()})))}K!=null&&K.addEventListener?K.readyState===`complete`?e():Pb(K,`DOMContentLoaded`,e,{capture:!1}):G&&$.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),e}(),lT;function uT(e){lT=e}function dT(){return lT}var fT=(0,z.createContext)({get client(){return dT()},bootstrap:void 0});function pT(e,t,n){if(n===void 0&&(n=new WeakMap),e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(n.has(e)&&n.get(e)===t)return!0;n.set(e,t);var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var a=0,o=r;a<o.length;a++){var s=o[a];if(!i.includes(s)||!pT(e[s],t[s],n))return!1}return!0}function mT(e){var t=e.children,n=e.client,r=e.apiKey,i=e.options,a=(0,z.useRef)(null),o=(0,z.useMemo)(function(){if(n)return r&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),i&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),n;var e=dT();return r||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),e},[n,r,JSON.stringify(i)]);return(0,z.useEffect)(function(){if(!(n||!r)){var e=dT(),t=a.current;t?(r!==t.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),i&&!pT(i,t.options)&&e.set_config(i),a.current={apiKey:r,options:i??{}}):(e.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),e.init(r,i),a.current={apiKey:r,options:i??{}})}},[n,r,JSON.stringify(i)]),z.createElement(fT.Provider,{value:{client:o,bootstrap:i?.bootstrap??n?.config?.bootstrap}},t)}var hT=function(e){return typeof e==`function`},gT=function(){return(0,z.useContext)(fT).client},_T=function(e,t){return _T=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])},_T(e,t)};function vT(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);_T(e,t);function n(){this.constructor=e}
18e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var yT={componentStack:null,exceptionEvent:null,error:null},bT={INVALID_FALLBACK:`[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element.`};(function(e){vT(t,e);function t(t){var n=e.call(this,t)||this;return n.state=yT,n}return t.prototype.componentDidCatch=function(e,t){var n=this.props.additionalProperties,r;hT(n)?r=n(e):typeof n==`object`&&(r=n);var i=this.context.client.captureException(e,r),a=t.componentStack;this.setState({error:e,componentStack:a??null,exceptionEvent:i})},t.prototype.render=function(){var e=this.props,t=e.children,n=e.fallback,r=this.state;if(r.componentStack==null)return hT(t)?t():t;var i=hT(n)?z.createElement(n,{error:r.error,componentStack:r.componentStack,exceptionEvent:r.exceptionEvent}):n;return z.isValidElement(i)?i:(console.warn(bT.INVALID_FALLBACK),z.createElement(z.Fragment,null))},t.contextType=fT,t})(z.Component),uT(cT);function xT({children:e,client:t,authClient:n,initialToken:r}){let i=CT(n,r);return(0,z.useEffect)(()=>{(async()=>{if(typeof window>`u`||!window.location?.href)return;let e=new URL(window.location.href),t=e.searchParams.get(`ott`);if(t){let r=n;e.searchParams.delete(`ott`),window.history.replaceState({},``,e);let i=(await r.crossDomain.oneTimeToken.verify({token:t})).data?.session;i&&(await n.getSession({fetchOptions:{headers:{Authorization:`Bearer ${i.token}`}}}),r.updateSession())}})()},[n]),(0,B.jsx)(gd,{client:t,useAuth:i,children:(0,B.jsx)(B.Fragment,{children:e})})}var ST=!1;function CT(e,t){let[n,r]=(0,z.useState)(ST?null:t??null),i=(0,z.useRef)(null);return(0,z.useEffect)(()=>{ST||=!0},[]),(0,z.useMemo)(()=>function(){let{data:t,isPending:a}=e.useSession(),o=t?.session?.id;(0,z.useEffect)(()=>{!t&&!a&&n&&r(null)},[t,a]);let s=(0,z.useCallback)(async({forceRefreshToken:t=!1}={})=>n&&!t?n:(!t&&i.current||(i.current=e.convex.token({fetchOptions:{throw:!1}}).then(({data:e})=>{let t=e?.token||null;return r(t),t}).catch(()=>(r(null),null)).finally(()=>{i.current=null})),i.current),[o]);return(0,z.useMemo)(()=>({isLoading:a&&!n,isAuthenticated:!!t?.session||n!==null,fetchAccessToken:s}),[a,o,s,n])},[e])}var wT=Object.create(null),TT=e=>({}),ET=new Proxy(wT,{get(e,t){return TT()[t]??wT[t]},has(e,t){return t in TT()||t in wT},set(e,t,n){let r=TT(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;let n=TT(!0);return delete n[t],!0},ownKeys(){let e=TT(!0);return Object.keys(e)}});function DT(e,t){return typeof process<`u`?{}[e]??t:typeof Deno<`u`?Deno.env.get(e)??t:typeof Bun<`u`?Bun.env[e]??t:t}Object.freeze({get BETTER_AUTH_SECRET(){return DT(`BETTER_AUTH_SECRET`)},get AUTH_SECRET(){return DT(`AUTH_SECRET`)},get BETTER_AUTH_TELEMETRY(){return DT(`BETTER_AUTH_TELEMETRY`)},get BETTER_AUTH_TELEMETRY_ID(){return DT(`BETTER_AUTH_TELEMETRY_ID`)},get NODE_ENV(){return DT(`NODE_ENV`,`development`)},get PACKAGE_VERSION(){return DT(`PACKAGE_VERSION`,`0.0.0`)},get BETTER_AUTH_TELEMETRY_ENDPOINT(){return DT(`BETTER_AUTH_TELEMETRY_ENDPOINT`,``)}});function OT(){let e=Object.getOwnPropertyDescriptor(Error,`stackTraceLimit`);return e===void 0?Object.isExtensible(Error):Object.prototype.hasOwnProperty.call(e,`writable`)?e.writable:e.set!==void 0}function kT(e){let t=e.split(` 19 at `);return t.length<=1?e:(t.splice(1,1),t.join(` 20 at `))}function AT(e,t){class n extends e{#e;constructor(...e){if(OT()){let t=Error.stackTraceLimit;Error.stackTraceLimit=0,super(...e),Error.stackTraceLimit=t}else super(...e);let t=Error().stack;t&&(this.#e=kT(t.replace(/^Error/,this.name)))}get errorStack(){return this.#e}}return Object.defineProperty(n.prototype,"constructor",{get(){return t},enumerable:!1,configurable:!0}),n}var jT={OK:200,CREATED:201,ACCEPTED:202,NO_CONTENT:204,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,TEMPORARY_REDIRECT:307,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTHENTICATION_REQUIRED:407,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,"I'M_A_TEAPOT":418,MISDIRECTED_REQUEST:421,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,TOO_EARLY:425,UPGRADE_REQUIRED:426,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,UNAVAILABLE_FOR_LEGAL_REASONS:451,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENT
20ED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,VARIANT_ALSO_NEGOTIATES:506,INSUFFICIENT_STORAGE:507,LOOP_DETECTED:508,NOT_EXTENDED:510,NETWORK_AUTHENTICATION_REQUIRED:511};AT(class extends Error{constructor(e=`INTERNAL_SERVER_ERROR`,t=void 0,n={},r=typeof e==`number`?e:jT[e]){super(t?.message,t?.cause?{cause:t.cause}:void 0),this.status=e,this.body=t,this.headers=n,this.statusCode=r,this.name=`APIError`,this.status=e,this.headers=n,this.statusCode=r,this.body=t}},Error);var MT=class extends Error{constructor(e,t){super(e,t),this.name=`BetterAuthError`,this.message=e,this.stack=``}},NT=47;function PT(e){let t=e.length;for(;t>0&&e.charCodeAt(t-1)===NT;)t--;return t===e.length?e:e.slice(0,t)}function FT(e){try{return(PT(new URL(e).pathname)||`/`)!==`/`}catch{throw new MT(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function IT(e){try{let t=new URL(e);if(t.protocol!==`http:`&&t.protocol!==`https:`)throw new MT(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof MT?t:new MT(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function LT(e,t=`/api/auth`){if(IT(e),FT(e))return e;let n=PT(e);return!t||t===`/`?n:(t=t.startsWith(`/`)?t:`/${t}`,`${n}${t}`)}function RT(e,t){return!e||e.trim()===``?!1:t===`proto`?e===`http`||e===`https`:t===`host`?[/\.\./,/\0/,/[\s]/,/^[.]/,/[<>'"]/,/javascript:/i,/file:/i,/data:/i].some(t=>t.test(e))?!1:/^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*(:[0-9]{1,5})?$/.test(e)||/^(\d{1,3}\.){3}\d{1,3}(:[0-9]{1,5})?$/.test(e)||/^\[[0-9a-fA-F:]+\](:[0-9]{1,5})?$/.test(e)||/^localhost(:[0-9]{1,5})?$/i.test(e):!1}function zT(e,t,n,r,i){if(e)return LT(e,t);if(r!==!1){let e=ET.BETTER_AUTH_URL||ET.NEXT_PUBLIC_BETTER_AUTH_URL||ET.PUBLIC_BETTER_AUTH_URL||ET.NUXT_PUBLIC_BETTER_AUTH_URL||ET.NUXT_PUBLIC_AUTH_URL||(ET.BASE_URL===`/`?void 0:ET.BASE_URL);if(e)return LT(e,t)}let a=n?.headers.get(`x-forwarded-host`),o=n?.headers.get(`x-forwarded-proto`);if(a&&o&&i&&RT(o,`proto`)&&RT(a,`host`))try{return LT(`${o}://${a}`,t)}catch{}if(n){let e=BT(n.url);if(!e)throw new MT(`Could not get origin from request. Please provide a valid base URL.`);return LT(e,t)}if(typeof window<`u`&&window.location)return LT(window.location.origin,t)}function BT(e){try{let t=new URL(e);return t.origin===`null`?null:t.origin}catch{return null}}var VT={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},HT=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,UT={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:1/0,"-infinity":-1/0},WT=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function GT(e){return e instanceof Date&&!isNaN(e.getTime())}function KT(e){let t=WT.exec(e);if(!t)return null;let[,n,r,i,a,o,s,c,l,u,d]=t,f=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(i,10),parseInt(a,10),parseInt(o,10),parseInt(s,10),c?parseInt(c.padEnd(3,`0`),10):0));if(l){let e=(parseInt(u,10)*60+parseInt(d,10))*(l===`+`?-1:1);f.setUTCMinutes(f.getUTCMinutes()+e)}return GT(f)?f:null}function qT(e,t={}){let{strict:n=!1,warnings:r=!1,reviver:i,parseDates:a=!0}=t;if(typeof e!=`string`)return e;let o=e.trim(),s=o.toLowerCase();if(s.length<=9&&s in UT)return UT[s];if(!HT.test(o)){if(n)throw SyntaxError(`[better-json] Invalid JSON`);return e}if(Object.entries(VT).some(([e,t])=>{let n=t.test(o);return n&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${e} pattern`),n})&&n)throw Error(`[better-json] Potential prototype pollution attempt detected`);try{return JSON.parse(o,(e,t)=>{if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){r&&console.warn(`[better-json] Dropping "${e}" key to prevent prototype pollution`);return}if(a&&typeof t==`string`){let e=KT(t);if(e)return e}return i?i(e,t):t})}catch(t){if(n)throw t;return e}}function JT(e,t={strict:!0}){return qT(e,t)}var YT=[`javascript:`,`data:`,`vbscript:`];function XT(e){let t;try{t=new URL(e)}catch{return!0}return!YT.includes(t.protocol)}var ZT={id:`redirect`,name:`Redirect`,hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&XT(e.data.url)&&typeof window<`u`&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}},QT=[],$T=0,eE=4,tE=globalThis.nanostoresGlobal||={epoch:0},nE=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},init:e,lc:0,listen(e){return n.lc=t.push(e),()=>{for(let t=$T+eE;t<QT.length;)QT[t]===e?QT.splice(t,eE):t+=eE;let r=t.indexOf(e);~r&&(t.splice(r,1),--n.lc||n.off())}},notify(e,r){tE.epoch++;let i=!QT.length;for(let i of t)QT.push(i,n.value,e,r);
20if(i){for($T=0;$T<QT.length;$T+=eE)QT[$T](QT[$T+1],QT[$T+2],QT[$T+3]);QT.length=0}},off(){},set(e){let t=n.value;t!==e&&(n.value=e,n.notify(t))},subscribe(e){let t=n.listen(e);return e(n.value),t},value:e};return n},rE=5,iE=6,aE=10,oE=(e,t,n,r)=>(e.events=e.events||{},e.events[n+aE]||(e.events[n+aE]=r(t=>{e.events[n].reduceRight((e,t)=>(t(e),e),{shared:{},...t})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let r=e.events[n],i=r.indexOf(t);r.splice(i,1),r.length||(delete e.events[n],e.events[n+aE](),delete e.events[n+aE])}),sE=1e3,cE=(e,t)=>oE(e,n=>{let r=t(n);r&&e.events[iE].push(r)},rE,t=>{let n=e.listen;e.listen=(...r)=>(!e.lc&&!e.active&&(e.active=!0,t()),n(...r));let r=e.off;return e.events[iE]=[],e.off=()=>{r(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let t of e.events[iE])t();e.events[iE]=[]}},sE)},()=>{e.listen=n,e.off=r}});function lE(e,t,n){let r=new Set(t).add(void 0);return e.listen((e,t,i)=>{r.has(i)&&n(e,t,i)})}var uE=()=>typeof window>`u`,dE=(e,t,n,r)=>{let i=nE({data:null,error:null,isPending:!0,isRefetching:!1,refetch:e=>a(e)}),a=async e=>new Promise(a=>{let o=typeof r==`function`?r({data:i.get().data,error:i.get().error,isPending:i.get().isPending}):r;n(t,{...o,query:{...o?.query,...e?.query},async onSuccess(e){i.set({data:e.data,error:null,isPending:!1,isRefetching:!1,refetch:i.value.refetch}),await o?.onSuccess?.(e)},async onError(e){let{request:t}=e,n=typeof t.retry==`number`?t.retry:t.retry?.attempts,r=t.retryAttempt||0;if(n&&r<n)return;let a=e.error.status===401;i.set({error:e.error,data:a?null:i.get().data,isPending:!1,isRefetching:!1,refetch:i.value.refetch}),await o?.onError?.(e)},async onRequest(e){let t=i.get();i.set({isPending:t.data===null,data:t.data,error:null,isRefetching:!0,refetch:i.value.refetch}),await o?.onRequest?.(e)}}).catch(e=>{i.set({error:e,data:i.get().data,isPending:!1,isRefetching:!1,refetch:i.value.refetch})}).finally(()=>{a(void 0)})});e=Array.isArray(e)?e:[e];let o=!1;for(let t of e)t.subscribe(async()=>{uE()||(o?await a():cE(i,()=>{let e=setTimeout(async()=>{o||(o=!0,await a())},0);return()=>{i.off(),t.off(),clearTimeout(e)}}))});return i},fE=Symbol.for(`better-auth:broadcast-channel`),pE=()=>Math.floor(Date.now()/1e3),mE=class{listeners=new Set;name;constructor(e=`better-auth.message`){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>`u`))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:pE()}))}catch{}}setup(){if(typeof window>`u`||window.addEventListener===void 0)return()=>{};let e=e=>{if(e.key!==this.name)return;let t=JSON.parse(e.newValue??`{}`);t?.event!==`session`||!t?.data||this.listeners.forEach(e=>e(t))};return window.addEventListener(`storage`,e),()=>{window.removeEventListener(`storage`,e)}}};function hE(e=`better-auth.message`){return globalThis[fE]||(globalThis[fE]=new mE(e)),globalThis[fE]}var gE=Symbol.for(`better-auth:focus-manager`),_E=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>`u`||typeof document>`u`||window.addEventListener===void 0)return()=>{};let e=()=>{document.visibilityState===`visible`&&this.setFocused(!0)};return document.addEventListener(`visibilitychange`,e,!1),()=>{document.removeEventListener(`visibilitychange`,e,!1)}}};function vE(){return globalThis[gE]||(globalThis[gE]=new _E),globalThis[gE]}var yE=Symbol.for(`better-auth:online-manager`),bE=class{listeners=new Set;isOnline=typeof navigator<`u`?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>`u`||window.addEventListener===void 0)return()=>{};let e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener(`online`,e,!1),window.addEventListener(`offline`,t,!1),()=>{window.removeEventListener(`online`,e,!1),window.removeEventListener(`offline`,t,!1)}}};function xE(){return globalThis[yE]||(globalThis[yE]=new bE),globalThis[yE]}var SE=()=>Math.floor(Date.now()/1e3);function CE(e){return typeof e==`object`&&e&&`data`in e&&`error`in e?e:{data:e,error:null}}var wE=5;function TE(e){let{sessionAtom:t,sessionSignal:n,$fetch:r,options:i={}}=e,a=i.sessionOptions?.refetchInterval??0,o=i.sessionOptions?.refetchOnWindowFocus??!0,s=i.sessionOptions?.refetchWhenOffline??!1,c={lastSync:0,lastSessionRequest:0,cachedSession:void 0},l=()=>s||xE().isOnline,u=e=>{if(!l())return;if(e?.event===`storage`){c.lastSync=SE(),n.set(!n.get());return}let i=t.get(),a=()=>{c.lastSessionRequest=SE(),r(`/get-session`).then(async e=>{let{data:a,error:o}=CE(e);if(a?.needsRefresh)try{let e=await r(`/get-session`,{method:`POST`});({data:a,error:o}=CE(e))}catch{}let s=a?.session&&a?.user?a:null;t.set({...i,data:s,error:o}),c.lastSync=SE(),n.set(!n.get())}).catch(()=>{})};if(e?.event===`poll`){a();return}if(e?.event===`visibilitychange`){if(SE()-c.lastSessionRequest<wE)return;c.lastSessionRequest=SE()}if(e?.event===`visibilitychange`){a();return}(i?.data===null||i?.data===void 0)&&(c.lastSync=SE(),n.set(!n.get()))},d=e=>{hE().post({event:`session`,data:{trigger:e},clientId:Math.random().toString(36).substring(7)})},f=()=>{a&&a>0&&(c.pollInterval=setInterval(()=>{t.get()?.data&&u({event:`poll`})},a*1e3))},p=()=>{c.unsubscribeBroadcast=hE().subscribe(()=>{u({event:`storage`})})},m=()=>{o&&(c.unsubscribeFocus=vE().subscribe(()=>{u({event:`visibilitychange`})}))},h=()=>{c.unsubscribeOnline=xE().subscribe(e=>{e&&u({event:`visibilitychange`})})};return{init:()=>{f(),p(),m(),h(),hE().setup(),vE().setup(),xE().setup()},cleanup:()=>{c.pollInterval&&=(clearInterval(c.pollInterval),void 0),c.unsubscribeBroadcast&&=(c.unsubscribeBroadcast(),void 0),c.unsubscribeFocus&&=(c.unsubscribeFocus(),void 0),c.unsubscribeOnline&&=(c.unsubscribeOnline(),void 0),c.lastSync=0,c.lastSessionRequest=0,c.cachedSession=void 0},triggerRefetch:u,broadcastSessionUpdate:d}}function EE(e,t){let n=nE(!1),r=dE(n,`/get-session`,e,{method:`GET`}),i=()=>{};return cE(r,()=>{let a=TE({sessionAtom:r,sessionSignal:n,$fetch:e,options:t});return a.init(),i=a.broadcastSessionUpdate,()=>{a.cleanup()}}),{session:r,$sessionSignal:n,broadcastSessionUpdate:e=>i(e)}}function DE(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function OE(e,t,n=`.`,r){if(!DE(t))return OE(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:DE(a)&&DE(i[t])?i[t]=OE(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function kE(e){return(...t)=>t.reduce((t,n)=>OE(t,n,``,e),{})}var AE=kE(),jE=Object.defineProperty,ME=Object.defineProperties,NE=Object.getOwnPropertyDescriptors,PE=Object.getOwnPropertySymbols,FE=Object.prototype.hasOwnProperty,IE=Object.prototype.propertyIsEnumerable,LE=(e,t,n)=>t in e?jE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,RE=(e,t)=>{for(var n in t||={})FE.call(t,n)&&LE(e,n,t[n]);if(PE)for(var n of PE(t))IE.call(t,n)&&LE(e,n,t[n]);return e},zE=(e,t)=>
20ME(e,NE(t)),BE=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n,Error.captureStackTrace(this,this.constructor)}},VE=async(e,t)=>{let n=t||{},r={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:n,hooks:r};for(let i of t?.plugins||[]){if(i.init){let r=await i.init?.call(i,e.toString(),t);n=r.options||n,e=r.url}r.onRequest.push(i.hooks?.onRequest),r.onResponse.push(i.hooks?.onResponse),r.onSuccess.push(i.hooks?.onSuccess),r.onError.push(i.hooks?.onError),r.onRetry.push(i.hooks?.onRetry)}return{url:e,options:n,hooks:r}},HE=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},UE=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function WE(e){if(typeof e==`number`)return new HE({type:`linear`,attempts:e,delay:1e3});switch(e.type){case`linear`:return new HE(e);case`exponential`:return new UE(e);default:throw Error(`Invalid retry strategy`)}}var GE=async e=>{let t={},n=async e=>typeof e==`function`?await e():e;if(e?.auth){if(e.auth.type===`Bearer`){let r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if(e.auth.type===`Basic`){let[r,i]=await Promise.all([n(e.auth.username),n(e.auth.password)]);if(!r||!i)return t;t.authorization=`Basic ${btoa(`${r}:${i}`)}`}else if(e.auth.type===`Custom`){let[r,i]=await Promise.all([n(e.auth.prefix),n(e.auth.value)]);if(!i)return t;t.authorization=`${r??``} ${i}`}}return t},KE=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function qE(e){let t=e.headers.get(`content-type`),n=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]);if(!t)return`json`;let r=t.split(`;`).shift()||``;return KE.test(r)?`json`:n.has(r)||r.startsWith(`text/`)?`text`:`blob`}function JE(e){try{return JSON.parse(e),!0}catch{return!1}}function YE(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}function XE(e){try{return JSON.parse(e)}catch{return e}}function ZE(e){return typeof e==`function`}function QE(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<`u`&&ZE(globalThis.fetch))return globalThis.fetch;if(typeof window<`u`&&ZE(window.fetch))return window.fetch;throw Error(`No fetch implementation found`)}async function $E(e){let t=new Headers(e?.headers),n=await GE(e);for(let[e,r]of Object.entries(n||{}))t.set(e,r);if(!t.has(`content-type`)){let n=eD(e?.body);n&&t.set(`content-type`,n)}return t}function eD(e){return YE(e)?`application/json`:null}function tD(e){if(!e?.body)return null;let t=new Headers(e?.headers);if(YE(e.body)&&!t.has(`content-type`)){for(let[t,n]of Object.entries(e?.body))n instanceof Date&&(e.body[t]=n.toISOString());return JSON.stringify(e.body)}return t.has(`content-type`)&&t.get(`content-type`)===`application/x-www-form-urlencoded`&&YE(e.body)?new URLSearchParams(e.body).toString():e.body}function nD(e,t){if(t?.method)return t.method.toUpperCase();if(e.startsWith(`@`)){let n=e.split(`@`)[1]?.split(`/`)[0];return oD.includes(n)?n.toUpperCase():t?.body?`POST`:`GET`}return t?.body?`POST`:`GET`}function rD(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var iD=class e extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,e.prototype)}};async function aD(e,t){let n=await e[`~standard`].validate(t);if(n.issues)throw new iD(n.issues);return n.value}var oD=[`get`,`post`,`put`,`patch`,`delete`],sD=e=>({id:`apply-schema`,name:`Apply Schema`,version:`1.0.0`,async init(t,n){let r=e.plugins?.find(e=>
20e.schema?.config?t.startsWith(e.schema.config.baseURL||``)||t.startsWith(e.schema.config.prefix||``):!1)?.schema||e.schema;if(r){let e=t;r.config?.prefix&&e.startsWith(r.config.prefix)&&(e=e.replace(r.config.prefix,``),r.config.baseURL&&(t=t.replace(r.config.prefix,r.config.baseURL))),r.config?.baseURL&&e.startsWith(r.config.baseURL)&&(e=e.replace(r.config.baseURL,``));let i=r.schema[e];if(i){let e=zE(RE({},n),{method:i.method,output:i.output});return n?.disableValidation||(e=zE(RE({},e),{body:i.input?await aD(i.input,n?.body):n?.body,params:i.params?await aD(i.params,n?.params):n?.params,query:i.query?await aD(i.query,n?.query):n?.query})),{url:t,options:e}}}return{url:t,options:n}}}),cD=e=>{async function t(t,n){let r=zE(RE(RE({},e),n),{plugins:[...e?.plugins||[],sD(e||{}),...n?.plugins||[]]});if(e?.catchAllError)try{return await uD(t,r)}catch(e){return{data:null,error:{status:500,statusText:`Fetch Error`,message:`Fetch related error. Captured by catchAllError option. See error property for more details.`,error:e}}}return await uD(t,r)}return t};function lD(e,t){let{baseURL:n,params:r,query:i}=t||{query:{},params:{},baseURL:``},a=e.startsWith(`http`)?e.split(`/`).slice(0,3).join(`/`):n||``;if(e.startsWith(`@`)){let t=e.toString().split(`@`)[1].split(`/`)[0];oD.includes(t)&&(e=e.replace(`@${t}/`,`/`))}a.endsWith(`/`)||(a+=`/`);let[o,s]=e.replace(a,``).split(`?`),c=new URLSearchParams(s);for(let[e,t]of Object.entries(i||{})){if(t==null)continue;let n;if(typeof t==`string`)n=t;else if(Array.isArray(t)){for(let n of t)c.append(e,n);continue}else n=JSON.stringify(t);c.set(e,n)}if(r)if(Array.isArray(r)){let e=o.split(`/`).filter(e=>e.startsWith(`:`));for(let[t,n]of e.entries()){let e=r[t];o=o.replace(n,e)}}else for(let[e,t]of Object.entries(r))o=o.replace(`:${e}`,String(t));o=o.split(`/`).map(encodeURIComponent).join(`/`),o.startsWith(`/`)&&(o=o.slice(1));let l=c.toString();return l=l.length>0?`?${l}`.replace(/\+/g,`%20`):``,a.startsWith(`http`)?new URL(`${o}${l}`,a):`${a}${o}${l}`}var uD=async(e,t)=>{let{hooks:n,url:r,options:i}=await VE(e,t),a=QE(i),o=new AbortController,s=i.signal??o.signal,c=lD(r,i),l=tD(i),u=await $E(i),d=nD(r,i),f=zE(RE({},i),{url:c,headers:u,body:l,method:d,signal:s});for(let e of n.onRequest)if(e){let t=await e(f);typeof t==`object`&&t&&(f=t)}(`pipeTo`in f&&typeof f.pipeTo==`function`||typeof t?.body?.pipe==`function`)&&(`duplex`in f||(f.duplex=`half`));let{clearTimeout:p}=rD(i,o),m=await a(f.url,f);p();let h={response:m,request:f};for(let e of n.onResponse)if(e){let n=await e(zE(RE({},h),{response:t?.hookOptions?.cloneResponse?m.clone():m}));n instanceof Response?m=n:typeof n==`object`&&n&&(m=n.response)}if(m.ok){if(f.method===`HEAD`)return{data:``,error:null};let e=qE(m),r={data:null,response:m,request:f};if(e===`json`||e===`text`){let e=await m.text();r.data=await(f.jsonParser??XE)(e)}else r.data=await m[e]();f?.output&&f.output&&!f.disableValidation&&(r.data=await aD(f.output,r.data));for(let e of n.onSuccess)e&&await e(zE(RE({},r),{response:t?.hookOptions?.cloneResponse?m.clone():m}));return t?.throw?r.data:{data:r.data,error:null}}let g=t?.jsonParser??XE,_=await m.text(),v=JE(_),y=v?await g(_):null,b={response:m,responseText:_,request:f,error:zE(RE({},y),{status:m.status,statusText:m.statusText})};for(let e of n.onError)e&&await e(zE(RE({},b),{response:t?.hookOptions?.cloneResponse?m.clone():m}));if(t?.retry){let r=WE(t.retry),i=t.retryAttempt??0;if(await r.shouldAttemptRetry(i,m)){for(let e of n.onRetry)e&&await e(h);let a=r.getDelay(i);return await new Promise(e=>setTimeout(e,a)),await uD(e,zE(RE({},t),{retryAttempt:i+1}))}}if(t?.throw)throw new BE(m.status,m.statusText,v?y:_);return{data:null,error:zE(RE({},y),{status:m.status,statusText:m.statusText})}},dD=e=>{if(typeof process>`u`)return;let t=e??`/api/auth`;if({}.NEXT_PUBLIC_AUTH_URL)return{}.NEXT_PUBLIC_AUTH_URL;if(typeof window>`u`){if({}.NEXTAUTH_URL)try{return{}.NEXTAUTH_URL}catch{}if({}.VERCEL_URL)try{let e={}.VERCEL_URL.startsWith(`http`)?``:`https://`;return`${new URL(`${e}${{}.VERCEL_URL}`).origin}${t}`}catch{}}},fD=(e,t)=>{let n=`credentials`in Request.prototype,r=zT(e?.baseURL,e?.basePath,void 0,t)??dD(e?.basePath)??`/api/auth`,i=e?.plugins?.flatMap(e=>e.fetchPlugins).filter(e=>e!==void 0)||[],a={id:`lifecycle-hooks`,name:`lifecycle-hooks`,hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:o,onError:s,onRequest:c,onResponse:l,...u}=e?.fetchOptions||{},d=cD({baseURL:r,...n?{credentials:`include`}:{},method:`GET`,jsonParser(e){return e?JT(e,{strict:!1}):null},customFetchImpl:fetch,...u,plugins:[a,...u.plugins||[],...e?.disableDefaultFetchPlugins?[]:[ZT],...i]}),{$sessionSignal:f,session:p,broadcastSessionUpdate:m}=EE(d,e),h=e?.plugins||[],g={},_={$sessionSignal:f,session:p}
20,v={"/sign-out":`POST`,"/revoke-sessions":`POST`,"/revoke-other-sessions":`POST`,"/delete-user":`POST`},y=[{signal:`$sessionSignal`,matcher(e){return e===`/sign-out`||e===`/update-user`||e===`/update-session`||e===`/sign-up/email`||e===`/sign-in/email`||e===`/delete-user`||e===`/verify-email`||e===`/revoke-sessions`||e===`/revoke-session`||e===`/revoke-other-sessions`||e===`/change-email`||e===`/change-password`},callback(e){e===`/sign-out`?m(`signout`):(e===`/update-user`||e===`/update-session`)&&m(`updateUser`)}}];for(let e of h)e.getAtoms&&Object.assign(_,e.getAtoms?.(d)),e.pathMethods&&Object.assign(v,e.pathMethods),e.atomListeners&&y.push(...e.atomListeners);let b={notify:e=>{_[e].set(!_[e].get())},listen:(e,t)=>{_[e].subscribe(t)},atoms:_};for(let t of h)t.getActions&&(g=AE(t.getActions?.(d,b,e)??{},g));return{get baseURL(){return r},pluginsActions:g,pluginsAtoms:_,pluginPathMethods:v,atomListeners:y,$fetch:d,$store:b}};function pD(e){return typeof e==`object`&&!!e&&`get`in e&&typeof e.get==`function`&&`lc`in e&&typeof e.lc==`number`}function mD(e){return e.charAt(0).toUpperCase()+e.slice(1)}var hD=/[\p{Ll}\d]+|\p{Lu}+(?!\p{Ll})|\p{Lu}[\p{Ll}\d]+|\p{Lo}+/gu,gD=/['\u2019]/g;function _D(e){return e.replace(gD,``).match(hD)??[]}function vD(e){return _D(e).map(e=>e.toLowerCase()).join(`-`)}function yD(e,t,n){let r=t[e],{fetchOptions:i,query:a,...o}=n||{};return r||(i?.method?i.method:o&&Object.keys(o).length>0?`POST`:`GET`)}function bD(e,t,n,r,i){function a(o=[]){return new Proxy(function(){},{get(t,n){if(typeof n!=`string`||n===`then`||n===`catch`||n===`finally`)return;let r=[...o,n],i=e;for(let e of r)if(i&&typeof i==`object`&&e in i)i=i[e];else{i=void 0;break}return typeof i==`function`||pD(i)?i:a(r)},apply:async(e,a,s)=>{let c=`/`+o.map(vD).join(`/`),l=s[0]||{},u=s[1]||{},{query:d,fetchOptions:f,...p}=l,m={...u,...f},h=yD(c,n,l);return await t(c,{...m,body:h===`GET`?void 0:{...p,...m?.body||{}},query:d||m?.query,method:h,async onSuccess(e){if(await m?.onSuccess?.(e),!i||m.disableSignal)return;let t=i.filter(e=>e.matcher(c));if(!t.length)return;let n=new Set;for(let e of t){let t=r[e.signal];if(!t)return;if(n.has(e.signal))continue;n.add(e.signal);let i=t.get();setTimeout(()=>{t.set(!i)},10),e.callback?.(c)}}})}})}return a()}function xD(e,t={}){let n=(0,z.useRef)(e.get()),{keys:r,deps:i=[e,r]}=t,a=(0,z.useCallback)(t=>{let i=e=>{n.current!==e&&(n.current=e,t())};return i(e.value),r?.length?lE(e,r,i):e.listen(i)},i),o=()=>n.current;return(0,z.useSyncExternalStore)(a,o,o)}function SD(e){return`use${mD(e)}`}function CD(e){let{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,$fetch:i,$store:a,atomListeners:o}=fD(e),s={};for(let[e,t]of Object.entries(r))s[SD(e)]=()=>xD(t);return bD({...n,...s,$fetch:i,$store:a},i,t,r,o)}var wD=CD({plugins:[{id:`magic-link`,version:`1.6.15`,$InferServerPlugin:{}},{id:`convex`,version:`0.12.3`,$InferServerPlugin:{}}]}),TD=`/relay-q7q`,ED={auditStarted:`audit_started`,emailCaptured:`email_captured`,reportGenerationStarted:`report_generation_started`,reportViewed:`report_viewed`,salesDialogOpened:`sales_dialog_opened`,tierInterestRegistered:`tier_interest_registered`,salesCtaClicked:`sales_cta_clicked`,loginViewed:`login_viewed`,loginMethodChosen:`login_method_chosen`,authenticatedLanded:`authenticated_landed`,onboardingStarted:`onboarding_started`,onboardingBrandChosen:`onboarding_brand_chosen`,paywallViewed:`paywall_viewed`,paywallSkippedFree:`paywall_skipped_free`,checkoutStarted:`checkout_started`,activationFirstScanViewed:`activation_first_scan_viewed`,dashboardTabViewed:`dashboard_tab_viewed`,adviceStatusChanged:`advice_status_changed`};function DD(){return{api_host:TD,ui_host:`https://eu.posthog.com`,defaults:`2026-05-30`,persistence:`memory`,session_recording:{maskAllInputs:!0},capture_performance:{web_vitals:!0},capture_exceptions:!0}}function OD(e,t,n){e.__loaded&&e.capture(t,n)}function kD(e,t,n){e.__loaded&&e.identify(t,{email:t,language:n})}function AD(e,t,n){e.__loaded&&e.identify(t,{email:t,...n})}function jD(e){let t=e.replace(/^\/fr(?=\/|$)/,``).match(/^\/app(?:\/([^/?#]+))?/);return t===null?`other`:t[1]??`overview`}var MD={generationSeen:!1,viewed:!1},ND=[`preparing`,`collecting`,`analyzing`];function PD(e,t){return ND.includes(e)&&!t.generationSeen?{toCapture:[{event:ED.reportGenerationStarted}],state:{...t,generationSeen:!0}}:e===`ready`&&!t.viewed?{toCapture:[{event:ED.reportViewed,properties:{waited:t.generationSeen}}],state:{...t,viewed:!0}}:{toCapture:[],state:t}}var FD=`/assets/app-DTStCZZa.css`,ID=gl({method:`GET`}).handler(cc(`4ff28c9c05f6ba533bf6abcfa19808f2c1042fbbbbc0e23f1d269f61bbf88636`)),LD=Ne()({head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},{title:`Pythie · Mesurez votre visibilité dans les réponses IA`}],links:[{rel:`stylesheet`,href:FD},{rel:`apple-touch-icon`,sizes:`180x180`,href:`/apple-touch-icon.png`}
20,{rel:`icon`,type:`image/png`,sizes:`32x32`,href:`/favicon-32x32.png`},{rel:`icon`,type:`image/png`,sizes:`16x16`,href:`/favicon-16x16.png`},{rel:`manifest`,href:`/site.webmanifest`},{rel:`icon`,href:`/favicon.ico`},...Pe],styles:[Me],scripts:[{children:Qe}]}),beforeLoad:async e=>{let{token:t,themePref:n}=await ID();return t&&e.context.convexQueryClient.serverHttpClient?.setAuth(t),{token:t,themePref:n}},component:zD});function RD({children:e}){return(0,B.jsx)(mT,{apiKey:`phc_vEnycH7cW2yPASNecaVnJccPzezajCnwAuuZerbax6M6`,options:DD(),children:e})}function zD(){let e=LD.useRouteContext(),t=Xe(e.themePref);return(0,B.jsx)(xT,{client:e.convexQueryClient.convexClient,authClient:wD,initialToken:e.token,children:(0,B.jsx)(RD,{children:(0,B.jsx)(Ze,{initialPref:e.themePref,initialResolved:t,children:(0,B.jsxs)(BD,{themeClass:t,children:[(0,B.jsx)(Yc,{}),null]})})})})}function BD({themeClass:e,children:t}){return(0,B.jsxs)(`html`,{lang:r(il({select:e=>e.location.pathname})),className:e,suppressHydrationWarning:!0,children:[(0,B.jsx)(`head`,{children:(0,B.jsx)(ll,{})}),(0,B.jsxs)(`body`,{children:[t,(0,B.jsx)(ul,{})]})]})}function VD(){let e=t(),{footer:n}=qt();return(0,B.jsxs)(`footer`,{className:`space-y-6 border-t py-8 text-center`,children:[(0,B.jsxs)(`div`,{className:`space-y-2`,children:[(0,B.jsx)(`p`,{className:`font-mono text-[10px] uppercase tracking-[0.14em] text-muted-foreground/60`,children:n.comparisons.title}),(0,B.jsx)(`nav`,{"aria-label":n.comparisons.title,className:`flex flex-wrap justify-center gap-x-6 gap-y-2`,children:n.comparisons.items.map(t=>(0,B.jsx)(`a`,{href:Wt(`alternatives`,e,t.slug),className:`text-xs text-muted-foreground transition-colors hover:text-foreground`,children:t.label},t.slug))})]}),(0,B.jsx)(`nav`,{"aria-label":n.ariaLabel,className:`flex flex-wrap justify-center gap-x-6 gap-y-2`,children:n.links.map(e=>(0,B.jsx)(je,{to:e.to,className:`text-xs text-muted-foreground transition-colors hover:text-foreground`,children:e.label},e.to))}),(0,B.jsx)(`p`,{className:`font-mono text-[10px] uppercase tracking-[0.14em] text-muted-foreground/60`,children:`© Pythie 2026`})]})}function HD({title:e,children:n}){let r=t();return(0,B.jsx)(`div`,{className:`min-h-dvh bg-background font-sans text-foreground antialiased`,children:(0,B.jsxs)(`div`,{className:`relative mx-auto flex min-h-dvh w-full max-w-3xl flex-col px-5 sm:px-8`,children:[(0,B.jsxs)(`header`,{className:`flex items-center justify-between gap-4 border-b py-5`,children:[(0,B.jsxs)(je,{to:a(r),className:`flex items-center gap-2 text-[17px] font-semibold tracking-tight`,children:[(0,B.jsx)(Ye,{}),`Pythie`]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,B.jsx)(`span`,{className:`hidden font-mono text-[10px] uppercase tracking-[0.14em] text-muted-foreground sm:inline`,children:e}),(0,B.jsx)($e,{locale:r})]})]}),(0,B.jsxs)(`main`,{className:`flex-1 py-12`,children:[(0,B.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight sm:text-3xl`,children:e}),(0,B.jsx)(`div`,{className:`mt-8 space-y-8`,children:n})]}),(0,B.jsx)(VD,{})]})})}function UD({title:e,children:t}){return(0,B.jsxs)(`section`,{className:`space-y-2`,children:[(0,B.jsx)(`h2`,{className:`text-base font-semibold tracking-tight`,children:e}),(0,B.jsx)(`div`,{className:`space-y-2 text-sm leading-relaxed text-muted-foreground`,children:t})]})}var WD={name:`robots`,content:`noindex`},GD=j(`/terms`)({head:()=>({meta:[{title:`Terms of use | Pythie`},WD],links:Pe,styles:[Me]}),component:M(()=>N(()=>import(`./terms-DjxYOdpV.js`),__vite__mapDeps([0,1])),`component`)}),KD=j(`/privacy`)({head:()=>({meta:[{title:`Privacy policy | Pythie`},WD],links:Pe,styles:[Me]}),component:M(()=>N(()=>import(`./privacy-DIu6_vaV.js`),__vite__mapDeps([2,1])),`component`)}),qD={fr:{metaTitle:`Connexion · Pythie`,metaDescription:`Connectez-vous à votre espace Pythie.`,title:`Quelle est votre adresse e-mail ?`,subtitle:`Connectez-vous ou créez votre accès.`,emailLabel:`E-MAIL`,emailPlaceholder:`[email protected]`,magicCta:`Recevoir un lien de connexion`,sending:`Envoiâ¦`,sentKicker:`Lien envoyé`,sentTitle:`Vérifiez votre boîte`,sentLead:`Lien de connexion envoyé à `,sentHelp:`Pas reçu ? Pensez à vos spams, ou changez dâadresse.`,changeEmail:`Changer dâadresse`,orDivider:`ou`,googleCta:`Continuer avec Google`,errorGeneric:`Lâenvoi a échoué. Réessayez.`,signedInKicker:`Connecté`,signOut:`Se déconnecter`,goToApp:`Aller à mon espace`,quotesAria:`Ce que disent les médias sur la recherche par IA`,ctaTitle:`Pas encore de compte ?`,ctaBody:`Auditez votre marque gratuitement`,langSwitcherAria:`Langue`},en:{metaTitle:`Sign in · Pythie`,metaDescription:`Sign in to your Pythie workspace.`,title:`Whatâs your email?`,subtitle:`Sign in or create your access.`,emailLabel:`EMAIL`,emailPlaceholder:`[email protected]`,magicCta:`Send me a sign-in link`,sending:`Sendingâ¦`,sentKicker:`Link sent`,sentTitle:`Check your inbox`,sentLead:`Sign-in link sent to`,sentHelp:`Didnât get it? Check your spam, or use a different email.`,changeEmail:`Use a different email`,orDivider:`or`,googleCta:`Continue with Google`,errorGeneric:`Something went wrong. Please try again.`,signedInKicker:`Signed in`,signOut:`Sign out`,goToApp:`Go to my workspace`,quotesAria:`What the media says about AI search`,ctaTitle:`No account yet?`,ctaBody:`Audit your brand for free`,langSwitcherAria:`Language`}},JD=()=>N(()=>import(`./login-D4Xxls2R.js`),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14])),YD=qD.en,XD=j(`/login`)({head:()=>({meta:[{title:YD.metaTitle},{name:`description`,content:YD.metaDescription},{name:`robots`,content:`noindex`}]}),component:M(JD,`component`)}),ZD=j(`/legal`)({head:()=>({meta:[{title:`Legal notice | Pythie`},WD],links:Pe,styles:[Me]}
20),component:M(()=>N(()=>import(`./legal-DCZWH2ox.js`),__vite__mapDeps([15,1])),`component`)}),QD=j(`/fr`)({component:M(()=>N(()=>import(`./fr-CVsT1vAM.js`),__vite__mapDeps([16,1])),`component`)});async function $D(e,t){let n=await e.ensureQueryData(Td(qe.auth.getCurrentUser,{}));if(n===null)throw De({to:t===`fr`?`/fr/login`:`/login`});return n}function eO(e){return e===`fr`?`/fr/app`:`/app`}function tO(e){return`${eO(e)}/onboarding`}function nO(e,t,n){let r=n===tO(t);return e!==`done`&&!r?tO(t):e===`done`&&r?eO(t):null}var rO=j(`/app`)({beforeLoad:async({context:e,location:t})=>{let n=await $D(e.queryClient,`en`),r=nO((await e.queryClient.ensureQueryData(Td(qe.brands.onboarding.getOnboardingState,{}))).status,`en`,t.pathname);if(r!==null)throw De({to:r});return{user:n}},component:M(()=>N(()=>import(`./app-Bd4EQTuM.js`),__vite__mapDeps([17,1,18,19,5,6,7,8,9,10,11,12,13,20,21,14,22,23,24])),`component`)}),iO=()=>N(()=>import(`./routes-DMh7Rzn2.js`),__vite__mapDeps([25,26,1,19,27,5,6,7,8,9,28,10,11,12,13,21,29,14,30,31,32,33,34])),aO=Jt.en.seoMeta,oO=j(`/`)({head:()=>({meta:[{title:aO.title},{name:`description`,content:aO.description},...Kt(`en`,aO)],links:[...Pe,{rel:`canonical`,href:aO.canonical},...zt()],scripts:[{src:`https://challenges.cloudflare.com/turnstile/v0/api.js`,async:!0,defer:!0},{type:`application/ld+json`,children:Ft(Jt.en.faq.items)},{type:`application/ld+json`,children:Ht(`en`)}],styles:[Me]}),component:M(iO,`component`)});function sO(e,t){let n=Yt[e][t];return{rel:`alternate`,type:`application/rss+xml`,title:n.rss.title,href:`${n.seoMeta.canonical}/rss.xml`}}function cO(e){return{name:e===`fr`?`Accueil`:`Home`,url:e===`fr`?`${Gt}/fr`:`${Gt}/`}}function lO(e,t){let n=Yt[e][t].seoMeta;return()=>({meta:[{title:n.title},{name:`description`,content:n.description}],links:[...Pe,{rel:`canonical`,href:n.canonical},...Lt(e),sO(e,t)],styles:[Me]})}function uO(e,t){return({params:n})=>{let r=Zt(e,t,n.slug);if(r===null)return{meta:[{title:`${Yt[e][t].notFoundTitle} | Pythie`}],links:[...Pe],styles:[Me]};let i=Xt(e,r),a=Rt(e,t,r.meta.slug),o=Yt[e][t],s=r.meta.image?`${Gt}${r.meta.image}`:void 0;return{meta:[{title:`${r.meta.title} | Pythie`},{name:`description`,content:r.meta.description},...Vt(t,{title:`${r.meta.title} | Pythie`,description:r.meta.description,canonical:a,date:r.meta.date,updated:r.meta.updated,image:s})],links:[...Pe,{rel:`canonical`,href:a},...Ut(e,r.meta,i===null?null:i.meta),sO(e,t)],scripts:[{type:`application/ld+json`,children:Pt({section:e,title:r.meta.title,description:r.meta.description,canonical:a,date:r.meta.date,updated:r.meta.updated,image:s,locale:t})},{type:`application/ld+json`,children:Bt([cO(t),{name:o.chip,url:It(e,t)},{name:r.meta.title,url:a}])}],styles:[Me]}}}var dO=j(`/trackers/`)({head:lO(`trackers`,`en`),component:M(()=>N(()=>import(`./trackers.index-B1rDyzVh.js`),__vite__mapDeps([35,1,36,37,7,6,8,9,11,5,12,13,30,31,32])),`component`)}),fO=j(`/news/`)({head:lO(`news`,`en`),component:M(()=>N(()=>import(`./news.index-BraX2ITT.js`),__vite__mapDeps([38,1,36,37,7,6,8,9,11,5,12,13,30,31,32])),`component`)}),pO=j(`/blog/`)({head:lO(`blog`,`en`),component:M(()=>N(()=>import(`./blog.index-CvLpBaDG.js`),__vite__mapDeps([39,1,36,37,7,6,8,9,11,5,12,13,30,31,32])),`component`)}),mO=j(`/alternatives/`)({head:lO(`alternatives`,`en`),component:M(()=>N(()=>import(`./alternatives.index-DAapuLGH.js`),__vite__mapDeps([40,1,36,37,7,6,8,9,11,5,12,13,30,31,32])),`component`)}),hO=j(`/trackers/$slug`)({loader:({params:e})=>{if(Zt(`trackers`,`en`,e.slug)===null)throw we()},head:uO(`trackers`,`en`),notFoundComponent:M(()=>N(()=>import(`./trackers._slug-BhIa-JUg.js`),__vite__mapDeps([41,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`notFoundComponent`),component:M(()=>N(()=>import(`./trackers._slug-vjkum99M.js`),__vite__mapDeps([43,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`component`)});function gO({label:e,className:t}){return(0,B.jsxs)(`div`,{role:`status`,"aria-live":`polite`,className:l(`flex min-h-[60vh] w-full flex-col items-center justify-center gap-4`,t),children:[(0,B.jsxs)(`span`,{"aria-hidden":`true`,className:`relative flex size-9 items-center justify-center`,children:[(0,B.jsx)(`span`,{className:`absolute inset-0 animate-ping rounded-full bg-foreground
20/10`}),(0,B.jsx)(`span`,{className:`size-2.5 animate-pulse rounded-full bg-foreground/70`})]}),(0,B.jsx)(`span`,{className:`font-mono text-xs uppercase tracking-[0.16em] text-muted-foreground`,children:e})]})}function _O({children:e}){let n=t(),r=$t[n],i=a(n);return(0,B.jsx)(`div`,{className:`min-h-dvh bg-background font-sans text-foreground antialiased`,children:(0,B.jsxs)(`div`,{className:`relative mx-auto flex min-h-dvh w-full max-w-5xl flex-col px-5 sm:px-8`,children:[(0,B.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-y-0 left-0 hidden border-l border-dashed border-ink/10 sm:block`}),(0,B.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-y-0 right-0 hidden border-r border-dashed border-ink/10 sm:block`}),(0,B.jsxs)(`header`,{className:`reveal flex items-center justify-between gap-4 border-b py-5`,children:[(0,B.jsxs)(je,{to:i,className:`flex items-center gap-2 text-[17px] font-semibold tracking-tight`,children:[(0,B.jsx)(Ye,{}),`Pythie`]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,B.jsx)(`span`,{className:`hidden font-mono text-[10px] uppercase tracking-[0.14em] text-muted-foreground sm:inline`,children:r.shellChip}),(0,B.jsx)($e,{locale:n})]})]}),(0,B.jsx)(`main`,{className:`flex-1 pb-16`,children:e}),(0,B.jsxs)(`footer`,{className:`border-t py-10 text-center`,children:[(0,B.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:r.shellFooterPitch}),(0,B.jsx)(Nt,{asChild:!0,className:`mt-4`,children:(0,B.jsx)(je,{to:i,children:r.shellFooterCta})}),(0,B.jsx)(`p`,{className:`mt-6 font-mono text-[10px] uppercase tracking-[0.14em] text-muted-foreground/60`,children:`© Pythie 2026`})]})]})})}function vO({title:e,sub:t}){return(0,B.jsxs)(`div`,{className:`space-y-2`,children:[(0,B.jsx)(`h2`,{className:`text-2xl font-semibold tracking-tight sm:text-3xl`,children:e}),(0,B.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:t})]})}var yO=1200;function bO(e,t){return e===`fr`?`/fr/report/${t}`:`/report/${t}`}function xO(e){let t=`https://grateful-toucan-71.eu-west-1.convex.cloud`;if(t.includes(`.convex.cloud`))return`${t.replace(`.convex.cloud`,`.convex.site`)}/og/report?scanId=${encodeURIComponent(e)}`}function SO({loaderData:e,params:t}){let n=e?.scan.language??`fr`,r=Qt[n],i=e?.brand.name,a=e?.metrics.find(e=>e.engine===`all`),o=i?r.title(i):r.notFoundTitle,s=i&&a!==void 0&&a.sampleSize>0?r.descriptionScored(i,a.visibilityScore):i?r.descriptionPending(i):r.descriptionFallback,c=xO(t.scanId);return{meta:[{title:o},{name:`description`,content:s},{name:`robots`,content:`noindex`},{property:`og:title`,content:o},{property:`og:description`,content:s},{property:`og:type`,content:`website`},{property:`og:site_name`,content:`Pythie`},...c===void 0?[{name:`twitter:card`,content:`summary`}]:[{property:`og:image`,content:c},{property:`og:image:width`,content:String(yO)},{property:`og:image:height`,content:`630`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:image`,content:c}]],links:[...Pe,{rel:`canonical`,href:`${Gt}${bO(n,t.scanId)}`}],styles:[Me]}}var CO=`pythie_locale`,wO=31536e3;function TO(e){if(!e)return null;for(let t of e.split(`;`)){let[e,...n]=t.trim().split(`=`);
20if(e===`pythie_locale`){let e=n.join(`=`);if(e===`fr`||e===`en`)return e}}return null}function EO(e){return`${CO}=${e}; Path=/; Max-Age=${wO}; SameSite=Lax`}function DO(e,t){let n=e===`/fr`?`/`:e.startsWith(`/fr/`)?e.slice(3):e;return t===`en`?n:n===`/`?`/fr`:`/fr${n}`}function OO(e,t){let n=TO(e);if(n!==null)return n;let r=t?.trim().toLowerCase()??``;return r===`fr`||r.startsWith(`fr-`)?`fr`:`en`}function kO(e,t){let n=gT(),r=(0,z.useRef)(e),i=(0,z.useRef)(MD);(0,z.useEffect)(()=>{r.current!==e&&(r.current=e,i.current=MD);let{toCapture:a,state:o}=PD(t,i.current);i.current=o;for(let t of a)OD(n,t.event,{scan_id:e,...t.properties,language:OO(document.cookie,navigator.language)})},[n,e,t])}function AO(e){return e.normalize(`NFD`).replace(/\p{M}+/gu,``).toLowerCase().replace(/[^\p{L}\p{N}]+/gu,``)}function jO(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function MO(e,t){return t===`en`?`${e}%`:`${e} %`}function NO(e,t){return new Intl.DateTimeFormat(t===`fr`?`fr-FR`:`en-US`,{day:`numeric`,month:`long`,year:`numeric`}).format(new Date(e))}function PO(e,t){return new Intl.DateTimeFormat(t===`fr`?`fr-FR`:`en-US`,{day:`numeric`,month:`short`}).format(new Date(e))}var FO={openai:`ChatGPT`,anthropic:`Claude`,gemini:`Gemini`,perplexity:`Perplexity`},IO={openai:`#74aa9c`,anthropic:`#d97757`,gemini:`#4796e3`,perplexity:`#20b8cd`},LO={fr:{positive:`ton positif`,neutral:`ton neutre`,negative:`ton négatif`},en:{positive:`positive tone`,neutral:`neutral tone`,negative:`negative tone`}};function RO(e){let t=e%100;return t>=11&&t<=13?`${e}th`:`${e}${{1:`st`,2:`nd`,3:`rd`}[e%10]??`th`}`}function zO(e,t){return t===`en`?RO(e):e===1?`1ʳáµ`:`${e}áµ`}function BO(e){return e.replace(/\*\*/g,``).replace(/^[-â¢*]\s+/,``).replace(/\[\d+\]/g,``).trim()}var VO={fr:{notAnalyzed:`non analysé`,absent:`absente`,mentioned:`â citée`,mentionedAt:e=>`â citée ${e}`,mentionedRank:(e,t)=>`â ${e} sur ${t}`},en:{notAnalyzed:`not analyzed`,absent:`absent`,mentioned:`â mentioned`,mentionedAt:e=>`â mentioned ${e}`,mentionedRank:(e,t)=>`â ${e} of ${t}`}};function HO(e,t){let n=VO[t];return e.runs===0?n.notAnalyzed:e.mentionedRuns===0?n.absent:e.bestPosition===void 0?n.mentioned:e.bestMentionsCount===void 0||e.bestMentionsCount<2?n.mentionedAt(zO(e.bestPosition,t)):n.mentionedRank(zO(e.bestPosition,t),e.bestMentionsCount)}var UO=3;function WO(e,t){let n=t.trim();if(n.length===0)return[{text:e,isBrand:!1}];let r=GO(e,n);return r.some(e=>e.isBrand)?r:KO(e,n)??r}function GO(e,t){let n=RegExp(`(?<![\\p{L}\\p{N}])(${jO(t)})(?![\\p{L}\\p{N}])`,`giu`);return e.split(n).filter(e=>e.length>0).map(e=>({text:e,isBrand:e.toLowerCase()===t.toLowerCase()}))}function KO(e,t){let n=AO(t);if(n.length<UO)return null;let r=qO(e,n);if(r.length===0)return null;let i=[],a=0;for(let t of r)t.start>a&&i.push({text:e.slice(a,t.start),isBrand:!1}),i.push({text:e.slice(t.start,t.end),isBrand:!0}),a=t.end;return a<e.length&&i.push({text:e.slice(a),isBrand:!1}),i}function qO(e,t){let{norm:n,starts:r,ends:i}=JO(e),a=[],o=0;for(;;){let s=n.indexOf(t,o);if(s===-1)break;let c=r[s]??0,l=YO(e,i[s+t.length-1]??e.length);!/[\p{L}\p{N}]$/u.test(e.slice(0,c))&&!/^[\p{L}\p{N}]/u.test(e.slice(l))?(a.push({start:c,end:l}),o=s+t.length):o=s+1}return a}function JO(e){let t=[],n=[],r=[],i=0;for(let a of e){let e=i+a.length;for(let o of AO(a))t.push(o),n.push(i),r.push(e);i=e}return{norm:t.join(``),starts:n,ends:r}}function YO(e,t){let n=t;for(;;){let t=e.codePointAt(n);if(t===void 0)return n;let r=String.fromCodePoint(t);if(!/^\p{M}$/u.test(r))return n;n+=r.length}}var XO={fr:{noAnswers:`Aucune réponse n'a pu être analysée pour cette question.`,absent:`Votre marque n'apparaît dans aucune des réponses des moteurs à cette question.`,mentioned:`Votre marque est citée dans au moins une réponse à cette question.`,mentionedAt:e=>`Dans la meilleure réponse, votre marque est la ${e} nommée. C'est l'ordre d'apparition dans le texte, pas un classement.`,mentionedRank:(e,t)=>`Dans la meilleure réponse qui vous cite, votre marque est la ${e} nommée sur ${t}. C'est l'ordre d'apparition dans le texte (1 = première marque citée), pas un classement.`},en:{noAnswers:`No answer could be analyzed for this question.`,absent:`Your brand doesnât appear in any engine answer to this question.`,mentioned:`Your brand is mentioned in at least one answer to this question.`,mentionedAt:e=>`In the best answer, your brand is the ${e} one named. That's order of appearance in the text, not a ranking.`,mentionedRank:(e,t)=>`In the best answer that mentions you, your brand is the ${e} named out of ${t}. That's order of appearance in the text (1 = first brand cited), not a ranking.`}};function ZO(e,t){let n=XO[t];return e.runs===0?n.noAnswers:e.mentionedRuns===0?n.absent:e.bestPosition===void 0?n.mentioned:e.bestMentionsCount===void 0||e.bestMentionsCount<2?n.mentionedAt(zO(e.bestPosition,t)):n.mentionedRank(zO(e.bestPosition,t),e.bestMentionsCount)}var QO=660,$O=96,ek=QO/2,tk=56,nk=36;function rk(e,t){return(e+.5)/t*QO}function ik(e,t){let n=rk(e,t);return n===ek?`M ${ek} 0 L ${ek} ${$O}`:`M ${ek} 0 C ${ek} ${tk}, ${n} ${nk}, ${n} ${$O}`}function ak(e,t){let n=rk(e,t);return n===ek?`M ${ek} 0 L ${ek} ${$O}`:`M ${n} 0 C ${n} ${tk}, ${ek} ${nk}, ${ek} ${$O}`}function ok({count:e,live:t,toPath:n}){let r=Array.from({length:e},(e,t)=>t);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(`svg`,{"aria-hidden":`true`,role:`presentation`,className:`hidden w-full sm:block`,height:$O,viewBox:`0 0 ${QO} ${$O}`,preserveAspectRatio:`none`,children:[r.map(t=>(0,B.jsx)(`path`,{className:`stroke-ink/16`,d:n(t,e),fill:`none`,strokeWidth:`1.2`},`rail-${t}`)),t?r.map(t=>(0,B.jsx)(`path`,{className:`flow-dash stroke-ink/65`,d:n(t,e),fill:`none`,strokeWidth:`1.2`,style:{animationDelay:`${t*.45}s`}},`flow-${t}`)):null]}),(0,B.jsx)(lk,{live:t,className:`sm:hidden`})]})}function sk(e){return(0,B.jsx)(ok,{...e,toPath:ik})}function ck(e){return(0,B.jsx)(ok,{...e,toPath:ak})}function lk({live:e,className:t=``}){return(0,B.jsx)(`div`,{"aria-hidden":`true`,className:`mx-auto h-20 w-px ${t}`,children:(0,B.jsx)(`div`,{className:`h-full w-full bg-gradient-to-b from-ink/30 to-ink/5 ${e?`blink-soft`:``}`})})}
20var uk={fr:{title:`Préparation IA`,intro:`Ce que rencontrent les robots des moteurs IA sur votre site.`,labels:{robots:`Robots IA`,llms:`llms.txt`,sitemap:`Sitemap`,structured:`Données structurées`},robotsAntiBot:`Votre site refuse les lectures automatisées : les robots IA se heurtent au même mur.`,robotsOpen:`Les robots IA peuvent lire votre site.`,robotsPartial:e=>`Robots IA bloqués par votre robots.txt : ${e}.`,robotsBlocked:`Tous les robots IA sont bloqués par votre robots.txt.`,robotsUnknown:`Accès des robots IA non vérifié.`,llmsPresent:`llms.txt présent : vous guidez la lecture des IA.`,llmsMissing:`Pas de llms.txt, le guide de lecture des IA.`,sitemapPresent:`Sitemap déclaré : vos pages sont faciles à trouver.`,sitemapMissing:`Aucun sitemap déclaré.`,structuredPresent:e=>`Données structurées détectées${e}.`,structuredMissing:`Pas de données structurées (schema.org).`},en:{title:`AI readiness`,intro:`What AI engine crawlers find when they visit your site.`,labels:{robots:`AI crawlers`,llms:`llms.txt`,sitemap:`Sitemap`,structured:`Structured data`},robotsAntiBot:`Your site refuses automated reads: AI crawlers hit the same wall.`,robotsOpen:`AI crawlers can read your site.`,robotsPartial:e=>`AI crawlers blocked by your robots.txt: ${e}.`,robotsBlocked:`All AI crawlers are blocked by your robots.txt.`,robotsUnknown:`AI crawler access not verified.`,llmsPresent:`llms.txt present: you guide how AIs read you.`,llmsMissing:`No llms.txt, the reading guide for AIs.`,sitemapPresent:`Sitemap declared: your pages are easy to find.`,sitemapMissing:`No sitemap declared.`,structuredPresent:e=>`Structured data detected${e}.`,structuredMissing:`No structured data (schema.org).`}};function dk(e,t){let n={key:`robots`,label:t.labels.robots};if(e.antiBot)return{...n,status:`bad`,hint:t.robotsAntiBot};switch(e.robotsStatus){case`allowed`:case`no_robots`:return{...n,status:`good`,hint:t.robotsOpen};case`partial`:return{...n,status:`bad`,hint:t.robotsPartial(e.blockedCrawlers.join(`, `))};case`blocked`:return{...n,status:`bad`,hint:t.robotsBlocked};default:return{...n,status:`todo`,hint:t.robotsUnknown}}}function fk(e,t){let n={key:`structured`,label:t.labels.structured};
20if(!e.hasStructuredData)return{...n,status:`todo`,hint:t.structuredMissing};let r=e.structuredDataTypes?.length?` (${e.structuredDataTypes.join(`, `)})`:``;return{...n,status:`good`,hint:t.structuredPresent(r)}}function pk(e,t){let n=uk[t];return{title:n.title,intro:n.intro,signals:[dk(e,n),{key:`llms`,label:n.labels.llms,status:e.hasLlmsTxt?`good`:`todo`,hint:e.hasLlmsTxt?n.llmsPresent:n.llmsMissing},{key:`sitemap`,label:n.labels.sitemap,status:e.hasSitemap?`good`:`todo`,hint:e.hasSitemap?n.sitemapPresent:n.sitemapMissing},fk(e,n)]}}var mk=Mt(`group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function hk({className:e,variant:t=`default`,asChild:n=!1,...r}){return(0,B.jsx)(n?m:`span`,{"data-slot":`badge`,"data-variant":t,className:l(mk({variant:t}),e),...r})}function gk({className:e,size:t=`default`,...n}){return(0,B.jsx)(`div`,{"data-slot":`card`,"data-size":t,className:l(`group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl`,e),...n})}function _k({className:e,...t}){return(0,B.jsx)(`div`,{"data-slot":`card-header`,className:l(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)`,e),...t})}function vk({className:e,...t}){return(0,B.jsx)(`div`,{"data-slot":`card-title`,className:l(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,e),...t})}function yk({className:e,...t}){return(0,B.jsx)(`div`,{"data-slot":`card-description`,className:l(`text-sm text-muted-foreground`,e),...t})}function bk({className:e,...t}){return(0,B.jsx)(`div`,{"data-slot":`card-action`,className:l(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,e),...t})}function xk({className:e,...t}){return(0,B.jsx)(`div`,{"data-slot":`card-content`,className:l(`px-(--card-spacing)`,e),...t})}function Sk({className:e,indicatorClassName:t,indicatorStyle:n,value:r,...i}){return(0,B.jsx)(Nh,{"data-slot":`progress`,className:l(`relative h-1 w-full overflow-hidden rounded-full bg-ink/5`,e),...i,children:(0,B.jsx)(Ph,{"data-slot":`progress-indicator`,className:l(`h-full w-full flex-1 rounded-full bg-primary transition-transform duration-700`,t),style:{transform:`translateX(-${100-(r??0)}%)`,...n}})})}var Ck={waiting:`opacity-40`,active:`border-ink/30 pulse-active`,done:`border-up/35 shadow-[0_0_14px_rgba(74,222,128,0.06)]`,failed:`border-down/40`},wk={active:{label:`Running`,icon:tt,iconClass:`animate-spin text-foreground/70`},done:{label:`Succeeded`,icon:rt,iconClass:`text-up`},failed:{label:`Failed`,icon:st,iconClass:`text-down`}};function Tk({state:e}){let t=wk[e];return t===void 0?null:(0,B.jsxs)(hk,{variant:`outline`,className:`absolute right-0 bottom-full mb-1.5 bg-card`,children:[(0,B.jsx)(ct,{icon:t.icon,strokeWidth:2,className:t.iconClass}),t.label]})}function Ek({state:e,title:t,badge:n,children:r,className:i=``}){return(0,B.jsxs)(gk,{className:l(`relative block gap-0 overflow-visible rounded-lg border ring-0 px-4 py-3 transition-[opacity,border-color,box-shadow] duration-500`,Ck[e],i),children:[(0,B.jsx)(Tk,{state:e}),t===void 0&&n===void 0?null:(0,B.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3`,children:[(0,B.jsx)(`span`,{className:`text-sm font-medium`,children:t}),n]}),r]})}var Dk={ok:{variant:`outline`,className:`border-ink/15 bg-ink/5`},wait:{variant:`secondary`,className:`text-muted-foreground`}};function Ok({kind:e,className:t,children:n}){let r=Dk[e];return(0,B.jsx)(hk,{variant:r.variant,className:l(`whitespace-nowrap font-mono text-[10px]`,r.className,t),children:n})}function kk({ratio:e,running:t,color:n}){return(0,B.jsx)(Sk,{value:Math.round(Math.min(Math.max(e,0),1)*100),className:`mt-2`,indicatorClassName:l(`bg-foreground`,t&&`shimmer-bar`),indicatorStyle:n===void 0?void 0:{backgroundColor:n}})}var Ak={good:`bg-up`,bad:`bg-down`,todo:`bg-ink/25`};function jk({report:e,phase:n}){let r=t(),{crawlability:i}=e;if(i===void 0||n!==`ready`&&n!==`insufficient`)return null;let a=pk(i,r);return(0,B.jsxs)(Ek,{state:`done`,title:a.title,className:`mx-auto mt-10 w-full max-w-md`,children:[(0,B.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:a.intro}),(0,B.jsx)(`ul`,{className:`mt-3 space-y-2`,children:a.signals.map(e=>(0,B.jsxs)(`li`,{className:`flex items-start gap-2.5 text-xs`,children:[(0,B.jsx)(`span`,{"aria-hidden":`true`,className:l(`mt-1 size-1.5 shrink-0 rounded-full`,Ak[e.status])}),(0,B.jsxs)(`span`,{className:`min-w-0`,children:[(0,B.jsx)(`span`,{className:`font-medium text-foreground
20/85`,children:e.label}),(0,B.jsxs)(`span`,{className:`text-muted-foreground`,children:[` · `,e.hint]})]})]},e.key))})]})}var Mk={openai:{src:`/assets/logos/openai-icon.svg`},anthropic:{src:`/assets/logos/claude-icon.svg`},gemini:{src:`/assets/logos/gemini-icon.svg`},perplexity:{src:`/assets/logos/perplexity-icon.svg`}};function Nk({engine:e,className:t}){let n=Mk[e];return(0,B.jsx)(`img`,{src:n.src,alt:``,"aria-hidden":`true`,className:l(`shrink-0`,n.className,t)})}var Pk=30,Fk=70,Ik={fr:{none:(e,t)=>`${e} n'apparaît dans aucune des ${t} réponses analysées.`,opening:(e,t,n)=>`${e} apparaît dans ${t} des ${n} réponses`,forgotten:(e,t)=>`${e}, mais ${t} ne vous cite presque jamais.`,unanimous:e=>`${e} : tous les moteurs vous citent.`,neutral:e=>`${e} analysées.`},en:{none:(e,t)=>`${e} doesnât appear in any of the ${t} answers analyzed.`,opening:(e,t,n)=>`${e} appears in ${t} of the ${n} answers`,forgotten:(e,t)=>`${e}, but ${t} almost never mentions you.`,unanimous:e=>`${e}: every engine mentions you.`,neutral:e=>`${e} analyzed.`}},Lk={fr:{notEnough:`Pas assez de réponses analysées.`,prefersCiting:e=>`Préfère citer ${e.join(` et `)}.`,neverMentions:e=>`Ne cite jamais ${e}.`,mentionsIn:(e,t)=>`Vous cite dans ${e} réponse${e>1?`s`:``} sur ${t}.`},en:{notEnough:`Not enough answers analyzed.`,prefersCiting:e=>`Prefers to mention ${e.join(` and `)}.`,neverMentions:e=>`Never mentions ${e}.`,mentionsIn:(e,t)=>`Mentions you in ${e} answer${e>1?`s`:``} out of ${t}.`}};function Rk(e,t,n,r,i){let a=Ik[i];if(t===0)return a.none(e,n);let o=a.opening(e,t,n),s=r.filter(e=>e.sampleSize>0),c=[...s].sort((e,t)=>e.visibilityScore-t.visibilityScore)[0];return c!==void 0&&c.visibilityScore<=Pk?a.forgotten(o,FO[c.engine]):s.length>1&&s.every(e=>e.visibilityScore>=Fk)?a.unanimous(o):a.neutral(o)}function zk(e,t,n){let r=Lk[n];if(e.sampleSize===0)return r.notEnough;let i=e.mentionedCount;if(i===0){let n=[...e.competitorsSov].filter(e=>e.shareOfVoice>0).sort((e,t)=>t.shareOfVoice-e.shareOfVoice).slice(0,2);return n.length>0?r.prefersCiting(n.map(e=>e.name)):r.neverMentions(t)}return r.mentionsIn(i,e.sampleSize)}function Bk({engine:e,report:n,phase:r}){let i=t(),a=$t[i],{scan:o}=n,s=o.engines.length===0?0:Math.round(o.totalJobs/o.engines.length),c=o.engineProgress?.[e]??{completed:0,failed:0},l=c.completed+c.failed,u=s>0&&l>=s,d=n.metrics.find(t=>t.engine===e),f=(0,B.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(Nk,{engine:e,className:`size-4`}),FO[e]]});if(r===`ready`&&d!==void 0)return(0,B.jsx)(Ek,{state:`done`,title:f,children:(0,B.jsxs)(`div`,{className:`reveal`,children:[(0,B.jsxs)(`p`,{className:`mt-2 text-2xl font-semibold tabular-nums`,children:[d.visibilityScore,(0,B.jsx)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:`\xA0%`})]}
20),(0,B.jsx)(kk,{ratio:d.visibilityScore/100,running:!1,color:IO[e]}),(0,B.jsx)(`p`,{className:`mt-1.5 text-xs text-muted-foreground`,children:zk(d,n.brand.name,i)})]})});if(r===`preparing`)return(0,B.jsx)(Ek,{state:`waiting`,title:f,badge:(0,B.jsx)(Ok,{kind:`wait`,children:a.waitingBranchBadge})});let p=c.failed>0?a.failures(c.failed):``,m=n.promptVerdicts.length>0?n.promptVerdicts[Math.min(l,n.promptVerdicts.length-1)]?.text:void 0;return(0,B.jsxs)(Ek,{state:r===`failed`&&!u?`failed`:u?`done`:`active`,title:f,badge:u?(0,B.jsxs)(Ok,{kind:`ok`,children:[c.completed,`/`,s]}):void 0,children:[u||m===void 0?(0,B.jsxs)(`p`,{className:`mt-2 min-h-9 text-xs text-muted-foreground`,children:[a.responsesCollected(c.completed),p,`.`]}):(0,B.jsxs)(`p`,{className:`mt-2 min-h-9 text-xs text-foreground/80`,children:[a.quoted(m),(0,B.jsx)(`span`,{className:`blink-soft text-muted-foreground`,children:`â¦`})]}),(0,B.jsx)(kk,{ratio:s===0?0:l/s,running:!u&&r===`collecting`,color:IO[e]}),(0,B.jsxs)(`p`,{className:`mt-1 text-right font-mono text-[10px] tabular-nums text-muted-foreground`,children:[l,`/`,s||`â`]})]})}function Vk(e){if(e.scan.status===`failed`)return`failed`;let t=e.metrics.find(e=>e.engine===`all`);return t===void 0?e.scan.status===`completed`?`analyzing`:e.scan.status===`running`?`collecting`:`preparing`:t.sampleSize>0?`ready`:`insufficient`}function Hk({className:e,...t}){return(0,B.jsx)(kf,{"data-slot":`avatar`,className:l(`relative flex size-8 shrink-0 overflow-hidden rounded-full`,e),...t})}function Uk({className:e,...t}){return(0,B.jsx)(Af,{"data-slot":`avatar-image`,className:l(`aspect-square size-full`,e),...t})}function Wk({className:e,...t}){return(0,B.jsx)(jf,{"data-slot":`avatar-fallback`,className:l(`flex size-full items-center justify-center rounded-full bg-muted`,e),...t})}var Gk=64,Kk=/^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/;function qk(e){let t=e.trim().toLowerCase().replace(/^www\./,``);return Kk.test(t)?`https://www.google.com/s2/favicons?domain=${encodeURIComponent(t)}&sz=${Gk}`:null}function Jk({domain:e,className:t,fallback:n}){let r=e?qk(e):null;return(0,B.jsxs)(Hk,{"aria-hidden":!0,className:l(`size-4 shrink-0 rounded-[4px] bg-secondary`,t),children:[r?(0,B.jsx)(Uk,{src:r,alt:``,loading:`lazy`}):null,(0,B.jsx)(Wk,{className:l(`rounded-[4px] bg-secondary`,n?void 0:`text-muted-foreground`),children:n??(0,B.jsx)(ct,{icon:lt,className:`size-3`,strokeWidth:2})})]})}function Yk({className:e,orientation:t=`horizontal`,decorative:n=!0,...r}){return(0,B.jsx)(Bh,{"data-slot":`separator`,decorative:n,orientation:t,className:l(`shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch`,e),...r})}function Xk({className:e,...t}){return(0,B.jsx)(`div`,{"data-slot":`skeleton`,className:l(`animate-pulse rounded-md bg-muted`,e),...t})}function Zk({className:e,...t}){return(0,B.jsx)(of,{"data-slot":`accordion`,className:l(`flex w-full flex-col`,e),...t})}function Qk({className:e,...t}){return(0,B.jsx)(sf,{"data-slot":`accordion-item`,className:l(`not-last:border-b`,e),...t})}function $k({className:e,children:t,...n}){return(0,B.jsx)(cf,{className:`flex`,children:(0,B.jsxs)(lf,{"data-slot":`accordion-trigger`,className:l(`group/accordion-trigger relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:after:border-ring disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground`,e),...n,children:[t,(0,B.jsx)(ct,{icon:it,strokeWidth:2,"data-slot":`accordion-trigger-icon`,className:`pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden`}),(0,B.jsx)(ct,{icon:ot,strokeWidth:2,"data-slot":`accordion-trigger-icon`,className:`pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline`})]})})}function eA({className:e,children:t,...n}){return(0,B.jsx)(uf,{"data-slot":`accordion-content`,className:`overflow-hidden text-sm data-open:animate-accordion-down data-closed:animate-accordion-up`,...n,children:(0,B.jsx)(`div`,{className:l(`h-(--radix-accordion-content-height) pt-0 pb-2.5 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4`,e),children:t})})}function tA({delayDuration:e=0,...t}){return(0,B.jsx)(xg,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function nA({...e}){return(0,B.jsx)(Sg,{"data-slot":`tooltip`,...e})}function rA({...e}){return(0,B.jsx)(Cg,{"data-slot":`tooltip-trigger`,...e})}function iA({className:e,sideOffset:t=0,children:n,...r}){return(0,B.jsx)(wg,{children:(0,B.jsxs)(Tg,{"data-slot":`tooltip-content`,sideOffset:t,className:l(`z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
20de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[n,(0,B.jsx)(Eg,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`})]})})}function aA({verdicts:e,brandName:n,mentionedTotal:r}){let i=$t[t()];return(0,B.jsxs)(`div`,{id:`reponses`,className:`min-w-0 scroll-mt-6`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(`span`,{className:`text-sm font-medium`,children:i.answersTitle}),(0,B.jsx)(Ok,{kind:`ok`,children:i.citedBadge(r)})]}),(0,B.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:i.answersSub}),(0,B.jsx)(tA,{delayDuration:200,children:(0,B.jsx)(Zk,{type:`single`,collapsible:!0,className:`mt-1`,children:e.map(e=>(0,B.jsx)(oA,{verdict:e,brandName:n},e.promptId))})})]})}function oA({verdict:e,brandName:n}){let r=t(),i=$t[r];return(0,B.jsxs)(Qk,{value:e.promptId,children:[(0,B.jsx)($k,{className:`gap-3 py-2.5 text-left hover:no-underline`,children:(0,B.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline justify-between gap-x-3`,children:[(0,B.jsx)(`span`,{className:`min-w-0 text-sm font-normal text-foreground/85`,children:i.quoted(e.text)}),(0,B.jsxs)(nA,{children:[(0,B.jsx)(rA,{asChild:!0,children:(0,B.jsx)(`span`,{className:`shrink-0`,children:(0,B.jsx)(Ok,{kind:e.mentionedRuns>0?`ok`:`wait`,children:HO(e,r)})})}),(0,B.jsx)(iA,{children:ZO(e,r)})]})]})}),(0,B.jsx)(eA,{children:(0,B.jsx)(sA,{verdict:e,brandName:n})})]})}function sA({verdict:e,brandName:n}){let r=$t[t()];return(0,B.jsxs)(`div`,{className:`ml-1 border-l border-border pl-3`,children:[e.engines.map(e=>(0,B.jsx)(cA,{engineVerdict:e,brandName:n},e.engine)),e.otherBrands.length>0?(0,B.jsxs)(`p`,{className:`mt-2.5 text-xs text-muted-foreground`,children:[e.mentionedRuns>0?r.alsoMentioned:r.citedInstead,` :`,` `,(0,B.jsx)(`span`,{className:`text-foreground/85`,children:e.otherBrands.join(`, `)})]}):null]})}function cA({engineVerdict:e,brandName:n}){let r=t(),i=$t[r],a=e.mentionedRuns>0;return(0,B.jsxs)(`div`,{className:`mt-2 first:mt-0`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2 text-xs`,children:[(0,B.jsx)(Nk,{engine:e.engine,className:`size-3`}),(0,B.jsx)(`span`,{className:`w-16 shrink-0 font-mono text-[10px] uppercase tracking-wide text-muted-foreground`,children:FO[e.engine]}),a?(0,B.jsxs)(`span`,{className:`text-up`,children:[i.engineCited,e.bestPosition===void 0?``:` ${zO(e.bestPosition,r)}`]}):(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:i.engineAbsent}),a&&e.sentiment!==void 0?(0,B.jsxs)(`span`,{className:`text-muted-foreground`,children:[`· `,LO[r][e.sentiment]]}):null]}),e.quote===void 0?null:(0,B.jsxs)(`blockquote`,{className:`mt-1.5 rounded-md bg-ink/[0.04] px-2.5 py-2 text-xs italic leading-relaxed text-foreground/75`,children:[i.quoteOpen,(0,B.jsx)(lA,{quote:BO(e.quote),brandName:n}),i.quoteClose]})]})}function lA({quote:e,brandName:t}){let n=0;return(0,B.jsx)(B.Fragment,{children:WO(e,t).map(e=>{let t=n;return n+=e.text.length,{...e,key:t}}).map(e=>e.isBrand?(0,B.jsx)(`span`,{className:`brand-glint`,children:e.text},e.key):(0,B.jsx)(z.Fragment,{children:e.text},e.key))})}function uA({report:e,phase:n,overall:r}){let i=$t[t()],{scan:a}=e,o=a.completedJobs+a.failedJobs,s=n===`ready`&&r!==void 0,c=`waiting`,u,d,f=null,p=`waiting`;return n===`ready`&&r!==void 0?(c=`done`,p=`ready`,f=(0,B.jsxs)(`div`,{className:`grid gap-6 sm:grid-cols-[minmax(0,2fr)_auto_minmax(0,3fr)]`,children:[(0,B.jsxs)(`div`,{className:`min-w-0`,children:[(0,B.jsx)(`span`,{className:`block text-sm font-medium`,children:i.terrainTitle}),(0,B.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:r.sampleSize===1?i.terrainSubSingular:i.terrainSub(r.sampleSize)}),(0,B.jsx)(pA,{ranking:e.brandRanking,copy:i}),(0,B.jsx)(Yk,{className:`my-4`}),(0,B.jsx)(hA,{sources:r.topSources,brandDomain:e.brand.domain,copy:i})]}),(0,B.jsx)(Yk,{orientation:`vertical`,className:`hidden sm:block`}),(0,B.jsx)(Yk,{className:`sm:hidden`}),(0,B.jsx)(aA,{verdicts:e.promptVerdicts,brandName:e.brand.name,mentionedTotal:e.mentionedTotal})]})):n===`analyzing`?(c=`active`,u=i.analyzingTitle,p=`analyzing`,f=(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`p`,{className:`mt-2 text-xs text-muted-foreground`,children:i.analyzingDesc}),(0,B.jsx)(kk,{ratio:a.totalParseJobs===0?0:a.parsedJobs/a.totalParseJobs,running:!0}),(0,B.jsx)(fA,{className:`mt-4`})]})):(u=i.terrainTitle,d=n===`collecting`?(0,B.jsx)(Ok,{kind:`wait`,children:i.answersReceived(o,a.totalJobs)}):(0,B.jsx)(Ok,{kind:`wait`,children:i.waitingBadge}),f=(0,B.jsx)(fA,{className:`mt-3`})),(0,B.jsx)(Ek,{state:c,title:u,badge:d,className:l(`mx-auto w-full transition-[max-width,opacity,border-color,box-shadow] duration-500`,s?`max-w-4xl`:`max-w-md`),children:(0,B.jsx)(`div`,{className:`reveal`,children:f},p)})}var dA=[`w-24`,`w-16`,`w-20`];function fA({className:e}){return(0,B.jsx)(`div`,{"aria-hidden":`true`,className:l(`space-y-2.5`,e),children:dA.map(e=>(0,B.jsxs)(`div`,{children:[(0,B.jsxs)(`div`,{className:`flex items-baseline justify-between gap-2`,children:[(0,B.jsx)(Xk,{className:l(`h-2.5`,e)}),(0,B.jsx)(Xk,{className:`h-2.5 w-7`})]}),(0,B.jsx)(Xk,{className:`mt-1.5 h-1 w-full rounded-full`})]},e))})}function pA({ranking:e,copy:t}){if(e.length===1&&e[0]?.share===0)return(0,B.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:t.noBrandCited});let n=Math.max(...e.map(e=>e.share),1);return(0,B.jsxs)(`div`,{className:`mt-3`,children:[(0,B.jsx)(`h3`,{className:`font-mono text-[10px] uppercase tracking-[0.15em] text-muted-foreground`,children:t.brandsCitedHeading}),(0,B.jsx)(`div`,{className:`mt-2 space-y-2`,children:e.map((e,r)=>(0,B.jsxs)(`div`,{children:[(0,B.jsxs)(`div`,{className:`flex items-baseline justify-between gap-2 text-xs`,children:[(0,B.jsxs)(`span`,{className:e.isYou?`font-medium text-up`:`text-foreground
20/75`,children:[e.name,e.isYou?` ${t.you}`:``]}),(0,B.jsxs)(`span`,{className:`tabular-nums text-muted-foreground`,children:[e.share,` %`]})]}),(0,B.jsx)(`div`,{className:`mt-0.5 h-1 overflow-hidden rounded-full bg-ink/5`,children:(0,B.jsx)(`div`,{className:`bar-grow h-full rounded-full ${e.isYou?`bg-up`:`bg-ink/25`}`,style:{width:`${e.share/n*100}%`,animationDelay:`${r*.08}s`}})})]},e.name))}),(0,B.jsx)(`p`,{className:`mt-2 text-[11px] text-muted-foreground/80`,children:t.terrainShare})]})}function mA(e){return e.replace(/^www\./,``).toLowerCase()}function hA({sources:e,brandDomain:t,copy:n}){return(0,B.jsxs)(`div`,{children:[(0,B.jsx)(`h3`,{className:`font-mono text-[10px] uppercase tracking-[0.15em] text-muted-foreground`,children:n.sourcesTitle}),(0,B.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:n.sourcesSub}),e.length===0?(0,B.jsx)(`p`,{className:`mt-2 text-xs text-muted-foreground`,children:n.sourcesEmpty}):(0,B.jsx)(`ol`,{className:`mt-2 space-y-1`,children:e.slice(0,5).map(e=>(0,B.jsxs)(`li`,{className:`flex items-center justify-between gap-2 text-xs`,children:[(0,B.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,B.jsx)(Jk,{domain:e.domain}),(0,B.jsxs)(`span`,{className:`truncate text-foreground/85`,children:[e.domain,mA(e.domain)===mA(t)?(0,B.jsxs)(`span`,{className:`text-up`,children:[` `,n.you]}):null]})]}),(0,B.jsx)(`span`,{className:`shrink-0 font-mono tabular-nums text-muted-foreground`,children:n.citedTimes(e.count)})]},e.domain))})]})}function gA({...e}){return(0,B.jsx)(_t,{"data-slot":`collapsible`,...e})}function _A({...e}){return(0,B.jsx)(vt,{"data-slot":`collapsible-trigger`,...e})}function vA({...e}){return(0,B.jsx)(xt,{"data-slot":`collapsible-content`,...e})}var yA={fr:{fetch_blocked:{title:`Votre site bloque les lectures automatiques`,body:`Nous n'avons pas pu lire votre site : il refuse les visites automatisées (protection anti-robots). Les moteurs IA explorent le web de la même façon : tant qu'ils sont bloqués, vos chances d'apparaître dans leurs réponses restent très limitées. Autorisez leurs robots (GPTBot, ClaudeBot, PerplexityBot), puis relancez l'audit.`,siteLine:`Le site a refusé notre lecture automatique.`},site_unreachable:{title:`Ce domaine n'a pas répondu`,body:`Nous n'avons pas réussi à joindre ce site. Vérifiez l'adresse (un format comme votremarque.fr), puis relancez l'audit.`,siteLine:`Le domaine n'a pas répondu à nos lectures.`},default:{title:`L'audit n'a pas abouti`,body:`La collecte des réponses a échoué. Relancez un audit depuis la page d'accueil.`,siteLine:`Le site n'a pas pu être lu ou les questions générées.`}},en:{fetch_blocked:{title:`Your site blocks automated reads`,body:`We couldnât read your site: it refuses automated visits (anti-bot protection). AI engines crawl the web the same way: as long as theyâre blocked, your chances of appearing in their answers stay very limited. Allow their crawlers (GPTBot, ClaudeBot, PerplexityBot), then run the audit again.`,siteLine:`The site refused our automated read.`},site_unreachable:{title:`This domain didnât respond`,body:`We couldnât reach this site. Check the address (a format like yourbrand.com), then run the audit again.`,siteLine:`The domain didnât respond to our reads.`},default:{title:`The audit didnât complete`,body:`Collecting the answers failed. Run a new audit from the home page.`,siteLine:`The site couldnât be read or the questions generated.`}}};function bA(e,t){let n=yA[t];return e===`fetch_blocked`?n.fetch_blocked:e===`site_unreachable`?n.site_unreachable:n.default}var xA=3;function SA({report:e,phase:n}){let r=t(),i=$t[r],{brand:a}=e,o=e.promptVerdicts.length>0,s=n===`failed`&&!o;return(0,B.jsxs)(`div`,{className:`mx-auto flex w-full max-w-md flex-col`,children:[(0,B.jsxs)(Ek,{state:s?`failed`:o||n!==`preparing`?`done`:`active`,title:i.trunkSite(a.domain),children:[a.descriptor===void 0?null:(0,B.jsxs)(`span`,{className:`mt-2 inline-block rounded bg-white/5 px-2 py-0.5 text-xs text-muted-foreground`,children:[i.activity,` `,a.descriptor]}),s?(0,B.jsx)(`p`,{className:`mt-2 text-xs text-muted-foreground`,children:bA(e.scan.failureReason,r).siteLine}):null]}),(0,B.jsx)(`div`,{"aria-hidden":`true`,className:`mx-auto h-20 w-px bg-gradient-to-b from-white/30 to-white/5`}),(0,B.jsx)(CA,{report:e,phase:n,questionsReady:o})]})}function CA({report:e,phase:n,questionsReady:r}
20){let i=$t[t()],a=e.promptVerdicts,o=a.slice(0,xA),s=a.slice(xA),c=r?`done`:n===`failed`?`failed`:`waiting`;return(0,B.jsx)(Ek,{state:c,title:r?i.trunkAnswers(a.length):i.trunkQuestionsGenerating,badge:!r&&c===`waiting`?(0,B.jsx)(Ok,{kind:`wait`,children:i.waitingForSite}):void 0,children:r?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:i.questionsDesc}),n===`ready`?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`ol`,{className:`mt-1 divide-y divide-border`,children:o.map((e,t)=>(0,B.jsx)(EA,{verdict:e,index:t},e.promptId))}),(0,B.jsx)(`button`,{type:`button`,onClick:()=>document.getElementById(`reponses`)?.scrollIntoView({behavior:`smooth`,block:`start`}),className:`mt-2 text-xs text-muted-foreground underline-offset-2 hover:text-foreground hover:underline`,children:i.answersLink(a.length)})]}):(0,B.jsx)(TA,{head:o,rest:s,copy:i})]}):c===`waiting`?(0,B.jsxs)(`div`,{"aria-hidden":`true`,className:`mt-4 space-y-3.5`,children:[(0,B.jsx)(Xk,{className:`h-3 w-4/5`}),(0,B.jsx)(Xk,{className:`h-3 w-3/5`}),(0,B.jsx)(Xk,{className:`h-3 w-2/3`})]}):null})}var wA=`overflow-hidden data-open:animate-collapsible-down data-closed:animate-collapsible-up`;function TA({head:e,rest:t,copy:n}){let[r,i]=(0,z.useState)(!1);return(0,B.jsxs)(gA,{open:r,onOpenChange:i,children:[(0,B.jsx)(`ol`,{className:`mt-2 divide-y divide-border`,children:e.map((e,t)=>(0,B.jsx)(EA,{verdict:e,index:t},e.promptId))}),t.length>0?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(vA,{className:wA,children:(0,B.jsx)(`ol`,{className:`divide-y divide-border border-t border-border`,children:t.map((e,t)=>(0,B.jsx)(EA,{verdict:e,index:t},e.promptId))})}),(0,B.jsx)(_A,{className:`mt-2 text-xs text-muted-foreground underline-offset-2 hover:text-foreground hover:underline`,children:r?n.collapse:n.seeMore(t.length)})]}):null]})}function EA({verdict:e,index:n}){let r=$t[t()];return(0,B.jsx)(`li`,{className:`reveal py-1.5 text-sm text-foreground/85`,style:{animationDelay:`${n*.06}s`},children:r.quoted(e.text)})}var DA={usd:`$`,eur:`â¬`,gbp:`£`};function OA(e){return DA[e.toLowerCase()]??e.toUpperCase()}function kA(e,t,n){let r=e/100,i=Number.isInteger(r)?String(r):n===`fr`?r.toFixed(2).replace(`.`,`,`):r.toFixed(2),a=OA(t);return n===`fr`?`${i} ${a}`:`${a}${i}`}function AA(e){let t=e?.prices?.find(e=>typeof e.priceAmount==`number`&&!!e.priceCurrency);return t?{amount:t.priceAmount,currency:t.priceCurrency}:null}function jA(e,t){let n=AA(e);return n?kA(n.amount,n.currency,t):null}function MA(){let e=t(),n=Ue(qe.billing.polar.getConfiguredProducts);return{founderPrice:jA(n?.soloFounder,e),publicPrice:jA(n?.solo,e)}}function NA({className:e,source:n=`landing`}){let r=gT(),i=t(),{founderOffer:a}=qt(),{founderPrice:o}=MA(),s=o??a.price;return(0,B.jsxs)(`div`,{className:l(`flex w-full flex-col items-center gap-2`,e),children:[(0,B.jsx)(Nt,{asChild:!0,size:`lg`,className:`w-full`,children:(0,B.jsx)(je,{to:i===`fr`?`/fr/login`:`/login`,onClick:()=>OD(r,ED.salesCtaClicked,{source:n,price:s,language:i}),children:`${a.cta} · ${s}${a.priceSuffix}`})}),(0,B.jsx)(`p`,{className:`text-center text-xs text-muted-foreground`,children:a.reassurance})]})}function PA({...e}){return(0,B.jsx)(Ot,{"data-slot":`dialog`,...e})}function FA({...e}){return(0,B.jsx)(Ct,{"data-slot":`dialog-trigger`,...e})}function IA({...e}){return(0,B.jsx)(St,{"data-slot":`dialog-portal`,...e})}function LA({...e}){return(0,B.jsx)(jt,{"data-slot":`dialog-close`,...e})}function RA({className:e,...t}){return(0,B.jsx)(Tt,{"data-slot":`dialog-overlay`,className:l(`fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function zA({className:e,children:t,showCloseButton:n=!0,...r}){return(0,B.jsxs)(IA,{children:[(0,B.jsx)(RA,{}),(0,B.jsxs)(Dt,{"data-slot":`dialog-content`,className:l(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground
20/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r,children:[t,n&&(0,B.jsx)(jt,{"data-slot":`dialog-close`,asChild:!0,children:(0,B.jsxs)(Nt,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`,children:[(0,B.jsx)(ct,{icon:nt,strokeWidth:2}),(0,B.jsx)(`span`,{className:`sr-only`,children:`Close`})]})})]})]})}function BA({className:e,...t}){return(0,B.jsx)(`div`,{"data-slot":`dialog-header`,className:l(`flex flex-col gap-2`,e),...t})}function VA({className:e,showCloseButton:t=!1,children:n,...r}){return(0,B.jsxs)(`div`,{"data-slot":`dialog-footer`,className:l(`-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,B.jsx)(jt,{asChild:!0,children:(0,B.jsx)(Nt,{variant:`outline`,children:`Close`})})]})}function HA({className:e,...t}){return(0,B.jsx)(At,{"data-slot":`dialog-title`,className:l(`text-base leading-none font-medium`,e),...t})}function UA({className:e,...t}){return(0,B.jsx)(kt,{"data-slot":`dialog-description`,className:l(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}var WA={fr:{dialogCta:`Suivre ce score chaque semaine`,dialogTitle:`Gardez lâÅil sur ce score`,dialogDescription:`Pythie remesure votre score chaque semaine et vous dit ce qui bouge. Bloquez le tarif fondateur, gravé à vie.`,forLife:`à vie`},en:{dialogCta:`Track this score every week`,dialogTitle:`Keep an eye on this score`,dialogDescription:`Pythie remeasures your score every week and tells you what moves. Lock in the founder price, fixed for life.`,forLife:`for life`}};function GA({className:e}){let{founderOffer:t}=qt();return(0,B.jsxs)(`span`,{className:l(`flex items-center gap-2 font-mono text-[10px] uppercase tracking-[0.14em] text-up`,e),children:[(0,B.jsx)(`span`,{"aria-hidden":!0,className:`blink-soft size-1.5 rounded-full bg-up`}),t.status]})}var KA=6,qA=12,JA=4;function YA(e){let t=Math.max(KA,Math.min(100,Math.max(0,e))),n=Math.min(qA,(100-t)/JA);return Array.from({length:5},(e,r)=>Math.round((t+r*n)*10)/10)}var XA=.4,ZA=.16,QA=.3,$A=[`auj.`,`s+1`,`s+2`,`s+3`,`s+4`];function ej({score:e}){let n=t(),r=YA(e),i=r.length-1;return(0,B.jsx)(`div`,{"aria-hidden":!0,className:`flex h-28 items-end justify-between gap-4`,children:r.map((t,r)=>{let a=r===0,o=r===i,s=`${(XA+r*ZA).toFixed(2)}s`,c=`${(XA+r*ZA+QA).toFixed(2)}s`;return(0,B.jsxs)(`div`,{className:`flex h-full flex-1 flex-col items-center justify-end gap-2`,children:[(0,B.jsx)(`span`,{className:l(`dot-in font-mono text-[10px]`,a&&`text-foreground/90`,!a&&(o?`text-up`:`text-muted-foreground/60`)),style:{animationDelay:c},children:a?MO(e,n):`?`}),(0,B.jsx)(`div`,{className:l(`bar-rise w-full max-w-10 rounded-t-sm`,a&&`bg-ink/60`,!a&&`border border-b-0 border-dashed border-ink/20 bg-ink/[0.03]`,o&&`border-up/40 bg-up/5`),style:{height:`${t}%`,animationDelay:s}}),(0,B.jsx)(`span`,{className:`font-mono text-[9px] uppercase tracking-[0.1em] text-muted-foreground/50`,children:$A[r]})]},$A[r])})})}var tj=.45,nj=.1;function rj({scanId:e,score:n}){let r=gT(),i=t(),a=WA[i],{founderOffer:o}=qt(),{founderPrice:s,publicPrice:c}=MA(),l=s??o.price,u=c??o.normalPrice,[d,f]=(0,z.useState)(!1);function p(t){f(t),t&&OD(r,ED.salesDialogOpened,{scan_id:e,score:n,language:i})}return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Nt,{onClick:()=>p(!0),children:a.dialogCta}),(0,B.jsx)(PA,{open:d,onOpenChange:p,children:(0,B.jsxs)(zA,{className:`gap-6 border-up/25 p-7 shadow-[0_0_70px_-20px_rgba(74,222,128,0.3)] sm:max-w-lg sm:p-8`,children:[(0,B.jsxs)(BA,{children:[(0,B.jsxs)(`div`,{className:`reveal flex items-center justify-between gap-3 pr-6`,children:[(0,B.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,B.jsx)(hk,{variant:`outline`,className:`border-up/30 font-mono text-[9px] uppercase`,children:o.badge}),(0,B.jsxs)(hk,{variant:`outline`,className:`border-up/30 font-mono text-[9px] uppercase text-up`,children:[o.saving,` `,a.forLife]})]}),(0,B.jsxs)(`span`,{className:`font-mono text-[10px] uppercase tracking-[0.14em] text-muted-foreground`,children:[(0,B.jsx)(`s`,{className:`mr-1.5 text-muted-foreground
20/50`,children:u}),(0,B.jsx)(`span`,{className:`text-foreground/90`,children:l}),o.priceSuffix]})]}),(0,B.jsx)(HA,{className:`reveal pt-2 text-lg`,style:{animationDelay:`0.06s`},children:a.dialogTitle}),(0,B.jsx)(UA,{className:`reveal leading-relaxed`,style:{animationDelay:`0.12s`},children:a.dialogDescription})]}),(0,B.jsx)(`div`,{className:`reveal py-1`,style:{animationDelay:`0.18s`},children:(0,B.jsx)(ej,{score:n})}),(0,B.jsx)(`ul`,{className:`space-y-3`,children:o.features.map((e,t)=>(0,B.jsxs)(`li`,{className:`reveal flex items-start gap-2.5 text-sm`,style:{animationDelay:`${(tj+t*nj).toFixed(2)}s`},children:[(0,B.jsx)(`span`,{"aria-hidden":!0,className:`mt-0.5 text-up`,children:`â`}),(0,B.jsx)(`span`,{className:`text-foreground/85`,children:e})]},e))}),(0,B.jsxs)(`div`,{className:`reveal space-y-3`,style:{animationDelay:`1.05s`},children:[(0,B.jsx)(GA,{}),(0,B.jsx)(NA,{source:`report_verdict`})]})]})})]})}function ij({report:e,phase:n,overall:r,scanId:i,terminalCta:o}){let s=t(),c=$t[s];if(n===`failed`||n===`insufficient`){let t=n===`failed`?bA(e.scan.failureReason,s):{title:c.insufficientTitle,body:c.insufficientBody};return(0,B.jsxs)(Ek,{state:`failed`,title:t.title,className:`mx-auto w-full max-w-md text-center`,children:[(0,B.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:t.body}),(0,B.jsx)(Nt,{asChild:!0,variant:`secondary`,className:`mt-4`,children:(0,B.jsx)(je,{to:a(s),children:c.relaunch})})]})}return n!==`ready`||r===void 0?(0,B.jsxs)(Ek,{state:`waiting`,title:c.verdictKicker,className:`mx-auto w-full max-w-md text-center`,children:[(0,B.jsx)(`p`,{"aria-hidden":`true`,className:`blink-soft mt-1 font-mono text-3xl tracking-widest text-muted-foreground/60`,children:`··\xA0%`}),(0,B.jsxs)(`div`,{"aria-hidden":`true`,className:`mx-auto mt-3 w-full max-w-xs space-y-1.5`,children:[(0,B.jsx)(Xk,{className:`h-3 w-full`}),(0,B.jsx)(Xk,{className:`mx-auto h-3 w-2/3`})]})]}):(0,B.jsx)(aj,{report:e,overall:r,scanId:i,terminalCta:o})}function aj({report:e,overall:n,scanId:r,terminalCta:i}){let o=t(),s=$t[o],[c,l]=(0,z.useState)(!1);(0,z.useEffect)(()=>{if(!c)return;let e=setTimeout(()=>l(!1),2e3);return()=>clearTimeout(e)},[c]);let u=async()=>{let e=window.location.href;try{await navigator.clipboard.writeText(e)}catch{let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`absolute`,t.style.left=`-9999px`,document.body.appendChild(t),t.select();try{document.execCommand(`copy`)}finally{document.body.removeChild(t)}}l(!0)},d=e.metrics.filter(e=>e.engine!==`all`).map(e=>({engine:e.engine,visibilityScore:e.visibilityScore,sampleSize:e.sampleSize}));return(0,B.jsxs)(gk,{className:`relative mx-auto flex w-full max-w-md flex-col items-center gap-0 overflow-visible border ring-0 border-up/35 shadow-[0_0_14px_rgba(74,222,128,0.06)] px-5 py-7 text-center`,children:[(0,B.jsx)(Tk,{state:`done`}),(0,B.jsxs)(`div`,{className:`reveal flex w-full flex-col items-center`,children:[(0,B.jsx)(`p`,{className:`font-mono text-[10px] uppercase tracking-[0.2em] text-muted-foreground`,children:s.verdictKicker}),(0,B.jsx)(en,{score:n.visibilityScore}),(0,B.jsx)(`p`,{className:`mt-1 text-[11px] text-muted-foreground`,children:s.gaugeLegend}),(0,B.jsx)(`p`,{className:`mt-3 max-w-sm text-base text-foreground/90`,children:Rk(e.brand.name,e.mentionedTotal,n.sampleSize,d,o)}),i===void 0?(0,B.jsxs)(`div`,{className:`mt-5 flex flex-col items-center gap-3`,children:[(0,B.jsx)(rj,{scanId:r,score:n.visibilityScore}),(0,B.jsxs)(Nt,{variant:`secondary`,onClick:u,children:[(0,B.jsx)(ct,{icon:c?at:et,size:15,strokeWidth:1.8}),(0,B.jsx)(`span`,{"aria-live":`polite`,children:c?s.shareCopied:s.share})]}),(0,B.jsx)(je,{to:a(o),className:`text-sm text-muted-foreground underline-offset-4 hover:text-foreground hover:underline`,children:s.auditAnother})]}):(0,B.jsx)(`div`,{className:`mt-5 flex w-full justify-center`,children:i})]})]})}var oj={preparing:`trunk`,collecting:`engines`,analyzing:`terrain`,ready:`verdict`,insufficient:`verdict`,failed:`verdict`},sj=[`preparing`,`collecting`,`analyzing`];function cj({report:e,scanId:n,terminalCta:r}){let i=t(),a=$t[i],o=Vk(e),s=e.metrics.find(e=>
20e.engine===`all`),c=e.scan.engines,l=(0,z.useRef)(null),u=(0,z.useRef)(null),d=(0,z.useRef)(null),f=(0,z.useRef)(null),p=(0,z.useRef)(null);return(0,z.useEffect)(()=>{let e=p.current===null,t=p.current!==o;if(p.current=o,!t||e&&!sj.includes(o))return;let n={trunk:l,engines:u,terrain:d,verdict:f},r=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,i=()=>n[oj[o]].current?.scrollIntoView({block:`center`,behavior:r?`auto`:`smooth`});i();let a=window.setTimeout(i,700);return()=>window.clearTimeout(a)},[o]),(0,B.jsxs)(`div`,{className:`pb-6`,children:[(0,B.jsxs)(`section`,{className:`flex flex-col items-center gap-3 pt-12 pb-12 text-center`,children:[(0,B.jsx)(`p`,{className:`reveal font-mono text-[11px] uppercase tracking-[0.16em] text-muted-foreground`,children:a.auditHeading}),(0,B.jsx)(`h1`,{className:`reveal max-w-2xl text-4xl font-semibold tracking-tight sm:text-5xl`,style:{animationDelay:`0.1s`},children:e.brand.name}),(0,B.jsxs)(`p`,{className:`reveal font-mono text-xs text-muted-foreground`,style:{animationDelay:`0.2s`},children:[e.brand.domain,e.scan.completedAt===void 0?` ${a.auditInProgress}`:` · ${NO(e.scan.completedAt,i)}`]})]}),(0,B.jsxs)(`div`,{className:`reveal`,style:{animationDelay:`0.3s`},children:[(0,B.jsx)(`div`,{ref:l,children:(0,B.jsx)(SA,{report:e,phase:o})}),(0,B.jsx)(sk,{count:c.length,live:o===`collecting`}),(0,B.jsx)(`div`,{ref:u,className:`grid gap-14 sm:gap-4 sm:grid-flow-col sm:auto-cols-fr`,children:c.map(t=>(0,B.jsx)(Bk,{engine:t,report:e,phase:o},t))}),(0,B.jsx)(ck,{count:c.length,live:o===`analyzing`}),(0,B.jsxs)(`div`,{ref:d,children:[(0,B.jsx)(uA,{report:e,phase:o,overall:s}),(0,B.jsx)(jk,{report:e,phase:o})]}),(0,B.jsx)(lk,{live:o===`ready`}),(0,B.jsx)(`div`,{ref:f,children:(0,B.jsx)(ij,{report:e,phase:o,overall:s,scanId:n,terminalCta:r})})]})]})}function lj(){let e=t(),n=$t[e];return(0,B.jsxs)(`aside`,{className:`reveal mt-6 flex flex-wrap items-baseline justify-center gap-x-2 gap-y-1 rounded-md border border-ink/10 bg-ink/[0.03] px-4 py-3 text-center text-sm text-muted-foreground`,children:[(0,B.jsx)(`span`,{children:n.noticeOtherLanguage}),(0,B.jsxs)(je,{to:a(e),className:`font-medium text-foreground underline-offset-4 hover:underline`,children:[n.noticeCta,` â`]})]})}function uj(){let e=$t[t()];return(0,B.jsx)(dj,{title:e.notFoundTitle,children:(0,B.jsx)(`p`,{className:`mx-auto max-w-md text-sm text-muted-foreground`,children:e.notFoundBody})})}function dj({title:e,children:t}){return(0,B.jsxs)(`div`,{className:`flex flex-col items-center gap-6 py-28 text-center sm:py-36`,children:[(0,B.jsx)(`span`,{"aria-hidden":!0,className:`animate-pulse font-mono text-xl text-muted-foreground`,children:`···`}),(0,B.jsx)(`h1`,{className:`reveal max-w-xl text-3xl font-semibold tracking-tight sm:text-4xl`,children:e}),t]})}var fj=e=>Td(qe.reports.public.getReport,{scanId:e});async function pj(e,t,n){let r=await e.ensureQueryData(fj(t));if(r===null)throw we();if(r.scan.language!==n)throw De(r.scan.language===`fr`?{to:`/fr/report/$scanId`,params:{scanId:t},statusCode:301}:{to:`/report/$scanId`,params:{scanId:t},statusCode:301});return r}function mj(){return(0,B.jsx)(_O,{children:(0,B.jsx)(uj,{})})}function hj({scanId:e}){let{data:t}=od(fj(e)),n=t?.scan.language??`fr`,[r,i]=(0,z.useState)(n);return(0,z.useEffect)(()=>{i(OO(document.cookie,navigator.language))},[]),t===null?(0,B.jsx)(mj,{}):(0,B.jsx)(s,{value:r,children:(0,B.jsxs)(_O,{children:[r===n?null:(0,B.jsx)(lj,{}),(0,B.jsx)(gj,{scanId:e,report:t})]})})}function gj({scanId:e,report:t}){return kO(e,Vk(t)),(0,B.jsx)(cj,{report:t,scanId:e})}var _j={fr:{home:{title:`Mon espace`,loading:`Chargementâ¦`,myBrandTitle:`Ma marque suivie`,tracked:`Suivie`,notTracked:`En pause`,viewReport:`Voir le rapport`,settings:`Réglages`,claimTitle:`Réclamer mon audit`,claiming:`Rattachementâ¦`,domainPlaceholder:`votremarque.fr`,creating:`Lancementâ¦`,scoreLabel:`Visibilité IA`,scoreUnit:`/100`,deltaUp:e=>`â² +${e} cette semaine`,deltaDown:e=>`â¼ ${e} cette semaine`,deltaStable:`Stable cette semaine`,deltaFirst:`Première mesure`,generating:`Génération en coursâ¦`,counts:(e,t)=>`${e} concurrents · ${t} questions`,confirmCompetitorsNudge:`Confirmez vos concurrents pour un classement juste.`,confirm:`Confirmer`},setup:{subtitle:`Vos concurrents, vos questions et votre localisation.`,accountSubtitle:`Langue, abonnement et compte.`,competitorsTitle:`Concurrents suivis`,competitorsHint:e=>`Jusquâà ${e} concurrents nommés.`,useSuggested:`Utiliser les suggestions`,competitorName:`Nom`,competitorDomain:`url-du-concurrent.com`,competitorDomainRequired:`Chaque concurrent doit avoir un domaine.`,addCompetitor:`Ajouter un concurrent`,removeCompetitor:`Supprimer ce concurrent`,saveCompetitors:`Enregistrer les concurrents`,saving:`Enregistrementâ¦`,saved:`Enregistré`,promptsTitle:`Banque de questions`,promptsHint:(e,t)=>
20`${e} / ${t} questions actives.`,promptPlaceholder:`Une question de découverte (sans citer votre marque)`,addPrompt:`Ajouter`,activeLabel:`Active`,save:`Enregistrer`,cancel:`Annuler`,edit:`Ãditer`,remove:`Supprimer`,archive:`Archiver`,restore:`Restaurer`,archivedTitle:`Archivées`,archiveConfirmTitle:`Archiver cette question ?`,archiveConfirmBody:e=>`Cette question est suivie depuis le ${e}. Lâarchiver lâarrête sans rien perdre, tu pourras la restaurer.`,languageTitle:`Langue`,accountTitle:`Compte`,manageSubscription:`Gérer mon abonnement`,signOut:`Se déconnecter`,deleteAccount:`Supprimer mon compte`,deleteAccountHint:`Ouvre un email pré-rempli vers notre équipe. La suppression efface définitivement votre compte et vos données ; les informations de facturation sont conservées au titre des obligations légales.`,deleteAccountEmailSubject:`Demande de suppression de compte et de données (RGPD)`,deleteAccountEmailBody:e=>`Bonjour,\n\nJe demande la suppression définitive de mon compte Pythie et de l'ensemble de mes données associées, au titre du RGPD.\n\nEmail du compte : ${e}\n\nMerci de me confirmer une fois la suppression effectuée.\n\nCordialement`,locationTitle:`Localisation`,locationSub:`Pour un commerce local, vos questions seront formulées pour votre ville.`,localToggleLabel:`Mon activité est locale`,cityPlaceholder:`Votre ville`,citySearching:`Rechercheâ¦`,cityEmpty:`Aucune ville trouvée`,cityRateLimited:`Trop de recherches en cours, réessayez dans un instant.`,saveLocation:`Enregistrer la localisation`,locationSaving:`Enregistrementâ¦`,locationDeferNote:`Régénérer vos questions prend effet au prochain scan, comme toute modification de questions.`,regenerateCta:e=>`Régénérer mes questions pour ${e}`,regenerateConfirm:e=>`Régénérer vos 15 questions pour ${e} ? Vos questions actuelles seront archivées (historique conservé) et votre courbe affichera un marqueur de changement de périmètre à la prochaine mesure.`,regeneratePending:`Régénérationâ¦`,regenerateDoneNote:e=>`Questions régénérées pour ${e}. Le résultat sera visible au prochain scan.`,measuredFor:e=>`Mesuré pour ${e}`},dashboard:{nav:{overview:`Vue dâensemble`,competitors:`Concurrents`,sources:`Sources`,prompts:`Questions`,reputation:`Réputation`,advice:`Conseils`,settings:`Configuration`,account:`Compte`},navAria:`Navigation espace fondateur`,navGroupTracking:`Suivi`,navGroupSettings:`Paramètres`,sectionVisibilityTitle:`Visibilité de marque`,sectionVisibilitySubtitle:e=>`Part des réponses IA qui citent ${e}, tous moteurs confondus.`,filterAllModels:`Tous les moteurs`,rangeLabel:e=>`${e} derniers jours`,scoreUnit:`% de visibilité`,scoreCaption:`moyenne tous moteurs`,scoreFormulaNote:`Score pondéré : citée en tête compte plus que citée tard.`,trendTitle:`Visibilité dans le temps`,trendComingSoon:e=>`Ta 1re tendance arrive le ${e}`,trendComingSoonUpsell:`Ta 1re tendance arrive avec un abonnement`,trendCount:e=>`${e} scans`,trendOverall:`Global`,metaNext:e=>`prochain scan le ${e}`,metaNextUpsell:`scans hebdo avec un abonnement`,metaCompetitors:e=>`${e} concurrents`,metaQuestions:e=>`${e} questions`,rankingTitle:`Classement - share of voice`,rankingSubtitle:`vs concurrents déclarés`,sourcesTitle:`Sources les plus citées`,sourcesSubtitle:`top domaines`,sourcesPageSubtitle:`Les sites sur lesquels les IA sâappuient pour parler de votre marché.`,sourcesCitations:{subtitle:`Les pages réellement citées par les modèles. Dépliez un domaine.`,viaGoogle:`via Google`,viaGoogleCount:e=>`${e} pages via Google`,homeLabel:`Page dâaccueil`},enginesTitle:`Par moteur`,enginesViewDetail:`Détail`,enginesViewTrend:`Courbe`,insufficient:`Données insuffisantes`,generating:`Premiers résultats dans quelques minutes`,live:{preparing:`On prépare votre analyseâ¦`,preparingStuck:`Câest plus long que prévu. Vous pouvez relancer lâanalyse.`,scanningTitle:`On interroge les modèles dâIAâ¦`,collectingCounter:(e,t)=>`${e} / ${t} réponses`,analyzingCounter:(e,t)=>`${e} / ${t} réponses analysées`,enginesTitle:`Moteurs interrogés`,engineResponses:(e,t)=>`${e}/${t} réponses`,engineDone:`terminé`,pending:`En cours de calculâ¦`,failedTitle:`Lâanalyse a rencontré un souci`,failedBody:`On nâa pas pu terminer le scan. Relancez lâanalyse.`,retry:`Relancer lâanalyse`,retrying:`Relancementâ¦`},checklistTitle:`Termine la configuration`,checklistBrand:`Marque créée`,checklistCompetitors:`Confirme tes concurrents`,checklistQuestions:`Valide tes questions`,you:`toi`,perimeterChangedLabel:(e,t)=>
20e>0&&t>0?`+${e} / -${t} questions`:t>0?t===1?`1 question retirée`:`${t} questions retirées`:e===1?`1 question ajoutée`:`${e} questions ajoutées`,paywall:{bannerKicker:`Aperçu gratuit`,bannerTitle:`Débloquez le suivi complet`,bannerBody:`Le gratuit montre un aperçu. Le plan fondateur débloque le détail et le re-scan chaque semaine.`,bannerCta:`Sâabonner au tarif fondateur · 49 $/mois à vie`,bannerLocking:`Redirectionâ¦`,bannerPriceOld:`59 $`,bannerNoCard:`Sans engagement`,bannerDoneTitle:`Câest réservé.`,bannerDoneBody:`Tarif fondateur 49 $/mois à vie, vous êtes parmi les premiers abonnés fondateurs.`,lockedMore:e=>`+${e} verrouillé${e>1?`s`:``}`,lockedReserved:`Contenu réservé au plan fondateur`,lockedPrompts:`Toutes vos questions et leur statut par moteur`,lockedAdvice:`Tous vos conseils, étape par étape`,lockedCompetitors:`Le détail de votre visibilité par moteur`,lockedSources:`Toutes les sources qui vous citent`,lockedThemes:`Le détail complet des thèmes loué et reproché`,lockedTrend:`La tendance de réputation, semaine après semaine`,lockedDetail:`Le détail de réputation par question`},competitorsChartTitle:`Visibilité - vous vs concurrents`,competitorsPageSubtitle:`Qui dâautre les IA citent sur vos sujets, et où vous vous situez.`,competitorsChartSubtitle:`Taux de mention sur la même base de questions, semaine après semaine.`,competitorsChartEmpty:`Déclarez des concurrents dans les réglages pour comparer votre visibilité.`,competitorsChartComingSoon:`La comparaison se densifie à chaque scan hebdo.`,competitorsChartShowRemoved:`Afficher les retirés`,competitorsChartHideRemoved:`Masquer les retirés`,competitorsChartRemovedBadge:`retiré`,promptsTable:{title:`Questions`,subtitle:e=>`Vos ${e} questions, moteur par moteur.`,asOf:e=>`Données du ${e}`,pending:`Première mesure en cours.`,edit:`Modifier dans les réglages`,empty:`Aucune question pour lâinstant.`,emptyAdd:`Ajouter des questions`,colPrompt:`Question`,colStatus:`Statut`,colEngines:`Moteurs`,colVerdict:`Verdict`,colLastMention:`Dernière mention`,statusActive:`Active`,statusPaused:`En pause`,filterStatusAll:`Toutes`,filterEngineLabel:`Citée par`,filterEngineAll:`Tous`,noMatch:`Aucune question ne correspond à ce filtre.`,engineCited:`citée`,engineAbsent:`absente`,expand:`Voir le détail`,citesInstead:`cite à la place`,alsoCites:`cite aussi`,noBrandCited:`aucune marque citée`,viewConversation:`Voir la conversation`,answerRun:e=>`Réponse ${e}`,answerUnavailable:`Réponse indisponible pour ce moteur.`,positionTooltip:e=>`Ordre d'apparition dans la meilleure réponse de ce moteur : votre marque y est la ${e} citée, pas un classement.`},reputation:{sectionTitle:`Réputation de marque`,sectionSubtitle:`Comment les IA perçoivent votre marque, selon les réponses brandées.`,sentimentTitle:`Perception globale`,sourcesTitle:`Sources de réputation`,sourcesSubtitle:`domaines cités dans les réponses brandées`,insufficient:`Pas encore assez de réponses pour mesurer la réputation.`,responseCount:e=>`${e} ${e===1?`réponse`:`réponses`}`,separator:`·`,viewAll:`Voir la réputation`,labels:{positive:`positif`,neutral:`neutre`,negative:`négatif`,mixed:`mitigé`},hero:{quoteLabel:`Citation représentative`,netLabel:e=>`${e>=0?`+`:``}${e} net`,confidence:e=>`Ãchantillon faible (${e} réponses) - la tendance se confirme sur plusieurs semaines.`,verdict:{positive:`Plutôt positive`,neutral:`Plutôt neutre`,negative:`Plutôt négative`,mixed:`Perception mitigée`}},byEngineTitle:`Perception par moteur`,trendTitle:`Réputation dans le temps`,trendSubtitle:`Indice de réputation (0-100) par moteur, un point par scan.`,themes:{title:`Ce qui ressort des réponses`,praise:`Ce quâon vous loue`,criticism:`Ce quâon reproche`,empty:`Pas encore de tendance nette.`},table:{title:`Détail par question`,asOf:e=>`Données du ${e}`,colQuestion:`Question`,colGlobal:`Global`,expand:`Voir le détail`,noData:`Aucune donnée de réputation disponible.`,sentimentAbsent:`non mesuré`,globalMixed:`mitigé`}},advice:{sectionTitle:`Conseils`,sectionSubtitle:`Des actions concrètes pour gagner en visibilité, tirées de vos propres données.`,insufficient:`Pas encore assez de données pour des conseils fiables. Revenez après quelques scans.`,stepsTitle:`Ãtapes`,meterLabel:(e,t)=>
20`Impact ${{high:`élevé`,medium:`moyen`,low:`faible`}[e]}, effort ${{high:`élevé`,medium:`moyen`,low:`faible`}[t]}`,actions:{done:`Marquer comme fait`,discard:`Ignorer`,reopen:`Rouvrir`},archivedTitle:`Traités et ignorés`,statusDone:`Fait`,statusDiscarded:`Ignoré`,cards:{weak_engine:{title:e=>`Renforcez votre présence sur ${e}`,why:(e,t,n)=>`${e} ne vous cite que dans ${t} % des réponses, contre ${n} % en moyenne sur les autres moteurs.`,steps:[`Repérez les formats que ce moteur privilégie (comparatifs, listes, docs).`,`Publiez ou actualisez des pages sur vos questions clés dans ces formats.`,`Faites-vous citer sur les sources que ce moteur a tendance à reprendre.`]},lost_questions:{title:`Vous avez perdu du terrain`,why:e=>`Vous êtes sorti des réponses sur ${e} ${e>1?`questions`:`question`} depuis le scan précédent.`,questionsLabel:`Questions concernées`,steps:[`Examinez les réponses où vous avez disparu et ce qui a changé.`,`Actualisez et renforcez les pages liées à ces questions.`,`Surveillez ces questions au prochain scan pour confirmer la reprise.`]},competitor_ahead:{title:e=>`${e} capte vos questions`,why:(e,t,n)=>`${e} apparaît dans ${t} % des réponses sur vos questions, contre ${n} % pour vous.`,steps:[`Lisez les réponses où ce concurrent est cité et pas vous.`,`Identifiez les sujets et les sources qui portent sa visibilité.`,`Produisez un meilleur contenu sur ces sujets pour combler lâécart.`]},sources_to_work:{title:`Faites-vous citer par les bonnes sources`,why:`Les IA citent souvent ces domaines pour répondre, mais pas le vôtre.`,domainsLabel:`Sources à viser`,steps:[`Priorisez les domaines les plus cités où votre marque est absente.`,`Visez une mention, un article invité ou une fiche sur chacun.`,`Revérifiez après publication pour confirmer votre présence.`]},recurring_criticism:{title:`Un reproche revient souvent`,why:e=>`« ${e} » revient dans plusieurs réponses des IA à votre sujet.`,steps:[`Vérifiez si le reproche est fondé ou une fausse perception.`,`Traitez-le clairement sur votre site et vos pages publiques.`,`Encouragez des avis indépendants qui rééquilibrent le discours.`]},strength_to_capitalize:{title:`Capitalisez sur ce quâon loue`,why:e=>`« ${e} » revient dans plusieurs réponses positives à votre sujet.`,steps:[`Mettez cette force en avant sur votre site et vos argumentaires.`,`Publiez des preuves : études de cas, témoignages, exemples.`,`Renforcez-la dans les sources que les IA citent.`]},low_global_score:{title:`Votre visibilité globale est faible`,why:e=>`Vous nâapparaissez que dans ${e} % des réponses des IA sur vos questions.`,steps:[`Publiez des pages claires (FAQ, comparatifs) sur vos sujets clés.`,`Faites-vous citer sur les sources déjà reconnues par les IA.`,`Relancez le scan après quelques semaines pour suivre les progrès.`]}}}},onboarding:{back:`Retour`,next:`Suivant`,welcomeKicker:`Bienvenue sur Pythie`,claimTitle:e=>`Nous avons déjà analysé ${e}.`,claimMultiTitle:`Nous avons déjà analysé vos marques.`,claimBody:`Votre score de visibilité IA est prêt. Revendiquez-le et activez le suivi hebdomadaire.`,claimContinue:`Continuer`,claimNotYours:`Ce nâest pas votre marque ? Repartez de zéro`,createTitle:`Trouvez votre marque dans les réponses IA.`,createTitleLead:`Trouvez votre marque dans les `,createTitleGlint:`réponses IA`,createTitleTail:`.`,createBody:`Entrez votre domaine. Nous interrogeons ChatGPT, Gemini et Perplexity sur votre secteur et vous montrons où vous en êtes.`,domainPlaceholder:`votremarque.fr`,createCta:`Analyser ma marque`,createFootnote:`Gratuit - sans carte - environ 2 minutes`,discoveringKicker:`Analyse en cours`,discoveringTitle:`On analyse votre site`,discoveringSteps:[`Lecture de votre site`,`Repérage de votre activité`,`Identification des concurrents`,`Préparation de vos questions`],discoveringSub:`Quelques secondes\xA0: on repère votre activité et vos concurrents pour pré-remplir vos réglages.`,discoveringStuck:`Câest plus long que prévu. Vous pouvez relancer lâanalyse de votre site.`,discoveringRetry:`Relancer lâanalyse`,discoveringRetrying:`Relancementâ¦`,adjustIntroTitle:`Réglons votre suivi`,adjustIntroSub:`Trois réglages rapides et câest à vous.`,adjustCta:`Lancer mon suivi`,step1Kicker:`Ãtape 1 sur 3 - Identité`,brandStepTitle:`Confirmez qui vous êtes`,brandStepSub:`Pour que nous posions aux moteurs IA les bonnes questions sur votre entreprise.`,nameLabel:`Nom officiel`,descriptorLabel:`Ce que vous faites`,domainLabel:`Domaine`,localToggleLabel:`Mon activité est locale`,cityLabel:`Ville`,cityPlaceholder:`Votre ville`,citySearching:`Rechercheâ¦`,cityEmpty:`Aucune ville trouvée`,cityRateLimited:`Trop de recherches en cours, réessayez dans un instant.`,cityHint:`Sert à cibler les questions sur cette ville (ex. meilleur restaurant japonais à Paris).`,identitySaving:`Enregistrementâ¦`,step2Kicker:`Ãtape 2 sur 3 - Concurrents`,competitorsStepTitle:`Vos concurrents`,competitorsStepSub:`On les a repérés pendant lâanalyse. Ajustez la liste : câest elle qui cadre votre classement.`,step3Kicker:`Ãtape 3 sur 3 - Questions`,questionsTitle:`Les questions que nous allons suivre`,questionsSub:`Chaque semaine, nous posons ces questions à ChatGPT, Gemini et Perplexity. Désactivez celles qui ne vous conviennent pas.`,enterDashboard:`Accéder au tableau de bord`,footerCaption:`Suivi chaque semaine sur`,footerReassure:`Vos réglages restent modifiables à tout moment.`,paywallKicker:`Votre suivi est prêt`,paywallTitleMid:`, suivie `,paywallTitleGlint:`chaque semaine`,paywallTitleTail:`.`,paywallBody:`Vous avez une analyse aujourdâhui. En gratuit, elle reste figée : un seul instantané. Le plan fondateur la fait revivre chaque semaine, et débloque la réputation, les conseils, le classement complet et toutes vos sources.`,paywallCta:`Sâabonner au tarif fondateur · 49 $/mois à vie`,paywallLocking:`Redirectionâ¦`,paywallPriceOld:`59 $`,paywallNoCard:`Sans engagement`,paywallContinueFree:`Continuer en gratuit`,paywallAntiProfound:`Pas dâappel commercial. Vous verrouillez votre tarif vous-même.`,paywallDoneKicker:`Câest réservé`,paywallDoneTitle:`Votre tarif fondateur est verrouillé.`,paywallDoneBody:`49 $/mois à vie, vous êtes parmi les premiers abonnés fondateurs.`,paywallDoneCta:`Accéder au tableau de bord`}},en:{home:{title:`My space`,loading:`Loadingâ¦`,myBrandTitle:`My tracked brand`,tracked:`Tracked`,notTracked:`Paused`,viewReport:`View report`,settings:`Settings`,claimTitle:`Claim my audit`,claiming:`Linkingâ¦`,domainPlaceholder:`yourbrand.com`,creating:`Launchingâ¦`,scoreLabel:`AI visibility`,scoreUnit:`/100`,deltaUp:e=>`â² +${e} this week`,deltaDown:e=>`â¼ ${e} this week`,deltaStable:`Steady this week`,deltaFirst:`First reading`,generating:`Generatingâ¦`,counts:(e,t)=>`${e} competitors · ${t} questions`,confirmCompetitorsNudge:`Confirm your competitors for a fair ranking.`,confirm:`Confirm`},setup:{subtitle:`Your competitors, questions and location.`,accountSubtitle:`Language, subscription and account.`,competitorsTitle:`Tracked competitors`,competitorsHint:e=>`Up to ${e} named competitors.`,useSuggested:`Use suggestions`,competitorName:`Name`,competitorDomain:`competitor-url.com`,competitorDomainRequired:`Each competitor needs a domain.`,addCompetitor:`Add a competitor`,removeCompetitor:`Remove this competitor`,saveCompetitors:`Save competitors`,saving:`Savingâ¦`,saved:`Saved`,promptsTitle:`Question bank`,promptsHint:(e,t)=>
20`${e} / ${t} active questions.`,promptPlaceholder:`A discovery question (without naming your brand)`,addPrompt:`Add`,activeLabel:`Active`,save:`Save`,cancel:`Cancel`,edit:`Edit`,remove:`Remove`,archive:`Archive`,restore:`Restore`,archivedTitle:`Archived`,archiveConfirmTitle:`Archive this question?`,archiveConfirmBody:e=>`This question has been tracked since ${e}. Archiving it stops it without losing anything; you can restore it later.`,languageTitle:`Language`,accountTitle:`Account`,manageSubscription:`Manage subscription`,signOut:`Sign out`,deleteAccount:`Delete my account`,deleteAccountHint:`Opens a pre-filled email to our team. Deletion permanently erases your account and data; billing information is retained to meet legal obligations.`,deleteAccountEmailSubject:`Account and data deletion request (GDPR)`,deleteAccountEmailBody:e=>`Hello,\n\nI request the permanent deletion of my Pythie account and all of my associated data, under GDPR.\n\nAccount email: ${e}\n\nPlease confirm once the deletion is complete.\n\nBest regards`,locationTitle:`Location`,locationSub:`For a local business, your questions will be phrased for your city.`,localToggleLabel:`My business is local`,cityPlaceholder:`Your city`,citySearching:`Searchingâ¦`,cityEmpty:`No city found`,cityRateLimited:`City search is busy, retry in a moment.`,saveLocation:`Save location`,locationSaving:`Savingâ¦`,locationDeferNote:`Regenerating your questions takes effect at the next scan, like any question change.`,regenerateCta:e=>`Regenerate my questions for ${e}`,regenerateConfirm:e=>`Regenerate your 15 questions for ${e}? Your current questions will be archived (history kept) and your chart will show a perimeter-change marker at the next measurement.`,regeneratePending:`Regeneratingâ¦`,regenerateDoneNote:e=>`Questions regenerated for ${e}. The result will be visible at the next scan.`,measuredFor:e=>`Measured for ${e}`},dashboard:{nav:{overview:`Overview`,competitors:`Competitors`,sources:`Sources`,prompts:`Questions`,reputation:`Reputation`,advice:`Advice`,settings:`Configuration`,account:`Account`},navAria:`Founder dashboard navigation`,navGroupTracking:`Tracking`,navGroupSettings:`Settings`,sectionVisibilityTitle:`Brand visibility`,sectionVisibilitySubtitle:e=>`Share of AI answers that mention ${e}, across all models.`,filterAllModels:`All models`,rangeLabel:e=>`Last ${e} days`,scoreUnit:`% visibility`,scoreCaption:`across all models`,scoreFormulaNote:`Weighted score: cited first counts more than cited late.`,trendTitle:`Visibility over time`,trendComingSoon:e=>`Your first trend lands ${e}`,trendComingSoonUpsell:`Your first trend lands with a subscription`,trendCount:e=>`${e} scans`,trendOverall:`Overall`,metaNext:e=>`next scan ${e}`,metaNextUpsell:`weekly scans with a subscription`,metaCompetitors:e=>`${e} competitors`,metaQuestions:e=>`${e} questions`,rankingTitle:`Ranking - share of voice`,rankingSubtitle:`vs declared competitors`,sourcesTitle:`Most cited sources`,sourcesSubtitle:`top domains`,sourcesPageSubtitle:`The sites AI leans on when it talks about your market.`,sourcesCitations:{subtitle:`The actual pages the models cited. Expand a domain.`,viaGoogle:`via Google`,viaGoogleCount:e=>`${e} pages via Google`,homeLabel:`Homepage`},enginesTitle:`By model`,enginesViewDetail:`Breakdown`,enginesViewTrend:`Trend`,insufficient:`Not enough data yet`,generating:`First results in a few minutes`,live:{preparing:`Preparing your analysisâ¦`,preparingStuck:`This is taking longer than expected. You can relaunch the analysis.`,scanningTitle:`Querying the AI modelsâ¦`,collectingCounter:(e,t)=>`${e} / ${t} responses`,analyzingCounter:(e,t)=>`${e} / ${t} responses analyzed`,enginesTitle:`Models queried`,engineResponses:(e,t)=>`${e}/${t} responses`,engineDone:`done`,pending:`Computingâ¦`,failedTitle:`The analysis hit a snag`,failedBody:`We couldnât finish the scan. Please relaunch it.`,retry:`Relaunch analysis`,retrying:`Relaunchingâ¦`},checklistTitle:`Finish setting up`,checklistBrand:`Brand created`,checklistCompetitors:`Confirm your competitors`,checklistQuestions:`Review your questions`,you:`you`,perimeterChangedLabel:(e,t)=>
20e>0&&t>0?`+${e} / -${t} questions`:t>0?t===1?`1 question removed`:`${t} questions removed`:e===1?`1 question added`:`${e} questions added`,paywall:{bannerKicker:`Free preview`,bannerTitle:`Unlock the full tracking`,bannerBody:`Free shows a preview. The founder plan unlocks the detail and a weekly re-scan.`,bannerCta:`Subscribe at the founder rate · $49/month for life`,bannerLocking:`Redirectingâ¦`,bannerPriceOld:`$59`,bannerNoCard:`No commitment`,bannerDoneTitle:`You are in.`,bannerDoneBody:`Founder rate $49/month for life, you are among the first founder subscribers.`,lockedMore:e=>`+${e} locked`,lockedReserved:`Reserved for the founder plan`,lockedPrompts:`All your questions and their status per engine`,lockedAdvice:`All your advice, step by step`,lockedCompetitors:`Your per-engine visibility breakdown`,lockedSources:`All the sources that cite you`,lockedThemes:`The full praise and criticism themes`,lockedTrend:`Reputation trend, week over week`,lockedDetail:`Per-question reputation detail`},competitorsChartTitle:`Visibility - you vs competitors`,competitorsPageSubtitle:`Who else AI mentions on your topics, and where you stand.`,competitorsChartSubtitle:`Mention rate on the same question base, week over week.`,competitorsChartEmpty:`Declare competitors in settings to compare your visibility.`,competitorsChartComingSoon:`The comparison fills in with each weekly scan.`,competitorsChartShowRemoved:`Show removed`,competitorsChartHideRemoved:`Hide removed`,competitorsChartRemovedBadge:`removed`,promptsTable:{title:`Questions`,subtitle:e=>`Your ${e} questions, model by model.`,asOf:e=>`Data from ${e}`,pending:`First measurement in progress.`,edit:`Edit in settings`,empty:`No questions yet.`,emptyAdd:`Add questions`,colPrompt:`Question`,colStatus:`Status`,colEngines:`Models`,colVerdict:`Verdict`,colLastMention:`Last mention`,statusActive:`Active`,statusPaused:`Paused`,filterStatusAll:`All`,filterEngineLabel:`Mentioned by`,filterEngineAll:`All`,noMatch:`No questions match this filter.`,engineCited:`mentioned`,engineAbsent:`absent`,expand:`See detail`,citesInstead:`cites instead`,alsoCites:`also cites`,noBrandCited:`no brand cited`,viewConversation:`View full answer`,answerRun:e=>`Answer ${e}`,answerUnavailable:`No answer available for this model.`,positionTooltip:e=>`Order of appearance in this engine's best answer: your brand is the ${e} one cited there, not a ranking.`},reputation:{sectionTitle:`Brand reputation`,sectionSubtitle:`How AI models perceive your brand, based on branded responses.`,sentimentTitle:`Overall perception`,sourcesTitle:`Reputation sources`,sourcesSubtitle:`domains cited in branded responses`,insufficient:`Not enough responses yet to measure reputation.`,responseCount:e=>`${e} ${e===1?`response`:`responses`}`,separator:`·`,viewAll:`View reputation`,labels:{positive:`positive`,neutral:`neutral`,negative:`negative`,mixed:`mixed`},hero:{quoteLabel:`Representative quote`,netLabel:e=>`${e>=0?`+`:``}${e} net`,confidence:e=>`Small sample (${e} responses) - the trend firms up over several weeks.`,verdict:{positive:`Mostly positive`,neutral:`Mostly neutral`,negative:`Mostly negative`,mixed:`Mixed perception`}},byEngineTitle:`Perception by model`,trendTitle:`Reputation over time`,trendSubtitle:`Reputation index (0-100) per model, one point per scan.`,themes:{title:`What stands out`,praise:`Praised`,criticism:`Criticized`,empty:`No clear trend yet.`},table:{title:`Detail by question`,asOf:e=>`Data from ${e}`,colQuestion:`Question`,colGlobal:`Global`,expand:`See detail`,noData:`No reputation data available yet.`,sentimentAbsent:`not measured`,globalMixed:`mixed`}},advice:{sectionTitle:`Advice`,sectionSubtitle:`Concrete actions to gain visibility, drawn from your own scan data.`,insufficient:`Not enough data yet for reliable advice. Check back after a few scans.`,stepsTitle:`Steps`,meterLabel:(e,t)=>`${{high:`High`,medium:`Medium`,low:`Low`}[e]} impact, ${{high:`high`,medium:`medium`,low:`low`}[t]} effort`,actions:{done:`Mark as done`,discard:`Dismiss`,reopen:`Reopen`},archivedTitle:`Done & dismissed`,statusDone:`Done`,statusDiscarded:`Dismissed`,cards:{weak_engine:{title:e=>`Strengthen your presence on ${e}`,why:(e,t,n)=>`${e} only cites you in ${t}% of answers, versus ${n}% on average across the other models.`,steps:[`Identify the content formats this model favors (comparisons, lists, docs).`,`Publish or refresh pages on your key questions in those formats.`,`Get cited on the sources this model tends to quote.`]},lost_questions:{title:`You lost ground`,why:e=>`You dropped out of the answers on ${e} ${e>1?`questions`:`question`} since the previous scan.`,questionsLabel:`Questions affected`,steps:[`Review the answers where you dropped out and what changed.`,`Refresh and strengthen the pages tied to these questions.`,`Track these questions next scan to confirm recovery.`]},competitor_ahead:{title:e=>`${e} is capturing your questions`,why:(e,t,n)=>`${e} appears in ${t}% of answers on your questions, versus ${n}% for you.`,steps:[`Read the answers where this competitor is cited and you aren't.`,`Identify the topics and sources driving their visibility.`,`Create stronger content on those topics to close the gap.`]},sources_to_work:{title:`Get cited by the right sources`,why:`AI models often cite these domains to answer, but not yours.`,domainsLabel:`Sources to target`,steps:[`Prioritize the highest-cited domains your brand is absent from.`,`Pursue a mention, guest post, or listing on each.`,`Re-check after publication to confirm you appear.`]},recurring_criticism:{title:`One criticism keeps coming up`,why:e=>`"${e}" shows up across several AI answers about you.`,steps:[`Confirm whether the criticism is factual or a misperception.`,`Address it clearly on your site and public pages.`,`Encourage independent reviews that tell the other side.`]},strength_to_capitalize:{title:`Capitalize on what is praised`,why:e=>`"${e}" comes up across several positive AI answers.`,steps:[`Feature this strength prominently on your site and pitches.`,`Publish proof: case studies, testimonials, examples.`,`Reinforce it in the sources AI models cite.`]}
20,low_global_score:{title:`Your overall visibility is low`,why:e=>`You only appear in ${e}% of AI answers on your questions.`,steps:[`Publish clear pages (FAQ, comparisons) on your key topics.`,`Get cited on the sources AI models already trust.`,`Re-run the scan after a few weeks to track progress.`]}}}},onboarding:{back:`Back`,next:`Next`,welcomeKicker:`Welcome to Pythie`,claimTitle:e=>`We already analyzed ${e}.`,claimMultiTitle:`We already analyzed your brands.`,claimBody:`Your AI visibility score is ready. Let us make it yours and set up weekly tracking.`,claimContinue:`Continue`,claimNotYours:`Not your brand? Start fresh`,createTitle:`Find your brand in AI answers.`,createTitleLead:`Find your brand in `,createTitleGlint:`AI answers`,createTitleTail:`.`,createBody:`Enter your domain. We will ask ChatGPT, Gemini and Perplexity about your space and show you where you stand.`,domainPlaceholder:`yourbrand.com`,createCta:`Analyze my brand`,createFootnote:`Free - no card - about 2 minutes`,discoveringKicker:`Analysis in progress`,discoveringTitle:`Analyzing your site`,discoveringSteps:[`Reading your site`,`Spotting what you do`,`Identifying competitors`,`Preparing your questions`],discoveringSub:`A few seconds: we spot what you do and who you compete with to pre-fill your settings.`,discoveringStuck:`This is taking longer than expected. You can relaunch your site analysis.`,discoveringRetry:`Relaunch analysis`,discoveringRetrying:`Relaunchingâ¦`,adjustIntroTitle:`Let us set up your tracking`,adjustIntroSub:`Three quick tweaks and it is yours.`,adjustCta:`Start my tracking`,step1Kicker:`Step 1 of 3 - Identity`,brandStepTitle:`Confirm who you are`,brandStepSub:`So we ask the AI engines about the right company.`,nameLabel:`Official name`,descriptorLabel:`What you do`,domainLabel:`Domain`,localToggleLabel:`My business is local`,cityLabel:`City`,cityPlaceholder:`Your city`,citySearching:`Searchingâ¦`,cityEmpty:`No city found`,cityRateLimited:`City search is busy, retry in a moment.`,cityHint:`Used to target the questions to that city (e.g. best Japanese restaurant in Paris).`,identitySaving:`Savingâ¦`,step2Kicker:`Step 2 of 3 - Competitors`,competitorsStepTitle:`Your competitors`,competitorsStepSub:`We spotted these during the analysis. Adjust the list: it frames your ranking.`,step3Kicker:`Step 3 of 3 - Questions`,questionsTitle:`The questions we will track`,questionsSub:`Every week we ask ChatGPT, Gemini and Perplexity these. Toggle off any that do not fit.`,enterDashboard:`Enter dashboard`,footerCaption:`Tracked weekly on`,footerReassure:`Your settings stay editable anytime.`,paywallKicker:`Your tracking is ready`,paywallTitleMid:`, tracked `,paywallTitleGlint:`every week`,paywallTitleTail:`.`,paywallBody:`You have one analysis today. On the free plan it stays frozen: a single snapshot. The founder plan brings it back to life every week, and unlocks reputation, advice, the full ranking and all your sources.`,paywallCta:`Subscribe at the founder rate · $49/month for life`,paywallLocking:`Redirectingâ¦`,paywallPriceOld:`$59`,paywallNoCard:`No commitment`,paywallContinueFree:`Continue on free`,paywallAntiProfound:`No sales call. You lock your rate yourself.`,paywallDoneKicker:`You are in`,paywallDoneTitle:`Your founder rate is locked.`,paywallDoneBody:`$49/month for life, you are among the first founder subscribers.`,paywallDoneCta:`Enter dashboard`}}},vj=j(`/report/$scanId`)({loader:({context:e,params:t})=>pj(e.queryClient,t.scanId,`en`),head:SO,notFoundComponent:M(()=>N(()=>import(`./report._scanId-HOdTCXV5.js`),[]),`notFoundComponent`),pendingComponent:yj,component:M(()=>N(()=>import(`./report._scanId-DGv1tDNC.js`),__vite__mapDeps([44,1])),`component`)});function yj(){return(0,B.jsx)(s,{value:`en`,children:(0,B.jsx)(_O,{children:(0,B.jsx)(gO,{label:_j.en.home.loading})})})}var bj=j(`/news/$slug`)({loader:({params:e})=>{if(Zt(`news`,`en`,e.slug)===null)throw we()},head:uO(`news`,`en`),notFoundComponent:M(()=>N(()=>import(`./news._slug-Cxaj-iIv.js`),__vite__mapDeps([45,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`notFoundComponent`),component:M(()=>N(()=>import(`./news._slug-DkIaab5-.js`),__vite__mapDeps([46,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`component`)}),xj=j(`/blog/$slug`)({loader:({params:e})=>
20{if(Zt(`blog`,`en`,e.slug)===null)throw we()},head:uO(`blog`,`en`),notFoundComponent:M(()=>N(()=>import(`./blog._slug-JaE6DZf4.js`),__vite__mapDeps([47,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`notFoundComponent`),component:M(()=>N(()=>import(`./blog._slug-B4f8UXFh.js`),__vite__mapDeps([48,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`component`)}),Sj=j(`/alternatives/$slug`)({loader:({params:e})=>{if(Zt(`alternatives`,`en`,e.slug)===null)throw we()},head:uO(`alternatives`,`en`),notFoundComponent:M(()=>N(()=>import(`./alternatives._slug-S6dffi2E.js`),__vite__mapDeps([49,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`notFoundComponent`),component:M(()=>N(()=>import(`./alternatives._slug-B05o_2_y.js`),__vite__mapDeps([50,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`component`)}),Cj=()=>N(()=>import(`./fr.index-DMh7Rzn2.js`),__vite__mapDeps([51,26,1,19,27,5,6,7,8,9,28,10,11,12,13,21,29,14,30,31,32,33,34])),wj=Jt.fr.seoMeta,Tj=j(`/fr/`)({head:()=>({meta:[{title:wj.title},{name:`description`,content:wj.description},...Kt(`fr`,wj)],links:[...Pe,{rel:`canonical`,href:wj.canonical},...zt()],scripts:[{src:`https://challenges.cloudflare.com/turnstile/v0/api.js`,async:!0,defer:!0},{type:`application/ld+json`,children:Ft(Jt.fr.faq.items)},{type:`application/ld+json`,children:Ht(`fr`)}],styles:[Me]}),component:M(Cj,`component`)}),Ej=j(`/fr/terms`)({head:()=>({meta:[{title:`Conditions générales dâutilisation | Pythie`},WD],links:Pe,styles:[Me]}),component:M(()=>N(()=>import(`./fr.terms-DnjBtQxT.js`),__vite__mapDeps([52,1])),`component`)}),Dj=j(`/fr/privacy`)({head:()=>({meta:[{title:`Politique de confidentialité | Pythie`},WD],links:Pe,styles:[Me]}),component:M(()=>N(()=>import(`./fr.privacy-M8yg4Tjt.js`),__vite__mapDeps([53,1])),`component`)}),Oj=()=>N(()=>import(`./fr.login-CG0tcpYe.js`),__vite__mapDeps([54,1,4,5,6,7,8,9,10,11,12,13,14])),kj=qD.fr,Aj=j(`/fr/login`)({head:()=>({meta:[{title:kj.metaTitle},{name:`description`,content:kj.metaDescription},{name:`robots`,content:`noindex`}]}),component:M(Oj,`component`)}),jj=j(`/fr/legal`)({head:()=>({meta:[{title:`Mentions légales | Pythie`},WD],links:Pe,styles:[Me]}),component:M(()=>N(()=>import(`./fr.legal-__tcPpp4.js`),__vite__mapDeps([55,1])),`component`)}),Mj=j(`/fr/app`)({beforeLoad:async({context:e,location:t})=>{let n=await $D(e.queryClient,`fr`),r=nO((await e.queryClient.ensureQueryData(Td(qe.brands.onboarding.getOnboardingState,{}))).status,`fr`,t.pathname);if(r!==null)throw De({to:r});return{user:n}},component:M(()=>N(()=>import(`./fr.app-BSUF3hOn.js`),__vite__mapDeps([56,1,18,19,5,6,7,8,9,10,11,12,13,20,21,14,22,23,24])),`component`)}),Nj=j(`/app/`)({component:M(()=>N(()=>import(`./app.index-1t9oPbX_.js`),__vite__mapDeps([57,58,1,19,27,5,12,13,6,59,9,7,8,10,20,60,61,62,63])),`component`)}),Pj=j(`/app/sources`)({component:M(()=>N(()=>import(`./app.sources-CJC9IneI.js`),__vite__mapDeps([64,65,1,19,5,6,20,66,67,68,10,61])),`component`)}),Fj=j(`/app/settings`)({component:M(()=>N(()=>import(`./app.settings-Dvrb0PRH.js`),__vite__mapDeps([69,70,1,19,71,5,13,6,24,72,10,20,73,74,29,14])),`component`)}),Ij=j(`/app/reputation`)({component:M(()=>N(()=>import(`./app.reputation-gOOyUE-H.js`),__vite__mapDeps([75,76,1,19,5,6,59,9,77,10,20,22,23,13,24,62,66,67,68,61])),`component`)}),Lj=j(`/app/prompts`)({component:M(()=>N(()=>import(`./app.prompts-BeK0y5_W.js`),__vite__mapDeps([78,79,1,19,5,13,6,12,23,24,72,7,8,9,77,10,20,22,66,67,68,61])),`component`)}),Rj=j(`/app/onboarding`)({component:M(()=>N(()=>import(`./app.onboarding-BjDuT8_g.js`),__vite__mapDeps([80,81,1,19,5,71,13,6,24,72,10,74,29,14,67,68,33,34,63])),`component`)}),zj=j(`/app/competitors`)({component:M(()=>N(()=>import(`./app.competitors-BftTZH2t.js`),__vite__mapDeps([82,83,1,19,5,59,6,9,20,60,61,66,67,68,10])),`component`)}),Bj=j(`/app/advice`)({component:M(()=>N(()=>import(`./app.advice-eo6wcqKo.js`),__vite__mapDeps([84,85,1,19,71,5,13,6,24,72,10,20,66,67,68,61])),`component`)}),Vj=j(`/app/account`)({component:M(()=>N(()=>import(`./app.account-DLZGn-hn.js`),__vite__mapDeps([86,87,1,19,68,12,13,6,10,20,21,73])),`component`)}),Hj=j(`/fr/trackers/`)({head:lO(`trackers`,`fr`),component:M(()=>N(()=>import(`./fr.trackers.index-B1rDyzVh.js`),__vite__mapDeps([88,1,36,37,7,6,8,9,11,5,12,13,30,31,32])),`component`)}),Uj=j(`/fr/news/`)({head:lO(`news`,`fr`),component:M(()=>N(()=>import(`./fr.news.index-BraX2ITT.js`),__vite__mapDeps([89,1,36,37,7,6,8,9,11,5,12,13,30,31,32])),`component`)}),Wj=j(`/fr/blog/`)({head:lO(`blog`,`fr`),component:M(()=>N(()=>import(`./fr.blog.index-CvLpBaDG.js`),__vite__mapDeps([90,1,36,37,7,6,8,9,11,5,12,13,30,31,32])),`component`)}),Gj=j(`/fr/alternatives/`)({head:lO(`alternatives`,`fr`),component:M(()=>N(()=>import(`./fr.alternatives.index-DAapuLGH.js`),__vite__mapDeps([91,1,36,37,7,6,8,9,11,5,12,13,30,31,32])),`component`)}),Kj=j(`/fr/trackers/$slug`)({loader:({params:e})=>
20{if(Zt(`trackers`,`fr`,e.slug)===null)throw we()},head:uO(`trackers`,`fr`),notFoundComponent:M(()=>N(()=>import(`./fr.trackers._slug-BhIa-JUg.js`),__vite__mapDeps([92,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`notFoundComponent`),component:M(()=>N(()=>import(`./fr.trackers._slug-DBgucEYn.js`),__vite__mapDeps([93,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`component`)}),qj=j(`/fr/report/$scanId`)({loader:({context:e,params:t})=>pj(e.queryClient,t.scanId,`fr`),head:SO,notFoundComponent:M(()=>N(()=>import(`./fr.report._scanId-HOdTCXV5.js`),[]),`notFoundComponent`),pendingComponent:Jj,component:M(()=>N(()=>import(`./fr.report._scanId-D6NFcQCc.js`),__vite__mapDeps([94,1])),`component`)});function Jj(){return(0,B.jsx)(s,{value:`fr`,children:(0,B.jsx)(_O,{children:(0,B.jsx)(gO,{label:_j.fr.home.loading})})})}var Yj=j(`/fr/news/$slug`)({loader:({params:e})=>{if(Zt(`news`,`fr`,e.slug)===null)throw we()},head:uO(`news`,`fr`),notFoundComponent:M(()=>N(()=>import(`./fr.news._slug-Cxaj-iIv.js`),__vite__mapDeps([95,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`notFoundComponent`),component:M(()=>N(()=>import(`./fr.news._slug-D-vzKekw.js`),__vite__mapDeps([96,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`component`)}),Xj=j(`/fr/blog/$slug`)({loader:({params:e})=>{if(Zt(`blog`,`fr`,e.slug)===null)throw we()},head:uO(`blog`,`fr`),notFoundComponent:M(()=>N(()=>import(`./fr.blog._slug-JaE6DZf4.js`),__vite__mapDeps([97,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`notFoundComponent`),component:M(()=>N(()=>import(`./fr.blog._slug-QaBZbuK5.js`),__vite__mapDeps([98,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`component`)}),Zj=j(`/fr/alternatives/$slug`)({loader:({params:e})=>{if(Zt(`alternatives`,`fr`,e.slug)===null)throw we()},head:uO(`alternatives`,`fr`),notFoundComponent:M(()=>N(()=>import(`./fr.alternatives._slug-S6dffi2E.js`),__vite__mapDeps([99,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`notFoundComponent`),component:M(()=>N(()=>import(`./fr.alternatives._slug-Cq18mi6q.js`),__vite__mapDeps([100,1,42,7,6,8,9,10,37,11,5,12,13,30,31,32])),`component`)}),Qj=j(`/fr/app/`)({component:M(()=>N(()=>import(`./fr.app.index-1t9oPbX_.js`),__vite__mapDeps([101,58,1,19,27,5,12,13,6,59,9,7,8,10,20,60,61,62,63])),`component`)}),$j=j(`/fr/app/sources`)({component:M(()=>N(()=>import(`./fr.app.sources-CJC9IneI.js`),__vite__mapDeps([102,65,1,19,5,6,20,66,67,68,10,61])),`component`)}),eM=j(`/fr/app/settings`)({component:M(()=>N(()=>import(`./fr.app.settings-Dvrb0PRH.js`),__vite__mapDeps([103,70,1,19,71,5,13,6,24,72,10,20,73,74,29,14])),`component`)}),tM=j(`/fr/app/reputation`)({component:M(()=>N(()=>import(`./fr.app.reputation-gOOyUE-H.js`),__vite__mapDeps([104,76,1,19,5,6,59,9,77,10,20,22,23,13,24,62,66,67,68,61])),`component`)}),nM=j(`/fr/app/prompts`)({component:M(()=>N(()=>import(`./fr.app.prompts-BeK0y5_W.js`),__vite__mapDeps([105,79,1,19,5,13,6,12,23,24,72,7,8,9,77,10,20,22,66,67,68,61])),`component`)}),rM=j(`/fr/app/onboarding`)({component:M(()=>N(()=>import(`./fr.app.onboarding-BjDuT8_g.js`),__vite__mapDeps([106,81,1,19,5,71,13,6,24,72,10,74,29,14,67,68,33,34,63])),`component`)}),iM=j(`/fr/app/competitors`)({component:M(()=>N(()=>import(`./fr.app.competitors-BftTZH2t.js`),__vite__mapDeps([107,83,1,19,5,59,6,9,20,60,61,66,67,68,10])),`component`)}),aM=j(`/fr/app/advice`)({component:M(()=>N(()=>import(`./fr.app.advice-eo6wcqKo.js`),__vite__mapDeps([108,85,1,19,71,5,13,6,24,72,10,20,66,67,68,61])),`component`)}),oM=j(`/fr/app/account`)({component:M(()=>N(()=>import(`./fr.app.account-DLZGn-hn.js`),__vite__mapDeps([109,87,1,19,68,12,13,6,10,20,21,73])),`component`)}),sM=GD.update({id:`/terms`,path:`/terms`,getParentRoute:()=>LD}),cM=KD.update({id:`/privacy`,path:`/privacy`,getParentRoute:()=>LD}),lM=XD.update({id:`/login`,path:`/login`,getParentRoute:()=>LD}),uM=ZD.update({id:`/legal`,path:`/legal`,getParentRoute:()=>LD}),dM=QD.update({id:`/fr`,path:`/fr`,getParentRoute:()=>LD}),fM=rO.update({id:`/app`,path:`/app`,getParentRoute:()=>LD}),pM=oO.update({id:`/`,path:`/`,getParentRoute:()=>LD}),mM=dO.update({id:`/trackers/`,path:`/trackers/`,getParentRoute:()=>LD}),hM=fO.update({id:`/news/`,path:`/news/`,getParentRoute:()=>LD}),gM=pO.update({id:`/blog/`,path:`/blog/`,getParentRoute:()=>LD}),_M=mO.update({id:`/alternatives/`,path:`/alternatives/`,getParentRoute:()=>LD}),vM=hO.update({id:`/trackers/$slug`,path:`/trackers/$slug`,getParentRoute:()=>LD}),yM=vj.update({id:`/report/$scanId`,path:`/report/$scanId`,getParentRoute:()=>LD}),bM=bj.update({id:`/news/$slug`,path:`/news/$slug`,getParentRoute:()=>LD}),xM=xj.update({id:`/blog/$slug`,path:`/blog/$slug`,getParentRoute:()=>LD}),SM=Sj.update({id:`/alternatives/$slug`,path:`/alternatives/$slug`,getParentRoute:()=>LD}),CM=Tj.update({id:`/`,path:`/`,getParentRoute:()=>dM}),wM=Ej.update({id:`/terms`,path:`/terms`,getParentRoute:()=>dM}),TM=Dj.update({id:`/privacy`,path:`/privacy`,getParentRoute:()=>dM}),EM=Aj.update({id:`/login`,path:`/login`,getParentRoute:()=>dM}),DM=jj.update({id:`/legal`,path:`/legal`,getParentRoute:()=>dM}),OM=Mj.update({id:`/app`,path:`/app`,getParentRoute:()=>dM}),kM=Nj.update({id:`/`,path:`/`,getParentRoute:()=>fM}),AM=Pj.update({id:`/sources`,path:`/sources`,getParentRoute:()=>fM}),jM=Fj.update({id:`/settings`,path:`/settings`,getParentRoute:()=>fM}),MM=Ij.update({id:`/reputation`,path:`/reputation`,getParentRoute:()=>fM}),NM=Lj.update({id:`/prompts`,path:`/prompts`,getParentRoute:()=>fM}),PM=Rj.update({id:`/onboarding`,path:`/onboarding`,getParentRoute:()=>fM}),FM=zj.update({id:`/competitors`,path:`/competitors`,getParentRoute:()=>fM}),IM=Bj.update({id:`/advice`,path:`/advice`,getParentRoute:()=>fM}),LM=Vj.update({id:`/account`,path:`/account`,getParentRoute:()=>fM}),RM=Hj.update({id:`/trackers/`,path:`/trackers/`,getParentRoute:()=>dM}),zM=Uj.update({id:`/news/`,path:`/news/`,getParentRoute:()=>dM}),BM=Wj.update({id:`/blog/`,path:`/blog/`,getParentRoute:()=>dM}),VM=Gj.update({id:`/alternatives/`,path:`/alternatives/`,getParentRoute:()=>dM}),HM=Kj.update({id:`/trackers/$slug`,path:`/trackers/$slug`,getParentRoute:()=>dM}),UM=qj.update({id:`/report/$scanId`,path:`/report/$scanId`,getParentRoute:()=>dM}),WM=Yj.update({id:`/news/$slug`,path:`/news/$slug`,getParentRoute:()=>dM}),GM=Xj.update({id:`/blog/$slug`,path:`/blog/$slug`,getParentRoute:()=>dM}),KM=Zj.update({id:`/alternatives/$slug`,path:`/alternatives/$slug`,getParentRoute:()=>dM}),qM=Qj.update({id:`/`,path:`/`,getParentRoute:()=>OM}),JM=$j.update({id:`/sources`,path:`/sources`,getParentRoute:()=>OM}),YM=eM.update({id:`/settings`,path:`/settings`,getParentRoute:()=>OM}),XM=tM.update({id:`/reputation`,path:`/reputation`,getParentRoute:()=>OM}),ZM=nM.update({id:`/prompts`,path:`/prompts`,getParentRoute:()=>OM}),QM=rM.update({id:`/onboarding`,path:`/onboarding`,getParentRoute:()=>OM}),$M=iM.update({id:`/competitors`,path:`/competitors`,getParentRoute:()=>OM}),eN=aM.update({id:`/advice`,path:`/advice`,getParentRoute:()=>OM}),tN=oM.update({id:`/account`,path:`/account`,getParentRoute:()=>OM}),nN={AppAccountRoute:LM,AppAdviceRoute:IM,AppCompetitorsRoute:FM,AppOnboardingRoute:PM,AppPromptsRoute:NM,AppReputationRoute:MM,AppSettingsRoute:jM,AppSourcesRoute:AM,AppIndexRoute:kM},rN=fM._addFileChildren(nN),iN={FrAppAccountRoute:tN,FrAppAdviceRoute:eN,FrAppCompetitorsRoute:$M,FrAppOnboardingRoute:QM,FrAppPromptsRoute:Z
20M,FrAppReputationRoute:XM,FrAppSettingsRoute:YM,FrAppSourcesRoute:JM,FrAppIndexRoute:qM},aN={FrAppRoute:OM._addFileChildren(iN),FrLegalRoute:DM,FrLoginRoute:EM,FrPrivacyRoute:TM,FrTermsRoute:wM,FrIndexRoute:CM,FrAlternativesSlugRoute:KM,FrBlogSlugRoute:GM,FrNewsSlugRoute:WM,FrReportScanIdRoute:UM,FrTrackersSlugRoute:HM,FrAlternativesIndexRoute:VM,FrBlogIndexRoute:BM,FrNewsIndexRoute:zM,FrTrackersIndexRoute:RM},oN={IndexRoute:pM,AppRoute:rN,FrRoute:dM._addFileChildren(aN),LegalRoute:uM,LoginRoute:lM,PrivacyRoute:cM,TermsRoute:sM,AlternativesSlugRoute:SM,BlogSlugRoute:xM,NewsSlugRoute:bM,ReportScanIdRoute:yM,TrackersSlugRoute:vM,AlternativesIndexRoute:_M,BlogIndexRoute:gM,NewsIndexRoute:hM,TrackersIndexRoute:mM},sN=LD._addFileChildren(oN);function cN(){let e=new wd(`https://grateful-toucan-71.eu-west-1.convex.cloud`,{expectAuth:!1,unsavedChangesWarning:!1}),t=new Hu({defaultOptions:{queries:{queryKeyHashFn:e.hashFn(),queryFn:e.queryFn(),gcTime:5e3}}});return e.connect(t),sd(el({routeTree:sN,defaultPreload:`intent`,context:{queryClient:t,convexQueryClient:e},scrollRestoration:!0,defaultPreloadStaleTime:0,defaultErrorComponent:e=>(0,B.jsx)(`p`,{children:e.error.stack}),defaultNotFoundComponent:Og}),t)}async function lN(){let e=await cN(),t;if(Ol){let n=await Ol.getOptions();n.serializationAdapters=n.serializationAdapters??[],window.__TSS_START_OPTIONS__=n,t=n.serializationAdapters,e.options.defaultSsr=n.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(lc),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await hc(e),e}var uN=lN;async function dN(){let e=await uN();return window.$_TSR?.h(),e}var fN;function pN(){return fN||=dN(),(0,B.jsx)(_c,{promise:fN,children:e=>(0,B.jsx)(rl,{router:e})})}var mN=an();(0,z.startTransition)(()=>{(0,mN.hydrateRoot)(document,(0,B.jsx)(z.StrictMode,{children:(0,B.jsx)(pN,{})}))});export{ZO as $,rA as A,bk as B,MA as C,hh as Ct,nA as D,Dd as Dt,_A as E,Mf as Et,Xk as F,hk as G,yk as H,Yk as I,LO as J,IO as K,Jk as L,eA as M,Qk as N,iA as O,il as Ot,$k as P,HO as Q,Nk as R,NA as S,gh as St,vA as T,Zm as Tt,_k as U,xk as V,vk as W,zO as X,BO as Y,WO as Z,UA as _,kD as _t,Kj as a,vO as at,HA as b,gT as bt,bj as c,eO as ct,mj as d,HD as dt,NO as et,hj as f,UD as ft,zA as g,jD as gt,LA as h,OD as ht,qj as i,EO as it,Zk as j,tA as k,Yc as kt,vj as l,tO as lt,PA as m,ED as mt,Xj as n,PO as nt,Sj as o,gO as ot,GA as p,VD as pt,FO as q,Yj as r,DO as rt,xj as s,hO as st,Zj as t,MO as tt,_j as u,qD as ut,VA as v,AD as vt,gA as w,ph as wt,FA as x,mh as xt,BA as y,wD as yt,gk as z};
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.