1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="019e25c4-8df3-7102-90e1-46c93649ef3a")}catch(e){}}();const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pricing-CA_wRfkO.js","assets/useOpenInteractionType-B2XD1In9.js","assets/chunk-zsgVPwQN.js","assets/dist-BZV-Och4.js","assets/clsx-Cir5-jBH.js","assets/jsx-runtime-OcJTbuiu.js","assets/with-selector-Cr_-GQRA.js","assets/compiler-runtime-UKlmDj_6.js","assets/getPseudoElementBounds-x1M4cO-_.js","assets/auth-client-CuKm_2Gr.js","assets/zod-DCsAUAGB.js","assets/schemas-DZSEGuDb.js","assets/useMutation-eAsvuoTk.js","assets/useBaseQuery-DRT1dZyU.js","assets/createServerFn-C4WafpHD.js","assets/tiny-invariant-CYorV-9f.js","assets/useNavigate-DT5OiVI-.js","assets/circle-question-mark-hJkvJ5HN.js","assets/clock-BdktCkRR.js","assets/loader-circle-B9OiPhhk.js","assets/pricing-blocks-CY3CO7to.js","assets/tabs-CVZpnZ5L.js","assets/dist-is9325lA.js","assets/dist-BTRqQZ-_.js","assets/dist-Drug5SYU.js","assets/dist-COo__jjD.js","assets/dist-DMtXA5lE.js","assets/dist-XXApJyu-.js","assets/dist-kp2d9Bc2.js","assets/separator-DG38nWfM.js","assets/link--6MTLE9I.js","assets/path-DZPJGtpi.js","assets/badge-BQzZue0N.js","assets/card-6jDJ9Css.js","assets/constants-IBbchKxC.js","assets/checkout-success-wdUsltL7.js","assets/app-7wrtXHsd.js","assets/jobs-Dr5-L3Fq.js","assets/middlewares-DH_rzekc.js","assets/dropdown-menu-BO8QRgVy.js","assets/chevron-right-CP8XEvdH.js","assets/dialog-Djc5MjiI.js","assets/x-Ck-4jKRU.js","assets/avatar-orJeaYO9.js","assets/progress-B-P0N4kU.js","assets/Match-BfM5JfXu.js","assets/lazyRouteComponent-DwDire7v.js","assets/root-BYpxYxUb.js","assets/useSuspenseQuery-BiN3MwVT.js","assets/copy-Dwexl8j6.js","assets/log-out-C-Z_BH1h.js","assets/pencil-De-RBN5G.js","assets/trash-2-OMITywzH.js","assets/tslib.es6-D-LzVnBy.js","assets/buy-hours-dialog-L3CUZ-ix.js","assets/server-fns-CIEG5vMq.js","assets/input-C9ZgB03C.js","assets/skeleton-Bi3D2585.js","assets/share-links-4YkM6X3i.js","assets/routes-eDMAhITF.js","assets/dist-uTAEQhHs.js","assets/es-BFjX-VeE.js","assets/use-file-upload-Bq1kiOyQ.js","assets/preload-helper-CsoeaaUJ.js","assets/select-Dj6itJN7.js","assets/chevron-down-BIpaMFP_.js","assets/scroll-area-DnchIdrS.js","assets/__vite-browser-external-CWFDOVkf.js","assets/upload-CEVV2hPR.js","assets/supported-languages-CG-NR-qN.js","assets/ai-analysis-BZse1k9I.js","assets/kopia-editor-high-res-uqn9kWAV.js","assets/podcasters-CaRGJmiB.js","assets/student-9FPWZ6K3.js","assets/video-editing-B7i2z_du.js","assets/faq-section-BiYrjvSM.js","assets/accordion-Bt1vIo1g.js","assets/dist-DL_Ojnzw.js","assets/posthog-events-Bf967vWI.js","assets/blog.index-BVZ9G3Cu.js","assets/allPosts-CIS3y7Ao.js","assets/video-creators-Bkhgi9ng.js","assets/wand-sparkles-gYMwHYFD.js","assets/languages-6UiFEXpE.js","assets/search-D2OHrTTI.js","assets/research-DMN4i5E8.js","assets/mic-vocal-MMa2IFGV.js","assets/podcasts-C-Kshen-.js","assets/video-to-text-DJA7ZAzj.js","assets/mp4-to-text-DiFDMMTX.js","assets/mp3-to-text-CQuxO0D8.js","assets/m4a-to-text-B2EOWTg2.js","assets/audio-to-text-5NGAGbuD.js","assets/share._token-D6qtxAYr.js","assets/terms-of-use-JF6qzprt.js","assets/supported-translation-languages-DsytLfqF.js","assets/translation-supported-languages-yES0X15N.js","assets/supported-transcription-languages-D23pE7Hn.js","assets/privacy-policy-C529qfuu.js","assets/wav-to-mp3-hEUGu_nl.js","assets/audio-waveform-CjgoXGPE.js","assets/fixed-converter-page-B81tHlDX.js","assets/comlink-DI6rI-ek.js","assets/video-converter-E5dyNg-L.js","assets/mp4-to-wav-CW1gdZnK.js","assets/mp3-to-wav-BJjMRmzC.js","assets/mov-to-mp3-DWyXgRGG.js","assets/file-audio-BoKMQRmx.js","assets/m4a-to-wav-CM7hVgZi.js","assets/smartphone-BGLHGzUq.js","assets/m4a-to-mp3-B4YvwPAa.js","assets/blog._slug-Ss5wVZ-c.js","assets/chunk-5FQGJX7Z-CN-q4ONG.js","assets/dist-D8o_CBWK.js","assets/sign-up-D3LpP4wz.js","assets/label-vPeMXhSY.js","assets/sign-in-ZzVFiAlV.js","assets/banner-Do-PzLJH.js","assets/reset-password-Gq0w52Zm.js","assets/oauth-consent-DSUFG-74.js","assets/dashboard-D27DubvF.js","assets/chat-WHAOpo4H.js","assets/transcript-chat-BnotTHaZ.js","assets/account-DFITAFOB.js","assets/api-docs.v1-CZFRpxMP.js","assets/files.index-BYcP4ZdK.js","assets/table-DwQykJn6.js","assets/files._fileId-DMUHM6Nu.js","assets/api-keys-Dw76YWr6.js","assets/files._fileId.editor-C2y8vNsr.js","assets/files._fileId-CHFJFAhW.css","assets/files._fileId.chat-Dq-uoax4.js"])))=>i.map(i=>d[i]); 2import{a as e,n as t,o as n,r,t as i}from"./chunk-zsgVPwQN.js";import{n as a,t as o}from"./jsx-runtime-OcJTbuiu.js";import{r as s}from"./with-selector-Cr_-GQRA.js";
vendor: 108,720 bytes, lines 2-9
2import{a as c,c as l,i as u,l as d,n as f,o as p,r as m,s as h,t as g,u as _}from"./Match-BfM5JfXu.js";import{S as v,u as y,v as b}from"./path-DZPJGtpi.js";import{t as x}from"./tiny-invariant-CYorV-9f.js";import{a as S,c as C,f as w,i as T,l as E,n as D,o as O,p as ee,r as te,s as ne,t as re}from"./createServerFn-C4WafpHD.js";import{t as ie}from"./root-BYpxYxUb.js";import{a as ae,i as k,n as A,o as oe,s as se,t as j}from"./link--6MTLE9I.js";import{a as ce,i as M,n as N,o as le,r as ue,t as P}from"./lazyRouteComponent-DwDire7v.js";import{t as de}from"./compiler-runtime-UKlmDj_6.js";import{t as F}from"./preload-helper-CsoeaaUJ.js";import{a as fe,r as pe}from"./auth-client-CuKm_2Gr.js";import{Cn as me,In as he,ln as ge,vt as _e}from"./schemas-DZSEGuDb.js";import{i as ve,t as ye}from"./zod-DCsAUAGB.js";import{A as be,C as xe,D as Se,E as Ce,L as we,M as Te,P as Ee,R as De,S as Oe,T as ke,_ as Ae,b as je,d as Me,f as Ne,g as Pe,h as Fe,j as Ie,k as Le,m as Re,p as ze,t as Be,v as Ve,w as He,x as Ue,y as We,z as Ge}from"./useBaseQuery-DRT1dZyU.js";import{a as Ke,n as qe,o as Je,r as Ye}from"./server-fns-CIEG5vMq.js";import{i as Xe,s as Ze}from"./dist-BZV-Och4.js";import{$t as Qe,An as $e,At as et,Bt as tt,Dn as nt,En as rt,Ht as it,It as at,Kt as ot,N as st,On as ct,Pt as lt,Xt as ut,_ as dt,at as ft,b as pt,bn as mt,c as ht,cn as gt,d as _t,dt as vt,f as yt,fn as bt,gn as xt,hn as St,in as Ct,jt as wt,kn as Tt,kt as Et,l as Dt,m as Ot,mn as kt,mt as At,p as jt,s as Mt,u as Nt,x as Pt}from"./useOpenInteractionType-B2XD1In9.js";import{t as Ft}from"./badge-BQzZue0N.js";import{i as It,m as Lt,o as Rt,r as zt}from"./getPseudoElementBounds-x1M4cO-_.js";import{a as Bt,i as Vt,n as Ht,r as Ut,t as Wt}from"./select-Dj6itJN7.js";import{c as Gt,d as Kt,f as qt,i as Jt,l as Yt,n as Xt,s as Zt,t as Qt,u as $t}from"./dropdown-menu-BO8QRgVy.js";import{t as en}from"./log-out-C-Z_BH1h.js";import{t as tn}from"./x-Ck-4jKRU.js";import{n as nn}from"./pricing-blocks-CY3CO7to.js";import{t as rn}from"./kopia-og-DG6cei8a.js";import{n as an}from"./faq-section-BiYrjvSM.js";import{n as on}from"./share-links-4YkM6X3i.js";import{t as sn}from"./allPosts-CIS3y7Ao.js";import{l as cn,o as ln}from"./jobs-Dr5-L3Fq.js";import{t as un}from"./input-C9ZgB03C.js";var dn=i((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,O());else{var t=n(l);t!==null&&ne(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=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&&E());){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&&ne(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,te=ee.port2;ee.port1.onmessage=D,O=function(){te.postMessage(null)}}else O=function(){_(D,0)};function ne(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,ne(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),fn=i(((e,t)=>{t.exports=dn()})),pn=i((e=>{var t=fn(),n=a(),r=s();function i(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 c(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 l(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 u(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 d(e){if(c(e)!==e)throw Error(i(188))}function f(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return d(a),e;if(o===r)return d(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(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`),T=Symbol.for(`react.suspense_list`),E=Symbol.for(`react.memo`),D=Symbol.for(`react.lazy`),O=Symbol.for(`react.activity`),ee=Symbol.for(`react.memo_cache_sentinel`),te=Symbol.iterator;function ne(e){return typeof e!=`object`||!e?null:(e=te&&e[te]||e[`@@iterator`],typeof e==`function`?e:null)}var re=Symbol.for(`react.client.reference`);function ie(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===re?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 T:return`SuspenseList`;case O: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 E:return t=e.displayName||null,t===null?ie(e.type)||`Memo`:t;case D:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var ae=Array.isArray,k=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},se=[],j=-1;function ce(e){return{current:e}}function M(e){0>j||(e.current=se[j],se[j]=null,j--)}function N(e,t){j++,se[j]=e.current,e.current=t}var le=ce(null),ue=ce(null),P=ce(null),de=ce(null);function F(e,t){switch(N(P,t),N(ue,e),N(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}M(le),N(le,e)}function fe(){M(le),M(ue),M(P)}function pe(e){e.memoizedState!==null&&N(de,e);var t=le.current,n=Ud(t,e.type);t!==n&&(N(ue,e),N(le,n))}function me(e){ue.current===e&&(M(le),M(ue)),de.current===e&&(M(de),$f._currentValue=oe)}var he,ge;function _e(e){if(he===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);he=t&&t[1]||``,ge=-1<e.stack.indexOf(` 3 at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return` 4`+he+e+ge}var ve=!1;function ye(e,t){if(!e||ve)return``;ve=!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{ve=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?_e(n):``}function be(e,t){switch(e.tag){case 26:case 27:case 5:return _e(e.type);case 16:return _e(`Lazy`);case 13:return e.child!==t&&t!==null?_e(`Suspense Fallback`):_e(`Suspense`);case 19:return _e(`SuspenseList`);case 0:case 15:return ye(e.type,!1);case 11:return ye(e.type.render,!1);case 1:return ye(e.type,!0);case 31:return _e(`Activity`);default:return``}}function xe(e){try{var t=``,n=null;do t+=be(e,n),n=e,e=e.return;while(e);return t}catch(e){return` 8Error generating stack: `+e.message+` 9`+e.stack}}var Se=Object.prototype.hasOwnProperty,Ce=t.unstable_scheduleCallback,we=t.unstable_cancelCallback,Te=t.unstable_shouldYield,Ee=t.unstable_requestPaint,De=t.unstable_now,Oe=t.unstable_getCurrentPriorityLevel,ke=t.unstable_ImmediatePriority,Ae=t.unstable_UserBlockingPriority,je=t.unstable_NormalPriority,Me=t.unstable_LowPriority,Ne=t.unstable_IdlePriority,Pe=t.log,Fe=t.unstable_setDisableYieldValue,Ie=null,Le=null;function Re(e){if(typeof Pe==`function`&&Fe(e),Le&&typeof Le.setStrictMode==`function`)try{Le.setStrictMode(Ie,e)}catch{}}var ze=Math.clz32?Math.clz32:He,Be=Math.log,Ve=Math.LN2;function He(e){return e>>>=0,e===0?32:31-(Be(e)/Ve|0)|0}var Ue=256,We=262144,Ge=4194304;function Ke(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 qe(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=Ke(n))):i=Ke(o):i=Ke(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ke(n))):i=Ke(o)):i=Ke(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 Je(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ye(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 Xe(){var e=Ge;return Ge<<=1,!(Ge&62914560)&&(Ge=4194304),e}function Ze(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $e(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-ze(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&&et(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function et(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ze(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function tt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ze(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function nt(e,t){var n=t&-t;return n=n&42?1:rt(n),(n&(e.suspendedLanes|t))===0?n:0}function rt(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 it(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function at(){var e=A.p;return e===0?(e=window.event,e===void 0?32:hp(e.type)):e}function ot(e,t){var n=A.p;try{return A.p=e,t()}finally{A.p=n}}var st=Math.random().toString(36).slice(2),ct=`__reactFiber$`+st,lt=`__reactProps$`+st,ut=`__reactContainer$`+st,dt=`__reactEvents$`+st,ft=`__reactListeners$`+st,pt=`__reactHandles$`+st,mt=`__reactResources$`+st,ht=`__reactMarker$`+st;function gt(e){delete e[ct],delete e[lt],delete e[dt],delete e[ft],delete e[pt]}function _t(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ff(e);e!==null;){if(n=e[ct])return n;e=ff(e)}return t}e=n,n=e.parentNode}return null}function vt(e){if(e=e[ct]||e[ut]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function yt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function bt(e){var t=e[mt];return t||=e[mt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function xt(e){e[ht]=!0}var St=new Set,Ct={};function wt(e,t){Tt(e,t),Tt(e+`Capture`,t)}function Tt(e,t){for(Ct[e]=t,e=0;e<t.length;e++)St.add(t[e])}var Et=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]*$`),Dt={},Ot={};function kt(e){return Se.call(Ot,e)?!0:Se.call(Dt,e)?!1:Et.test(e)?Ot[e]=!0:(Dt[e]=!0,!1)}function At(e,t,n){if(kt(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 jt(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 Mt(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 Nt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Pt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ft(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 It(e){if(!e._valueTracker){var t=Pt(e)?`checked`:`value`;e._valueTracker=Ft(e,t,``+e[t])}}function Lt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Pt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Rt(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 zt=/[\n"\\]/g;function Bt(e){return e.replace(zt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Vt(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=``+Nt(t)):e.value!==``+Nt(t)&&(e.value=``+Nt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ut(e,o,Nt(n)):Ut(e,o,Nt(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=``+Nt(s):e.removeAttribute(`name`)}function Ht(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)){It(e);return}n=n==null?``:``+Nt(n),t=t==null?n:``+Nt(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),It(e)}function Ut(e,t,n){t===`number`&&Rt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Wt(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=``+Nt(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 Gt(e,t,n){if(t!=null&&(t=``+Nt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Nt(n)}function Kt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ae(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Nt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),It(e)}function qt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jt=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 Yt(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||Jt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Xt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(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 a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Yt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Yt(e,o,t[o])}function Zt(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 Qt=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`]]),$t=/^[\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 en(e){return $t.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function tn(){}var nn=null;function rn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var an=null,on=null;function sn(e){var t=vt(e);if(t&&(e=t.stateNode)){var n=e[lt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Vt(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="`+Bt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[lt]||null;if(!a)throw Error(i(90));Vt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Lt(r)}break a;case`textarea`:Gt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Wt(e,!!n.multiple,t,!1)}}}var cn=!1;function ln(e,t,n){if(cn)return e(t,n);cn=!0;try{return e(t)}finally{if(cn=!1,(an!==null||on!==null)&&(yu(),an&&(t=an,e=on,on=an=null,sn(t),e)))for(t=0;t<e.length;t++)sn(e[t])}}function un(e,t){var n=e.stateNode;if(n===null)return null;var r=n[lt]||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(i(231,t,typeof n));return n}var dn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),pn=!1;if(dn)try{var mn={};Object.defineProperty(mn,`passive`,{get:function(){pn=!0}}),window.addEventListener(`test`,mn,mn),window.removeEventListener(`test`,mn,mn)}catch{pn=!1}var hn=null,gn=null,I=null;function L(){if(I)return I;var e,t=gn,n=t.length,r,i=`value`in hn?hn.value:hn.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 I=i.slice(e,1<r?1-r:void 0)}function _n(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 vn(){return!0}function yn(){return!1}function bn(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)?vn:yn,this.isPropagationStopped=yn,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=vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=vn)},persist:function(){},isPersistent:vn}),t}var xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sn=bn(xn),Cn=m({},xn,{view:0,detail:0}),wn=bn(Cn),Tn,En,Dn,On=m({},Cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zn,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!==Dn&&(Dn&&e.type===`mousemove`?(Tn=e.screenX-Dn.screenX,En=e.screenY-Dn.screenY):En=Tn=0,Dn=e),Tn)},movementY:function(e){return`movementY`in e?e.movementY:En}}),kn=bn(On),An=bn(m({},On,{dataTransfer:0})),jn=bn(m({},Cn,{relatedTarget:0})),Mn=bn(m({},xn,{animationName:0,elapsedTime:0,pseudoElement:0})),Nn=bn(m({},xn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Pn=bn(m({},xn,{data:0})),Fn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},In={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Ln={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Rn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ln[e])?!!t[e]:!1}function zn(){return Rn}var Bn=bn(m({},Cn,{key:function(e){if(e.key){var t=Fn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=_n(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?In[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zn,charCode:function(e){return e.type===`keypress`?_n(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?_n(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Vn=bn(m({},On,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Hn=bn(m({},Cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zn})),Un=bn(m({},xn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Wn=bn(m({},On,{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})),Gn=bn(m({},xn,{newState:0,oldState:0})),Kn=[9,13,27,32],qn=dn&&`CompositionEvent`in window,Jn=null;dn&&`documentMode`in document&&(Jn=document.documentMode);var Yn=dn&&`TextEvent`in window&&!Jn,Xn=dn&&(!qn||Jn&&8<Jn&&11>=Jn),Zn=` `,Qn=!1;function $n(e,t){switch(e){case`keyup`:return Kn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function er(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var tr=!1;function nr(e,t){switch(e){case`compositionend`:return er(t);case`keypress`:return t.which===32?(Qn=!0,Zn):null;case`textInput`:return e=t.data,e===Zn&&Qn?null:e;default:return null}}function rr(e,t){if(tr)return e===`compositionend`||!qn&&$n(e,t)?(e=L(),I=gn=hn=null,tr=!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 Xn&&t.locale!==`ko`?null:t.data;default:return null}}var ir={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 ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ir[e.type]:t===`textarea`}function or(e,t,n,r){an?on?on.push(r):on=[r]:an=r,t=Dd(t,`onChange`),0<t.length&&(n=new Sn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var sr=null,cr=null;function lr(e){yd(e,0)}function ur(e){if(Lt(yt(e)))return e}function dr(e,t){if(e===`change`)return t}var fr=!1;if(dn){var pr;if(dn){var mr=`oninput`in document;if(!mr){var hr=document.createElement(`div`);hr.setAttribute(`oninput`,`return;`),mr=typeof hr.oninput==`function`}pr=mr}else pr=!1;fr=pr&&(!document.documentMode||9<document.documentMode)}function gr(){sr&&(sr.detachEvent(`onpropertychange`,_r),cr=sr=null)}function _r(e){if(e.propertyName===`value`&&ur(cr)){var t=[];or(t,cr,e,rn(e)),ln(lr,t)}}function vr(e,t,n){e===`focusin`?(gr(),sr=t,cr=n,sr.attachEvent(`onpropertychange`,_r)):e===`focusout`&&gr()}function yr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return ur(cr)}function br(e,t){if(e===`click`)return ur(t)}function xr(e,t){if(e===`input`||e===`change`)return ur(t)}function R(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Sr=typeof Object.is==`function`?Object.is:R;function Cr(e,t){if(Sr(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(!Se.call(t,i)||!Sr(e[i],t[i]))return!1}return!0}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tr(e,t){var n=wr(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=wr(n)}}function Er(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Er(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rt(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=Rt(e.document)}return t}function Or(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 kr=dn&&`documentMode`in document&&11>=document.documentMode,Ar=null,jr=null,Mr=null,Nr=!1;function Pr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nr||Ar==null||Ar!==Rt(r)||(r=Ar,`selectionStart`in r&&Or(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mr&&Cr(Mr,r)||(Mr=r,r=Dd(jr,`onSelect`),0<r.length&&(t=new Sn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ar)))}function Fr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Ir={animationend:Fr(`Animation`,`AnimationEnd`),animationiteration:Fr(`Animation`,`AnimationIteration`),animationstart:Fr(`Animation`,`AnimationStart`),transitionrun:Fr(`Transition`,`TransitionRun`),transitionstart:Fr(`Transition`,`TransitionStart`),transitioncancel:Fr(`Transition`,`TransitionCancel`),transitionend:Fr(`Transition`,`TransitionEnd`)},Lr={},Rr={};dn&&(Rr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Ir.animationend.animation,delete Ir.animationiteration.animation,delete Ir.animationstart.animation),`TransitionEvent`in window||delete Ir.transitionend.transition);function zr(e){if(Lr[e])return Lr[e];if(!Ir[e])return e;var t=Ir[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rr)return Lr[e]=t[n];return e}var Br=zr(`animationend`),Vr=zr(`animationiteration`),Hr=zr(`animationstart`),Ur=zr(`transitionrun`),Wr=zr(`transitionstart`),z=zr(`transitioncancel`),Gr=zr(`transitionend`),Kr=new Map,qr=`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(` `);qr.push(`scrollEnd`);function Jr(e,t){Kr.set(e,t),wt(t,[e])}var Yr=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)},Xr=[],Zr=0,Qr=0;function $r(){for(var e=Zr,t=Qr=Zr=0;t<e;){var n=Xr[t];Xr[t++]=null;var r=Xr[t];Xr[t++]=null;var i=Xr[t];Xr[t++]=null;var a=Xr[t];if(Xr[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&&ri(n,i,a)}}function ei(e,t,n,r){Xr[Zr++]=e,Xr[Zr++]=t,Xr[Zr++]=n,Xr[Zr++]=r,Qr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ti(e,t,n,r){return ei(e,t,n,r),ii(e)}function ni(e,t){return ei(e,null,null,t),ii(e)}function ri(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-ze(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ii(e){if(50<uu)throw uu=0,du=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ai={};function oi(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 si(e,t,n,r){return new oi(e,t,n,r)}function ci(e){return e=e.prototype,!(!e||!e.isReactComponent)}function li(e,t){var n=e.alternate;return n===null?(n=si(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 ui(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 di(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ci(e)&&(s=1);else if(typeof e==`string`)s=Wf(e,n,le.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case O:return e=si(31,n,t,a),e.elementType=O,e.lanes=o,e;case v:return fi(n.children,a,o,t);case y:s=8,a|=24;break;case b:return e=si(12,n,t,a|2),e.elementType=b,e.lanes=o,e;case w:return e=si(13,n,t,a),e.elementType=w,e.lanes=o,e;case T:return e=si(19,n,t,a),e.elementType=T,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 E:s=14;break a;case D:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=si(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function fi(e,t,n,r){return e=si(7,e,r,t),e.lanes=n,e}function pi(e,t,n){return e=si(6,e,null,t),e.lanes=n,e}function mi(e){var t=si(18,null,null,0);return t.stateNode=e,t}function hi(e,t,n){return t=si(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var gi=new WeakMap;function _i(e,t){if(typeof e==`object`&&e){var n=gi.get(e);return n===void 0?(t={value:e,source:t,stack:xe(t)},gi.set(e,t),t):n}return{value:e,source:t,stack:xe(t)}}var vi=[],yi=0,bi=null,xi=0,Si=[],Ci=0,wi=null,Ti=1,Ei=``;function Di(e,t){vi[yi++]=xi,vi[yi++]=bi,bi=e,xi=t}function Oi(e,t,n){Si[Ci++]=Ti,Si[Ci++]=Ei,Si[Ci++]=wi,wi=e;var r=Ti;e=Ei;var i=32-ze(r)-1;r&=~(1<<i),n+=1;var a=32-ze(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ti=1<<32-ze(t)+i|n<<i|r,Ei=a+e}else Ti=1<<a|n<<i|r,Ei=e}function ki(e){e.return!==null&&(Di(e,1),Oi(e,1,0))}function Ai(e){for(;e===bi;)bi=vi[--yi],vi[yi]=null,xi=vi[--yi],vi[yi]=null;for(;e===wi;)wi=Si[--Ci],Si[Ci]=null,Ei=Si[--Ci],Si[Ci]=null,Ti=Si[--Ci],Si[Ci]=null}function ji(e,t){Si[Ci++]=Ti,Si[Ci++]=Ei,Si[Ci++]=wi,Ti=t.id,Ei=t.overflow,wi=e}var Mi=null,Ni=null,Pi=!1,Fi=null,Ii=!1,Li=Error(i(519));function Ri(e){throw Wi(_i(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Li}function zi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ct]=e,t[lt]=r,n){case`dialog`:bd(`cancel`,t),bd(`close`,t);break;case`iframe`:case`object`:case`embed`:bd(`load`,t);break;case`video`:case`audio`:for(n=0;n<_d.length;n++)bd(_d[n],t);break;case`source`:bd(`error`,t);break;case`img`:case`image`:case`link`:bd(`error`,t),bd(`load`,t);break;case`details`:bd(`toggle`,t);break;case`input`:bd(`invalid`,t),Ht(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:bd(`invalid`,t);break;case`textarea`:bd(`invalid`,t),Kt(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||Nd(t.textContent,n)?(r.popover!=null&&(bd(`beforetoggle`,t),bd(`toggle`,t)),r.onScroll!=null&&bd(`scroll`,t),r.onScrollEnd!=null&&bd(`scrollend`,t),r.onClick!=null&&(t.onclick=tn),t=!0):t=!1,t||Ri(e,!0)}function Bi(e){for(Mi=e.return;Mi;)switch(Mi.tag){case 5:case 31:case 13:Ii=!1;return;case 27:case 3:Ii=!0;return;default:Mi=Mi.return}}function Vi(e){if(e!==Mi)return!1;if(!Pi)return Bi(e),Pi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Wd(e.type,e.memoizedProps)),n=!n),n&&Ni&&Ri(e),Bi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=df(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=df(e)}else t===27?(t=Ni,Qd(e.type)?(e=uf,uf=null,Ni=e):Ni=t):Ni=Mi?lf(e.stateNode.nextSibling):null;return!0}function Hi(){Ni=Mi=null,Pi=!1}function Ui(){var e=Fi;return e!==null&&(Xl===null?Xl=e:Xl.push.apply(Xl,e),Fi=null),e}function Wi(e){Fi===null?Fi=[e]:Fi.push(e)}var Gi=ce(null),Ki=null,qi=null;function Ji(e,t,n){N(Gi,t._currentValue),t._currentValue=n}function Yi(e){e._currentValue=Gi.current,M(Gi)}function Xi(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 Zi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Xi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Xi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Qi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Sr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===de.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[$f]:e.push($f))}a=a.return}e!==null&&Zi(t,e,n,r),t.flags|=262144}function $i(e){for(e=e.firstContext;e!==null;){if(!Sr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ea(e){Ki=e,qi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ta(e){return ra(Ki,e)}function na(e,t){return Ki===null&&ea(e),ra(e,t)}function ra(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qi===null){if(e===null)throw Error(i(308));qi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qi=qi.next=t;return n}var ia=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()})}},aa=t.unstable_scheduleCallback,oa=t.unstable_NormalPriority,sa={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ca(){return{controller:new ia,data:new Map,refCount:0}}function la(e){e.refCount--,e.refCount===0&&aa(oa,function(){e.controller.abort()})}var ua=null,da=0,fa=0,pa=null;function ma(e,t){if(ua===null){var n=ua=[];da=0,fa=dd(),pa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return da++,t.then(ha,ha),t}function ha(){if(--da===0&&ua!==null){pa!==null&&(pa.status=`fulfilled`);var e=ua;ua=null,fa=0,pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ga(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 _a=k.S;k.S=function(e,t){$l=De(),typeof t==`object`&&t&&typeof t.then==`function`&&ma(e,t),_a!==null&&_a(e,t)};var va=ce(null);function ya(){var e=va.current;return e===null?q.pooledCache:e}function ba(e,t){t===null?N(va,va.current):N(va,t.pool)}function xa(){var e=ya();return e===null?null:{parent:sa._currentValue,pool:e}}var Sa=Error(i(460)),Ca=Error(i(474)),wa=Error(i(542)),Ta={then:function(){}};function Ea(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Da(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(tn,tn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e;default:if(typeof t.status==`string`)t.then(tn,tn);else{if(e=q,e!==null&&100<e.shellSuspendCounter)throw Error(i(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,ja(e),e}throw ka=t,Sa}}function Oa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ka=e,Sa):e}}var ka=null;function Aa(){if(ka===null)throw Error(i(459));var e=ka;return ka=null,e}function ja(e){if(e===Sa||e===wa)throw Error(i(483))}var Ma=null,Na=0;function Pa(e){var t=Na;return Na+=1,Ma===null&&(Ma=[]),Da(Ma,e,t)}function Fa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ia(e,t){throw t.$$typeof===h?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function La(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 a(e,t){return e=li(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=pi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===D&&Oa(i)===t.type)?(t=a(t,n.props),Fa(t,n),t.return=e,t):(t=di(n.type,n.key,n.props,null,e.mode,r),Fa(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=hi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=fi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=pi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=di(t.type,t.key,t.props,null,e.mode,n),Fa(n,t),n.return=e,n;case _:return t=hi(t,e.mode,n),t.return=e,t;case D:return t=Oa(t),f(e,t,n)}if(ae(t)||ne(t))return t=fi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Pa(t),n);if(t.$$typeof===S)return f(e,na(e,t),n);Ia(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 D:return n=Oa(n),p(e,t,n,r)}if(ae(n)||ne(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Pa(n),r);if(n.$$typeof===S)return p(e,t,na(e,n),r);Ia(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 D:return r=Oa(r),m(e,t,n,r,i)}if(ae(r)||ne(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Pa(r),i);if(r.$$typeof===S)return m(e,t,n,na(t,r),i);Ia(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),Pi&&Di(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 Pi&&Di(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)}),Pi&&Di(i,h),l}function y(a,s,c,l){if(c==null)throw Error(i(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(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Pi&&Di(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Pi&&Di(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,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(a,e)}),Pi&&Di(a,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=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===D&&Oa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Fa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===v?(c=fi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=di(o.type,o.key,o.props,null,e.mode,c),Fa(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=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=hi(o,e.mode,c),c.return=e,e=c}return s(e);case D:return o=Oa(o),b(e,r,o,c)}if(ae(o))return h(e,r,o,c);if(ne(o)){if(l=ne(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Pa(o),c);if(o.$$typeof===S)return b(e,r,na(e,o),c);Ia(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=a(r,o),c.return=e,e=c):(n(e,r),c=pi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Na=0;var i=b(e,t,n,r);return Ma=null,i}catch(t){if(t===Sa||t===wa)throw t;var a=si(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ra=La(!0),za=La(!1),Ba=!1;function Va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ha(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 Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Rl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ii(e),ri(e,null,n),t}return ei(e,r,t,n),ii(e)}function Ga(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,tt(e,n)}}function Ka(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 qa=!1;function Ja(){if(qa){var e=pa;if(e!==null)throw e}}function Ya(e,t,n,r){qa=!1;var i=e.updateQueue;Ba=!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?(zl&f)===f:(r&f)===f){f!==0&&f===fa&&(qa=!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:Ba=!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),Kl|=o,e.lanes=o,e.memoizedState=d}}function Xa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Za(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Xa(n[e],t)}var Qa=ce(null),$a=ce(0);function eo(e,t){e=Gl,N($a,e),N(Qa,t),Gl=e|t.baseLanes}function to(){N($a,Gl),N(Qa,Qa.current)}function no(){Gl=$a.current,M(Qa),M($a)}var ro=ce(null),io=null;function ao(e){var t=e.alternate;N(uo,uo.current&1),N(ro,e),io===null&&(t===null||Qa.current!==null||t.memoizedState!==null)&&(io=e)}function oo(e){N(uo,uo.current),N(ro,e),io===null&&(io=e)}function so(e){e.tag===22?(N(uo,uo.current),N(ro,e),io===null&&(io=e)):co(e)}function co(){N(uo,uo.current),N(ro,ro.current)}function lo(e){M(ro),io===e&&(io=null),M(uo)}var uo=ce(0);function fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||of(n)||sf(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 po=0,B=null,mo=null,ho=null,go=!1,_o=!1,vo=!1,yo=0,bo=0,xo=null,So=0;function Co(){throw Error(i(321))}function wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Sr(e[n],t[n]))return!1;return!0}function To(e,t,n,r,i,a){return po=a,B=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?Hs:Us,vo=!1,a=n(r,i),vo=!1,_o&&(a=Do(t,n,r,i)),Eo(e),a}function Eo(e){k.H=Vs;var t=mo!==null&&mo.next!==null;if(po=0,ho=mo=B=null,go=!1,bo=0,xo=null,t)throw Error(i(300));e===null||V||(e=e.dependencies,e!==null&&$i(e)&&(V=!0))}function Do(e,t,n,r){B=e;var a=0;do{if(_o&&(xo=null),bo=0,_o=!1,25<=a)throw Error(i(301));if(a+=1,ho=mo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}k.H=Ws,o=t(n,r)}while(_o);return o}function Oo(){var e=k.H,t=e.useState()[0];return t=typeof t.then==`function`?Fo(t):t,e=e.useState()[0],(mo===null?null:mo.memoizedState)!==e&&(B.flags|=1024),t}function ko(){var e=yo!==0;return yo=0,e}function Ao(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function jo(e){if(go){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}go=!1}po=0,ho=mo=B=null,_o=!1,bo=yo=0,xo=null}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ho===null?B.memoizedState=ho=e:ho=ho.next=e,ho}function No(){if(mo===null){var e=B.alternate;e=e===null?null:e.memoizedState}else e=mo.next;var t=ho===null?B.memoizedState:ho.next;if(t!==null)ho=t,mo=e;else{if(e===null)throw B.alternate===null?Error(i(467)):Error(i(310));mo=e,e={memoizedState:mo.memoizedState,baseState:mo.baseState,baseQueue:mo.baseQueue,queue:mo.queue,next:null},ho===null?B.memoizedState=ho=e:ho=ho.next=e}return ho}function Po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fo(e){var t=bo;return bo+=1,xo===null&&(xo=[]),e=Da(xo,e,t),t=B,(ho===null?t.memoizedState:ho.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?Hs:Us),e}function Io(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Fo(e);if(e.$$typeof===S)return ta(e)}throw Error(i(438,String(e)))}function Lo(e){var t=null,n=B.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=B.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=Po(),B.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]=ee;return t.index++,n}function Ro(e,t){return typeof t==`function`?t(e):t}function zo(e){return Bo(No(),mo,e)}function Bo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(po&f)===f:(zl&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===fa&&(d=!0);else if((po&p)===p){u=u.next,p===fa&&(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,B.lanes|=p,Kl|=p;f=u.action,vo&&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,B.lanes|=f,Kl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Sr(o,e.memoizedState)&&(V=!0,d&&(n=pa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Vo(e){var t=No(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Sr(o,t.memoizedState)||(V=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ho(e,t,n){var r=B,a=No(),o=Pi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Sr((mo||a).memoizedState,n);if(s&&(a.memoizedState=n,V=!0),a=a.queue,ps(Go.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ho!==null&&ho.memoizedState.tag&1){if(r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,a,n,t),null),q===null)throw Error(i(349));o||po&127||Uo(r,t,n)}return n}function Uo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=B.updateQueue,t===null?(t=Po(),B.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wo(e,t,n,r){t.value=n,t.getSnapshot=r,Ko(t)&&qo(e)}function Go(e,t,n){return n(function(){Ko(t)&&qo(e)})}function Ko(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Sr(e,n)}catch{return!0}}function qo(e){var t=ni(e,2);t!==null&&mu(t,e,2)}function Jo(e){var t=Mo();if(typeof e==`function`){var n=e;if(e=n(),vo){Re(!0);try{n()}finally{Re(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:e},t}function Yo(e,t,n,r){return e.baseState=n,Bo(e,mo,typeof r==`function`?r:Ro)}function Xo(e,t,n,r,a){if(Rs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};k.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Zo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Zo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=k.T,o={};k.T=o;try{var s=n(i,r),c=k.S;c!==null&&c(o,s),Qo(e,t,s)}catch(n){es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),k.T=a}}else try{a=n(i,r),Qo(e,t,a)}catch(n){es(e,t,n)}}function Qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){$o(e,t,n)},function(n){return es(e,t,n)}):$o(e,t,n)}function $o(e,t,n){t.status=`fulfilled`,t.value=n,ts(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zo(e,n)))}function es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ts(t),t=t.next;while(t!==r)}e.action=null}function ts(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ns(e,t){return t}function rs(e,t){if(Pi){var n=q.formState;if(n!==null){a:{var r=B;if(Pi){if(Ni){b:{for(var i=Ni,a=Ii;i.nodeType!==8;){if(!a){i=null;break b}if(i=lf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ni=lf(i.nextSibling),r=i.data===`F!`;break a}}Ri(r)}r=!1}r&&(t=n[0])}}return n=Mo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:t},n.queue=r,n=Fs.bind(null,B,r),r.dispatch=n,r=Jo(!1),a=Ls.bind(null,B,!1,r.queue),r=Mo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xo.bind(null,B,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function is(e){return as(No(),mo,e)}function as(e,t,n){if(t=Bo(e,t,ns)[0],e=zo(Ro)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Fo(t)}catch(e){throw e===Sa?wa:e}else r=t;t=No();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(B.flags|=2048,cs(9,{destroy:void 0},os.bind(null,i,n),null)),[r,a,e]}function os(e,t){e.action=t}function ss(e){var t=No(),n=mo;if(n!==null)return as(t,n,e);No(),t=t.memoizedState,n=No();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function cs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=B.updateQueue,t===null&&(t=Po(),B.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 ls(){return No().memoizedState}function us(e,t,n,r){var i=Mo();B.flags|=e,i.memoizedState=cs(1|t,{destroy:void 0},n,r===void 0?null:r)}function ds(e,t,n,r){var i=No();r=r===void 0?null:r;var a=i.memoizedState.inst;mo!==null&&r!==null&&wo(r,mo.memoizedState.deps)?i.memoizedState=cs(t,a,n,r):(B.flags|=e,i.memoizedState=cs(1|t,a,n,r))}function fs(e,t){us(8390656,8,e,t)}function ps(e,t){ds(2048,8,e,t)}function ms(e){B.flags|=4;var t=B.updateQueue;if(t===null)t=Po(),B.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hs(e){var t=No().memoizedState;return ms({ref:t,nextImpl:e}),function(){if(Rl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function gs(e,t){return ds(4,2,e,t)}function _s(e,t){return ds(4,4,e,t)}function vs(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 ys(e,t,n){n=n==null?null:n.concat([e]),ds(4,4,vs.bind(null,t,e),n)}function bs(){}function xs(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ss(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&wo(t,r[1]))return r[0];if(r=e(),vo){Re(!0);try{e()}finally{Re(!1)}}return n.memoizedState=[r,t],r}function Cs(e,t,n){return n===void 0||po&1073741824&&!(zl&261930)?e.memoizedState=t:(e.memoizedState=n,e=pu(),B.lanes|=e,Kl|=e,n)}function ws(e,t,n,r){return Sr(n,t)?n:Qa.current===null?!(po&42)||po&1073741824&&!(zl&261930)?(V=!0,e.memoizedState=n):(e=pu(),B.lanes|=e,Kl|=e,t):(e=Cs(e,n,r),Sr(e,t)||(V=!0),e)}function Ts(e,t,n,r,i){var a=A.p;A.p=a!==0&&8>a?a:8;var o=k.T,s={};k.T=s,Ls(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Is(e,t,ga(c,r),fu(e)):Is(e,t,r,fu(e))}catch(n){Is(e,t,{then:function(){},status:`rejected`,reason:n},fu())}finally{A.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function Es(){}function Ds(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Os(e).queue;Ts(e,a,t,oe,n===null?Es:function(){return ks(e),n(r)})}function Os(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ks(e){var t=Os(e);t.next===null&&(t=e.alternate.memoizedState),Is(e,t.next.queue,{},fu())}function As(){return ta($f)}function js(){return No().memoizedState}function Ms(){return No().memoizedState}function Ns(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=fu();e=Ua(n);var r=Wa(t,e,n);r!==null&&(mu(r,t,n),Ga(r,t,n)),t={cache:ca()},e.payload=t;return}t=t.return}}function Ps(e,t,n){var r=fu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Rs(e)?zs(t,n):(n=ti(e,t,n,r),n!==null&&(mu(n,e,r),Bs(n,t,r)))}function Fs(e,t,n){Is(e,t,n,fu())}function Is(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rs(e))zs(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,Sr(s,o))return ei(e,t,i,0),q===null&&$r(),!1}catch{}if(n=ti(e,t,i,r),n!==null)return mu(n,e,r),Bs(n,t,r),!0}return!1}function Ls(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Rs(e)){if(t)throw Error(i(479))}else t=ti(e,n,r,2),t!==null&&mu(t,e,2)}function Rs(e){var t=e.alternate;return e===B||t!==null&&t===B}function zs(e,t){_o=go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}var Vs={readContext:ta,use:Io,useCallback:Co,useContext:Co,useEffect:Co,useImperativeHandle:Co,useLayoutEffect:Co,useInsertionEffect:Co,useMemo:Co,useReducer:Co,useRef:Co,useState:Co,useDebugValue:Co,useDeferredValue:Co,useTransition:Co,useSyncExternalStore:Co,useId:Co,useHostTransitionStatus:Co,useFormState:Co,useActionState:Co,useOptimistic:Co,useMemoCache:Co,useCacheRefresh:Co};Vs.useEffectEvent=Co;var Hs={readContext:ta,use:Io,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:ta,useEffect:fs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),us(4194308,4,vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return us(4194308,4,e,t)},useInsertionEffect:function(e,t){us(4,2,e,t)},useMemo:function(e,t){var n=Mo();t=t===void 0?null:t;var r=e();if(vo){Re(!0);try{e()}finally{Re(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Mo();if(n!==void 0){var i=n(t);if(vo){Re(!0);try{n(t)}finally{Re(!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=Ps.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:function(e){e=Jo(e);var t=e.queue,n=Fs.bind(null,B,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bs,useDeferredValue:function(e,t){return Cs(Mo(),e,t)},useTransition:function(){var e=Jo(!1);return e=Ts.bind(null,B,e.queue,!0,!1),Mo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=B,a=Mo();if(Pi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),q===null)throw Error(i(349));zl&127||Uo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,fs(Go.bind(null,r,o,e),[e]),r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,o,n,t),null),n},useId:function(){var e=Mo(),t=q.identifierPrefix;if(Pi){var n=Ei,r=Ti;n=(r&~(1<<32-ze(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=yo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=So++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:As,useFormState:rs,useActionState:rs,useOptimistic:function(e){var t=Mo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ls.bind(null,B,!0,n),n.dispatch=t,[e,t]},useMemoCache:Lo,useCacheRefresh:function(){return Mo().memoizedState=Ns.bind(null,B)},useEffectEvent:function(e){var t=Mo(),n={impl:e};return t.memoizedState=n,function(){if(Rl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Us={readContext:ta,use:Io,useCallback:xs,useContext:ta,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:zo,useRef:ls,useState:function(){return zo(Ro)},useDebugValue:bs,useDeferredValue:function(e,t){return ws(No(),mo.memoizedState,e,t)},useTransition:function(){var e=zo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:js,useHostTransitionStatus:As,useFormState:is,useActionState:is,useOptimistic:function(e,t){return Yo(No(),mo,e,t)},useMemoCache:Lo,useCacheRefresh:Ms};Us.useEffectEvent=hs;var Ws={readContext:ta,use:Io,useCallback:xs,useContext:ta,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Vo,useRef:ls,useState:function(){return Vo(Ro)},useDebugValue:bs,useDeferredValue:function(e,t){var n=No();return mo===null?Cs(n,e,t):ws(n,mo.memoizedState,e,t)},useTransition:function(){var e=Vo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:js,useHostTransitionStatus:As,useFormState:ss,useActionState:ss,useOptimistic:function(e,t){var n=No();return mo===null?(n.baseState=e,[e,n.queue.dispatch]):Yo(n,mo,e,t)},useMemoCache:Lo,useCacheRefresh:Ms};Ws.useEffectEvent=hs;function Gs(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 Ks={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fu(),i=Ua(r);i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(mu(t,e,r),Ga(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fu(),i=Ua(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(mu(t,e,r),Ga(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fu(),r=Ua(n);r.tag=2,t!=null&&(r.callback=t),t=Wa(e,r,n),t!==null&&(mu(t,e,n),Ga(t,e,n))}};function qs(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?!Cr(n,r)||!Cr(i,a):!0}function Js(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&&Ks.enqueueReplaceState(t,t.state,null)}function Ys(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 Xs(e){Yr(e)}function Zs(e){console.error(e)}function Qs(e){Yr(e)}function $s(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function ec(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 tc(e,t,n){return n=Ua(n),n.tag=3,n.payload={element:null},n.callback=function(){$s(e,t)},n}function nc(e){return e=Ua(e),e.tag=3,e}function rc(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(){ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){ec(t,n,r),typeof i!=`function`&&(nu===null?nu=new Set([this]):nu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ic(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Qi(t,n,a,!0),n=ro.current,n!==null){switch(n.tag){case 31:case 13:return io===null?Eu():n.alternate===null&&Y===0&&(Y=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gu(e,r,a)),!1;case 22:return n.flags|=65536,r===Ta?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)),Gu(e,r,a)),!1}throw Error(i(435,n.tag))}return Gu(e,r,a),Eu(),!1}if(Pi)return t=ro.current,t===null?(r!==Li&&(t=Error(i(423),{cause:r}),Wi(_i(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=_i(r,n),a=tc(e.stateNode,r,a),Ka(e,a),Y!==4&&(Y=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Li&&(e=Error(i(422),{cause:r}),Wi(_i(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=_i(o,n),Z===null?Z=[o]:Z.push(o),Y!==4&&(Y=2),t===null)return!0;r=_i(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=tc(n.stateNode,r,e),Ka(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`&&(nu===null||!nu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=nc(a),rc(a,e,n,r),Ka(n,a),!1}n=n.return}while(n!==null);return!1}var ac=Error(i(461)),V=!1;function H(e,t,n,r){t.child=e===null?za(t,null,n,r):Ra(t,e.child,n,r)}function oc(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 ea(t),r=To(e,t,n,o,a,i),s=ko(),e!==null&&!V?(Ao(e,t,i),Ac(e,t,i)):(Pi&&s&&ki(t),t.flags|=1,H(e,t,r,i),t.child)}function sc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ci(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,cc(e,t,a,r,i)):(e=di(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!jc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Cr:n,n(o,r)&&e.ref===t.ref)return Ac(e,t,i)}return t.flags|=1,e=li(a,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Cr(a,r)&&e.ref===t.ref)if(V=!1,t.pendingProps=r=a,jc(e,i))e.flags&131072&&(V=!0);else return t.lanes=e.lanes,Ac(e,t,i)}return gc(e,t,n,r,i)}function lc(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 dc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ba(t,a===null?null:a.cachePool),a===null?to():eo(t,a),so(t);else return r=t.lanes=536870912,dc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ba(t,null),to(),co(t)):(ba(t,a.cachePool),eo(t,a),co(t),t.memoizedState=null);return H(e,t,i,n),t.child}function uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dc(e,t,n,r,i){var a=ya();return a=a===null?null:{parent:sa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ba(t,null),to(),so(t),e!==null&&Qi(e,t,r,!0),t.childLanes=i,null}function fc(e,t){return t=Tc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pc(e,t,n){return Ra(t,e.child,null,n),e=fc(t,t.pendingProps),e.flags|=2,lo(t),t.memoizedState=null,e}function mc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Pi){if(r.mode===`hidden`)return e=fc(t,r),t.lanes=536870912,uc(null,e);if(oo(t),(e=Ni)?(e=af(e,Ii),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=mi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Ri(t);return t.lanes=536870912,null}return fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(oo(t),a)if(t.flags&256)t.flags&=-257,t=pc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(V||Qi(e,t,n,!1),a=(n&e.childLanes)!==0,V||a){if(r=q,r!==null&&(s=nt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ni(e,s),mu(r,e,s),ac;Eu(),t=pc(e,t,n)}else e=o.treeContext,Ni=lf(s.nextSibling),Mi=t,Pi=!0,Fi=null,Ii=!1,e!==null&&ji(t,e),t=fc(t,r),t.flags|=4096;return t}return e=li(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hc(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(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gc(e,t,n,r,i){return ea(t),n=To(e,t,n,r,void 0,i),r=ko(),e!==null&&!V?(Ao(e,t,i),Ac(e,t,i)):(Pi&&r&&ki(t),t.flags|=1,H(e,t,n,i),t.child)}function _c(e,t,n,r,i,a){return ea(t),t.updateQueue=null,n=Do(t,r,n,i),Eo(e),r=ko(),e!==null&&!V?(Ao(e,t,a),Ac(e,t,a)):(Pi&&r&&ki(t),t.flags|=1,H(e,t,n,a),t.child)}function vc(e,t,n,r,i){if(ea(t),t.stateNode===null){var a=ai,o=n.contextType;typeof o==`object`&&o&&(a=ta(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ks,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Va(t),o=n.contextType,a.context=typeof o==`object`&&o?ta(o):ai,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Gs(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&&Ks.enqueueReplaceState(a,a.state,null),Ya(t,r,a,i),Ja(),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=Ys(n,s);a.props=c;var l=a.context,u=n.contextType;o=ai,typeof u==`object`&&u&&(o=ta(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)&&Js(t,a,r,o),Ba=!1;var f=t.memoizedState;a.state=f,Ya(t,r,a,i),Ja(),l=t.memoizedState,s||f!==l||Ba?(typeof d==`function`&&(Gs(t,n,d,r),l=t.memoizedState),(c=Ba||qs(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,Ha(e,t),o=t.memoizedProps,u=Ys(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ai,typeof l==`object`&&l&&(c=ta(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)&&Js(t,a,r,c),Ba=!1,f=t.memoizedState,a.state=f,Ya(t,r,a,i),Ja();var p=t.memoizedState;o!==d||f!==p||Ba||e!==null&&e.dependencies!==null&&$i(e.dependencies)?(typeof s==`function`&&(Gs(t,n,s,r),p=t.memoizedState),(u=Ba||qs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&$i(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,hc(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=Ra(t,e.child,null,i),t.child=Ra(t,null,n,i)):H(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ac(e,t,i),e}function yc(e,t,n,r){return Hi(),t.flags|=256,H(e,t,n,r),t.child}var bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:xa()}}function Sc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Jl),e}function Cc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(uo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Pi){if(a?ao(t):co(t),(e=Ni)?(e=af(e,Ii),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=mi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Ri(t);return sf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(co(t),a=t.mode,c=Tc({mode:`hidden`,children:c},a),r=fi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(null,r)):(ao(t),wc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(ao(t),t.flags&=-257,t=Ec(e,t,n)):t.memoizedState===null?(co(t),c=r.fallback,a=t.mode,r=Tc({mode:`visible`,children:r.children},a),c=fi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ra(t,e.child,null,n),r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,t=uc(null,r)):(co(t),t.child=e.child,t.flags|=128,t=null);else if(ao(t),sf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Wi({value:r,source:null,stack:null}),t=Ec(e,t,n)}else if(V||Qi(e,t,n,!1),s=(n&e.childLanes)!==0,V||s){if(s=q,s!==null&&(r=nt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ni(e,r),mu(s,e,r),ac;of(c)||Eu(),t=Ec(e,t,n)}else of(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ni=lf(c.nextSibling),Mi=t,Pi=!0,Fi=null,Ii=!1,e!==null&&ji(t,e),t=wc(t,r.children),t.flags|=4096);return t}return a?(co(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=li(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=fi(c,a,n,null),c.flags|=2):c=li(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,uc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=xc(n):(a=c.cachePool,a===null?a=xa():(l=sa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(e.child,r)):(ao(t),n=e.child,e=n.sibling,n=li(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 wc(e,t){return t=Tc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Tc(e,t){return e=si(22,e,null,t),e.lanes=0,e}function Ec(e,t,n){return Ra(t,e.child,null,n),e=wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xi(e.return,t,n)}function Oc(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 kc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=uo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,N(uo,o),H(e,t,r,n),r=Pi?xi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dc(e,n,t);else if(e.tag===19)Dc(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&&fo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oc(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&&fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oc(t,!0,n,null,a,r);break;case`together`:Oc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ac(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Qi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=li(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=li(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&$i(e))):!0}function Mc(e,t,n){switch(t.tag){case 3:F(t,t.stateNode.containerInfo),Ji(t,sa,e.memoizedState.cache),Hi();break;case 27:case 5:pe(t);break;case 4:F(t,t.stateNode.containerInfo);break;case 10:Ji(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,oo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ao(t),e=Ac(e,t,n),e===null?null:e.sibling):Cc(e,t,n):(ao(t),t.flags|=128,null);ao(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Qi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return kc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),N(uo,uo.current),r)break;return null;case 22:return t.lanes=0,lc(e,t,n,t.pendingProps);case 24:Ji(t,sa,e.memoizedState.cache)}return Ac(e,t,n)}function Nc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)V=!0;else{if(!jc(e,n)&&!(t.flags&128))return V=!1,Mc(e,t,n);V=!!(e.flags&131072)}else V=!1,Pi&&t.flags&1048576&&Oi(t,xi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Oa(t.elementType),t.type=e,typeof e==`function`)ci(e)?(r=Ys(e,r),t.tag=1,t=vc(null,t,e,r,n)):(t.tag=0,t=gc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===C){t.tag=11,t=oc(null,t,e,r,n);break a}else if(a===E){t.tag=14,t=sc(null,t,e,r,n);break a}}throw t=ie(e)||e,Error(i(306,t,``))}}return t;case 0:return gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ys(r,t.pendingProps),vc(e,t,r,a,n);case 3:a:{if(F(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ha(e,t),Ya(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ji(t,sa,r),r!==o.cache&&Zi(t,[sa],n,!0),Ja(),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=yc(e,t,r,n);break a}else if(r!==a){a=_i(Error(i(424)),t),Wi(a),t=yc(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(Ni=lf(e.firstChild),Mi=t,Pi=!0,Fi=null,Ii=!0,n=za(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hi(),r===a){t=Ac(e,t,n);break a}H(e,t,r,n)}t=t.child}return t;case 26:return hc(e,t),e===null?(n=Af(t.type,null,t.pendingProps,null))?t.memoizedState=n:Pi||(n=t.type,e=t.pendingProps,r=Vd(P.current).createElement(n),r[ct]=t,r[lt]=e,Q(r,n,e),xt(r),t.stateNode=r):t.memoizedState=Af(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return pe(t),e===null&&Pi&&(r=t.stateNode=pf(t.type,t.pendingProps,P.current),Mi=t,Ii=!0,a=Ni,Qd(t.type)?(uf=a,Ni=lf(r.firstChild)):Ni=a),H(e,t,t.pendingProps.children,n),hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Pi&&((a=r=Ni)&&(r=nf(r,t.type,t.pendingProps,Ii),r===null?a=!1:(t.stateNode=r,Mi=t,Ni=lf(r.firstChild),Ii=!1,a=!0)),a||Ri(t)),pe(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Wd(a,o)?r=null:s!==null&&Wd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=To(e,t,Oo,null,null,n),$f._currentValue=a),hc(e,t),H(e,t,r,n),t.child;case 6:return e===null&&Pi&&((e=n=Ni)&&(n=rf(n,t.pendingProps,Ii),n===null?e=!1:(t.stateNode=n,Mi=t,Ni=null,e=!0)),e||Ri(t)),null;case 13:return Cc(e,t,n);case 4:return F(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ra(t,null,r,n):H(e,t,r,n),t.child;case 11:return oc(e,t,t.type,t.pendingProps,n);case 7:return H(e,t,t.pendingProps,n),t.child;case 8:return H(e,t,t.pendingProps.children,n),t.child;case 12:return H(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ji(t,t.type,r.value),H(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ea(t),a=ta(a),r=r(a),t.flags|=1,H(e,t,r,n),t.child;case 14:return sc(e,t,t.type,t.pendingProps,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 19:return kc(e,t,n);case 31:return mc(e,t,n);case 22:return lc(e,t,n,t.pendingProps);case 24:return ea(t),r=ta(sa),e===null?(a=ya(),a===null&&(a=q,o=ca(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Va(t),Ji(t,sa,a)):((e.lanes&n)!==0&&(Ha(e,t),Ya(t,null,null,n),Ja()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ji(t,sa,r),r!==a.cache&&Zi(t,[sa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ji(t,sa,r))),H(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Pc(e){e.flags|=4}function Fc(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(Cu())e.flags|=8192;else throw ka=Ta,Ca}else e.flags&=-16777217}function Ic(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Gf(t))if(Cu())e.flags|=8192;else throw ka=Ta,Ca}function Lc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Xe(),e.lanes|=t,Yl|=t)}function Rc(e,t){if(!Pi)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 zc(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 Bc(e,t,n){var r=t.pendingProps;switch(Ai(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zc(t),null;case 1:return zc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Yi(sa),fe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vi(t)?Pc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ui())),zc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Pc(t),o===null?(zc(t),Fc(t,a,null,r,n)):(zc(t),Ic(t,o))):o?o===e.memoizedState?(zc(t),t.flags&=-16777217):(Pc(t),zc(t),Ic(t,o)):(e=e.memoizedProps,e!==r&&Pc(t),zc(t),Fc(t,a,e,r,n)),null;case 27:if(me(t),n=P.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}e=le.current,Vi(t)?zi(t,e):(e=pf(a,r,n),t.stateNode=e,Pc(t))}return zc(t),null;case 5:if(me(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}if(o=le.current,Vi(t))zi(t,o);else{var s=Vd(P.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);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(a,{is:r.is}):s.createElement(a)}}o[ct]=t,o[lt]=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(Q(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Pc(t)}}return zc(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=P.current,Vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Mi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ct]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Ri(t,!0)}else e=Vd(e).createTextNode(r),e[ct]=t,t.stateNode=e}return zc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Vi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ct]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),e=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(lo(t),t):(lo(t),null);if(t.flags&128)throw Error(i(558))}return zc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ct]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),a=!1}else a=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(lo(t),t):(lo(t),null)}return lo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lc(t,t.updateQueue),zc(t),null);case 4:return fe(),e===null&&Cd(t.stateNode.containerInfo),zc(t),null;case 10:return Yi(t.type),zc(t),null;case 19:if(M(uo),r=t.memoizedState,r===null)return zc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Rc(r,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=fo(e),o!==null){for(t.flags|=128,Rc(r,!1),e=o.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ui(n,e),n=n.sibling;return N(uo,uo.current&1|2),Pi&&Di(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&De()>eu&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304)}else{if(!a)if(e=fo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),Rc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Pi)return zc(t),null}else 2*De()-r.renderingStartTime>eu&&n!==536870912&&(t.flags|=128,a=!0,Rc(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?(zc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=De(),e.sibling=null,n=uo.current,N(uo,a?n&1|2:n&1),Pi&&Di(t,r.treeForkCount),e);case 22:case 23:return lo(t),no(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(zc(t),t.subtreeFlags&6&&(t.flags|=8192)):zc(t),n=t.updateQueue,n!==null&&Lc(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&&M(va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yi(sa),zc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Vc(e,t){switch(Ai(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(sa),fe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return me(t),null;case 31:if(t.memoizedState!==null){if(lo(t),t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(uo),null;case 4:return fe(),null;case 10:return Yi(t.type),null;case 22:case 23:return lo(t),no(),e!==null&&M(va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yi(sa),null;case 25:return null;default:return null}}function Hc(e,t){switch(Ai(t),t.tag){case 3:Yi(sa),fe();break;case 26:case 27:case 5:me(t);break;case 4:fe();break;case 31:t.memoizedState!==null&&lo(t);break;case 13:lo(t);break;case 19:M(uo);break;case 10:Yi(t.type);break;case 22:case 23:lo(t),no(),e!==null&&M(va);break;case 24:Yi(sa)}}function Uc(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){Wu(t,t.return,e)}}function Wc(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){Wu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Wu(t,t.return,e)}}function Gc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Za(t,n)}catch(t){Wu(e,e.return,t)}}}function Kc(e,t,n){n.props=Ys(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Wu(e,t,n)}}function qc(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){Wu(e,t,n)}}function Jc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Wu(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){Wu(e,t,n)}else n.current=null}function Yc(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){Wu(e,e.return,t)}}function Xc(e,t,n){try{var r=e.stateNode;Id(r,e.type,n,t),r[lt]=t}catch(t){Wu(e,e.return,t)}}function Zc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qd(e.type)||e.tag===4}function Qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(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&&Qd(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 $c(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=tn));else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(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&&Qd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Q(t,r,n),t[ct]=e,t[lt]=n}catch(t){Wu(e,e.return,t)}}var nl=!1,rl=!1,il=!1,al=typeof WeakSet==`function`?WeakSet:Set,ol=null;function sl(e,t){if(e=e.containerInfo,zd=cp,e=Dr(e),Or(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 a=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||a!==0&&f.nodeType!==3||(c=s+a),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===a&&(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(Bd={focusedElem:e,selectionRange:n},cp=!1,ol=t;ol!==null;)if(t=ol,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ol=e;else for(;ol!==null;){switch(t=ol,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++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ys(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Wu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)tf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:tf(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(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ol=e;break}ol=t.return}}function cl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Sl(e,n),r&4&&Uc(5,n);break;case 1:if(Sl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Wu(n,n.return,e)}else{var i=Ys(n.type,t.memoizedProps);t=t.memoizedState;
vendor: 4,312 bytes, line 9
9try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Wu(n,n.return,e)}}r&64&&Gc(n),r&512&&qc(n,n.return);break;case 3:if(Sl(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{Za(e,t)}catch(e){Wu(n,n.return,e)}}break;case 27:t===null&&r&4&&tl(n);case 26:case 5:Sl(e,n),t===null&&r&4&&Yc(n),r&512&&qc(n,n.return);break;case 12:Sl(e,n);break;case 31:Sl(e,n),r&4&&ml(e,n);break;case 13:Sl(e,n),r&4&&hl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ju.bind(null,n),cf(e,n))));break;case 22:if(r=n.memoizedState!==null||nl,!r){t=t!==null&&t.memoizedState!==null||rl,i=nl;var a=rl;nl=r,(rl=t)&&!a?wl(e,n,(n.subtreeFlags&8772)!=0):Sl(e,n),nl=i,rl=a}break;case 30:break;default:Sl(e,n)}}function ll(e){var t=e.alternate;t!==null&&(e.alternate=null,ll(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&>(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 ul=null,dl=!1;function fl(e,t,n){for(n=n.child;n!==null;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(Le&&typeof Le.onCommitFiberUnmount==`function`)try{Le.onCommitFiberUnmount(Ie,n)}catch{}switch(n.tag){case 26:rl||Jc(n,t),fl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:rl||Jc(n,t);var r=ul,i=dl;Qd(n.type)&&(ul=n.stateNode,dl=!1),fl(e,t,n),mf(n.stateNode),ul=r,dl=i;break;case 5:rl||Jc(n,t);case 6:if(r=ul,i=dl,ul=null,fl(e,t,n),ul=r,dl=i,ul!==null)if(dl)try{(ul.nodeType===9?ul.body:ul.nodeName===`HTML`?ul.ownerDocument.body:ul).removeChild(n.stateNode)}catch(e){Wu(n,t,e)}else try{ul.removeChild(n.stateNode)}catch(e){Wu(n,t,e)}break;case 18:ul!==null&&(dl?(e=ul,$d(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Pp(e)):$d(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:Wc(2,n,t),rl||Wc(4,n,t),fl(e,t,n);break;case 1:rl||(Jc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Kc(n,t,r)),fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:rl=(r=rl)||n.memoizedState!==null,fl(e,t,n),rl=r;break;default:fl(e,t,n)}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pp(e)}catch(e){Wu(t,t.return,e)}}}function hl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pp(e)}catch(e){Wu(t,t.return,e)}}function gl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new al),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new al),t;default:throw Error(i(435,e.tag))}}function _l(e,t){var n=gl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Yu.bind(null,e,t);t.then(r,r)}})}function vl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Qd(c.type)){ul=c.stateNode,dl=!1;break a}break;case 5:ul=c.stateNode,dl=!1;break a;case 3:case 4:ul=c.stateNode.containerInfo,dl=!0;break a}c=c.return}if(ul===null)throw Error(i(160));pl(o,s,a),ul=null,dl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bl(t,e),t=t.sibling}var yl=null;function bl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vl(t,e),xl(e),r&4&&(Wc(3,e,e.return),Uc(3,e),Wc(5,e,e.return));break;case 1:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&64&&nl&&(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 a=yl;if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(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,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ht]||o[ct]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head >
9 title`))),Q(o,r,n),o[ct]=e,xt(o),r=o;break a;case`link`:var s=Hf(`link`,`href`,a).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=a.createElement(r),Q(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Hf(`meta`,`content`,a).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=a.createElement(r),Q(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ct]=e,xt(o),r=o}e.stateNode=r}else Uf(a,e.type,e.stateNode);else e.stateNode=Lf(a,r,e.memoizedProps);
vendor: 40,575 bytes, lines 9-10
9else o===r?r===null&&e.stateNode!==null&&Xc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Uf(a,e.type,e.stateNode):Lf(a,r,e.memoizedProps))}break;case 27:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),n!==null&&r&4&&Xc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),e.flags&32){a=e.stateNode;try{qt(a,``)}catch(t){Wu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Xc(e,a,n===null?a:n.memoizedProps)),r&1024&&(il=!0);break;case 6:if(vl(t,e),xl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Wu(e,e.return,t)}}break;case 3:if(Vf=null,a=yl,yl=_f(t.containerInfo),vl(t,e),yl=a,xl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pp(t.containerInfo)}catch(t){Wu(e,e.return,t)}il&&(il=!1,U(e));break;case 4:r=yl,yl=_f(e.stateNode.containerInfo),vl(t,e),xl(e),yl=r;break;case 12:vl(t,e),xl(e);break;case 31:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 13:vl(t,e),xl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ql=De()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=nl,d=rl;if(nl=u||a,rl=d||l,vl(t,e),rl=d,nl=u,xl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||nl||rl||Cl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)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){Wu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Wu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?ef(m,!0):ef(l.stateNode,!1)}catch(e){Wu(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,_l(e,n))));break;case 19:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 30:break;case 21:break;default:vl(t,e),xl(e)}}function xl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Zc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;el(e,Qc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(qt(o,``),n.flags&=-33),el(e,Qc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;$c(e,Qc(e),s);break;default:throw Error(i(161))}}catch(t){Wu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function U(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;U(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cl(e,t.alternate,t),t=t.sibling}function Cl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wc(4,t,t.return),Cl(t);break;case 1:Jc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Kc(t,t.return,n),Cl(t);break;case 27:mf(t.stateNode);case 26:case 5:Jc(t,t.return),Cl(t);break;case 22:t.memoizedState===null&&Cl(t);break;case 30:Cl(t);break;default:Cl(t)}e=e.sibling}}function wl(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:wl(i,a,n),Uc(4,a);break;case 1:if(wl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Wu(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++)Xa(c[i],s)}catch(e){Wu(r,r.return,e)}}n&&o&64&&Gc(a),qc(a,a.return);break;case 27:tl(a);case 26:case 5:wl(i,a,n),n&&r===null&&o&4&&Yc(a),qc(a,a.return);break;case 12:wl(i,a,n);break;case 31:wl(i,a,n),n&&o&4&&ml(i,a);break;case 13:wl(i,a,n),n&&o&4&&hl(i,a);break;case 22:a.memoizedState===null&&wl(i,a,n),qc(a,a.return);break;case 30:break;default:wl(i,a,n)}t=t.sibling}}function Tl(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&&la(n))}function El(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e))}function W(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dl(e,t,n,r),t=t.sibling}function Dl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:W(e,t,n,r),i&2048&&Uc(9,t);break;case 1:W(e,t,n,r);break;case 3:W(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&&la(e)));break;case 12:if(i&2048){W(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){Wu(t,t.return,e)}}else W(e,t,n,r);break;case 31:W(e,t,n,r);break;case 13:W(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?W(e,t,n,r):(a._visibility|=2,Ol(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?W(e,t,n,r):kl(e,t),i&2048&&Tl(o,t);break;case 24:W(e,t,n,r),i&2048&&El(t.alternate,t);break;default:W(e,t,n,r)}}function Ol(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:Ol(a,o,s,c,i),Uc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Ol(a,o,s,c,i)):u._visibility&2?Ol(a,o,s,c,i):kl(a,o),i&&l&2048&&Tl(o.alternate,o);break;case 24:Ol(a,o,s,c,i),i&&l&2048&&El(o.alternate,o);break;default:Ol(a,o,s,c,i)}t=t.sibling}}function kl(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:kl(n,r),i&2048&&Tl(r.alternate,r);break;case 24:kl(n,r),i&2048&&El(r.alternate,r);break;default:kl(n,r)}t=t.sibling}}var Al=8192;function jl(e,t,n){if(e.subtreeFlags&Al)for(e=e.child;e!==null;)G(e,t,n),e=e.sibling}function G(e,t,n){switch(e.tag){case 26:jl(e,t,n),e.flags&Al&&e.memoizedState!==null&&Kf(n,yl,e.memoizedState,e.memoizedProps);break;case 5:jl(e,t,n);break;case 3:case 4:var r=yl;yl=_f(e.stateNode.containerInfo),jl(e,t,n),yl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Al,Al=16777216,jl(e,t,n),Al=r):jl(e,t,n));break;default:jl(e,t,n)}}function Ml(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 Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,Fl(r,e)}Ml(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pl(e),e=e.sibling}function Pl(e){switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&Wc(9,e,e.return);break;case 3:Nl(e);break;case 12:Nl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,K(e)):Nl(e);break;default:Nl(e)}}function K(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,Fl(r,e)}Ml(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wc(8,t,t.return),K(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,K(t));break;default:K(t)}e=e.sibling}}function Fl(e,t){for(;ol!==null;){var n=ol;switch(n.tag){case 0:case 11:case 15:Wc(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:la(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ol=r;else a:for(n=e;ol!==null;){r=ol;var i=r.sibling,a=r.return;if(ll(r),r===n){ol=null;break a}if(i!==null){i.return=a,ol=i;break a}ol=a}}}var Il={getCacheForType:function(e){var t=ta(sa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ta(sa).controller.signal}},Ll=typeof WeakMap==`function`?WeakMap:Map,Rl=0,q=null,J=null,zl=0,Bl=0,Vl=null,Hl=!1,Ul=!1,Wl=!1,Gl=0,Y=0,Kl=0,X=0,ql=0,Jl=0,Yl=0,Z=null,Xl=null,Zl=!1,Ql=0,$l=0,eu=1/0,tu=null,nu=null,ru=0,iu=null,au=null,ou=0,su=0,cu=null,lu=null,uu=0,du=null;function fu(){return Rl&2&&zl!==0?zl&-zl:k.T===null?at():dd()}function pu(){if(Jl===0)if(!(zl&536870912)||Pi){var e=We;We<<=1,!(We&3932160)&&(We=262144),Jl=e}else Jl=536870912;return e=ro.current,e!==null&&(e.flags|=32),Jl}function mu(e,t,n){(e===q&&(Bl===2||Bl===9)||e.cancelPendingCommit!==null)&&(xu(e,0),vu(e,zl,Jl,!1)),Qe(e,n),(!(Rl&2)||e!==q)&&(e===q&&(!(Rl&2)&&(X|=n),Y===4&&vu(e,zl,Jl,!1)),rd(e))}function hu(e,t,n){if(Rl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Je(e,t),a=r?ku(e,t):Du(e,t,!0),o=r;do{if(a===0){Ul&&!r&&vu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!_u(n)){a=Du(e,t,!1),o=!1;continue}if(a===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;a=Z;var l=c.current.memoizedState.isDehydrated;if(l&&(xu(c,s).flags|=256),s=Du(c,s,!1),s!==2){if(Wl&&!l){c.errorRecoveryDisabledLanes|=o,X|=o,a=4;break a}o=Xl,Xl=a,o!==null&&(Xl===null?Xl=o:Xl.push.apply(Xl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){xu(e,0),vu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:vu(r,t,Jl,!Hl);break a;case 2:Xl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Ql+300-De(),10<a)){if(vu(r,t,Jl,!Hl),qe(r,0,!0)!==0)break a;ou=t,r.timeoutHandle=qd(gu.bind(null,r,n,Xl,tu,Zl,t,Jl,X,Yl,Hl,o,`Throttled`,-0,0),a);break a}gu(r,n,Xl,tu,Zl,t,Jl,X,Yl,Hl,o,null,-0,0)}}break}while(1);rd(e)}function gu(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:tn},G(t,a,d);var m=(a&62914560)===a?Ql-De():(a&4194048)===a?$l-De():0;if(m=Jf(d,m),m!==null){ou=a,e.cancelPendingCommit=m(Iu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),vu(e,a,o,!l);return}}Iu(e,t,a,n,r,i,o,s,c)}function _u(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(!Sr(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 vu(e,t,n,r){t&=~ql,t&=~X,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-ze(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&et(e,n,t)}function yu(){return Rl&6?!0:(id(0,!1),!1)}function bu(){if(J!==null){if(Bl===0)var e=J.return;else e=J,qi=Ki=null,jo(e),Ma=null,Na=0,e=J;for(;e!==null;)Hc(e.alternate,e),e=e.return;J=null}}function xu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Jd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ou=0,bu(),q=e,J=n=li(e.current,null),zl=t,Bl=0,Vl=null,Hl=!1,Ul=Je(e,t),Wl=!1,Yl=Jl=ql=X=Kl=Y=0,Xl=Z=null,Zl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-ze(r),a=1<<i;t|=e[i],r&=~a}return Gl=t,$r(),n}function Su(e,t){B=null,k.H=Vs,t===Sa||t===wa?(t=Aa(),Bl=3):t===Ca?(t=Aa(),Bl=4):Bl=t===ac?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Vl=t,J===null&&(Y=1,$s(e,_i(t,e.current)))}function Cu(){var e=ro.current;return e===null?!0:(zl&4194048)===zl?io===null:(zl&62914560)===zl||zl&536870912?e===io:!1}function wu(){var e=k.H;return k.H=Vs,e===null?Vs:e}function Tu(){var e=k.A;return k.A=Il,e}function Eu(){Y=4,Hl||(zl&4194048)!==zl&&ro.current!==null||(Ul=!0),!(Kl&134217727)&&!(X&134217727)||q===null||vu(q,zl,Jl,!1)}function Du(e,t,n){var r=Rl;Rl|=2;var i=wu(),a=Tu();(q!==e||zl!==t)&&(tu=null,xu(e,t)),t=!1;var o=Y;a:do try{if(Bl!==0&&J!==null){var s=J,c=Vl;switch(Bl){case 8:bu(),o=6;break a;case 3:case 2:case 9:case 6:ro.current===null&&(t=!0);var l=Bl;if(Bl=0,Vl=null,Nu(e,s,c,l),n&&Ul){o=0;break a}break;default:l=Bl,Bl=0,Vl=null,Nu(e,s,c,l)}}Ou(),o=Y;break}catch(t){Su(e,t)}while(1);return t&&e.shellSuspendCounter++,qi=Ki=null,Rl=r,k.H=i,k.A=a,J===null&&(q=null,zl=0,$r()),o}function Ou(){for(;J!==null;)ju(J)}function ku(e,t){var n=Rl;Rl|=2;var r=wu(),a=Tu();q!==e||zl!==t?(tu=null,eu=De()+500,xu(e,t)):Ul=Je(e,t);a:do try{if(Bl!==0&&J!==null){t=J;var o=Vl;b:switch(Bl){case 1:Bl=0,Vl=null,Nu(e,t,o,1);break;case 2:case 9:if(Ea(o)){Bl=0,Vl=null,Mu(t);break}t=function(){Bl!==2&&Bl!==9||q!==e||(Bl=7),rd(e)},o.then(t,t);break a;case 3:Bl=7;break a;case 4:Bl=5;break a;case 7:Ea(o)?(Bl=0,Vl=null,Mu(t)):(Bl=0,Vl=null,Nu(e,t,o,7));break;case 5:var s=null;switch(J.tag){case 26:s=J.memoizedState;case 5:case 27:var c=J;if(s?Gf(s):c.stateNode.complete){Bl=0,Vl=null;var l=c.sibling;if(l!==null)J=l;else{var u=c.return;u===null?J=null:(J=u,Pu(u))}break b}}Bl=0,Vl=null,Nu(e,t,o,5);break;case 6:Bl=0,Vl=null,Nu(e,t,o,6);break;case 8:bu(),Y=6;break a;default:throw Error(i(462))}}Au();break}catch(t){Su(e,t)}while(1);return qi=Ki=null,k.H=r,k.A=a,Rl=n,J===null?(q=null,zl=0,$r(),Y):0}function Au(){for(;J!==null&&!Te();)ju(J)}function ju(e){var t=Nc(e.alternate,e,Gl);e.memoizedProps=e.pendingProps,t===null?Pu(e):J=t}function Mu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=_c(n,t,t.pendingProps,t.type,void 0,zl);break;case 11:t=_c(n,t,t.pendingProps,t.type.render,t.ref,zl);break;case 5:jo(t);default:Hc(n,t),t=J=ui(t,Gl),t=Nc(n,t,Gl)}e.memoizedProps=e.pendingProps,t===null?Pu(e):J=t}function Nu(e,t,n,r){qi=Ki=null,jo(t),Ma=null,Na=0;var i=t.return;try{if(ic(e,i,t,n,zl)){Y=1,$s(e,_i(n,e.current)),J=null;return}}catch(t){if(i!==null)throw J=i,t;Y=1,$s(e,_i(n,e.current)),J=null;return}t.flags&32768?(Pi||r===1?e=!0:Ul||zl&536870912?e=!1:(Hl=e=!0,(r===2||r===9||r===3||r===6)&&(r=ro.current,r!==null&&r.tag===13&&(r.flags|=16384))),Fu(t,e)):Pu(t)}function Pu(e){var t=e;do{if(t.flags&32768){Fu(t,Hl);return}e=t.return;var n=Bc(t.alternate,t,Gl);if(n!==null){J=n;return}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);Y===0&&(Y=5)}function Fu(e,t){do{var n=Vc(e.alternate,e);if(n!==null){n.flags&=32767,J=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){J=e;return}J=e=n}while(e!==null);Y=6,J=null}function Iu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Vu();while(ru!==0);if(Rl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Qr,$e(e,n,o,s,c,l),e===q&&(J=q=null,zl=0),au=t,iu=e,ou=n,su=o,cu=a,lu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Xu(je,function(){return Hu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=k.T,k.T=null,a=A.p,A.p=2,s=Rl,Rl|=4;try{sl(e,t,n)}finally{Rl=s,A.p=a,k.T=r}}ru=1,Lu(),Ru(),zu()}}function Lu(){if(ru===1){ru=0;var e=iu,t=au,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=k.T,k.T=null;var r=A.p;A.p=2;var i=Rl;Rl|=4;try{bl(t,e);var a=Bd,o=Dr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Er(s.ownerDocument.documentElement,s)){if(c!==null&&Or(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 _=Tr(s,h),v=Tr(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}}cp=!!zd,Bd=zd=null}finally{Rl=i,A.p=r,k.T=n}}e.current=t,ru=2}}function Ru(){if(ru===2){ru=0;var e=iu,t=au,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=k.T,k.T=null;var r=A.p;A.p=2;var i=Rl;Rl|=4;try{cl(e,t.alternate,t)}finally{Rl=i,A.p=r,k.T=n}}ru=3}}function zu(){if(ru===4||ru===3){ru=0,Ee();var e=iu,t=au,n=ou,r=lu;t.subtreeFlags&10256||t.flags&10256?ru=5:(ru=0,au=iu=null,Bu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(nu=null),it(n),t=t.stateNode,Le&&typeof Le.onCommitFiberRoot==`function`)try{Le.onCommitFiberRoot(Ie,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=k.T,i=A.p,A.p=2,k.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{k.T=t,A.p=i}}ou&3&&Vu(),rd(e),i=e.pendingLanes,n&261930&&i&42?e===du?uu++:(uu=0,du=e):uu=0,id(0,!1)}}function Bu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,la(t)))}function Vu(){return Lu(),Ru(),zu(),Hu()}function Hu(){if(ru!==5)return!1;var e=iu,t=su;su=0;var n=it(ou),r=k.T,a=A.p;try{A.p=32>n?32:n,k.T=null,n=cu,cu=null;var o=iu,s=ou;if(ru=0,au=iu=null,ou=0,Rl&6)throw Error(i(331));var c=Rl;if(Rl|=4,Pl(o.current),Dl(o,o.current,s,n),Rl=c,id(0,!1),Le&&typeof Le.onPostCommitFiberRoot==`function`)try{Le.onPostCommitFiberRoot(Ie,o)}catch{}return!0}finally{A.p=a,k.T=r,Bu(e,t)}}function Uu(e,t,n){t=_i(n,t),t=tc(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(Qe(e,2),rd(e))}function Wu(e,t,n){if(e.tag===3)Uu(e,e,n);else for(;t!==null;){if(t.tag===3){Uu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(nu===null||!nu.has(r))){e=_i(n,e),n=nc(2),r=Wa(t,n,2),r!==null&&(rc(n,r,t,e),Qe(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ll;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)||(Wl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,q===e&&(zl&n)===n&&(Y===4||Y===3&&(zl&62914560)===zl&&300>De()-Ql?!(Rl&2)&&xu(e,0):ql|=n,Yl===zl&&(Yl=0)),rd(e)}function qu(e,t){t===0&&(t=Xe()),e=ni(e,t),e!==null&&(Qe(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return Ce(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;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-ze(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=zl,a=qe(r,r===q?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Je(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Kd()&&(e=nd);for(var t=De(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}ru!==0&&ru!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-ze(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ye(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=q,n=zl,n=qe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Bl===2||Bl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&we(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Je(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&we(r),it(n)){case 2:case 8:n=Ae;break;case 32:n=je;break;case 268435456:n=Ne;break;default:n=je}return r=cd.bind(null,e),n=Ce(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&we(r),e.callbackPriority=2,e.callbackNode=null,2}function cd(e,t){if(ru!==0&&ru!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Vu()&&e.callbackNode!==n)return null;var r=zl;return r=qe(e,e===q?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(hu(e,r,t),sd(e,De()),e.callbackNode!=null&&e.callbackNode===n?cd.bind(null,e):null)}function ld(e,t){if(Vu())return null;hu(e,t,!0)}function ud(){Xd(function(){Rl&6?Ce(ke,ad):od()})}function dd(){if(nd===0){var e=fa;e===0&&(e=Ue,Ue<<=1,!(Ue&261888)&&(Ue=256)),nd=e}return nd}function fd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:en(``+e)}function pd(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 md(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=fd((i[lt]||null).action),o=r.submitter;o&&(t=(t=o[lt]||null)?fd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Sn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(nd!==0){var e=o?pd(i,o):new FormData(i);Ds(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?pd(i,o):new FormData(i),Ds(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var hd=0;hd<qr.length;hd++){var gd=qr[hd];Jr(gd.toLowerCase(),`on`+(gd[0].toUpperCase()+gd.slice(1)))}Jr(Br,`onAnimationEnd`),Jr(Vr,`onAnimationIteration`),Jr(Hr,`onAnimationStart`),Jr(`dblclick`,`onDoubleClick`),Jr(`focusin`,`onFocus`),Jr(`focusout`,`onBlur`),Jr(Ur,`onTransitionRun`),Jr(Wr,`onTransitionStart`),Jr(z,`onTransitionCancel`),Jr(Gr,`onTransitionEnd`),Tt(`onMouseEnter`,[`mouseout`,`mouseover`]),Tt(`onMouseLeave`,[`mouseout`,`mouseover`]),Tt(`onPointerEnter`,[`pointerout`,`pointerover`]),Tt(`onPointerLeave`,[`pointerout`,`pointerover`]),wt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),wt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),wt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),wt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),wt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),wt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var _d=`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(` `),vd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(_d));function yd(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){Yr(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){Yr(e)}i.currentTarget=null,a=c}}}}function bd(e,t){var n=t[dt];n===void 0&&(n=t[dt]=new Set);var r=e+`__bubble`;n.has(r)||(wd(t,e,2,!1),n.add(r))}function xd(e,t,n){var r=0;t&&(r|=4),wd(n,e,r,t)}var Sd=`_reactListening`+Math.random().toString(36).slice(2);function Cd(e){if(!e[Sd]){e[Sd]=!0,St.forEach(function(t){t!==`selectionchange`&&(vd.has(t)||xd(t,!1,e),xd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sd]||(t[Sd]=!0,xd(`selectionchange`,!1,t))}}function wd(e,t,n,r){switch(hp(t)){case 2:var i=lp;break;case 8:i=up;break;default:i=dp}n=i.bind(null,t,n,e),i=void 0,!pn||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 Td(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 s=r.stateNode.containerInfo;if(s===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(;s!==null;){if(o=_t(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}s=s.parentNode}}r=r.return}ln(function(){var r=a,i=rn(n),o=[];a:{var s=Kr.get(e);if(s!==void 0){var l=Sn,u=e;switch(e){case`keypress`:if(_n(n)===0)break a;case`keydown`:case`keyup`:l=Bn;break;case`focusin`:u=`focus`,l=jn;break;case`focusout`:u=`blur`,l=jn;break;case`beforeblur`:case`afterblur`:l=jn;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=kn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=An;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Hn;break;case Br:case Vr:case Hr:l=Mn;break;case Gr:l=Un;break;case`scroll`:case`scrollend`:l=wn;break;case`wheel`:l=Wn;break;case`copy`:case`cut`:case`paste`:l=Nn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Vn;break;case`toggle`:case`beforetoggle`:l=Gn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;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=un(m,p),g!=null&&d.push(Ed(m,g,h))),f)break;m=m.return}0<d.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,s&&n!==nn&&(u=n.relatedTarget||n.fromElement)&&(_t(u)||u[ut]))break a;if((l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?_t(u):null,u!==null&&(f=c(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=kn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Vn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?s:yt(l),h=u==null?s:yt(u),s=new d(g,m+`leave`,l,n,i),s.target=f,s.relatedTarget=h,g=null,_t(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=Od,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&&kd(o,s,l,d,!1),u!==null&&f!==null&&kd(o,f,u,d,!0)}}a:{if(s=r?yt(r):window,l=s.nodeName&&s.nodeName.toLowerCase(),l===`select`||l===`input`&&s.type===`file`)var v=dr;else if(ar(s))if(fr)v=xr;else{v=yr;var y=vr}else l=s.nodeName,!l||l.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Zt(r.elementType)&&(v=dr):v=br;if(v&&=v(e,r)){or(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Ut(s,`number`,s.value)}switch(y=r?yt(r):window,e){case`focusin`:(ar(y)||y.contentEditable===`true`)&&(Ar=y,jr=r,Mr=null);break;case`focusout`:Mr=jr=Ar=null;break;case`mousedown`:Nr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Nr=!1,Pr(o,n,i);break;case`selectionchange`:if(kr)break;case`keydown`:case`keyup`:Pr(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 tr?$n(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Xn&&n.locale!==`ko`&&(tr||x!==`onCompositionStart`?x===`onCompositionEnd`&&tr&&(b=L()):(hn=i,gn=`value`in hn?hn.value:hn.textContent,tr=!0)),y=Dd(r,x),0<y.length&&(x=new Pn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=er(n),b!==null&&(x.data=b)))),(b=Yn?nr(e,n):rr(e,n))&&(x=Dd(r,`onBeforeInput`),0<x.length&&(y=new Pn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),md(o,e,r,n,i)}yd(o,t)})}function Ed(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dd(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=un(e,n),i!=null&&r.unshift(Ed(e,i,a)),i=un(e,t),i!=null&&r.push(Ed(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Od(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kd(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=un(n,a),l!=null&&o.unshift(Ed(n,l,c))):i||(l=un(n,a),l!=null&&o.push(Ed(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ad=/\r\n?/g,jd=/\u0000|\uFFFD/g;function Md(e){return(typeof e==`string`?e:``+e).replace(Ad,` 10`).replace(jd,``)}function Nd(e,t){return t=Md(t),Md(e)===t}function Pd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&qt(e,``+r);break;case`className`:jt(e,`class`,r);break;case`tabIndex`:jt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:jt(e,n,r);break;case`style`:Xt(e,r,o);break;case`data`:if(t!==`object`){jt(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=en(``+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`&&Pd(e,t,`name`,a.name,a,null),Pd(e,t,`formEncType`,a.formEncType,a,null),Pd(e,t,`formMethod`,a.formMethod,a,null),Pd(e,t,`formTarget`,a.formTarget,a,null)):(Pd(e,t,`encType`,a.encType,a,null),Pd(e,t,`method`,a.method,a,null),Pd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=en(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=tn);break;case`onScroll`:r!=null&&bd(`scroll`,e);break;case`onScrollEnd`:r!=null&&bd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(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=en(``+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`:bd(`beforetoggle`,e),bd(`toggle`,e),At(e,`popover`,r);break;case`xlinkActuate`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Mt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Mt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Mt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:At(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=Qt.get(n)||n,At(e,n,r))}}function Fd(e,t,n,r,a,o){switch(n){case`style`:Xt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&qt(e,``+r);break;case`onScroll`:r!=null&&bd(`scroll`,e);break;case`onScrollEnd`:r!=null&&bd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=tn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Ct.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[lt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):At(e,n,r)}}}function Q(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:bd(`error`,e),bd(`load`,e);var r=!1,a=!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`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Pd(e,t,o,s,n,null)}}a&&Pd(e,t,`srcSet`,n.srcSet,n,null),r&&Pd(e,t,`src`,n.src,n,null);return;case`input`:bd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=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(i(137,t));break;default:Pd(e,t,r,d,n,null)}}Ht(e,o,c,l,u,s,a,!1);return;case`select`:for(a in bd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Pd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Wt(e,!!r,n,!0):Wt(e,!!r,t,!1);return;case`textarea`:for(s in bd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Pd(e,t,s,c,n,null)}Kt(e,r,a,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:Pd(e,t,l,r,n,null)}return;case`dialog`:bd(`beforetoggle`,e),bd(`toggle`,e),bd(`cancel`,e),bd(`close`,e);break;case`iframe`:case`object`:bd(`load`,e);break;case`video`:case`audio`:for(r=0;r<_d.length;r++)bd(_d[r],e);break;case`image`:bd(`error`,e),bd(`load`,e);break;case`details`:bd(`toggle`,e);break;case`embed`:case`source`:case`link`:bd(`error`,e),bd(`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(i(137,t));default:Pd(e,t,u,r,n,null)}return;default:if(Zt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Fd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Pd(e,t,c,r,n,null))}function Id(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 a=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)||Pd(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`:a=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(i(137,t));break;default:m!==f&&Pd(e,t,p,m,r,f)}}Vt(e,s,c,l,u,d,o,a);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)||Pd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Pd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Wt(e,!!n,n?[]:``,!1):Wt(e,!!n,t,!0)):Wt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Pd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Pd(e,t,s,a,r,o)}Gt(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:Pd(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:Pd(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)&&Pd(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(i(137,t));break;default:Pd(e,t,u,p,r,m)}return;default:if(Zt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Fd(e,t,_,void 0,r,p);
vendor: 4,463 bytes, line 10
10for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Fd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Pd(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||Pd(e,t,f,p,r,m)}function Ld(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Rd(){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&&Ld(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&&Ld(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 zd=null,Bd=null;function Vd(e){return e.nodeType===9?e:e.ownerDocument}function Hd(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 Ud(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 Wd(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 Gd=null;function Kd(){var e=window.event;return e&&e.type===`popstate`?e===Gd?!1:(Gd=e,!0):(Gd=null,!1)}var qd=typeof setTimeout==`function`?setTimeout:void 0,Jd=typeof clearTimeout==`function`?clearTimeout:void 0,Yd=typeof Promise==`function`?Promise:void 0,Xd=typeof queueMicrotask==`function`?queueMicrotask:Yd===void 0?qd:function(e){return Yd.resolve(null).then(e).catch(Zd)};function Zd(e){setTimeout(function(){throw e})}function Qd(e){return e===`head`}function $d(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),Pp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)mf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,mf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ht]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&mf(e.ownerDocument.body);n=i}while(n);Pp(t)}function ef(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 tf(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`:tf(n),gt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function nf(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[ht])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=lf(e.nextSibling),e===null)break}return null}function rf(e,t,n){if(t===``)return null;for(;
vendor: 20,894 bytes, line 10
10e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lf(e.nextSibling),e===null))return null;return e}function af(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lf(e.nextSibling),e===null))return null;return e}function of(e){return e.data===`$?`||e.data===`$~`}function sf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cf(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 lf(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 uf=null;function df(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function ff(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 pf(e,t,n){switch(t=Vd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function mf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gt(e)}var hf=new Map,gf=new Set;function _f(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vf=A.d;A.d={f:yf,r:bf,D:Cf,C:wf,L:Tf,m:Ef,X:Of,S:Df,M:kf};function yf(){var e=vf.f(),t=yu();return e||t}function bf(e){var t=vt(e);t!==null&&t.tag===5&&t.type===`form`?ks(t):vf.r(e)}var xf=typeof document>`u`?null:document;function Sf(e,t,n){var r=xf;if(r&&typeof t==`string`&&t){var i=Bt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Q(t,`link`,e),xt(t),r.head.appendChild(t)))}}function Cf(e){vf.D(e),Sf(`dns-prefetch`,e,null)}function wf(e,t){vf.C(e,t),Sf(`preconnect`,e,t)}function Tf(e,t,n){vf.L(e,t,n);var r=xf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Bt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Bt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Bt(n.imageSizes)+`"]`)):i+=`[href="`+Bt(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}hf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Q(t,`link`,e),xt(t),r.head.appendChild(t)))}}function Ef(e,t){vf.m(e,t);var n=xf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Bt(r)+`"][href="`+Bt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!hf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Q(r,`link`,e),xt(r),n.head.appendChild(r)}}}function Df(e,t,n){vf.S(e,t,n);var r=xf;if(r&&e){var i=bt(r).hoistableStyles,a=jf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);xt(c),Q(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,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){vf.X(e,t);var n=xf;if(n&&e){var r=bt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),xt(a),Q(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){vf.M(e,t);var n=xf;if(n&&e){var r=bt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),xt(a),Q(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var a=(a=P.current)?_f(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=jf(n.href),n=bt(a).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=jf(n.href);var o=bt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Mf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),hf.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},hf.set(e,n),o||Pf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Ff(n),n=bt(a).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(i(444,e))}}function jf(e){return`href="`+Bt(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(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}),Q(t,`link`,n),xt(t),e.head.appendChild(t))}function Ff(e){return`[src="`+Bt(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Bt(n.href)+`"]`);if(r)return t.instance=r,xt(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),xt(r),Q(r,`style`,a),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=jf(n.href);var o=e.querySelector(Mf(a));if(o)return t.state.loading|=4,t.instance=o,xt(o),o;r=Nf(n),(a=hf.get(a))&&zf(r,a),o=(e.ownerDocument||e).createElement(`link`),xt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Q(o,`link`,r),t.state.loading|=4,Rf(o,n.precedence,e),t.instance=o;case`script`:return o=Ff(n.src),(a=e.querySelector(If(o)))?(t.instance=a,xt(a),a):(r=n,(a=hf.get(o))&&(r=m({},n),Bf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),xt(a),Q(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Rf(r,n.precedence,e));return t.instance}function Rf(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 zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Vf=null;function Hf(e,t,n){if(Vf===null){var r=new Map,i=Vf=new Map;i.set(n,r)}else i=Vf,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[ht]||a[ct]||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 Uf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Wf(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 Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(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=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,xt(a);return}a=t.ownerDocument||t,r=Nf(r),(i=hf.get(i))&&zf(r,i),a=a.createElement(`link`),xt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Q(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=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&qf===0&&(qf=62500*Rd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.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=Yf.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 $f={$$typeof:S,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function ep(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=Ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ze(0),this.hiddenUpdates=Ze(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 tp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ep(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=si(3,null,null,t),e.current=a,a.stateNode=e,t=ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Va(a),e}function np(e){return e?(e=ai,e):ai}function rp(e,t,n,r,i,a){i=np(i),r.context===null?r.context=i:r.pendingContext=i,r=Ua(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Wa(e,r,t),n!==null&&(mu(n,e,t),Ga(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ap(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=ni(e,67108864);t!==null&&mu(t,e,67108864),ap(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=fu();t=rt(t);var n=ni(e,t);n!==null&&mu(n,e,t),ap(e,t)}}var cp=!0;function lp(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=2,dp(e,t,n,r)}finally{A.p=a,k.T=i}}function up(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=8,dp(e,t,n,r)}finally{A.p=a,k.T=i}}function dp(e,t,n,r){if(cp){var i=fp(r);if(i===null)Td(e,t,r,pp,n),wp(e,r);else if(Ep(i,e,t,n,r))r.stopPropagation();else if(wp(e,r),t&4&&-1<Cp.indexOf(e)){for(;i!==null;){var a=vt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ke(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-ze(o);s.entanglements[1]|=c,o&=~c}rd(a),!(Rl&6)&&(eu=De()+500,id(0,!1))}}break;case 31:case 13:s=ni(a,2),s!==null&&mu(s,a,2),yu(),ap(a,2)}if(a=fp(r),a===null&&Td(e,t,r,pp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Td(e,t,r,null,n)}}function fp(e){return e=rn(e),mp(e)}var pp=null;function mp(e){if(pp=null,e=_t(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=l(t),e!==null)return e;e=null}else if(n===31){if(e=u(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 pp=e,null}function hp(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(Oe()){case ke:return 2;case Ae:return 8;case je:case Me:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var gp=!1,_p=null,vp=null,yp=null,bp=new Map,xp=new Map,Sp=[],Cp=`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 wp(e,t){switch(e){case`focusin`:case`focusout`:_p=null;break;case`dragenter`:case`dragleave`:vp=null;break;case`mouseover`:case`mouseout`:yp=null;break;case`pointerover`:case`pointerout`:bp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:xp.delete(t.pointerId)}}function Tp(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=vt(t),t!==null&&op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ep(e,t,n,r,i){switch(t){case`focusin`:return _p=Tp(_p,e,t,n,r,i),!0;case`dragenter`:return vp=Tp(vp,e,t,n,r,i),!0;case`mouseover`:return yp=Tp(yp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return bp.set(a,Tp(bp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,xp.set(a,Tp(xp.get(a)||null,e,t,n,r,i)),!0}return!1}function Dp(e){var t=_t(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=l(n),t!==null){e.blockedOn=t,ot(e.priority,function(){sp(n)});return}}else if(t===31){if(t=u(n),t!==null){e.blockedOn=t,ot(e.priority,function(){sp(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 Op(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);nn=r,n.target.dispatchEvent(r),nn=null}else return t=vt(n),t!==null&&op(t),e.blockedOn=n,!1;t.shift()}return!0}function kp(e,t,n){Op(e)&&n.delete(t)}function Ap(){gp=!1,_p!==null&&Op(_p)&&(_p=null),vp!==null&&Op(vp)&&(vp=null),yp!==null&&Op(yp)&&(yp=null),bp.forEach(kp),xp.forEach(kp)}function jp(e,n){e.blockedOn===n&&(e.blockedOn=null,gp||(gp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ap)))}var Mp=null;function Np(e){Mp!==e&&(Mp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mp===e&&(Mp=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(mp(r||n)===null)continue;break}var a=vt(n);a!==null&&(e.splice(t,3),t-=3,Ds(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Pp(e){function t(t){return jp(t,e)}_p!==null&&jp(_p,e),vp!==null&&jp(vp,e),yp!==null&&jp(yp,e),bp.forEach(t),xp.forEach(t);for(var n=0;n<Sp.length;n++){var r=Sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Sp.length&&(n=Sp[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&Sp.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[lt]||null;if(typeof a==`function`)o||Np(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[lt]||null)s=o.formAction;else if(mp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Np(n)}}}function Fp(){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 Ip(e){this._internalRoot=e}Lp.prototype.render=Ip.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;rp(n,fu(),e,t,null,null)},Lp.prototype.unmount=Ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),yu(),t[ut]=null}};function Lp(e){this._internalRoot=e}Lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=at();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sp.length&&t!==0&&t<Sp[n].priority;n++);Sp.splice(n,0,e),n===0&&Dp(e)}};var Rp=n.version;if(Rp!==`19.2.0`)throw Error(i(527,Rp,`19.2.0`));A.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=f(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var zp={bundleType:0,version:`19.2.0`,rendererPackageName:`react-dom`,currentDispatcherRef:k,reconcilerVersion:`19.2.0`};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bp.isDisabled&&Bp.supportsFiber)try{Ie=Bp.inject(zp),Le=Bp}catch{}}e.hydrateRoot=function(e,t,n){if(!o(e))throw Error(i(299));var r=!1,a=``,s=Xs,c=Zs,l=Qs,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(a=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=tp(e,1,!0,t,n??null,r,a,u,s,c,l,Fp),t.context=np(null),n=t.current,r=fu(),r=rt(r),a=Ua(r),a.callback=null,Wa(n,a,r),n=r,t.current.lanes=n,Qe(t,n),rd(t),e[ut]=t.current,Cd(e),new Lp(t)}})),mn=i(((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=pn()})),hn=Symbol.for(`TSR_DEFERRED_PROMISE`);function gn(e,t){let n=e;return n[hn]?n:(n[hn]={status:`pending`},n.then(e=>{n[hn].status=`success`,n[hn].data=e}).catch(e=>{n[hn].status=`error`,n[hn].error={data:(t?.serializeError??h)(e),__isServerError:!0}}),n)}var I=o(),L=n(a(),1);function _n({promise:e}){if(ae)return ae(e);let t=gn(e);if(t[hn].status===`pending`)throw t;if(t[hn].status===`error`)throw t[hn].error;return t[hn].data}function vn(e){let t=(0,I.jsx)(yn,{...e});return e.fallback?(0,I.jsx)(L.Suspense,{fallback:e.fallback,children:t}):t}function yn(e){let t=_n(e);return e.children(t)}function bn(){let e=T(),t=L.useRef({router:e,mounted:!1}),[n,r]=L.useState(!1),{hasPendingMatches:i,isLoading:a}=A({select:e=>({isLoading:e.isLoading,hasPendingMatches:e.matches.some(e=>e.status===`pending`)}),structuralSharing:!0}),o=se(a),s=a||n||i,c=se(s),u=a||i,f=se(u);return e.startTransition=e=>{r(!0),L.startTransition(()=>{e(),r(!1)})},L.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 y(e.latestLocation.publicHref)!==y(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),oe(()=>{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]),oe(()=>{o&&!a&&e.emit({type:`onLoad`,...l(e.state)})},[o,e,a]),oe(()=>{f&&!u&&e.emit({type:`onBeforeRouteMount`,...l(e.state)})},[u,f,e]),oe(()=>{if(c&&!s){let t=l(e.state);e.emit({type:`onResolved`,...t}),e.__store.setState(e=>({...e,status:`idle`,resolvedLocation:e.location})),t.hrefChanged&&d(e)}},[s,c,e]),null}function xn(){let e=T(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,I.jsx)(t,{}):null,r=(0,I.jsxs)(typeof document<`u`&&e.ssr?m:L.Suspense,{fallback:n,children:[(0,I.jsx)(bn,{}),(0,I.jsx)(Sn,{})]});return e.options.InnerWrap?(0,I.jsx)(e.options.InnerWrap,{children:r}):r}function Sn(){let e=T(),t=A({select:e=>e.matches[0]?.id}),n=A({select:e=>e.loadedAt}),r=t?(0,I.jsx)(g,{matchId:t}):null;return(0,I.jsx)(le.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,I.jsx)(u,{getResetKey:()=>n,errorComponent:c,onCatch:e=>{O(!1,`The following error wasn't caught by any route! At the very least, consider setting an 'errorComponent' in your RootRoute!`),O(!1,e.message||e.toString())},children:r})})}function Cn(){let e=T();return A({select:e=>[e.location.href,e.resolvedLocation?.href,e.status],structuralSharing:!0}),L.useCallback(t=>{let{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a,...o}=t;return e.matchRoute(o,{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a})},[e])}var wn=e=>new Tn(e),Tn=class extends p{constructor(e){super(e)}};typeof globalThis<`u`?(globalThis.createFileRoute=N,globalThis.createLazyFileRoute=ue):typeof window<`u`&&(window.createFileRoute=N,window.createLazyFileRoute=ue);function En({router:e,children:t,...n}){Object.keys(n).length>
100&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,I.jsx)(S().Provider,{value:e,children:t});return e.options.Wrap?(0,I.jsx)(e.options.Wrap,{children:r}):r}function Dn({router:e,...t}){return(0,I.jsx)(En,{router:e,...t,children:(0,I.jsx)(xn,{})})}function On({tag:e,attrs:t,children:n,nonce:r}){switch(e){case`title`:return(0,I.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,I.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,I.jsx)(`link`,{...t,nonce:r,suppressHydrationWarning:!0});case`style`:return(0,I.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,I.jsx)(kn,{attrs:t,children:n});default:return null}}function kn({attrs:e,children:t}){T();let n=k(),r=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(L.useEffect(()=>{if(!r){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();if(Array.from(document.querySelectorAll(`script[src]`)).find(e=>e.src===t))return;let n=document.createElement(`script`);
10for(let[t,r]of Object.entries(e))t!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&n.setAttribute(t,typeof r==`boolean`?``:String(r));return document.head.appendChild(n),()=>{n.parentNode&&n.parentNode.removeChild(n)}}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;if(Array.from(document.querySelectorAll(`script:not([src])`)).find(e=>{if(!(e instanceof HTMLScriptElement))return!1;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;return e.textContent===t&&i===n&&a===r}))return;let i=document.createElement(`script`);if(i.textContent=t,e)for(let[t,n]of Object.entries(e))t!==`suppressHydrationWarning`&&n!==void 0&&n!==!1&&i.setAttribute(t,typeof n==`boolean`?``:String(n));return document.head.appendChild(i),()=>{i.parentNode&&i.parentNode.removeChild(i)}}}},[e,t,r]),r&&typeof t==`string`)return(0,I.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!n){if(e?.src)return(0,I.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,I.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var An=()=>{let e=T(),t=e.options.ssr?.nonce,n=A({select:e=>e.matches.map(e=>e.meta).filter(Boolean)}),r=L.useMemo(()=>{let e=[],r={},i;for(let a=n.length-1;a>=0;a--){let o=n[a];for(let n=o.length-1;n>=0;n--){let a=o[n];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:v(t)})}catch{}else{let n=a.name??a.property;if(n){if(r[n])continue;r[n]=!0}e.push({tag:`meta`,attrs:{...a,nonce:t}})}}}return i&&e.push(i),t&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),e.reverse(),e},[n,t]),i=A({select:n=>{let r=n.matches.map(e=>e.links).filter(Boolean).flat(1).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),i=e.ssr?.manifest,a=n.matches.map(e=>i?.routes[e.routeId]?.assets??[]).filter(Boolean).flat(1).filter(e=>e.tag===`link`).map(e=>({tag:`link`,attrs:{...e.attrs,suppressHydrationWarning:!0,nonce:t}}));return[...r,...a]},structuralSharing:!0}),a=A({select:n=>{let r=[];return n.matches.map(t=>e.looseRoutesById[t.routeId]).forEach(n=>e.ssr?.manifest?.routes[n.id]?.preloads?.filter(Boolean).forEach(e=>{r.push({tag:`link`,attrs:{rel:`modulepreload`,href:e,nonce:t}})})),r},structuralSharing:!0}),o=A({select:e=>e.matches.map(e=>e.styles).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),structuralSharing:!0}),s=A({select:e=>e.matches.map(e=>e.headScripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),structuralSharing:!0});return jn([...r,...a,...i,...o,...s],e=>JSON.stringify(e))};function jn(e,t){let n=new Set;return e.filter(e=>{let r=t(e);return n.has(r)?!1:(n.add(r),!0)})}function Mn(){let e=An(),t=T().options.ssr?.nonce;return(0,I.jsx)(I.Fragment,{children:e.map(e=>(0,L.createElement)(On,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:t}))})}var Nn=()=>{let e=T(),t=e.options.ssr?.nonce,n=A({select:n=>{let r=[],i=e.ssr?.manifest;return i?(n.matches.map(t=>e.looseRoutesById[t.routeId]).forEach(e=>i.routes[e.id]?.assets?.filter(e=>e.tag===`script`).forEach(e=>{r.push({tag:`script`,attrs:{...e.attrs,nonce:t},children:e.children})})),r):[]},structuralSharing:!0}),{scripts:r}=A({select:e=>({scripts:e.matches.map(e=>e.scripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,suppressHydrationWarning:!0,nonce:t},children:e}))}),structuralSharing:!0}),i;e.serverSsr&&(i=e.serverSsr.takeBufferedScripts());let a=[...r,...n];return i&&a.unshift(i),(0,I.jsx)(I.Fragment,{children:a.map((e,t)=>(0,L.createElement)(On,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})};function Pn(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}async function Fn(e){x(window.$_TSR,`Expected to find bootstrap data on window.$_TSR, but we did not. Please file an issue!`);let t=e.options.serializationAdapters;if(t?.length){let e=new Map;t.forEach(t=>{e.set(t.key,t.fromSerializable)}
10),window.$_TSR.t=e,window.$_TSR.buffer.forEach(e=>e())}window.$_TSR.initialized=!0,x(window.$_TSR.router,`Expected to find a dehydrated data on window.$_TSR.router, but we did not. Please file an issue!`);let{manifest:n,dehydratedData:r,lastMatchId:i}=window.$_TSR.router;e.ssr={manifest:n};let a=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:a};let o=e.matchRoutes(e.state.location),s=Promise.all(o.map(t=>{let n=e.looseRoutesById[t.routeId];return e.loadRouteChunk(n)}));function c(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=b();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 l(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let u;o.forEach(e=>{let t=window.$_TSR.router.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,l(e);return}Pn(e,t),l(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&u===void 0&&(u=e.index,c(e))}),e.__store.setState(e=>({...e,matches:o})),await e.options.hydrate?.(r),await Promise.all(e.state.matches.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=e.state.matches[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:e.state.location,navigate:t=>e.navigate({...t,_fromLocation:e.state.location}),buildLocation:e.buildLocation,cause:t.cause,abortController:t.abortController,preload:!1,matches:o,routeId:n.id};t.__routeContext=n.options.context(i)??void 0}t.context={...r,...t.__routeContext,...t.__beforeLoadContext};let i={ssr:e.options.ssr,matches:e.state.matches,match:t,params:t.params,loaderData:t.loaderData},a=await n.options.head?.(i),s=await n.options.scripts?.(i);t.meta=a?.meta,t.links=a?.links,t.headScripts=a?.scripts,t.styles=a?.styles,t.scripts=s}catch(e){if(w(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 d=o[o.length-1].id!==i;if(!o.some(e=>e.ssr===!1)&&!d)return o.forEach(e=>{e._nonReactive.dehydrated=void 0}),s;let f=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(d){let t=o[1];x(t,`Expected to find a match below the root match in SPA mode.`),c(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=f,f.then(()=>{_(()=>{e.__store.state.status===`pending`&&e.__store.setState(e=>({...e,status:`idle`,resolvedLocation:e.location})),e.updateMatch(t.id,e=>({...e,_displayPending:void 0,displayPendingPromise:void 0}))})})}return s}var In=ne({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(te in e)?!1:!!e[te],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>D(e)}),Ln=function(){return null},Rn=`/assets/app-CX3LWXer.css`,zn=(e,t,n,r,i,a,o,s)=>{let c=document.documentElement,l=[`light`,`dark`];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n=e===`class`,r=n&&a?i.map(e=>a[e]||e):i;n?(c.classList.remove(...r),c.classList.add(a&&a[t]?a[t]:t)):c.setAttribute(e,t)}),d(t)}function d(e){s&&l.includes(e)&&(c.style.colorScheme=e)}function f(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}if(r)u(r);else try{let e=localStorage.getItem(t)||n;u(o&&e===`system`?f():e)}catch{}},Bn=L.createContext(void 0),Vn={setTheme:e=>{},themes:[]},Hn=()=>L.useContext(Bn)??Vn;L.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:c,scriptProps:l})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return L.createElement(`script`,{...l,suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(${zn.toString()})(${u})`}})});var Un=n(s(),1);function Wn(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Gn=e=>{switch(e){case`success`:return Jn;case`info`:return Xn;case`warning`:return Yn;case`error`:return Zn;default:return null}},Kn=Array(12).fill(0),qn=({visible:e,className:t})=>L.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(
10Boolean).join(` `),"data-visible":e},L.createElement(`div`,{className:`sonner-spinner`},Kn.map((e,t)=>L.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),Jn=L.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},L.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),Yn=L.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},L.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),Xn=L.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},L.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),Zn=L.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},L.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),Qn=L.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},L.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),L.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),$n=()=>{let[e,t]=L.useState(document.hidden);return L.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},er=1,tr=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:er++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>
10this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],L.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(rr(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!L.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!L.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!L.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!L.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||er++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},nr=(e,t)=>
10{let n=t?.id||er++;return tr.addToast({title:e,...t,id:n}),n},rr=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,ir=Object.assign(nr,{success:tr.success,info:tr.info,warning:tr.warning,error:tr.error,custom:tr.custom,message:tr.message,promise:tr.promise,dismiss:tr.dismiss,loading:tr.loading},{getHistory:()=>tr.toasts,getToasts:()=>tr.getActiveToasts()});Wn(`
vendor: 14,859 bytes, line 10
10[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
10`);function ar(e){return e.label!==void 0}var or=3,sr=`24px`,cr=`16px`,lr=4e3,ur=356,dr=14,fr=45,pr=200;function mr(...e){return e.filter(Boolean).join(` `)}function hr(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var gr=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[E,D]=L.useState(null),[O,ee]=L.useState(null),[te,ne]=L.useState(!1),[re,ie]=L.useState(!1),[ae,k]=L.useState(!1),[A,oe]=L.useState(!1),[se,j]=L.useState(!1),[ce,M]=L.useState(0),[N,le]=L.useState(0),ue=L.useRef(n.duration||y||lr),P=L.useRef(null),de=L.useRef(null),F=c===0,fe=c+1<=o,pe=n.type,me=n.dismissible!==!1,he=n.className||``,ge=n.descriptionClassName||``,_e=L.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),ve=L.useMemo(()=>n.closeButton??p,[n.closeButton,p]),ye=L.useMemo(()=>n.duration||y||lr,[n.duration,y]),be=L.useRef(0),xe=L.useRef(0),Se=L.useRef(0),Ce=L.useRef(null),[we,Te]=b.split(`-`),Ee=L.useMemo(()=>
10s.reduce((e,t,n)=>n>=_e?e:e+t.height,0),[s,_e]),De=$n(),Oe=n.invert||t,ke=pe===`loading`;xe.current=L.useMemo(()=>_e*x+Ee,[_e,Ee]),L.useEffect(()=>{ue.current=ye},[ye]),L.useEffect(()=>{ne(!0)},[]),L.useEffect(()=>{let e=de.current;if(e){let t=e.getBoundingClientRect().height;return le(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),L.useLayoutEffect(()=>{if(!te)return;let e=de.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,le(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[te,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Ae=L.useCallback(()=>{ie(!0),M(xe.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},pr)},[n,d,a,xe]);L.useEffect(()=>{if(n.promise&&pe===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||De?(()=>{if(Se.current<be.current){let e=new Date().getTime()-be.current;ue.current-=e}Se.current=new Date().getTime()})():ue.current!==1/0&&(be.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Ae()},ue.current)),()=>clearTimeout(e)},[u,i,n,pe,De,Ae]),L.useEffect(()=>{n.delete&&(Ae(),n.onDismiss==null||n.onDismiss.call(n,n))},[Ae,n.delete]);function je(){return w?.loading?L.createElement(`div`,{className:mr(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":pe===`loading`},w.loading):L.createElement(qn,{className:mr(C?.loader,n?.classNames?.loader),visible:pe===`loading`})}let Me=n.icon||w?.[pe]||Gn(pe);return L.createElement(`li`,{tabIndex:0,ref:de,className:mr(_,he,C?.toast,n?.classNames?.toast,C?.default,C?.[pe],n?.classNames?.[pe]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":te,"data-promise":!!n.promise,"data-swiped":se,"data-removed":re,"data-visible":fe,"data-y-position":we,"data-x-position":Te,"data-index":c,"data-front":F,"data-swiping":ae,"data-dismissible":me,"data-type":pe,"data-invert":Oe,"data-swipe-out":A,"data-swipe-direction":O,"data-expanded":!!(u||S&&te),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${re?ce:xe.current}px`,"--initial-height":S?`auto`:`${N}px`,...m,...n.style},onDragEnd:()=>{k(!1),D(null),Ce.current=null},onPointerDown:e=>{e.button!==2&&(ke||!me||(P.current=new Date,M(xe.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(k(!0),Ce.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(A||!me)return;Ce.current=null;let e=Number(de.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(de.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-P.current?.getTime(),i=E===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=fr||a>.11){M(xe.current),n.onDismiss==null||n.onDismiss.call(n,n),ee(E===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Ae(),oe(!0);return}else{var o,s;(o=de.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=de.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}j(!1),k(!1),D(null)},onPointerMove:t=>{var n,r;if(!Ce.current||!me||window.getSelection()?.toString().length>0)return;let i=t.clientY-Ce.current.y,a=t.clientX-Ce.current.x,o=e.swipeDirections??hr(b);!E&&(Math.abs(a)>1||Math.abs(i)>1)&&D(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(E===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)<Math.abs(i)?e:i}}else if(E===`x`&&(o.includes(`left`)||o.includes(`right`)))if(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)<Math.abs(a)?e:a}(Math.abs(s.x)>0||Math.abs(s.y)>0)&&j(!0),(n=de.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=de.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},ve&&!n.jsx&&pe!==`loading`?L.createElement(`button`,{"aria-label":T,"data-disabled":ke,"data-close-button":!0,onClick:ke||!me?()=>{}:()=>{Ae(),n.onDismiss==null||n.onDismiss.call(n,n)},className:mr(C?.closeButton,n?.classNames?.closeButton)},w?.close??Qn):null,(pe||n.icon||n.promise)&&n.icon!==null&&(w?.[pe]!==null||n.icon)?L.createElement(`div`,{"data-icon":``,className:mr(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||je():null,n.type===`loading`?null:Me):null,L.createElement(`div`,{"data-content":``,className:mr(C?.content,n?.classNames?.content)},L.createElement(`div`,{"data-title":``,className:mr(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?L.createElement(`div`,{"data-description":``,className:mr(v,ge,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),L.isValidElement(n.cancel)?n.c
10ancel:n.cancel&&ar(n.cancel)?L.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{ar(n.cancel)&&me&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Ae())},className:mr(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,L.isValidElement(n.action)?n.action:n.action&&ar(n.action)?L.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{ar(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Ae())},className:mr(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function _r(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function vr(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?cr:sr;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var yr=L.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=or,toastOptions:g,dir:_=_r(),gap:v=dr,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=L.useState([]),C=L.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=L.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[T,E]=L.useState([]),[D,O]=L.useState(!1),[ee,te]=L.useState(!1),[ne,re]=L.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),ie=L.useRef(null),ae=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),k=L.useRef(null),A=L.useRef(!1),oe=L.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||tr.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return L.useEffect(()=>tr.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{Un.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),L.useEffect(()=>{if(d!==`system`){re(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?re(`dark`):re(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{re(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{re(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),L.useEffect(()=>{x.length<=1&&O(!1)},[x]),L.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;O(!0),(t=ie.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===ie.current||ie.current?.contains(document.activeElement))&&O(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),L.useEffect(()=>{if(ie.current)return()=>{k.current&&(k.current.focus({preventScroll:!0}),k.current=null,A.current=!1)}},[ie.current]),L.createElement(`section`,{ref:t,"aria-label":`${b} ${ae}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?L.createElement(`ol`,{key:t,dir:_===`auto`?_r():_,tabIndex:-1,ref:ie,className:c,"data-sonner-toaster":!0,"data-sonner-theme":ne,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${T[0]?.height||0}px`,"--width":`${ur}px`,"--gap":`${v}px`,...m,...vr(l,u)},onBlur:e=>{A.current&&!e.currentTarget.contains(e.relatedTarget)&&(A.current=!1,k.current&&=(k.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`fal
10se`||A.current||(A.current=!0,k.current=e.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{ee||O(!1)},onDragEnd:()=>O(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||te(!0)},onPointerUp:()=>te(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>L.createElement(gr,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:ee,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:oe,toasts:C.filter(e=>e.position==n.position),heights:T.filter(e=>e.position==n.position),setHeights:E,expandByDefault:o,gap:v,expanded:D,swipeDirections:e.swipeDirections}))):null}))}),br=de(),xr=e=>{let t=(0,br.c)(6),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let{theme:r}=Hn(),i=r===void 0?`system`:r,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a={"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`},t[2]=a):a=t[2];let o;return t[3]!==n||t[4]!==i?(o=(0,I.jsx)(yr,{theme:i,className:`toaster group`,style:a,...n}),t[3]=n,t[4]=i,t[5]=o):o=t[5],o};Object.freeze({status:`aborted`});function R(e,t,n){function r(n,r){var i;Object.defineProperty(n,`_zod`,{value:n._zod??{},enumerable:!1}),(i=n._zod).traits??(i.traits=new Set),n._zod.traits.add(e),t(n,r);for(let e in o.prototype)e in n||Object.defineProperty(n,e,{value:o.prototype[e].bind(n)});n._zod.constr=o,n._zod.def=r}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var Sr=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Cr=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},wr={};function Tr(e){return e&&Object.assign(wr,e),wr}function Er(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Dr(e,t){return typeof t==`bigint`?t.toString():t}function Or(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function kr(e){return e==null}function Ar(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function jr(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}var Mr=Symbol(`evaluating`);function Nr(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Mr)return r===void 0&&(r=Mr,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Pr(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Fr(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function Ir(e){return JSON.stringify(e)}var Lr=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Rr(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var zr=Or(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Br(e){if(Rr(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(Rr(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Vr(e){return Br(e)?{...e}:Array.isArray(e)?[...e]:e}
10var Hr=new Set([`string`,`number`,`symbol`]);function Ur(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Wr(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function z(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Gr(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Kr={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function qr(e,t){let n=e._zod.def;return Wr(e,Fr(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return Pr(this,`shape`,e),e},checks:[]}))}function Jr(e,t){let n=e._zod.def;return Wr(e,Fr(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Pr(this,`shape`,r),r},checks:[]}))}function Yr(e,t){if(!Br(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0)throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");return Wr(e,Fr(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Pr(this,`shape`,n),n},checks:[]}))}function Xr(e,t){if(!Br(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Wr(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return Pr(this,`shape`,n),n},checks:e._zod.def.checks})}function Zr(e,t){return Wr(e,Fr(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Pr(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function Qr(e,t,n){return Wr(t,Fr(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return Pr(this,`shape`,i),i},checks:[]}))}function $r(e,t,n){return Wr(t,Fr(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return Pr(this,`shape`,i),i},checks:[]}))}function ei(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ti(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function ni(e){return typeof e==`string`?e:e?.message}function ri(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=ni(e.inst?._zod.def?.error?.(e))??ni(t?.error?.(e))??ni(n.customError?.(e))??ni(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function ii(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function ai(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var oi=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,Dr,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},si=R(`$ZodError`,oi),ci=R(`$ZodError`,oi,{Parent:Error});function li(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function ui(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});
vendor: 6,476 bytes, line 10
10else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var di=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Sr;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>ri(e,a,Tr())));throw Lr(t,i?.callee),t}return o.value},fi=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>ri(e,a,Tr())));throw Lr(t,i?.callee),t}return o.value},pi=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Sr;return a.issues.length?{success:!1,error:new(e??si)(a.issues.map(e=>ri(e,i,Tr())))}:{success:!0,data:a.value}},mi=pi(ci),hi=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>ri(e,i,Tr())))}:{success:!0,data:a.value}},gi=hi(ci),_i=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return di(e)(t,n,i)},vi=e=>(t,n,r)=>di(e)(t,n,r),yi=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return fi(e)(t,n,i)},bi=e=>async(t,n,r)=>fi(e)(t,n,r),xi=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return pi(e)(t,n,i)},Si=e=>(t,n,r)=>pi(e)(t,n,r),Ci=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return hi(e)(t,n,i)},wi=e=>async(t,n,r)=>hi(e)(t,n,r),Ti=/^[cC][^\s-]{8,}$/,Ei=/^[0-9a-z]+$/,Di=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Oi=/^[0-9a-vA-V]{20}$/,ki=/^[A-Za-z0-9]{27}$/,Ai=/^[a-zA-Z0-9_-]{21}$/,ji=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Mi=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ni=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Pi=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Fi=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function Ii(){return new RegExp(Fi,`u`)}var Li=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ri=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,zi=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Bi=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Vi=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Hi=/^[A-Za-z0-9_-]*$/,Ui=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Wi=/^\+(?:[0-9]){6,14}[0-9]$/,Gi=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Ki=RegExp(`^${Gi}$`);function qi(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ji(e){return RegExp(`^${qi(e)}$`)}function Yi(e){let t=qi({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Gi}T(?:${r})$`)}var Xi=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Zi=/^-?\d+$/,Qi=/^-?\d+(?:\.\d+)?/,$i=/^(?:true|false)$/i,ea=/^[^A-Z]*$/,ta=/^[^a-z]*$/,na=R(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ra={number:`number`,bigint:`bigint`,object:`date`},ia=R(`$ZodCheckLessThan`,(e,t)=>{na.init(e,t);let n=ra[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),aa=R(`$ZodCheckGreaterThan`,(e,t)=>{na.init(e,t);let n=ra[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),oa=R(`$ZodCheckMultipleOf`,(e,t)=>{na.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):jr(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),sa=R(`$ZodCheckNumberFormat`,(e,t)=>{na.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Kr[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Zi)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>
vendor: 8,703 bytes, lines 10-12
100?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inst:e})}}),ca=R(`$ZodCheckMaxLength`,(e,t)=>{var n;na.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!kr(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=ii(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),la=R(`$ZodCheckMinLength`,(e,t)=>{var n;na.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!kr(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=ii(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ua=R(`$ZodCheckLengthEquals`,(e,t)=>{var n;na.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!kr(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=ii(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),da=R(`$ZodCheckStringFormat`,(e,t)=>{var n,r;na.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),fa=R(`$ZodCheckRegex`,(e,t)=>{da.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),pa=R(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=ea,da.init(e,t)}),ma=R(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=ta,da.init(e,t)}),ha=R(`$ZodCheckIncludes`,(e,t)=>{na.init(e,t);let n=Ur(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),ga=R(`$ZodCheckStartsWith`,(e,t)=>{na.init(e,t);let n=RegExp(`^${Ur(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),_a=R(`$ZodCheckEndsWith`,(e,t)=>{na.init(e,t);let n=RegExp(`.*${Ur(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),va=R(`$ZodCheckOverwrite`,(e,t)=>{na.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),ya=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` 11`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` 12`))}},ba={major:4,minor:1,patch:12},xa=R(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ba;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=ei(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new Sr;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=ei(e,t))});else{if(e.issues.length===t)continue;r||=ei(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(ei(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new Sr;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new Sr;return o.then(e=>t(e,r,a))}return t(o,r,a)}}e[`~standard`]={validate:t=>{try{let n=mi(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return gi(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}}),Sa=R(`$ZodString`,(e,t)=>{xa.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Xi(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Ca=R(`$ZodStringFormat`,(e,t)=>{da.init(e,t),Sa.init(e,t)}),wa=R(`$ZodGUID`,(e,t)=>{t.pattern??=Mi,Ca.init(e,t)}),Ta=R(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Ni(e)}else t.pattern??=Ni();Ca.init(e,t)}),Ea=R(`$ZodEmail`,(e,t)=>{t.pattern??=Pi,Ca.init(e,t)}),Da=R(`$ZodURL`,(e,t)=>{Ca.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:Ui.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Oa=R(`$ZodEmoji`,(e,t)=>{t.pattern??=Ii(),Ca.init(e,t)}),ka=R(`$ZodNanoID`,(e,t)=>{t.pattern??=Ai,Ca.init(e,t)}),Aa=R(`$ZodCUID`,(e,t)=>{t.pattern??=Ti,Ca.init(e,t)}),ja=R(`$ZodCUID2`,(e,t)=>{t.pattern??=Ei,Ca.init(e,t)}),Ma=R(`$ZodULID`,(e,t)=>{t.pattern??=Di,Ca.init(e,t)}),Na=R(`$ZodXID`,(e,t)=>{t.pattern??=Oi,Ca.init(e,t)}),Pa=R(`$ZodKSUID`,(e,t)=>{t.pattern??=ki,Ca.init(e,t)}),Fa=R(`$ZodISODateTime`,(e,t)=>{t.pattern??=Yi(t),Ca.init(e,t)}),Ia=R(`$ZodISODate`,(e,t)=>{t.pattern??=Ki,Ca.init(e,t)}),La=R(`$ZodISOTime`,(e,t)=>{t.pattern??=Ji(t),Ca.init(e,t)}),Ra=R(`$ZodISODuration`,(e,t)=>{t.pattern??=ji,Ca.init(e,t)}),za=R(`$ZodIPv4`,(e,t)=>{t.pattern??=Li,Ca.init(e,t),e._zod.onattach.push(e=>{let t=e._zod.bag;t.format=`ipv4`})}),Ba=R(`$ZodIPv6`,(e,t)=>{t.pattern??=Ri,Ca.init(e,t),e._zod.onattach.push(e=>{let t=e._zod.bag;t.format=`ipv6`}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Va=R(`$ZodCIDRv4`,(e,t)=>{t.pattern??=zi,Ca.init(e,t)}),Ha=R(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Bi,Ca.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Ua(e){if(e===``)return!0;
vendor: 6,224 bytes, lines 12-29
12if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Wa=R(`$ZodBase64`,(e,t)=>{t.pattern??=Vi,Ca.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding=`base64`}),e._zod.check=n=>{Ua(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Ga(e){if(!Hi.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Ua(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Ka=R(`$ZodBase64URL`,(e,t)=>{t.pattern??=Hi,Ca.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding=`base64url`}),e._zod.check=n=>{Ga(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),qa=R(`$ZodE164`,(e,t)=>{t.pattern??=Wi,Ca.init(e,t)});function Ja(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Ya=R(`$ZodJWT`,(e,t)=>{Ca.init(e,t),e._zod.check=n=>{Ja(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Xa=R(`$ZodNumber`,(e,t)=>{xa.init(e,t),e._zod.pattern=e._zod.bag.pattern??Qi,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Za=R(`$ZodNumber`,(e,t)=>{sa.init(e,t),Xa.init(e,t)}),Qa=R(`$ZodBoolean`,(e,t)=>{xa.init(e,t),e._zod.pattern=$i,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),$a=R(`$ZodUnknown`,(e,t)=>{xa.init(e,t),e._zod.parse=e=>e}),eo=R(`$ZodNever`,(e,t)=>{xa.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function to(e,t,n){e.issues.length&&t.issues.push(...ti(n,e.issues)),t.value[n]=e.value}var no=R(`$ZodArray`,(e,t)=>{xa.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>to(t,n,e))):to(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function ro(e,t,n,r){e.issues.length&&t.issues.push(...ti(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function io(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Gr(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function ao(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type;for(let i of Object.keys(t)){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>ro(e,n,i,t))):ro(a,n,i,t)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var oo=R(`$ZodObject`,(e,t)=>{if(xa.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=Or(()=>io(t));Nr(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Rr,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e]._zod.run({value:s[e],issues:[]},o);n instanceof Promise?c.push(n.then(n=>ro(n,t,e,s))):ro(n,t,e,s)}return i?ao(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),so=R(`$ZodObjectJIT`,(e,t)=>{oo.init(e,t);let n=e._zod.parse,r=Or(()=>io(t)),i=e=>{let t=new ya([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Ir(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let e of n.keys){let n=a[e],r=Ir(e);t.write(`const ${n} = ${i(e)};`),t.write(` 13 if (${n}.issues.length) { 14 payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ 15 ...iss, 16 path: iss.path ? [${r}, ...iss.path] : [${r}] 17 }))); 18 } 19 20 21 if (${n}.value === undefined) { 22 if (${r} in input) { 23 newResult[${r}] = undefined; 24 } 25 } else { 26 newResult[${r}] = ${n}.value; 27 } 28 29 `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Rr,s=!wr.jitless,c=s&&zr.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?ao([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function co(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!ei(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>ri(e,r,Tr())))}),t)}var lo=R(`$ZodUnion`,(e,t)=>{xa.init(e,t),Nr(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),Nr(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),Nr(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),Nr(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Ar(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>
vendor: 9,557 bytes, line 29
29{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>co(t,i,e,a)):co(s,i,e,a)}}),uo=R(`$ZodIntersection`,(e,t)=>{xa.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>po(e,t,n)):po(e,i,a)}});function fo(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Br(e)&&Br(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=fo(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=fo(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function po(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),ei(e))return e;let r=fo(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}var B=R(`$ZodRecord`,(e,t)=>{xa.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Br(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[];if(t.keyType._zod.values){let o=t.keyType._zod.values;n.value={};for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...ti(e,t.issues)),n.value[e]=t.value})):(o.issues.length&&n.issues.push(...ti(e,o.issues)),n.value[e]=o.value)}let s;for(let e in i)o.has(e)||(s??=[],s.push(e));s&&s.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:s})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>ri(e,r,Tr())),input:o,path:[o],inst:e}),n.value[s.value]=s.value;continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...ti(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...ti(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),mo=R(`$ZodEnum`,(e,t)=>{xa.init(e,t);let n=Er(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Hr.has(typeof e)).map(e=>typeof e==`string`?Ur(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),ho=R(`$ZodTransform`,(e,t)=>{xa.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Cr(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new Sr;return n.value=i,n}});function go(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var _o=R(`$ZodOptional`,(e,t)=>{xa.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,Nr(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Nr(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Ar(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>go(t,e.value)):go(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),vo=R(`$ZodNullable`,(e,t)=>{xa.init(e,t),Nr(e._zod,`optin`,()=>t.innerType._zod.optin),Nr(e._zod,`optout`,()=>t.innerType._zod.optout),Nr(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Ar(e.source)}|null)$`):void 0}),Nr(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),yo=R(`$ZodDefault`,(e,t)=>{xa.init(e,t),e._zod.optin=`optional`,Nr(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>bo(e,t)):bo(r,t)}});function bo(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var xo=R(`$ZodPrefault`,(e,t)=>{xa.init(e,t),e._zod.optin=`optional`,Nr(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),So=R(`$ZodNonOptional`,(e,t)=>{xa.init(e,t),Nr(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Co(t,e)):Co(i,e)}});function Co(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var wo=R(`$ZodCatch`,(e,t)=>{xa.init(e,t),Nr(e._zod,`optin`,()=>t.innerType._zod.optin),Nr(e._zod,`optout`,()=>t.innerType._zod.optout),Nr(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>ri(e,n,Tr()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>ri(e,n,Tr()))},input:e.value}),e.issues=[]),e)}}),To=R(`$ZodPipe`,(e,t)=>{xa.init(e,t),Nr(e._zod,`values`,()=>t.in._zod.values),Nr(e._zod,`optin`,()=>t.in._zod.optin),Nr(e._zod,`optout`,()=>t.out._zod.optout),Nr(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Eo(e,t.in,n)):Eo(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Eo(e,t.out,n)):Eo(r,t.out,n)}});function Eo(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Do=R(`$ZodReadonly`,(e,t)=>{xa.init(e,t),Nr(e._zod,`propValues`,()=>t.innerType._zod.propValues),Nr(e._zod,`values`,()=>t.innerType._zod.values),Nr(e._zod,`optin`,()=>t.innerType._zod.optin),Nr(e._zod,`optout`,()=>t.innerType._zod.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Oo):Oo(r)}});function Oo(e){return e.value=Object.freeze(e.value),e}var ko=R(`$ZodCustom`,(e,t)=>{na.init(e,t),xa.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Ao(t,n,r,e));Ao(i,n,r,e)}});function Ao(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(ai(e))}}var jo=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&typeof n==`object`&&`id`in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Mo(){return new jo}var No=Mo();function Po(e,t){return new e({type:`string`,...z(t)})}function Fo(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...z(t)})}function Io(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...z(t)})}function Lo(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...z(t)})}function Ro(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...z(t)})}function zo(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...z(t)})}function Bo(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...z(t)})}function Vo(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...z(t)})}function Ho(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...z(t)})}function Uo(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...z(t)})}function Wo(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...z(t)})}function Go(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...z(t)})}function Ko(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...z(t)})}function qo(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...z(t)})}
vendor: 3,195 bytes, line 29
29function Jo(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...z(t)})}function Yo(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...z(t)})}function Xo(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...z(t)})}function Zo(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...z(t)})}function Qo(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...z(t)})}function $o(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...z(t)})}function es(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...z(t)})}function ts(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...z(t)})}function ns(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...z(t)})}function rs(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...z(t)})}function is(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...z(t)})}function as(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...z(t)})}function os(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...z(t)})}function ss(e,t){return new e({type:`number`,checks:[],...z(t)})}function cs(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...z(t)})}function ls(e,t){return new e({type:`boolean`,...z(t)})}function us(e){return new e({type:`unknown`})}function ds(e,t){return new e({type:`never`,...z(t)})}function fs(e,t){return new ia({check:`less_than`,...z(t),value:e,inclusive:!1})}function ps(e,t){return new ia({check:`less_than`,...z(t),value:e,inclusive:!0})}function ms(e,t){return new aa({check:`greater_than`,...z(t),value:e,inclusive:!1})}function hs(e,t){return new aa({check:`greater_than`,...z(t),value:e,inclusive:!0})}function gs(e,t){return new oa({check:`multiple_of`,...z(t),value:e})}function _s(e,t){return new ca({check:`max_length`,...z(t),maximum:e})}function vs(e,t){return new la({check:`min_length`,...z(t),minimum:e})}function ys(e,t){return new ua({check:`length_equals`,...z(t),length:e})}function bs(e,t){return new fa({check:`string_format`,format:`regex`,...z(t),pattern:e})}function xs(e){return new pa({check:`string_format`,format:`lowercase`,...z(e)})}function Ss(e){return new ma({check:`string_format`,format:`uppercase`,...z(e)})}function Cs(e,t){return new ha({check:`string_format`,format:`includes`,...z(t),includes:e})}function ws(e,t){return new ga({check:`string_format`,format:`starts_with`,...z(t),prefix:e})}function Ts(e,t){return new _a({check:`string_format`,format:`ends_with`,...z(t),suffix:e})}function Es(e){return new va({check:`overwrite`,tx:e})}function Ds(e){return Es(t=>t.normalize(e))}function Os(){return Es(e=>e.trim())}function ks(){return Es(e=>e.toLowerCase())}function As(){return Es(e=>e.toUpperCase())}function js(e,t,n){return new e({type:`array`,element:t,...z(n)})}function Ms(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...z(n)})}function Ns(e){let t=Ps(n=>
29(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(ai(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(ai(r))}},e(n.value,n)));return t}function Ps(e,t){let n=new na({check:`custom`,...z(t)});return n._zod.check=e,n}var Fs=R(`ZodISODateTime`,(e,t)=>{Fa.init(e,t),H.init(e,t)});function Is(e){return rs(Fs,e)}var Ls=R(`ZodISODate`,(e,t)=>{Ia.init(e,t),H.init(e,t)});function Rs(e){return is(Ls,e)}var zs=R(`ZodISOTime`,(e,t)=>{La.init(e,t),H.init(e,t)});function Bs(e){return as(zs,e)}var Vs=R(`ZodISODuration`,(e,t)=>{Ra.init(e,t),H.init(e,t)});function Hs(e){return os(Vs,e)}var Us=(e,t)=>{si.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>ui(e,t)},flatten:{value:t=>li(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Dr,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Dr,2)}},isEmpty:{get(){return e.issues.length===0}}})};R(`ZodError`,Us);var Ws=R(`ZodError`,Us,{Parent:Error}),Gs=di(Ws),Ks=fi(Ws),qs=pi(Ws),Js=hi(Ws),Ys=_i(Ws),Xs=vi(Ws),Zs=yi(Ws),Qs=bi(Ws),$s=xi(Ws),ec=Si(Ws),tc=Ci(Ws),nc=wi(Ws),rc=R(`ZodType`,(e,t)=>(xa.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(Fr(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]})),e.clone=(t,n)=>Wr(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Gs(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>qs(e,t,n),e.parseAsync=async(t,n)=>Ks(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Js(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Ys(e,t,n),e.decode=(t,n)=>Xs(e,t,n),e.encodeAsync=async(t,n)=>Zs(e,t,n),e.decodeAsync=async(t,n)=>Qs(e,t,n),e.safeEncode=(t,n)=>$s(e,t,n),e.safeDecode=(t,n)=>ec(e,t,n),e.safeEncodeAsync=async(t,n)=>tc(e,t,n),e.safeDecodeAsync=async(t,n)=>nc(e,t,n),e.refine=(t,n)=>e.check(pl(t,n)),e.superRefine=t=>e.check(ml(t)),e.overwrite=t=>e.check(Es(t)),e.optional=()=>Zc(e),e.nullable=()=>$c(e),e.nullish=()=>Zc($c(e)),e.nonoptional=t=>al(e,t),e.array=()=>Ic(e),e.or=t=>Vc([e,t]),e.and=t=>Uc(e,t),e.transform=t=>ll(e,Yc(t)),e.default=t=>tl(e,t),e.prefault=t=>rl(e,t),e.catch=t=>sl(e,t),e.pipe=t=>ll(e,t),e.readonly=()=>dl(e),e.describe=t=>{let n=e.clone();return No.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return No.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return No.get(e);let n=e.clone();return No.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),ic=R(`_ZodString`,(e,t)=>{Sa.init(e,t),rc.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(bs(...t)),e.includes=(...t)=>e.check(Cs(...t)),e.startsWith=(...t)=>e.check(ws(...t)),e.endsWith=(...t)=>e.check(Ts(...t)),e.min=(...t)=>e.check(vs(...t)),e.max=(...t)=>e.check(_s(...t)),e.length=(...t)=>e.check(ys(...t)),e.nonempty=(...t)=>e.check(vs(1,...t)),e.lowercase=t=>e.check(xs(t)),e.uppercase=t=>e.check(Ss(t)),e.trim=()=>e.check(Os()),e.normalize=(...t)=>e.check(Ds(...t)),e.toLowerCase=()=>e.check(ks()),e.toUpperCase=()=>e.check(As())}),ac=R(`ZodString`,(e,t)=>{Sa.init(e,t),ic.init(e,t),e.email=t=>e.check(Fo(oc,t)),e.url=t=>e.check(Vo(lc,t)),e.jwt=t=>e.check(ns(wc,t)),e.emoji=t=>e.check(Ho(uc,t)),e.guid=t=>e.check(Io(sc,t)),e.uuid=t=>e.check(Lo(cc,t)),e.uuidv4=t=>e.check(Ro(cc,t)),e.uuidv6=t=>e.check(zo(cc,t)),e.uuidv7=t=>e.check(Bo(cc,t)),e.nanoid=t=>e.check(Uo(dc,t)),e.guid=t=>e.check(Io(sc,t)),e.cuid=t=>e.check(Wo(fc,t)),e.cuid2=t=>e.check(Go(pc,t)),e.ulid=t=>e.check(Ko(mc,t)),e.base64=t=>e.check($o(xc,t)),e.base64url=t=>e.check(es(Sc,t)),e.xid=t=>e.check(qo(hc,t)),e.ksuid=t=>e.check(Jo(gc,t)),e.ipv4=t=>e.check(Yo(_c,t)),e.ipv6=t=>e.check(Xo(vc,t)),e.cidrv4=t=>e.check(Zo(yc,t)),e.cidrv6=t=>e.check(Qo(bc,t)),e.e164=t=>e.check(ts(Cc,t)),e.datetime=t=>e.check(Is(t)),e.date=t=>e.check(Rs(t)),e.time=t=>e.check(Bs(t)),e.duration=t=>e.check(Hs(t))});function V(e){return Po(ac,e)}var H=R(`ZodStringFormat`,(e,t)=>{Ca.init(e,t),ic.init(e,t)}),oc=R(`ZodEmail`,(e,t)=>{Ea.init(e,t),H.init(e,t)}),sc=R(`ZodGUID`,(e,t)=>{wa.init(e,t),H.init(e,t)}),cc=R(`ZodUUID`,(e,t)=>{Ta.init(e,t),H.init(e,t)}),lc=R(`ZodURL`,(e,t)=>{Da.init(e,t),H.init(e,t)}),uc=R(`ZodEmoji`,(e,t)=>{Oa.init(e,t),H.init(e,t)}),dc=R(`ZodNanoID`,(e,t)=>{ka.init(e,t),H.init(e,t)}),fc=R(`ZodCUID`,(e,t)=>{Aa.init(e,t),H.init(e,t)}),pc=R(`ZodCUID2`,(e,t)=>{ja.init(e,t),H.init(e,t)}),mc=R(`ZodULID`,(e,t)=>{Ma.init(e,t),H.init(e,t)}),hc=R(`ZodXID`,(e,t)=>{Na.init(e,t),H.init(e,t)}),gc=R(`ZodKSUID`,(e,t)=>{Pa.init(e,t),H.init(e,t)}),_c=R(`ZodIPv4`,(e,t)=>{za.init(e,t),H.init(e,t)}),vc=R(`ZodIPv6`,(e,t)=>{Ba.init(e,t),H.init(e,t)}),yc=R(`ZodCIDRv4`,(e,t)=>{Va.init(e,t),H.init(e,t)}),bc=R(`ZodCIDRv6`,(e,t)=>{Ha.init(e,t),H.init(e,t)}),xc=R(`ZodBase64`,(e,t)=>{Wa.init(e,t),H.init(e,t)}),Sc=R(`ZodBase64URL`,(e,t)=>{Ka.init(e,t),H.init(e,t)}),Cc=R(`ZodE164`,(e,t)=>{qa.init(e,t),H.init(e,t)}),wc=R(`ZodJWT`,(e,t)=>{Ya.init(e,t),H.init(e,t)}),Tc=R(`ZodNumber`,(e,t)=>{Xa.init(e,t),rc.init(e,t),e.gt=(t,n)=>e.check(ms(t,n)),e.gte=(t,n)=>e.check(hs(t,n)),e.min=(t,n)=>e.check(hs(t,n)),e.lt=(t,n)=>
29e.check(fs(t,n)),e.lte=(t,n)=>e.check(ps(t,n)),e.max=(t,n)=>e.check(ps(t,n)),e.int=t=>e.check(Oc(t)),e.safe=t=>e.check(Oc(t)),e.positive=t=>e.check(ms(0,t)),e.nonnegative=t=>e.check(hs(0,t)),e.negative=t=>e.check(fs(0,t)),e.nonpositive=t=>e.check(ps(0,t)),e.multipleOf=(t,n)=>e.check(gs(t,n)),e.step=(t,n)=>e.check(gs(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Ec(e){return ss(Tc,e)}var Dc=R(`ZodNumberFormat`,(e,t)=>{Za.init(e,t),Tc.init(e,t)});function Oc(e){return cs(Dc,e)}var kc=R(`ZodBoolean`,(e,t)=>{Qa.init(e,t),rc.init(e,t)});function Ac(e){return ls(kc,e)}var jc=R(`ZodUnknown`,(e,t)=>{$a.init(e,t),rc.init(e,t)});function Mc(){return us(jc)}var Nc=R(`ZodNever`,(e,t)=>{eo.init(e,t),rc.init(e,t)});function Pc(e){return ds(Nc,e)}var Fc=R(`ZodArray`,(e,t)=>{no.init(e,t),rc.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(vs(t,n)),e.nonempty=t=>e.check(vs(1,t)),e.max=(t,n)=>e.check(_s(t,n)),e.length=(t,n)=>e.check(ys(t,n)),e.unwrap=()=>e.element});function Ic(e,t){return js(Fc,e,t)}var Lc=R(`ZodObject`,(e,t)=>{so.init(e,t),rc.init(e,t),Nr(e,`shape`,()=>t.shape),e.keyof=()=>qc(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Mc()}),e.loose=()=>e.clone({...e._zod.def,catchall:Mc()}),e.strict=()=>e.clone({...e._zod.def,catchall:Pc()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>Yr(e,t),e.safeExtend=t=>Xr(e,t),e.merge=t=>Zr(e,t),e.pick=t=>qr(e,t),e.omit=t=>Jr(e,t),e.partial=(...t)=>Qr(Xc,e,t[0]),e.required=(...t)=>$r(il,e,t[0])});function Rc(e,t){return new Lc({type:`object`,shape:e??{},...z(t)})}function zc(e,t){return new Lc({type:`object`,shape:e,catchall:Mc(),...z(t)})}var Bc=R(`ZodUnion`,(e,t)=>{lo.init(e,t),rc.init(e,t),e.options=t.options});function Vc(e,t){return new Bc({type:`union`,options:e,...z(t)})}var Hc=R(`ZodIntersection`,(e,t)=>{uo.init(e,t),rc.init(e,t)});function Uc(e,t){return new Hc({type:`intersection`,left:e,right:t})}var Wc=R(`ZodRecord`,(e,t)=>{B.init(e,t),rc.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function Gc(e,t,n){return new Wc({type:`record`,keyType:e,valueType:t,...z(n)})}var Kc=R(`ZodEnum`,(e,t)=>{mo.init(e,t),rc.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Kc({...t,checks:[],...z(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Kc({...t,checks:[],...z(r),entries:i})}});function qc(e,t){return new Kc({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...z(t)})}var Jc=R(`ZodTransform`,(e,t)=>{ho.init(e,t),rc.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Cr(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(ai(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(ai(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Yc(e){return new Jc({type:`transform`,transform:e})}var Xc=R(`ZodOptional`,(e,t)=>{_o.init(e,t),rc.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Zc(e){return new Xc({type:`optional`,innerType:e})}var Qc=R(`ZodNullable`,(e,t)=>{vo.init(e,t),rc.init(e,t),e.unwrap=()=>e._zod.def.innerType});function $c(e){return new Qc({type:`nullable`,innerType:e})}var el=R(`ZodDefault`,(e,t)=>{yo.init(e,t),rc.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function tl(e,t){return new el({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Vr(t)}})}var nl=R(`ZodPrefault`,(e,t)=>{xo.init(e,t),rc.init(e,t),e.unwrap=()=>e._zod.def.innerType});function rl(e,t){return new nl({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Vr(t)}})}var il=R(`ZodNonOptional`,(e,t)=>{So.init(e,t),rc.init(e,t),e.unwrap=()=>e._zod.def.innerType});function al(e,t){return new il({type:`nonoptional`,innerType:e,...z(t)})}var ol=R(`ZodCatch`,(e,t)=>{wo.init(e,t),rc.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function sl(e,t){return new ol({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var cl=R(`ZodPipe`,(e,t)=>{To.init(e,t),rc.init(e,t),e.in=t.in,e.out=t.out});function ll(e,t){return new cl({type:`pipe`,in:e,out:t})}var ul=R(`ZodReadonly`,(e,t)=>{Do.init(e,t),rc.init(e,t),e.unwrap=()=>e._zod.def.innerType});function dl(e){return new ul({type:`readonly`,innerType:e})}var fl=R(`ZodCustom`,(e,t)=>{ko.init(e,t),rc.init(e,t)});function pl(e,t={}){return Ms(fl,e,t)}function ml(e){return Ns(e)}Rc({error:V()});
29var hl=Rc({id:V(),userId:V(),productId:V(),productName:V().nullable(),status:V(),currentPeriodStart:V(),currentPeriodEnd:V().nullable(),createdAt:V(),updatedAt:V()});Rc({user:Rc({id:V(),email:V(),name:V().optional(),emailVerified:Ac().optional(),image:V().optional(),createdAt:V(),updatedAt:V(),isAnonymous:Ac().optional().nullable(),subscription:hl.nullable()}).nullable()});var gl=Rc({start:Ec(),end:Ec(),speaker:V().nullable().optional(),text:V(),confidence:Ec().optional()}).loose();Rc({id:V().min(1).optional(),reviewed:Ac().optional(),reviewedByUserIds:Ic(V().min(1)).optional(),start:Ec(),end:Ec(),speaker:V().nullable().optional(),text:V(),words:Ic(gl)}),Rc({bucket:V().min(1,`GCS bucket is required`),objectKey:V().min(1,`GCS object key is required`),size:Ec().int().nonnegative(),contentType:V().optional(),jobId:V().optional(),checksum:V().optional()}),zc({Type:V().optional(),Upload:zc({ID:V().optional(),Size:Ec().int().nonnegative().optional(),MetaData:Gc(V(),V()).optional(),Storage:Mc().optional()})});var _l=Rc({id:V(),role:qc([`user`,`assistant`]),content:V(),createdAt:V()});Rc({message:V().min(1,`Message is required`),fileId:V().min(1,`File ID is required`)}),Rc({message:_l}),Rc({processed_hours:Ec()});var vl=(0,L.createContext)(void 0);function yl(e){let t=(0,br.c)(11),{children:n}=e,{data:r,isPending:i}
29=fe(),[a,o]=(0,L.useState)(!0),s,c;t[0]===i?(s=t[1],c=t[2]):(s=()=>{i||o(!1)},c=[i],t[0]=i,t[1]=s,t[2]=c),(0,L.useEffect)(s,c);let l=r?.session??null,u=r?.user??null,d=!!r,f;t[3]!==a||t[4]!==l||t[5]!==u||t[6]!==d?(f={session:l,user:u,isLoading:a,isAuthenticated:d},t[3]=a,t[4]=l,t[5]=u,t[6]=d,t[7]=f):f=t[7];let p=f,m;return t[8]!==n||t[9]!==p?(m=(0,I.jsx)(vl.Provider,{value:p,children:n}),t[8]=n,t[9]=p,t[10]=m):m=t[10],m}function bl(){let e=(0,L.useContext)(vl);if(e===void 0)throw Error(`useAuth must be used within an AuthProvider`);return e}var xl=mn(),U=typeof window<`u`?window:void 0,Sl=typeof globalThis<`u`?globalThis:U;typeof self>`u`&&(Sl.self=Sl),typeof File>`u`&&(Sl.File=function(){});var Cl=Array.prototype,wl=Cl.forEach,Tl=Cl.indexOf,El=Sl?.navigator,W=Sl?.document,Dl=Sl?.location,Ol=Sl?.fetch,kl=Sl!=null&&Sl.XMLHttpRequest&&`withCredentials`in new Sl.XMLHttpRequest?Sl.XMLHttpRequest:void 0,Al=Sl?.AbortController,jl=El?.userAgent,G=U??{},Ml={DEBUG:!1,LIB_VERSION:`1.356.1`};function Nl(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 Pl(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){Nl(a,r,i,o,s,`next`,e)}function s(e){Nl(a,r,i,o,s,`throw`,e)}o(void 0)}))}}function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(null,arguments)}function Fl(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 Il=[`$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`],Ll=`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(`,`),Rl=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var n=e.toLowerCase();return Ll.concat(t).some((e=>{var t=e.toLowerCase();return n.indexOf(t)!==-1}))};function q(e,t){return e.indexOf(t)!==-1}var J=function(e){return e.trim()},zl=function(e){return e.replace(/^\$/,``)},Bl=Array.isArray,Vl=Object.prototype,Hl=Vl.hasOwnProperty,Ul=Vl.toString,Wl=Bl||function(e){return Ul.call(e)===`[object Array]`},Gl=e=>typeof e==`function`,Y=e=>e===Object(e)&&!Wl(e),Kl=e=>{if(Y(e)){for(var t in e)if(Hl.call(e,t))return!1;return!0}return!1},X=e=>e===void 0,ql=e=>Ul.call(e)==`[object String]`,Jl=e=>ql(e)&&e.trim().length===0,Yl=e=>e===null,Z=e=>X(e)||Yl(e),Xl=e=>Ul.call(e)==`[object Number]`&&e==e,Zl=e=>Xl(e)&&e>0,Ql=e=>Ul.call(e)===`[object Boolean]`,$l=e=>e instanceof FormData,eu=e=>q(Il,e);function tu(e){return typeof e!=`object`||!e}function nu(e,t){return Object.prototype.toString.call(e)===`[object `+t+`]`}function ru(e){return!X(Event)&&function(e,t){try{return e instanceof t}catch{return!1}}(e,Event)}var iu=[!0,`true`,1,`1`,`yes`],au=e=>q(iu,e),ou=[!1,`false`,0,`0`,`no`];function su(e,t,n,r,i){return t>n&&(r.warn(`min cannot be greater than max.`),t=n),Xl(e)?e>n?(r.warn(` cannot be greater than max: `+n+`. Using max value instead.`),n):e<t?(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),su(i||n,t,n,r))}var cu=class{constructor(e){this.t={},this.i=e.i,this.o=su(e.bucketSize,0,100,e.h),this.m=su(e.refillRate,0,this.o,e.h),this.$=su(e.refillInterval,0,864e5,e.h)}S(e,t){var n=t-e.lastAccess,r=Math.floor(n/this.$);if(r>0){var i=r*this.m;e.tokens=Math.min(e.tokens+i,this.o),e.lastAccess+=r*this.$}}consumeRateLimit(e){var t,n=Date.now(),r=String(e),i=this.t[r];return i?this.S(i,n):(i={tokens:this.o,lastAccess:n},this.t[r]=i),i.tokens===0||(i.tokens--,i.tokens===0&&((t=this.i)==null||t.call(this,e)),i.tokens===0)}stop(){this.t={}}},lu=`Mobile`,uu=`iOS`,du=`Android`,fu=`Tablet`,pu=du+` `+fu,mu=`iPad`,hu=`Apple`,gu=hu+` Watch`,_u=`Safari`,vu=`BlackBerry`,yu=`Samsung`,bu=yu+`Browser`,xu=yu+` Internet`,Su=`Chrome`,Cu=Su+` OS`,wu=Su+` `+uu,Tu=`Internet Explorer`,Eu=Tu+` `+lu,Du=`Opera`,Ou=Du+` Mini`,ku=`Edge`,Au=`Microsoft `+ku,ju=`Firefox`,Mu=ju+` `+uu,Nu=`Nintendo`,Pu=`PlayStation`,Fu=`Xbox`,Iu=du+` `+lu,Lu=lu+` `+_u,Ru=`Windows`,zu=Ru+` Phone`,Bu=`Nokia`,Vu=`Ouya`,Hu=`Generic`,Uu=Hu+` `+lu.toLowerCase(),Wu=Hu+` `+fu.toLowerCase(),Gu=`Konqueror`,Ku=`(\\d+(\\.\\d+)?)`,qu=RegExp(`Version/`+Ku),Ju=new RegExp(Fu,`i`),Yu=RegExp(Pu+` \\w+`,`i`),Xu=RegExp(Nu+` \\w+`,`i`),Zu=RegExp(vu+`|PlayBook|BB10`,`i`),Qu={"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`},$u,ed,td,nd=(e,t)=>t&&q(t,hu)||function(e){return q(e,_u)&&!q(e,Su)&&!q(e,du)}(e),rd=function(e,t){return t||=``,q(e,` OPR/`)&&q(e,`Mini`)?Ou:q(e,` OPR/`)?Du:Zu.test(e)?vu:q(e,`IE`+lu)||q(e,`WPDesktop`)?Eu:q(e,bu)?xu:q(e,ku)||q(e,`Edg/`)?Au:q(e,`FBIOS`)?`Facebook `+lu:q(e,`UCWEB`)||q(e,`UCBrowser`)?`UC Browser`:q(e,`CriOS`)?wu:q(e,`CrMo`)||q(e,Su)?Su:q(e,du)&&q(e,_u)?Iu:q(e,`FxiOS`)?Mu:q(e.toLowerCase(),Gu.toLowerCase())?Gu:nd(e,t)?q(e,lu)?Lu:_u:q(e,ju)?ju:q(e,`MSIE`)||q(e,`Trident/`)?Tu:q(e,`Gecko`)?ju:``},id={[Eu]:[RegExp(`rv:`+Ku)],[Au]:[RegExp(ku+`?\\/`+Ku)],[Su]:[RegExp(`(`+Su+`|CrMo)\\/`+Ku)],[wu]:[RegExp(`CriOS\\/`+Ku)],"UC Browser":[RegExp(`(UCBrowser|UCWEB)\\/`+Ku)],[_u]:[qu],[Lu]:[qu],[Du]:[RegExp(`(Opera|OPR)\\/`+Ku)],[ju]:[RegExp(ju+`\\/`+Ku)],[Mu]:[RegExp(`FxiOS\\/`+Ku)],[Gu]:[RegExp(`Konqueror[:/]?`+Ku,`i`)],[vu]:[RegExp(vu+` `+Ku),qu],[Iu]:[RegExp(`android\\s`+Ku,`i`)],[xu]:[RegExp(bu+`\\/`+Ku)],[Tu]:[RegExp(`(rv:|MSIE )`+Ku)],Mozilla:[RegExp(`rv:`+Ku)]},ad=function(e,t){var n=id[rd(e,t)];if(X(n))return null;for(var r=0;r<n.length;r++){var i=n[r],a=e.match(i);if(a)return parseFloat(a[a.length-2])}return null},od=[[RegExp(Fu+`; `+Fu+` (.*?)[);]`,`i`),e=>[Fu,e&&e[1]||``]],[new RegExp(Nu,`i`),[Nu,``]],[new RegExp(Pu,`i`),[Pu,``]],[Zu,[vu,``]],[new RegExp(Ru,`i`),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[zu,``];if(new RegExp(lu).test(t)&&!/IEMobile\b/.test(t))return[Ru+` `+lu,``];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=Qu[n[1]]||``;return/arm/i.test(t)&&(r=`RT`),[Ru,r]}return[Ru,``]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[uu,[e[3],e[4],e[5]||`0`].join(`.`)]:[uu,``]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t=``;return e&&e.length>=3&&(t=X(e[2])?e[3]:e[2]),[`watchOS`,t]}],[RegExp(`(`+du+` (\\d+)\\.(\\d+)\\.?(\\d+)?|`+du+`)`,`i`),e=>e&&e[2]?[du,[e[2],e[3],e[4]||`0`].join(`.`)]:[du,``]],[/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/,[Cu,``]],[/Linux|debian/i,[`Linux`,``]]],sd=function(e){return Xu.test(e)?Nu:Yu.test(e)?Pu:Ju.test(e)?Fu:new RegExp(Vu,`i`).test(e)?Vu:RegExp(`(`+zu+`|WPDesktop)`,`i`).test(e)?zu:/iPad/.test(e)?mu:/iPod/.test(e)?`iPod Touch`:/iPhone/.test(e)?`iPhone`:/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?gu:Zu.test(e)?vu:/(kobo)\s(ereader|touch)/i.test(e)?`Kobo`:new RegExp(Bu,`i`).test(e)?Bu:/(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(lu).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)?du:pu:RegExp(`(pda|`+lu+`)`,`i`).test(e)?Uu:new RegExp(fu,`i`).test(e)&&!RegExp(fu+` pc`,`i`).test(e)?Wu:``},cd=e=>e instanceof Error;function ld(e){var t=globalThis._posthogChunkIds;if(t){var n=Object.keys(t);return td&&n.length===ed||(ed=n.length,td=n.reduce(((n,r)=>{$u||={};var i=$u[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];
29if(s&&c){n[s]=c,$u[r]=[s,c];break}}return n}),{})),td}}var ud=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 Pl((function*(){for(var n of e)n.stacktrace&&n.stacktrace.frames&&Wl(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)),K({},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 Pl((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,K({},t,{handled:!0}))),a}buildParsingContext(e){return{chunkIdMap:ld(this.stackParser),skipFirstLines:e.skipFirstLines??1}}buildCoercingContext(e,t,n){n===void 0&&(n=0);var r=(n,r)=>{if(r<=4){var i=this.buildCoercingContext(e,t,r);return this.applyCoercers(n,i)}};return K({},t,{syntheticException:n==0?t.syntheticException:void 0,mechanism:e,apply:e=>r(e,n),next:e=>r(e,n+1)})}},dd=`?`;function fd(e,t,n,r,i){var a={platform:e,filename:t,function:n===`<anonymous>`?dd:n,in_app:!0};return X(r)||(a.lineno=r),X(i)||(a.colno=i),a}var pd=(e,t)=>{var n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?dd:e.split(`@`)[0],n?`safari-extension:`+t:`safari-web-extension:`+t]:[e,t]},md=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,hd=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gd=/\((\S*)(?::(\d+))(?::(\d+))\)/,_d=(e,t)=>{var n=md.exec(e);if(n){var[,r,i,a]=n;return fd(t,r,dd,+i,+a)}var o=hd.exec(e);if(o){if(o[2]&&o[2].indexOf(`eval`)===0){var s=gd.exec(o[2]);s&&(o[2]=s[1],o[3]=s[2],o[4]=s[3])}var[c,l]=pd(o[1]||dd,o[2]);return fd(t,l,c,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},vd=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yd=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,bd=(e,t)=>{var n=vd.exec(e);if(n){if(n[3]&&n[3].indexOf(` > eval`)>-1){var r=yd.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]||dd;return[a,i]=pd(a,i),fd(t,i,a,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},xd=/\(error: (.*)\)/,Sd=50;function Cd(){return function(e){var t=[...arguments].slice(1);return function(n,r){r===void 0&&(r=0);for(var i=[],a=n.split(` 30`),o=r;o<a.length;o++){var s=a[o];if(!(s.length>1024)){var c=xd.test(s)?s.replace(xd,`$1`):s;if(!c.match(/\S*Error: /)){for(var l of t){var u=l(c,e);if(u){i.push(u);break}}if(i.length>=Sd)break}}}return function(e){if(!e.length)return[];var t=Array.from(e);return t.reverse(),t.slice(0,Sd).map((e=>{return K({},e,{filename:e.filename||(n=t,n[n.length-1]||{}).filename,function:e.function||dd});var n}))}(i)}}(`web:javascript`,_d,bd)}var wd=class{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var n=ql(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 nu(e,`DOMException`)}isDOMError(e){return nu(e,`DOMError`)}},Td=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 n.error&&typeof n.error.message==`string`?String(n.error.message):String(n)}getStack(e){return e.stacktrace||e.stack||void 0}},Ed=class{constructor(){}match(e){return nu(e,`ErrorEvent`)&&e.error!=null}coerce(e,t){return t.apply(e.error)||{type:`ErrorEvent`,value:e.message,stack:t.syntheticException?.stack,synthetic:!0}}},Dd=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,Od=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(Dd);return r&&(t=r[1],n=r[2]),[t,n]}},kd=[`fatal`,`error`,`warning`,`log`,`info`,`debug`];function Ad(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(!(i.length>t))return r===n.length||i.length<=t?i:i.slice(0,t)+`...`}return``}var jd=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 ru(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: `+Ad(e)}isSeverityLevel(e){return ql(e)&&!Jl(e)&&kd.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var n=e[t];if(cd(n))return n}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{return}}},Md=class{match(e){return ru(e)}coerce(e,t){var n=e.constructor.name;return{type:n,value:n+` captured as exception with keys: `+Ad(e),stack:t.syntheticException?.stack,synthetic:!0}}},Nd=class{match(e){return tu(e)}coerce(e,t){return{type:`Error`,value:`Primitive value captured as exception: `+String(e),stack:t.syntheticException?.stack,synthetic:!0}}},Pd=class{match(e){return nu(e,`PromiseRejectionEvent`)}coerce(e,t){var n=this.getUnhandledRejectionReason(e);return tu(n)?{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: `+String(n),stack:t.syntheticException?.stack,synthetic:!0}:t.apply(n)}getUnhandledRejectionReason(e){if(tu(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}},Fd=function(e,t){var{debugEnabled:n}=t===void 0?{}:t,r={k:function(t){if(U&&(Ml.DEBUG||G.POSTHOG_DEBUG||n)&&!X(U.console)&&U.console){for(var r=(`__rrweb_original__`in U.console[t])?U.console[t].__rrweb_original__:U.console[t],i=arguments.length,a=Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];r(e,...a)}},info:function(){var e=[...arguments];r.k(`log`,...e)},warn:function(){var e=[...arguments];r.k(`warn`,...e)},error:function(){var e=[...arguments];r.k(`error`,...e)},critical:function(){console.error(e,...arguments)},uninitializedWarning:e=>{r.error(`You must initialize PostHog before calling `+e)},createLogger:(t,n)=>Fd(e+` `+t,n)};return r},Q=Fd(`[PostHog.js]`),Id=Q.createLogger,Ld=Id(`[ExternalScriptsLoader]`),Rd=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return Ld.warn(t+` was requested but loading of external scripts is disabled.`),n(`Loa
30ding of external scripts is disabled`);var r=W?.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;o<r.length;o++)if(i=a())return i.v}var s=()=>{if(!W)return n(`document not found`);var r=W.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`)W.head.appendChild(r);else{var i,a=W.querySelectorAll(`body > script`);a.length>0?(i=a[0].parentNode)==null||i.insertBefore(r,a[0]):W.body.appendChild(r)}};W!=null&&W.body?s():W?.addEventListener(`DOMContentLoaded`,s)};G.__PosthogExtensions__=G.__PosthogExtensions__||{},G.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{var r=`/static/`+t+`.js?v=`+e.version;if(t===`remote-config`&&(r=`/array/`+e.config.token+`/config.js`),t===`toolbar`){var i=3e5;r=r+`&t=`+Math.floor(Date.now()/i)*i}Rd(e,e.requestRouter.endpointFor(`assets`,r),n)},G.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{Rd(e,e.requestRouter.endpointFor(`api`,t),n)};var zd={};function Bd(e,t,n){if(Wl(e)){if(wl&&e.forEach===wl)e.forEach(t,n);else if(`length`in e&&e.length===+e.length){for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r)===zd)return}}}function Vd(e,t,n){if(!Z(e)){if(Wl(e))return Bd(e,t,n);if($l(e)){for(var r of e.entries())if(t.call(n,r[1],r[0])===zd)return}else for(var i in e)if(Hl.call(e,i)&&t.call(n,e[i],i)===zd)return}}var Hd=function(e){return Bd([...arguments].slice(1),(function(t){for(var n in t)t[n]!==void 0&&(e[n]=t[n])})),e},Ud=function(e){return Bd([...arguments].slice(1),(function(t){Bd(t,(function(t){e.push(t)}))})),e};function Wd(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}var Gd=function(e){try{return e()}catch{return}},Kd=function(e){return function(){try{var t=[...arguments];return e.apply(this,t)}catch(e){Q.critical(`Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A.`),Q.critical(e)}}},qd=function(e){var t={};return Vd(e,(function(e,n){(ql(e)&&e.length>0||Xl(e))&&(t[n]=e)})),t};function Jd(e,t){return n=e,r=e=>ql(e)&&!Yl(t)?e.slice(0,t):e,i=new Set,function e(t,n){return t===Object(t)?i.has(t)?void 0:(i.add(t),Wl(t)?(a=[],Bd(t,(t=>{a.push(e(t))}))):(a={},Vd(t,((t,n)=>{i.has(t)||(a[n]=e(t,n))}))),a):r?r(t,n):t;var a}(n);var n,r,i}var Yd=[`herokuapp.com`,`vercel.app`,`netlify.app`];function Xd(e){var t=e?.hostname;if(!ql(t))return!1;var n=t.split(`.`).slice(-2).join(`.`);for(var r of Yd)if(n===r)return!1;return!0}function Zd(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}function Qd(e,t,n,r){var{capture:i=!1,passive:a=!0}=r??{};e?.addEventListener(t,n,{capture:i,passive:a})}function $d(e){return e.name===`ph_toolbar_internal`}var ef=`$people_distinct_id`,tf=`__alias`,nf=`__timers`,rf=`$autocapture_disabled_server_side`,af=`$heatmaps_enabled_server_side`,of=`$exception_capture_enabled_server_side`,sf=`$error_tracking_suppression_rules`,cf=`$error_tracking_capture_extension_exceptions`,lf=`$web_vitals_enabled_server_side`,uf=`$dead_clicks_enabled_server_side`,df=`$product_tours_enabled_server_side`,ff=`$web_vitals_allowed_metrics`,pf=`$session_recording_remote_config`,mf=`$sesid`,hf=`$session_is_sampled`,gf=`$enabled_feature_flags`,_f=`$early_access_features`,vf=`$feature_flag_details`,yf=`$stored_person_properties`,bf=`$stored_group_properties`,xf=`$surveys`,Sf=`$flag_call_reported`,Cf=`$feature_flag_errors`,wf=`$feature_flag_evaluated_at`,Tf=`$user_state`,Ef=`$client_session_props`,Df=`$capture_rate_limit`,Of=`$initial_campaign_params`,kf=`$initial_referrer_info`,Af=`$initial_person_info`,jf=`$epp`,Mf=`__POSTHOG_TOOLBAR__`,Nf=`$posthog_cookieless`,Pf=[ef,tf,`__cmpns`,nf,`$session_recording_enabled_server_side`,af,mf,gf,sf,Tf,_f,vf,bf,yf,xf,Sf,Cf,wf,Ef,Df,Of,kf,jf,Af];Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Xl(e)&&isFinite(e)&&Math.floor(e)===e});var Ff=`0123456789abcdef`,If=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)||t<0||n<0||r<0||i<0||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;t<this.bytes.length;t++)e=e+Ff.charAt(this.bytes[t]>>>4)+Ff.charAt(15&this.bytes[t]),t!==3&&t!==5&&t!==7&&t!==9||(e+=`-`);
vendor: 7,402 bytes, line 30
30if(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;t<16;t++){var n=this.bytes[t]-e.bytes[t];if(n!==0)return Math.sign(n)}return 0}},Lf=class{constructor(){this.P=0,this.T=0,this.C=new Bf}generate(){var e=this.generateOrAbort();if(X(e)){this.P=0;var t=this.generateOrAbort();if(X(t))throw Error(`Could not generate UUID after timestamp reset`);return t}return e}generateOrAbort(){var e=Date.now();if(e>this.P)this.P=e,this.I();else{if(!(e+1e4>this.P))return;this.T++,this.T>4398046511103&&(this.P++,this.I())}return If.fromFieldsV7(this.P,Math.trunc(this.T/2**30),this.T&2**30-1,this.C.nextUint32())}I(){this.T=1024*this.C.nextUint32()+(1023&this.C.nextUint32())}},Rf,zf=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<`u`&&UUIDV7_DENY_WEAK_RNG)throw Error(`no cryptographically strong RNG available`);for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};U&&!X(U.crypto)&&crypto.getRandomValues&&(zf=e=>crypto.getRandomValues(e));var Bf=class{constructor(){this.R=new Uint32Array(8),this.F=1/0}nextUint32(){return this.F>=this.R.length&&(zf(this.R),this.F=0),this.R[this.F++]}},Vf=()=>Hf().toString(),Hf=()=>(Rf||=new Lf).generate(),Uf=``,Wf=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;function Gf(e,t){if(t){var n=function(e,t){if(t===void 0&&(t=W),Uf)return Uf;if(!t||[`localhost`,`127.0.0.1`].includes(e))return``;for(var n=e.split(`.`),r=Math.min(n.length,8),i=`dmn_chk_`+Vf();!Uf&&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`,Uf=a)}return Uf}(e);if(!n){var r=(e=>{var t=e.match(Wf);return t?t[0]:``})(e);r!==n&&Q.info(`Warning: cookie subdomain discovery mismatch`,r,n),n=r}return n?`; domain=.`+n:``}return``}var Kf={O:()=>!!W,M:function(e){Q.error(`cookieStore error: `+e)},A:function(e){if(W){try{for(var t=e+`=`,n=W.cookie.split(`;`).filter((e=>e.length)),r=0;r<n.length;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}},D:function(e){var t;try{t=JSON.parse(Kf.A(e))||{}}catch{}return t},j:function(e,t,n,r,i){if(W)try{var a=``,o=``,s=Gf(W.location.hostname,r);if(n){var c=new Date;c.setTime(c.getTime()+24*n*60*60*1e3),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&&Q.warn(`cookieStore warning: large cookie, len=`+l.length),W.cookie=l,l}catch{return}},L:function(e,t){if(W!=null&&W.cookie)try{Kf.j(e,``,-1,t)}catch{return}}},qf=null,Jf={O:function(){if(!Yl(qf))return qf;var e=!0;if(X(U))e=!1;else try{var t=`__mplssupport__`;Jf.j(t,`xyz`),Jf.A(t)!==`"xyz"`&&(e=!1),Jf.L(t)}catch{e=!1}return e||Q.error(`localStorage unsupported; falling back to cookie store`),qf=e,e},M:function(e){Q.error(`localStorage error: `+e)},A:function(e){try{return U?.localStorage.getItem(e)}catch(e){Jf.M(e)}return null},D:function(e){try{return JSON.parse(Jf.A(e))||{}}catch{}return null},j:function(e,t){try{U?.localStorage.setItem(e,JSON.stringify(t))}catch(e){Jf.M(e)}},L:function(e){try{U?.localStorage.removeItem(e)}catch(e){Jf.M(e)}}},Yf=[`$device_id`,`distinct_id`,mf,hf,jf,Af,Tf],Xf={},Zf={O:function(){return!0},M:function(e){Q.error(`memoryStorage error: `+e)},A:function(e){return Xf[e]||null},D:function(e){return Xf[e]||null},j:function(e,t){Xf[e]=t},L:function(e){delete Xf[e]}},Qf=null,$f={O:function(){if(!Yl(Qf))return Qf;if(Qf=!0,X(U))Qf=!1;else try{var e=`__support__`;$f.j(e,`xyz`),$f.A(e)!==`"xyz"`&&(Qf=!1),$f.L(e)}catch{Qf=!1}return Qf},M:function(e){Q.error(`sessionStorage error: `,e)},A:function(e){try{return U?.sessionStorage.getItem(e)}catch(e){$f.M(e)}return null},D:function(e){try{return JSON.parse($f.A(e))||null}catch{}return null},j:function(e,t){try{U?.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){$f.M(e)}},L:function(e){try{U?.sessionStorage.removeItem(e)}catch(e){$f.M(e)}}},ep=function(e){return e[e.PENDING=-1]=`PENDING`,e[e.DENIED=0]=`DENIED`,e[e.GRANTED=1]=`GRANTED`,e}({}),tp=class{constructor(e){this._instance=e}get N(){return this._instance.config}get consent(){return this.U()?ep.DENIED:this.H}isOptedOut(){return this.N.cookieless_mode===`always`||this.consent===ep.DENIED||this.consent===ep.PENDING&&(this.N.opt_out_capturing_by_default||this.N.cookieless_mode===`on_reject`)}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===ep.DENIED}optInOut(e){this.B.j(this.q,e?1:0,this.N.cookie_expiration,this.N.cross_subdomain_cookie,this.N.secure_cookie)}reset(){this.B.L(this.q,this.N.cross_subdomain_cookie)}get q(){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 H(){var e=this.B.A(this.q);return au(e)?ep.GRANTED:q(ou,e)?ep.DENIED:ep.PENDING}get B(){if(!this.W){var e=this.N.opt_out_capturing_persistence_type;this.W=e===`localStorage`?Jf:Kf;var t=e===`localStorage`?Kf:Jf;t.A(this.q)&&(this.W.A(this.q)||this.optInOut(au(t.A(this.q))),t.L(this.q,this.N.cross_subdomain_cookie))}return this.W}U(){return!!this.N.respect_dnt&&!!Zd([El?.doNotTrack,El?.msDoNotTrack,G.doNotTrack],(e=>au(e)))}},np=Id(`[Dead Clicks]`),rp=()=>!0,ip=e=>{var t,n=!((t=e.instance.persistence)==null||!t.get_property(uf)),r=e.instance.config.capture_dead_clicks;return Ql(r)?r:!!Y(r)||n},ap=class{get lazyLoadedDeadClicksAutocapture(){return this.G}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({[uf]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.V((()=>{this.J()})):this.stop()}V(e){var t,n;(t=G.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture&&e(),(n=G.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,`dead-clicks-autocapture`,(t=>{t?np.error(`failed to load script`,t):e()}))}J(){var e;if(W){if(!this.G&&(e=G.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var t=Y(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.G=G.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.G.start(W),np.info(`starting...`)}}else np.error("`document` not found. Cannot start.")}stop(){this.G&&(this.G.stop(),this.G=void 0,np.info(`stopping...`))}},op=Id(`[SegmentIntegration]`);function sp(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()||Vf();e.config.get_device_id=r,n.id()&&(e.register({distinct_id:n.id(),$device_id:r()}),e.persistence.set_property(Tf,`identified`)),t()},i=n.user();`then`in i&&Gl(i.then)?i.then(r):r(i)})(e,(()=>{n.register((e=>{Promise&&Promise.resolve||op.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()||(op.info(`No userId set, resetting PostHog`),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(op.info(`UserId set, identifying with PostHog`),e.identify(t.event.userId)
30);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,`$pageview`),identify:e=>t(e,`$identify`),screen:e=>t(e,`$screen`)}})(e)).then((()=>{t()}))}))}var cp=`posthog-js`;function lp(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=t.exception?.values||[],l=c.map((e=>K({},e,{stacktrace:e.stacktrace?K({},e.stacktrace,{type:`raw`,frames:(e.stacktrace.frames||[]).map((e=>K({},e,{platform:`web:javascript`})))}):void 0}))),u={$exception_message:c[0]?.value||t.message,$exception_type:c[0]?.type,$exception_level:t.level,$exception_list:l,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:c[0]?.value||t.message,$sentry_exception_type:c[0]?.type,$sentry_tags:t.tags};return n&&r&&(u.$sentry_url=(i||`https://sentry.io/organizations/`)+n+`/issues/?project=`+r+`&query=`+t.event_id),o&&e.exceptions.sendExceptionEvent(u),t}}var up=class{constructor(e,t,n,r,i,a){this.name=cp,this.setupOnce=function(o){o(lp(e,{organization:t,projectId:n,prefix:r,severityAllowList:i,sendExceptionsToPostHog:a==null||a}))}}},dp=e=>{var t=W?.createElement(`a`);return X(t)?null:(t.href=e,t)},fp=function(e,t){var n,r;t===void 0&&(t=`&`);var i=[];return Vd(e,(function(e,t){X(e)||X(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)},pp=function(e,t){for(var n,r=((e.split(`#`)[0]||``).split(/\?(.*)/)[1]||``).replace(/^\?+/g,``).split(`&`),i=0;i<r.length;i++){var a=r[i].split(`=`);
30if(a[0]===t){n=a;break}}if(!Wl(n)||n.length<2)return``;var o=n[1];try{o=decodeURIComponent(o)}catch{Q.error(`Skipping decoding for malformed query param: `+o)}return o.replace(/\+/g,` `)},mp=function(e,t,n){if(!e||!t||!t.length)return e;for(var r=e.split(`#`),i=r[0]||``,a=r[1],o=i.split(`?`),s=o[1],c=o[0],l=(s||``).split(`&`),u=[],d=0;d<l.length;d++){var f=l[d].split(`=`);Wl(f)&&(t.includes(f[0])?u.push(f[0]+`=`+n):u.push(l[d]))}var p=c;return s!=null&&(p+=`?`+u.join(`&`)),a!=null&&(p+=`#`+a),p},hp=function(e,t){var n=e.match(RegExp(t+`=([^&]*)`));return n?n[1]:null},gp=U!=null&&U.location?hp(U.location.hash,`__posthog`)||hp(location.hash,`state`):null,_p=`_postHogToolbarParams`,vp=Id(`[Toolbar]`),yp=function(e){return e[e.UNINITIALIZED=0]=`UNINITIALIZED`,e[e.LOADING=1]=`LOADING`,e[e.LOADED=2]=`LOADED`,e}(yp||{}),bp=class{constructor(e){this.instance=e}K(e){G.ph_toolbar_state=e}Y(){return G.ph_toolbar_state??yp.UNINITIALIZED}maybeLoadToolbar(e,t,n){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),$d(this.instance.config)||!U||!W)return!1;e??=U.location,n??=U.history;try{if(!t){try{U.localStorage.setItem(`test`,`test`),U.localStorage.removeItem(`test`)}catch{return!1}t=U?.localStorage}var r,i=gp||hp(e.hash,`__posthog`)||hp(e.hash,`state`),a=i?Gd((()=>JSON.parse(atob(decodeURIComponent(i)))))||Gd((()=>JSON.parse(decodeURIComponent(i)))):null;return 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(_p)||`{}`)).source=`localstorage`,delete r.userIntent),!(!r.token||this.instance.config.token!==r.token)&&(this.loadToolbar(r),!0)}catch{return!1}}X(e){var t=G.ph_load_toolbar||G.ph_load_editor;!Z(t)&&Gl(t)?t(e,this.instance):vp.warn(`No toolbar load function found`)}loadToolbar(e){var t=!(W==null||!W.getElementById(Mf));if(!U||t)return!1;var n=this.instance.requestRouter.region===`custom`&&this.instance.config.advanced_disable_toolbar_metrics,r=K({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor(`ui`)},n?{instrument:!1}:{});if(U.localStorage.setItem(_p,JSON.stringify(K({},r,{source:void 0}))),this.Y()===yp.LOADED)this.X(r);else if(this.Y()===yp.UNINITIALIZED){var i;this.K(yp.LOADING),(i=G.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this.instance,`toolbar`,(e=>{if(e)return vp.error(`[Toolbar] Failed to load`,e),void this.K(yp.UNINITIALIZED);this.K(yp.LOADED),this.X(r)})),Qd(U,`turbolinks:load`,(()=>{this.K(yp.UNINITIALIZED),this.loadToolbar(r)}))}return!0}Z(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)}},xp=class{constructor(e){this.tt=(e,t,n)=>{n&&(n.noSessionId||n.activityTimeout||n.sessionPastMaximumLength)&&(Q.info(`[PageViewManager] Session rotated, clearing pageview state`,{sessionId:e,changeReason:n}),this.it=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.et()}et(){this.rt=this._instance.sessionManager?.onSessionId(this.tt)}destroy(){var e;(e=this.rt)==null||e.call(this),this.rt=void 0}doPageView(e,t){var n=this.st(e,t);return this.it={pathname:U?.location.pathname??``,pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),n}doPageLeave(e){return this.st(e,this.it?.pageViewId)}doEvent(){return{$pageview_id:this.it?.pageViewId}}st(e,t){var n=this.it;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(!(X(a)||X(o)||X(s)||X(c)||X(l)||X(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?1:su(o/a,0,1,Q),f=a<=1?1:su(s/a,0,1,Q),p=c<=1?1:su(l/c,0,1,Q),m=c<=1?1:su(u/c,0,1,Q);r=Hd(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}},Sp=function(e){return e.GZipJS=`gzip-js`,e.Base64=`base64`,e}({}),Cp=Uint8Array,wp=Uint16Array,Tp=Uint32Array,Ep=new Cp([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]),Dp=new Cp([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]),Op=new Cp([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),kp=function(e,t){for(var n=new wp(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new Tp(n[30]);for(r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return[n,i]},Ap=kp(Ep,2),jp=Ap[0],Mp=Ap[1];jp[28]=258,Mp[258]=28;for(var Np=kp(Dp,0)[1],Pp=new wp(32768),Fp=0;Fp<32768;++Fp){var Ip=(43690&Fp)>>>1|(21845&Fp)<<1;Ip=(61680&(Ip=(52428&Ip)>>>2|(13107&Ip)<<2))>>>4|(3855&Ip)<<4,Pp[Fp]=((65280&Ip)>>>8|(255&Ip)<<8)>>>1}var Lp=function(e,t,n){for(var r=e.length,i=0,a=new wp(t);i<r;++i)++a[e[i]-1];var o,s=new wp(t);for(i=0;i<t;++i)s[i]=s[i-1]+a[i-1]<<1;if(n){o=new wp(1<<t);var c=15-t;for(i=0;i<r;++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;d<=f;++d)o[Pp[d]>>>c]=l}else for(o=new wp(r),i=0;i<r;++i)o[i]=Pp[s[e[i]-1]++]>>>15-e[i];return o},Rp=new Cp(288);for(Fp=0;Fp<144;
vendor: 5,192 bytes, line 30
30++Fp)Rp[Fp]=8;for(Fp=144;Fp<256;++Fp)Rp[Fp]=9;for(Fp=256;Fp<280;++Fp)Rp[Fp]=7;for(Fp=280;Fp<288;++Fp)Rp[Fp]=8;var zp=new Cp(32);for(Fp=0;Fp<32;++Fp)zp[Fp]=5;var Bp=Lp(Rp,9,0),Vp=Lp(zp,5,0),Hp=function(e){return(e/8>>0)+(7&e&&1)},Up=function(e,t,n){(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof wp?wp:e instanceof Tp?Tp:Cp)(n-t);return r.set(e.subarray(t,n)),r},Wp=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},Gp=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},Kp=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,a=n.slice();if(!i)return[new Cp(0),0];if(i==1){var o=new Cp(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[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:s.f+c.f,l:s,r:c};var f=a[0].s;for(r=1;r<i;++r)a[r].s>f&&(f=a[r].s);var p=new wp(f+1),m=qp(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}));r<i;++r){var v=a[r].s;if(!(p[v]>t))break;h+=_-(1<<m-p[v]),p[v]=t}for(h>>>=g;h>0;){var y=a[r].s;p[y]<t?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 Cp(p),m]},qp=function(e,t,n){return e.s==-1?Math.max(qp(e.l,t,n+1),qp(e.r,t,n+1)):t[e.s]=n},Jp=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new wp(++t),r=0,i=e[0],a=1,o=function(e){n[r++]=e},s=1;s<=t;++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]},Yp=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},Xp=function(e,t,n){var r=n.length,i=Hp(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;a<r;++a)e[i+a+4]=n[a];return 8*(i+4+r)},Zp=function(e,t,n,r,i,a,o,s,c,l,u){Wp(t,u++,n),++i[256];for(var d=Kp(i,15),f=d[0],p=d[1],m=Kp(a,15),h=m[0],g=m[1],_=Jp(f),v=_[0],y=_[1],b=Jp(h),x=b[0],S=b[1],C=new wp(19),w=0;w<v.length;++w)C[31&v[w]]++;for(w=0;w<x.length;++w)C[31&x[w]]++;for(var T=Kp(C,7),E=T[0],D=T[1],O=19;O>4&&!E[Op[O-1]];--O);var ee,te,ne,re,ie=l+5<<3,ae=Yp(i,Rp)+Yp(a,zp)+o,k=Yp(i,f)+Yp(a,h)+o+14+3*O+Yp(C,E)+(2*C[16]+3*C[17]+7*C[18]);if(ie<=ae&&ie<=k)return Xp(t,u,e.subarray(c,c+l));if(Wp(t,u,1+(k<ae)),u+=2,k<ae){ee=Lp(f,p,0),te=f,ne=Lp(h,g,0),re=h;var A=Lp(E,D,0);for(Wp(t,u,y-257),Wp(t,u+5,S-1),Wp(t,u+10,O-4),u+=14,w=0;w<O;++w)Wp(t,u+3*w,E[Op[w]]);u+=3*O;for(var oe=[v,x],se=0;se<2;++se){var j=oe[se];for(w=0;w<j.length;++w){var ce=31&j[w];Wp(t,u,A[ce]),u+=E[ce],ce>15&&(Wp(t,u,j[w]>>>5&127),u+=j[w]>>>12)}}}else ee=Bp,te=Rp,ne=Vp,re=zp;for(w=0;w<s;++w)if(r[w]>255){ce=r[w]>>>18&31,Gp(t,u,ee[ce+257]),u+=te[ce+257],ce>7&&(Wp(t,u,r[w]>>>23&31),u+=Ep[ce]);var M=31&r[w];Gp(t,u,ne[M]),u+=re[M],M>3&&(Gp(t,u,r[w]>>>5&8191),u+=Dp[M])}else Gp(t,u,ee[r[w]]),u+=te[r[w]];return Gp(t,u,ee[256]),u+te[256]},Qp=new Tp([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),$p=function(){for(var e=new Tp(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),em=function(e,t,n,r,i){return function(e,t,n,r,i,a){var o=e.length,s=new Cp(r+o+5*(1+Math.floor(o/7e3))+i),c=s.subarray(r,s.length-i),l=0;if(!t||o<8)for(var u=0;u<=o;u+=65535){var d=u+65535;d<o?l=Xp(c,l,e.subarray(u,d)):(c[u]=a,l=Xp(c,l,e.subarray(u,o)))}else{for(var f=Qp[t-1],p=f>>>13,m=8191&f,h=(1<<n)-1,g=new wp(32768),_=new wp(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 Tp(25e3),S=new wp(288),C=new wp(32),w=0,T=0,E=(u=0,0),D=0,O=0;u<o;++u){var ee=b(u),te=32767&u,ne=_[ee];if(g[te]=ne,_[ee]=te,D<=u){var re=o-u;if((w>7e3||E>24576)&&re>423){l=Zp(e,c,0,x,S,C,T,E,O,u-O,l),E=w=T=0,O=u;for(var ie=0;ie<286;++ie)S[ie]=0;for(ie=0;ie<30;++ie)C[ie]=0}var ae=2,k=0,A=m,oe=te-ne&32767;if(re>2&&ee==b(u-oe))for(var se=Math.min(p,re)-1,j=Math.min(32767,u),ce=Math.min(258,re);oe<=j&&--A&&te!=ne;){if(e[u+ae]==e[u+ae-oe]){for(var M=0;M<ce&&e[u+M]==e[u+M-oe];++M);if(M>ae){if(ae=M,k=oe,M>se)break;var N=Math.min(oe,M-2),le=0;for(ie=0;ie<N;++ie){var ue=u-oe+ie+32768&32767,P=ue-g[ue]+32768&32767;P>le&&(le=P,ne=ue)}}}oe+=(te=ne)-(ne=g[te])+32768&32767}if(k){x[E++]=268435456|Mp[ae]<<18|Np[k];var de=31&Mp[ae],F=31&Np[k];T+=Ep[de]+Dp[F],++S[257+de],++C[F],D=u+ae,++w}else x[E++]=e[u],++S[e[u]]}}l=Zp(e,c,a,x,S,C,T,E,O,u-O,l)}return Up(s,0,r+Hp(l)+i)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!0)},tm=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function nm(e,t){t===void 0&&(t={});var n=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=$p[255&n^t[r]]^n>>>8;e=n},d:function(){return 4294967295^e}}}(),r=e.length;n.p(e);var i,a=em(e,t,10+((i=t).filename&&i.filename.length+1||0),8),o=a.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&tm(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}}
30(a,t),tm(a,o-8,n.d()),tm(a,o-4,r),a}var rm=function(e){var t,n,r,i,a=``;for(t=n=0,r=(e=(e+``).replace(/\r\n/g,` 31`).replace(/\r/g,` 32`)).length,i=0;i<r;i++){var o=e.charCodeAt(i),s=null;o<128?n++:s=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),Yl(s)||(n>t&&(a+=e.substring(t,n)),a+=s,t=n=i+1)}return n>t&&(a+=e.substring(t,e.length)),a},im=!!kl||!!Ol,am=`text/plain`,om=function(e,t,n){n===void 0&&(n=!0);var[r,i]=e.split(`?`),a=K({},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=fp(a);return s&&o.push(s),r+`?`+o.join(`&`)},sm=(e,t)=>JSON.stringify(e,((e,t)=>typeof t==`bigint`?t.toString():t),t),cm=e=>{var{data:t,compression:n}=e;if(t){if(n===Sp.GZipJS){var r=nm(function(e,t){var n=e.length;if(typeof TextEncoder<`u`)return new TextEncoder().encode(e);for(var r=new Cp(e.length+(e.length>>>1)),i=0,a=function(e){r[i++]=e},o=0;o<n;++o){if(i+5>r.length){var s=new Cp(i+8+(n-o<<1));s.set(r),r=s}var c=e.charCodeAt(o);c<128||t?a(c):c<2048?(a(192|c>>>6),a(128|63&c)):c>55295&&c<57344?(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 Up(r,0,i)}(sm(t)),{mtime:0}),i=new Blob([r],{type:am});return{contentType:am,body:i,estimatedSize:i.size}}if(n===Sp.Base64){var a=(e=>`data=`+encodeURIComponent(typeof e==`string`?e:sm(e)))(function(e){var t,n,r,i,a,o=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`,s=0,c=0,l=``,u=[];if(!e)return e;e=rm(e);do t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,u[c++]=o.charAt(t)+o.charAt(n)+o.charAt(r)+o.charAt(i);while(s<e.length);switch(l=u.join(``),e.length%3){case 1:l=l.slice(0,-2)+`==`;break;case 2:l=l.slice(0,-1)+`=`}return l}(sm(t)));return{contentType:`application/x-www-form-urlencoded`,body:a,estimatedSize:new Blob([a]).size}}var o=sm(t);return{contentType:`application/json`,body:o,estimatedSize:new Blob([o]).size}}},lm=[];Ol&&lm.push({transport:`fetch`,method:e=>{var{contentType:t,body:n,estimatedSize:r}=cm(e)??{},i=new Headers;Vd(e.headers,(function(e,t){i.append(t,e)})),t&&i.append(`Content-Type`,t);var a=e.url,o=null;if(Al){var s=new Al;o={signal:s.signal,timeout:setTimeout((()=>s.abort()),e.timeout)}}Ol(a,K({method:e?.method||`GET`,headers:i,keepalive:e.method===`POST`&&(r||0)<52428.8,body:n,signal:o?.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){Q.error(e)}e.callback==null||e.callback(r)})))).catch((t=>{Q.error(t),e.callback==null||e.callback({statusCode:0,error:t})})).finally((()=>o?clearTimeout(o.timeout):null))}}),kl&&lm.push({transport:`XHR`,method:e=>{var t=new kl;t.open(e.method||`GET`,e.url,!0);var{contentType:n,body:r}=cm(e)??{};Vd(e.headers,(function(e,n){t.setRequestHeader(n,e)})),n&&t.setRequestHeader(`Content-Type`,n),e.timeout&&(t.timeout=e.timeout),e.disableXHRCredentials||(t.withCredentials=!0),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(r)}}),El!=null&&El.sendBeacon&&lm.push({transport:`sendBeacon`,method:e=>{var t=om(e.url,{beacon:`1`});try{var{contentType:n,body:r}=cm(e)??{},i=typeof r==`string`?new Blob([r],{type:n}):r;El.sendBeacon(t,i)}catch{}}});var um=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 dm(e,t,n){return sm({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}var fm={exact:(e,t)=>t.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=>um(t,e))))),not_regex:(e,t)=>t.every((t=>e.every((e=>!um(t,e))))),icontains:(e,t)=>t.map(pm).some((t=>e.map(pm).some((e=>t.includes(e))))),not_icontains:(e,t)=>t.map(pm).every((t=>e.map(pm).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)))}))},pm=e=>e.toLowerCase();function mm(e,t){return!e||Object.entries(e).every((e=>{var[n,r]=e,i=t?.[n];if(X(i)||Yl(i))return!1;var a=[String(i)],o=fm[r.operator];return!!o&&o(r.values,a)}))}var hm=Id(`[Error tracking]`),gm=class{constructor(e){this.nt=[],this.ot=new ud([new wd,new Pd,new Ed,new Td,new Md,new jd,new Od,new Nd],Cd()),this._instance=e,this.nt=this._instance.persistence?.get_property(sf)??[]}onRemoteConfig(e){if(`errorTracking`in e){var t=e.errorTracking?.suppressionRules??[],n=e.errorTracking?.captureExtensionExceptions;this.nt=t,this._instance.persistence&&this._instance.persistence.register({[sf]:this.nt,[cf]:n})}}get ut(){var e,t=!!this._instance.get_property(cf);return(e=this._instance.config.error_tracking.captureExtensionExceptions??t)!=null&&e}buildProperties(e,t){return this.ot.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}sendExceptionEvent(e){var t=e.$exception_list;if(this.ht(t)){if(this.dt(t))return void hm.info(`Skipping exception capture because a suppression rule matched`);if(!this.ut&&this.vt(t))return void hm.info(`Skipping exception capture because it was thrown by an extension`);if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ct(t))return void hm.info(`Skipping exception capture because it was thrown by the PostHog SDK`)}return this._instance.capture(`$exception`,e,{_noTruncate:!0,_batchKey:`exceptionEvent`,ft:!0})}dt(e){if(e.length===0)return!1;var t=e.reduce(((e,t)=>{var{type:n,value:r}=t;return ql(n)&&n.length>0&&e.$exception_types.push(n),ql(r)&&r.length>0&&e.$exception_values.push(r),e}),{$exception_types:[],$exception_values:[]});return this.nt.some((e=>{var n=e.values.map((e=>{var n=fm[e.operator],r=Wl(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)}))}vt(e){return e.flatMap((e=>e.stacktrace?.frames??[])).some((e=>e.filename&&e.filename.startsWith(`chrome-extension://`)))}ct(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}ht(e){return!Z(e)&&Wl(e)}},_m=`https?://(.*)`,vm=[`gclid`,`gclsrc`,`dclid`,`gbraid`,`wbraid`,`fbclid`,`msclkid`,`twclid`,`li_fat_id`,`igshid`,`ttclid`,`rdt_cid`,`epik`,`qclid`,`sccid`,`irclid`,`_kx`],ym=Ud([`utm_source`,`utm_medium`,`utm_campaign`,`utm_content`,`utm_term`,`gad_source`,`mc_cid`],vm),bm=`<masked>`,xm=[`li_fat_id`];function Sm(e,t,n){if(!W)return{};var r,i=t?Ud([],vm,n||[]):[],a=Cm(mp(W.URL,i,bm),e);return Hd((r={}
32,Vd(xm,(function(e){var t=Kf.A(e);r[e]=t||null})),r),a)}function Cm(e,t){var n=ym.concat(t||[]),r={};return Vd(n,(function(t){r[t]=pp(e,t)||null})),r}function wm(e){var t=function(e){return e?e.search(_m+`google.([^/?]*)`)===0?`google`:e.search(_m+`bing.com`)===0?`bing`:e.search(_m+`yahoo.com`)===0?`yahoo`:e.search(_m+`duckduckgo.com`)===0?`duckduckgo`:null:null}(e),n=t==`yahoo`?`p`:`q`,r={};if(!Yl(t)){r.$search_engine=t;var i=W?pp(W.referrer,n):``;i.length&&(r.ph_keyword=i)}return r}function Tm(){return navigator.language||navigator.userLanguage}function Em(){return W?.referrer||`$direct`}function Dm(e,t){var n=e?Ud([],vm,t||[]):[],r=Dl?.href.substring(0,1e3);return{r:Em().substring(0,1e3),u:r?mp(r,n,bm):void 0}}function Om(e){var{r:t,u:n}=e,r={$referrer:t,$referring_domain:t==null?void 0:t==`$direct`?`$direct`:dp(t)?.host};if(n){r.$current_url=n;var i=dp(n);r.$host=i?.host,r.$pathname=i?.pathname,Hd(r,Cm(n))}return t&&Hd(r,wm(t)),r}function km(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function Am(){try{return new Date().getTimezoneOffset()}catch{return}}function jm(e,t){var n;if(!jl)return{};var r,i,a=e?Ud([],vm,t||[]):[],[o,s]=function(e){for(var t=0;t<od.length;t++){var[n,r]=od[t],i=n.exec(e),a=i&&(Gl(r)?r(i,e):r);if(a)return a}return[``,``]}(jl),c=(r=sd(jl))===mu||r===pu||r===`Kobo`||r===`Kindle Fire`||r===Wu?fu:r===Nu||r===Fu||r===Pu||r===Vu?`Console`:r===gu?`Wearable`:r?lu:`Desktop`;if(c===`Desktop`&&((n=navigator)==null||(n=n.userAgentData)==null?void 0:n.platform)===`Android`&&navigator?.maxTouchPoints>0){var l,u,d=(U==null||(l=U.screen)==null?void 0:l.width)??0,f=(U==null||(u=U.screen)==null?void 0:u.height)??0;c=Math.min(d,f)/(U?.devicePixelRatio??1)>=600?`Tablet`:`Mobile`}return Hd(qd({$os:o,$os_version:s,$browser:rd(jl,navigator.vendor),$device:sd(jl),$device_type:c,$timezone:km(),$timezone_offset:Am()}),{$current_url:mp(Dl?.href,a,bm),$host:Dl?.host,$pathname:Dl?.pathname,$raw_user_agent:jl.length>1e3?jl.substring(0,997)+`...`:jl,$browser_version:ad(jl,navigator.vendor),$browser_language:Tm(),$browser_language_prefix:(i=Tm(),typeof i==`string`?i.split(`-`)[0]:void 0),$screen_height:U?.screen.height,$screen_width:U?.screen.width,$viewport_height:U?.innerHeight,$viewport_width:U?.innerWidth,$lib:`web`,$lib_version:Ml.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}var Mm=Id(`[FeatureFlags]`),Nm=Id(`[FeatureFlags]`,{debugEnabled:!0}),Pm=`errors_while_computing_flags`,Fm=`flag_missing`,Im=`quota_limited`,Lm=`timeout`,Rm=`connection_error`,zm=`unknown_error`,Bm=e=>`api_error_`+e,Vm=`$active_feature_flags`,Hm=`$override_feature_flags`,Um=`$feature_flag_payloads`,Wm=`$override_feature_flag_payloads`,Gm=`$feature_flag_request_id`,Km=e=>{var t={};for(var[n,r]of Wd(e||{}))r&&(t[n]=r);return t},qm=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])))):Mm.warn(`Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version`),e},Jm=function(e){return e.FeatureFlags=`feature_flags`,e.Recordings=`recordings`,e}({}),Ym=class{constructor(e){this._t=!1,this.bt=!1,this.yt=!1,this.wt=!1,this.xt=!1,this.$t=!1,this.Et=!1,this.St=!1,this._instance=e,this.featureFlagEventHandlers=[]}kt(){var e;return(e=this._instance.persistence?.Pt(this._instance.config.feature_flag_cache_ttl_ms))!=null&&e}Tt(){return!!this.kt()&&(this.St||this.yt||(this.St=!0,Mm.warn(`Feature flag cache is stale, triggering refresh...`),this.reloadFeatureFlags()),!0)}Ct(){var e=this._instance.config.evaluation_contexts??this._instance.config.evaluation_environments;return!this._instance.config.evaluation_environments||this._instance.config.evaluation_contexts||this.Et||(Mm.warn(`evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version.`),this.Et=!0),e!=null&&e.length?e.filter((e=>{var t=e&&typeof e==`string`&&e.trim().length>0;return t||Mm.error(`Invalid evaluation context found:`,e,`Expected non-empty string`),t})):[]}It(){return this.Ct().length>0}get hasLoadedFlags(){return this.bt}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this._instance.get_property(vf),t=this._instance.get_property(Hm),n=this._instance.get_property(Wm);if(!n&&!t)return e||{};var r=Hd({},e||{});for(var i of[...new Set([...Object.keys(n||{}),...Object.keys(t||{})])]){var a,o,s=r[i],c=t?.[i],l=X(c)?(a=s?.enabled)!=null&&a:!!c,u=X(c)?s.variant:typeof c==`string`?c:void 0,d=n?.[i],f=K({},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=K({},s?.metadata,{payload:d,original_payload:s==null||(o=s.metadata)==null?void 0:o.payload})),r[i]=f}return this._t||=(Mm.warn(` Overriding feature flag details!`,{flagDetails:e,overriddenPayloads:n,finalDetails:r}),!0),r}getFlagVariants(){var e=this._instance.get_property(gf),t=this._instance.get_property(Hm);if(!t)return e||{};for(var n=Hd({},e),r=Object.keys(t),i=0;i<r.length;i++)n[r[i]]=t[r[i]];return this._t||=(Mm.warn(` Overriding feature flags!`,{enabledFlags:e,overriddenFlags:t,finalFlags:n}),!0),n}getFlagPayloads(){var e=this._instance.get_property(Um),t=this._instance.get_property(Wm);if(!t)return e||{};for(var n=Hd({},e||{}),r=Object.keys(t),i=0;i<r.length;i++)n[r[i]]=t[r[i]];return this._t||=(Mm.warn(` Overriding feature flag payloads!`,{flagPayloads:e,overriddenPayloads:t,finalPayloads:n}),!0),n}reloadFeatureFlags(){this.wt||this._instance.config.advanced_disable_feature_flags||this.Rt||(this._instance.Ft.emit(`featureFlagsReloading`,!0),this.Rt=setTimeout((()=>{this.Ot()}),5))}Mt(){clearTimeout(this.Rt),this.Rt=void 0}ensureFlagsLoaded(){this.bt||this.yt||this.Rt||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.wt=e}Ot(e){if(this.Mt(),!this._instance.At())if(this.yt)this.xt=!0;else{var t=this._instance.config.token,n=this._instance.get_property(`$device_id`),r={token:t,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:K({},this._instance.persistence?.get_initial_props()||{},this._instance.get_property(yf)||{}),group_properties:this._instance.get_property(bf),timezone:km()};Yl(n)||X(n)||(r.$device_id=n),(e!=null&&e.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(r.disable_flags=!0),this.It()&&(r.evaluation_contexts=this.Ct());var i=this._instance.config.advanced_only_evaluate_survey_feature_flags?`&only_evaluate_survey_feature_flags=true`:``,a=this._instance.requestRouter.endpointFor(`flags`,`/flags/?v=2`+i);this.yt=!0,this._instance._send_request({method:`POST`,url:a,data:r,compression:this._instance.config.disable_compression?void 0:Sp.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:e=>{var t,n,i,a=!0;if(e.statusCode===200&&(this.xt||(this.$anon_distinct_id=void 0),a=!1),this.yt=!1,!r.disable_flags||this.xt){this.$t
32=!a;var o=[];e.error?e.error instanceof Error?o.push(e.error.name===`AbortError`?Lm:Rm):o.push(zm):e.statusCode!==200&&o.push(Bm(e.statusCode)),(t=e.json)!=null&&t.errorsWhileComputingFlags&&o.push(Pm);var s=!((n=e.json)==null||(n=n.quotaLimited)==null||!n.includes(Jm.FeatureFlags));s&&o.push(Im),(i=this._instance.persistence)==null||i.register({[Cf]:o}),s?Mm.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??{},a),this.xt&&(this.xt=!1,this.Ot()))}}})}}getFeatureFlag(e,t){if(t===void 0&&(t={}),!t.fresh||this.$t)if(this.bt||this.getFlags()&&this.getFlags().length>0){if(!this.Tt()){var n=this.getFeatureFlagResult(e,t);return n?.variant??n?.enabled}}else Mm.warn(`getFeatureFlag for key "`+e+`" failed. Feature flags didn't load in time.`)}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.$t)if(this.bt||this.getFlags()&&this.getFlags().length>0){if(!this.Tt()){var n=this.getFlagVariants(),r=e in n,i=n[e],a=this.getFlagPayloads()[e],o=String(i),s=this._instance.get_property(Gm)||void 0,c=this._instance.get_property(wf)||void 0,l=this._instance.get_property(Sf)||{};if((t.send_event||!(`send_event`in t))&&(!(e in l)||!l[e].includes(o))){var u,d,f,p,m,h,g,_;Wl(l[e])?l[e].push(o):l[e]=[o],(u=this._instance.persistence)==null||u.register({[Sf]:l});var v=this.getFeatureFlagDetails(e),y=[...this._instance.get_property(Cf)??[]];X(i)&&y.push(Fm);var b={$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:((d=this._instance.config.bootstrap)==null||(d=d.featureFlags)==null?void 0:d[e])||null,$feature_flag_bootstrapped_payload:((f=this._instance.config.bootstrap)==null||(f=f.featureFlagPayloads)==null?void 0:f[e])||null,$used_bootstrap_value:!this.$t};X(v==null||(p=v.metadata)==null?void 0:p.version)||(b.$feature_flag_version=v.metadata.version);var x,S=(v==null||(m=v.reason)==null?void 0:m.description)??(v==null||(h=v.reason)==null?void 0:h.code);S&&(b.$feature_flag_reason=S),v!=null&&(g=v.metadata)!=null&&g.id&&(b.$feature_flag_id=v.metadata.id),X(v?.original_variant)&&X(v?.original_enabled)||(b.$feature_flag_original_response=X(v.original_variant)?v.original_enabled:v.original_variant),v!=null&&(_=v.metadata)!=null&&_.original_payload&&(b.$feature_flag_original_payload=v==null||(x=v.metadata)==null?void 0:x.original_payload),y.length&&(b.$feature_flag_error=y.join(`,`)),this._instance.capture(`$feature_flag_called`,b)}if(r){var C=a;if(!X(a))try{C=JSON.parse(a)}catch{}return{key:e,enabled:!!i,variant:typeof i==`string`?i:void 0,payload:C}}}}else Mm.warn(`getFeatureFlagResult for key "`+e+`" failed. Feature flags didn't load in time.`)}getRemoteConfigPayload(e,t){var n=this._instance.config.token,r={distinct_id:this._instance.get_distinct_id(),token:n};this.It()&&(r.evaluation_contexts=this.Ct()),this._instance._send_request({method:`POST`,url:this._instance.requestRouter.endpointFor(`flags`,`/flags/?v=2`),data:r,compression:this._instance.config.disable_compression?void 0:Sp.Base64,timeout:this._instance.config.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.$t){if(this.bt||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(e,t);return X(n)?void 0:!!n}Mm.warn(`isFeatureEnabled for key "`+e+`" failed. Feature flags didn't load in time.`)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}receivedFeatureFlags(e,t){if(this._instance.persistence){this.bt=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads(),i=this.getFlagsWithDetails();(function(e,t,n,r,i){n===void 0&&(n={}),r===void 0&&(r={}),i===void 0&&(i={});var a=qm(e),o=a.flags,s=a.featureFlags,c=a.featureFlagPayloads;if(s){var l=e.requestId,u=e.evaluatedAt;if(Wl(s)){Mm.warn(`v1 of the feature flags endpoint is deprecated. Please use the latest version.`);var d={};if(s)for(var f=0;f<s.length;f++)d[s[f]]=!0;t&&t.register({[Vm]:s,[gf]:d})}else{var p=s,m=c,h=o;if(e.errorsWhileComputingFlags)if(o){var g=new Set(Object.keys(o).filter((e=>{var t;return!((t=o[e])!=null&&t.failed)})));p=K({},n,Object.fromEntries(Object.entries(p).filter((e=>{var[t]=e;return g.has(t)})))),m=K({},r,Object.fromEntries(Object.entries(m||{}).filter((e=>{var[t]=e;return g.has(t)})))),h=K({},i,Object.fromEntries(Object.entries(h||{}).filter((e=>{var[t]=e;return g.has(t)}))))}else p=K({},n,p),m=K({},r,m),h=K({},i,h);
32t&&t.register(K({[Vm]:Object.keys(Km(p)),[gf]:p||{},[Um]:m||{},[vf]:h||{}},l?{[Gm]:l}:{},u?{[wf]:u}:{}))}}})(e,this._instance.persistence,n,r,i),t||(this.St=!1),this.Dt(t)}}override(e,t){t===void 0&&(t=!1),Mm.warn(`override is deprecated. Please use overrideFeatureFlags instead.`),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this._instance.persistence)return Mm.uninitializedWarning(`posthog.featureFlags.overrideFeatureFlags`);if(!1===e)return this._instance.persistence.unregister(Hm),this._instance.persistence.unregister(Wm),this.Dt(),Nm.info(`All overrides cleared`);if(e&&typeof e==`object`&&(`flags`in e||`payloads`in e)){var t,n=e;if(this._t=!!((t=n.suppressWarning)!=null&&t),`flags`in n){if(!1===n.flags)this._instance.persistence.unregister(Hm),Nm.info(`Flag overrides cleared`);else if(n.flags){if(Wl(n.flags)){for(var r={},i=0;i<n.flags.length;i++)r[n.flags[i]]=!0;this._instance.persistence.register({[Hm]:r})}else this._instance.persistence.register({[Hm]:n.flags});Nm.info(`Flag overrides set`,{flags:n.flags})}}`payloads`in n&&(!1===n.payloads?(this._instance.persistence.unregister(Wm),Nm.info(`Payload overrides cleared`)):n.payloads&&(this._instance.persistence.register({[Wm]:n.payloads}),Nm.info(`Payload overrides set`,{payloads:n.payloads}))),this.Dt();return}this.Dt()}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.bt){var{flags:t,flagVariants:n}=this.jt();e(t,n)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,n){var r,i=(this._instance.get_property(_f)||[]).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=K({},this.getFlagVariants(),{[e]:t});(r=this._instance.persistence)==null||r.register({[Vm]:Object.keys(Km(s)),[gf]:s}),this.Dt()}getEarlyAccessFeatures(e,t,n){t===void 0&&(t=!1);var r=this._instance.get_property(_f),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._instance.config.token+i),method:`GET`,callback:t=>{var n,r;if(t.json){var i=t.json.earlyAccessFeatures;return(n=this._instance.persistence)==null||n.unregister(_f),(r=this._instance.persistence)==null||r.register({[_f]:i}),e(i)}}})}jt(){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)),{})}}Dt(e){var{flags:t,flagVariants:n}=this.jt();this.featureFlagEventHandlers.forEach((r=>r(t,n,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this._instance.get_property(yf)||{};this._instance.register({[yf]:K({},n,e)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(yf)}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this._instance.get_property(bf)||{};Object.keys(n).length!==0&&Object.keys(n).forEach((t=>{n[t]=K({},n[t],e[t]),delete e[t]})),this._instance.register({[bf]:K({},n,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this._instance.get_property(bf)||{};this._instance.register({[bf]:K({},t,{[e]:{}})})}else this._instance.unregister(bf)}reset(){this.bt=!1,this.yt=!1,this.wt=!1,this.xt=!1,this.$t=!1,this.$anon_distinct_id=void 0,this.Mt(),this._t=!1}},Xm=[`cookie`,`localstorage`,`localstorage+cookie`,`sessionstorage`,`memory`],Zm=class{constructor(e,t){this.N=e,this.props={},this.Lt=!1,this.Nt=(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.B=this.Ut(e),this.load(),e.debug&&Q.info(`Persistence loaded`,e.persistence,K({},this.props)),this.update_config(e,e,t),this.save()}isDisabled(){return!!this.zt}Ut(e){Xm.indexOf(e.persistence.toLowerCase())===-1&&(Q.critical(`Unknown persistence type `+e.persistence+`; falling back to localStorage+cookie`),e.persistence=`localStorage+cookie`);var t=function(e){e===void 0&&(e=[]);var t=[...Yf,...e];return K({},Jf,{D:function(e){try{var t={};try{t=Kf.D(e)||{}}catch{}var n=Hd(t,JSON.parse(Jf.A(e)||`{}`));return Jf.j(e,n),n}catch{}return null},j:function(e,n,r,i,a,o){try{Jf.j(e,n,void 0,void 0,o);var s={};t.forEach((e=>{n[e]&&(s[e]=n[e])})),Object.keys(s).length&&Kf.j(e,s,r,i,a,o)}catch(e){Jf.M(e)}},L:function(e,t){try{U?.localStorage.removeItem(e),Kf.L(e,t)}catch(e){Jf.M(e)}}})}(e.cookie_persisted_properties||[]),n=e.persistence.toLowerCase();return n===`localstorage`&&Jf.O()?Jf:n===`localstorage+cookie`&&t.O()?t:n===`sessionstorage`&&$f.O()?$f:n===`memory`?Zf:n===`cookie`?Kf:t.O()?t:Kf}Pt(e){var t=e??this.N.feature_flag_cache_ttl_ms;if(!t||t<=0)return!1;var n=this.props[wf];return!n||typeof n!=`number`||Date.now()-n>t}properties(){var e={};return Vd(this.props,((t,n)=>{if(n===gf&&Y(t)){if(!this.Pt())for(var r=Object.keys(t),i=0;i<r.length;i++)e[`$feature/`+r[i]]=t[r[i]]}else o=n,s=!1,(Yl(a=Pf)?s:Tl&&a.indexOf===Tl?a.indexOf(o)!=-1:(Vd(a,(function(e){if(s||=e===o)return zd})),s))||(e[n]=t);var a,o,s})),e}load(){if(!this.zt){var e=this.B.D(this.Nt);e&&(this.props=Hd({},e))}}save(){this.zt||this.B.j(this.Nt,this.props,this.Ht,this.Bt,this.qt,this.N.debug)}remove(){this.B.L(this.Nt,!1),this.B.L(this.Nt,!0)}clear(){this.remove(),this.props={}}register_once(e,t,n){if(Y(e)){X(t)&&(t=`None`),this.Ht=X(n)?this.Wt:n;var r=!1;if(Vd(e,((e,n)=>{this.props.hasOwnProperty(n)&&this.props[n]!==t||(this.props[n]=e,r=!0)})),r)return this.save(),!0}return!1}register(e,t){if(Y(e)){this.Ht=X(t)?this.Wt:t;var n=!1;if(Vd(e,((t,r)=>{e.hasOwnProperty(r)&&this.props[r]!==t&&(this.props[r]=t,n=!0)})),n)return this.save(),!0}return!1}unregister(e){e in this.props&&(delete this.props[e],this.save())}update_campaign_params(){if(!this.Lt){var e=Sm(this.N.custom_campaign_params,this.N.mask_personal_data_properties,this.N.custom_personal_data_properties);Kl(qd(e))||this.register(e),this.Lt=!0}}update_search_keyword(){var e;this.register((e=W?.referrer)?wm(e):{})}update_referrer_info(){this.register_once({$referrer:Em(),$referring_domain:W!=null&&W.referrer&&dp(W.referrer)?.host||`$direct`},void 0)}set_initial_person_info(){this.props[Of]||this.props[kf]||this.register_once({[Af]:Dm(this.N.mask_personal_data_properties,this.N.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};Vd([kf,Of],(t=>{var n=this.props[t];n&&Vd(n,(function(t,n){e[`$initial_`+zl(n)]=t}))}));var t,n,r=this.props[Af];return r&&Hd(e,(t=Om(r),n={},Vd(t,(function(e,t){n[`$initial_`+zl(t)]=e})),n)),e}
32safe_merge(e){return Vd(this.props,(function(t,n){n in e||(e[n]=t)})),e}update_config(e,t,n){if(this.Wt=this.Ht=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!n),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),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||[])){var r=this.Ut(e),i=this.props;this.clear(),this.B=r,this.props=i,this.save()}}set_disabled(e){this.zt=e,this.zt?this.remove():this.save()}set_cross_subdomain(e){e!==this.Bt&&(this.Bt=e,this.remove(),this.save())}set_secure(e){e!==this.qt&&(this.qt=e,this.remove(),this.save())}set_event_timer(e,t){var n=this.props[nf]||{};n[e]=t,this.props[nf]=n,this.save()}remove_event_timer(e){var t=(this.props[nf]||{})[e];return X(t)||(delete this.props[nf][e],this.save()),t}get_property(e){return this.props[e]}set_property(e,t){this.props[e]=t,this.save()}},Qm=function(e){return e.Activation=`events`,e.Cancellation=`cancelEvents`,e}({});(function(e){return e.Button=`button`,e.Tab=`tab`,e.Selector=`selector`,e})({}),function(e){return e.TopLeft=`top_left`,e.TopRight=`top_right`,e.TopCenter=`top_center`,e.MiddleLeft=`middle_left`,e.MiddleRight=`middle_right`,e.MiddleCenter=`middle_center`,e.Left=`left`,e.Center=`center`,e.Right=`right`,e.NextToTrigger=`next_to_trigger`,e}({}),function(e){return e.Top=`top`,e.Left=`left`,e.Right=`right`,e.Bottom=`bottom`,e}({});var $m=function(e){return e.Popover=`popover`,e.API=`api`,e.Widget=`widget`,e.ExternalSurvey=`external_survey`,e}({});(function(e){return e.Open=`open`,e.MultipleChoice=`multiple_choice`,e.SingleChoice=`single_choice`,e.Rating=`rating`,e.Link=`link`,e})({}),function(e){return e.NextQuestion=`next_question`,e.End=`end`,e.ResponseBased=`response_based`,e.SpecificQuestion=`specific_question`,e}({}),function(e){return e.Once=`once`,e.Recurring=`recurring`,e.Always=`always`,e}({});var eh=function(e){return e.SHOWN=`survey shown`,e.DISMISSED=`survey dismissed`,e.SENT=`survey sent`,e.ABANDONED=`survey abandoned`,e}({}),th=function(e){return e.SURVEY_ID=`$survey_id`,e.SURVEY_NAME=`$survey_name`,e.SURVEY_RESPONSE=`$survey_response`,e.SURVEY_ITERATION=`$survey_iteration`,e.SURVEY_ITERATION_START_DATE=`$survey_iteration_start_date`,e.SURVEY_PARTIALLY_COMPLETED=`$survey_partially_completed`,e.SURVEY_SUBMISSION_ID=`$survey_submission_id`,e.SURVEY_QUESTIONS=`$survey_questions`,e.SURVEY_COMPLETED=`$survey_completed`,e.PRODUCT_TOUR_ID=`$product_tour_id`,e.SURVEY_LAST_SEEN_DATE=`$survey_last_seen_date`,e}({}),nh=function(e){return e.Popover=`popover`,e.Inline=`inline`,e}({}),rh=Id(`[Surveys]`),ih=`seenSurvey_`,ah=(e,t)=>{var n=`$survey_`+t+`/`+e.id;return e.current_iteration&&e.current_iteration>0&&(n=`$survey_`+t+`/`+e.id+`/`+e.current_iteration),n},oh=e=>((e,t)=>{var n=``+e+t.id;return t.current_iteration&&t.current_iteration>0&&(n=``+e+t.id+`_`+t.current_iteration),n})(ih,e),sh=[$m.Popover,$m.Widget,$m.API],ch={ignoreConditions:!1,ignoreDelay:!1,displayType:nh.Popover},lh=class{constructor(){this.Gt={},this.Gt={}}on(e,t){return this.Gt[e]||(this.Gt[e]=[]),this.Gt[e].push(t),()=>{this.Gt[e]=this.Gt[e].filter((e=>e!==t))}}emit(e,t){for(var n of this.Gt[e]||[])n(t);for(var r of this.Gt[`*`]||[])r(e,t)}};function uh(e,t,n){if(Z(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 dh=class{constructor(e){this.Vt=new lh,this.Jt=(e,t)=>this.Kt(e,t)&&this.Yt(e,t)&&this.Xt(e,t)&&this.Qt(e,t),this.Kt=(e,t)=>t==null||!t.event||e?.event===t?.event,this._instance=e,this.Zt=new Set,this.ti=new Set}init(){if(!X(this._instance?._addCaptureHook)){var e;(e=this._instance)==null||e._addCaptureHook(((e,t)=>{this.on(e,t)}))}}register(e){var t;if(!X(this._instance?._addCaptureHook)&&(e.forEach((e=>{var t,n;
32(t=this.ti)==null||t.add(e),(n=e.steps)==null||n.forEach((e=>{var t;(t=this.Zt)==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.Zt.has(e)||this.Zt.has(t?.event))&&this.ti&&this.ti?.size>0&&this.ti.forEach((e=>{this.ii(t,e)&&this.Vt.emit(`actionCaptured`,e.name)}))}ei(e){this.onAction(`actionCaptured`,(t=>e(t)))}ii(e,t){if(t?.steps==null)return!1;for(var n of t.steps)if(this.Jt(e,n))return!0;return!1}onAction(e,t){return this.Vt.on(e,t)}Yt(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`||!uh(r,t.url,t.url_matching||`contains`))return!1}return!0}Xt(e,t){return!!this.ri(e,t)&&!!this.si(e,t)&&!!this.ni(e,t)}ri(e,t){var n;if(t==null||!t.href)return!0;var r=this.oi(e);if(r.length>0)return r.some((e=>uh(e.href,t.href,t.href_matching||`exact`)));var i,a=(e==null||(n=e.properties)==null?void 0:n.$elements_chain)||``;return!!a&&uh((i=a.match(/(?::|")href="(.*?)"/))?i[1]:``,t.href,t.href_matching||`exact`)}si(e,t){var n;if(t==null||!t.text)return!0;var r=this.oi(e);if(r.length>0)return r.some((e=>uh(e.text,t.text,t.text_matching||`exact`)||uh(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;!Z(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=>uh(e,a,o))))}ni(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}oi(e){var t;return(e==null||(t=e.properties)==null?void 0:t.$elements)==null?[]:e?.properties.$elements}Qt(e,t){return t==null||!t.properties||t.properties.length===0||mm(t.properties.reduce(((e,t)=>{var n=Wl(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)}},fh=class{constructor(e){this._instance=e,this.ai=new Map,this.li=new Map,this.ui=new Map}hi(e,t){return!!e&&mm(e.propertyFilters,t?.properties)}di(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}vi(e,t,n){var r=(n===Qm.Activation?this.ai:this.li).get(e),i=[];return this.ci((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.hi(a,t)}))}register(e){X(this._instance?._addCaptureHook)||(this.fi(e),this.pi(e))}pi(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.gi??(this.gi=new dh(this._instance),this.gi.init(),this.gi.ei((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.gi)==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.ui.get(t.name);n&&n.push(e.id),this.ui.set(t.name,n||[e.id])}})))})))}fi(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.ai=this.di(e,Qm.Activation),this.li=this.di(e,Qm.Cancellation))}onEvent(e,t){var n,r=this.mi(),i=this.bi(),a=this.yi(),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);u>=0&&(o.splice(u,1),this.wi(o))}}else{if(this.li.has(e)){var d=this.vi(e,t,Qm.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);t>=0&&o.splice(t,1),this.xi(e.id)}
32)),this.wi(o))}if(this.ai.has(e)){r.info(`event name matched`,{event:e,eventPayload:t,items:this.ai.get(e)});var f=this.vi(e,t,Qm.Activation);this.wi(o.concat(f.map((e=>e.id))||[]))}}}onAction(e){var t,n=this.bi(),r=((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[n])||[];this.ui.has(e)&&this.wi(r.concat(this.ui.get(e)||[]))}wi(e){var t,n=this.mi(),r=this.bi(),i=[...new Set(e)].filter((e=>!this.$i(e)));n.info(`updating activated items`,{activatedItems:i}),(t=this._instance)==null||(t=t.persistence)==null||t.register({[r]:i})}getActivatedIds(){var e,t=this.bi();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[t])||[]}getEventToItemsMap(){return this.ai}Ei(){return this.gi}},ph=class extends fh{constructor(e){super(e)}bi(){return`$surveys_activated`}yi(){return eh.SHOWN}ci(e){var t;(t=this._instance)==null||t.getSurveys(e)}xi(e){var t;(t=this._instance)==null||t.cancelPendingSurvey(e)}mi(){return rh}$i(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}},mh=class{constructor(e){this.Si=void 0,this._surveyManager=null,this.ki=!1,this.Pi=[],this.Ti=null,this._instance=e,this._surveyEventReceiver=null}onRemoteConfig(e){if(!this._instance.config.disable_surveys){var t=e.surveys;if(Z(t))return rh.warn(`Flags not loaded yet. Not loading surveys.`);this.Si=Wl(t)?t.length>0:t,rh.info(`flags response received, isSurveysEnabled: `+this.Si),this.loadIfEnabled()}}reset(){localStorage.removeItem(`lastSeenSurveyDate`);for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(n!=null&&n.startsWith(ih)||n!=null&&n.startsWith(`inProgressSurvey_`))&&e.push(n)}e.forEach((e=>localStorage.removeItem(e)))}loadIfEnabled(){if(!this._surveyManager)if(this.ki)rh.info(`Already initializing surveys, skipping...`);else if(this._instance.config.disable_surveys)rh.info(`Disabled. Not loading surveys.`);else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())rh.info(`Not loading surveys in cookieless mode without consent.`);else{var e=G?.__PosthogExtensions__;if(e){if(!X(this.Si)||this._instance.config.advanced_enable_surveys){var t=this.Si||this._instance.config.advanced_enable_surveys;this.ki=!0;try{var n=e.generateSurveys;if(n)return void this.Ci(n,t);var r=e.loadExternalDependency;if(!r)return void this.Ii(`PostHog loadExternalDependency extension not found.`);r(this._instance,`surveys`,(n=>{n||!e.generateSurveys?this.Ii(`Could not load surveys script`,n):this.Ci(e.generateSurveys,t)}))}catch(e){throw this.Ii(`Error initializing surveys`,e),e}finally{this.ki=!1}}}else rh.error(`PostHog Extensions not found.`)}}Ci(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new ph(this._instance),rh.info(`Surveys loaded successfully`),this.Ri({isLoaded:!0})}Ii(e,t){rh.error(e,t),this.Ri({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.Pi.push(e),this._surveyManager&&this.Ri({isLoaded:!0}),()=>{this.Pi=this.Pi.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this._instance.config.disable_surveys)return rh.info(`Disabled. Not loading surveys.`),e([]);var n,r=this._instance.get_property(xf);if(r&&!t)return e(r,{isLoaded:!0});typeof Promise<`u`&&this.Ti?this.Ti.then((t=>{var{surveys:n,context:r}=t;return e(n,r)})):(typeof Promise<`u`&&(this.Ti=new Promise((e=>{n=e}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor(`api`,`/api/surveys/?token=`+this._instance.config.token),method:`GET`,timeout:this._instance.config.surveys_request_timeout_ms,callback:t=>{var r;this.Ti=null;var i=t.statusCode;if(i!==200||!t.json){var a=`Surveys API could not be loaded, status: `+i;rh.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({[xf]:c});var u={isLoaded:!0};e(c,u),n?.({surveys:c,context:u})}}))}
32Ri(e){for(var t of this.Pi)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(e){rh.error(`Error in survey callback`,e)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Z(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);rh.warn(`init was not called`)}Fi(e){var t=null;return this.getSurveys((n=>{t=n.find((t=>t.id===e))??null})),t}Oi(e){if(Z(this._surveyManager))return{eligible:!1,reason:`SDK is not enabled or survey functionality is not yet loaded`};var t=typeof e==`string`?this.Fi(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:`Survey not found`}}canRenderSurvey(e){if(Z(this._surveyManager))return rh.warn(`init was not called`),{visible:!1,disabledReason:`SDK is not enabled or survey functionality is not yet loaded`};var t=this.Oi(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Z(this._surveyManager)?(rh.warn(`init was not called`),Promise.resolve({visible:!1,disabledReason:`SDK is not enabled or survey functionality is not yet loaded`})):new Promise((n=>{this.getSurveys((t=>{var r=t.find((t=>t.id===e))??null;if(r){var i=this.Oi(r);n({visible:i.eligible,disabledReason:i.reason})}else n({visible:!1,disabledReason:`Survey not found`})}),t)}))}renderSurvey(e,t,n){var r;if(Z(this._surveyManager))rh.warn(`init was not called`);else{var i=typeof e==`string`?this.Fi(e):e;if(i!=null&&i.id)if(sh.includes(i.type)){var a=W?.querySelector(t);if(a)return(r=i.appearance)!=null&&r.surveyPopupDelaySeconds?(rh.info(`Rendering survey `+i.id+` with delay of `+i.appearance.surveyPopupDelaySeconds+` seconds`),void setTimeout((()=>{var e;rh.info(`Rendering survey `+i.id+` with delay of `+i.appearance?.surveyPopupDelaySeconds+` seconds`),(e=this._surveyManager)==null||e.renderSurvey(i,a,n),rh.info(`Survey `+i.id+` rendered`)}),1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,a,n);rh.warn(`Survey element not found`)}else rh.warn(`Surveys of type `+i.type+` cannot be rendered in the app`);else rh.warn(`Survey not found`)}}displaySurvey(e,t){var n;if(Z(this._surveyManager))rh.warn(`init was not called`);else{var r=this.Fi(e);if(r){var i=r;if((n=r.appearance)!=null&&n.surveyPopupDelaySeconds&&t.ignoreDelay&&(i=K({},r,{appearance:K({},r.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==nh.Popover&&t.initialResponses&&rh.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 rh.warn(`Survey is not eligible to be displayed: `,a.disabledReason)}t.displayType===nh.Inline?this.renderSurvey(i,t.selector,t.properties):this._surveyManager.handlePopoverSurvey(i,t)}else rh.warn(`Survey not found`)}}cancelPendingSurvey(e){Z(this._surveyManager)?rh.warn(`init was not called`):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}},hh=Id(`[Conversations]`),gh=class{constructor(e){this.Mi=void 0,this._conversationsManager=null,this.Ai=!1,this.Di=null,this._instance=e}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Z(t)||(Ql(t)?this.Mi=t:(this.Mi=t.enabled,this.Di=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Mi=void 0,this.Di=null}loadIfEnabled(){if(!(this._conversationsManager||this.Ai||this._instance.config.disable_conversations||$d(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=G?.__PosthogExtensions__;if(e&&!X(this.Mi)&&this.Mi)if(this.Di&&this.Di.token){this.Ai=!0;try{var t=e.initConversations;if(t)return this.ji(t),void(this.Ai=!1);var n=e.loadExternalDependency;if(!n)return void this.Li(`PostHog loadExternalDependency extension not found.`);n(this._instance,`conversations`,(t=>{t||!e.initConversations?this.Li(`Could not load conversations script`,t):this.ji(e.initConversations),this.Ai=!1}))}catch(e){this.Li(`Error initializing conversations`,e),this.Ai=!1}}else hh.error(`Conversations enabled but missing token in remote config.`)}}ji(e){if(this.Di)try{this._conversationsManager=e(this.Di,this._instance),hh.info(`Conversations loaded successfully`)}
32catch(e){this.Li(`Error completing conversations initialization`,e)}else hh.error(`Cannot complete initialization: remote config is null`)}Li(e,t){hh.error(e,t),this._conversationsManager=null,this.Ai=!1}show(){this._conversationsManager?this._conversationsManager.show():hh.warn(`Conversations not loaded yet.`)}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return!0===this.Mi&&!Yl(this._conversationsManager)}isVisible(){var e;return(e=this._conversationsManager?.isVisible())!=null&&e}sendMessage(e,t,n){var r=this;return Pl((function*(){return r._conversationsManager?r._conversationsManager.sendMessage(e,t,n):(hh.warn(`Conversations not available yet.`),null)}))()}getMessages(e,t){var n=this;return Pl((function*(){return n._conversationsManager?n._conversationsManager.getMessages(e,t):(hh.warn(`Conversations not available yet.`),null)}))()}markAsRead(e){var t=this;return Pl((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(hh.warn(`Conversations not available yet.`),null)}))()}getTickets(e){var t=this;return Pl((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(hh.warn(`Conversations not available yet.`),null)}))()}requestRestoreLink(e){var t=this;return Pl((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(hh.warn(`Conversations not available yet.`),null)}))()}restoreFromToken(e){var t=this;return Pl((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(hh.warn(`Conversations not available yet.`),null)}))()}restoreFromUrlToken(){var e=this;return Pl((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(hh.warn(`Conversations not available yet.`),null)}))()}getCurrentTicketId(){return this._conversationsManager?.getCurrentTicketId()??null}getWidgetSessionId(){return this._conversationsManager?.getWidgetSessionId()??null}},_h=function(e){return e.SHOWN=`product tour shown`,e.DISMISSED=`product tour dismissed`,e.COMPLETED=`product tour completed`,e.STEP_SHOWN=`product tour step shown`,e.STEP_COMPLETED=`product tour step completed`,e.BUTTON_CLICKED=`product tour button clicked`,e.STEP_SELECTOR_FAILED=`product tour step selector failed`,e.BANNER_CONTAINER_SELECTOR_FAILED=`product tour banner container selector failed`,e.BANNER_ACTION_CLICKED=`product tour banner action clicked`,e}({}),vh=function(e){return e.TOUR_ID=`$product_tour_id`,e.TOUR_NAME=`$product_tour_name`,e.TOUR_ITERATION=`$product_tour_iteration`,e.TOUR_RENDER_REASON=`$product_tour_render_reason`,e.TOUR_STEP_ID=`$product_tour_step_id`,e.TOUR_STEP_ORDER=`$product_tour_step_order`,e.TOUR_STEP_TYPE=`$product_tour_step_type`,e.TOUR_DISMISS_REASON=`$product_tour_dismiss_reason`,e.TOUR_BUTTON_TEXT=`$product_tour_button_text`,e.TOUR_BUTTON_ACTION=`$product_tour_button_action`,e.TOUR_BUTTON_LINK=`$product_tour_button_link`,e.TOUR_BUTTON_TOUR_ID=`$product_tour_button_tour_id`,e.TOUR_STEPS_COUNT=`$product_tour_steps_count`,e.TOUR_STEP_SELECTOR=`$product_tour_step_selector`,e.TOUR_STEP_SELECTOR_FOUND=`$product_tour_step_selector_found`,e.TOUR_STEP_ELEMENT_TAG=`$product_tour_step_element_tag`,e.TOUR_STEP_ELEMENT_ID=`$product_tour_step_element_id`,e.TOUR_STEP_ELEMENT_CLASSES=`$product_tour_step_element_classes`,e.TOUR_STEP_ELEMENT_TEXT=`$product_tour_step_element_text`,e.TOUR_ERROR=`$product_tour_error`,e.TOUR_MATCHES_COUNT=`$product_tour_matches_count`,e.TOUR_FAILURE_PHASE=`$product_tour_failure_phase`,e.TOUR_WAITED_FOR_ELEMENT=`$product_tour_waited_for_element`,e.TOUR_WAIT_DURATION_MS=`$product_tour_wait_duration_ms`,e.TOUR_BANNER_SELECTOR=`$product_tour_banner_selector`,e.TOUR_LINKED_SURVEY_ID=`$product_tour_linked_survey_id`,e.USE_MANUAL_SELECTOR=`$use_manual_selector`,e.INFERENCE_DATA_PRESENT=`$inference_data_present`,e.TOUR_LAST_SEEN_DATE=`$product_tour_last_seen_date`,e.TOUR_TYPE=`$product_tour_type`,e}({}),yh=class{constructor(e){var t;this.Ni=!1,this.Ui=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.Ni=!0)}onRemoteConfig(e){var t=e.logs?.captureConsoleLogs;!Z(t)&&t&&(this.Ni=!0,this.loadIfEnabled())}reset(){}loadIfEnabled(){if(this.Ni&&!this.Ui){var e=Id(`[logs]`),t=G?.__PosthogExtensions__;if(t){var n=t.loadExternalDependency;n?n(this._instance,`logs`,(n=>{var r;n||(r=t.logs)==null||!r.initializeLogs?e.error(`Could not load logs script`,
32n):(t.logs.initializeLogs(this._instance),this.Ui=!0)})):e.error(`PostHog loadExternalDependency extension not found.`)}else e.error(`PostHog Extensions not found.`)}}},bh=Id(`[RateLimiter]`),xh=class{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach((e=>{bh.info((e||`events`)+` is quota limited.`),this.serverLimits[e]=new Date().getTime()+6e4}))}catch(e){bh.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(Df)??{tokens:n,last:i};a.tokens+=(i-a.last)/1e3*r,a.last=i,a.tokens>n&&(a.tokens=n);var o=a.tokens<1;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(Df,a),{isRateLimited:o,remainingTokens:a.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||`events`]||!1;return!1!==t&&new Date().getTime()<t}},Sh=Id(`[RemoteConfig]`),Ch=class{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=G._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}zi(e){var t,n;(t=G.__PosthogExtensions__)!=null&&t.loadExternalDependency?(n=G.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,`remote-config`,(()=>e(this.remoteConfig))):e()}Hi(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 Sh.info(`Using preloaded remote config`,this.remoteConfig),this.Bi(this.remoteConfig),void this.qi();if(this._instance.At())return void Sh.warn(`Remote config is disabled. Falling back to local config.`);this.zi((e=>{if(!e)return Sh.info(`No config found after loading remote JS config. Falling back to JSON.`),void this.Hi((e=>{this.Bi(e),this.qi()}));this.Bi(e),this.qi()}))}catch(e){Sh.error(`Error loading remote config`,e)}}stop(){this.Wi&&=(clearInterval(this.Wi),void 0)}refresh(){this._instance.At()||W?.visibilityState===`hidden`||this._instance.featureFlags.reloadFeatureFlags()}qi(){if(!this.Wi){var e=this._instance.config.remote_config_refresh_interval_ms??3e5;e!==0&&(this.Wi=setInterval((()=>{this.refresh()}),e))}}Bi(e){e||Sh.error(`Failed to fetch remote config from PostHog.`),this._instance.Bi(e??{}),!1!==e?.hasFeatureFlags&&(this._instance.config.advanced_disable_feature_flags_on_first_load||this._instance.featureFlags.ensureFlagsLoaded())}},wh=3e3,Th=class{constructor(e,t){this.Gi=!0,this.Vi=[],this.Ji=su(t?.flush_interval_ms||wh,250,5e3,Q.createLogger(`flush interval`),wh),this.Ki=e}enqueue(e){this.Vi.push(e),this.Yi||this.Xi()}unload(){this.Qi();var e=this.Vi.length>0?this.Zi():{},t=Object.values(e);[...t.filter((e=>e.url.indexOf(`/e`)===0)),...t.filter((e=>e.url.indexOf(`/e`)!==0))].map((e=>{this.Ki(K({},e,{transport:`sendBeacon`}))}))}enable(){this.Gi=!1,this.Xi()}Xi(){var e=this;this.Gi||(this.Yi=setTimeout((()=>{if(this.Qi(),this.Vi.length>0){var t=this.Zi(),n=function(){var n=t[r],i=new Date().getTime();n.data&&Wl(n.data)&&Vd(n.data,(e=>{e.offset=Math.abs(e.timestamp-i),delete e.timestamp})),e.Ki(n)};for(var r in t)n()}}),this.Ji))}Qi(){clearTimeout(this.Yi),this.Yi=void 0}Zi(){var e={};return Vd(this.Vi,(t=>{var n,r=t,i=(r?r.batchKey:null)||r.url;X(e[i])&&(e[i]=K({},r,{data:[]})),(n=e[i].data)==null||n.push(r.data)})),this.Vi=[],e}},Eh=[`retriesPerformedSoFar`],Dh=class{constructor(e){this.te=!1,this.ie=3e3,this.Vi=[],this._instance=e,this.Vi=[],this.ee=!0,!X(U)&&`onLine`in U.navigator&&(this.ee=U.navigator.onLine,this.re=()=>{this.ee=!0,this.se()},this.ne=()=>{this.ee=!1},Qd(U,`online`,this.re),Qd(U,`offline`,this.ne))}get length(){return this.Vi.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,n=Fl(e,Eh);Zl(t)&&(n.url=om(n.url,{retry_count:t})),this._instance._send_request(K({},n,{callback:e=>{e.statusCode!==200&&(e.statusCode<400||e.statusCode>=500)&&(t??0)<10?this.oe(K({retriesPerformedSoFar:t},n)):n.callback==null||n.callback(e)}}))}oe(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)*(r-n);return Math.ceil(r+i)}(t),r=Date.now()+n;this.Vi.push({retryAt:r,requestOptions:e});var i=`Enqueued failed request for retry in `+n;navigator.onLine||(i+=` (Browser is offline)`),Q.warn(i),this.te||(this.te=!0,this.ae())}ae(){if(this.le&&clearTimeout(this.le),this.Vi.length===0)return this.te=!1,void(this.le=void 0);this.le=setTimeout((()=>{this.ee&&this.Vi.length>0&&this.se(),this.ae()}),this.ie)}se(){var e=Date.now(),t=[],n=this.Vi.filter((n=>n.retryAt<e||(t.push(n),!1)));if(this.Vi=t,n.length>0)for(var{requestOptions:r}of n)this.retriableRequest(r)}unload(){for(var{requestOptions:e}of(this.le&&=(clearTimeout(this.le),void 0),this.te=!1,X(U)||(this.re&&=(U.removeEventListener(`online`,this.re),void 0),this.ne&&=(U.removeEventListener(`offline`,this.ne),void 0)),this.Vi))try{this._instance._send_request(K({},e,{transport:`sendBeacon`}))}catch(e){Q.error(e)}this.Vi=[]}},Oh=class{constructor(e){this.ue=()=>{this.he||={};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.he.lastScrollY=Math.ceil(t),this.he.maxScrollY=Math.max(t,this.he.maxScrollY??0),this.he.maxScrollHeight=Math.max(n,this.he.maxScrollHeight??0),this.he.last
32ContentY=r,this.he.maxContentY=Math.max(r,this.he.maxContentY??0),this.he.maxContentHeight=Math.max(i,this.he.maxContentHeight??0)},this._instance=e}getContext(){return this.he}resetContext(){var e=this.he;return setTimeout(this.ue,0),e}startMeasuringScrollPosition(){Qd(U,`scroll`,this.ue,{capture:!0}),Qd(U,`scrollend`,this.ue,{capture:!0}),Qd(U,`resize`,this.ue)}scrollElement(){if(!this._instance.config.scroll_root_selector)return U?.document.documentElement;for(var e of Wl(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector]){var t=U?.document.querySelector(e);if(t)return t}}scrollY(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollTop||0}return U&&(U.scrollY||U.pageYOffset||U.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollLeft||0}return U&&(U.scrollX||U.pageXOffset||U.document.documentElement.scrollLeft)||0}},kh=e=>Dm(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties),Ah=class{constructor(e,t,n,r){this.de=e=>{var t=this.ve();if(!t||t.sessionId!==e){var n={sessionId:e,props:this.ce(this._instance)};this.fe.register({[Ef]:n})}},this._instance=e,this.pe=t,this.fe=n,this.ce=r||kh,this.pe.onSessionId(this.de)}ve(){return this.fe.props[Ef]}getSetOnceProps(){var e=this.ve()?.props;return e?`r`in e?Om(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 Vd(qd(this.getSetOnceProps()),((t,n)=>{n===`$current_url`&&(n=`url`),e[`$session_entry_`+zl(n)]=t})),e}},jh=Id(`[SessionId]`),Mh=class{on(e,t){return this._e.on(e,t)}constructor(e,t,n){var r;if(this.ge=[],this.me=void 0,this._e=new lh,this.be=(e,t)=>!(!Zl(e)||!Zl(t))&&Math.abs(e-t)>this.sessionTimeoutMs,!e.persistence)throw Error(`SessionIdManager requires a PostHogPersistence instance`);if(e.config.cookieless_mode===`always`)throw Error(`SessionIdManager cannot be used with cookieless_mode="always"`);this.N=e.config,this.fe=e.persistence,this.ye=void 0,this.we=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.xe=t||Vf,this.$e=n||Vf;var i=this.N.persistence_name||this.N.token;if(this._sessionTimeoutMs=1e3*su(this.N.session_idle_timeout_seconds||1800,60,36e3,jh.createLogger(`session_idle_timeout_seconds`),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Ee(),this.Se=`ph_`+i+`_window_id`,this.ke=`ph_`+i+`_primary_window_exists`,this.Pe()){var a=$f.D(this.Se),o=$f.D(this.ke);a&&!o?this.ye=a:$f.L(this.Se),$f.j(this.ke,!0)}if((r=this.N.bootstrap)!=null&&r.sessionID)try{var s=(e=>{var t=e.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.N.bootstrap.sessionID);this.Te(this.N.bootstrap.sessionID,new Date().getTime(),s)}catch(e){jh.error(`Invalid sessionID in bootstrap`,e)}this.Ce()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return X(this.ge)&&(this.ge=[]),this.ge.push(e),this.we&&e(this.we,this.ye),()=>{this.ge=this.ge.filter((t=>t!==e))}}Pe(){return this.N.persistence!==`memory`&&!this.fe.zt&&$f.O()}Ie(e){e!==this.ye&&(this.ye=e,this.Pe()&&$f.j(this.Se,e))}Re(){return this.ye?this.ye:this.Pe()?$f.D(this.Se):null}Te(e,t,n){e===this.we&&t===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this.we=e,this.fe.register({[mf]:[t,e,n]}))}Fe(){var e=this.fe.props[mf];return Wl(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.Te(null,null,null)}destroy(){clearTimeout(this.Oe),this.Oe=void 0,this.me&&U&&(U.removeEventListener(`beforeunload`,this.me,{capture:!1}),this.me=void 0),this.ge=[]}Ce(){this.me=()=>{this.Pe()&&$f.L(this.ke)},Qd(U,`beforeunload`,this.me,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(e===void 0&&(e=!1),t===void 0&&(t=null),this.N.cookieless_mode===`always`)throw Error(`checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"`);var n=t||new Date().getTime(),[r,i,a]=this.Fe(),o=this.Re(),s=Zl(a)&&Math.abs(n-a)>864e5,c=!1,l=!i,u=!l&&!e&&this.be(n,r);l||u||s?(i=this.xe(),o=this.$e(),jh.info(`new session ID generated`,{sessionId:i,windowId:o,changeReason:{noSessionId:l,activityTimeout:u,sessionPastMaximumLength:s}}),a=n,c=!0):o||(o=this.$e(),c=!0);var d=Zl(r)&&e&&!s?r:n,f=Zl(a)?a:new Date().getTime();return this.Ie(o),this.Te(i,d,f),e||this.Ee(),c&&this.ge.forEach((e=>e(i,o,c?{noSessionId:l,activityTimeout:u,sessionPastMaximumLength:s}:void 0))),{sessionId:i,windowId:o,sessionStartTimestamp:f,changeReason:c?{noSessionId:l,activityTimeout:u,sessionPastMaximumLength:s}:void 0,lastActivityTimestamp:r}}Ee(){clearTimeout(this.Oe),this.Oe=setTimeout((()=>{var[e]=this.Fe();if(this.be(new Date().getTime(),e)){var t=this.we;this.resetSessionId(),this._e.emit(`forcedIdleReset`,{idleSessionId:t})}}),1.1*this.sessionTimeoutMs)}},Nh=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&Rl(n,t))return!0;try{var r=e?.userAgentData;if(r!=null&&r.brands&&r.brands.some((e=>Rl(e?.brand,t))))return!0}catch{}return!!e.webdriver},Ph=function(e){return e.US=`us`,e.EU=`eu`,e.CUSTOM=`custom`,e}({}
32),Fh=`i.posthog.com`,Ih=class{constructor(e){this.Me={},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(`.`+Fh,`.posthog.com`),e===`https://app.posthog.com`?`https://us.posthog.com`:e}get region(){return this.Me[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Me[this.apiHost]=Ph.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Me[this.apiHost]=Ph.EU:this.Me[this.apiHost]=Ph.CUSTOM),this.Me[this.apiHost]}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(this.region===Ph.CUSTOM)return this.apiHost+t;var n=Fh+t;switch(e){case`assets`:return`https://`+this.region+`-assets.`+n;case`api`:return`https://`+this.region+`.`+n}}},Lh={icontains:(e,t)=>!!U&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!U&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!U&&um(t.href,e),not_regex:(e,t)=>!!U&&!um(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e},Rh=class e{constructor(t){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(t){t===void 0&&(t=!1),n.getWebExperiments((t=>{e.Ae(`retrieved web experiments from the server`),n.De=new Map,t.forEach((t=>{if(t.feature_flag_key){var r;n.De&&(e.Ae(`setting flag key `,t.feature_flag_key,` to web experiment `,t),(r=n.De)==null||r.set(t.feature_flag_key,t));var i=n._instance.getFeatureFlag(t.feature_flag_key);ql(i)&&t.variants[i]&&n.je(t.name,i,t.variants[i].transforms)}else if(t.variants)for(var a in t.variants){var o=t.variants[a];e.Le(o)&&n.je(t.name,a,o.transforms)}}))}),t)},this._instance=t,this._instance.onFeatureFlags((e=>{this.onFeatureFlags(e)}))}onFeatureFlags(t){if(this._is_bot())e.Ae(`Refusing to render web experiment since the viewer is a likely bot`);else if(!this._instance.config.disable_web_experiments){if(Z(this.De))return this.De=new Map,this.loadIfEnabled(),void this.previewWebExperiment();e.Ae(`applying feature flags`,t),t.forEach((e=>{var t;if(this.De&&(t=this.De)!=null&&t.has(e)){var n=this._instance.getFeatureFlag(e),r=this.De?.get(e);n&&r!=null&&r.variants[n]&&this.je(r.name,n,r.variants[n].transforms)}}))}}previewWebExperiment(){var t=e.getWindowLocation();if(t!=null&&t.search){var n=pp(t?.search,`__experiment_id`),r=pp(t?.search,`__experiment_variant`);n&&r&&(e.Ae(`previewing web experiments `+n+` && `+r),this.getWebExperiments((e=>{this.Ne(parseInt(n),r,e)}),!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,n){if(this._instance.config.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._instance.config.token),method:`GET`,callback:t=>t.statusCode!==200||!t.json?e([]):e(t.json.experiments||[])})}Ne(t,n,r){var i=r.filter((e=>e.id===t));i&&i.length>0&&(e.Ae(`Previewing web experiment [`+i[0].name+`] with variant [`+n+`]`),this.je(i[0].name,n,i[0].variants[n].transforms))}static Le(t){return!Z(t.conditions)&&e.Ue(t)&&e.ze(t)}static Ue(t){if(Z(t.conditions)||Z(t.conditions?.url))return!0;var n,r=e.getWindowLocation();return!!r&&((n=t.conditions)==null||!n.url||Lh[t.conditions?.urlMatchType??`icontains`](t.conditions.url,r))}
32static getWindowLocation(){return U?.location}static ze(e){if(Z(e.conditions)||Z(e.conditions?.utm))return!0;var t=Sm();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 Ae(e){var t=[...arguments].slice(1);Q.info(`[WebExperiments] `+e,t)}je(t,n,r){this._is_bot()?e.Ae(`Refusing to render web experiment since the viewer is a likely bot`):n===`control`?e.Ae(`Control variants leave the page unmodified.`):r.forEach((r=>{r.selector&&(e.Ae(`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 El&&this._instance?Nh(El,this._instance.config.custom_blocked_useragents):void 0}},zh=Id(`[PostHog ExternalIntegrations]`),Bh={intercom:`intercom-integration`,crispChat:`crisp-chat-integration`},Vh=class{constructor(e){this._instance=e}V(e,t){var n;(n=G.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,e,(e=>{if(e)return zh.error(`failed to load script`,e);t()}))}startIfEnabledOrStop(){var e=this,t=function(t){var n,i,a;(!r||(n=G.__PosthogExtensions__)!=null&&(n=n.integrations)!=null&&n[t]||e.V(Bh[t],(()=>{var n;(n=G.__PosthogExtensions__)==null||(n=n.integrations)==null||(n=n[t])==null||n.start(e._instance)})),!r&&(i=G.__PosthogExtensions__)!=null&&(i=i.integrations)!=null&&i[t])&&((a=G.__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)}}},Hh={},Uh=0,Wh=()=>{},Gh=`posthog`,Kh=!im&&jl?.indexOf(`MSIE`)===-1&&jl?.indexOf(`Mozilla`)===-1,qh=e=>{var t;return K({api_host:`https://us.i.posthog.com`,flags_api_host:null,ui_host:null,token:``,autocapture:!0,cross_subdomain_cookie:Xd(W?.location),persistence:`localStorage+cookie`,persistence_name:``,cookie_persisted_properties:[],loaded:Wh,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,debug:Dl&&ql(Dl?.search)&&Dl.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,enable_recording_console_log:void 0,secure_cookie:(U==null||(t=U.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_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:e=>{var t=`Bad HTTP status: `+e.statusCode+` `+e.text;Q.error(t)},get_device_id:e=>e,capture_performance:void 0,name:`posthog`,bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:`identified_only`,before_send:void 0,request_queue_config:{flush_interval_ms:wh},error_tracking:{},_onCapture:Wh,__preview_eager_load_replay:!1},(e=>({rageclick:!(e&&e>=`2025-11-30`)||{content_ignorelist:!0},capture_pageview:!(e&&e>=`2025-05-24`)||`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}))(e))},Jh=e=>{var t={};X(e.process_person)||(t.person_profiles=e.process_person),X(e.xhr_headers)||(t.request_headers=e.x
32hr_headers),X(e.cookie_name)||(t.persistence_name=e.cookie_name),X(e.disable_cookie)||(t.disable_persistence=e.disable_cookie),X(e.store_google)||(t.save_campaign_params=e.store_google),X(e.verbose)||(t.debug=e.verbose);var n=Hd({},t,e);return Wl(e.property_blacklist)&&(X(e.property_denylist)?n.property_denylist=e.property_blacklist:Wl(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:Q.error(`Invalid value for property_denylist config: `+e.property_denylist)),n},Yh=class{constructor(){this.__forceAllowLocalhost=!1}get He(){return this.__forceAllowLocalhost}set He(e){Q.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}},Xh=class e{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 Yh,this.Be=!1,this.version=Ml.LIB_VERSION,this.Ft=new lh,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=qh(),this.SentryIntegration=up,this.sentryIntegration=e=>function(e,t){var n=lp(e,t);return{name:cp,processEvent:e=>n(e)}}(this,e),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint=`/e/`,this.qe=!1,this.We=null,this.Ge=null,this.Ve=null,this.featureFlags=new Ym(this),this.toolbar=new bp(this),this.scrollManager=new Oh(this),this.pageViewManager=new xp(this),this.surveys=new mh(this),this.conversations=new gh(this),this.logs=new yh(this),this.experiments=new Rh(this),this.exceptions=new gm(this),this.rateLimiter=new xh(this),this.requestRouter=new Ih(this),this.consent=new tp(this),this.externalIntegrations=new Vh(this),this.people={set:(e,t,n)=>{var r=ql(e)?{[e]:t}:e;this.setPersonProperties(r),n?.({})},set_once:(e,t,n)=>{var r=ql(e)?{[e]:t}:e;this.setPersonProperties(void 0,r),n?.({})}},this.on(`eventCaptured`,(e=>Q.info(`send "`+e?.event+`"`,e)))}init(t,n,r){if(r&&r!==Gh){var i=Hh[r]??new e;return i._init(t,n,r),Hh[r]=i,Hh[Gh][r]=i,i}return this._init(t,n,r)}_init(e,t,n){if(t===void 0&&(t={}),X(e)||Jl(e))return Q.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.Je(t.debug),this.Ke=t,this.Ye=[],t.person_profiles?this.Ge=t.person_profiles:t.process_person&&(this.Ge=t.process_person),this.set_config(Hd({},qh(t.defaults),Jh(t),{name:n,token:e})),this.config.on_xhr_error&&Q.error(`on_xhr_error is deprecated. Use on_request_error instead`),this.compression=t.disable_compression?void 0:Sp.GZipJS;var r=this.Xe();this.persistence=new Zm(this.config,r),this.sessionPersistence=this.config.persistence===`sessionStorage`||this.config.persistence===`memory`?this.persistence:new Zm(K({},this.config,{persistence:`sessionStorage`}),r);var i=K({},this.persistence.props),a=K({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Qe=new Th((e=>this.Ze(e)),this.config.request_queue_config),this.tr=new Dh(this),this.__request_queue=[];var o=this.config.cookieless_mode===`always`||this.config.cookieless_mode===`on_reject`&&this.consent.isExplicitlyOptedOut();if(o||(this.sessionManager=new Mh(this),this.sessionPropsManager=new Ah(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Q.info(`Deferring extension initialization to improve startup performance`),setTimeout((()=>{this.ir(o)}),0)):(Q.info(`Initializing extensions synchronously`),this.ir(o)),Ml.DEBUG=Ml.DEBUG||this.config.debug,Ml.DEBUG&&Q.info(`Starting in debug mode`,{this:this,config:t,thisC:K({},this.config),p:i,s:a}),t.bootstrap?.distinctID!==void 0){var s,c,l=this.config.get_device_id(Vf()),u=(s=t.bootstrap)!=null&&s.isIdentifiedID?l:t.bootstrap.distinctID;this.persistence.set_property(Tf,(c=t.bootstrap)!=null&&c.isIdentifiedID?`identified`:`anonymous`),this.register({distinct_id:t.bootstrap.distinctID,$device_id:u})}if(this.er()){var d=Object.keys(t.bootstrap?.featureFlags||{}).filter((e=>{var n;return!((n=t.bootstrap)==null||(n=n.featureFlags)==null||!n[e])})).reduce(((e,n)=>{var r;return e[n]=((r=t.bootstrap)==null||(r=r.featureFlags)==null?void 0:r[n])||!1,e}),{}),f=Object.keys(t.bootstrap?.featureFlagPayloads||{}).filter((e=>d[e])).reduce(((e,n)=>{var r,i;return(r=t.bootstrap)!=null&&(r=r.featureFlagPayloads)!=null&&r[n]&&(e[n]=(i=t.bootstrap)==null||(i=i.featureFlagPayloads)==null?void 0:i[n]),e}),{});this.featureFlags.receivedFeatureFlags({featureFlags:d,featureFlagPayloads:f})}if(o)this.register_once({distinct_id:Nf,$device_id:null},``);else if(!this.get_distinct_id()){var p=this.config.get_device_id(Vf());this.register_once({distinct_id:p,$device_id:p},``),this.persistence.set_property(Tf,`anonymous`)}return Qd(U,`onpagehide`in self?`pagehide`:`unload`,this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),t.segment?sp(this,(()=>this.rr())):this.rr(),Gl(this.config._onCapture)&&this.config._onCapture!==Wh&&(Q.warn("onCapture is deprecated. Please use `before_send` instead"),this.on(`eventCaptured`,(e=>this.config._onCapture(e.event,e)))),this.config.ip&&Q.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}ir(t){var n=performance.now(),r=K({},e.__defaultExtensionClasses,this.config.__extensionClasses);r.historyAutocapture&&(this.historyAutocapture=new r.historyAutocapture(this),this.historyAutocapture.startIfEnabled());var i=[];r.tracingHeaders&&i.push((()=>{new r.tracingHeaders(this).startIfEnabledOrStop()})),r.siteApps&&i.push((()=>{var e;this.siteApps=new r.siteApps(this),(e=this.siteApps)==null||e.init(
32)})),!t&&r.sessionRecording&&i.push((()=>{this.sessionRecording=new r.sessionRecording(this),this.sessionRecording.startIfEnabledOrStop()})),this.config.disable_scroll_properties||i.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),r.autocapture&&i.push((()=>{this.autocapture=new r.autocapture(this),this.autocapture.startIfEnabled()})),i.push((()=>{this.surveys.loadIfEnabled()})),i.push((()=>{this.logs.loadIfEnabled()})),i.push((()=>{this.conversations.loadIfEnabled()})),r.productTours&&i.push((()=>{this.productTours=new r.productTours(this),this.productTours.loadIfEnabled()})),r.heatmaps&&i.push((()=>{this.heatmaps=new r.heatmaps(this),this.heatmaps.startIfEnabled()})),r.webVitalsAutocapture&&i.push((()=>{this.webVitalsAutocapture=new r.webVitalsAutocapture(this)})),r.exceptionObserver&&i.push((()=>{this.exceptionObserver=new r.exceptionObserver(this),this.exceptionObserver.startIfEnabledOrStop()})),r.deadClicksAutocapture&&i.push((()=>{this.deadClicksAutocapture=new r.deadClicksAutocapture(this,ip),this.deadClicksAutocapture.startIfEnabledOrStop()})),i.push((()=>{if(this.sr){var e=this.sr;this.sr=void 0,this.Bi(e)}})),this.nr(i,n)}nr(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout((()=>{this.nr(e,t)}),0);var n=e.shift();if(n)try{n()}catch(e){Q.error(`Error initializing extension:`,e)}}var r=Math.round(performance.now()-t);this.register_for_session({$sdk_debug_extensions_init_method:this.config.__preview_deferred_init_extensions?`deferred`:`synchronous`,$sdk_debug_extensions_init_time_ms:r}),this.config.__preview_deferred_init_extensions&&Q.info(`PostHog extensions initialized (`+r+`ms)`)}Bi(e){var t,n,r,i,a,o,s,c,l;if(!W||!W.body)return Q.info(`document not ready yet, trying again in 500 milliseconds...`),void setTimeout((()=>{this.Bi(e)}),500);this.config.__preview_deferred_init_extensions&&(this.sr=e),this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=q(e.supportedCompression,Sp.GZipJS)?Sp.GZipJS:q(e.supportedCompression,Sp.Base64)?Sp.Base64:void 0),(t=e.analytics)!=null&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Ge?this.Ge:`identified_only`}),(n=this.siteApps)==null||n.onRemoteConfig(e),(r=this.sessionRecording)==null||r.onRemoteConfig(e),(i=this.autocapture)==null||i.onRemoteConfig(e),(a=this.heatmaps)==null||a.onRemoteConfig(e),this.surveys.onRemoteConfig(e),this.logs.onRemoteConfig(e),this.conversations.onRemoteConfig(e),(o=this.productTours)==null||o.onRemoteConfig(e),(s=this.webVitalsAutocapture)==null||s.onRemoteConfig(e),(c=this.exceptionObserver)==null||c.onRemoteConfig(e),this.exceptions.onRemoteConfig(e),(l=this.deadClicksAutocapture)==null||l.onRemoteConfig(e)}rr(){try{this.config.loaded(this)}catch(e){Q.critical("`loaded` function failed",e)}if(this.ar(),this.config.internal_or_test_user_hostname&&Dl!=null&&Dl.hostname){var e=Dl.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.config.cookieless_mode===`always`)&&this.lr()}),1),this.ur=new Ch(this),this.ur.load()}ar(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.Qe)==null||e.enable())}_dom_loaded(){this.is_capturing()&&Bd(this.__request_queue,(e=>this.Ze(e))),this.__request_queue=[],this.ar()}_handle_unload(){var e,t;this.surveys.handlePageUnload(),this.config.request_batching?(this.hr()&&this.capture(`$pageleave`),(e=this.Qe)==null||e.unload(),(t=this.tr)==null||t.unload()):this.hr()&&this.capture(`$pageleave`,null,{transport:`sendBeacon`})}_send_request(e){this.__loaded&&(Kh?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=om(e.url,{ip:this.config.ip?1:0}),e.headers=K({},this.config.request_headers,e.headers),e.compression=e.compression===`best-available`?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=[`sendBeacon`]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,
32(e=>{var t=K({},e);t.timeout=t.timeout||6e4,t.url=om(t.url,{_:new Date().getTime().toString(),ver:Ml.LIB_VERSION,compression:t.compression});var n=t.transport??`fetch`,r=lm.filter((e=>!t.disableTransport||!e.transport||!t.disableTransport.includes(e.transport))),i=Zd(r,(e=>e.transport===n))?.method??r[0].method;if(!i)throw Error(`No available transport method`);i(t)})(K({},e,{callback:t=>{var n,r;(this.rateLimiter.checkForLimiting(t),t.statusCode>=400)&&((n=(r=this.config).on_request_error)==null||n.call(r,t)),e.callback==null||e.callback(t)}}))))}Ze(e){this.tr?this.tr.retriableRequest(e):this._send_request(e)}_execute_array(e){Uh++;try{var t,n=[],r=[],i=[];Bd(e,(e=>{e&&(t=e[0],Wl(t)?i.push(e):Gl(e)?e.call(this):Wl(e)&&t===`alias`?n.push(e):Wl(e)&&t.indexOf(`capture`)!==-1&&Gl(this[t])?i.push(e):r.push(e))}));var a=function(e,t){Bd(e,(function(e){if(Wl(e[0])){var n=t;Vd(e,(function(e){n=n[e[0]].apply(n,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};a(n,this),a(r,this),a(i,this)}finally{Uh--}}er(){return this.config.bootstrap?.featureFlags&&Object.keys(this.config.bootstrap?.featureFlags).length>0||!1}push(t){if(Uh>0&&Wl(t)&&ql(t[0])){var n=e.prototype[t[0]];Gl(n)&&n.apply(this,t.slice(1))}else this._execute_array([t])}capture(e,t,n){if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Qe){if(this.is_capturing())if(!X(e)&&ql(e)){var r=!this.config.opt_out_useragent_filter&&this._is_bot();if(!(r&&!this.config.__preview_capture_bot_pageviews)){var i=n!=null&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(i==null||!i.isRateLimited){t!=null&&t.$current_url&&!ql(t?.$current_url)&&(Q.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.ft||Q.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 a=new Date,o=n?.timestamp||a,s=Vf(),c={uuid:s,event:e,properties:this.calculateEventProperties(e,t||{},o,s)};e===`$pageview`&&this.config.__preview_capture_bot_pageviews&&r&&(c.event=`$bot_pageview`,c.properties.$browser_type=`bot`),i&&(c.properties.$lib_rate_limit_remaining_tokens=i.remainingTokens),n!=null&&n.$set&&(c.$set=n?.$set);var l,u=e!==`$groupidentify`,d=this.dr(n?.$set_once,u);if(d&&(c.$set_once=d),(c=Jd(c,n!=null&&n._noTruncate?null:this.config.properties_string_max_length)).timestamp=o,X(n?.timestamp)||(c.properties.$event_time_override_provided=!0,c.properties.$event_time_override_system_time=a),e===eh.DISMISSED||e===eh.SENT){var f=t?.[th.SURVEY_ID],p=t?.[th.SURVEY_ITERATION];l={id:f,current_iteration:p},localStorage.getItem(oh(l))||localStorage.setItem(oh(l),`true`),c.$set=K({},c.$set,{[ah({id:f,current_iteration:p},e===eh.SENT?`responded`:`dismissed`)]:!0})}else e===eh.SHOWN&&(c.$set=K({},c.$set,{[th.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===_h.SHOWN){var m=t?.[vh.TOUR_TYPE];m&&(c.$set=K({},c.$set,{[vh.TOUR_LAST_SEEN_DATE+`/`+m]:new Date().toISOString()}))}var h=K({},c.properties.$set,c.$set);if(Kl(h)||this.setPersonPropertiesForFlags(h),!Z(this.config.before_send)){var g=this.vr(c);if(!g)return;c=g}this.Ft.emit(`eventCaptured`,c);var _={method:`POST`,url:n?._url??this.requestRouter.endpointFor(`api`,this.analyticsDefaultEndpoint),data:c,compression:`best-available`,batchKey:n?._batchKey};return!this.config.request_batching||n&&(n==null||!n._batchKey)||n!=null&&n.send_instantly?this.Ze(_):this.Qe.enqueue(_),c}Q.critical(`This capture call is ignored due to client rate limiting.`)}}else Q.error(`No event name provided to posthog.capture`)}else Q.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=K({},t);if(o.token=this.config.token,o.$config_defaults=this.config.defaults,(this.config.cookieless_mode==`always`||this.config.cookieless_mode==`on_reject`&&this.consent.isExplicitlyOptedOut())&&(o.$cookieless_mode=!0),e===`$snapshot`){var s=K({},this.persistence.properties(),this.sessionPersistence.properties());return o.distinct_id=s.distinct_id,(!ql(o.distinct_id)&&!Xl(o.distinct_id)||Jl(
32o.distinct_id))&&Q.error(`Invalid distinct_id for replay event. This indicates a bug in your implementation`),o}var c,l=jm(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:u,windowId:d}=this.sessionManager.checkAndGetSessionAndWindowId(i,n.getTime());o.$session_id=u,o.$window_id=d}this.sessionPropsManager&&Hd(o,this.sessionPropsManager.getSessionProps());try{this.sessionRecording&&Hd(o,this.sessionRecording.sdkDebugProperties),o.$sdk_debug_retry_queue_size=this.tr?.length}catch(e){o.$sdk_debug_error_capturing_properties=String(e)}if(this.requestRouter.region===Ph.CUSTOM&&(o.$lib_custom_api_host=this.config.api_host),c=e!==`$pageview`||i?e!==`$pageleave`||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,r),o=Hd(o,c),e===`$pageview`&&W&&(o.title=W.title),!X(a)){var f=n.getTime()-a;o.$duration=parseFloat((f/1e3).toFixed(3))}jl&&this.config.opt_out_useragent_filter&&(o.$browser_type=this._is_bot()?`bot`:`browser`),(o=Hd({},l,this.persistence.properties(),this.sessionPersistence.properties(),o)).$is_identified=this._isIdentified(),Wl(this.config.property_denylist)?Vd(this.config.property_denylist,(function(e){delete o[e]})):Q.error(`Invalid value for property_denylist config: `+this.config.property_denylist+` or property_blacklist config: `+this.config.property_blacklist);var p=this.config.sanitize_properties;p&&(Q.error(`sanitize_properties is deprecated. Use before_send instead`),o=p(o,e));var m=this.cr();return o.$process_person_profile=m,m&&!i&&this.pr(`_calculate_event_properties`),o}dr(e,t){if(t===void 0&&(t=!0),!this.persistence||!this.cr()||this.Be)return e;var n=Hd({},this.persistence.get_initial_props(),this.sessionPropsManager?.getSetOnceProps()||{},e||{}),r=this.config.sanitize_properties;return r&&(Q.error(`sanitize_properties is deprecated. Use before_send instead`),n=r(n,`$set_once`)),t&&(this.Be=!0),Kl(n)?void 0:n}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)}_r(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(){this.featureFlags.reloadFeatureFlags()}updateFlags(e,t,n){var r=n!=null&&n.merge?this.featureFlags.getFlagVariants():{},i=n!=null&&n.merge?this.featureFlags.getFlagPayloads():{},a=K({},r,e),o=K({},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:X(o?.[c])?void 0:{id:0,version:void 0,description:void 0,payload:o[c]}}}this.featureFlags.receivedFeatureFlags({flags:s})}updateEarlyAccessFeatureEnrollment(e,t,n){this.featureFlags.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.Ft.on(e,t)}onFeatureFlags(e){return this.featureFlags.onFeatureFlags(e)}onSurveysLoaded(e){return this.surveys.onSurveysLoaded(e)}onSessionId(e){return this.sessionManager?.onSessionId(e)??(()=>{})}getSurveys(e,t){t===void 0&&(t=!1),this.surveys.getSurveys(e,t)}getActiveMatchingSurveys(e,t){t===void 0&&(t=!1),this.surveys.getActiveMatchingSurveys(e,t)}renderSurvey(e,t){this.surveys.renderSurvey(e,t)}displaySurvey(e,t){t===void 0&&(t=ch),this.surveys.displaySurvey(e,t)}cancelPendingSurvey(e){this.surveys.cancelPendingSurvey(e)}canRenderSurvey(e){return this.surveys.canRenderSurvey(e)}canRenderSurveyAsync(e,t){return t===void 0&&(t=!1),this.surveys.canRenderSurveyAsync(e,t)}identify(e,t,n){if(!this.__loaded||!this.persistence)return Q.uninitializedWarning(`posthog.identify`);if(Xl(e)&&(e=e.toString(),Q.warn(`The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.`)),e)if([`distinct_id`,`distinctid`].includes(e.toLowerCase()))Q.critical(`The string "`+e+`" was set in posthog.identify which indicates an error. This ID should be unique to the user and n
32ot a hardcoded string.`);else if(e!==Nf){if(this.pr(`posthog.identify`)){var r=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property(`$device_id`)){var i=r;this.register_once({$had_persisted_distinct_id:!0,$device_id:i},``)}e!==r&&e!==this.get_property(tf)&&(this.unregister(tf),this.register({distinct_id:e}));var a=(this.persistence.get_property(Tf)||`anonymous`)===`anonymous`;e!==r&&a?(this.persistence.set_property(Tf,`identified`),this.setPersonPropertiesForFlags(K({},n||{},t||{}),!1),this.capture(`$identify`,{distinct_id:e,$anon_distinct_id:r},{$set:t||{},$set_once:n||{}}),this.Ve=dm(e,t,n),this.featureFlags.setAnonymousDistinctId(r)):(t||n)&&this.setPersonProperties(t,n),e!==r&&(this.reloadFeatureFlags(),this.unregister(Sf))}}else Q.critical(`The string "`+Nf+`" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.`);else Q.error(`Unique user id has not been set in posthog.identify`)}setPersonProperties(e,t){if((e||t)&&this.pr(`posthog.setPersonProperties`)){var n=dm(this.get_distinct_id(),e,t);this.Ve===n?Q.info(`A duplicate setPersonProperties call was made with the same properties. It has been ignored.`):(this.setPersonPropertiesForFlags(K({},t||{},e||{})),this.capture(`$set`,{$set:e||{},$set_once:t||{}}),this.Ve=n)}}group(e,t,n){if(e&&t){var r=this.getGroups();r[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:K({},r,{[e]:t})}),n&&(this.capture(`$groupidentify`,{$group_type:e,$group_key:t,$group_set:n}),this.setGroupPropertiesForFlags({[e]:n})),r[e]===t||n||this.reloadFeatureFlags()}else Q.error(`posthog.group requires a group type and group key`)}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0),this.featureFlags.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0),this.pr(`posthog.setGroupPropertiesForFlags`)&&this.featureFlags.setGroupPropertiesForFlags(e,t)}resetGroupPropertiesForFlags(e){this.featureFlags.resetGroupPropertiesForFlags(e)}reset(e){var t,n,r,i,a;if(Q.info(`reset`),!this.__loaded)return Q.uninitializedWarning(`posthog.reset`);var o=this.get_property(`$device_id`);if(this.consent.reset(),(t=this.persistence)==null||t.clear(),(n=this.sessionPersistence)==null||n.clear(),this.surveys.reset(),(r=this.ur)==null||r.stop(),this.featureFlags.reset(),(i=this.persistence)==null||i.set_property(Tf,`anonymous`),(a=this.sessionManager)==null||a.resetSessionId(),this.Ve=null,this.config.cookieless_mode===`always`)this.register_once({distinct_id:Nf,$device_id:null},``);else{var s=this.config.get_device_id(Vf());this.register_once({distinct_id:s,$device_id:e?s:o},``)}this.register({$last_posthog_reset:new Date().toISOString()},1)}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(ef)?(Q.critical(`Attempting to create alias for existing People user - aborting.`),-2):this.pr(`posthog.alias`)?(X(t)&&(t=this.get_distinct_id()),e===t?(Q.warn(`alias matches current distinct_id - skipping api call.`),this.identify(e),-1):(this._r(tf,e),this.capture(`$create_alias`,{alias:e,distinct_id:t}))):void 0}set_config(e){var t=K({},this.config);if(Y(e)){var n,r,i,a,o,s,c,l;Hd(this.config,Jh(e));var u=this.Xe();(n=this.persistence)==null||n.update_config(this.config,t,u),this.sessionPersistence=this.config.persistence===`sessionStorage`||this.config.persistence===`memory`?this.persistence:new Zm(K({},this.config,{persistence:`sessionStorage`}),u);var d=this.Je(this.config.debug);Ql(d)&&(this.config.debug=d),Ql(this.config.debug)&&(this.config.debug?(Ml.DEBUG=!0,Jf.O()&&Jf.j(`ph_debug`,`true`),Q.info(`set_config`,{config:e,oldConfig:t,newConfig:K({},this.config)})):(Ml.DEBUG=!1,Jf.O()&&Jf.L(`ph_debug`))),(r=this.exceptionObserver)==null||r.onConfigChange(),(i=this.sessionRecording)==null||i.startIfEnabledOrStop(),(a=this.autocapture)==null||a.startIfEnabled(),(o=this.heatmaps)==null||o.startIfEnabled(),(s=this.exceptionObserver)==null||s.startIfEnabledOrStop(),(c=this.deadClicksAutocapture)==null||c.startIfEnabledOrStop(),this.surveys.loadIfEnabled(),this.gr(),(l=this.externalIntegrations)==null||l.startIfEnabledOrStop()}}startSessionRecording(e){var t=!0===e,n={sampling:t||!(e==null||!e.sampling),linked_flag:t||!(e==null||!e.linked_flag),url_trigger:t||!(e==null||!e.url_trigger),event_trigger:t||!(e==null||!e.event_trigger)};if(Object.values(n).some(Boolean)){var r,i,a,o,s;(r=this.sessionManager)==null||r.checkAndGetSessionAndWindowId(),n.sampling&&((i=this.sessionRecording)==null||i.overrideSampling()),n.linked_flag&&((a=this.sessionRecording)==null||a.overrideLinkedFlag()),n.url_trigger&&((o=this.sessionRecording)==null||o.overrideTrigger(`url`)),n.event_trigger&&((s=this.sessionRecording)==null||s.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){var n=Error(`PostHog syntheticException`),r=this.exceptions.buildProperties(e,{handled:!0,syntheticException:n});return this.exceptions.sendExceptionEvent(K({},r,t))}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){return this.toolbar.loadToolbar(e)}get_property(e){return this.persistence?.props[e]}getSessionProperty(e){return this.sessionPersistence?.props[e]}toString(){var e=this.config.name??Gh;return e!==Gh&&(e=Gh+`.`+e),e}_isIdentified(){return this.persistence?.get_property(Tf)===`identified`||this.sessionPersistence?.get_property(Tf)===`identified`}cr(){var e,t;return!(this.config.person_profiles===`never`||this.config.person_profiles===`identified_only`&&!this._isIdentified()&&Kl(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[tf])&&((t=this.persistence)==null||(t=t.props)==null||!t[jf]))}hr(){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.cr()||this.pr(`posthog.createPersonProfile`)&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.pr(`posthog.setInternalOrTestUser`)&&this.setPersonProperties({$internal_or_test_user:!0})}pr(e){return this.config.person_profiles===`never`?(Q.error(e+` was called, but process_person is set to "never". This call will be ignored.`),!1):(this._r(jf,!0),!0)}Xe(){if(this.config.cookieless_mode===`always`)return!0;var e=this.consent.isOptedOut(),t=this.config.opt_out_persistence_by_default||this.config.cookieless_mode===`on_reject`;return this.config.disable_persistence||e&&!!t}gr(){var e,t,n=this.Xe();return this.persistence?.zt!==n&&((e=this.persistence)==null||e.set_disabled(n)),this.sessionPersistence?.zt!==n&&((t=this.sessionPersistence)==null||t.set_disabled(n)),n}opt_in_capturing(t){var n;if(this.config.cookieless_mode!==`always`){if(this.config.cookieless_mode===`on_reject`&&this.consent.isExplicitlyOptedOut()){var r,i;this.reset(!0),(r=this.sessionManager)==null||r.destroy(),(i=this.pageViewM
32anager)==null||i.destroy(),this.sessionManager=new Mh(this),this.pageViewManager=new xp(this),this.persistence&&(this.sessionPropsManager=new Ah(this,this.sessionManager,this.persistence));var a=this.config.__extensionClasses?.sessionRecording??e.__defaultExtensionClasses?.sessionRecording;a&&(this.sessionRecording=new a(this),this.sessionRecording.startIfEnabledOrStop())}this.consent.optInOut(!0),this.gr(),this.ar(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode==`on_reject`&&this.surveys.loadIfEnabled(),(X(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture(t?.captureEventName??`$opt_in`,t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.lr()}else Q.warn(`Consent opt in/out is not valid with cookieless_mode="always" and will be ignored`)}opt_out_capturing(){var e,t,n;this.config.cookieless_mode===`always`?Q.warn(`Consent opt in/out is not valid with cookieless_mode="always" and will be ignored`):(this.config.cookieless_mode===`on_reject`&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.gr(),this.config.cookieless_mode===`on_reject`&&(this.register({distinct_id:Nf,$device_id:null}),(e=this.sessionManager)==null||e.destroy(),(t=this.pageViewManager)==null||t.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(n=this.sessionRecording)==null||n.stopRecording(),this.sessionRecording=void 0,this.lr()))}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===ep.GRANTED?`granted`:e===ep.DENIED?`denied`:`pending`}is_capturing(){return this.config.cookieless_mode===`always`||(this.config.cookieless_mode===`on_reject`?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.gr()}_is_bot(){return El?Nh(El,this.config.custom_blocked_useragents):void 0}lr(){W&&(W.visibilityState===`visible`?this.qe||(this.qe=!0,this.capture(`$pageview`,{title:W.title},{send_instantly:!0}),this.We&&=(W.removeEventListener(`visibilitychange`,this.We),null)):this.We||(this.We=this.lr.bind(this),Qd(W,`visibilitychange`,this.We)))}debug(e){!1===e?(U?.console.log(`You've disabled debug mode.`),this.set_config({debug:!1})):(U?.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}))}At(){var e,t,n,r,i,a,o,s=this.Ke||{};return`advanced_disable_flags`in s?!!s.advanced_disable_flags:!1===this.config.advanced_disable_flags?!0===this.config.advanced_disable_decide?(Q.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=!1,i=Q,a=(t=`advanced_disable_flags`)in(e=s)&&!Z(e[t]),o=n in e&&!Z(e[n]),a?e[t]:o?(i&&i.warn(`Config field '`+n+`' is deprecated. Please use '`+t+`' instead. The old field will be removed in a future major version.`),e[n]):r):!!this.config.advanced_disable_flags}vr(e){if(Z(this.config.before_send))return e;var t=Wl(this.config.before_send)?this.config.before_send:[this.config.before_send],n=e;for(var r of t){if(n=r(n),Z(n)){var i=`Event '`+e.event+`' was rejected in beforeSend function`;return eu(e.event)?Q.warn(i+`. This can cause unexpected behavior.`):Q.info(i),null}n.properties&&!Kl(n.properties)||Q.warn(`Event '`+e.event+`' has no properties after beforeSend function, this is likely an error.`)}return n}getPageViewId(){return this.pageViewManager.it?.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)})}Je(e){var t=Ql(e)&&!e,n=Jf.O()&&Jf.A(`ph_debug`)===`true`;return!t&&(!!n||e)}};Xh.__defaultExtensionClasses={},function(e,t){for(var n=0;n<t.length;n++)e.prototype[t[n]]=Kd(e.prototype[t[n]])}(Xh,[`identify`]);function Zh(e){return e instanceof Element&&(e.id===Mf||!(e.closest==null||!e.closest(`.toolbar-global-fade-container`)))}function Qh(e){return!!e&&e.nodeType===1}function $h(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function eg(e){return!!e&&e.nodeType===3}function tg(e){return!!e&&e.nodeType===11}function ng(e){return e?J(e).split(/\s+/):[]}function rg(e){var t=U?.location.href;return!!(t&&e&&e.some((e=>t.match(e))))}function ig(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 ng(t)}function ag(e){return Z(e)?null:J(e).split(/(\s+)/).filter((e=>Eg(e))).join(``).replace(/[\r\n]/g,` `).replace(/[ ]+/g,` `).substring(0,255)}function og(e){var t=``;return vg(e)&&!yg(e)&&e.childNodes&&e.childNodes.length&&Vd(e.childNodes,(function(e){eg(e)&&e.textContent&&(t+=ag(e.textContent)??``)})),J(t)}function sg(e){return X(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var cg=[`a`,`button`,`form`,`input`,`select`,`textarea`,`label`];function lg(e,t){if(X(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 ug(e){var t=e.parentNode;return!(!t||!Qh(t))&&t}var dg=[`next`,`previous`,`prev`,`>`,`<`],fg=10,pg=[`.ph-no-rageclick`,`.ph-no-capture`];function mg(e,t){if(!U||hg(e))return!1;var n,r;if(Ql(t)?(n=!!t&&pg,r=void 0):(n=t?.css_selector_ignorelist??pg,r=t?.content_ignorelist),!1===n)return!1;var{targetElementList:i}=gg(e,!1);return!function(e,t){if(!1===e||X(e))return!1;var n;if(!0===e)n=dg;else{if(!Wl(e))return!1;if(e.length>fg)return Q.error(`[PostHog] content_ignorelist array cannot exceed `+fg+` 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=>t.includes(e)||r.includes(e)))}))}(r,i.map((e=>({safeText:og(e).toLowerCase(),ariaLabel:e.getAttribute(`aria-label`)?.toLowerCase().trim()||``}))))&&!lg(i,n)}var hg=e=>!e||$h(e,`html`)||!Qh(e),gg=(e,t)=>{if(!U||hg(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[e],i=e;i.parentNode&&!$h(i,`body`);)if(tg(i.parentNode))r.push(i.parentNode.host),i=i.parentNode.host;else{var a=ug(i);if(!a)break;if(t||cg.indexOf(a.tagName.toLowerCase())>-1)n=!0;else{var o=U.getComputedStyle(a);o&&o.getPropertyValue(`cursor`)===`pointer`&&(n=!0)}r.push(a),i=a}return{parentIsUsefulElement:n,targetElementList:r}};function _g(e,t,n,r,i){var a,o,s;if(n===void 0&&(n=void 0),!U||hg(e)||(a=n)!=null&&a.url_allowlist&&!rg(n.url_allowlist)||(o=n)!=null&&o.url_ignorelist&&rg(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}=gg(e,r);if(!function(e,t){var n=t?.element_allowlist;if(X(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)||!lg(u,n?.css_selector_allowlist))return!1;var d=U.getComputedStyle(e);
32if(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&&(cg.indexOf(f)>-1||e.getAttribute(`contenteditable`)===`true`)}}function vg(e){for(var t=e;t.parentNode&&!$h(t,`body`);t=t.parentNode){var n=ig(t);if(q(n,`ph-sensitive`)||q(n,`ph-no-capture`))return!1}if(q(ig(e),`ph-include`))return!0;var r=e.type||``;if(ql(r))switch(r.toLowerCase()){case`hidden`:case`password`:return!1}var i=e.name||e.id||``;return!(ql(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 yg(e){return!!($h(e,`input`)&&![`button`,`checkbox`,`submit`,`reset`].includes(e.type)||$h(e,`select`)||$h(e,`textarea`)||e.getAttribute(`contenteditable`)===`true`)}var bg=`(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})`,xg=RegExp(`^(?:`+bg+`)$`),Sg=new RegExp(bg),Cg=`\\d{3}-?\\d{2}-?\\d{4}`,wg=RegExp(`^(`+Cg+`)$`),Tg=RegExp(`(`+Cg+`)`);function Eg(e,t){return t===void 0&&(t=!0),!(Z(e)||ql(e)&&(e=J(e),(t?xg:Sg).test((e||``).replace(/[- ]/g,``))||(t?wg:Tg).test(e)))}function Dg(e){var t=og(e);return Eg(t=(t+` `+Og(e)).trim())?t:``}function Og(e){var t=``;return e&&e.childNodes&&e.childNodes.length&&Vd(e.childNodes,(function(e){if(e&&e.tagName?.toLowerCase()===`span`)try{var n=og(e);t=(t+` `+n).trim(),e.childNodes&&e.childNodes.length&&(t=(t+` `+Og(e)).trim())}catch(e){Q.error(`[AutoCapture]`,e)}})),t}function kg(e){return 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=K({},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 Wd(r).sort(((e,t)=>{var[n]=e,[r]=t;return n.localeCompare(r)})).forEach((e=>{var[t,n]=e;return i[Ag(t.toString())]=Ag(n.toString())})),t+=`:`,t+=Wd(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:jg(e),attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return Wd(e).filter((e=>{var[t]=e;return t.indexOf(`attr__`)===0})).forEach((e=>{var[n,r]=e;return t.attributes[n]=r})),t}))}(e))}function Ag(e){return e.replace(/"|\\"/g,`\\"`)}function jg(e){var t=e.attr__class;return t?Wl(t)?t:ng(t):void 0}var Mg=class{constructor(e){this.disabled=!1===e;var t=Y(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&&n-r.timestamp<this.timeoutMs){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}},Ng=`$copy_autocapture`,Pg=Id(`[AutoCapture]`);function Fg(e,t){return t.length>e?t.slice(0,e)+`...`:t}function Ig(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!Qh(t));return t}function Lg(e,t,n,r){var i=e.tagName.toLowerCase(),a={tag_name:i};cg.indexOf(i)>-1&&!n&&(i.toLowerCase()===`a`||i.toLowerCase()===`button`?a.$el_text=Fg(1024,Dg(e)):a.$el_text=Fg(1024,og(e)));var o=ig(e);o.length>0&&(a.classes=o.filter((function(e){return e!==``}))),Vd(e.attributes,(function(n){var i;if((!yg(e)||[`name`,`id`,`class`,`aria-label`].indexOf(n.name)!==-1)&&(r==null||!r.includes(n.name))&&!t&&Eg(n.value)&&(i=n.name,!ql(i)||i.substring(0,10)!==`_ngcontent`&&i.substring(0,7)!==`_nghost`)){var o=n.value;n.name===`class`&&(o=ng(o).join(` `)),a[`attr__`+n.name]=Fg(1024,o)}}));for(var s=1,c=1,l=e;l=Ig(l);)s++,l.tagName===e.tagName&&c++;return a.nth_child=s,a.nth_of_type=c,a}function Rg(e,t){for(var n,{e:r,maskAllElementAttributes:i,maskAllText:a,elementAttributeIgnoreList:o,elementsC
32hainAsString:s}=t,c=[e],l=e;l.parentNode&&!$h(l,`body`);)tg(l.parentNode)?(c.push(l.parentNode.host),l=l.parentNode.host):(c.push(l.parentNode),l=l.parentNode);var u,d=[],f={},p=!1,m=!1;if(Vd(c,(e=>{var t=vg(e);e.tagName.toLowerCase()===`a`&&(p=e.getAttribute(`href`),p=t&&p&&Eg(p)&&p),q(ig(e),`ph-no-capture`)&&(m=!0),d.push(Lg(e,i,a,o)),Hd(f,function(e){if(!vg(e))return{};var t={};return Vd(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&&Eg(r)&&(t[n]=r)}})),t}(e))})),m)return{props:{},explicitNoCapture:m};if(a||(e.tagName.toLowerCase()===`a`||e.tagName.toLowerCase()===`button`?d[0].$el_text=Dg(e):d[0].$el_text=og(e)),p){var h;d[0].attr__href=p;var g=dp(p)?.host,_=U==null||(h=U.location)==null?void 0:h.host;g&&_&&g!==_&&(u=p)}return{props:Hd({$event_type:r.type,$ce_version:1},s?{}:{$elements:d},{$elements_chain:kg(d)},(n=d[0])!=null&&n.$el_text?{$el_text:d[0]?.$el_text}:{},u&&r.type===`click`?{$external_click_url:u}:{},f)}}var zg=Id(`[ExceptionAutocapture]`);function Bg(e,t,n){try{if(!(t in e))return()=>{};var r=e[t],i=n(r);return Gl(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}var Vg=Id(`[TracingHeaders]`),Hg=Id(`[Web Vitals]`),Ug=9e5;Id(`[SessionRecording]`);var Wg=`[SessionRecording]`,Gg=Id(Wg),Kg=Id(`[Heatmaps]`);function qg(e){return Y(e)&&`clientX`in e&&`clientY`in e&&Xl(e.clientX)&&Xl(e.clientY)}var Jg=Id(`[Product Tours]`),Yg=`ph_product_tours`,Xg=[`$set_once`,`$set`],Zg=Id(`[SiteApps]`),Qg=K({},{sessionRecording:class{get started(){var e;return!((e=this.mr)==null||!e.isStarted)}get status(){return this.mr?this.mr.status:this.br?this.yr?`lazy_loading`:`disabled`:`pending_config`}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.br=!1,this.wr=!1,this.$r=void 0,this._instance=e,!this._instance.sessionManager)throw Gg.error(`started without valid sessionManager`),Error(Wg+` started without valid sessionManager. This is a bug.`);if(this._instance.config.cookieless_mode===`always`)throw Error(Wg+` cannot be used with cookieless_mode="always"`)}get yr(){var e,t=!((e=this._instance.get_property(pf))==null||!e.enabled),n=!this._instance.config.disable_session_recording,r=this._instance.config.disable_session_recording||this._instance.consent.isOptedOut();return U&&t&&n&&!r}startIfEnabledOrStop(e){var t;if(this.br&&(!this.yr||(t=this.mr)==null||!t.isStarted)){var n=!X(Object.assign)&&!X(Array.from);this.yr&&n?(this.Er(e),Gg.info(`starting`)):this.stopRecording()}}Er(e){var t,n,r;this.yr&&(G!=null&&(t=G.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(n=G.__PosthogExtensions__)!=null&&n.initSessionRecording?this.Sr(e):(r=G.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,this.kr,(t=>{if(t)return Gg.error(`could not load recorder`,t);this.Sr(e)})))}stopRecording(){var e,t;(e=this.$r)==null||e.call(this),this.$r=void 0,(t=this.mr)==null||t.stop()}Pr(){var e;(e=this._instance.persistence)==null||e.unregister(hf)}Tr(e){if(this._instance.persistence){var t,n=this._instance.persistence,r=()=>{var t=!1===e.sessionRecording?void 0:e.sessionRecording,r=t?.sampleRate,i=Z(r)?null:parseFloat(r);Z(i)&&this.Pr();var a=t?.minimumDurationMilliseconds;n.register({[pf]:K({cache_timestamp:Date.now(),enabled:!!t},t,{networkPayloadCapture:K({capturePerformance:e.capturePerformance},t?.networkPayloadCapture),canvasRecording:{enabled:t?.recordCanvas,fps:t?.canvasFps,quality:t?.canvasQuality},sampleRate:i,minimumDurationMilliseconds:X(a)?null:a,endpoint:t?.endpoint,triggerMatchType:t?.triggerMatchType,masking:t?.masking,urlTriggers:t?.urlTriggers})})};r(),(t=this.$r)==null||t.call(this),this.$r=this._instance.sessionManager?.onSessionId(r)}}onRemoteConfig(e){`sessionRecording`in e?!1===e.sessionRecording?this.br=!0:(this.wr=!1,this.Tr(e),this.br=!0,this.startIfEnabledOrStop()):Gg.info(`skipping remote config with no sessionRecording`,e)}log(e,t){var n;t===void 0&&(t=`log`),(n=this.mr)!=null&&n.log?this.mr.log(e,t):Gg.warn(`log called before recorder was ready`)}get kr(){var e,t,n=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(pf);return(n==null||(t=n.scriptConfig)==null?void 0:t.script)||`lazy-recorder`}Cr(){var e=this._instance.get_property(pf);if(!e)return!1;var t=(typeof e==`object`?e:JSON.parse(e)).cache_timestamp??Date.now();return Date.now()-t<=3e5}Sr(e){var t;if((t=G.__PosthogExtensions__)==null||!t.initSessionRecording)throw Error(`Called on script loaded before session recording is available`);this.mr||(this.mr=G.__PosthogExtensions__?.initSessionRecording(this._instance),this.mr._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),this.Cr()?this.mr.start(e):this.wr||(this.wr=!0,Gg.info(`persisted remote config is stale, requesting fresh config before starting`),new Ch(this._instance).load())}onRRwebEmit(e){var t;(t=this.mr)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.mr||(t=this._instance.persistence)==null||t.register({$replay_override_linked_flag:!0}),(e=this.mr)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.mr||(t=this._instance.persistence)==null||t.register({$replay_override_sampling:!0}),(e=this.mr)==null||e.overrideSampling()}overrideTrigger(e){var t,n;this.mr||(n=this._instance.persistence)==null||n.register({[e===`url`?`$replay_override_url_trigger`:`$replay_override_event_trigger`]:!0}),(t=this.mr)==null||t.overrideTrigger(e)}get sdkDebugProperties(){return this.mr?.sdkDebugProperties||{$recording_status:this.status}}tryAddCustomEvent(e,t){var n;return!((n=this.mr)==null||!n.tryAddCustomEvent(e,t))}}},{autocapture:class{constructor(e){this.Ir=!1,this.Rr=null,this.Fr=!1,this.instance=e,this.rageclicks=new Mg(e.config.rageclick),this.Or=null}get N(){var e=Y(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}
32Mr(){if(this.isBrowserSupported()){if(U&&W){var e=e=>{e||=U?.event;try{this.Ar(e)}catch(e){Pg.error(`Failed to capture event`,e)}};if(Qd(W,`submit`,e,{capture:!0}),Qd(W,`change`,e,{capture:!0}),Qd(W,`click`,e,{capture:!0}),this.N.capture_copied_text){var t=e=>{e||=U?.event,this.Ar(e,Ng)};Qd(W,`copy`,t,{capture:!0}),Qd(W,`cut`,t,{capture:!0})}}}else Pg.info(`Disabling Automatic Event Collection because this browser is not supported`)}startIfEnabled(){this.isEnabled&&!this.Ir&&(this.Mr(),this.Ir=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Fr=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[rf]:!!e.autocapture_opt_out}),this.Rr=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Or=e}getElementSelectors(e){var t,n=[];return(t=this.Or)==null||t.forEach((t=>{(W?.querySelectorAll(t))?.forEach((r=>{e===r&&n.push(t)}))})),n}get isEnabled(){var e=this.instance.persistence?.props[rf],t=this.Rr;if(Yl(t)&&!Ql(e)&&!this.instance.At())return!1;var n=this.Rr??!!e;return!!this.instance.config.autocapture&&!n}Ar(e,t){if(t===void 0&&(t=`$autocapture`),this.isEnabled){var n,r=sg(e);eg(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())&&mg(r,this.instance.config.rageclick)&&this.Ar(e,`$rageclick`);var i=t===Ng;if(r&&_g(r,e,this.N,i,i?[`copy`,`cut`]:void 0)){var{props:a,explicitNoCapture:o}=Rg(r,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.N.element_attribute_ignorelist,elementsChainAsString:this.Fr});if(o)return!1;var s=this.getElementSelectors(r);if(s&&s.length>0&&(a.$element_selectors=s),t===Ng){var c,l=ag(U==null||(c=U.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 Gl(W?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Dr=(U==null||(t=U.location)==null?void 0:t.pathname)||``}get isEnabled(){return this._instance.config.capture_pageview===`history_change`}startIfEnabled(){this.isEnabled&&(Q.info(`History API monitoring enabled, starting...`),this.monitorHistoryChanges())}stop(){this.jr&&this.jr(),this.jr=void 0,Q.info(`History API monitoring stopped`)}monitorHistoryChanges(){var e,t;if(U&&U.history){var n=this;(e=U.history.pushState)!=null&&e.__posthog_wrapped__||Bg(U.history,`pushState`,(e=>function(t,r,i){e.call(this,t,r,i),n.Lr(`pushState`)})),(t=U.history.replaceState)!=null&&t.__posthog_wrapped__||Bg(U.history,`replaceState`,(e=>function(t,r,i){e.call(this,t,r,i),n.Lr(`replaceState`)})),this.Nr()}}Lr(e){try{var t,n=U==null||(t=U.location)==null?void 0:t.pathname;if(!n)return;n!==this.Dr&&this.isEnabled&&this._instance.capture(`$pageview`,{navigation_type:e}),this.Dr=n}catch(t){Q.error(`Error capturing `+e+` pageview`,t)}}Nr(){if(!this.jr){var e=()=>{this.Lr(`popstate`)};Qd(U,`popstate`,e),this.jr=()=>{U&&U.removeEventListener(`popstate`,e)}}}},heatmaps:class{constructor(e){var t;this.Ur=!1,this.Ir=!1,this.zr=null,this.instance=e,this.Ur=!((t=this.instance.persistence)==null||!t.props[af]),this.rageclicks=new Mg(e.config.rageclick)}get flushIntervalMilliseconds(){var e=5e3;return Y(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(e=this.instance.config.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Z(this.instance.config.capture_heatmaps)?Z(this.instance.config.enable_heatmaps)?this.Ur:this.instance.config.enable_heatmaps:!1!==this.instance.config.capture_heatmaps}startIfEnabled(){if(this.isEnabled){if(this.Ir)return;Kg.info(`starting...`),this.Hr(),this.Br()}else clearInterval(this.zr??void 0),this.qr(),this.getAndClearBuffer()}onRemoteConfig(e){if(`heatmaps`in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[af]:t}),this.Ur=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.R;return this.R=void 0,e}Wr(e){this.Gr(e.originalEvent,`deadclick`)}Br(){this.zr&&clearInterval(this.zr),this.zr=function(e){return e?.visibilityState===`visible`}(W)?setInterval(this.se.bind(this),this.flushIntervalMilliseconds):null}
32Hr(){U&&W&&(this.Vr=this.se.bind(this),Qd(U,`beforeunload`,this.Vr),this.Jr=e=>this.Gr(e||U?.event),Qd(W,`click`,this.Jr,{capture:!0}),this.Kr=e=>this.Yr(e||U?.event),Qd(W,`mousemove`,this.Kr,{capture:!0}),this.Xr=new ap(this.instance,rp,this.Wr.bind(this)),this.Xr.startIfEnabledOrStop(),this.Qr=this.Br.bind(this),Qd(W,`visibilitychange`,this.Qr),this.Ir=!0)}qr(){var e;U&&W&&(this.Vr&&U.removeEventListener(`beforeunload`,this.Vr),this.Jr&&W.removeEventListener(`click`,this.Jr,{capture:!0}),this.Kr&&W.removeEventListener(`mousemove`,this.Kr,{capture:!0}),this.Qr&&W.removeEventListener(`visibilitychange`,this.Qr),clearTimeout(this.Zr),(e=this.Xr)==null||e.stop(),this.Ir=!1)}ts(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&&Qh(r)&&!$h(r,`body`);){if(r===n)return!1;if(q(t,U?.getComputedStyle(r).position))return!0;r=ug(r)}return!1}(sg(e),[`fixed`,`sticky`],i);return{x:e.clientX+(a?0:r),y:e.clientY+(a?0:n),target_fixed:a,type:t}}Gr(e,t){var n;if(t===void 0&&(t=`click`),!Zh(e.target)&&qg(e)){var r=this.ts(e,t);(n=this.rageclicks)!=null&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.es(K({},r,{type:`rageclick`})),this.es(r)}}Yr(e){!Zh(e.target)&&qg(e)&&(clearTimeout(this.Zr),this.Zr=setTimeout((()=>{this.es(this.ts(e,`mousemove`))}),500))}es(e){if(U){var t=U.location.href,n=this.instance.config.mask_personal_data_properties,r=this.instance.config.custom_personal_data_properties,i=mp(t,n?Ud([],vm,r||[]):[],bm);this.R=this.R||{},this.R[i]||(this.R[i]=[]),this.R[i].push(e)}}se(){this.R&&!Kl(this.R)&&this.instance.capture(`$$heatmap`,{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:ap,webVitalsAutocapture:class{constructor(e){var t;this.Ur=!1,this.Ir=!1,this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.rs=()=>{clearTimeout(this.ss),this.R.metrics.length!==0&&(this._instance.capture(`$web_vitals`,this.R.metrics.reduce(((e,t)=>K({},e,{[`$web_vitals_`+t.name+`_event`]:K({},t),[`$web_vitals_`+t.name+`_value`]:t.value})),{})),this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ns=e=>{var t=this._instance.sessionManager?.checkAndGetSessionAndWindowId(!0);if(X(t))Hg.error(`Could not read session ID. Dropping metrics!`);else{this.R=this.R||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var n=this.os();X(n)||(Z(e?.name)||Z(e?.value)?Hg.error(`Invalid metric received`,e):this.ls&&e.value>=this.ls?Hg.error(`Ignoring metric with value >= `+this.ls,e):(this.R.url!==n&&(this.rs(),this.ss=setTimeout(this.rs,this.flushToCaptureTimeoutMs)),X(this.R.url)&&(this.R.url=n),this.R.firstMetricTimestamp=X(this.R.firstMetricTimestamp)?Date.now():this.R.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0),this.R.metrics.push(K({},e,{$current_url:n,$session_id:t.sessionId,$window_id:t.windowId,timestamp:Date.now()})),this.R.metrics.length===this.allowedMetrics.length&&this.rs()))}},this.us=()=>
32{if(!this.Ir){var e,t,n,r,i=G.__PosthogExtensions__;X(i)||X(i.postHogWebVitalsCallbacks)||({onLCP:e,onCLS:t,onFCP:n,onINP:r}=i.postHogWebVitalsCallbacks),e&&t&&n&&r?(this.allowedMetrics.indexOf(`LCP`)>-1&&e(this.ns.bind(this)),this.allowedMetrics.indexOf(`CLS`)>-1&&t(this.ns.bind(this)),this.allowedMetrics.indexOf(`FCP`)>-1&&n(this.ns.bind(this)),this.allowedMetrics.indexOf(`INP`)>-1&&r(this.ns.bind(this)),this.Ir=!0):Hg.error(`web vitals callbacks not loaded - not starting`)}},this._instance=e,this.Ur=!((t=this._instance.persistence)==null||!t.props[lf]),this.startIfEnabled()}get allowedMetrics(){var e=Y(this._instance.config.capture_performance)?this._instance.config.capture_performance?.web_vitals_allowed_metrics:void 0;return Z(e)?this._instance.persistence?.props[ff]||[`CLS`,`FCP`,`INP`,`LCP`]:e}get flushToCaptureTimeoutMs(){return(Y(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=Y(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_attribution:void 0;return e!=null&&e}get ls(){var e=Y(this._instance.config.capture_performance)&&Xl(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:Ug;return 0<e&&e<=6e4?Ug:e}get isEnabled(){var e=Dl?.protocol;if(e!==`http:`&&e!==`https:`)return Hg.info(`Web Vitals are disabled on non-http/https protocols`),!1;var t=Y(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:Ql(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return Ql(t)?t:this.Ur}startIfEnabled(){this.isEnabled&&!this.Ir&&(Hg.info(`enabled, starting...`),this.V(this.us))}onRemoteConfig(e){if(`capturePerformance`in e){var t=Y(e.capturePerformance)&&!!e.capturePerformance.web_vitals,n=Y(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[lf]:t}),this._instance.persistence.register({[ff]:n})),this.Ur=t,this.startIfEnabled()}}V(e){var t,n;if((t=G.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks)e();else{var r=this.useAttribution?`web-vitals-with-attribution`:`web-vitals`;(n=G.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,r,(t=>{t?Hg.error(`failed to load script`,t):e()}))}}os(){var e=U?U.location.href:void 0;if(e){var t=this._instance.config.mask_personal_data_properties,n=this._instance.config.custom_personal_data_properties;return mp(e,t?Ud([],vm,n||[]):[],bm)}Hg.error(`Could not determine current URL`)}}},{exceptionObserver:class{constructor(e){var t;this.us=()=>{var e;if(U&&this.isEnabled&&(e=G.__PosthogExtensions__)!=null&&e.errorWrappingFunctions){var t=G.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,n=G.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,r=G.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.hs&&this.N.capture_unhandled_errors&&(this.hs=t(this.captureException.bind(this))),!this.ds&&this.N.capture_unhandled_rejections&&(this.ds=n(this.captureException.bind(this))),!this.vs&&this.N.capture_console_errors&&(this.vs=r(this.captureException.bind(this)))}catch(e){zg.error(`failed to start`,e),this.cs()}}},this._instance=e,this.fs=!((t=this._instance.persistence)==null||!t.props[of]),this.ps=new cu({refillRate:this._instance.config.error_tracking.__exceptionRateLimiterRefillRate??1,bucketSize:this._instance.config.error_tracking.__exceptionRateLimiterBucketSize??10,refillInterval:1e4,h:zg}),this.N=this._s(),this.startIfEnabledOrStop()}_s(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Y(e)?t=K({},t,e):(X(e)?this.fs:e)&&(t=K({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.N.capture_console_errors||this.N.capture_unhandled_errors||this.N.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(zg.info(`enabled`),this.cs(),this.V(this.us)):this.cs()}V(e){var t,n;
32(t=G.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(n=G.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,`exception-autocapture`,(t=>{if(t)return zg.error(`failed to load script`,t);e()}))}cs(){var e,t,n;(e=this.hs)==null||e.call(this),this.hs=void 0,(t=this.ds)==null||t.call(this),this.ds=void 0,(n=this.vs)==null||n.call(this),this.vs=void 0}onRemoteConfig(e){`autocaptureExceptions`in e&&(this.fs=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[of]:this.fs}),this.N=this._s(),this.startIfEnabledOrStop())}onConfigChange(){this.N=this._s()}captureException(e){var t,n=(e==null||(t=e.$exception_list)==null||(t=t[0])==null?void 0:t.type)??`Exception`;this.ps.consumeRateLimit(n)?zg.info(`Skipping exception capture because of client rate limiting.`,{exception:n}):this._instance.exceptions.sendExceptionEvent(e)}}},{productTours:class{constructor(e){this.gs=null,this.bs=null,this._instance=e}onRemoteConfig(e){`productTours`in e&&(this._instance.persistence&&this._instance.persistence.register({[df]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.gs||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(df)||this.V((()=>this.ys()))}V(e){var t,n;(t=G.__PosthogExtensions__)!=null&&t.generateProductTours?e():(n=G.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,`product-tours`,(t=>{t?Jg.error(`Could not load product tours script`,t):e()}))}ys(){var e;!this.gs&&(e=G.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.gs=G.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Wl(this.bs)||t){var n=this._instance.persistence;if(n){var r=n.props[Yg];if(Wl(r)&&!t)return this.bs=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;Jg.error(i),e([],{isLoaded:!1,error:i});return}var a=Wl(t.json.product_tours)?t.json.product_tours:[];this.bs=a,n&&n.register({[Yg]:a}),e(a,{isLoaded:!0})}})}else e(this.bs,{isLoaded:!0})}getActiveProductTours(e){Z(this.gs)?e([],{isLoaded:!1,error:`Product tours not loaded`}):this.gs.getActiveProductTours(e)}showProductTour(e){var t;(t=this.gs)==null||t.showTourById(e)}previewTour(e){this.gs?this.gs.previewTour(e):this.V((()=>{var t;this.ys(),(t=this.gs)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.gs)==null||e.dismissTour(`user_clicked_skip`)}nextStep(){var e;(e=this.gs)==null||e.nextStep()}previousStep(){var e;(e=this.gs)==null||e.previousStep()}clearCache(){var e;this.bs=null,(e=this._instance.persistence)==null||e.unregister(Yg)}resetTour(e){var t;(t=this.gs)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.gs)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.gs)==null||t.cancelPendingTour(e)}}},{siteApps:class{constructor(e){this._instance=e,this.ws=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}xs(e,t){if(t){var n=this.globalsForEvent(t);this.ws.push(n),this.ws.length>1e3&&(this.ws=this.ws.slice(10))}}get siteAppLoaders(){var e;return(e=G._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}init(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.xs.bind(this));this.$s=()=>{e(),this.ws=[],this.$s=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:K({},Fl(e,Xg),{properties:K({},e.properties,s?{$set:K({},e.properties?.$set??{},s)}:{},o?{$set_once:K({},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.ws.length&&(Zg.info(`Processing `+this.ws.length+` events for site app with id `+e.id),this.ws.forEach((e=>t.processEvent==null?void 0:t.processEvent(e))),t.processedBuffer=!0),Object.values(this.apps).every((e=>e.processedBuffer||e.errored)))&&((n=this.$s)==null||n.call(this))},r=!1,i=i=>{t.errored=!i,t.loaded=!0,Zg.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){Zg.error(`Error while initializing PostHog app with config id `+e.id,t),i(!1)}if(r&&t.loaded)try{n()}catch(n){Zg.error(`Error while processing buffered events PostHog app with config id `+e.id,n),t.errored=!0}}Es(){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)}Ss(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){Zg.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.Es(),void this._instance.on(`eventCaptured`,(e=>this.Ss(e)))):void Zg.error(`PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.`);if((n=this.$s)==null||n.call(this),(r=e.siteApps)!=null&&r.length)if(this.isEnabled){var a=function(e){var t;G[`__$$ph_site_app_`+e]=i._instance,(t=G.__PosthogExtensions__)==null||t.loadSiteApp==null||t.loadSiteApp(i._instance,s,(t=>
32{if(t)return Zg.error(`Error while initializing PostHog app with config id `+e,t)}))};for(var{id:o,url:s}of e.siteApps)a(o)}else Zg.error(`PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.`)}}},{tracingHeaders:class{constructor(e){this.ks=void 0,this.Ps=void 0,this.us=()=>{var e,t;X(this.ks)&&((e=G.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),X(this.Ps)&&((t=G.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}V(e){var t,n;(t=G.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(n=G.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,`tracing-headers`,(t=>{if(t)return Vg.error(`failed to load script`,t);e()}))}startIfEnabledOrStop(){var e,t;this._instance.config.__add_tracing_headers?this.V(this.us):((e=this.ks)==null||e.call(this),(t=this.Ps)==null||t.call(this),this.ks=void 0,this.Ps=void 0)}}});Xh.__defaultExtensionClasses=K({},Qg);var $g,e_=($g=Hh[Gh]=new Xh,function(){function e(){e.done||(e.done=!0,Kh=!1,Vd(Hh,(function(e){e._dom_loaded()})))}W!=null&&W.addEventListener?W.readyState===`complete`?e():Qd(W,`DOMContentLoaded`,e,{capture:!1}):U&&Q.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),$g),t_=(0,L.createContext)({client:e_,bootstrap:void 0});function n_(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)||!n_(e[s],t[s],n))return!1}return!0}function r_(e){var t=e.children,n=e.client,r=e.apiKey,i=e.options,a=(0,L.useRef)(null),o=(0,L.useMemo)(function(){return n?(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):(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,L.useEffect)(function(){if(!n){var e=a.current;e?(r!==e.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&&!n_(i,e.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)]),L.createElement(t_.Provider,{value:{client:o,bootstrap:i?.bootstrap??n?.config?.bootstrap}},t)}var i_=function(e){return typeof e==`function`},a_=function(){return(0,L.useContext)(t_).client},o_=function(e,t){return o_=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])},o_(e,t)};function s_(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);o_(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var c_={componentStack:null,exceptionEvent:null,error:null},l_={INVALID_FALLBACK:`[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element.`};(function(e){s_(t,e);function t(t){var n=e.call(this,t)||this;return n.state=c_,n}return t.prototype.componentDidCatch=function(e,t){var n=this.props.additionalProperties,r;i_(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 i_(t)?t():t;var i=i_(n)?L.createElement(n,{error:r.error,componentStack:r.componentStack,exceptionEvent:r.exceptionEvent}):n;return L.isValidElement(i)?i:(console.warn(l_.INVALID_FALLBACK),L.createElement(L.Fragment,null))},t.contextType=t_,t})(L.Component);var u_=`/assets/kopia-07-CUDSF8rH.png`,d_=re({method:`POST`}).handler(D(`27a7d651dd9e9d651db49b84fd7fa707c0b7c7dbbfd2afcde0f6748f5fa19c35`)),f_=re({method:`POST`}).handler(D(`13d1077cbccb0f0a7ccc270cdc54f5d3d9ad3bfaea3ccb7e58f3e56d71633d27`)),p_=`kopia_ads_attrib`,m_=3600*24*90,h_=[`gclid`,`wbraid`,`gbraid`,`utm_source`,`utm_medium`,`utm_campaign`,`utm_term`,`utm_content`];function g_(e){try{return new URLSearchParams(decodeURIComponent(e))}catch{return new URLSearchParams(e)}}function __(e){if(typeof document>`u`)return null;let t=document.cookie.split(/;\s*/);for(let n of t){let[t,...r]=n.split(`=`);
32if(t===e)return r.join(`=`)}return null}function v_(){if(typeof window>`u`)return;let e=new URL(window.location.href),t=e.searchParams,n=__(p_),r=n?g_(n):new URLSearchParams,i=new URLSearchParams(r),a=!1;for(let e of h_){let n=t.get(e);n&&(a=!0,i.get(e)||i.set(e,n))}if(!a)return;i.get(`landing_path`)||i.set(`landing_path`,`${e.pathname}${e.search}`),!i.get(`landing_referrer`)&&document.referrer&&i.set(`landing_referrer`,document.referrer),i.get(`captured_at`)||i.set(`captured_at`,new Date().toISOString());let o=encodeURIComponent(i.toString()),s=window.location.protocol===`https:`?`; Secure`:``;document.cookie=`${p_}=${o}; Path=/; Max-Age=${m_}; SameSite=Lax${s}`}function y_(){let e=`17974604306`?.trim();return e?`AW-${e}`:null}function b_(){let e=y_();return e?[{src:`https://www.googletagmanager.com/gtag/js?id=${e}`,async:!0},{children:` 33 window.dataLayer = window.dataLayer || []; 34 function gtag(){dataLayer.push(arguments);} 35 gtag('js', new Date()); 36 gtag('config', '${e}'); 37 `}]:[]}function x_(e){let t=(0,br.c)(5),n=Ge(d_),r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=[],t[0]=r):r=t[0],(0,L.useEffect)(C_,r);let i,a;t[1]!==n||t[2]!==e?(i=()=>{e&&n().catch(S_)},a=[n,e],t[1]=n,t[2]=e,t[3]=i,t[4]=a):(i=t[3],a=t[4]),(0,L.useEffect)(i,a)}function S_(e){console.error(`[ads] - failed to attach attribution on app boot`,e)}function C_(){v_()}var w_=M()({head:()=>({scripts:b_(),meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`}],links:[{rel:`preload`,href:`/fonts/Rubik-VariableFont_wght.ttf`,as:`font`,type:`font/ttf`,crossOrigin:`anonymous`},{rel:`preload`,href:`/fonts/Rubik-Italic-VariableFont_wght.ttf`,as:`font`,type:`font/ttf`,crossOrigin:`anonymous`},{rel:`stylesheet`,href:Rn},{rel:`icon`,type:`image/png`,href:new URL(u_,`https://kopia.ai`).toString()}]}),beforeLoad:async({context:e})=>{let[t,n]=await Promise.all([e.queryClient.ensureQueryData({queryKey:[`user`],queryFn:()=>qe()}),e.queryClient.ensureQueryData({queryKey:[`organizations`],queryFn:()=>Ye()})]);return{user:t,organizations:n}},component:T_});function T_(){let e=(0,br.c)(8),{user:t}=w_.useRouteContext(),n=a_(),r=t?.id,i=t?.email,a=t?.isAnonymous??!0;x_(r);let o,s;e[0]!==a||e[1]!==n||e[2]!==i||e[3]!==r?(o=()=>{r&&!a&&n?.identify(r,{email:i})},s=[a,n,i,r],e[0]=a,e[1]=n,e[2]=i,e[3]=r,e[4]=o,e[5]=s):(o=e[4],s=e[5]),(0,L.useEffect)(o,s);let c;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,I.jsx)(`head`,{children:(0,I.jsx)(Mn,{})}),e[6]=c):c=e[6];let l;return e[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,I.jsxs)(`html`,{lang:`en`,children:[c,(0,I.jsx)(`body`,{children:(0,I.jsxs)(yl,{children:[(0,I.jsx)(`main`,{className:``,children:(0,I.jsx)(f,{})}),(0,I.jsx)(Ln,{}),(0,I.jsx)(xr,{}),(0,I.jsx)(Nn,{})]})})]}),e[7]=l):l=e[7],l}var E_=ct(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),D_=ct(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),O_=ct(`captions`,[[`rect`,{width:`18`,height:`14`,x:`3`,y:`5`,rx:`2`,ry:`2`,key:`12ruh7`}],[`path`,{d:`M7 15h4M15 15h2M7 11h2M13 11h4`,key:`1ueiar`}]]),k_=ct(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),A_=ct(`file-pen`,[[`path`,{d:`M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5`,key:`1couwa`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`1y4qbx`}]]),j_=ct(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`1d0kgt`}]]),M_=ct(`menu`,[[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 18h16`,key:`19g7jn`}],[`path`,{d:`M4 6h16`,key:`1o0s65`}]]),N_=ct(`message-square`,[[`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`,key:`1lielz`}
37]]),P_=ct(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),F_=ct(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),I_=ct(`sparkles`,[[`path`,{d:`M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z`,key:`4pj2yx`}],[`path`,{d:`M20 3v4`,key:`1olli1`}],[`path`,{d:`M22 5h-4`,key:`1gvqau`}],[`path`,{d:`M4 17v2`,key:`vumght`}],[`path`,{d:`M5 18H3`,key:`zchphs`}]]),L_=ct(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),R_=ct(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),z_=N(`/pricing`)({component:P(()=>F(()=>import(`./pricing-CA_wRfkO.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34])),`component`),head:()=>{let e=`https://kopia.ai`,t=new URL(rn,e).href,n=nn(),r={"@context":`https://schema.org`,"@graph":[{"@type":`Organization`,"@id":`${e}#organization`,name:`Kopia.ai`,url:e,logo:t},n.offerCatalog,{"@type":`Service`,"@id":`${e}#transcription-service`,name:`Kopia.ai Transcription Service`,url:e,description:`AI-powered transcription software for audio and video files with speaker labels, editing tools, and multiple export formats.`,provider:{"@id":`${e}#organization`},serviceType:`AI transcription`,image:t,offers:n.offers}]};return{links:[{rel:`canonical`,href:`https://kopia.ai/pricing`}],meta:[{title:`Pricing`},{name:`description`,content:`Affordable AI transcription â no subscription required. Buy transcription hours and start instantly, or subscribe to save more.`},...Ze({title:`Kopia.ai - Pricing`,description:`Affordable AI transcription â no subscription required. Buy transcription hours and start instantly, or subscribe to save more.`,imageUrl:new URL(rn,`https://kopia.ai`).href,url:`https://kopia.ai/pricing`})],scripts:[{type:`application/ld+json`,children:JSON.stringify(r)}]}}}),B_=N(`/checkout-success`)({validateSearch:me({checkout_id:he().optional()}),component:P(()=>F(()=>import(`./checkout-success-wdUsltL7.js`),__vite__mapDeps([35,2,13,14,5,15,16,7])),`component`)}),V_=N(`/app`)({beforeLoad:async({context:e})=>{let[t,n]=await Promise.all([e.queryClient.ensureQueryData({queryKey:[`user`],queryFn:()=>qe()}),e.queryClient.ensureQueryData({queryKey:[`organizations`],queryFn:()=>Ye()})]);if(!t)throw E({to:`/auth/sign-in`});return{user:t,organizations:n??[]}},component:P(()=>F(()=>import(`./app-7wrtXHsd.js`),__vite__mapDeps([36,2,37,14,5,15,38,1,3,4,6,7,39,8,40,41,42,9,10,11,22,23,43,27,28,26,44,29,45,30,31,46,16,47,13,12,48,18,49,19,50,51,52,53,54,55,34,56,57,58])),`component`)}),H_=()=>F(()=>import(`./routes-eDMAhITF.js`),__vite__mapDeps([59,2,37,14,5,15,38,1,3,4,6,7,9,10,11,60,13,12,30,31,16,61,53,62,63,64,8,65,41,42,66,22,23,25,27,28,67,44,17,19,52,68,56,55,69,70,71,72,73,74,75,76,77,26,24,20,21,29,32,33,34,78])),U_=()=>{let e=`https://kopia.ai`,t=new URL(rn,e).href,n=an.map(({question:e,schemaAnswer:t})=>({"@type":`Question`,name:e,acceptedAnswer:{"@type":`Answer`,text:t}})),r=nn();return{"@context":`https://schema.org`,"@graph":[{"@type":`Organization`,"@id":`${e}#organization`,name:`Kopia.ai`,url:e,logo:t},{"@type":`WebSite`,"@id":`${e}#website`,name:`Kopia.ai`,url:e,description:`Kopia.ai delivers fast, accurate AI transcription with advanced AI analysis, in-browser editing, and automatic subtitles for audio and video files.`,publisher:{"@id":`${e}#organization`}},{"@type":`Service`,"@id":`${e}#transcription-service`,name:`Kopia.ai Transcription Service`,url:e,description:`Upload audio or video files to Kopia.ai for accurate transcription, AI-powered analysis, advanced editing, and automatic subtitle generation. Export in multiple formats.`,provider:{"@id":`${e}#organization`},serviceType:`AI transcription`,image:t,offers:r.offers},{"@type":`FAQPage`,"@id":`${e}#faq`,url:`${e}/landing2`,mainEntity:n}]}},W_=N(`/`)({component:P(H_,`component`),loader:async()=>({totalMinutes:await Je()}),head:()=>{let e=U_();return{links:[{rel:`canonical`,href:`https://kopia.ai`}],meta:[{title:`Kopia.ai: AI Transcription with Advanced Analysis & Editing`},{name:`description`,content:`Transcribe audio and video effortlessly with Kopia.ai. Get accurate transcripts, AI-powered analysis, advanced in-browser editing, and automatic subtitles. Try for free!`},...Ze({title:`Kopia.ai: AI Transcription with Advanced Analysis & Editing`,description:`Transcribe audio and video effortlessly with Kopia.ai. Get accurate transcripts, AI-powered analysis, advanced in-browser editing, and automatic subtitles. Try for free!`,imageUrl:new URL(rn,`https://kopia.ai`).href,url:`https://kopia.ai`})],scripts:[{type:`application/ld+json`,children:JSON.stringify(e)}]}}}),G_=N(`/blog/`)({head:()=>{let e=`https://kopia.ai`,t=`Kopia.ai Blog | AI Transcription Guides, Tips, and Tutorials`,n=`Explore practical guides on AI transcription, subtitles, podcast workflows, and video-to-text best practices from Kopia.ai.`,r=`${e}/blog`,i=new URL(rn,e).href;return{links:[{rel:`canonical`,href:r}],meta:[{title:t},{name:`description`,content:n},...Ze({title:t,description:n,imageUrl:i,url:r})]}},component:P(()=>F(()=>import(`./blog.index-BVZ9G3Cu.js`),__vite__mapDeps([79,30,2,14,5,15,31,6,7,80])),`component`)}),K_=N(`/usecases/video-creators`)({component:P(()=>F(()=>import(`./video-creators-Bkhgi9ng.js`),__vite__mapDeps([81,2,1,3,4,5,6,7,8,9,10,11,60,76,22,23,77,26,27,24,25,65,13,14,15,30,31,16,82,62,63,37,38,64,41,42,66,28,67,44,12,17,19,52,68,56,55,69,83,84,71,74])),`component`),head:()=>({links:[{rel:`canonical`,href:`https://kopia.ai/usecases/video-creators`}],meta:[{title:`Video Transcription for Content Creators | Kopia.ai`},{name:`description`,content:`Transcribe videos, edit by timestamp, export captions, and repurpose each upload into platform-ready content with Kopia.ai.`},...Ze({title:`Video Transcription for Content Creators | Kopia.ai`,description:`Transcribe videos, edit by timestamp, export captions, and repurpose each upload into platform-ready content with Kopia.ai.`,imageUrl:new URL(rn,`https://kopia.ai`).href,url:`https://kopia.ai/usecases/video-creators`})]})}),q_=N(`/usecases/research`)({component:P(()=>F(()=>import(`./research-DMN4i5E8.js`),__vite__mapDeps([85,2,1,3,4,5,6,7,8,9,10,11,60,76,22,23,77,26,27,24,25,65,13,14,15,30,31,16,82,62,63,37,38,64,41,42,66,28,67,44,12,17,19,52,68,56,55,69,83,86,84,71,73])),`component`),head:()=>({links:[{rel:`canonical`,href:`https://kopia.ai/usecases/research`}],meta:[{title:`Research Transcription for Interviews and Focus Groups | Kopia.ai`},{name:`description`,content:`Transcribe interviews, focus groups, and research calls with speaker labels, timestamp-linked editing, and export-ready formats.`},...Ze({title:`Research Transcription for Interviews and Focus Groups | Kopia.ai`,description:`Transcribe interviews, focus groups, and research calls with speaker labels, timestamp-linked editing, and export-ready formats.`,imageUrl:new URL(rn,`https://kopia.ai`).href,url:`https://kopia.ai/usecases/research`})]})}),J_=N(`/usecases/podcasts`)({component:P(()=>F(()=>import(`./podcasts-C-Kshen-.js`),__vite__mapDeps([87,2,1,3,4,5,6,7,8,9,10,11,60,76,22,23,77,26,27,24,25,65,13,14,15,30,31,16,82,62,63,37,38,64,41,42,66,28,67,44,12,17,19,52,68,56,55,69,83,86,84,71,72])),`component`),head:()=>({links:[{rel:`canonical`,href:`https://kopia.ai/usecases/podcasts`}],meta:[{title:`Podcast Transcription for Podcasters | Kopia.ai`},{name:`description`,content:`Transcribe podcast episodes, edit by timestamp, export captions, and repurpose each recording into show notes and s
37ocial content with Kopia.ai.`},...Ze({title:`Podcast Transcription for Podcasters | Kopia.ai`,description:`Transcribe podcast episodes, edit by timestamp, export captions, and repurpose each recording into show notes and social content with Kopia.ai.`,imageUrl:new URL(rn,`https://kopia.ai`).href,url:`https://kopia.ai/usecases/podcasts`})]})}),Y_=[{question:`How do I convert a video file to text?`,answer:`Upload your video file, click Transcribe, then review and export your transcript as TXT, DOCX, PDF, VTT, or SRT.`,schemaAnswer:`Upload your video file, click Transcribe, then review and export your transcript as TXT, DOCX, PDF, VTT, or SRT.`},{question:`Which video formats are supported?`,answer:`You can upload common video formats including MP4, MOV, WebM, M4V, MKV, and more.`,schemaAnswer:`You can upload common video formats including MP4, MOV, WebM, M4V, MKV, and more.`},{question:`Can I transcribe video to text in multiple languages?`,answer:`Yes. Kopia.ai supports transcription in over 100 languages for video content.`,schemaAnswer:`Yes. Kopia.ai supports transcription in over 100 languages for video content.`},{question:`How long does video transcription take?`,answer:`Most files are transcribed in minutes, depending on file length, audio quality, and queue load.`,schemaAnswer:`Most files are transcribed in minutes, depending on file length, audio quality, and queue load.`},{question:`Can I export subtitles after transcription?`,answer:`Yes. Export your transcript as VTT or SRT subtitle files, or as text formats like TXT, DOCX, and PDF.`,schemaAnswer:`Yes. Export your transcript as VTT or SRT subtitle files, or as text formats like TXT, DOCX, and PDF.`}],X_=()=>F(()=>import(`./video-to-text-DJA7ZAzj.js`),__vite__mapDeps([88,2,1,3,4,5,6,7,9,10,11,60,76,22,23,77,26,27,24,25,65,30,14,15,31,16,61,53,62,63,37,38,64,8,41,42,66,28,67,44,13,12,17,19,52,68,56,55,69,70,33,78])),Z_=()=>{let e=`https://kopia.ai`,t=`${e}/tools/video-to-text`,n=new URL(rn,e).href,r=Y_.map(({question:e,schemaAnswer:t})=>({"@type":`Question`,name:e,acceptedAnswer:{"@type":`Answer`,text:t}}));return{"@context":`https://schema.org`,"@graph":[{"@type":`Organization`,"@id":`${e}#organization`,name:`Kopia.ai`,url:e,logo:n},{"@type":`WebSite`,"@id":`${e}#website`,name:`Kopia.ai`,url:e,description:`Kopia.ai converts video and audio files into accurate transcripts, AI summaries, and subtitles.`,publisher:{"@id":`${e}#organization`}},{"@type":`Service`,"@id":`${t}#video-to-text-service`,name:`Video to Text Transcription`,url:t,description:`Upload MP4, MOV, WebM, and other video files to Kopia.ai for accurate transcripts, AI-powered analysis, and caption exports.`,provider:{"@id":`${e}#organization`},serviceType:`Video to text transcription`,image:n,offers:[{"@type":`Offer`,name:`Starter Plan`,price:`14.99`,priceCurrency:`USD`,url:`${e}/pricing`,availability:`https://schema.org/InStock`,description:`20 hours of video transcription per month, $0.75 per hour, up to 90 minutes per file.`},{"@type":`Offer`,name:`Pro Plan`,price:`31.99`,priceCurrency:`USD`,url:`${e}/pricing`,availability:`https://schema.org/InStock`,description:`100 hours of transcription per month, $0.30 per hour, unlimited file duration.`}]},{"@type":`FAQPage`,"@id":`${t}#faq`,url:t,mainEntity:r}]}},Q_=N(`/tools/video-to-text`)({component:P(X_,`component`),head:()=>{let e=`https://kopia.ai`,t=`${e}/tools/video-to-text`,n=new URL(rn,e).href,r=`Video to Text Converter | Fast Video Transcription | Kopia.ai`,i=`Convert video to text in minutes with Kopia.ai. Upload MP4, MOV, WebM, and more, transcribe with high accuracy, edit in browser, and export instantly.`,a=Z_();return{links:[{rel:`canonical`,href:t}],meta:[{title:r},{name:`description`,content:i},...Ze({title:r,description:i,imageUrl:n,url:t})],scripts:[{type:`application/ld+json`,children:JSON.stringify(a)}]}}}),$_=()=>F(()=>import(`./mp4-to-text-DiFDMMTX.js`),__vite__mapDeps([89,2,1,3,4,5,6,7,9,10,11,60,16,14,15,61,53,62,63,37,38,64,8,65,41,42,66,22,23,25,27,28,67,44,13,12,17,19,52,68,56,55,69,70,75,76,77,26,24,30,31,33,78])),ev=()=>{let e=`https://kopia.ai`,t=`${e}/tools/mp4-to-text`,n=new URL(rn,e).href,r=an.map(({question:e,schemaAnswer:t})=>
37({"@type":`Question`,name:e,acceptedAnswer:{"@type":`Answer`,text:t}}));return{"@context":`https://schema.org`,"@graph":[{"@type":`Organization`,"@id":`${e}#organization`,name:`Kopia.ai`,url:e,logo:n},{"@type":`WebSite`,"@id":`${e}#website`,name:`Kopia.ai`,url:e,description:`Kopia.ai converts video and audio files into accurate transcripts, AI summaries, and subtitles.`,publisher:{"@id":`${e}#organization`}},{"@type":`Service`,"@id":`${t}#video-to-text-service`,name:`MP4 to Text Transcription`,url:t,description:`Upload MP4 files to Kopia.ai for accurate transcripts, AI-powered analysis, and caption exports.`,provider:{"@id":`${e}#organization`},serviceType:`MP4 to text transcription`,image:n,offers:[{"@type":`Offer`,name:`Starter Plan`,price:`14.99`,priceCurrency:`USD`,url:`${e}/pricing`,availability:`https://schema.org/InStock`,description:`20 hours of video transcription per month, $0.75 per hour, up to 90 minutes per file.`},{"@type":`Offer`,name:`Pro Plan`,price:`31.99`,priceCurrency:`USD`,url:`${e}/pricing`,availability:`https://schema.org/InStock`,description:`100 hours of transcription per month, $0.30 per hour, unlimited file duration.`}]},{"@type":`FAQPage`,"@id":`${t}#faq`,url:t,mainEntity:r}]}},tv=N(`/tools/mp4-to-text`)({component:P($_,`component`),head:()=>{let e=`https://kopia.ai`,t=`${e}/tools/mp4-to-text`,n=new URL(rn,e).href,r=`MP4 to Text Transcription | Kopia.ai`,i=`Convert MP4 files into accurate text with Kopia.ai. Upload MP4 videos, edit transcripts in your browser, and export subtitles instantly.`,a=ev();return{links:[{rel:`canonical`,href:t}],meta:[{title:r},{name:`description`,content:i},...Ze({title:r,description:i,imageUrl:n,url:t})],scripts:[{type:`application/ld+json`,children:JSON.stringify(a)}]}}}),nv=[{question:`How do I convert an MP3 file to text?`,answer:`Upload your .mp3 file, click Transcribe, then review and export your transcript as TXT, DOCX, PDF, VTT, or SRT.`,schemaAnswer:`Upload your .mp3 file, click Transcribe, then review and export your transcript as TXT, DOCX, PDF, VTT, or SRT.`},{question:`Can I transcribe MP3 to text in different languages?`,answer:`Yes. Kopia.ai supports transcription in over 100 languages, so you can transcribe MP3 audio beyond English.`,schemaAnswer:`Yes. Kopia.ai supports transcription in over 100 languages, so you can transcribe MP3 audio beyond English.`},{question:`What file types can I upload on this page?`,answer:`This MP3 tool accepts .mp3 uploads. If you need other formats, use our broader audio-to-text and video-to-text tools.`,schemaAnswer:`This MP3 tool accepts .mp3 uploads. If you need other formats, use Kopia.ai's broader audio-to-text and video-to-text tools.`},{question:`How long does MP3 transcription take?`,answer:`Most files are transcribed in minutes, depending on file length, audio quality, and queue load.`,schemaAnswer:`Most files are transcribed in minutes, depending on file length, audio quality, and queue load.`},{question:`Can I edit my MP3 transcript before exporting?`,answer:`Yes. You can edit your transcript in the browser editor, then export in your preferred format.`,schemaAnswer:`Yes. You can edit your transcript in the browser editor, then export in your preferred format.`}],rv=()=>F(()=>import(`./mp3-to-text-CQuxO0D8.js`),__vite__mapDeps([90,2,1,3,4,5,6,7,9,10,11,60,76,22,23,77,26,27,24,25,65,30,14,15,31,16,61,53,62,63,37,38,64,8,41,42,66,28,67,44,13,12,17,19,52,68,56,55,69,70,33,78])),iv=()=>{let e=`https://kopia.ai`,t=`${e}/tools/mp3-to-text`,n=new URL(rn,e).href,r=nv.map(({question:e,schemaAnswer:t})=>({"@type":`Question`,name:e,acceptedAnswer:{"@type":`Answer`,text:t}}));return{"@context":`https://schema.org`,"@graph":[{"@type":`Organization`,"@id":`${e}#organization`,name:`Kopia.ai`,url:e,logo:n},{"@type":`WebSite`,"@id":`${e}#website`,name:`Kopia.ai`,url:e,description:`Kopia.ai converts video and audio files into accurate transcripts, AI summaries, and subtitles.`,publisher:{"@id":`${e}#organization`}},{"@type":`Service`,"@id":`${t}#mp3-to-text-service`,name:`MP3 to Text Transcription`,url:t,description:`Upload MP3 files to Kopia.ai for accurate transcripts, AI-powered analysis, and caption exports.`,provider:{"@id":`${e}#organization`},serviceType:`MP3 to text transcription`,image:n,offers:[{"@type":`Offer`,name:`Starter Plan`,price:`14.99`,priceCurrency:`USD`,url:`${e}/pricing`,availability:`https://schema.org/InStock`,description:`20 hours of MP3 transcription per month, $0.75 per hour, up to 90 minutes per file.`},{"@type":`Offer`,name:`Pro Plan`,price:`31.99`,priceCurrency:`USD`,url:`${e}/pricing`,availability:`https://schema.org/InStock`,description:`100 hours of transcription per month, $0.30 per hour, unlimited file duration.`}]},{"@type":`FAQPage`,"@id":`${t}#faq`,url:t,mainEntity:r}]}},av=N(`/tools/mp3-to-text`)({component:P(rv,`component`),head:()=>{let e=`https://kopia.ai`,t=`${e}/tools/mp3-to-text`,n=new URL(rn,e).href,r=`MP3 to Text Converter | Fast MP3 Transcription | Kopia.ai`,i=`Convert MP3 to text in minutes with Kopia.ai. Upload .mp3 audio, transcribe with high accuracy, edit in browser, and export instantly.`,a=iv();return{links:[{rel:`canonical`,href:t}],meta:[{title:r},{name:`description`,content:i}
37,...Ze({title:r,description:i,imageUrl:n,url:t})],scripts:[{type:`application/ld+json`,children:JSON.stringify(a)}]}}}),ov=[{question:`How do I convert an M4A file to text?`,answer:`Upload your .m4a file, click Transcribe, then review and export your transcript as TXT, DOCX, PDF, VTT, or SRT.`,schemaAnswer:`Upload your .m4a file, click Transcribe, then review and export your transcript as TXT, DOCX, PDF, VTT, or SRT.`},{question:`Can I transcribe M4A to text in different languages?`,answer:`Yes. Kopia.ai supports transcription in over 100 languages, so you can transcribe M4A audio beyond English.`,schemaAnswer:`Yes. Kopia.ai supports transcription in over 100 languages, so you can transcribe M4A audio beyond English.`},{question:`What file types can I upload on this page?`,answer:`This M4A tool accepts .m4a uploads. If you need other formats, use our broader audio-to-text and video-to-text tools.`,schemaAnswer:`This M4A tool accepts .m4a uploads. If you need other formats, use Kopia.ai's broader audio-to-text and video-to-text tools.`},{question:`How long does M4A transcription take?`,answer:`Most files are transcribed in minutes, depending on file length, audio quality, and queue load.`,schemaAnswer:`Most files are transcribed in minutes, depending on file length, audio quality, and queue load.`},{question:`Can I edit my M4A transcript before exporting?`,answer:`Yes. You can edit your transcript in the browser editor, then export in your preferred format.`,schemaAnswer:`Yes. You can edit your transcript in the browser editor, then export in your preferred format.`}],sv=()=>F(()=>import(`./m4a-to-text-B2EOWTg2.js`),__vite__mapDeps([91,2,1,3,4,5,6,7,9,10,11,60,76,22,23,77,26,27,24,25,65,30,14,15,31,16,61,53,62,63,37,38,64,8,41,42,66,28,67,44,13,12,17,19,52,68,56,55,69,70,33,78])),cv=()=>{let e=`https://kopia.ai`,t=`${e}/tools/m4a-to-text`,n=new URL(rn,e).href,r=ov.map(({question:e,schemaAnswer:t})=>({"@type":`Question`,name:e,acceptedAnswer:{"@type":`Answer`,text:t}}));return{"@context":`https://schema.org`,"@graph":[{"@type":`Organization`,"@id":`${e}#organization`,name:`Kopia.ai`,url:e,logo:n},{"@type":`WebSite`,"@id":`${e}#website`,name:`Kopia.ai`,url:e,description:`Kopia.ai converts video and audio files into accurate transcripts, AI summaries, and subtitles.`,publisher:{"@id":`${e}#organization`}},{"@type":`Service`,"@id":`${t}#m4a-to-text-service`,name:`M4A to Text Transcription`,url:t,description:`Upload M4A audio files to Kopia.ai for accurate transcripts, AI-powered analysis, and text exports.`,provider:{"@id":`${e}#organization`},serviceType:`Audio to text transcription`,image:n,offers:[{"@type":`Offer`,name:`Starter Plan`,price:`14.99`,priceCurrency:`USD`,url:`${e}/pricing`,availability:`https://schema.org/InStock`,description:`20 hours of audio transcription per month, $0.75 per hour, up to 90 minutes per file.`},{"@type":`Offer`,name:`Pro Plan`,price:`31.99`,priceCurrency:`USD`,url:`${e}/pricing`,availability:`https://schema.org/InStock`,description:`100 hours of transcription per month, $0.30 per hour, unlimited file duration.`}]},{"@type":`FAQPage`,"@id":`${t}#faq`,url:t,mainEntity:r}]}},lv=N(`/tools/m4a-to-text`)({component:P(sv,`component`),head:()=>{let e=`https://kopia.ai`,t=`${e}/tools/m4a-to-text`,n=new URL(rn,e).href,r=`M4A to Text Converter | Fast M4A Transcription | Kopia.ai`,i=`Convert M4A to text in minutes with Kopia.ai. Upload .m4a audio, transcribe with high accuracy, edit in browser, and export instantly.`,a=cv();return{links:[{rel:`canonical`,href:t}],meta:[{title:r},{name:`description`,content:i},...Ze({title:r,description:i,imageUrl:n,url:t})],scripts:[{type:`application/ld+json`,children:JSON.stringify(a)}]}}}),uv=[{question:`How do I convert audio to text?`,answer:`Upload your audio file, click Transcribe, then review and export your transcript as TXT, DOCX, PDF, VTT, or SRT.`,schemaAnswer:`Upload your audio file, click Transcribe, then review and export your transcript as TXT, DOCX, PDF, VTT, or SRT.`},{question:`Which audio formats are supported?`,answer:`You can upload common audio formats including MP3, WAV, M4A, AAC, FLAC, and OGG.`,schemaAnswer:`You can upload common audio formats including MP3, WAV, M4A, AAC, FLAC, and OGG.`},{question:`Can I transcribe audio to text in multiple languages?`,answer:`Yes. Kopia.ai supp
37orts transcription in over 100 languages for audio recordings.`,schemaAnswer:`Yes. Kopia.ai supports transcription in over 100 languages for audio recordings.`},{question:`How long does audio transcription take?`,answer:`Most files are transcribed in minutes, depending on file length, audio quality, and queue load.`,schemaAnswer:`Most files are transcribed in minutes, depending on file length, audio quality, and queue load.`},{question:`Can I edit my transcript before exporting?`,answer:`Yes. You can edit the transcript in the browser editor and export in your preferred format.`,schemaAnswer:`Yes. You can edit the transcript in the browser editor and export in your preferred format.`}],dv=()=>F(()=>import(`./audio-to-text-5NGAGbuD.js`),__vite__mapDeps([92,2,1,3,4,5,6,7,9,10,11,60,76,22,23,77,26,27,24,25,65,30,14,15,31,16,61,53,62,63,37,38,64,8,41,42,66,28,67,44,13,12,17,19,52,68,56,55,69,70,33,78])),fv=()=>{let e=`https://kopia.ai`,t=`${e}/tools/audio-to-text`,n=new URL(rn,e).href,r=uv.map(({question:e,schemaAnswer:t})=>({"@type":`Question`,name:e,acceptedAnswer:{"@type":`Answer`,text:t}}));return{"@context":`https://schema.org`,"@graph":[{"@type":`Organization`,"@id":`${e}#organization`,name:`Kopia.ai`,url:e,logo:n},{"@type":`WebSite`,"@id":`${e}#website`,name:`Kopia.ai`,url:e,description:`Kopia.ai converts audio recordings and videos into accurate transcripts, AI summaries, and subtitles.`,publisher:{"@id":`${e}#organization`}},{"@type":`Service`,"@id":`${t}#audio-to-text-service`,name:`Audio to Text Transcription`,url:t,description:`Upload MP3, WAV, M4A, and other audio files to Kopia.ai for accurate transcripts, AI-powered analysis, and caption exports.`,provider:{"@id":`${e}#organization`},serviceType:`Audio to text transcription`,image:n,offers:[{"@type":`Offer`,name:`Starter Plan`,price:`14.99`,priceCurrency:`USD`,url:`${e}/pricing`,availability:`https://schema.org/InStock`,description:`20 hours of audio transcription per month, $0.75 per hour, up to 90 minutes per file.`},{"@type":`Offer`,name:`Pro Plan`,price:`31.99`,priceCurrency:`USD`,url:`${e}/pricing`,availability:`https://schema.org/InStock`,description:`100 hours of transcription per month, $0.30 per hour, unlimited file duration.`}]},{"@type":`FAQPage`,"@id":`${t}#faq`,url:t,mainEntity:r}]}},pv=N(`/tools/audio-to-text`)({component:P(dv,`component`),head:()=>{let e=`https://kopia.ai`,t=`${e}/tools/audio-to-text`,n=new URL(rn,e).href,r=`Audio to Text Converter | Fast Audio Transcription | Kopia.ai`,i=`Convert audio to text in minutes with Kopia.ai. Upload MP3, WAV, M4A, and more, transcribe with high accuracy, edit in browser, and export instantly.`,a=fv();return{links:[{rel:`canonical`,href:t}],meta:[{title:r},{name:`description`,content:i},...Ze({title:r,description:i,imageUrl:n,url:t})],scripts:[{type:`application/ld+json`,children:JSON.stringify(a)}]}}}),mv=N(`/share/$token`)({validateSearch:ye.object({language:ye.string().trim().min(1).optional()}),head:()=>({meta:[{title:`Shared Transcript - Kopia.ai`},{name:`robots`,content:`noindex, nofollow`}]}),component:P(()=>F(()=>import(`./share._token-D6qtxAYr.js`),__vite__mapDeps([93,2,1,3,4,5,6,7,8,64,65,13,14,15,30,31,16,18,49,32,57,58,38])),`component`),loaderDeps:({search:{language:e}})=>({language:e}),loader:async({context:e,params:{token:t},deps:{language:n}})=>{await e.queryClient.prefetchQuery({queryKey:[`shared-transcript`,t,n??`original`],queryFn:async()=>await on({data:{token:t,language:n}})})}}),hv=N(`/resources/terms-of-use`)({component:P(()=>F(()=>import(`./terms-of-use-JF6qzprt.js`),__vite__mapDeps([94,30,2,14,5,15,31,6,7])),`component`),head:()=>({links:[{rel:`canonical`,href:`https://kopia.ai/resources/terms-of-use`}],meta:[{title:`Kopia.ai - Terms of Use`},{name:`description`,content:`Kopia.ai terms of use`},...Ze({title:`Kopia.ai - Terms of Use`,description:`Kopia.ai terms of use`,imageUrl:new URL(rn,`https://kopia.ai`).href,url:`https://kopia.ai/resources/terms-of-use`})]})}),gv=N(`/resources/supported-translation-languages`)({component:P(()=>F(()=>import(`./supported-translation-languages-DsytLfqF.js`),__vite__mapDeps([95,2,1,3,4,5,6,7,30,14,15,31,84,96])),`component`),head:()=>({links:[{rel:`canonical`,href:`https://kopia.ai/resources/supported-translation-languages`}],meta:[{title:`Kopia.ai - Supported Translation Languages`},{name:`description`,content:`See which translation output languages are supported by our service.`},...Ze({title:`Kopia.ai - Supported Translation Languages`,description:`See which translation output languages are supported by our service.`,imageUrl:new URL(rn,`https://kopia.ai`).href,url:`https://kopia.ai/resources/supported-translation-languages`})]})}),_v=N(`/resources/supported-transcription-languages`)({component:P(()=>F(()=>import(`./supported-transcription-languages-D23pE7Hn.js`),__vite__mapDeps([97,2,1,3,4,5,6,7,30,14,15,31,84,69])),`component`),head:()=>({links:[{rel:`canonical`,href:`https://kopia.ai/resources/supported-transcription-languages`}],meta:[{title:`Kopia.ai - Supported Transcription Languages`},{name:`description`,content:`See which transcription input languages are supported by our service (distinct from translation output languages).`},...Ze({title:`Kopia.ai - Supported Transcription Languages`,description:`See which transcription input languages are supported by our service (distinct from translation output languages).`,imageUrl:new URL(rn,`https://kopia.ai`).href,url:`https://kopia.ai/resources/supported-transcription-languages`})]})}),vv=N(`/resources/privacy-policy`)({component:P(()=>F(()=>import(`./privacy-policy-C529qfuu.js`),__vite__mapDeps([98,7,2,5])),`component`),head:()=>({links:[{rel:`canonical`,href:`https://kopia.ai/resources/privacy-policy`}],meta:[{title:`Kopia.ai - Privacy Policy`},{name:`description`,content:`Kopia.ai privacy policy`},...Ze({title:`Kopia.ai - Privacy Policy`,description:`Kopia.ai privacy policy`,imageUrl:new URL(rn,`https://kopia.ai`).href,url:`https://kopia.ai/resources/privacy-policy`})]})}),yv=()=>F(()=>import(`./wav-to-mp3-hEUGu_nl.js`),__vite__mapDeps([99,1,2,3,4,5,6,7,76,22,23,77,26,27,24,25,65,30,14,15,31,100,101,61,53,102,68,33])),bv=`Free WAV to MP3 Converter | Kopia.ai`,xv=`Convert WAV to MP3 in your browser. Compress audio quickly with private local conversion.`,Sv=[`Pick the WAV file you want to compress.`,`Run the converter to generate an MP3 file.`,`Download the MP3 and share or upload it where needed.`],Cv=[{question:`How much smaller is MP3 compared to WAV?`,answer:`It depends on bitrate and duration, but MP3 is often many times smaller than WAV, especially for long recordings.`},{question:`Will my MP3 sound bad after converting from WAV?`,answer:`Not necessarily. With reasonable bitrates, voice and many music tracks remain strong for everyday listening and sharing.`},{question:`Should I delete the original WAV after conversion?`,answer:`Usually no. Keep WAV as your master file in case you need future edits or a higher-quality export format.`},{question:`Is MP3 acceptable for podcast review links?`,answer:`Yes. MP3 is widely supported and lightweight, which makes it convenient for review rounds and stakeholder feedback.`}],wv=(e,t)=>({"@context":`https://schema.org`,"@graph":[{"@type":`WebPage`,"@id":`${e}/free-tools/wav-to-mp3#webpage`,url:`${e}/free-tools/wav-to-mp3`,name:bv,description:xv,inLanguage:`en`,primaryImageOfPage:t},{"@type":`SoftwareApplication`,"@id":`${e}/free-tools/wav-to-mp3#app`,name:`Kopia.ai WAV to MP3 Converter`,operatingSystem:`Web`,applicationCategory:`MultimediaApplication`,url:`${e}/free-tools/wav-to-mp3`,description:xv,image:t,offers:{"@type":`Offer`,price:`0`,priceCurrency:`USD`,availability:`https://schema.org/InStock`},publisher:{"@type":`Organization`,name:`Kopia.ai`,url:e,logo:t}},{"@type":`FAQPage`,"@id":`${e}/free-tools/wav-to-mp3#faq`,mainEntity:Cv.map(({question:e,answer:t})=>
37({"@type":`Question`,name:e,acceptedAnswer:{"@type":`Answer`,text:t}}))},{"@type":`HowTo`,"@id":`${e}/free-tools/wav-to-mp3#howto`,name:`How to convert WAV to MP3`,description:`Step-by-step guide to convert WAV files to MP3.`,step:Sv.map((e,t)=>({"@type":`HowToStep`,position:t+1,name:e,text:e}))}]}),Tv=N(`/free-tools/wav-to-mp3`)({component:P(yv,`component`),head:()=>{let e=`https://kopia.ai`,t=`${e}/free-tools/wav-to-mp3`,n=new URL(rn,e).href,r=wv(e,n);return{links:[{rel:`canonical`,href:t}],meta:[{title:bv},{name:`description`,content:xv},...Ze({title:bv,description:xv,imageUrl:n,url:t})],scripts:[{type:`application/ld+json`,children:JSON.stringify(r)}]}}}),Ev=()=>F(()=>import(`./video-converter-E5dyNg-L.js`),__vite__mapDeps([103,2,1,3,4,5,6,7,64,8,65,61,53,102,68,33])),Dv=`Free Video Converter | Kopia.ai`,Ov=`Convert video and audio files to MP4, MOV, WebM, MKV, MP3, WAV and more directly in your browser. Fast, private conversions run locally with no uploads.`,kv=(e,t)=>({"@context":`https://schema.org`,"@graph":[{"@type":`WebPage`,"@id":`${e}/free-tools/video-converter#webpage`,url:`${e}/free-tools/video-converter`,name:Dv,description:Ov,inLanguage:`en`,primaryImageOfPage:t},{"@type":`SoftwareApplication`,"@id":`${e}/free-tools/video-converter#app`,name:`Kopia.ai Video Converter`,operatingSystem:`Web`,applicationCategory:`MultimediaApplication`,url:`${e}/free-tools/video-converter`,description:Ov,image:t,offers:{"@type":`Offer`,price:`0`,priceCurrency:`USD`,availability:`https://schema.org/InStock`},publisher:{"@type":`Organization`,name:`Kopia.ai`,url:e,logo:t}}]}),Av=N(`/free-tools/video-converter`)({component:P(Ev,`component`),head:()=>{let e=`https://kopia.ai`,t=`${e}/free-tools/video-converter`,n=new URL(rn,e).href,r=kv(e,n);return{links:[{rel:`canonical`,href:t}],meta:[{title:Dv},{name:`description`,content:Ov},...Ze({title:Dv,description:Ov,imageUrl:n,url:t})],scripts:[{type:`application/ld+json`,children:JSON.stringify(r)}]}}}),jv=()=>F(()=>import(`./mp4-to-wav-CW1gdZnK.js`),__vite__mapDeps([104,1,2,3,4,5,6,7,76,22,23,77,26,27,24,25,65,30,14,15,31,100,101,61,53,102,68,33])),Mv=`Free MP4 to WAV Converter | Kopia.ai`,Nv=`Convert MP4 to WAV in your browser. Extract high-quality audio with private local conversion.`,Pv=[`Upload the MP4 file from your device.`,`Run the converter to generate a WAV audio file.`,`Download the WAV and import it into your editor or DAW.`],Fv=[{question:`Is MP4 to WAV useful for video interview editing?`,answer:`Yes. WAV exports are easier to clean, align, and process when dialogue is your primary focus.`},{question:`Will WAV from MP4 sound better than the original?`,answer:`It will not restore removed detail, but it prevents additional quality loss during further editing and export cycles.`},{question:`Why is the WAV file much larger than the MP4?`,answer:`WAV stores uncompressed PCM audio, while MP4 usually contains compressed audio tracks designed for smaller distribution files.`},{question:`Can I feed MP4-to-WAV output into transcription pipelines?`,answer:`Yes. WAV is often a preferred input for speech workflows because of its consistent sample representation.`}],Iv=(e,t)=>({"@context":`https://schema.org`,"@graph":[{"@type":`WebPage`,"@id":`${e}/free-tools/mp4-to-wav#webpage`,url:`${e}/free-tools/mp4-to-wav`,name:Mv,description:Nv,inLanguage:`en`,primaryImageOfPage:t},{"@type":`SoftwareApplication`,"@id":`${e}/free-tools/mp4-to-wav#app`,name:`Kopia.ai MP4 to WAV Converter`,operatingSystem:`Web`,applicationCategory:`MultimediaApplication`,url:`${e}/free-tools/mp4-to-wav`,description:Nv,image:t,offers:{"@type":`Offer`,price:`0`,priceCurrency:`USD`,availability:`https://schema.org/InStock`},publisher:{"@type":`Organization`,name:`Kopia.ai`,url:e,logo:t}},{"@type":`FAQPage`,"@id":`${e}/free-tools/mp4-to-wav#faq`,mainEntity:Fv.map(({question:e,answer:t})=>({"@type":`Question`,name:e,acceptedAnswer:{"@type":`Answer`,text:t}}))},{"@type":`HowTo`,"@id":`${e}/free-tools/mp4-to-wav#howto`,name:`How to convert MP4 to WAV`,description:`Step-by-step guide to convert MP4 files to WAV.`,step:Pv.map((e,t)=>({"@type":`HowToStep`,position:t+1,name:e,text:e}))}]}),Lv=N(`/free-tools/mp4-to-wav`)({component:P(jv,`component`),head:()=>{let e=`https://kopia.ai`,t=`${e}/free-tools/mp4-to-wav`,n=new URL(rn,e).href,r=Iv(e,n);return{links:[{rel:`canonical`,href:t}],meta:[{title:Mv},{name:`description`,content:Nv},...Ze({title:Mv,description:Nv,imageUrl:n,url:t})],scripts:[{type:`application/ld+json`,children:JSON.stringify(r)}]}}}),Rv=()=>F(()=>import(`./mp3-to-wav-BJjMRmzC.js`),__vite__mapDeps([105,1,2,3,4,5,6,7,76,22,23,77,26,27,24,25,65,30,14,15,31,100,101,61,53,102,68,33])),zv=`Free MP3 to WAV Converter | Kopia.ai`,Bv=`Convert MP3 to WAV in your browser with local processing and no uploads.`,Vv=[`Upload the MP3 file you want to edit or archive.`,`Start conversion to create a WAV output.`,`Download the WAV and open it in your editor or workstation.`],Hv=[{question:`Does MP3 to WAV improve the original sound quality?`,answer:`No. It preserves what is present in the MP3, but cannot recover frequencies or artifacts already removed by lossy compression.`},{question:`Why do audio editors prefer WAV for timelines?`,answer:`WAV is uncompressed PCM, so many editors handle scrubbing, cutting, and waveform display more consistently.`},{question:`Is WAV better for further audio processing?`,answer:`Yes for workflow stability. Using WAV avoids repeated MP3 encoding losses when you apply effects and export multiple drafts.`},{question:`Can I convert spoken-word MP3 files for transcription prep?`,answer:`Yes. WAV is often easier to pass through analysis and post-processing pipelines, especially when consistent sample handling matters.`}],Uv=(e,t)=>({"@context":`https://schema.org`,"@graph":[{"@type":`WebPage`,"@id":`${e}/free-tools/mp3-to-wav#webpage`,url:`${e}/free-tools/mp3-to-wav`,name:zv,description:Bv,inLanguage:`en`,primaryImageOfPage:t},{"@type":`SoftwareApplication`,"@id":`${e}/free-tools/mp3-to-wav#app`,name:`Kopia.ai MP3 to WAV Converter`,operatingSystem:`Web`,applicationCategory:`MultimediaApplication`,url:`${e}/free-tools/mp3-to-wav`,description:Bv,image:t,offers:{"@type":`Offer`,price:`0`,priceCurrency:`USD`,availability:`https://schema.org/InStock`},publisher:{"@type":`Organization`,name:`Kopia.ai`,url:e,logo:t}},{"@type":`FAQPage`,"@id":`${e}/free-tools/mp3-to-wav#faq`,mainEntity:Hv.map(({question:e,answer:t})=>
37({"@type":`Question`,name:e,acceptedAnswer:{"@type":`Answer`,text:t}}))},{"@type":`HowTo`,"@id":`${e}/free-tools/mp3-to-wav#howto`,name:`How to convert MP3 to WAV`,description:`Step-by-step guide to convert MP3 files to WAV.`,step:Vv.map((e,t)=>({"@type":`HowToStep`,position:t+1,name:e,text:e}))}]}),Wv=N(`/free-tools/mp3-to-wav`)({component:P(Rv,`component`),head:()=>{let e=`https://kopia.ai`,t=`${e}/free-tools/mp3-to-wav`,n=new URL(rn,e).href,r=Uv(e,n);return{links:[{rel:`canonical`,href:t}],meta:[{title:zv},{name:`description`,content:Bv},...Ze({title:zv,description:Bv,imageUrl:n,url:t})],scripts:[{type:`application/ld+json`,children:JSON.stringify(r)}]}}}),Gv=()=>F(()=>import(`./mov-to-mp3-DWyXgRGG.js`),__vite__mapDeps([106,1,2,3,4,5,6,7,76,22,23,77,26,27,24,25,65,30,14,15,31,107,101,61,53,102,68,33])),Kv=`Free MOV to MP3 Converter | Kopia.ai`,qv=`Convert MOV to MP3 in your browser. Extract audio quickly with private local conversion.`,Jv=[`Choose the MOV file that contains the audio you want.`,`Start conversion to extract the soundtrack as MP3.`,`Download the MP3 and verify playback in your target app.`],Yv=[{question:`Does converting MOV to MP3 remove the video track?`,answer:`Yes. The output is audio-only MP3, which is ideal when you only need speech or music from the original clip.`},{question:`Why convert webinar MOV recordings to MP3?`,answer:`MP3 is smaller and easier to share with writers, reviewers, and transcription workflows that do not need visuals.`},{question:`Will background noise in the MOV file be reduced automatically?`,answer:`No. Conversion changes container and codec format, but it does not perform noise cleanup or mastering by itself.`},{question:`Can I use MOV to MP3 for interview clipping?`,answer:`Yes. It is a practical first step before trimming highlights or preparing soundbites for content teams.`}],Xv=(e,t)=>({"@context":`https://schema.org`,"@graph":[{"@type":`WebPage`,"@id":`${e}/free-tools/mov-to-mp3#webpage`,url:`${e}/free-tools/mov-to-mp3`,name:Kv,description:qv,inLanguage:`en`,primaryImageOfPage:t},{"@type":`SoftwareApplication`,"@id":`${e}/free-tools/mov-to-mp3#app`,name:`Kopia.ai MOV to MP3 Converter`,operatingSystem:`Web`,applicationCategory:`MultimediaApplication`,url:`${e}/free-tools/mov-to-mp3`,description:qv,image:t,offers:{"@type":`Offer`,price:`0`,priceCurrency:`USD`,availability:`https://schema.org/InStock`},publisher:{"@type":`Organization`,name:`Kopia.ai`,url:e,logo:t}},{"@type":`FAQPage`,"@id":`${e}/free-tools/mov-to-mp3#faq`,mainEntity:Yv.map(({question:e,answer:t})=>({"@type":`Question`,name:e,acceptedAnswer:{"@type":`Answer`,text:t}}))},{"@type":`HowTo`,"@id":`${e}/free-tools/mov-to-mp3#howto`,name:`How to convert MOV to MP3`,description:`Step-by-step guide to convert MOV files to MP3.`,step:Jv.map((e,t)=>({"@type":`HowToStep`,position:t+1,name:e,text:e}))}]}),Zv=N(`/free-tools/mov-to-mp3`)({component:P(Gv,`component`),head:()=>{let e=`https://kopia.ai`,t=`${e}/free-tools/mov-to-mp3`,n=new URL(rn,e).href,r=Xv(e,n);return{links:[{rel:`canonical`,href:t}],meta:[{title:Kv},{name:`description`,content:qv},...Ze({title:Kv,description:qv,imageUrl:n,url:t})],scripts:[{type:`application/ld+json`,children:JSON.stringify(r)}]}}}),Qv=()=>F(()=>import(`./m4a-to-wav-CM7hVgZi.js`),__vite__mapDeps([108,1,2,3,4,5,6,7,76,22,23,77,26,27,24,25,65,30,14,15,31,109,101,61,53,102,68,33])),$v=`Free M4A to WAV Converter | Kopia.ai`,ey=`Convert M4A to WAV in your browser. Fast local conversion with no file uploads.`,ty=[`Select your M4A recording or exported audio file.`,`Convert it to generate a WAV output.`,`Download the WAV and continue editing or archiving.`],ny=[{question:`Is M4A to WAV good for podcast voice edits?`,answer:`Yes. WAV is typically easier to process for EQ, noise cleanup, and timeline editing during post-production.`},{question:`Will my WAV file be larger than the M4A original?`,answer:`Usually much larger, since WAV is uncompressed and stores far more raw sample data per second.`},{question:`Should I keep the original M4A after converting?`,answer:`Yes. Keeping both files gives you a compact source copy and a WAV edit master for future revisions.`},{question:`Can M4A-to-WAV output be used for speech recognition tools?`,answer:`In many cases, yes. WAV is commonly accepted and can reduce format friction in analysis pipelines.`}],ry=(e,t)=>({"@context":`https://schema.org`,"@graph":[{"@type":`WebPage`,"@id":`${e}/free-tools/m4a-to-wav#webpage`,url:`${e}/free-tools/m4a-to-wav`,name:$v,description:ey,inLanguage:`en`,primaryImageOfPage:t},{"@type":`SoftwareApplication`,"@id":`${e}/free-tools/m4a-to-wav#app`,name:`Kopia.ai M4A to WAV Converter`,operatingSystem:`Web`,applicationCategory:`MultimediaApplication`,url:`${e}/free-tools/m4a-to-wav`,description:ey,image:t,offers:{"@type":`Offer`,price:`0`,priceCurrency:`USD`,availability:`https://schema.org/InStock`},publisher:{"@type":`Organization`,name:`Kopia.ai`,url:e,logo:t}},{"@type":`FAQPage`,"@id":`${e}/free-tools/m4a-to-wav#faq`,mainEntity:ny.map(({question:e,answer:t})=>
37({"@type":`Question`,name:e,acceptedAnswer:{"@type":`Answer`,text:t}}))},{"@type":`HowTo`,"@id":`${e}/free-tools/m4a-to-wav#howto`,name:`How to convert M4A to WAV`,description:`Step-by-step guide to convert M4A files to WAV.`,step:ty.map((e,t)=>({"@type":`HowToStep`,position:t+1,name:e,text:e}))}]}),iy=N(`/free-tools/m4a-to-wav`)({component:P(Qv,`component`),head:()=>{let e=`https://kopia.ai`,t=`${e}/free-tools/m4a-to-wav`,n=new URL(rn,e).href,r=ry(e,n);return{links:[{rel:`canonical`,href:t}],meta:[{title:$v},{name:`description`,content:ey},...Ze({title:$v,description:ey,imageUrl:n,url:t})],scripts:[{type:`application/ld+json`,children:JSON.stringify(r)}]}}}),ay=()=>F(()=>import(`./m4a-to-mp3-B4YvwPAa.js`),__vite__mapDeps([110,76,2,22,3,4,5,23,77,26,27,6,24,25,65,1,7,30,14,15,31,100,109,101,61,53,102,68,33])),oy=`Free M4A to MP3 Converter | Kopia.ai`,sy=`Convert M4A to MP3 in your browser. Fast local conversion with no file uploads.`,cy=[`Select your M4A file from your device.`,`Click Convert to create an MP3 version.`,`Download the converted MP3 and test playback where you need it.`],ly=[{question:`Will converting M4A to MP3 reduce quality?`,answer:`It can, because MP3 is lossy. The impact depends on source quality and bitrate settings, with voice often affected less than complex music.`},{question:`Why does my MP3 sometimes get larger than expected?`,answer:`AAC in M4A is very efficient. Matching perceived quality in MP3 may require more bits, which can increase file size.`},{question:`Can I use converted MP3 files for podcast drafts?`,answer:`Yes. MP3 is a practical draft and review format because nearly every device and messaging app can open it.`},{question:`Do metadata tags always carry over after conversion?`,answer:`Not always. If metadata is critical, verify artist, title, and artwork after conversion in your player or editor.`}],uy=(e,t)=>({"@context":`https://schema.org`,"@graph":[{"@type":`WebPage`,"@id":`${e}/free-tools/m4a-to-mp3#webpage`,url:`${e}/free-tools/m4a-to-mp3`,name:oy,description:sy,inLanguage:`en`,primaryImageOfPage:t},{"@type":`SoftwareApplication`,"@id":`${e}/free-tools/m4a-to-mp3#app`,name:`Kopia.ai M4A to MP3 Converter`,operatingSystem:`Web`,applicationCategory:`MultimediaApplication`,url:`${e}/free-tools/m4a-to-mp3`,description:sy,image:t,offers:{"@type":`Offer`,price:`0`,priceCurrency:`USD`,availability:`https://schema.org/InStock`},publisher:{"@type":`Organization`,name:`Kopia.ai`,url:e,logo:t}},{"@type":`FAQPage`,"@id":`${e}/free-tools/m4a-to-mp3#faq`,mainEntity:ly.map(({question:e,answer:t})=>({"@type":`Question`,name:e,acceptedAnswer:{"@type":`Answer`,text:t}}))},{"@type":`HowTo`,"@id":`${e}/free-tools/m4a-to-mp3#howto`,name:`How to convert M4A to MP3`,description:`Step-by-step guide to convert M4A files to MP3.`,step:cy.map((e,t)=>({"@type":`HowToStep`,position:t+1,name:e,text:e}))}]}),dy=N(`/free-tools/m4a-to-mp3`)({component:P(ay,`component`),head:()=>{let e=`https://kopia.ai`,t=`${e}/free-tools/m4a-to-mp3`,n=new URL(rn,e).href,r=uy(e,n);return{links:[{rel:`canonical`,href:t}],meta:[{title:oy},{name:`description`,content:sy},...Ze({title:oy,description:sy,imageUrl:n,url:t})],scripts:[{type:`application/ld+json`,children:JSON.stringify(r)}]}}}),fy=N(`/blog/$slug`)({loader:({params:e})=>{let t=sn.find(t=>t.slug===e.slug);if(!t)throw ee();return t},head:({loaderData:e})=>{let t=`https://kopia.ai`,n=e?.headerImage?new URL(e.headerImage,t).href:new URL(rn,t).href,r=e?.excerpt??`Read the latest post from the Kopia.ai blog.`;return{links:[{rel:`canonical`,href:`${t}/blog/${e?.slug}`}],meta:[{title:`${e?.title??`Blog`} | Kopia.ai`},{name:`description`,content:r},...Ze({title:`${e?.title??`Blog`} | Kopia.ai`,description:r,imageUrl:n,url:`${t}/blog/${e?.slug}`})]}},component:P(()=>F(()=>import(`./blog._slug-Ss5wVZ-c.js`),__vite__mapDeps([111,3,2,4,5,112,63,7,113])),`component`)}),py=N(`/auth/sign-up`)({component:P(()=>F(()=>import(`./sign-up-D3LpP4wz.js`),__vite__mapDeps([114,2,1,3,4,5,6,7,9,10,11,60,115,27,13,14,15,12,30,31,16,19,33,56])),`component`),validateSearch:me({plan:he().optional(),callbackURL:he().optional(),callbackPath:he().optional()}),head:()=>({links:[{rel:`canonical`,href:`https://kopia.ai/auth/sign-up`}],meta:[{title:`Kopia.ai - Sign up`}
37,{name:`description`,content:`Sign up to get fast, accurate AI-powered video and audio transcriptions. Start today and turn your recordings into searchable, shareable text.`},...Ze({title:`Kopia.ai - Sign up`,description:`Sign up to get fast, accurate AI-powered video and audio transcriptions. Start today and turn your recordings into searchable, shareable text.`,imageUrl:new URL(rn,`https://kopia.ai`).href,url:`https://kopia.ai/auth/sign-up`})]})}),my=N(`/auth/sign-in`)({component:P(()=>F(()=>import(`./sign-in-ZzVFiAlV.js`),__vite__mapDeps([116,2,1,3,4,5,6,7,9,10,11,115,27,13,14,15,12,30,31,117,19,33,56])),`component`),head:()=>({links:[{rel:`canonical`,href:`https://kopia.ai/auth/sign-in`}],meta:[{title:`Kopia.ai - Sign in`},{name:`description`,content:`Sign in to get fast, accurate AI-powered video and audio transcriptions. Start today and turn your recordings into searchable, shareable text.`},...Ze({title:`Kopia.ai - Sign in`,description:`Sign in to get fast, accurate AI-powered video and audio transcriptions. Start today and turn your recordings into searchable, shareable text.`,imageUrl:new URL(rn,`https://kopia.ai`).href,url:`https://kopia.ai/auth/sign-in`})]})}),hy=N(`/auth/reset-password`)({component:P(()=>F(()=>import(`./reset-password-Gq0w52Zm.js`),__vite__mapDeps([118,1,2,3,4,5,6,7,9,10,11,115,27,12,13,14,15,16,117,19,33,56])),`component`),validateSearch:me({token:he().optional(),error:he().optional()}),head:()=>({links:[{rel:`canonical`,href:`https://kopia.ai/auth/reset-password`}],meta:[{title:`Kopia.ai - Reset password`},{name:`description`,content:`Reset your Kopia.ai password to regain access to your account.`},...Ze({title:`Kopia.ai - Reset password`,description:`Reset your Kopia.ai password to regain access to your account.`,imageUrl:new URL(rn,`https://kopia.ai`).href,url:`https://kopia.ai/auth/reset-password`})]})}),gy=()=>F(()=>import(`./oauth-consent-DSUFG-74.js`),__vite__mapDeps([119,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,19,42])),_y=me({response_type:ge(`code`).optional(),client_id:he().optional(),redirect_uri:he().optional(),scope:he().optional(),state:he().optional(),code_challenge:he().optional(),code_challenge_method:ge(`S256`).optional(),nonce:he().optional(),prompt:_e([`none`,`consent`,`login`,`create`,`select_account`,`login consent`,`select_account consent`]).optional(),exp:ve().optional(),sig:he().optional()}),vy=N(`/auth/oauth-consent`)({validateSearch:_y,component:P(gy,`component`)}),yy=N(`/app/dashboard`)({component:P(()=>F(()=>import(`./dashboard-D27DubvF.js`),__vite__mapDeps([120,7,2,5])),`component`)}),by=N(`/app/chat`)({component:P(()=>F(()=>import(`./chat-WHAOpo4H.js`),__vite__mapDeps([121,122,2,1,3,4,5,6,7,39,8,40,64,65,22,23,43,27,28,77,26,112,63,117,19,42,113,11,57])),`component`)}),xy=N(`/app/account`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData({queryKey:[`subscribed-plan`,e?.user?.id],queryFn:Ke})},component:P(()=>F(()=>import(`./account-DFITAFOB.js`),__vite__mapDeps([123,2,1,3,4,5,6,7,43,23,27,28,44,13,14,15,30,31,40,18,54,41,42,9,10,11,12,48,16,19,55,38,34,33,57])),`component`)});function Sy(e){return e}function Cy(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function wy(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(Ie),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===`pending`&&{promise:r()},...e.meta&&{meta:e.meta}}}
37function Ty(e){return e.state.isPaused}function Ey(e){return e.state.status===`success`}function Dy(e){return!0}function Oy(e,t={}){let n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??Ty,r=e.getMutationCache().getAll().flatMap(e=>n(e)?[Cy(e)]:[]),i=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??Ey,a=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??Dy,o=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??Sy;return{mutations:r,queries:e.getQueryCache().getAll().flatMap(e=>i(e)?[wy(e,o,a)]:[])}}function ky(e,t,n){if(typeof t!=`object`||!t)return;let r=e.getMutationCache(),i=e.getQueryCache(),a=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??Sy,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})=>{let u=c?We(c):void 0,d=r.data===void 0?u?.data:r.data,f=d===void 0?d:a(d),p=i.get(o),m=p?.state.status===`pending`,h=p?.state.fetchStatus===`fetching`;if(p){let e=u&&l!==void 0&&l>p.state.dataUpdatedAt;if(r.dataUpdatedAt>p.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=r;p.setState({...t,data:f})}}else p=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:t,queryHash:o,meta:s},{...r,data:f,fetchStatus:`idle`,status:f===void 0?r.status:`success`});c&&!m&&!h&&(l===void 0||l>p.state.dataUpdatedAt)&&p.fetch(void 0,{initialPromise:Promise.resolve(c).then(a)}).catch(Ie)})}function Ay(e){return{onFetch:(t,n)=>{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=>{Ue(e,()=>t.signal,()=>n=!0)},u=He(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();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?xe:Oe;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?My:jy,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:jy(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 jy(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 My(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Ny=class extends Fe{#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||Py(),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=Pe({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)});
vendor: 7,048 bytes, line 37
37let 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){this.state=(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),Ve.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Py(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Fy=class extends De{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 Ny({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=Iy(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=Iy(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=Iy(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Iy(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Ve.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=>Le(t,e))}findAll(e={}){return this.getAll().filter(t=>Le(e,t))}notify(e){Ve.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Ve.batch(()=>Promise.all(e.map(e=>e.continue().catch(Ie))))}};function Iy(e){return e.options.scope?.id}var Ly=class extends De{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Se(r,t),a=this.get(i);return a||(a=new Re({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(){Ve.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=>be(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>be(e,t)):t}notify(e){Ve.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ve.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ve.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ry=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Ly,this.#t=e.mutationCache||new Fy,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=je.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ae.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(Ee(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=ke(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Ve.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;Ve.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Ve.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Ve.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Ie).catch(Ie)}invalidateQueries(e,t={}){return Ve.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=Ve.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(Ie)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Ie)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Ee(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ie).catch(Ie)}
37fetchInfiniteQuery(e){return e.behavior=Ay(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ie).catch(Ie)}ensureInfiniteQueryData(e){return e.behavior=Ay(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ae.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(Ce(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Te(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Ce(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Te(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||=Se(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===we&&(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()}};function zy(e,t){return Be(e,ze,t)}function By(e){return e}var Vy=(0,L.createContext)({});function Hy(e){let t=(0,L.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Uy=typeof window<`u`,Wy=Uy?L.useLayoutEffect:L.useEffect,Gy=(0,L.createContext)(null);function Ky(e,t){e.indexOf(t)===-1&&e.push(t)}function qy(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Jy=(e,t,n)=>n>t?t:n<e?e:n,Yy={},Xy=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Zy(e){return typeof e==`object`&&!!e}var Qy=e=>/^0[^.\s]+$/u.test(e);function $y(e){let t;return()=>(t===void 0&&(t=e()),t)}var eb=e=>e,tb=(e,t)=>n=>t(e(n)),nb=(...e)=>e.reduce(tb),rb=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},ib=class{constructor(){this.subscriptions=[]}add(e){return Ky(this.subscriptions,e),()=>qy(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},ab=e=>e*1e3,ob=e=>e/1e3;function sb(e,t){return t?1e3/t*e:0}
37var cb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,lb=1e-7,ub=12;function db(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=cb(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>lb&&++s<ub);return o}function fb(e,t,n,r){if(e===t&&n===r)return eb;let i=t=>db(t,0,1,e,n);return e=>e===0||e===1?e:cb(i(e),t,r)}var pb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mb=e=>t=>1-e(1-t),hb=fb(.33,1.53,.69,.99),gb=mb(hb),_b=pb(gb),vb=e=>(e*=2)<1?.5*gb(e):.5*(2-2**(-10*(e-1))),yb=e=>1-Math.sin(Math.acos(e)),bb=mb(yb),xb=pb(yb),Sb=fb(.42,0,1,1),Cb=fb(0,0,.58,1),wb=fb(.42,0,.58,1),Tb=e=>Array.isArray(e)&&typeof e[0]!=`number`,Eb=e=>Array.isArray(e)&&typeof e[0]==`number`,Db={linear:eb,easeIn:Sb,easeInOut:wb,easeOut:Cb,circIn:yb,circInOut:xb,circOut:bb,backIn:gb,backInOut:_b,backOut:hb,anticipate:vb},Ob=e=>typeof e==`string`,kb=e=>{if(Eb(e)){e.length;let[t,n,r,i]=e;return fb(t,n,r,i)}else if(Ob(e))return Db[e],`${e}`,Db[e];return e},Ab=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],jb={value:null,addProjectionMetrics:null};function Mb(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),t&&jb.value&&jb.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Nb=40;function Pb(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Ab.reduce((e,n)=>(e[n]=Mb(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Yy.useManualTiming?i.timestamp:performance.now();n=!1,Yy.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,Nb),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ab.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Ab.length;t++)o[Ab[t]].cancel(e)},state:i,steps:o}}var{schedule:Fb,cancel:Ib,state:Lb,steps:Rb}=Pb(typeof requestAnimationFrame<`u`?requestAnimationFrame:eb,!0),zb;function Bb(){zb=void 0}var Vb={now:()=>(zb===void 0&&Vb.set(Lb.isProcessing||Yy.useManualTiming?Lb.timestamp:performance.now()),zb),set:e=>{zb=e,queueMicrotask(Bb)}},Hb={layout:0,mainThread:0,waapi:0},Ub=e=>t=>typeof t==`string`&&t.startsWith(e),Wb=Ub(`--`),Gb=Ub(`var(--`),Kb=e=>Gb(e)?qb.test(e.split(`/*`)[0].trim()):!1,qb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Jb={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Yb={...Jb,transform:e=>Jy(0,1,e)},Xb={...Jb,default:1},Zb=e=>Math.round(e*1e5)/1e5,Qb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function $b(e){return e==null}var ex=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tx=(e,t)=>n=>!!(typeof n==`string`&&ex.test(n)&&n.startsWith(e)||t&&!$b(n)&&Object.prototype.hasOwnProperty.call(n,t)),nx=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Qb);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},rx=e=>Jy(0,255,e),ix={...Jb,transform:e=>Math.round(rx(e))},ax={test:tx(`rgb`,`red`),parse:nx(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+ix.transform(e)+`, `+ix.transform(t)+`, `+ix.transform(n)+`, `+Zb(Yb.transform(r))+`)`};function ox(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var sx={test:tx(`#`),parse:ox,transform:ax.transform},cx=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),lx=cx(`deg`),ux=cx(`%`),$=cx(`px`),dx=cx(`vh`),fx=cx(`vw`),px={...ux,parse:e=>ux.parse(e)/100,transform:e=>ux.transform(e*100)},mx={test:tx(`hsl`,`hue`),parse:nx(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+ux.transform(Zb(t))+`, `+ux.transform(Zb(n))+`, `+Zb(Yb.transform(r))+`)`},hx={test:e=>ax.test(e)||sx.test(e)||mx.test(e),parse:e=>ax.test(e)?ax.parse(e):mx.test(e)?mx.parse(e):sx.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?ax.transform(e):mx.transform(e),getAnimatableNone:e=>{let t=hx.parse(e);return t.alpha=0,hx.transform(t)}},gx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function _x(e){return isNaN(e)&&typeof e==`string`&&(e.match(Qb)?.length||0)+(e.match(gx)?.length||0)>0}var vx=`number`,yx=`color`,bx=`var`,xx=`var(`,Sx="${}",Cx=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wx(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Cx,e=>(hx.test(e)?(r.color.push(a),i.push(yx),n.push(hx.parse(e))):e.startsWith(xx)?(r.var.push(a),i.push(bx),n.push(e)):(r.number.push(a),i.push(vx),n.push(parseFloat(e))),++a,Sx)).split(Sx),indexes:r,types:i}}function Tx(e){return wx(e).values}function Ex(e){let{split:t,types:n}=wx(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];t===vx?i+=Zb(e[a]):t===yx?i+=hx.transform(e[a]):i+=e[a]}return i}}var Dx=e=>typeof e==`number`?0:hx.test(e)?hx.getAnimatableNone(e):e;function Ox(e){let t=Tx(e);return Ex(e)(t.map(Dx))}var kx={test:_x,parse:Tx,createTransformer:Ex,getAnimatableNone:Ox};function Ax(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function jx({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Ax(s,r,e+1/3),a=Ax(s,r,e),o=Ax(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Mx(e,t){return n=>n>0?t:e}var Nx=(e,t,n)=>e+(t-e)*n,Px=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Fx=[sx,ax,mx],Ix=e=>Fx.find(t=>t.test(e));function Lx(e){let t=Ix(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===mx&&(n=jx(n)),n}var Rx=(e,t)=>{let n=Lx(e),r=Lx(t);if(!n||!r)return Mx(e,t);let i={...n};return e=>(i.red=Px(n.red,r.red,e),i.green=Px(n.green,r.green,e),i.blue=Px(n.blue,r.blue,e),i.alpha=Nx(n.alpha,r.alpha,e),ax.transform(i))},zx=new Set([`none`,`hidden`]);function Bx(e,t){return zx.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Vx(e,t){return n=>
37Nx(e,t,n)}function Hx(e){return typeof e==`number`?Vx:typeof e==`string`?Kb(e)?Mx:hx.test(e)?Rx:Kx:Array.isArray(e)?Ux:typeof e==`object`?hx.test(e)?Rx:Wx:Mx}function Ux(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Hx(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Wx(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Hx(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Gx(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Kx=(e,t)=>{let n=kx.createTransformer(t),r=wx(e),i=wx(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?zx.has(e)&&!i.values.length||zx.has(t)&&!r.values.length?Bx(e,t):nb(Ux(Gx(r,i),i.values),n):(`${e}${t}`,Mx(e,t))};function qx(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?Nx(e,t,n):Hx(e)(e,t)}var Jx=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Fb.update(t,e),stop:()=>Ib(t),now:()=>Lb.isProcessing?Lb.timestamp:Vb.now()}},Yx=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Xx=2e4;function Zx(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Qx(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Zx(r),Xx);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:ob(i)}}var $x=5;function eS(e,t,n){let r=Math.max(t-$x,0);return sb(n-e(r),t-r)}var tS={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},nS=.001;function rS({duration:e=tS.duration,bounce:t=tS.bounce,velocity:n=tS.velocity,mass:r=tS.mass}){let i,a;tS.maxDuration;let o=1-t;o=Jy(tS.minDamping,tS.maxDamping,o),e=Jy(tS.minDuration,tS.maxDuration,ob(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=oS(t,o),c=Math.exp(-i);return nS-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=oS(t**2,o);return(-i(t)+nS>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-nS+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=aS(i,a,s);if(e=ab(e),isNaN(c))return{stiffness:tS.stiffness,damping:tS.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var iS=12;function aS(e,t,n){let r=n;for(let n=1;n<iS;n++)r-=e(r)/t(r);return r}function oS(e,t){return e*Math.sqrt(1-t*t)}var sS=[`duration`,`bounce`],cS=[`stiffness`,`damping`,`mass`];function lS(e,t){return t.some(t=>e[t]!==void 0)}function uS(e){let t={velocity:tS.velocity,stiffness:tS.stiffness,damping:tS.damping,mass:tS.mass,isResolvedFromDuration:!1,...e};if(!lS(e,cS)&&lS(e,sS))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Jy(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:tS.mass,stiffness:i,damping:a}}else{let n=rS(e);t={...t,...n,mass:tS.mass},t.isResolvedFromDuration=!0}return t}function dS(e=tS.visualDuration,t=tS.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=uS({...n,velocity:-ob(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=ob(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?tS.restSpeed.granular:tS.restSpeed.default,i||=v?tS.restDelta.granular:tS.restDelta.default;let y;if(h<1){let e=oS(_,h);y=t=>o-Math.exp(-h*_*t)*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=e===0?m:0;h<1&&(n=e===0?ab(m):eS(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Zx(b),Xx),t=Yx(t=>b.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return b}dS.applyToOptions=e=>{let t=Qx(e,100,dS);return e.ease=t.ease,e.duration=ab(t.duration),e.type=`keyframes`,e};function fS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=
37500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=dS({keyframes:[f.value,m(f.value)],velocity:eS(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function pS(e,t,n){let r=[],i=n||Yy.mix||qx,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=nb(Array.isArray(t)?t[n]||eb:t,a)),r.push(a)}return r}function mS(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=pS(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=rb(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Jy(e[0],e[a-1],t)):l}function hS(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=rb(0,t,r);e.push(Nx(n,1,i))}}function gS(e){let t=[0];return hS(t,e.length-1),t}function _S(e,t){return e.map(e=>e*t)}function vS(e,t){return e.map(()=>t||wb).splice(0,e.length-1)}function yS({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Tb(r)?r.map(kb):kb(r),a={done:!1,value:t[0]},o=mS(_S(n&&n.length===t.length?n:gS(t),e),t,{ease:Array.isArray(i)?i:vS(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var bS=e=>e!==null;function xS(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(bS),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var SS={decay:fS,inertia:fS,tween:yS,keyframes:yS,spring:dS};function CS(e){typeof e.type==`string`&&(e.type=SS[e.type])}var wS=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},TS=e=>e/100,ES=class extends wS{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Vb.now()&&this.tick(Vb.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Hb.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;CS(e);let{type:t=yS,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||yS;s!==yS&&typeof o[0]!=`number`&&(this.mixKeyframes=nb(TS,qx(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Zx(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=Jy(0,
371,n)*o}let b=_?{done:!1,value:l[0]}:y.next(v);i&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==fS&&(b.value=xS(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return ob(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+ob(e)}get time(){return ob(this.currentTime)}set time(e){e=ab(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Vb.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=ob(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Jx,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(Vb.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,Hb.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function DS(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var OS=e=>e*180/Math.PI,kS=e=>jS(OS(Math.atan2(e[1],e[0]))),AS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:kS,rotateZ:kS,skewX:e=>OS(Math.atan(e[1])),skewY:e=>OS(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},jS=e=>(e%=360,e<0&&(e+=360),e),MS=kS,NS=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),PS=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),FS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:NS,scaleY:PS,scale:e=>(NS(e)+PS(e))/2,rotateX:e=>jS(OS(Math.atan2(e[6],e[5]))),rotateY:e=>jS(OS(Math.atan2(-e[2],e[0]))),rotateZ:MS,rotate:MS,skewX:e=>OS(Math.atan(e[4])),skewY:e=>OS(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function IS(e){return e.includes(`scale`)?1:0}function LS(e,t){if(!e||e===`none`)return IS(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=FS,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=AS,i=t}if(!i)return IS(t);let a=r[t],o=i[1].split(`,`).map(zS);return typeof a==`function`?a(o):o[a]}var RS=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return LS(n,t)};function zS(e){return parseFloat(e.trim())}var BS=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],VS=new Set(BS),HS=e=>e===Jb||e===$,US=new Set([`x`,`y`,`z`]),WS=BS.filter(e=>!US.has(e));function GS(e){let t=[];return WS.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}var KS={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>LS(t,`x`),y:(e,{transform:t})=>LS(t,`y`)};KS.translateX=KS.x,KS.translateY=KS.y;var qS=new Set,JS=!1,YS=!1,XS=!1;function ZS(){if(YS){let e=Array.from(qS).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;
37t.forEach(e=>{let t=GS(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}YS=!1,JS=!1,qS.forEach(e=>e.complete(XS)),qS.clear()}function QS(){qS.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(YS=!0)})}function $S(){XS=!0,QS(),ZS(),XS=!1}var eC=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(qS.add(this),JS||(JS=!0,Fb.read(QS),Fb.resolveKeyframes(ZS))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}DS(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),qS.delete(this)}cancel(){this.state===`scheduled`&&(qS.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},tC=e=>e.startsWith(`--`);function nC(e,t,n){tC(t)?e.style.setProperty(t,n):e.style[t]=n}var rC=$y(()=>window.ScrollTimeline!==void 0),iC={};function aC(e,t){let n=$y(e);return()=>iC[t]??n()}var oC=aC(()=>{try{document.createElement(`div`).animate({opacity:0}
37,{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),sC=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cC={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:sC([0,.65,.55,1]),circOut:sC([.55,0,1,.45]),backIn:sC([.31,.01,.66,-.59]),backOut:sC([.33,1.53,.69,.99])};function lC(e,t){if(e)return typeof e==`function`?oC()?Yx(e,t):`ease-out`:Eb(e)?sC(e):Array.isArray(e)?e.map(e=>lC(e,t)||cC.easeOut):cC[e]}function uC(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=lC(s,i);Array.isArray(d)&&(u.easing=d),jb.value&&Hb.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return jb.value&&p.finished.finally(()=>{Hb.waapi--}),p}function dC(e){return typeof e==`function`&&`applyToOptions`in e}function fC({type:e,...t}){return dC(e)&&oC()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var pC=class extends wS{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=fC(e);this.animation=uC(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=xS(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):nC(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return ob(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+ob(e)}get time(){return ob(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=ab(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`f
37inished`}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&rC()?(this.animation.timeline=e,eb):t(this)}},mC={anticipate:vb,backInOut:_b,circInOut:xb};function hC(e){return e in mC}function gC(e){typeof e.ease==`string`&&hC(e.ease)&&(e.ease=mC[e.ease])}var _C=10,vC=class extends pC{constructor(e){gC(e),CS(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new ES({...a,autoplay:!1}),s=ab(this.finishedTime??this.time);t.setWithVelocity(o.sample(s-_C).value,o.sample(s).value,_C),o.stop()}},yC=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(kx.test(e)||e===`0`)&&!e.startsWith(`url(`));function bC(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function xC(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=yC(i,t),s=yC(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:bC(e)||(n===`spring`||dC(n))&&r}function SC(e){e.duration=0,e.type=`keyframes`}var CC=new Set([`opacity`,`clipPath`,`filter`,`transform`]),wC=$y(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function TC(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:c}=t.owner.getProps();return wC()&&n&&CC.has(n)&&(n!==`transform`||!c)&&!s&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var EC=40,DC=class extends wS{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Vb.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||eC)(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Vb.now(),xC(e,i,a,o)||((Yy.instantAnimations||!s)&&l?.(xS(e,n,t)),e[0]=e[e.length-1],SC(n),n.repeat=0);let u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>EC?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!c&&TC(u)?new vC({...u,element:u.motionValue.owner.current}):new ES(u);d.finished.then(()=>this.notifyFinished()).catch(eb),this.pendingTimeline&&=(this.stopTimeline=d.attachTimeline(this.pendingTimeline),void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),$S()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},OC=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kC(e){let t=OC.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function AC(e,t,n=1){`${e}`;let[r,i]=kC(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Xy(e)?parseFloat(e):e}return Kb(i)?AC(i,t,n+1):i}function jC(e,t){return e?.[t]??e?.default??e}var MC=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...BS]),NC={test:e=>e===`auto`,parse:e=>e},PC=e=>t=>t.test(e),FC=[Jb,$,ux,lx,fx,dx,NC],IC=e=>FC.find(PC(e));function LC(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Qy(e)}var RC=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function zC(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Qb)||[];if(!r)return e;let i=n.replace(r,``),a=RC.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}var BC=/\b([a-z-]*)\(.*?\)/gu,VC={...kx,getAnimatableNone:e=>{let t=e.match(BC);return t?t.map(zC).join(` `):e}},HC={...Jb,transform:Math.round},UC={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,radius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,backgroundPositionX:$,backgroundPositionY:$,rotate:lx,rotateX:lx,rotateY:lx,rotateZ:lx,scale:Xb,scaleX:Xb,scaleY:Xb,scaleZ:Xb,skew:lx,skewX:lx,skewY:lx,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:Yb,originX:px,originY:px,originZ:$,zIndex:HC,fillOpacity:Yb,strokeOpacity:Yb,numOctaves:HC},WC={...UC,color:hx,backgroundColor:hx,outlineColor:hx,fill:hx,stroke:hx,borderColor:hx,borderTopColor:hx,borderRightColor:hx,borderBottomColor:hx,borderLeftColor:hx,filter:VC,WebkitFilter:VC},GC=e=>WC[e];function KC(e,t){let n=GC(e);return n!==VC&&(n=kx),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var qC=new Set([`auto`,`none`,`0`]);function JC(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!qC.has(t)&&wx(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=KC(n,i)}var YC=class extends eC{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Kb(r))){let i=AC(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!MC.has(n)||e.length!==2)return;let[r,i]=e,a=IC(r),o=IC(i);if(a!==o)if(HS(a)&&HS(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else KS[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||LC(e[t]))&&n.push(t);n.length&&JC(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=KS[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=KS[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
37h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function XC(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}var ZC=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function QC(e){return Zy(e)&&`offsetHeight`in e}var $C=30,ew=e=>!isNaN(parseFloat(e)),tw={current:void 0},nw=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Vb.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Vb.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ew(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new ib);let n=this.events[e].add(t);return e===`change`?()=>{n(),Fb.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return tw.current&&tw.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Vb.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>$C)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,$C);return sb(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function rw(e,t){return new nw(e,t)}var{schedule:iw,cancel:aw}=Pb(queueMicrotask,!1),ow={x:!1,y:!1};function sw(){return ow.x||ow.y}function cw(e){return e===`x`||e===`y`?ow[e]?null:(ow[e]=!0,()=>{ow[e]=!1}):ow.x||ow.y?null:(ow.x=ow.y=!0,()=>{ow.x=ow.y=!1})}function lw(e,t){let n=XC(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function uw(e){return!(e.pointerType===`touch`||sw())}function dw(e,t,n={}){let[r,i,a]=lw(e,n),o=e=>{if(!uw(e))return;let{target:n}=e,r=t(n,e);if(typeof r!=`function`||!n)return;let a=e=>{uw(e)&&(r(e),n.removeEventListener(`pointerleave`,a))};n.addEventListener(`pointerleave`,a,i)};return r.forEach(e=>{e.addEventListener(`pointerenter`,o,i)}),a}var fw=(e,t)=>t?e===t?!0:fw(e,t.parentElement):!1,pw=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,mw=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function hw(e){return mw.has(e.tagName)||e.tabIndex!==-1}var gw=new WeakSet;function _w(e){return t=>{t.key===`Enter`&&e(t)}}function vw(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var yw=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=_w(()=>{if(gw.has(n))return;vw(n,`down`);let e=_w(()=>{vw(n,`up`)});
37n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>vw(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function bw(e){return pw(e)&&!sw()}function xw(e,t,n={}){let[r,i,a]=lw(e,n),o=e=>{let r=e.currentTarget;if(!bw(e))return;gw.add(r);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),gw.has(r)&&gw.delete(r),bw(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||fw(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),QC(e)&&(e.addEventListener(`focus`,e=>yw(e,i)),!hw(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Sw(e){return Zy(e)&&`ownerSVGElement`in e}var Cw=new WeakMap,ww,Tw=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Sw(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Ew=Tw(`inline`,`width`,`offsetWidth`),Dw=Tw(`block`,`height`,`offsetHeight`);function Ow({target:e,borderBoxSize:t}){Cw.get(e)?.forEach(n=>{n(e,{get width(){return Ew(e,t)},get height(){return Dw(e,t)}})})}function kw(e){e.forEach(Ow)}function Aw(){typeof ResizeObserver>`u`||(ww=new ResizeObserver(kw))}function jw(e,t){ww||Aw();let n=XC(e);return n.forEach(e=>{let n=Cw.get(e);n||(n=new Set,Cw.set(e,n)),n.add(t),ww?.observe(e)}),()=>{n.forEach(e=>{let n=Cw.get(e);n?.delete(t),n?.size||ww?.unobserve(e)})}}var Mw=new Set,Nw;function Pw(){Nw=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Mw.forEach(t=>t(e))},window.addEventListener(`resize`,Nw)}function Fw(e){return Mw.add(e),Nw||Pw(),()=>{Mw.delete(e),!Mw.size&&typeof Nw==`function`&&(window.removeEventListener(`resize`,Nw),Nw=void 0)}}function Iw(e,t){return typeof e==`function`?Fw(e):jw(e,t)}function Lw(e,t){let n,r=()=>{let{currentTime:r}=t,i=(r===null?0:r.value)/100;n!==i&&e(i),n=i};return Fb.preUpdate(r,!0),()=>Ib(r)}function Rw(e){return Sw(e)&&e.tagName===`svg`}function zw(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=mS(i,a,o);return t?s(r):s}var Bw=e=>!!(e&&e.getVelocity),Vw=[...FC,hx,kx],Hw=e=>Vw.find(PC(e)),Uw=(0,L.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Ww(e=!0){let t=(0,L.useContext)(Gy);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,L.useId)();(0,L.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,L.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Gw=(0,L.createContext)({strict:!1}),Kw={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},qw={};for(let e in Kw)qw[e]={isEnabled:t=>Kw[e].some(e=>!!t[e])};function Jw(e){for(let t in e)qw[t]={...qw[t],...e[t]}}var Yw=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.ignoreStrict.viewport`.split(`.`));function Xw(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Yw.has(e)}var Zw=r({default:()=>Qw}),Qw,$w=t((()=>{throw Qw={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),eT=e=>!Xw(e);function tT(e){typeof e==`function`&&(eT=t=>t.startsWith(`on`)?!Xw(t):e(t))}try{tT(($w(),e(Zw)).default)}catch{}function nT(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||(eT(i)||n===!0&&Xw(i)||
37!t&&!Xw(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var rT=(0,L.createContext)({});function iT(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function aT(e){return typeof e==`string`||Array.isArray(e)}var oT=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],sT=[`initial`,...oT];function cT(e){return iT(e.animate)||sT.some(t=>aT(e[t]))}function lT(e){return!!(cT(e)||e.variants)}function uT(e,t){if(cT(e)){let{initial:t,animate:n}=e;return{initial:t===!1||aT(t)?t:void 0,animate:aT(n)?n:void 0}}return e.inherit===!1?{}:t}function dT(e){let{initial:t,animate:n}=uT(e,(0,L.useContext)(rT));return(0,L.useMemo)(()=>({initial:t,animate:n}),[fT(t),fT(n)])}function fT(e){return Array.isArray(e)?e.join(` `):e}var pT={};function mT(e){for(let t in e)pT[t]=e[t],Wb(t)&&(pT[t].isCSSVariable=!0)}function hT(e,{layout:t,layoutId:n}){return VS.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!pT[e]||e===`opacity`)}var gT={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},_T=BS.length;function vT(e,t,n){let r=``,i=!0;for(let a=0;a<_T;a++){let o=BS[a],s=e[o];if(s===void 0)continue;let c=!0;if(c=typeof s==`number`?s===(o.startsWith(`scale`)?1:0):parseFloat(s)===0,!c||n){let e=ZC(s,UC[o]);if(!c){i=!1;let t=gT[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function yT(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(VS.has(e)){o=!0;continue}else if(Wb(e)){i[e]=n;continue}else{let t=ZC(n,UC[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=vT(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var bT=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function xT(e,t,n){for(let r in t)!Bw(t[r])&&!hT(r,n)&&(e[r]=t[r])}function ST({transformTemplate:e},t){return(0,L.useMemo)(()=>{let n=bT();return yT(n,t,e),Object.assign({},n.vars,n.style)},[t])}function CT(e,t){let n=e.style||{},r={};return xT(r,n,e),Object.assign(r,ST(e,t)),r}function wT(e,t){let n={},r=CT(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var TT={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ET={offset:`strokeDashoffset`,array:`strokeDasharray`};function DT(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?TT:ET;e[a.offset]=$.transform(-r);let o=$.transform(t),s=$.transform(n);e[a.array]=`${o} ${s}`}function OT(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(yT(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&DT(d,i,a,o,!1)}var kT=()=>({...bT(),attrs:{}}),AT=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function jT(e,t,n,r){let i=(0,L.useMemo)(()=>{let n=kT();return OT(n,t,AT(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};xT(t,e.style,e),i.style={...t,...i.style}}return i}var MT=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function NT(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(MT.indexOf(e)>-1||/[A-Z]/u.test(e))}function PT(e,t,n,{latestValues:r},i,a=!1){let o=(NT(e)?jT:wT)(t,r,i,e),s=nT(t,typeof e==`string`,a),c=e===L.Fragment?{}:{...s,...o,ref:n},{children:l}=t,u=(0,L.useMemo)(()=>Bw(l)?l.get():l,[l]);return(0,L.createElement)(e,{...c,children:u})}function FT(e){let t=[{},{}];
37return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function IT(e,t,n,r){if(typeof t==`function`){let[i,a]=FT(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=FT(r);t=t(n===void 0?e.custom:n,i,a)}return t}function LT(e){return Bw(e)?e.get():e}function RT({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:zT(n,r,i,e),renderState:t()}}function zT(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=LT(a[e]);let{initial:o,animate:s}=e,c=cT(e),l=lT(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!iT(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=IT(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var BT=e=>(t,n)=>{let r=(0,L.useContext)(rT),i=(0,L.useContext)(Gy),a=()=>RT(e,t,r,i);return n?a():Hy(a)};function VT(e,t,n){let{style:r}=e,i={};for(let a in r)(Bw(r[a])||t.style&&Bw(t.style[a])||hT(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}var HT=BT({scrapeMotionValuesFromProps:VT,createRenderState:bT});function UT(e,t,n){let r=VT(e,t,n);for(let n in e)if(Bw(e[n])||Bw(t[n])){let t=BS.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var WT=BT({scrapeMotionValuesFromProps:UT,createRenderState:kT}),GT=Symbol.for(`motionComponentSymbol`);function KT(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function qT(e,t,n){return(0,L.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==`function`?n(r):KT(n)&&(n.current=r))},[t])}var JT=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),YT=`data-`+JT(`framerAppearId`),XT=(0,L.createContext)({});function ZT(e,t,n,r,i){let{visualElement:a}=(0,L.useContext)(rT),o=(0,L.useContext)(Gw),s=(0,L.useContext)(Gy),c=(0,L.useContext)(Uw).reducedMotion,l=(0,L.useRef)(null);r||=o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:c}));let u=l.current,d=(0,L.useContext)(XT);u&&!u.projection&&i&&(u.type===`html`||u.type===`svg`)&&QT(l.current,n,i,d);let f=(0,L.useRef)(!1);(0,L.useInsertionEffect)(()=>{u&&f.current&&u.update(n,s)});let p=n[YT],m=(0,L.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return Wy(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),m.current&&u.animationState&&u.animationState.animateChanges())}),(0,L.useEffect)(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),!1),u.enteringChildren=void 0)}),u}function QT(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:$T(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&KT(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function $T(e){if(e)return e.options.allowProjection===!1?$T(e.parent):e.projection}function eE(e,{forwardMotionProps:t=!1}={},n,r){n&&Jw(n);let i=NT(e)?WT:HT;function a(a,o){let s,c={...(0,L.useContext)(Uw),...a,layoutId:tE(a)},{isStatic:l}=c,u=dT(a),d=i(a,l);if(!l&&Uy){nE(c,n);let t=rE(c);s=t.MeasureLayout,u.visualElement=ZT(e,d,c,r,t.ProjectionNode)}return(0,I.jsxs)(rT.Provider,{value:u,children:[s&&u.visualElement?(0,I.jsx)(s,{visualElement:u.visualElement,...c}):null,PT(e,a,qT(d,u.visualElement,o),d,l,t)]})}a.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let o=(0,L.forwardRef)(a);return o[GT]=e,o}function tE({layoutId:e}){let t=(0,L.useContext)(Vy).id;return t&&e!==void 0?t+`-`+e:e}function nE(e,t){(0,L.useContext)(Gw).strict}function rE(e){let{drag:t,layout:n}=qw;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
37function iE(e,t){if(typeof Proxy>`u`)return eE;let n=new Map,r=(n,r)=>eE(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,eE(a,void 0,e,t)),n.get(a))})}function aE({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function oE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function sE(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function cE(e){return e===void 0||e===1}function lE({scale:e,scaleX:t,scaleY:n}){return!cE(e)||!cE(t)||!cE(n)}function uE(e){return lE(e)||dE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dE(e){return fE(e.x)||fE(e.y)}function fE(e){return e&&e!==`0%`}function pE(e,t,n){return n+t*(e-n)}function mE(e,t,n,r,i){return i!==void 0&&(e=pE(e,i,r)),pE(e,n,r)+t}function hE(e,t=0,n=1,r,i){e.min=mE(e.min,t,n,r,i),e.max=mE(e.max,t,n,r,i)}function gE(e,{x:t,y:n}){hE(e.x,t.translate,t.scale,t.originPoint),hE(e.y,n.translate,n.scale,n.originPoint)}var _E=.999999999999,vE=1.0000000000001;function yE(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&SE(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,gE(e,o)),r&&uE(a.latestValues)&&SE(e,a.latestValues))}t.x<vE&&t.x>_E&&(t.x=1),t.y<vE&&t.y>_E&&(t.y=1)}function bE(e,t){e.min+=t,e.max+=t}function xE(e,t,n,r,i=.5){hE(e,t,n,Nx(e.min,e.max,i),r)}function SE(e,t){xE(e.x,t.x,t.scaleX,t.scale,t.originX),xE(e.y,t.y,t.scaleY,t.scale,t.originY)}function CE(e,t){return aE(sE(e.getBoundingClientRect(),t))}function wE(e,t,n){let r=CE(e,n),{scroll:i}=t;return i&&(bE(r.x,i.offset.x),bE(r.y,i.offset.y)),r}var TE=()=>({translate:0,scale:1,origin:0,originPoint:0}),EE=()=>({x:TE(),y:TE()}),DE=()=>({min:0,max:0}),OE=()=>({x:DE(),y:DE()}),kE={current:null},AE={current:!1};function jE(){if(AE.current=!0,Uy)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>kE.current=e.matches;e.addEventListener(`change`,t),t()}else kE.current=!1}var ME=new WeakMap;function NE(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Bw(i))e.addValue(r,i);else if(Bw(a))e.addValue(r,rw(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,rw(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var PE=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],FE=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eC,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=Vb.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Fb.render(this.render,!1,!0))};let{latestValues:s,renderState:c}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=cT(t),this.isVariantNode=lT(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in u){let t=u[e];s[e]!==void 0&&Bw(t)&&t.set(s[e])}}mount(e){this.current=e,ME.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
37h((e,t)=>this.bindToMotionValue(t,e)),AE.current||jE(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:kE.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ib(this.notifyUpdate),Ib(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=VS.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Fb.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in qw){let t=qw[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):OE()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<PE.length;t++){let n=PE[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=NE(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=rw(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Xy(n)||Qy(n))?n=parseFloat(n):!Hw(n)&&kx.test(t)&&(n=KC(e,t)),this.setBaseTarget(e,Bw(n)?n.get():n)),Bw(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=IT(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Bw(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new ib),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){iw.render(this.render)}},IE=class extends FE{constructor(){super(...arguments),this.KeyframeResolver=YC}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Bw(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function LE(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function RE(e){return window.getComputedStyle(e)}var zE=class extends IE{constructor(){super(...arguments),this.type=`html`,this.renderInstance=LE}readValueFromInstance(e,t){if(VS.has(t))return this.projection?.isProjecting?IS(t):RS(e,t);{let n=RE(e),r=(Wb(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return CE(e,t)}build(e,t,n){yT(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return VT(e,t,n)}},BE=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]);function VE(e,t,n,r){LE(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(BE.has(n)?n:JT(n),t.attrs[n])}var HE=class extends IE{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=OE}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(VS.has(t)){let e=GC(t);return e&&e.default||0}return t=BE.has(t)?t:JT(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return UT(e,t,n)}
37build(e,t,n){OT(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){VE(e,t,n,r)}mount(e){this.isSVGTag=AT(e.tagName),super.mount(e)}},UE=(e,t)=>NT(e)?new HE(t):new zE(t,{allowProjection:e!==L.Fragment});function WE(e,t,n){let r=e.getProps();return IT(r,t,n===void 0?r.custom:n,e)}var GE=e=>Array.isArray(e);function KE(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,rw(n))}function qE(e){return GE(e)?e[e.length-1]||0:e}function JE(e,t){let{transitionEnd:n={},transition:r={},...i}=WE(e,t)||{};i={...i,...n};for(let t in i)KE(e,t,qE(i[t]))}function YE(e){return!!(Bw(e)&&e.add)}function XE(e,t){let n=e.getValue(`willChange`);if(YE(n))return n.add(t);if(!n&&Yy.WillChange){let n=new Yy.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function ZE(e){return e.props[YT]}var QE=e=>e!==null;function $E(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(QE),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}var eD={type:`spring`,stiffness:500,damping:25,restSpeed:10},tD=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),nD={type:`keyframes`,duration:.8},rD={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},iD=(e,{keyframes:t})=>t.length>2?nD:VS.has(e)?e.startsWith(`scale`)?tD(t[1]):eD:rD;function aD({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}var oD=(e,t,n,r={},i,a)=>o=>{let s=jC(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=ab(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};aD(s)||Object.assign(u,iD(e,u)),u.duration&&=ab(u.duration),u.repeatDelay&&=ab(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(SC(u),u.delay===0&&(d=!0)),(Yy.instantAnimations||Yy.skipAnimations)&&(d=!0,SC(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=$E(u.keyframes,s);if(e!==void 0){Fb.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new ES(u):new DC(u)};function sD({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function cD(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);let c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||l&&sD(l,t))continue;let o={delay:n,...jC(a||{},t)},u=r.get();if(u!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===u&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=ZE(e);if(n){let e=window.MotionHandoffAnimation(n,t,Fb);e!==null&&(o.startTime=e,d=!0)}}XE(e,t),r.start(oD(t,r,i,e.shouldReduceMotion&&MC.has(t)?{type:!1}:o,e,d));let f=r.animation;f&&c.push(f)}return o&&Promise.all(c).then(()=>{Fb.update(()=>{o&&JE(e,o)})}),c}function lD(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}function uD(e,t,n={}){let r=WE(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(cD(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return dD(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function dD(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(uD(c,t,{...o,delay:n+(typeof r==`function`?0:r)+lD(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function fD(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>uD(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=uD(e,t,n);else{let i=typeof t==`function`?WE(e,t,n.custom):t;r=Promise.all(cD(e,i,n))}return r.then(()=>
37{e.notify(`AnimationComplete`,t)})}function pD(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var mD=sT.length;function hD(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&hD(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<mD;n++){let r=sT[n],i=e.props[r];(aT(i)||i===!1)&&(t[r]=i)}return t}var gD=[...oT].reverse(),_D=oT.length;function vD(e){return t=>Promise.all(t.map(({animation:t,options:n})=>fD(e,t,n)))}function yD(e){let t=vD(e),n=SD(),r=!0,i=t=>(n,r)=>{let i=WE(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=hD(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<_D;t++){let f=gD[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=aT(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||iT(m)||typeof m==`boolean`)continue;let v=bD(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},T=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=GE(t)&&GE(n)?!pD(t,n):t!==n,r?t==null?l.add(e):T(e):t!==void 0&&l.has(e)?T(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let E=_&&v;y&&(!E||b)&&c.push(...x.map(t=>{let n={type:f};if(typeof t==`string`&&r&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=WE(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=lD(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=WE(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=SD()}}}function bD(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!pD(t,e):!1}function xD(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function SD(){return{animate:xD(!0),whileInView:xD(),whileHover:xD(),whileTap:xD(),whileDrag:xD(),whileFocus:xD(),exit:xD()}}var CD=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},wD=class extends CD{constructor(e){super(e),e.animationState||=yD(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();iT(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},TD=0,ED={animation:{Feature:wD},exit:{Feature:class extends CD{constructor(){super(...arguments),this.id=TD++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function DD(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function OD(e){return{point:{x:e.pageX,y:e.pageY}}}var kD=e=>t=>pw(t)&&e(t,OD(t));function AD(e,t,n,r){return DD(e,t,kD(n),r)}var jD=1e-4,MD=1-jD,ND=1+jD,PD=.01,FD=0-PD,ID=0+PD;function LD(e){return e.max-e.min}
vendor: 12,243 bytes, line 37
37function RD(e,t,n){return Math.abs(e-t)<=n}function zD(e,t,n,r=.5){e.origin=r,e.originPoint=Nx(t.min,t.max,e.origin),e.scale=LD(n)/LD(t),e.translate=Nx(n.min,n.max,e.origin)-e.originPoint,(e.scale>=MD&&e.scale<=ND||isNaN(e.scale))&&(e.scale=1),(e.translate>=FD&&e.translate<=ID||isNaN(e.translate))&&(e.translate=0)}function BD(e,t,n,r){zD(e.x,t.x,n.x,r?r.originX:void 0),zD(e.y,t.y,n.y,r?r.originY:void 0)}function VD(e,t,n){e.min=n.min+t.min,e.max=e.min+LD(t)}function HD(e,t,n){VD(e.x,t.x,n.x),VD(e.y,t.y,n.y)}function UD(e,t,n){e.min=t.min-n.min,e.max=e.min+LD(t)}function WD(e,t,n){UD(e.x,t.x,n.x),UD(e.y,t.y,n.y)}function GD(e){return[e(`x`),e(`y`)]}var KD=({current:e})=>e?e.ownerDocument.defaultView:null,qD=(e,t)=>Math.abs(e-t);function JD(e,t){let n=qD(e.x,t.x),r=qD(e.y,t.y);return Math.sqrt(n**2+r**2)}var YD=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=QD(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=JD(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Lb;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=XD(t,this.transformPagePoint),Fb.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=QD(e.type===`pointercancel`?this.lastMoveEventInfo:XD(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!pw(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let o=XD(OD(e),this.transformPagePoint),{point:s}=o,{timestamp:c}=Lb;this.history=[{...s,timestamp:c}];let{onSessionStart:l}=t;l&&l(e,QD(o,this.history)),this.removeListeners=nb(AD(this.contextWindow,`pointermove`,this.handlePointerMove),AD(this.contextWindow,`pointerup`,this.handlePointerUp),AD(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ib(this.updatePoint)}};function XD(e,t){return t?{point:t(e.point)}:e}function ZD(e,t){return{x:e.x-t.x,y:e.y-t.y}}function QD({point:e},t){return{point:e,delta:ZD(e,eO(t)),offset:ZD(e,$D(t)),velocity:tO(t,.1)}}function $D(e){return e[0]}function eO(e){return e[e.length-1]}function tO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=eO(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ab(t)));)n--;if(!r)return{x:0,y:0};let a=ob(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function nO(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Nx(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Nx(n,e,r.max):Math.min(e,n)),e}function rO(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function iO(e,{top:t,left:n,bottom:r,right:i}){return{x:rO(e.x,n,i),y:rO(e.y,t,r)}}function aO(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function oO(e,t){return{x:aO(e.x,t.x),y:aO(e.y,t.y)}}function sO(e,t){let n=.5,r=LD(e),i=LD(t);return i>r?n=rb(t.min,t.max-r,e.min):r>i&&(n=rb(e.min,e.max-i,t.min)),Jy(0,1,n)}function cO(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var lO=.35;function uO(e=lO){return e===!1?e=0:e===!0&&(e=lO),{x:dO(e,`left`,`right`),y:dO(e,`top`,`bottom`)}}function dO(e,t,n){return{min:fO(e,t),max:fO(e,n)}}function fO(e,t){return typeof e==`number`?e:e[t]||0}var pO=new WeakMap,mO=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=OE(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(OD(e).point)},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=cw(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),GD(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ux.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=LD(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Fb.postRender(()=>i(e,t)),XE(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=gO(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>GD(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new YD(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:KD(this.visualElement)})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&Fb.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!hO(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=nO(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&KT(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=iO(n.layoutBox,e):this.constraints=!1,this.elastic=uO(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&GD(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=cO(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!KT(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=wE(n,r.root,this.visualElement.getTransformPagePoint()),a=oO(r.layout.layoutBox,i);if(t){let e=t(oE(a));this.hasMutatedConstraints=!!e,e&&(a=aE(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=GD(o=>{if(!hO(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return XE(this.visualElement,e),n.start(oD(e,n,0,t,this.visualElement,!1))}stopAnimation(){GD(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){GD(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){GD(t=>{let{drag:n}=this.getProps();if(!hO(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-Nx(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!KT(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};GD(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=sO({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),GD(t=>{if(!hO(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(Nx(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;pO.set(this.visualElement,this);let e=this.visualElement.current,t=AD(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();KT(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Fb.read(n);let a=DD(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(GD(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=lO,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function hO(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function gO(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var _O=class extends CD{constructor(e){super(e),this.removeGroupControls=eb,this.removeListeners=eb,this.controls=new mO(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eb}unmount(){this.removeGroupControls(),this.removeListeners()}},vO=e=>(t,n)=>{e&&Fb.postRender(()=>e(t,n))},yO=class extends CD{constructor(){super(...arguments),this.removePointerDownListener=eb}onPointerDown(e){this.session=new YD(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:KD(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:vO(e),onStart:vO(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Fb.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=AD(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},bO={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xO(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var SO={correct:(e,t)=>
37{if(!t.target)return e;if(typeof e==`string`)if($.test(e))e=parseFloat(e);else return e;return`${xO(e,t.target.x)}% ${xO(e,t.target.y)}%`}},CO={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=kx.parse(e);if(i.length>5)return r;let a=kx.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=Nx(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},wO=!1,TO=class extends L.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;mT(DO),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),wO&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),bO.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,wO=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Fb.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),iw.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;wO=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function EO(e){let[t,n]=Ww(),r=(0,L.useContext)(Vy);return(0,I.jsx)(TO,{...e,layoutGroup:r,switchLayoutGroup:(0,L.useContext)(XT),isPresent:t,safeToRemove:n})}var DO={borderRadius:{...SO,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:SO,borderTopRightRadius:SO,borderBottomLeftRadius:SO,borderBottomRightRadius:SO,boxShadow:CO};function OO(e,t,n){let r=Bw(e)?e:rw(e);return r.start(oD(``,r,t,n)),r.animation}var kO=(e,t)=>e.depth-t.depth,AO=class{constructor(){this.children=[],this.isDirty=!1}add(e){Ky(this.children,e),this.isDirty=!0}remove(e){qy(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(kO),this.isDirty=!1,this.children.forEach(e)}};function jO(e,t){let n=Vb.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Ib(r),e(a-t))};return Fb.setup(r,!0),()=>Ib(r)}var MO=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],NO=MO.length,PO=e=>typeof e==`string`?parseFloat(e):e,FO=e=>typeof e==`number`||$.test(e);function IO(e,t,n,r,i,a){i?(e.opacity=Nx(0,n.opacity??1,RO(r)),e.opacityExit=Nx(t.opacity??1,0,zO(r))):a&&(e.opacity=Nx(t.opacity??1,n.opacity??1,r));for(let i=0;i<NO;i++){let a=`border${MO[i]}Radius`,o=LO(t,a),s=LO(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||FO(o)===FO(s)?(e[a]=Math.max(Nx(PO(o),PO(s),r),0),(ux.test(s)||ux.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=Nx(t.rotate||0,n.rotate||0,r))}function LO(e,t){return e[t]===void 0?e.borderRadius:e[t]}var RO=BO(0,.5,bb),zO=BO(.5,.95,eb);function BO(e,t,n){return r=>r<e?0:r>t?1:n(rb(e,t,r))}function VO(e,t){e.min=t.min,e.max=t.max}function HO(e,t){VO(e.x,t.x),VO(e.y,t.y)}function UO(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function WO(e,t,n,r,i){return e-=t,e=pE(e,1/n,r),i!==void 0&&(e=pE(e,1/i,r)),e}function GO(e,t=0,n=1,r=.5,i,a=e,o=e){if(ux.test(t)&&(t=parseFloat(t),t=Nx(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=Nx(a.min,a.max,r);e===a&&(s-=t),e.min=WO(e.min,t,n,s,i),e.max=WO(e.max,t,n,s,i)}function KO(e,t,[n,r,i],a,o){GO(e,t[n],t[r],t[i],t.scale,a,o)}var qO=[`x`,`scaleX`,`originX`],JO=[`y`,`scaleY`,`originY`];function YO(e,t,n,r){KO(e.x,t,qO,n?n.x:void 0,r?r.x:void 0),KO(e.y,t,JO,n?n.y:void 0,r?r.y:void 0)}function XO(e){return e.translate===0&&e.scale===1}function ZO(e){return XO(e.x)&&XO(e.y)}function QO(e,t){return e.min===t.min&&e.max===t.max}
37function $O(e,t){return QO(e.x,t.x)&&QO(e.y,t.y)}function ek(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function tk(e,t){return ek(e.x,t.x)&&ek(e.y,t.y)}function nk(e){return LD(e.x)/LD(e.y)}function rk(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var ik=class{constructor(){this.members=[]}add(e){Ky(this.members,e),e.scheduleRender()}remove(e){if(qy(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function ak(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var ok={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},sk=[``,`X`,`Y`,`Z`],ck=1e3,lk=0;function uk(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function dk(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=ZE(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Fb,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&dk(r)}function fk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=lk++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,jb.value&&(ok.nodes=ok.calculatedTargetDeltas=ok.calculatedProjections=0),this.nodes.forEach(hk),this.nodes.forEach(Sk),this.nodes.forEach(Ck),this.nodes.forEach(gk),jb.addProjectionMetrics&&jb.addProjectionMetrics(ok)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new AO)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ib),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Sw(t)&&!Rw(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Fb.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=jO(i,250),bO.hasAnimatedSinceResize&&(bO.hasAnimatedSinceResize=!1,this.nodes.forEac
37h(xk)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Ak,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!tk(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...jC(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||xk(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ib(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(wk),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&dk(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(vk);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(yk);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(bk),this.nodes.forEach(pk),this.nodes.forEach(mk)):this.nodes.forEach(yk),this.clearAllSnapshots();let e=Vb.now();Lb.delta=Jy(0,1e3/60,e-Lb.timestamp),Lb.timestamp=e,Lb.isProcessing=!0,Rb.update.process(Lb),Rb.preRender.process(Lb),Rb.render.process(Lb),Lb.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,iw.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(_k),this.sharedNodes.forEach(Tk)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fb.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fb.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!LD(this.snapshot.measuredBox.x)&&!LD(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=OE(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!ZO(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||uE(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Pk(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return OE();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ik))){let{scroll:e}=this.root;e&&(bE(t.x,e.offset.x),bE(t.y,e.offset.y))}return t}removeElementScroll(e){let t=OE();if(HO(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&HO(t,e),bE(t.x,i.offset.x),bE(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=OE();HO(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&SE(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),uE(r.latestValues)&&SE(n,r.latestValues)}return uE(this.latestValues)&&SE(n,this.latestValues),n}removeTransform(e){let t=OE();HO(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!uE(n.latestValues))continue;lE(n.latestValues)&&n.updateSnapshot();let r=OE();HO(r,n.measurePageBox()),YO(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return uE(this.latestValues)&&YO(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Lb.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;
37if(!(!this.layout||!(r||i))){if(this.resolvedRelativeTargetAt=Lb.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=OE(),this.relativeTargetOrigin=OE(),WD(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),HO(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=OE(),this.targetWithTransforms=OE()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),HD(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):HO(this.target,this.layout.layoutBox),gE(this.target,this.targetDelta)):HO(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=OE(),this.relativeTargetOrigin=OE(),WD(this.relativeTargetOrigin,this.target,e.target),HO(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}jb.value&&ok.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||lE(this.parent.latestValues)||dE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Lb.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;HO(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;yE(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=OE());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(UO(this.prevProjectionDelta.x,this.projectionDelta.x),UO(this.prevProjectionDelta.y,this.projectionDelta.y)),BD(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!rk(this.projectionDelta.x,this.prevProjectionDelta.x)||!rk(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),jb.value&&ok.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=EE(),this.projectionDelta=EE(),this.projectionDeltaWithTransform=EE()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=EE();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=OE(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(kk));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;Ek(a.x,e.x,n),Ek(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(WD(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ok(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&$O(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=OE(),HO(d,this.relativeTarget)),s&&(this.animationValues=i,IO(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Ib(this.pendingAnimation),void 0),this.pendingAnimation=Fb.update(()=>{bO.hasAnimatedSinceResize=!0,Hb.layout++,this.motionValue||=rw(0),this.currentAnimation=OO(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Hb.layout--},onComplete:()=>{Hb.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ck),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Fk(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||OE();let t=LD(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=LD(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}HO(t,n),SE(t,i),BD(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
37)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ik),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&uk(`z`,e,r,this.animationValues);for(let t=0;t<sk.length;t++)uk(`rotate${sk[t]}`,e,r,this.animationValues),uk(`skew${sk[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=LT(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=LT(t?.pointerEvents)||``),this.hasProjected&&!uE(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=ak(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in pT){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=pT[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?LT(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(vk),this.root.sharedNodes.clear()}}}function pk(e){e.updateLayout()}function mk(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?GD(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=LD(r);r.min=n[e].min,r.max=r.min+i}):Fk(i,t.layoutBox,n)&&GD(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=LD(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=EE();BD(o,n,t.layoutBox);let s=EE();a?BD(s,e.applyTransform(r,!0),t.measuredBox):BD(s,n,t.layoutBox);let c=!ZO(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=OE();WD(o,t.layoutBox,i.layoutBox);let s=OE();WD(s,n,a.layoutBox),tk(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function hk(e){jb.value&&ok.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function gk(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _k(e){e.clearSnapshot()}function vk(e){e.clearMeasurements()}function yk(e){e.isLayoutDirty=!1}function bk(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function xk(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Sk(e){e.resolveTargetDelta()}function Ck(e){e.calcProjection()}
37function wk(e){e.resetSkewAndRotation()}function Tk(e){e.removeLeadSnapshot()}function Ek(e,t,n){e.translate=Nx(t.translate,0,n),e.scale=Nx(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Dk(e,t,n,r){e.min=Nx(t.min,n.min,r),e.max=Nx(t.max,n.max,r)}function Ok(e,t,n,r){Dk(e.x,t.x,n.x,r),Dk(e.y,t.y,n.y,r)}function kk(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ak={duration:.45,ease:[.4,0,.1,1]},jk=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Mk=jk(`applewebkit/`)&&!jk(`chrome/`)?Math.round:eb;function Nk(e){e.min=Mk(e.min),e.max=Mk(e.max)}function Pk(e){Nk(e.x),Nk(e.y)}function Fk(e,t,n){return e===`position`||e===`preserve-aspect`&&!RD(nk(t),nk(n),.2)}function Ik(e){return e!==e.root&&e.scroll?.wasRoot}var Lk=fk({attachResizeListener:(e,t)=>DD(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Rk={current:void 0},zk=fk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Rk.current){let e=new Lk({});e.mount(window),e.setOptions({layoutScroll:!0}),Rk.current=e}return Rk.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Bk={pan:{Feature:yO},drag:{Feature:_O,ProjectionNode:zk,MeasureLayout:EO}};function Vk(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Fb.postRender(()=>i(t,OD(t)))}var Hk=class extends CD{mount(){let{current:e}=this.node;e&&(this.unmount=dw(e,(e,t)=>(Vk(this.node,t,`Start`),e=>Vk(this.node,e,`End`))))}unmount(){}},Uk=class extends CD{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=nb(DD(this.node.current,`focus`,()=>this.onFocus()),DD(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Wk(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Fb.postRender(()=>i(t,OD(t)))}var Gk=class extends CD{mount(){let{current:e}=this.node;e&&(this.unmount=xw(e,(e,t)=>(Wk(this.node,t,`Start`),(e,{success:t})=>Wk(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}},Kk=new WeakMap,qk=new WeakMap,Jk=e=>{let t=Kk.get(e.target);t&&t(e)},Yk=e=>{e.forEach(Jk)};function Xk({root:e,...t}){let n=e||document;qk.has(n)||qk.set(n,{});let r=qk.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Yk,{root:e,...t})),r[i]}function Zk(e,t,n){let r=Xk(t);return Kk.set(e,n),r.observe(e),()=>{Kk.delete(e),r.unobserve(e)}}var Qk={some:0,all:1},$k=class extends CD{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Qk[r]};return Zk(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(eA(e,t))&&this.startObserver()}unmount(){}};function eA({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var tA={inView:{Feature:$k},tap:{Feature:Gk},focus:{Feature:Uk},hover:{Feature:Hk}},nA={layout:{ProjectionNode:zk,MeasureLayout:EO}},rA=iE({...ED,...tA,...Bk,...nA},UE),iA=50,aA=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),oA=()=>({time:0,x:aA(),y:aA()}),sA={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}};function cA(e,t,n,r){let i=n[t],{length:a,position:o}=sA[t],s=i.current,c=n.time;i.current=e[`scroll${o}`],i.scrollLength=e[`scroll${a}`]-e[`client${a}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=rb(0,i.scrollLength,i.current);let l=r-c;i.velocity=l>iA?0:sb(i.current-s,l)}function lA(e,t,n){cA(e,`x`,t,n),cA(e,`y`,t,n),t.time=n}function uA(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(QC(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName===`svg`){let e=r.getBoundingClientRect();r=r.parentElement;let t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,a=r.parentNode;for(;!i;)a.tagName===`svg`&&(i=a),a=r.parentNode;r=i}else break;return n}var dA={start:0,center:.5,end:1};function fA(e,t,n=0){let r=0;if(e in dA&&(e=dA[e]),typeof e==`string`){let t=parseFloat(e);e.endsWith(`px`)?r=t:e.endsWith(`%`)?e=t/100:e.endsWith(`vw`)?r=t/100*document.documentElement.clientWidth:e.endsWith(`vh`)?r=t/100*document.documentElement.clientHeight:e=t}return typeof e==`number`&&(r=t*e),n+r}
37var pA=[0,0];function mA(e,t,n,r){let i=Array.isArray(e)?e:pA,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,dA[e]?e:`0`]),a=fA(i[0],n,r),o=fA(i[1],t),a-o}var hA={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},gA={x:0,y:0};function _A(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function vA(e,t,n){let{offset:r=hA.All}=n,{target:i=e,axis:a=`y`}=n,o=a===`y`?`height`:`width`,s=i===e?gA:uA(i,e),c=i===e?{width:e.scrollWidth,height:e.scrollHeight}:_A(i),l={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let u=!t[a].interpolate,d=r.length;for(let e=0;e<d;e++){let n=mA(r[e],l[o],c[o],s[a]);!u&&n!==t[a].interpolatorOffsets[e]&&(u=!0),t[a].offset[e]=n}u&&(t[a].interpolate=mS(t[a].offset,gS(r),{clamp:!1}),t[a].interpolatorOffsets=[...t[a].offset]),t[a].progress=Jy(0,1,t[a].interpolate(t[a].current))}function yA(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function bA(e,t,n,r={}){return{measure:t=>{yA(e,r.target,n),lA(e,n,t),(r.offset||r.target)&&vA(e,n,r)},notify:()=>t(n)}}var xA=new WeakMap,SA=new WeakMap,CA=new WeakMap,wA=e=>e===document.scrollingElement?window:e;function TA(e,{container:t=document.scrollingElement,...n}={}){if(!t)return eb;let r=CA.get(t);r||(r=new Set,CA.set(t,r));let i=bA(t,e,oA(),n);if(r.add(i),!xA.has(t)){let e=()=>{for(let e of r)e.measure(Lb.timestamp);Fb.preUpdate(n)},n=()=>{for(let e of r)e.notify()},i=()=>Fb.read(e);xA.set(t,i);let a=wA(t);window.addEventListener(`resize`,i,{passive:!0}),t!==document.documentElement&&SA.set(t,Iw(t,i)),a.addEventListener(`scroll`,i,{passive:!0}),i()}let a=xA.get(t);return Fb.read(a,!1,!0),()=>{Ib(a);let e=CA.get(t);if(!e||(e.delete(i),e.size))return;let n=xA.get(t);xA.delete(t),n&&(wA(t).removeEventListener(`scroll`,n),SA.get(t)?.(),window.removeEventListener(`resize`,n))}}var EA=new Map;function DA(e){let t={value:0};return{currentTime:t,cancel:TA(n=>{t.value=n[e.axis].progress*100},e)}}function OA({source:e,container:t,...n}){let{axis:r}=n;e&&(t=e);let i=EA.get(t)??new Map;EA.set(t,i);let a=n.target??`self`,o=i.get(a)??{},s=r+(n.offset??[]).join(`,`);return o[s]||(o[s]=!n.target&&rC()?new ScrollTimeline({source:t,axis:r}):DA({container:t,...n})),o[s]}function kA(e,t){let n=OA(t);return e.attachTimeline({timeline:t.target?void 0:n,observe:e=>(e.pause(),Lw(t=>{e.time=e.iterationDuration*t},n))})}function AA(e){return e.length===2}function jA(e,t){return AA(e)?TA(n=>{e(n[t.axis].progress,n)},t):Lw(e,OA(t))}function MA(e,{axis:t=`y`,container:n=document.scrollingElement,...r}={}){if(!n)return eb;let i={axis:t,container:n,...r};return typeof e==`function`?jA(e,i):kA(e,i)}var NA=()=>({scrollX:rw(0),scrollY:rw(0),scrollXProgress:rw(0),scrollYProgress:rw(0)}),PA=e=>e?!e.current:!1;function FA({container:e,target:t,...n}={}){let r=Hy(NA),i=(0,L.useRef)(null),a=(0,L.useRef)(!1),o=(0,L.useCallback)(()=>(i.current=MA((e,{x:t,y:n})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollY.set(n.current),r.scrollYProgress.set(n.progress)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{i.current?.()}),[e,t,JSON.stringify(n.offset)]);return Wy(()=>{if(a.current=!1,PA(e)||PA(t)){a.current=!0;return}else return o()},[o]),(0,L.useEffect)(()=>{if(a.current)return PA(e),PA(t),o()},[o]),r}function IA(e){let t=Hy(()=>rw(e)),{isStatic:n}=(0,L.useContext)(Uw);if(n){let[,n]=(0,L.useState)(e);(0,L.useEffect)(()=>t.on(`change`,n),[])}return t}function LA(e,t){let n=IA(t()),r=()=>n.set(t());return r(),Wy(()=>{let t=()=>Fb.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),Ib(r)}}),n}function RA(e){tw.current=[],e();let t=LA(tw.current,e);return tw.current=void 0,t}function zA(e,t,n,r){if(typeof e==`function`)return RA(e);let i=typeof t==`function`?t:zw(t,n,r);return Array.isArray(e)?BA(e,i):BA([e],([e])=>i(e))}function BA(e,t){let n=Hy(()=>[]);return LA(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var VA=`/assets/kopia-04-bWMXqIvj.png`,HA=L.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Et,currentIdRef:{current:null},currentContextRef:{current:null}});function UA(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=L.useRef(n),a=L.useRef(n),o=L.useRef(null),s=L.useRef(null),c=et();return(0,I.jsx)(HA.Provider,{value:L.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function WA(e,t={open:!1}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`floatingId`),{enabled:i=!0,open:a}=t,{currentIdRef:o,delayRef:s,timeoutMs:c,initialDelayRef:l,currentContextRef:u,hasProvider:d,timeout:f}=L.useContext(HA),[p,m]=L.useState(!1);return tt(()=>{function e(){m(!1),u.current?.setIsInstantPhase(!1),o.current=null,u.current=null,s.current=l.current}if(i&&o.current&&!a&&o.current===r){if(m(!1),c){let t=r;return f.start(c,()=>{n.select(`open`)||o.current&&o.current!==t||e()}),()=>{f.clear()}}e()}},[i,a,r,o,s,c,l,u,f,n]),tt(()=>{if(!i||!a)return;let e=u.current,t=o.current;f.clear(),u.current={onOpenChange:n.setOpen,setIsInstantPhase:m},o.current=r,s.current={open:0,close:qt(l.current,`close`)},t!==null&&t!==r?(m(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,lt(Ct))):(m(!1),e?.setIsInstantPhase(!1))},[i,a,r,n,o,s,c,l,u,f]),tt(()=>()=>{u.current=null},[u]),L.useMemo(()=>({hasProvider:d,delayRef:s,isInstantPhase:p}),[d,s,p])}function GA(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||
370,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function KA(e){return e!=null&&e.clientX!=null}function qA(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),o=n.context.dataRef,{enabled:s=!0,axis:c=`both`,x:l=null,y:u=null}=t,d=L.useRef(!1),f=L.useRef(null),[p,m]=L.useState(),[h,g]=L.useState([]),_=ot((e,t,r)=>{d.current||o.current.openEvent&&!KA(o.current.openEvent)||n.set(`positionReference`,GA(r??a,{x:e,y:t,axis:c,dataRef:o,pointerType:p}))}),v=ot(e=>{l!=null||u!=null||(r?f.current||g([]):_(e.clientX,e.clientY,e.currentTarget))}),y=ft(p)?i:r,b=L.useCallback(()=>{if(!y||!s||l!=null||u!=null)return;let e=it(i);function t(n){vt(i,At(n))?(e.removeEventListener(`mousemove`,t),f.current=null):_(n.clientX,n.clientY)}if(!o.current.openEvent||KA(o.current.openEvent)){e.addEventListener(`mousemove`,t);let n=()=>{e.removeEventListener(`mousemove`,t),f.current=null};return f.current=n,n}n.set(`positionReference`,a)},[y,s,l,u,i,o,a,n,_]);L.useEffect(()=>b(),[b,h]),L.useEffect(()=>{s&&!i&&(d.current=!1)},[s,i]),L.useEffect(()=>{!s&&r&&(d.current=!0)},[s,r]),tt(()=>{s&&(l!=null||u!=null)&&(d.current=!1,_(l,u))},[s,l,u,_]);let x=L.useMemo(()=>{function e(e){m(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:v,onMouseEnter:v}},[v]);return L.useMemo(()=>s?{reference:x,trigger:x}:{},[s,x])}function JA(e){let t=(0,br.c)(19),{className:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=[`user`],t[0]=r):r=t[0];let i=Ge(qe),a;t[1]===i?a=t[2]:(a={queryKey:r,queryFn:i},t[1]=i,t[2]=a);let{data:o}=zy(a),s=Ne(),{scrollY:c}=FA(),l,u;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(l=[0,100],u=[`100%`,`80%`],t[3]=l,t[4]=u):(l=t[3],u=t[4]);let d=zA(c,l,u),f=!!o&&o.isAnonymous!==!0,p;t[5]===s?p=t[6]:(p=async()=>{await pe(),await s.invalidateQueries({queryKey:[`user`]})},t[5]=s,t[6]=p);let m=p,h;t[7]===n?h=t[8]:(h=Xe(`z-10 mx-auto rounded-md border-b bg-gray-100/10 px-4 backdrop-blur supports-[backdrop-filter]:bg-gray-100/80 md:rounded-lg`,n),t[7]=n,t[8]=h);let g;t[9]===d?g=t[10]:(g={width:d},t[9]=d,t[10]=g);let _;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,I.jsx)(`div`,{className:`flex items-center gap-4`,children:(0,I.jsx)(`a`,{href:`https://kopia.ai`,className:`flex items-center gap-2`,children:(0,I.jsx)(`span`,{className:`text-lg font-bold`,children:(0,I.jsx)(`img`,{src:VA,className:`w-32`,alt:`Kopia.ai`})})})}),t[11]=_):_=t[11];let v;t[12]!==m||t[13]!==f?(v=(0,I.jsx)(`div`,{className:`container mx-auto`,children:(0,I.jsxs)(`div`,{className:`flex h-12 items-center justify-between`,children:[_,(0,I.jsx)(`div`,{className:`flex items-center gap-2`,children:f?(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)(`div`,{className:`ml-4 flex items-center gap-2`,children:[(0,I.jsx)(j,{to:`/app/files`,className:$e(),children:`Dashboard`}),(0,I.jsxs)(Tt,{onClick:m,variant:`ghost`,size:`sm`,className:`flex items-center gap-2`,children:[(0,I.jsx)(en,{className:`h-4 w-4`}),`Sign Out`]})]})}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(`div`,{className:`hidden gap-2 md:flex`,children:[(0,I.jsx)(j,{to:`/pricing`,className:$e({variant:`ghost`,size:`sm`}),children:`Pricing`}),(0,I.jsx)(j,{to:`/auth/sign-in`,className:$e({variant:`ghost`,size:`sm`}),children:`Sign In`}),(0,I.jsxs)(j,{to:`/auth/sign-up`,className:Xe(`flex items-center gap-2`,$e({variant:`default`,size:`sm`})),children:[(0,I.jsx)(L_,{className:`h-4 w-4`}),`Sign Up`]})]}),(0,I.jsxs)(`div`,{className:`flex items-center gap-2 md:hidden`,children:[(0,I.jsxs)(Qt,{children:[(0,I.jsx)(Zt,{render:(0,I.jsx)(Tt,{variant:`ghost`,size:`icon-sm`}),children:(0,I.jsx)(M_,{className:`h-4 w-4`})}),(0,I.jsxs)(Xt,{align:`end`,sideOffset:8,children:[(0,I.jsx)(Jt,{render:(0,I.jsx)(j,{to:`/pricing`}),children:`Pricing`}),(0,I.jsx)(Jt,{render:(0,I.jsx)(j,{to:`/auth/sign-in`}),children:`Sign In`})]})]}),(0,I.jsxs)(j,{to:`/auth/sign-up`,className:Xe(`flex items-center gap-2`,$e({variant:`default`,size:`sm`})),children:[(0,I.jsx)(L_,{className:`h-4 w-4`}),`Sign Up`]})]})]})})]})}),t[12]=m,t[13]=f,t[14]=v):v=t[14];let y;return t[15]!==v||t[16]!==h||t[17]!==g?(y=(0,I.jsx)(rA.nav,{className:h,style:g,children:v}),t[15]=v,t[16]=h,t[17]=g,t[18]=y):y=t[18],y}var YA=`/assets/kopia-08-Bfa_RWyT.png`,XA=`data:image/svg+xml,%3csvg%20width='1200'%20height='1227'%20viewBox='0%200%201200%201227'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M714.163%20519.284L1160.89%200H1055.03L667.137%20450.887L357.328%200H0L468.492%20681.821L0%201226.37H105.866L515.491%20750.218L842.672%201226.37H1200L714.137%20519.284H714.163ZM569.165%20687.828L521.697%20619.934L144.011%2079.6944H306.615L611.412%20515.685L658.88%2
370583.579L1055.08%201150.3H892.476L569.165%20687.854V687.828Z'%20fill='black'/%3e%3c/svg%3e`,ZA=`text-gray-600 text-sm transition-colors hover:text-gray-900`;function QA(){let e=(0,br.c)(9),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,I.jsx)(`div`,{className:`mt-1.5 w-32`,children:(0,I.jsx)(`img`,{src:YA,alt:`Kopia.ai`})}),n=(0,I.jsx)(`p`,{className:`mt-2 text-sm text-gray-600`,children:`Fast, Accurate AI Transcription`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,I.jsxs)(`div`,{className:`col-span-2 md:col-span-1`,children:[t,n,(0,I.jsx)(`div`,{className:`mt-4`,children:(0,I.jsx)(j,{to:`/auth/sign-up`,className:$e({size:`sm`}),children:`Sign Up`})})]}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,I.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,I.jsx)(`p`,{className:`mb-1 text-sm font-medium text-gray-900`,children:`Product`}),(0,I.jsx)(j,{to:`/pricing`,className:ZA,children:`Pricing`}),(0,I.jsx)(j,{to:`/blog`,className:ZA,children:`Blog`}),(0,I.jsx)(j,{to:`/resources/api-docs/v1`,className:ZA,children:`API Docs`})]}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,I.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,I.jsx)(`p`,{className:`mb-1 text-sm font-medium text-gray-900`,children:`Transcription Tools`}),(0,I.jsx)(j,{to:`/tools/video-to-text`,className:ZA,children:`Video to text`}),(0,I.jsx)(j,{to:`/tools/audio-to-text`,className:ZA,children:`Audio to text`}),(0,I.jsx)(j,{to:`/tools/m4a-to-text`,className:ZA,children:`M4A to text`}),(0,I.jsx)(j,{to:`/tools/mp3-to-text`,className:ZA,children:`MP3 to text`}),(0,I.jsx)(j,{to:`/tools/mp4-to-text`,className:ZA,children:`MP4 to text`})]}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,I.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,I.jsx)(`p`,{className:`mb-1 text-sm font-medium text-gray-900`,children:`Free Tools`}),(0,I.jsx)(j,{to:`/free-tools/video-converter`,className:ZA,children:`Video Converter`}),(0,I.jsx)(j,{to:`/free-tools/m4a-to-mp3`,className:ZA,children:`M4A to MP3`}),(0,I.jsx)(j,{to:`/free-tools/mp3-to-wav`,className:ZA,children:`MP3 to WAV`}),(0,I.jsx)(j,{to:`/free-tools/wav-to-mp3`,className:ZA,children:`WAV to MP3`}),(0,I.jsx)(j,{to:`/free-tools/mov-to-mp3`,className:ZA,children:`MOV to MP3`}),(0,I.jsx)(j,{to:`/free-tools/mp4-to-wav`,className:ZA,children:`MP4 to WAV`}),(0,I.jsx)(j,{to:`/free-tools/m4a-to-wav`,className:ZA,children:`M4A to WAV`})]}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,I.jsxs)(`div`,{className:`grid grid-cols-2 gap-10 md:grid-cols-5`,children:[r,i,a,o,(0,I.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,I.jsx)(`p`,{className:`mb-1 text-sm font-medium text-gray-900`,children:`Resources`}),(0,I.jsx)(j,{to:`/resources/supported-transcription-languages`,className:ZA,children:`Transcription Languages`}),(0,I.jsx)(j,{to:`/resources/supported-translation-languages`,className:ZA,children:`Translation Languages`}),(0,I.jsx)(j,{to:`/resources/privacy-policy`,className:ZA,children:`Privacy Policy`}),(0,I.jsx)(j,{to:`/resources/terms-of-use`,className:ZA,children:`Terms`})]})]}),e[6]=s):s=e[6];let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,I.jsxs)(`p`,{className:`text-sm text-gray-600`,children:[`© `,new Date().getFullYear(),` kopia.ai. All rights reserved.`]}),e[7]=c):c=e[7];let l;return e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,I.jsx)(`footer`,{className:`from-primary/70 rounded-lg bg-linear-to-br via-gray-100 to-gray-300`,children:(0,I.jsxs)(`div`,{className:`container mx-auto px-6 py-16`,children:[s,(0,I.jsxs)(`div`,{className:`mt-12 flex items-center justify-between border-t border-gray-300/60 pt-6`,children:[c,(0,I.jsx)(`a`,{href:`https://x.com/kopia_ai`,target:`_blank`,rel:`noopener noreferrer`,children:(0,I.jsx)(`img`,{src:XA,className:`size-5 text-black`,alt:`The logo of x.com the everything app`})})]})]})}),e[8]=l):l=e[8],l}var $A=N(`/resources/comparisons/vs-turboscribe`)({component:nj,head:()=>{let e=`Kopia vs TurboScribe: AI Transcription with Analysis & Editing`,t=`Compare Kopia and TurboScribe. While TurboScribe focuses on unlimited transcription volume, Kopia delivers a complete workflowâAI analysis, in-browser editing, subtitles, and publish-ready content.`;return{links:[{rel:`canonical`,href:`https://kopia.ai/resources/comparisons/vs-turboscribe`}],meta:[{title:e},{name:`description`,content:t},...Ze({title:e,description:t,imageUrl:new URL(rn,`https://kopia.ai`).href,url:`https://kopia.ai/resources/comparisons/vs-turboscribe`})]}}}),ej=[{category:`Core Focus`,kopia:`Transcription + analysis + editing workflow`,turboscribe:`High-volume transcription`,kopiaWins:!0},{category:`AI Analysis`,kopia:`Talk to your transcriptâsummaries, chapters, topics`,turboscribe:`Not emphasized as core feature`,kopiaWins:!0},{category:`Editing Experience`,kopia:`In-browser, media-linked, word-level navigation`,turboscribe:`Transcript editing available`,kopiaWins:!0}
37,{category:`Subtitles`,kopia:`Export files + add subtitles directly to video`,turboscribe:`Export subtitle files (SRT, VTT)`,kopiaWins:!0},{category:`Languages`,kopia:`102 transcription / 133 translation`,turboscribe:`98+ transcription / 134+ translation`,kopiaWins:!1},{category:`Speaker Features`,kopia:`Up to 15 speakers, multi-track transcription`,turboscribe:`Speaker recognition with manual/auto count`,kopiaWins:!1},{category:`API for Automation`,kopia:`Full-featured REST API for programmatic access`,turboscribe:`No API available`,kopiaWins:!0}],tj=[{icon:I_,title:`Post-Transcription Workflow`,description:`Go from raw recording to final content without juggling extra tools. Kopia handles the entire journey, gracefully.`},{icon:N_,title:`Built for Content Operations`,description:`Summaries, chapters, and transcript-driven insights reduce manual review time and speed up publishing tenfold.`},{icon:A_,title:`Precision Editing`,description:`Our media-synced editor makes quality control faster. Click any word to hear it instantly and correct errors in a keystroke.`},{icon:O_,title:`Video Subtitle Integration`,description:`Don't just export SRT/VTT filesâactually add beautiful subtitles directly to your video right in the browser.`}];function nj(){let e=(0,br.c)(30),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,I.jsx)(JA,{className:`border-border/40 bg-background/80 sticky top-0 z-50 border-b backdrop-blur-xl`}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,I.jsxs)(`div`,{className:`pointer-events-none absolute inset-0 -z-10`,children:[(0,I.jsx)(`div`,{className:`bg-primary/5 absolute top-0 right-0 h-[80vw] max-h-[800px] w-[80vw] max-w-[800px] translate-x-1/3 -translate-y-1/4 rounded-full blur-[120px]`}),(0,I.jsx)(`div`,{className:`absolute bottom-0 left-0 h-[60vw] max-h-[600px] w-[60vw] max-w-[600px] -translate-x-1/3 translate-y-1/4 rounded-full bg-blue-500/5 blur-[100px]`}),(0,I.jsx)(`div`,{className:`absolute inset-0 bg-[url('https://grainy-gradients.vercel.app/noise.svg')] opacity-[0.015] mix-blend-overlay`}),(0,I.jsx)(`div`,{className:`border-border/20 absolute top-0 right-4 bottom-0 left-4 border-x md:right-12 md:left-12`}),(0,I.jsx)(`div`,{className:`bg-border/20 absolute top-0 bottom-0 left-1/2 hidden w-px -translate-x-1/2 md:block`})]}),e[1]=n):n=e[1];let r,i;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r={opacity:0,y:20},i={opacity:1,y:0},e[2]=r,e[3]=i):(r=e[2],i=e[3]);let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a={duration:.8,ease:[.16,1,.3,1]},e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,I.jsxs)(`div`,{className:`border-primary/20 bg-primary/5 text-primary mb-12 inline-flex items-center gap-2 rounded-full border px-3 py-1.5 text-xs font-semibold tracking-widest uppercase`,children:[(0,I.jsx)(R_,{className:`fill-primary/20 h-3.5 w-3.5`}),`Comparison Guide`]}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,I.jsxs)(`h1`,{className:`mb-12 flex w-full flex-col items-center justify-center`,children:[(0,I.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-2 md:flex-row md:gap-6 lg:gap-8`,children:[(0,I.jsx)(`span`,{className:`text-foreground text-[15vw] leading-[0.85] font-black tracking-tighter uppercase sm:text-7xl md:text-8xl lg:text-9xl`,children:`Kopia`}),(0,I.jsx)(`span`,{className:`text-muted-foreground/40 font-serif text-[6vw] font-light tracking-normal lowercase italic sm:text-4xl md:text-5xl lg:text-6xl`,children:`vs`})]}),(0,I.jsx)(`span`,{className:`from-muted-foreground/60 to-muted-foreground/20 mt-1 bg-gradient-to-r bg-clip-text text-[11vw] leading-[0.85] font-black tracking-tighter text-transparent uppercase sm:text-6xl md:mt-4 md:text-7xl lg:text-[100px]`,children:`TurboScribe`})]}),e[6]=s):s=e[6];let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,I.jsxs)(`p`,{className:`text-muted-foreground mt-4 max-w-2xl text-xl leading-relaxed font-light md:text-2xl`,children:[`Transcription is just the raw material. If you want to turn recordings into`,` `,(0,I.jsx)(`strong`,{className:`text-foreground font-medium`,children:`insights, subtitles, and publish-ready assets`}),`, you need a complete workflow.`]}),e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,I.jsx)(Tt,{size:`lg`,className:`h-14 roun
37ded-full px-8 text-base font-medium shadow-[0_0_40px_-10px_var(--primary)]`,asChild:!0,children:(0,I.jsxs)(j,{to:`/auth/sign-up`,children:[`Start Free with Kopia `,(0,I.jsx)(D_,{className:`ml-2 h-4 w-4`})]})}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,I.jsxs)(`section`,{className:`relative overflow-hidden pt-24 pb-32 md:pt-40 md:pb-48`,children:[n,(0,I.jsx)(`div`,{className:`relative z-10 container mx-auto px-4 md:px-12`,children:(0,I.jsxs)(rA.div,{initial:r,animate:i,transition:a,className:`flex flex-col items-center text-center`,children:[o,s,c,(0,I.jsxs)(`div`,{className:`mt-12 flex flex-col items-center gap-4 sm:flex-row`,children:[l,(0,I.jsx)(Tt,{size:`lg`,variant:`ghost`,className:`border-border/50 hover:bg-muted/50 h-14 rounded-full border px-8 text-base font-medium`,asChild:!0,children:(0,I.jsx)(`a`,{href:`#spec-sheet`,children:`Compare features`})})]})]})})]}),e[9]=u):u=e[9];let d;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,I.jsx)(`div`,{className:`mb-16 flex flex-col items-start justify-between gap-12 md:flex-row md:items-end`,children:(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`h2`,{className:`mb-4 text-3xl font-bold tracking-tight md:text-5xl`,children:`The Spec Sheet`}),(0,I.jsx)(`p`,{className:`text-muted-foreground text-lg`,children:`A feature-by-feature breakdown of capabilities.`})]})}),e[10]=d):d=e[10];let f;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,I.jsx)(`section`,{id:`spec-sheet`,className:`border-border/40 bg-muted/10 relative scroll-mt-24 border-y py-24`,children:(0,I.jsxs)(`div`,{className:`container mx-auto max-w-6xl px-4 md:px-12`,children:[d,(0,I.jsxs)(`div`,{className:`grid grid-cols-1 gap-2`,children:[(0,I.jsxs)(`div`,{className:`border-border/40 text-muted-foreground hidden grid-cols-12 gap-6 border-b px-6 pb-4 text-xs font-semibold tracking-widest uppercase md:grid`,children:[(0,I.jsx)(`div`,{className:`col-span-4`,children:`Capability`}),(0,I.jsx)(`div`,{className:`text-foreground col-span-4`,children:`Kopia`}),(0,I.jsx)(`div`,{className:`col-span-4`,children:`TurboScribe`})]}),ej.map(ij)]})]})}),e[11]=f):f=e[11];let p;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,I.jsxs)(`div`,{className:`mb-20 max-w-2xl`,children:[(0,I.jsxs)(`h2`,{className:`text-primary mb-6 flex items-center gap-4 text-xs font-semibold tracking-[0.25em] uppercase`,children:[(0,I.jsx)(`span`,{className:`bg-primary/40 h-px w-8`}),` The Kopia Edge`]}),(0,I.jsx)(`h3`,{className:`text-4xl leading-[1.1] font-bold tracking-tighter md:text-6xl`,children:`Why teams migrate away from volume transcribers.`})]}),e[12]=p):p=e[12];let m;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,I.jsx)(`section`,{className:`py-32`,children:(0,I.jsxs)(`div`,{className:`container mx-auto max-w-6xl px-4 md:px-12`,children:[p,(0,I.jsx)(`div`,{className:`grid grid-cols-1 gap-6 md:grid-cols-3`,children:tj.map(rj)})]})}),e[13]=m):m=e[13];let h;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,I.jsx)(`div`,{className:`text-primary/10 pointer-events-none absolute -top-12 -left-4 font-serif text-[120px] leading-none select-none md:-left-12`,children:`"`}),e[14]=h):h=e[14];let g,_,v,y;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(g={opacity:0,scale:.98},_={opacity:1,scale:1},v={once:!0},y={duration:.7},e[15]=g,e[16]=_,e[17]=v,e[18]=y):(g=e[15],_=e[16],v=e[17],y=e[18]);let b;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,I.jsx)(`h3`,{className:`text-muted-foreground mb-10 text-sm font-semibold tracking-[0.2em] uppercase`,children:`The Honest Assessment`}),e[19]=b):b=e[19];let x;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,I.jsxs)(`p`,{className:`text-foreground/90 mb-8 text-2xl leading-snug font-light tracking-tight md:text-4xl`,children:[`If your only requirement is`,` `,(0,I.jsx)(`span`,{className:`text-foreground font-semibold`,children:`"maximum minutes at the lowest cost,"`}),` `,`TurboScribe is a strong option.`]}),e[20]=x):x=e[20];let S;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,I.jsx)(`section`,{className:`mb-24 py-24`,children:(0,I.jsxs)(`div`,{className:`relative container mx-auto max-w-4xl px-4 md:px-12`,children:[h,(0,I.jsxs)(rA.div,{initial:g,whileInView:_,viewport:v,transition:y,className:`bg-background border-border/60 relative z-10 rounded-3xl border p-8 text-center shadow-2xl shadow-black/5 md:p-16`,children:[b,x,(0,I.jsxs)(`p`,{className:`text-muted-foreground text-2xl leading-snug font-light tracking-tight md:text-4xl`,children:[`But if your goal is to`,` `,(0,I.jsxs)(`span`,{className:`text-primary relative inline-block font-semibold md:whitespace-nowrap`,children:[`produce better content faster`,(0,I.jsx)(`svg`,{className:`text-primary/30 absolute -bottom-2 left-0 hidden h-3 w-full md:block`,viewBox:`0 0 100 10`,preserveAspectRatio:`none`,children:(0,I.jsx)(`path`,{d:`M0 5 Q 50 10 100 5`,stroke:`currentColor`,strokeWidth:`2`,fill:`none`})}),(0,I.jsx)(`span`,{className:`bg-primary/20 absolute -bottom-1 left-0 h-1.5 w-full rounded-full md:hidden`})]}),`, Kopia gives you unmatched leverageâturning transcripts into actionable insights and publish-ready assets.`]})]})]})}),e[21]=S):S=e[21];let C,w,T;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(C={opacity:0,y:20},w={opacity:1,y:0},T={once:!0},e[22]=C,e[23]=w,e[24]=T):(C=e[22],w=e[23],T=e[24]);let E,D;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,I.jsx)(`div`,{className:`absolute inset-0 bg-[url('https://grainy-gradients.vercel.app/noise.svg')] opacity-[0.05] mix-blend-overlay`}),D=(0,I.jsx)(`div`,{className:`bg-primary/30 absolute top-0 right-0 h-[500px] w-[500px] translate-x-1/2 -translate-y-1/2 roun
37ded-full blur-[100px]`}),e[25]=E,e[26]=D):(E=e[25],D=e[26]);let O,ee;e[27]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,I.jsx)(`h2`,{className:`mb-6 text-4xl font-black tracking-tighter md:text-6xl`,children:`Ready to graduate from simple transcription?`}),ee=(0,I.jsx)(`p`,{className:`text-background/70 mb-12 max-w-xl text-xl font-light`,children:`Experience the complete workflow. Get transcription, analysis, and a world-class editor in one unified tool.`}),e[27]=O,e[28]=ee):(O=e[27],ee=e[28]);let te;return e[29]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,I.jsxs)(`div`,{className:`bg-background selection:bg-primary/20 selection:text-primary min-h-screen`,children:[t,u,f,m,S,(0,I.jsx)(`section`,{className:`pb-32`,children:(0,I.jsx)(`div`,{className:`container mx-auto max-w-6xl px-4 md:px-12`,children:(0,I.jsxs)(rA.div,{initial:C,whileInView:w,viewport:T,className:`bg-foreground text-background relative overflow-hidden rounded-[40px] px-8 py-20 md:px-20`,children:[E,D,(0,I.jsxs)(`div`,{className:`relative z-10 max-w-3xl`,children:[O,ee,(0,I.jsxs)(`div`,{className:`flex flex-col items-center gap-6 sm:flex-row`,children:[(0,I.jsx)(Tt,{size:`lg`,className:`bg-background text-foreground hover:bg-background/90 h-16 w-full rounded-full px-10 text-lg font-semibold transition-transform hover:scale-105 active:scale-95 sm:w-auto`,asChild:!0,children:(0,I.jsxs)(j,{to:`/auth/sign-up`,children:[`Start for Free `,(0,I.jsx)(D_,{className:`ml-2 h-5 w-5`})]})}),(0,I.jsx)(`p`,{className:`text-background/50 text-sm font-medium`,children:`No credit card required. 1 hour free.`})]})]})]})})}),(0,I.jsx)(QA,{})]}),e[29]=te):te=e[29],te}function rj(e,t){return(0,I.jsxs)(rA.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:t*.1},className:`group bg-muted/30 border-border/50 relative overflow-hidden rounded-3xl border p-8 md:p-12 ${t===0||t===3?`md:col-span-2`:`md:col-span-1`}`,children:[(0,I.jsx)(`div`,{className:`from-primary/5 absolute inset-0 bg-gradient-to-br to-transparent opacity-0 transition-opacity duration-500 group-hover:opacity-100`}),(0,I.jsx)(`div`,{className:`relative z-10 flex h-full flex-col`,children:(0,I.jsxs)(`div`,{className:`mb-auto pb-12`,children:[(0,I.jsx)(`div`,{className:`bg-background border-border ease-spring mb-8 flex h-12 w-12 items-center justify-center rounded-2xl border shadow-sm transition-transform duration-500 group-hover:scale-110`,children:(0,I.jsx)(e.icon,{className:`text-foreground h-5 w-5`})}),(0,I.jsx)(`h4`,{className:`mb-4 text-2xl font-bold tracking-tight`,children:e.title}),(0,I.jsx)(`p`,{className:`text-muted-foreground text-lg leading-relaxed`,children:e.description})]})})]},e.title)}function ij(e,t){return(0,I.jsxs)(rA.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:`-50px`},transition:{duration:.5,delay:t*.05},className:`hover:bg-background/80 hover:border-border/50 group grid grid-cols-1 gap-4 rounded-2xl border border-transparent px-6 py-6 transition-colors md:grid-cols-12 md:gap-6`,children:[(0,I.jsx)(`div`,{className:`col-span-4 flex items-center text-sm font-semibold md:text-base md:font-medium`,children:e.category}),(0,I.jsxs)(`div`,{className:`col-span-4 flex items-start gap-3 ${e.kopiaWins?`text-foreground`:`text-muted-foreground`}`,children:[e.kopiaWins?(0,I.jsx)(`div`,{className:`bg-primary/10 group-hover:bg-primary/20 mt-0.5 shrink-0 rounded-full p-1 transition-colors`,children:(0,I.jsx)(Lt,{className:`text-primary h-3.5 w-3.5`,strokeWidth:3})}):(0,I.jsx)(`div`,{className:`bg-muted mt-0.5 shrink-0 rounded-full p-1`,children:(0,I.jsx)(Lt,{className:`text-muted-foreground h-3.5 w-3.5`,strokeWidth:3})}),(0,I.jsx)(`span`,{className:`text-sm leading-snug md:text-base`,children:e.kopia})]}),(0,I.jsxs)(`div`,{className:`text-muted-foreground/70 col-span-4 flex items-start gap-3`,children:[e.kopiaWins?(0,I.jsx)(`div`,{className:`mt-0.5 shrink-0`,children:(0,I.jsx)(P_,{className:`h-4 w-4 opacity-50`})}):(0,I.jsx)(`div`,{className:`bg-muted mt-0.5 shrink-0 rounded-full p-1`,children:(0,I.jsx)(Lt,{className:`h-3.5 w-3.5 opacity-50`,strokeWidth:3})}),(0,I.jsx)(`span`,{className:`text-sm leading-snug md:text-base`,children:e.turboscribe})]})]},e.category)}var aj=N(`/resources/api-docs/v1`)({component:P(()=>F(()=>import(`./api-docs.v1-CZFRpxMP.js`),__vite__mapDeps([124,2,21,22,3,4,5,23,24,25,26,27,6,28,7,96,69])),`component`)}),oj=[`pending`,`uploaded`,`queued`,`processing`,`completed`,`failed`],sj=[`audio`,`video`],cj=[`needs-review`,`fully-reviewed`],lj=new Set(oj),uj=new Set(sj),dj=new Set(cj),fj=e=>
37e?.trim()||void 0,pj=e=>{let t=[...new Set(e.filter(e=>lj.has(e)))];return t.sort((e,t)=>oj.indexOf(e)-oj.indexOf(t)),t},mj=e=>{let t=[...new Set(e.filter(e=>uj.has(e)))];return t.sort((e,t)=>sj.indexOf(e)-sj.indexOf(t)),t},hj=e=>{if(!(!e||!dj.has(e)))return e},gj=e=>{let t=fj(e.query),n=pj(e.status??[]),r=mj(e.type??[]),i=hj(e.review);return{offset:e.offset,limit:e.limit,...e.folderId?{folderId:e.folderId}:{},...t?{query:t}:{},...n.length>0?{status:n}:{},...r.length>0?{type:r}:{},...i?{review:i}:{}}},_j=e=>{let t=fj(e.query),n=pj(e.status??[]),r=mj(e.type??[]),i=hj(e.review),a=!!(t||n.length>0||r.length>0||i),o=typeof e.folderId==`string`&&e.folderId.length>0?{scope:`folder`,folderId:e.folderId}:a?{scope:`all`}:{scope:`uncategorized`};return{jobsQueryData:{offset:e.offset,limit:e.limit,...o,...t?{query:t}:{},...n.length>0?{status:n}:{},...r.length>0?{type:r}:{},...i?{review:i}:{}},query:t,status:n,type:r,review:i,hasActiveFilters:a}};function vj(e){let t=(0,br.c)(53),{offset:n,limit:r,folderId:i,query:a,status:o,type:s,review:c,navigateToSearch:l,navigateToUpdatedSearch:u}=e,d;t[0]!==i||t[1]!==r||t[2]!==n||t[3]!==a||t[4]!==c||t[5]!==o||t[6]!==s?(d=_j({offset:n,limit:r,folderId:i,query:a,status:o,type:s,review:c}),t[0]=i,t[1]=r,t[2]=n,t[3]=a,t[4]=c,t[5]=o,t[6]=s,t[7]=d):d=t[7];let{jobsQueryData:f,query:p,status:m,type:h,review:g,hasActiveFilters:_}=d,v=(0,L.useRef)(null),y=typeof i==`string`&&i.length>0,b,x;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>()=>{v.current!==null&&(clearTimeout(v.current),v.current=null)},x=[],t[8]=b,t[9]=x):(b=t[8],x=t[9]),(0,L.useEffect)(b,x);let S;t[10]!==i||t[11]!==y||t[12]!==r||t[13]!==p||t[14]!==g||t[15]!==m||t[16]!==h?(S=(e,t,n)=>gj({offset:e,limit:t===void 0?r:t,query:p,status:m,type:h,review:g,folderId:y?i:void 0,...n===void 0?{}:n}),t[10]=i,t[11]=y,t[12]=r,t[13]=p,t[14]=g,t[15]=m,t[16]=h,t[17]=S):S=t[17];let C=S,w;t[18]!==r||t[19]!==l||t[20]!==C?(w=e=>{l(C(0,r,{status:pj(e)}))},t[18]=r,t[19]=l,t[20]=C,t[21]=w):w=t[21];let T=w,E;t[22]!==r||t[23]!==l||t[24]!==C?(E=e=>{l(C(0,r,{type:mj(e)}))},t[22]=r,t[23]=l,t[24]=C,t[25]=E):E=t[25];let D=E,O;t[26]!==r||t[27]!==l||t[28]!==C?(O=e=>{l(C(0,r,{review:hj(e)}))},t[26]=r,t[27]=l,t[28]=C,t[29]=O):O=t[29];let ee=O,te;t[30]!==r||t[31]!==l||t[32]!==C?(te=()=>{v.current!==null&&(clearTimeout(v.current),v.current=null),l(C(0,r,{query:void 0,status:void 0,type:void 0,review:void 0}))},t[30]=r,t[31]=l,t[32]=C,t[33]=te):te=t[33];let ne=te,re;t[34]===u?re=t[35]:(re=e=>{v.current!==null&&clearTimeout(v.current),v.current=setTimeout(()=>{let t=fj(e);u(e=>t===fj(e.query)?e:gj({offset:0,limit:e.limit??50,folderId:e.folderId,query:t,status:e.status,type:e.type,review:e.review}))},300)},t[34]=u,t[35]=re);let ie=re,ae;t[36]!==l||t[37]!==C?(ae=e=>{l(C(0,e))},t[36]=l,t[37]=C,t[38]=ae):ae=t[38];let k=ae,A;return t[39]!==k||t[40]!==ne||t[41]!==ie||t[42]!==_||t[43]!==f||t[44]!==p||t[45]!==g||t[46]!==ee||t[47]!==T||t[48]!==D||t[49]!==m||t[50]!==C||t[51]!==h?(A={jobsQueryData:f,queryFilter:p,statusFilters:m,typeFilters:h,reviewFilter:g,hasActiveFilters:_,toCurrentViewSearch:C,setStatusFilters:T,setTypeFilters:D,setReviewFilter:ee,clearFilters:ne,handleSearchInputChange:ie,changeItemsPerPage:k},t[39]=k,t[40]=ne,t[41]=ie,t[42]=_,t[43]=f,t[44]=p,t[45]=g,t[46]=ee,t[47]=T,t[48]=D,t[49]=m,t[50]=C,t[51]=h,t[52]=A):A=t[52],A}var yj={pending:`Pending`,uploaded:`Uploaded`,queued:`Queued`,processing:`Processing`,completed:`Completed`,failed:`Failed`},bj={audio:`Audio`,video:`Video`},xj={"needs-review":`Needs review`,"fully-reviewed":`Fully reviewed`},Sj=2,Cj=(e,t,n)=>{if(e.length===0)return(0,I.jsx)(`span`,{className:`text-muted-foreground`,children:t});let r=e.slice(0,Sj),i=e.length-r.length;return(0,I.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1 overflow-hidden`,children:[r.map(e=>(0,I.jsxs)(Ft,{variant:`secondary`,className:`flex max-w-28 shrink-0 items-center gap-0.5 truncate px-1.5 py-0 text-[10px] font-medium`,children:[(0,I.jsx)(`span`,{className:`truncate`,children:e.label}),n&&(0,I.jsx)(`button`,{type:`button`,onPointerDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:t=>{t.preventDefault(),t.stopPropagation(),n(e.value)},className:`text-muted-foreground hover:text-foreground -mr-0.5 rounded-sm p-0.5 transition-colors`,"aria-label":`Remove ${e.label}`,children:(0,I.jsx)(tn,{className:`h-2.5 w-2.5`})})]},e.value)),i>0?(0,I.jsxs)(Ft,{variant:`secondary`,className:`shrink-0 px-1.5 py-0 text-[10px] font-medium`,children:[`+`,i]}):null]})};function wj(e){let t=(0,br.c)(77),{queryFilter:n,statusFilters:r,typeFilters:i,reviewFilter:a,hasActiveFilters:o,onSearchInputChange:s,onStatusFiltersChange:c,onTypeFiltersChange:l,onReviewFilterChange:u,onClearFilters:d}
37=e,[f,p]=(0,L.useState)(n??``),m=r.length>0,h=i.length>0,g=typeof a==`string`,_,v;t[0]===n?(_=t[1],v=t[2]):(_=()=>{p(n??``)},v=[n],t[0]=n,t[1]=_,t[2]=v),(0,L.useEffect)(_,v);let y;t[3]===c?y=t[4]:(y=e=>{c(e.filter(Pj))},t[3]=c,t[4]=y);let b=y,x;t[5]===l?x=t[6]:(x=e=>{l(e.filter(Nj))},t[5]=l,t[6]=x);let S=x,C;t[7]===u?C=t[8]:(C=e=>{if(!e){u(void 0);return}dj.has(e)&&u(e)},t[7]=u,t[8]=C);let w=C,T;t[9]===s?T=t[10]:(T=e=>{let t=e.target.value;p(t),s(t)},t[9]=s,t[10]=T);let E;t[11]!==f||t[12]!==T?(E=(0,I.jsx)(un,{value:f,onChange:T,placeholder:`Search file names...`,className:`w-full sm:max-w-sm`}),t[11]=f,t[12]=T,t[13]=E):E=t[13];let D;t[14]!==m||t[15]!==c?(D=m?(0,I.jsx)(`span`,{role:`button`,tabIndex:-1,className:`text-muted-foreground hover:text-foreground rounded-sm p-0.5 transition-colors`,onPointerDown:Mj,onClick:e=>{e.preventDefault(),e.stopPropagation(),c([])},"aria-label":`Clear status filters`,children:(0,I.jsx)(tn,{className:`h-3 w-3`})}):null,t[14]=m,t[15]=c,t[16]=D):D=t[16];let O;t[17]!==c||t[18]!==r?(O=Cj(r.map(jj),`Status`,e=>{c(r.filter(t=>t!==e))}),t[17]=c,t[18]=r,t[19]=O):O=t[19];let ee;t[20]===O?ee=t[21]:(ee=(0,I.jsx)(Bt,{className:`!line-clamp-none !flex items-center`,children:O}),t[20]=O,t[21]=ee);let te;t[22]!==ee||t[23]!==D?(te=(0,I.jsx)(Vt,{className:`min-w-24`,endAdornment:D,children:ee}),t[22]=ee,t[23]=D,t[24]=te):te=t[24];let ne;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,I.jsx)(Ht,{align:`start`,sideOffset:8,children:oj.map(Aj)}),t[25]=ne):ne=t[25];let re;t[26]!==b||t[27]!==r||t[28]!==te?(re=(0,I.jsxs)(Wt,{multiple:!0,value:r,onValueChange:b,children:[te,ne]}),t[26]=b,t[27]=r,t[28]=te,t[29]=re):re=t[29];let ie;t[30]!==h||t[31]!==l?(ie=h?(0,I.jsx)(`span`,{role:`button`,tabIndex:-1,className:`text-muted-foreground hover:text-foreground rounded-sm p-0.5 transition-colors`,onPointerDown:kj,onClick:e=>{e.preventDefault(),e.stopPropagation(),l([])},"aria-label":`Clear type filters`,children:(0,I.jsx)(tn,{className:`h-3 w-3`})}):null,t[30]=h,t[31]=l,t[32]=ie):ie=t[32];let ae;t[33]!==l||t[34]!==i?(ae=Cj(i.map(Oj),`Type`,e=>{l(i.filter(t=>t!==e))}),t[33]=l,t[34]=i,t[35]=ae):ae=t[35];let k;t[36]===ae?k=t[37]:(k=(0,I.jsx)(Bt,{className:`!line-clamp-none !flex items-center`,children:ae}),t[36]=ae,t[37]=k);let A;t[38]!==ie||t[39]!==k?(A=(0,I.jsx)(Vt,{className:`min-w-20`,endAdornment:ie,children:k}),t[38]=ie,t[39]=k,t[40]=A):A=t[40];let oe;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,I.jsx)(Ht,{align:`start`,sideOffset:8,children:sj.map(Dj)}),t[41]=oe):oe=t[41];let se;t[42]!==S||t[43]!==A||t[44]!==i?(se=(0,I.jsxs)(Wt,{multiple:!0,value:i,onValueChange:S,children:[A,oe]}),t[42]=S,t[43]=A,t[44]=i,t[45]=se):se=t[45];let j=a??null,ce;t[46]!==g||t[47]!==u?(ce=g?(0,I.jsx)(`span`,{role:`button`,tabIndex:-1,className:`text-muted-foreground hover:text-foreground rounded-sm p-0.5 transition-colors`,onPointerDown:Ej,onClick:e=>{e.preventDefault(),e.stopPropagation(),u(void 0)},"aria-label":`Clear review filter`,children:(0,I.jsx)(tn,{className:`h-3 w-3`})}):null,t[46]=g,t[47]=u,t[48]=ce):ce=t[48];let M;if(t[49]!==u||t[50]!==a){let e;t[52]===u?e=t[53]:(e=()=>{u(void 0)},t[52]=u,t[53]=e),M=Cj(a?[{value:a,label:xj[a]}]:[],`Review`,e),t[49]=u,t[50]=a,t[51]=M}else M=t[51];let N;t[54]===M?N=t[55]:(N=(0,I.jsx)(Bt,{className:`!line-clamp-none !flex items-center`,children:M}),t[54]=M,t[55]=N);let le;t[56]!==ce||t[57]!==N?(le=(0,I.jsx)(Vt,{className:`min-w-32`,endAdornment:ce,children:N}),t[56]=ce,t[57]=N,t[58]=le):le=t[58];let ue;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(ue=(0,I.jsx)(Ht,{align:`start`,sideOffset:8,children:cj.map(Tj)}),t[59]=ue):ue=t[59];let P;t[60]!==w||t[61]!==j||t[62]!==le?(P=(0,I.jsxs)(Wt,{value:j,onValueChange:w,children:[le,ue]}),t[60]=w,t[61]=j,t[62]=le,t[63]=P):P=t[63];let de;t[64]!==re||t[65]!==se||t[66]!==P?(de=(0,I.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[re,se,P]}),t[64]=re,t[65]=se,t[66]=P,t[67]=de):de=t[67];let F;t[68]!==de||t[69]!==E?(F=(0,I.jsxs)(`div`,{className:`flex w-full flex-col gap-2 sm:flex-row sm:items-center`,children:[E,de]}),t[68]=de,t[69]=E,t[70]=F):F=t[70];let fe;t[71]!==o||t[72]!==d?(fe=o&&(0,I.jsx)(Tt,{variant:`ghost`,size:`sm`,className:`self-start sm:self-auto`,onClick:d,children:`Clear filters`}),t[71]=o,t[72]=d,t[73]=fe):fe=t[73];let pe;return t[74]!==F||t[75]!==fe?(pe=(0,I.jsxs)(`div`,{className:`mb-5 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between`,children:[F,fe]}),t[74]=F,t[75]=fe,t[76]=pe):pe=t[76],pe}function Tj(e){return(0,I.jsx)(Ut,{value:e,children:xj[e]},e)}function Ej(e){e.preventDefault(),e.stopPropagation()}function Dj(e){return(0,I.jsx)(Ut,{value:e,children:bj[e]},e)}function Oj(e){return{value:e,label:bj[e]}}function kj(e){e.preventDefault(),e.stopPropagation()}function Aj(e){return(0,I.jsx)(Ut,{value:e,children:yj[e]},e)}function jj(e){return{value:e,label:yj[e]}}function Mj(e){e.preventDefault(),e.stopPropagation()}function Nj(e){return sj.includes(e)}function Pj(e){return oj.includes(e)}var Fj=N(`/app/files/`)({validateSearch:ye.object({offset:ye.number().optional(),limit:ye.number().min(1).max(50).optional(),subscribed:ye.string().optional(),folderId:ye.string().optional(),query:ye.string().optional(),status:ye.array(ye.enum(oj)).optional(),type:ye.array(ye.enum(sj)).optional(),review:ye.enum(cj).optional()}),component:P(()=>F(()=>import(`./files.index-BYcP4ZdK.js`),__vite__mapDeps([125,2,37,14,5,15,38,1,3,4,6,7,39,8,40,64,65,41,42,13,12,30,31,62,63,66,22,23,25,27,28,67,44,17,19,52,68,56,55,69,107,51,126])),`component`),loaderDeps:({search:e})=>({offset:e.offset,limit:e.limit,folderId:e.folderId,query:e.query,status:e.status,type:e.type,review:e.review}),loader:async({context:e,deps:t})=>{let{offset:n=0,limit:r=50,folderId:i,query:a,status:o,type:s,review:c}=t,{jobsQueryData:l}=_j({offset:n,limit:r,folderId:i,query:a,status:o,type:s,review:c});await e.queryClient.ensureQueryData({queryKey:[`jobs`,l],queryFn:()=>cn({data:l})})}}),Ij=e=>[`jobs`,e],Lj=(e,t)=>By({queryKey:Ij(e),queryFn:async()=>await t({data:{jobId:e}})});function Rj(e){return[`translations`,e]}var zj=(e,t)=>By({queryKey:Rj(e),queryFn:async()=>await t({data:{jobId:e}})});function Bj(e,t){return[`transcript`,e,t??`original`]}var Vj=({jobId:e,language:t,fn:n})=>By({queryKey:Bj(e,t),queryFn:async()=>await n({data:{jobId:e,language:t}})}
37),Hj=e=>[`credit-balance`,e],Uj=(e,t)=>By({queryKey:Hj(e),queryFn:async()=>await t()}),Wj=e=>[`usage`,e],Gj=(e,t)=>By({queryKey:Wj(e),queryFn:async()=>await t()}),Kj=N(`/app/files/$fileId`)({component:P(()=>F(()=>import(`./files._fileId-DMUHM6Nu.js`),__vite__mapDeps([127,37,14,2,5,15,38,3,4,21,22,23,24,25,26,27,6,28,7,45,30,31,46,16,47,13,48])),`component`),loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(Lj(t.fileId,ln)),head:({loaderData:e})=>({meta:[{title:`Kopia.ai - ${e?.originalFileName}`}]})}),qj=re({method:`POST`}).handler(D(`c85485a6484d568ab6fc93aa8a8ec85d21b4d5bfe7130d562fe31523e66c9deb`)),Jj=re({method:`GET`}).handler(D(`9c2eda456dfd9c0a8a57c30d4d6e5a1687676a7e4466e8daf71fab0a4c70d91a`)),Yj=re({method:`POST`}).handler(D(`b41357ff70c9e4ca4eea6d12f41d8da4e3d7c01a42e5e9ab43e550e0b25dba17`)),Xj=N(`/app/developer/api-keys`)({component:P(()=>F(()=>import(`./api-keys-Dw76YWr6.js`),__vite__mapDeps([128,2,1,3,4,5,6,7,64,8,65,41,42,115,27,13,14,15,12,49,19,126,52,56])),`component`),loader:async({context:e})=>{await e.queryClient.ensureQueryData({queryKey:[`apiKeys`],queryFn:Jj})}}),Zj=N(`/app/files/$fileId/editor`)({validateSearch:ye.object({language:ye.string().optional()}),component:P(()=>F(()=>import(`./files._fileId.editor-C2y8vNsr.js`),__vite__mapDeps([129,2,63,122,1,3,4,5,6,7,39,8,40,64,65,22,23,43,27,28,77,26,112,117,19,42,113,11,57,37,14,15,38,41,66,25,67,115,21,24,29,13,12,48,16,102,49,83,33,56,78,96,130])),`component`),loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData({queryKey:[`jobs`,t.fileId],queryFn:async()=>await ln({data:{jobId:t.fileId}})})}}),Qj=N(`/app/files/$fileId/chat`)({component:P(()=>F(()=>import(`./files._fileId.chat-Dq-uoax4.js`),__vite__mapDeps([131,122,2,1,3,4,5,6,7,39,8,40,64,65,22,23,43,27,28,77,26,112,63,117,19,42,113,11,57])),`component`),loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData({queryKey:[`jobs`,t.fileId],queryFn:async()=>await ln({data:{jobId:t.fileId}})}),wrapInSuspense:!0}),$j=z_.update({id:`/pricing`,path:`/pricing`,getParentRoute:()=>w_}),eM=B_.update({id:`/checkout-success`,path:`/checkout-success`,getParentRoute:()=>w_}),tM=V_.update({id:`/app`,path:`/app`,getParentRoute:()=>w_}),nM=W_.update({id:`/`,path:`/`,getParentRoute:()=>w_}),rM=G_.update({id:`/blog/`,path:`/blog/`,getParentRoute:()=>w_}),iM=K_.update({id:`/usecases/video-creators`,path:`/usecases/video-creators`,getParentRoute:()=>w_}),aM=q_.update({id:`/usecases/research`,path:`/usecases/research`,getParentRoute:()=>w_}),oM=J_.update({id:`/usecases/podcasts`,path:`/usecases/podcasts`,getParentRoute:()=>w_}),sM=Q_.update({id:`/tools/video-to-text`,path:`/tools/video-to-text`,getParentRoute:()=>w_}),cM=tv.update({id:`/tools/mp4-to-text`,path:`/tools/mp4-to-text`,getParentRoute:()=>w_}),lM=av.update({id:`/tools/mp3-to-text`,path:`/tools/mp3-to-text`,getParentRoute:()=>w_}),uM=lv.update({id:`/tools/m4a-to-text`,path:`/tools/m4a-to-text`,getParentRoute:()=>w_}),dM=pv.update({id:`/tools/audio-to-text`,path:`/tools/audio-to-text`,getParentRoute:()=>w_}),fM=mv.update({id:`/share/$token`,path:`/share/$token`,getParentRoute:()=>w_}),pM=hv.update({id:`/resources/terms-of-use`,path:`/resources/terms-of-use`,getParentRoute:()=>w_}),mM=gv.update({id:`/resources/supported-translation-languages`,path:`/resources/supported-translation-languages`,getParentRoute:()=>w_}),hM=_v.update({id:`/resources/supported-transcription-languages`,path:`/resources/supported-transcription-languages`,getParentRoute:()=>w_}),gM=vv.update({id:`/resources/privacy-policy`,path:`/resources/privacy-policy`,getParentRoute:()=>w_}),_M=Tv.update({id:`/free-tools/wav-to-mp3`,path:`/free-tools/wav-to-mp3`,getParentRoute:()=>w_}),vM=Av.update({id:`/free-tools/video-converter`,path:`/free-tools/video-converter`,getParentRoute:()=>w_}),yM=Lv.update({id:`/free-tools/mp4-to-wav`,path:`/free-tools/mp4-to-wav`,getParentRoute:()=>w_}),bM=Wv.update({id:`/free-tools/mp3-to-wav`,path:`/free-tools/mp3-to-wav`,getParentRoute:()=>w_}),xM=Zv.update({id:`/free-tools/mov-to-mp3`,path:`/free-tools/mov-to-mp3`,getParentRoute:()=>w_}),SM=iy.update({id:`/free-tools/m4a-to-wav`,path:`/free-tools/m4a-to-wav`,getParentRoute:()=>w_}),CM=dy.update({id:`/free-tools/m4a-to-mp3`,path:`/free-tools/m4a-to-mp3`,getParentRoute:()=>w_}),wM=fy.update({id:`/blog/$slug`,path:`/blog/$slug`,getParentRoute:()=>w_}),TM=py.update({id:`/auth/sign-up`,path:`/auth/sign-up`,getParentRoute:()=>w_}),EM=my.update({id:`/auth/sign-in`,path:`/auth/sign-in`,getParentRoute:()=>w_}),DM=hy.update({id:`/auth/reset-password`,path:`/auth/reset-password`,getParentRoute:()=>w_}),OM=vy.update({id:`/auth/oauth-consent`,path:`/auth/oauth-consent`,getParentRoute:()=>w_}),kM=yy.update({id:`/dashboard`,path:`/dashboard`,getParentRoute:()=>tM}),AM=by.update({id:`/chat`,path:`/chat`,getParentRoute:()=>tM}),jM=xy.update({id:`/account`,path:`/account`,getParentRoute:()=>tM}),MM=$A.update({id:`/resources/comparisons/vs-turboscribe`,path:`/resources/comparisons/vs-turboscribe`,getParentRoute:()=>w_}),NM=aj.update({id:`/resources/api-docs/v1`,path:`/resources/api-docs/v1`,getParentRoute:()=>w_}),PM=Fj.update({id:`/files/`,path:`/files/`,getParentRoute:()=>tM}),FM=Kj.update({id:`/files/$fileId`,path:`/files/$fileId`,getParentRoute:()=>tM}),IM=Xj.update({id:`/developer/api-keys`,path:`/developer/api-keys`,getParentRoute:()=>tM}),LM=Zj.update({id:`/editor`,path:`/editor`,getParentRoute:()=>FM}),RM={AppFilesFileIdChatRoute:Qj.update({id:`/chat`,path:`/chat`,getParentRoute:()=>FM}),AppFilesFileIdEditorRoute:LM},zM={AppAccountRoute:jM,AppChatRoute:AM,AppDashboardRoute:kM,AppDeveloperApiKeysRoute:IM,AppFilesFileIdRoute:FM._addFileChildren(RM),AppFilesIndexRoute:PM},BM={IndexRoute:nM,AppRoute:tM._addFileChildren(zM),CheckoutSuccessRoute:eM,PricingRoute:$j,AuthOauthConsentRoute:OM,AuthResetPasswordRoute:DM,AuthSignInRoute:EM,AuthSignUpRoute:TM,BlogSlugRoute:wM,FreeToolsM4aToMp3Route:CM,FreeToolsM4aToWavRoute:SM,FreeToolsMovToMp3Route:xM,FreeToolsMp3ToWavRoute:bM,FreeToolsMp4ToWavRoute:yM,FreeToolsVideoConverterRoute:vM,FreeToolsWavToMp3Route:_M,ResourcesPrivacyPolicyRoute:gM,ResourcesSupportedTranscriptionLanguagesRoute:hM,ResourcesSupportedTranslationLanguagesRoute:mM,ResourcesTermsOfUseRoute:pM,ShareTokenRoute:fM,ToolsAudioToTextRoute:dM,ToolsM4aToTextRoute:uM,ToolsMp3ToTextRoute:lM,ToolsMp4ToTextRoute:cM,ToolsVideoToTextRoute:sM,UsecasesPodcastsRoute:oM,UsecasesResearchRoute:aM,UsecasesVideoCreatorsRoute:iM,BlogIndexRoute:rM,ResourcesApiDocsV1Route:NM,ResourcesComparisonsVsTurboscribeRoute:MM},VM=w_._addFileChildren(BM);
37function HM(e,t,n){let r=e.options;if(e.options={...e.options,context:{...r.context,queryClient:t},Wrap:({children:e})=>(0,I.jsx)(n?.WrapProvider||L.Fragment,{children:(0,I.jsx)(Me,{client:t,children:(0,I.jsx)(r.Wrap||L.Fragment,{children:e})})})},e.isServer){let n=UM();e.options.dehydrate=async()=>{let i=await r.dehydrate?.call(r),a=Oy(t);return 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(Oy(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),ky(t,e.dehydratedQueryClient);let n=e.queryStream.getReader();n.read().then(async function e({done:r,value:i}){if(ky(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)=>C(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)=>C(t)?(t.options._fromLocation=e.state.location,e.navigate(e.resolveRedirect(t).options)):r.onError?.call(r,t,n)}}return e}function UM(){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)}}function WM(e){let t=(0,br.c)(25),{error:n}=e,r=T(),i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={strict:!1,select:KM},t[0]=i):i=t[0];let a=ce(i),o=a_(),s,c;t[1]!==n||t[2]!==o?(s=()=>{o?.captureException(n)},c=[n,o],t[1]=n,t[2]=o,t[3]=s,t[4]=c):(s=t[3],c=t[4]),(0,L.useEffect)(s,c);let l=n instanceof Error?n.message:`An unexpected error occurred`,u;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,I.jsx)(k_,{className:`text-destructive/45 size-36`,strokeWidth:1.5}),t[5]=u):u=t[5];let d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,I.jsx)(`h1`,{className:`text-foreground text-2xl font-bold tracking-tight`,children:`Something went wrong`}),t[6]=d):d=t[6];let f;t[7]===l?f=t[8]:(f=(0,I.jsxs)(`div`,{className:`mt-8 flex flex-col items-center gap-3`,children:[d,(0,I.jsx)(`p`,{className:`text-muted-foreground max-w-sm text-balance`,children:l})]}),t[7]=l,t[8]=f);let p;t[9]===n?p=t[10]:(p=!1,t[9]=n,t[10]=p);let m;t[11]===r?m=t[12]:(m=()=>{r.invalidate()},t[11]=r,t[12]=m);let h;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,I.jsx)(F_,{className:`size-4`}),t[13]=h):h=t[13];let g;t[14]===m?g=t[15]:(g=(0,I.jsxs)(Tt,{size:`lg`,onClick:m,children:[h,`Try Again`]}),t[14]=m,t[15]=g);let _;t[16]===a?_=t[17]:(_=a?(0,I.jsx)(Tt,{variant:`outline`,size:`lg`,asChild:!0,children:(0,I.jsxs)(j,{to:`/`,children:[(0,I.jsx)(j_,{className:`size-4`}),`Home`]})}):(0,I.jsxs)(Tt,{variant:`outline`,size:`lg`,onClick:GM,children:[(0,I.jsx)(E_,{className:`size-4`}),`Go Back`]}),t[16]=a,t[17]=_);let v;t[18]!==g||t[19]!==_?(v=(0,I.jsxs)(`div`,{className:`mt-8 flex items-center gap-3`,children:[g,_]}),t[18]=g,t[19]=_,t[20]=v):v=t[20];let y;return t[21]!==v||t[22]!==f||t[23]!==p?(y=(0,I.jsx)(`div`,{className:`relative flex min-h-screen w-full items-center justify-center overflow-hidden p-4`,children:(0,I.jsxs)(`div`,{className:`relative z-10 flex max-w-lg flex-col items-center text-center`,children:[u,f,p,v]})}),t[21]=v,t[22]=f,t[23]=p,t[24]=y):y=t[24],y}function GM(){window.history.back()}function KM(e){return e.id===ie}function qM(e){let t=(0,br.c)(7),{children:n}=e,r;t[0]===n?r=t[1]:(r=n||(0,I.jsx)(`p`,{children:`The page you are looking for does not exist.`}),t[0]=n,t[1]=r);let i;t[2]===r?i=t[3]:(i=(0,I.jsx)(`div`,{className:`text-gray-600 dark:text-gray-400`,children:r}),t[2]=r,t[3]=i);let a;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,I.jsxs)(`p`,{className:`flex flex-wrap items-center gap-2`,children:[(0,I.jsx)(`button`,{onClick:JM,className:`rounded bg-emerald-500 px-2 py-1 text-sm font-black text-white uppercase`,children:`Go back`}),(0,I.jsx)(j,{to:`/`,className:`rounded bg-cyan-600 px-2 py-1 text-sm font-black text-white uppercase`,children:`Start Over`})]}),t[4]=a):a=t[4];let o;return t[5]===i?o=t[6]:(o=(0,I.jsxs)(`div`,{className:`space-y-2 p-2`,children:[i,a]}),t[5]=i,t[6]=o),o}function JM(){return window.history.back()}function YM(){let e=new Ry;return HM(wn({routeTree:VM,context:{queryClient:e},defaultPreload:`intent`,scrollRestoration:!0,defaultErrorComponent:WM,defaultNotFoundComponent:()=>(0,I.jsx)(qM,{})}),e)}async function XM(){let e=await YM(),t=[];return window.__TSS_START_OPTIONS__={serializationAdapters:t}
37,t.push(In),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.state.matches.length||await Fn(e),e}async function ZM(){let e=await XM();return window.$_TSR?.h(),e}var QM;function $M(){return QM||=ZM(),(0,I.jsx)(vn,{promise:QM,children:e=>(0,I.jsx)(Dn,{router:e})})}var eN=L.createContext(void 0);function tN(e){let t=L.useContext(eN);if(t===void 0&&!e)throw Error(nt(72));return t}var nN={...Nt,disabled:pt(e=>e.disabled),instantType:pt(e=>e.instantType),isInstantPhase:pt(e=>e.isInstantPhase),trackCursorAxis:pt(e=>e.trackCursorAxis),disableHoverablePopup:pt(e=>e.disableHoverablePopup),lastOpenChangeReason:pt(e=>e.openChangeReason),closeDelay:pt(e=>e.closeDelay),hasViewport:pt(e=>e.hasViewport)},rN=class e extends dt{constructor(e){super({...iN(),...e},{popupRef:L.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new _t},nN)}setOpen=(e,t)=>{let n=t.reason,r=n===gt,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);
37if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0);let o=t.trigger?.id??null;(o||e)&&(r.activeTriggerId=o,r.activeTriggerElement=t.trigger??null),this.update(r)};r?Un.flushSync(o):o()};static useStore(t,n){let r=rt(()=>new e(n)).current,i=t??r,a=ht({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=a,i}};function iN(){return{...Dt(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeDelay:0,hasViewport:!1}}function aN(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=rN.useStore(l?.store,{open:r??n,activeTriggerId:u===void 0?d:u});p.useControlledProp(`open`,r,n),p.useControlledProp(`activeTriggerId`,u,d),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),tt(()=>{m&&t&&p.setOpen(!1,lt(ut))},[m,t,p]),p.useSyncedValue(`disabled`,t),yt(p);let{forceUnmount:v,transitionStatus:y}=jt(h,p),b=p.useState(`isInstantPhase`),x=p.useState(`instantType`),S=p.useState(`lastOpenChangeReason`),C=L.useRef(null);tt(()=>{y===`ending`&&S===`none`||y!==`ending`&&b?(x!==`delay`&&(C.current=x),p.set(`instantType`,`delay`)):C.current!==null&&(p.set(`instantType`,C.current),C.current=null)},[y,b,S,x,p]),tt(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let w=L.useCallback(()=>{p.setOpen(!1,oN(p,Qe))},[p]);L.useImperativeHandle(o,()=>({unmount:v,close:w}),[v,w]);let T=p.useState(`floatingRootContext`),{getReferenceProps:E,getFloatingProps:D,getTriggerProps:O}=Mt([Kt(T,{enabled:!t}),Pt(T,{enabled:!t,referencePress:!0}),qA(T,{enabled:!t&&a!==`none`,axis:a===`none`?void 0:a})]),ee=L.useMemo(()=>E(),[E]),te=L.useMemo(()=>O(),[O]),ne=L.useMemo(()=>D(),[D]);return p.useSyncedValues({activeTriggerProps:ee,inactiveTriggerProps:te,popupProps:ne}),(0,I.jsx)(eN.Provider,{value:p,children:typeof f==`function`?f({payload:_}):f})}function oN(e,t){let n=lt(t);return n.preventUnmountOnClose=()=>{e.set(`preventUnmountingOnClose`,!0)},n}var sN=L.createContext(void 0);function cN(){return L.useContext(sN)}var lN=L.forwardRef(function(e,t){let{className:n,render:r,handle:i,payload:a,disabled:o,delay:s,closeDelay:c,id:l,...u}=e,d=tN(!0),f=i?.store??d;if(!f)throw Error(nt(82));let p=at(l),m=f.useState(`isTriggerActive`,p),h=f.useState(`isOpenedByTrigger`,p),g=f.useState(`floatingRootContext`),_=L.useRef(null),v=s??600,y=c??0,{registerTrigger:b,isMountedByThisTrigger:x}=Ot(p,_,f,{payload:a,closeDelay:y}),S=cN(),{delayRef:C,isInstantPhase:w,hasProvider:T}=WA(g,{open:h});f.useSyncedValue(`isInstantPhase`,w);let E=f.useState(`disabled`),D=o??E,O=f.useState(`trackCursorAxis`),ee=f.useState(`disableHoverablePopup`),te=Yt(g,{enabled:!D,mouseOnly:!0,move:!1,handleClose:!ee&&O!==`both`?Gt():null,restMs(){let e=S?.delay,t=typeof C.current==`object`?C.current.open:void 0,n=v;return T&&(n=t===0?0:s??e??v),n},delay(){let e=typeof C.current==`object`?C.current.close:void 0,t=y;return c==null&&T&&(t=e),{close:t}},triggerElementRef:_,isActiveTrigger:m}),ne=L.useMemo(()=>({open:h}),[h]),re=f.useState(`triggerProps`,x);return xt(`button`,e,{state:ne,ref:[t,b,_],props:[te,re,{id:p},u],stateAttributesMapping:kt})}),uN=L.createContext(void 0);function dN(){let e=L.useContext(uN);if(e===void 0)throw Error(nt(70));return e}var fN=L.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,...o}=e,{portalNode:s,portalSubtree:c}=st({container:r,ref:t,componentProps:e,elementProps:o});return!c&&!s?null:(0,I.jsxs)(L.Fragment,{children:[c,s&&Un.createPortal(n,s)]})}),pN=L.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return tN().useState(`mounted`)||n?(0,I.jsx)(uN.Provider,{value:n,children:(0,I.jsx)(fN,{ref:t,...r})}):null}),mN=L.createContext(void 0);function hN(){let e=L.useContext(mN);if(e===void 0)throw Error(nt(71));return e}var gN=L.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=mt,...g}=e,_=tN(),v=dN(),y=_.useState(`open`),b=_.useState(`mounted`),x=_.useState(`trackCursorAxis`),S=_.useState(`disableHoverablePopup`),C=_.useState(`floatingRootContext`),w=_.useState(`instantType`),T=_.useState(`transitionStatus`),E=zt({anchor:i,positionMethod:a,floatingRootContext:C,mounted:b,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:v,collisionAvoidance:h,adaptiveOrigin:_.useState(`hasViewport`)?It:void 0}),D=L.useMemo(()=>{let e={};return(!y||x===`both`||S)&&(e.pointerEvents=`none`),{role:`presentation`,hidden:!b,style:{...E.positionerStyles,...e}}},[y,x,S,b,E.positionerStyles]),O=L.useMemo(()=>({open:y,side:E.side,align:E.align,anchorHidden:E.anchorHidden,instant:x===`none`?w:`tracking-cursor`}),[y,E.side,E.align,E.anchorHidden,x,w]),ee=L.useMemo(()=>({...O,arrowRef:E.arrowRef,arrowStyles:E.arrowStyles,arrowUncentered:E.arrowUncentered}),[O,E.arrowRef,E.arrowStyles,E.arrowUncentered]),te=xt(`div`,e,{state:O,props:[D,Rt(T),g],ref:[t,_.useStateSetter(`positionerElement`)],stateAttributesMapping:bt});return(0,I.jsx)(mN.Provider,{value:ee,children:te})}),_N={...bt,...St},vN=L.forwardRef(function(e,t){let{className:n,render:r,...i}=e,a=tN(),{side:o,align:s}
37=hN(),c=a.useState(`open`),l=a.useState(`instantType`),u=a.useState(`transitionStatus`),d=a.useState(`popupProps`),f=a.useState(`floatingRootContext`);wt({open:c,ref:a.context.popupRef,onComplete(){c&&a.context.onOpenChangeComplete?.(!0)}});let p=a.useState(`disabled`),m=a.useState(`closeDelay`);return $t(f,{enabled:!p,closeDelay:m}),xt(`div`,e,{state:L.useMemo(()=>({open:c,side:o,align:s,instant:l,transitionStatus:u}),[c,o,s,l,u]),ref:[t,a.context.popupRef,a.useStateSetter(`popupElement`)],props:[d,Rt(u),i],stateAttributesMapping:_N})}),yN=L.forwardRef(function(e,t){let{className:n,render:r,...i}=e,a=tN().useState(`instantType`),{open:o,arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=hN();return xt(`div`,e,{state:L.useMemo(()=>({open:o,side:c,align:l,uncentered:u,instant:a}),[o,c,l,u,a]),ref:[t,s],props:[{style:d,"aria-hidden":!0},i],stateAttributesMapping:bt})}),bN=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=L.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=L.useMemo(()=>({open:t,close:n}),[t,n]);return(0,I.jsx)(sN.Provider,{value:i,children:(0,I.jsx)(UA,{delay:a,timeoutMs:r,children:e.children})})};function xN(e){let t=(0,br.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,I.jsx)(bN,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function SN(e){let t=(0,br.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,I.jsx)(aN,{"data-slot":`tooltip`,...n}),t[2]=n,t[3]=r),r}function CN(e){let t=(0,br.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,I.jsx)(lN,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function wN(e){let t=(0,br.c)(37),n,r,i,a,o,s,c,l,u,d,f,p,m,h,g;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8],u=t[9],d=t[10],f=t[11],p=t[12],m=t[13],h=t[14],g=t[15]):({className:a,side:p,sideOffset:m,align:h,alignOffset:g,anchor:n,disableAnchorTracking:l,collisionAvoidance:o,collisionBoundary:s,collisionPadding:c,sticky:f,positionMethod:u,arrowPadding:r,children:i,...d}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l,t[9]=u,t[10]=d,t[11]=f,t[12]=p,t[13]=m,t[14]=h,t[15]=g);let _=p===void 0?`top`:p,v=m===void 0?4:m,y=h===void 0?`center`:h,b=g===void 0?0:g,x;t[16]===a?x=t[17]:(x=Xe(`data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin)`,a),t[16]=a,t[17]=x);let S;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,I.jsx)(yN,{className:`bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`}),t[18]=S):S=t[18];let C;t[19]!==i||t[20]!==d||t[21]!==x?(C=(0,I.jsxs)(vN,{"data-slot":`tooltip-content`,className:x,...d,children:[i,S]}),t[19]=i,t[20]=d,t[21]=x,t[22]=C):C=t[22];let w;return t[23]!==y||t[24]!==b||t[25]!==n||t[26]!==r||t[27]!==o||t[28]!==s||t[29]!==c||t[30]!==l||t[31]!==u||t[32]!==_||t[33]!==v||t[34]!==f||t[35]!==C?(w=(0,I.jsx)(pN,{children:(0,I.jsx)(gN,{align:y,alignOffset:b,side:_,sideOffset:v,anchor:n,disableAnchorTracking:l,collisionAvoidance:o,collisionBoundary:s,collisionPadding:c,sticky:f,positionMethod:u,arrowPadding:r,className:`isolate z-50`,children:C})}),t[23]=y,t[24]=b,t[25]=n,t[26]=r,t[27]=o,t[28]=s,t[29]=c,t[30]=l,t[31]=u,t[32]=_,t[33]=v,t[34]=f,t[35]=C,t[36]=w):w=t[36],w}{let e=e_.init(`phc_wg7PikpPUf4MibAOQNqknpK1mHulbDwSSW2doWeFihh`,{api_host:`/internal-api/p-relay`,defaults:`2026-01-30`});(0,xl.hydrateRoot)(document,(0,I.jsx)(r_,{client:e,children:(0,I.jsx)(xN,{children:(0,I.jsx)($M,{})})}))}export{D_ as $,ES as A,uv as B,QA as C,rA as D,IA as E,vy as F,V_ as G,nv as H,hy as I,I_ as J,B_ as K,py as L,zy as M,Py as N,Uw as O,xy as P,O_ as Q,fy as R,vj as S,zA as T,Y_ as U,ov as V,W_ as W,N_ as X,F_ as Y,k_ as Z,zj as _,Qj as a,Cn as at,wj as b,Yj as c,Uj as d,d_ as et,Ij as f,Rj as g,Vj as h,CN as i,ir as it,Fb as j,Bw as k,Jj as l,Bj as m,wN as n,a_ as nt,Zj as o,Lj as p,L_ as q,xN as r,bl as rt,qj as s,SN as t,f_ as tt,Kj as u,Gj as v,JA as w,gj as x,Fj as y,mv as z}; 38//# sourceMappingURL=main-B1T06S4D.js.map 39//# chunkId=019e25c4-8df3-7102-90e1-46c93649ef3a
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.