PageSourceSearch

https://rackety.tv/_next/static/chunks/pages/_app-a28316f5fd693554.js

js rackety.tv collected 2026-10-09 00:00:44 UTC 699,038 bytes, 11 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{11:(e,t,r)=>{"use strict";r.d(t,{m_:()=>eh,ZI:()=>ep,Bc:()=>ed,k$:()=>ef});var n=r(15383),i=r(14343),s=r(73897),o=r(73858),a=r(19983),l=r(2978),u=r(81316);let c=i.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new s.E,currentIdRef:{current:null},currentContextRef:{current:null}});function d(e){let{children:t,delay:r,timeoutMs:l=0}=e,u=i.useRef(r),d=i.useRef(r),h=i.useRef(null),f=i.useRef(null),p=(0,s.Z)();return(0,o.g)(()=>{if(d.current=r,!h.current){u.current=r;return}u.current={open:(0,a.uf)(u.current,"open"),close:(0,a.uf)(r,"close")}},[r,h,u,d]),(0,n.jsx)(c.Provider,{value:i.useMemo(()=>({hasProvider:!0,delayRef:u,initialDelayRef:d,currentIdRef:h,timeoutMs:l,currentContextRef:f,timeout:p}),[l,p]),children:t})}let h=i.createContext(void 0),f=function(e){let{delay:t,closeDelay:r,timeout:s=400}=e,o=i.useMemo(()=>({open:t,close:r}),[t,r]);return(0,n.jsx)(h.Provider,{value:t,children:(0,n.jsx)(d,{delay:o,timeoutMs:s,children:e.children})})};var p=r(29385),g=r(49940),v=r(7277);let m=i.createContext(void 0);function y(e){let t=i.useContext(m);if(void 0===t&&!e)throw Error((0,v.A)(72));return t}var b=r(3566),_=r(45848),w=r(41790),x=r(10352),E=r(3167),S=r(68218);function R(e){return null!=e&&null!=e.clientX}var k=r(290),T=r(32830),A=r(81532),C=r(91945),P=r(45450);let O={...C.o,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class I extends A.H{constructor(e,t,r){var n;let s=new P.Z;super(function(e,t,r,n=!1){return{...(0,C.r)(t,r,n),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}(e,s,t,r),(n=s,{popupRef:i.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:n}),O)}setOpen=(e,t)=>{(0,k.DU)(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,(0,l.d)(u.Ui,e))}}let M=(0,p.G1)(function(e){let{disabled:t=!1,defaultOpen:r=!1,open:s,disableHoverablePopup:a=!1,trackCursorAxis:c="none",actionsRef:d,onOpenChange:h,onOpenChangeComplete:f,handle:p,triggerId:g,defaultTriggerId:v=null,children:y}=e,b=(0,k.xp)((e,t)=>new I({open:r,openProp:s,activeTriggerId:v,triggerIdProp:g},e,t));b.useControlledProp("openProp",s),b.useControlledProp("triggerIdProp",g),b.useContextCallback("onOpenChange",h),b.useContextCallback("onOpenChangeComplete",f);let _=b.useState("open"),w=!t&&_,x=b.useState("activeTriggerId"),E=b.useState("mounted"),S=b.useState("payload");b.useSyncedValues({trackCursorAxis:c,disableHoverablePopup:a,disabled:t}),(0,k.tr)(b,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:R,transitionStatus:T}=(0,k.l$)(w,b),A=b.useState("isInstantPhase"),C=b.useState("instantType"),P=b.useState("lastOpenChangeReason"),O=i.useRef(null);(0,o.g)(()=>{_&&t&&b.setOpen(!1,(0,l.d)(u.r9))},[_,t,b]),(0,o.g)(()=>{"ending"===T&&P===u.dv||"ending"!==T&&A?("delay"!==C&&(O.current=C),b.set("instantType","delay")):null!==O.current&&(b.set("instantType",O.current),O.current=null)},[T,A,P,C,b]),(0,o.g)(()=>{w&&null==x&&b.set("payload",void 0)},[b,x,w]),i.useImperativeHandle(d,()=>({unmount:R,close:()=>b.setOpen(!1,(0,l.d)(u.zJ))}),[R,b]);let M=w||E||!t&&"none"!==c;return(0,n.jsxs)(m.Provider,{value:b,children:[p&&(0,n.jsx)(k.Ae,{handle:p,store:b}),M&&(0,n.jsx)(L,{store:b,disabled:t,trackCursorAxis:c}),"function"==typeof y?y({payload:S}):y]})});function L({store:e,disabled:t,trackCursorAxis:r}){let n=e.useState("floatingRootContext"),s=(0,b.s)(n,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),o=function(e,t={}){let{enabled:r=!0,axis:n="both"}=t,s="rootStore"in e?e.rootStore:e,o=s.useState("open"),a=s.useState("floatingElement"),l=s.useState("domReferenceElement"),u=s.context.dataRef,c=i.useRef(!1),d=i.useRef(null),[h,f]=i.useState(),[p,g]=i.useState([]),v=(0,w.K)(e=>{s.set("positionReference",e)}),m=(0,w.K)((e,t,r)=>{if(!c.current&&(!u.current.openEvent||R(u.current.openEvent))){var i,o;let a,c,d;s.set("positionReference",(i=r??l,o={x:e,y:t,axis:n,dataRef:u,pointerType:h},a=null,c=null,d=!1,{contextElement:i||void 0,getBoundingClientRect(){let e=i?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},t="x"===o.axis||"both"===o.axis,r="y"===o.axis||"both"===o.axis,n=["mouseenter","mousemove"].includes(o.dataRef.current.openEvent?.type||"")&&"touch"!==o.pointerType,s=e.width,l=e.height,u=e.x,h=e.y;return null==a&&o.x&&t&&(a=e.x-o.x),null==c&&o.y&&r&&(c=e.y-o.y),u-=a||0,h-=c||0,s=0,l=0,!d||n?(s="y"===o.axis?e.width:0,l="x"===o.axis?e.height:0,u=t&&null!=o.x?o.x:u,h=r&&null!=o.y?o.y:h):d&&!n&&(l="x"===o.axis?e.height:l,s="y"===o.axis?e.width:s),d=!0,{width:s,height:l,x:u,y:h,top:h,right:u+s,bottom:h+l,left:u}}}))}}),y=(0,w.K)(e=>{o?d.current||(m(e.clientX,e.clientY,e.currentTarget),g([])):m(e.clientX,e.clientY,e.currentTarget)}),b=(0,S.Go)(h)?a:o;i.useEffect(()=>{if(!r)return void v(l);
1if(!b)return;function e(){d.current?.(),d.current=null}let t=(0,x.zk)(a);return!u.current.openEvent||R(u.current.openEvent)?d.current=(0,_.q)(t,"mousemove",function(t){let r=(0,E.EW)(t);(0,E.gR)(a,r)?e():m(t.clientX,t.clientY)}):v(l),e},[b,r,a,u,l,s,m,v,p]),i.useEffect(()=>()=>{s.set("positionReference",null)},[s]),i.useEffect(()=>{r&&!a&&(c.current=!1)},[r,a]),i.useEffect(()=>{!r&&o&&(c.current=!0)},[r,o]);let k=i.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:y,onMouseEnter:y}},[y]);return i.useMemo(()=>r?{reference:k,trigger:k}:{},[r,k])}(n,{enabled:!t&&"none"!==r,axis:"none"===r?void 0:r}),a=i.useMemo(()=>(0,T.v6)(o.reference,s.reference),[o.reference,s.reference]);return(0,k.i6)(e,{activeTriggerProps:a,inactiveTriggerProps:a,popupProps:s.floating??g.t0}),null}var N=r(97120),j=r(84949),B=r(13634),F=r(76284),D=r(50566),H=r(3633),U=r(66071),$=r(15174),z=r(99482),q=r(18303);let V="data-base-ui-tooltip-trigger";function G(e){if("composedPath"in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let r=t[e];if((0,x.vq)(r))return r}}let t=e.target;return(0,x.vq)(t)?t:null}let W=(0,p.nk)(function(e,t){let{render:r,className:n,style:d,handle:f,payload:p,disabled:g,delay:m,closeOnClick:b=!0,closeDelay:_,id:w,...R}=e,T=y(!0),A=(0,F.f)(f)??T;if(!A)throw Error((0,v.A)(82));let C=(0,D.e)(w),P=A.useState("isTriggerActive",C),O=A.useState("isOpenedByTrigger",C),I=A.useState("floatingRootContext"),M=i.useRef(null),L=_??0,{registerTrigger:W,isMountedByThisTrigger:K}=(0,k.L_)(C,M,A,{payload:p,closeOnClick:b,closeDelay:L}),Y=i.useContext(h),{activeIdRef:X,delayRef:J,isInstantPhase:Z,hasProvider:Q}=function(e,t={open:!1}){let{open:r}=t,n="rootStore"in e?e.rootStore:e,s=n.useState("floatingId"),{currentIdRef:d,delayRef:h,timeoutMs:f,initialDelayRef:p,currentContextRef:g,hasProvider:v,timeout:m}=i.useContext(c),[y,b]=i.useState(!1),_=i.useRef(r);return(0,o.g)(()=>{_.current=r},[r]),(0,o.g)(()=>{function e(){g.current?.setIsInstantPhase(!1),d.current=null,g.current=null,h.current=p.current,m.clear()}if(d.current&&!r&&d.current===s){if(b(!1),f)return m.start(f,()=>
1{n.select("open")||d.current&&d.current!==s||e()}),()=>{(_.current||d.current!==s)&&m.clear()};e()}},[r,s,d,h,f,p,g,m,n]),(0,o.g)(()=>{if(!r)return;let e=g.current,t=d.current;m.clear(),g.current={onOpenChange:n.setOpen,setIsInstantPhase:b},d.current=s,h.current={open:0,close:(0,a.uf)(p.current,"close")},null!==t&&t!==s?(b(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,(0,l.d)(u.dv))):(b(!1),e?.setIsInstantPhase(!1))},[r,s,n,d,h,p,g,m]),(0,o.g)(()=>()=>{d.current===s&&(g.current=null,_.current)&&(d.current=null,h.current=p.current,m.clear())},[g,d,h,s,p,m]),i.useMemo(()=>({activeIdRef:d,hasProvider:v,delayRef:h,isInstantPhase:y}),[d,v,h,y])}(I,{open:O}),ee=(0,z.uu)(I);A.useSyncedValue("isInstantPhase",Z);let et=A.useState("disabled"),er=g??et,en=(0,N.u)(er),ei=A.useState("trackCursorAxis"),es=A.useState("disableHoverablePopup"),eo=i.useRef(!1),ea=(0,s.Z)(),el=i.useRef(void 0);function eu(){return Q&&null!=X.current?0:m??Y??600}function ec(e){let t=M.current;if(!t||!e)return!1;let r=function(e){let t=e;for(;t;){let e=t.closest(`[${V}]`);if(e)return e;let r=t.getRootNode();t="host"in r&&(0,x.vq)(r.host)?r.host:null}return null}(e);return null!==r&&r!==t&&(0,E.gR)(t,r)}let ed=(0,H.j)(I,{enabled:!er,mouseOnly:!0,move:!1,handleClose:es||"both"===ei?null:(0,U.i)(),restMs:eu,delay:()=>null==_&&Q?{close:(0,a.uf)(J.current,"close")}:{close:L},triggerElementRef:M,isActiveTrigger:P,isClosing:()=>"ending"===A.select("transitionStatus"),shouldOpen:()=>!eo.current}),eh=(0,$.i)(I,{enabled:!er}).reference,ef=A.useState("triggerProps",K),ep=K||"none"!==ei;return(0,B.o)("button",e,{state:{open:O},ref:[t,W,M],props:[ed,eh,ep?ef:void 0,{onMouseOver(e){(e=>{let t=eo.current,r=G(e),n=function(e){let t=ec(e);return eo.current=t,t&&(ee.openChangeTimeout.clear(),ee.restTimeout.clear(),ee.restTimeoutPending=!1,ea.clear()),t}(r),i=M.current,s=i&&r&&(0,E.gR)(i,r);if(n&&A.select("open")&&A.select("lastOpenChangeReason")===u.N7)return A.setOpen(!1,(0,l.d)(u.N7,e));if(t&&!n&&s&&!en.current&&!A.select("open")&&i&&(0,S.Go)(el.current)){let t=()=>{eo.current||en.current||A.select("open")||A.setOpen(!0,(0,l.d)(u.N7,e,i))},r=eu();0===r?(ea.clear(),t()):ea.start(r,t)}})(e.nativeEvent)},onFocus(e){ec(G(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){eo.current=!1,ea.clear(),el.current=void 0},onPointerEnter(e){el.current=e.pointerType},onPointerDown(e){el.current=e.pointerType,A.set("closeOnClick",b),b&&!A.select("open")&&A.cancelPendingOpen(e.nativeEvent)},onClick(e){b&&!A.select("open")&&A.cancelPendingOpen(e.nativeEvent)},id:C,[q.d]:er?"":void 0,[V]:er?void 0:""},R],stateAttributesMapping:j.qV})}),K=i.createContext(void 0);var Y=r(33475),X=r(97571);let J=i.forwardRef(function(e,t){let{children:r,container:s,className:o,render:a,style:l,...u}=e,{node:c,subtree:d}=(0,X.CK)({container:s,ref:t,componentProps:e,elementProps:u});return d||c?(0,n.jsxs)(i.Fragment,{children:[d,c&&Y.createPortal(r,c)]}):null}),Z=i.forwardRef(function(e,t){let{keepMounted:r=!1,...i}=e;return y().useState("mounted")||r?(0,n.jsx)(K.Provider,{value:r,children:(0,n.jsx)(J,{ref:t,...i})}):null}),Q=i.createContext(void 0);function ee(){let e=i.useContext(Q);if(void 0===e)throw Error((0,v.A)(71));return e}var et=r(15451),er=r(1090),en=r(53641);let ei=i.forwardRef(function(e,t){let{render:r,className:s,anchor:o,positionMethod:a="absolute",side:l="top",align:u="center",sideOffset:c=0,alignOffset:d=0,collisionBoundary:h="clipping-ancestors",collisionPadding:f=5,arrowPadding:p=5,sticky:g=!1,disableAnchorTracking:m=!1,collisionAvoidance:b=er.Pe,style:_,...w}=e,x=y(),E=function(){let e=i.useContext(K);if(void 0===e)throw Error((0,v.A)(70));return e}(),S=x.useState("open"),R=x.useState("mounted"),k=x.useState("trackCursorAxis"),T=x.useState("disableHoverablePopup"),A=x.useState("floatingRootContext"),C=x.useState("instantType"),P=x.useState("transitionStatus"),O=x.useState("adaptiveOrigin"),I=(0,et.s)({anchor:o,positionMethod:a,floatingRootContext:A,mounted:R,side:l,sideOffset:c,align:u,alignOffset:d,collisionBoundary:h,collisionPadding:f,sticky:g,arrowPadding:p,disableAnchorTracking:m,keepMounted:E,collisionAvoidance:b,adaptiveOrigin:O}),M=i.useMemo(()=>({open:S,side:I.side,align:I.align,anchorHidden:I.anchorHidden,instant:"none"!==k?"tracking-cursor":C}),[S,I.side,I.align,I.anchorHidden,k,C]),L=(0,en.i)(e,M,{styles:I.positionerStyles,transitionStatus:P,props:w,refs:[t,x.useStateSetter("positionerElement")],hidden:!R,inert:!S||"both"===k||T});return(0,n.jsx)(Q.Provider,{value:I,children:L})});var es=r(88545),eo=r(67813),ea=r(59544);let el=i.forwardRef(function(e,t){let{render:r,className:n,style:i,...s}=e,o=y(),{side:a,align:l}
1=ee(),u=o.useState("open"),c=o.useState("instantType"),d=o.useState("transitionStatus"),h=o.useState("popupProps"),f=o.useState("floatingRootContext"),p=o.useState("disabled"),g=o.useState("closeDelay");(0,es.v)({open:u,ref:o.context.popupRef,onComplete(){u&&o.context.onOpenChangeComplete?.(!0)}}),(0,ea.a)(f,{enabled:!p,closeDelay:g});let v=o.useStateSetter("popupElement");return(0,B.o)("div",e,{state:{open:u,side:a,align:l,instant:c,transitionStatus:d},ref:[t,o.context.popupRef,v],props:[k.Ls,h,(0,eo.d)(d),s],stateAttributesMapping:j.LM})}),eu=i.forwardRef(function(e,t){let{render:r,className:n,style:i,...s}=e,o=y(),{arrowRef:a,side:l,align:u,arrowUncentered:c,arrowStyles:d}=ee(),h=o.useState("open"),f=o.useState("instantType");return(0,B.o)("div",e,{state:{open:h,side:l,align:u,uncentered:c,instant:f},ref:[t,a],props:[{style:d,"aria-hidden":!0},s],stateAttributesMapping:j.GW})});var ec=r(58811);function ed(e){let{delay:t=0,...r}=e;return(0,n.jsx)(f,{"data-slot":"tooltip-provider",delay:t,...r})}function eh(e){let{...t}=e;return(0,n.jsx)(M,{"data-slot":"tooltip",...t})}function ef(e){let{...t}=e;return(0,n.jsx)(W,{"data-slot":"tooltip-trigger",...t})}function ep(e){let{className:t,side:r="top",sideOffset:i=4,align:s="center",alignOffset:o=0,children:a,...l}=e;return(0,n.jsx)(Z,{children:(0,n.jsx)(ei,{align:s,alignOffset:o,side:r,sideOffset:i,className:"isolate z-50",children:(0,n.jsxs)(el,{"data-slot":"tooltip-content",className:(0,ec.cn)("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-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 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),...l,children:[a,(0,n.jsx)(eu,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground 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"})]})})})}},290:(e,t,r)=>{"use strict";r.d(t,{Ae:()=>_,DU:()=>S,L_:()=>R,Ls:()=>m,T1:()=>E,UM:()=>y,cQ:()=>x,i6:()=>A,l$:()=>T,tr:()=>k,xp:()=>b,xs:()=>C});var n=r(14343),i=r(33475),s=r(49940),o=r(16265),a=r(41790),l=r(73858),u=r(16801),c=r(84249),d=r(72949),h=r(94171),f=r(18667),p=r(88545),g=r(2978),v=r(81316);let m={tabIndex:-1,[c.Ed]:""};function y(e){return t=>"touch"!==t||e.current}function b(e,t=!1){let r=(0,o.B)(),n=null!=(0,d.R1)(),i=(0,u.j)(()=>e(r,n)).current;return(0,h.D)({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:r,nested:n,onOpenChange:i.setOpen}),i}function _({handle:e,store:t}){return(0,l.g)(()=>e.attachStore(t),[e,t]),null}function w(e){let t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function x(e,t,r,n=!1){let i=e.preventUnmountingOnClose;t?i=!1:n&&(i=!0);let s=r?.id??null,o=e.activeTriggerId,a=e.activeTriggerElement;return(s||t)&&(o=s,a=r??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:a}}function E(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function S(e,t,r,n={}){let s=r.reason,o=s===v.N7,a=t&&s===v.F4,l=!t&&(s===v.Ui||s===v.jv),u=E(r);if(e.context.onOpenChange?.(t,r),r.isCanceled)return;n.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,r);let c=()=>{let i=x(e.state,t,r.trigger,u()),s={...n.extraState,...i};a?s.instantType="focus":l?s.instantType="dismiss":o&&(s.instantType=void 0),e.update(s)};o?i.flushSync(c):c()}function R(e,t,r,i){let s=r.useState("isMountedByTrigger",e),o=function(e,t){let r=n.useRef(null);return(0,a.K)(n=>{let i=r.current;if(null!==i){if(i.element===n&&i.store===t&&i.id===e)return;r.current=null;let s=i.store;s.context.triggerElements.getById(i.id)===i.element&&(s.context.triggerElements.delete(i.id),w(s))}null!==n&&void 0!==e&&(r.current={store:t,id:e,element:n},t.context.triggerElements.add(e,n),w(t))})}(e,r),u=(0,a.K)(t=>{let n=r.select("open"),s=r.select("activeTriggerId");if(s===e){let e={activeTriggerElement:t,...n?i:null};r.update(e);return}if(null==s&&n){let n={activeTriggerId:e??null,activeTriggerElement:t,...i};r.update(n)}}),c=(0,a.K)(e=>{o(e),e&&u(e)});return(0,l.g)(()=>(c(t.current),()=>c(null)),[c,t,r,e]),(0,l.g)(()=>
1{if(s){let e={activeTriggerElement:t.current,...i};r.update(e)}},[s,r,t,...Object.values(i)]),{registerTrigger:c,isMountedByThisTrigger:s}}function k(e,t={}){let{closeOnActiveTriggerUnmount:r=!1}=t,i=n.useRef(null),s=e.useState("open"),o=e.useState("triggerCount"),a=e.useState("activeTriggerId"),u=e.useState("activeTriggerElement");(0,l.g)(()=>{if(!s){i.current=null,0!==e.state.triggerCount&&e.set("triggerCount",0);return}let t=e.context.triggerElements.size,n={};e.state.triggerCount!==t&&(n.triggerCount=t);let o=e.select("activeTriggerId"),a=null;if(o){let t=e.context.triggerElements.getById(o);if(t)i.current=o,t!==e.state.activeTriggerElement&&(n.activeTriggerElement=t);else{for(let[t,r]of e.context.triggerElements.entries())if(r===e.state.activeTriggerElement){n.activeTriggerId=t,n.activeTriggerElement=r,i.current=t;break}void 0===n.activeTriggerId&&(i.current===o?a=o:i.current=null)}}else i.current=null;if(!a&&!o&&1===t){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,r]=t.value;n.activeTriggerId=e,n.activeTriggerElement=r,i.current=e}}(void 0!==n.triggerCount||void 0!==n.activeTriggerId||void 0!==n.activeTriggerElement)&&e.update(n),a&&r&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===a&&!e.context.triggerElements.getById(a)){let t=(0,g.d)(v.dv);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[s,e,o,a,u,r])}function T(e,t,r,n){let{mounted:i,setMounted:s,transitionStatus:o}=(0,f.$)(e,!1,!1,n),l=t.useState("preventUnmountingOnClose"),u=!e&&l;t.useSyncedValues({mounted:i,transitionStatus:o,preventUnmountingOnClose:u});let c=(0,a.K)(()=>{s(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),r?.(),t.context.onOpenChangeComplete?.(!1)});return(0,p.v)({enabled:i&&!e&&!u,open:e,ref:t.context.popupRef,onComplete(){e||c()}}),{forceUnmount:c,transitionStatus:o}}function A(e,t){e.useSyncedValues(t),(0,l.g)(()=>()=>{e.update({activeTriggerProps:s.t0,inactiveTriggerProps:s.t0,popupProps:s.t0})},[e])}function C(e,t){(0,l.g)(()=>{t||null===e.state.openMethod||e.set("openMethod",null)},[t,e]),(0,l.g)(()=>()=>{null!==e.state.openMethod&&e.set("openMethod",null)},[e])}},1090:(e,t,r)=>{"use strict";r.d(t,{HQ:()=>n,K2:()=>s,Kd:()=>o,Pe:()=>l,X3:()=>i,uD:()=>a,z_:()=>u});let n=500,i=500,s={style:{transition:"none"}},o="data-base-ui-click-trigger",a={fallbackAxisSide:"none"},l={fallbackAxisSide:"end"},u={clipPath:"inset(50%)",position:"fixed",top:0,left:0}},1277:(e,t,r)=>{"use strict";r.d(t,{n:()=>o});var n=r(14343);let i=n.createContext(void 0),s={disableStyleElements:!1};function o(){return n.useContext(i)??s}},1543:(e,t,r)=>{"use strict";function n(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}r.d(t,{r:()=>n})},2555:(e,t,r)=>{"use strict";r.d(t,{s:()=>V});var n=r(14343),i=r(10352),s=r(45848),o=r(37900),a=r(75836),l=r(97120),u=r(41790),c=r(73858),d=r(73897),h=r(33905),f=r(77423),p=r(87190),g=r(2612),v=r(3167),m=r(24082),y=r(68218),b=r(53373),_=r(57193),w=r(92751),x=r(2978),E=r(81316),S=r(36138),R=r(95838);let k={inert:new WeakMap,"aria-hidden":new WeakMap},T="data-base-ui-inert",A={inert:new WeakSet,"aria-hidden":new WeakSet},C=new WeakMap,P=0,O=(e,t)=>t.map(t=>{if(e.contains(t))return t;let r=function e(t){return t?(0,i.Ng)(t)?t.host:e(t.parentNode):null}(t);return e.contains(r)?r:null}).filter(e=>null!=e),I=e=>{let t=new Set;return e.forEach(e=>{let r=e;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},M=(e,t,r)=>{let n=[],s=e=>{!e||r.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,i.mq)(e)&&(t.has(e)?s(e):n.push(e))})};return s(e),n};function L(e,t={}){let{ariaHidden:r=!1,inert:n=!1,mark:i=!0}=t,s=(0,p.R)(e[0]).body;return function(e,t,r,n,{mark:i=!0}){let s=null;n?s="inert":r&&(s="aria-hidden");let o=null,a=null,l=O(t,e),u=i?M(t,I(l),new Set(l)):[],c=[],d=[];if(s){let e=k[s],r=A[s];a=r,o=e;let n=O(t,Array.from(t.querySelectorAll("[aria-live]"))),i=l.concat(n);M(t,I(i),new Set(i)).forEach(t=>{let n=t.getAttribute(s),i=null!==n&&"false"!==n,o=(e.get(t)||0)+1;e.set(t,o),c.push(t),1===o&&i&&r.add(t),i||t.setAttribute(s,"inert"===s?"":"true")})}
1return i&&u.forEach(e=>{let t=(C.get(e)||0)+1;C.set(e,t),d.push(e),1===t&&e.setAttribute(T,"")}),P+=1,()=>{o&&c.forEach(e=>{let t=(o.get(e)||0)-1;o.set(e,t),t||(!a?.has(e)&&s&&e.removeAttribute(s),a?.delete(e))}),i&&d.forEach(e=>{let t=(C.get(e)||0)-1;C.set(e,t),t||e.removeAttribute(T)}),(P-=1)||(k.inert=new WeakMap,k["aria-hidden"]=new WeakMap,A.inert=new WeakSet,A["aria-hidden"]=new WeakSet,C=new WeakMap)}}(e,s,r,n,{mark:i})}var N=r(97571),j=r(72949),B=r(1090),F=r(26805),D=r(15383);let H=[];function U(){H=H.filter(e=>e.deref()?.isConnected)}function $(e){U(),e&&"body"!==(0,i.mq)(e)&&(H.push(new WeakRef(e)),H.length>20&&(H=H.slice(-20)))}function z(){return U(),H[H.length-1]?.deref()}function q(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let t=(0,b.nq)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,b.AO)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),r=e.getAttribute("tabindex");0===t.length?"0"!==r&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):("-1"!==r||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function V(e){let{context:t,children:r,disabled:k=!1,initialFocus:T=!0,returnFocus:A=!0,restoreFocus:C=!1,modal:P=!0,closeOnFocusOut:O=!0,openInteractionType:I="",nextFocusableElement:M,previousFocusableElement:H,beforeContentFocusGuardRef:V,externalTree:G,getInsideElements:W}=e,K="rootStore"in t?t.rootStore:t,Y=K.useState("open"),X=K.useState("domReferenceElement"),J=K.useState("floatingElement"),{events:Z,dataRef:Q}=K.context,ee=(0,u.K)(()=>Q.current.floatingContext?.nodeId),et=(0,m.WZ)(X)&&!1===T,er=(0,l.u)(T),en=(0,l.u)(A),ei=(0,l.u)(I),es=(0,l.u)(Y),eo=(0,j.cq)(G),ea=(0,N.vB)(),el=n.useRef(!1),eu=n.useRef(!1),ec=n.useRef(!1),ed=n.useRef(null),eh=n.useRef(""),ef=n.useRef(""),ep=n.useRef(null),eg=n.useRef(null),ev=(0,a.a)(ep,V,ea?.beforeInsideRef),em=(0,a.a)(eg,ea?.afterInsideRef),ey=(0,d.Z)(),eb=(0,d.Z)(),e_=(0,f.NR)(),ew=null!=ea,ex=(0,m.nd)(J),eE=(0,u.K)((e=ex)=>e?(0,b.Kr)(e):[]),eS=(0,u.K)(()=>W?.().filter(e=>null!=e)??[]);n.useEffect(()=>{if(k||!P)return;let e=(0,p.R)(ex);return(0,s.q)(e,"keydown",function(e){"Tab"===e.key&&(0,v.gR)(ex,(0,v.RS)((0,p.R)(ex)))&&0===eE().length&&!et&&(0,y.jo)(e)})},[k,ex,P,et,eE]),n.useEffect(()=>{if(k||!Y)return;let e=(0,p.R)(ex);function t(){ec.current=!1}return(0,o.g)((0,s.q)(e,"pointerdown",function(e){let t=(0,v.EW)(e),r=eS();ec.current=!((0,v.gR)(J,t)||(0,v.gR)(X,t)||(0,v.gR)(ea?.portalNode,t)||r.some(e=>e===t||(0,v.gR)(e,t))),ef.current=e.pointerType||"keyboard",t?.closest(`[${B.Kd}]`)&&(eu.current=!0,eb.start(0,()=>{eu.current=!1}))},!0),(0,s.q)(e,"pointerup",t,!0),(0,s.q)(e,"pointercancel",t,!0),(0,s.q)(e,"keydown",function(){ef.current="keyboard"},!0),t)},[k,J,X,ex,Y,ea,eb,eS]),n.useEffect(()=>{if(k||!O)return;let e=(0,p.R)(ex);function t(t){let r=t.relatedTarget,n=t.currentTarget,s=(0,v.EW)(t);P&&null==r&&null!=s&&(0,v.gR)(J,s)&&$(s),queueMicrotask(()=>{let o=ee(),a=K.context.triggerElements,l=eS(),u=r?.hasAttribute((0,S.F)("focus-guard"))&&[ep.current,eg.current,ea?.beforeInsideRef.current,ea?.afterInsideRef.current,ea?.beforeOutsideRef.current,ea?.afterOutsideRef.current,(0,F.q)(H),(0,F.q)(M)].includes(r),c=!((0,v.gR)(X,r)||(0,v.gR)(J,r)||(0,v.gR)(r,J)||(0,v.gR)(ea?.portalNode,r)||l.some(e=>e===r||(0,v.gR)(e,r))||a.hasMatchingElement(e=>(0,v.gR)(e,r))||u||eo&&((0,_.CM)(eo.nodesRef.current,o).find(e=>(0,v.gR)(e.context?.elements.floating,r)||(0,v.gR)(e.context?.elements.domReference,r))||(0,_.$4)(eo.nodesRef.current,o).find(e=>[e.context?.elements.floating,(0,m.nd)(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(n===X&&ex&&q(ex),C&&n!==X&&!(0,w.J9)(s)&&(0,v.RS)(e)===e.body){if((0,i.sb)(ex)&&(ex.focus(),"popup"===C))return void e_.request(()=>{ex.focus()});let e=eE(),t=ed.current,r=(t&&e.includes(t)?t:null)||e[e.length-1]||ex;(0,i.sb)(r)&&r.focus()}if(Q.current.insideReactTree){Q.current.insideReactTree=!1;return}(et||!P)&&r&&c&&!eu.current&&(et||r!==z())&&(el.current=!0,K.setOpen(!1,(0,x.d)(E.
1Xn,t)))})}let r=(0,i.sb)(X)?X:null;if(J||r)return(0,o.g)(r&&(0,s.q)(r,"focusout",t),r&&(0,s.q)(r,"pointerdown",function(){eu.current=!0,eb.start(0,()=>{eu.current=!1})}),J&&(0,s.q)(J,"focusin",function(e){let t=(0,v.EW)(e);(0,b.AO)(t)&&(ed.current=t)}),J&&(0,s.q)(J,"focusout",t),J&&ea&&(0,s.q)(J,"focusout",function(){ec.current||(Q.current.insideReactTree=!0,ey.start(0,()=>{Q.current.insideReactTree=!1}))},!0))},[k,X,J,ex,P,eo,ea,K,O,C,eE,et,ee,Q,ey,eb,e_,M,H,eS]),n.useEffect(()=>{if(k||!J||!Y)return;let e=Array.from(ea?.portalNode?.querySelectorAll(`[${(0,S.F)("portal")}]`)||[]),t=eo?(0,_.$4)(eo.nodesRef.current,ee()):[],r=t.find(e=>(0,m.WZ)(e.context?.elements.domReference||null))?.context?.elements.domReference,n=L([J,...e,ep.current,eg.current,ea?.beforeOutsideRef.current,ea?.afterOutsideRef.current,...eS(),r,(0,F.q)(H),(0,F.q)(M),et?X:null].filter(e=>null!=e),{ariaHidden:P||et,mark:!1}),i=L([J,...e].filter(e=>null!=e));return()=>{i(),n()}},[Y,k,X,J,P,ea,et,eo,ee,M,H,eS]),(0,c.g)(()=>{if(!Y||k||!(0,i.sb)(ex))return;eh.current="",ef.current="";let e=(0,p.R)(ex),t=(0,v.RS)(e);queueMicrotask(()=>{let r,n=er.current,i="function"==typeof n?n(ei.current||""):n;if(void 0===i||!1===i||(0,v.gR)(ex,t))return;let s=null,o=()=>(null==s&&(s=eE(ex)),s[0]||ex);r=(r=!0===i||null===i?o():(0,F.q)(i))||o();let a=(0,v.gR)(ex,(0,v.RS)(e));(0,R.p)(r,{preventScroll:r===ex,shouldFocus(){if(!es.current)return!1;if(a)return!0;let t=(0,v.RS)(e);return!(t!==r&&(0,v.gR)(ex,t))}})})},[k,Y,ex,eE,er,ei,es]),(0,c.g)(()=>{if(k||!ex)return;let e=(0,p.R)(ex),t=(0,v.RS)(e),r=null==ei.current;function n(e){if(e.open||(eh.current=function(e,t){let r=(0,i.zk)((0,v.EW)(e));return e instanceof r.KeyboardEvent?"keyboard":e instanceof r.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof r.MouseEvent?t||(0===e.detail?"keyboard":"mouse"):""}(e.nativeEvent,ef.current)),e.reason===E.N7&&"mouseleave"===e.nativeEvent.type&&(el.current=!0),e.reason===E.Np)if(e.nested)el.current=!1;else if((0,y.YF)(e.nativeEvent)||(0,y.Pg)(e.nativeEvent))el.current=!1;else{let e=!1;(0,p.R)(ex).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?el.current=!1:el.current=!0}}return $(t),Z.on("openchange",n),()=>{Z.off("openchange",n);let s=(0,v.RS)(e),o=eS(),a=(0,v.gR)(J,s)||o.some(e=>e===s||(0,v.gR)(e,s))||eo&&(0,_.CM)(eo.nodesRef.current,ee(),!1).some(e=>(0,v.gR)(e.context?.elements.floating,s)),l=en.current,u=eh.current,c=function(e){let n=en.current,s="function"==typeof n?n(e):n;if(void 0===s||!1===s)return null;null===s&&(s=!0);let o=X?.isConnected?X:null,a=t?.isConnected&&"body"!==(0,i.mq)(t)?t:null,l=r?a||o:o||a;return(l||(l=z()||null),"boolean"==typeof s)?l:(0,F.q)(s)||l||null}(u);queueMicrotask(()=>{let t=c?(0,b.AO)(c)?c:(0,b.Kr)(c)[0]||c:null;if(l&&!el.current&&(0,i.sb)(t)&&("boolean"!=typeof l||t===s||s===e.body||a)){let e={preventScroll:!0};"keyboard"===u&&(e.focusVisible=!0),t.focus(e)}el.current=!1})}},[k,J,ex,en,ei,Z,eo,X,ee,eS]),(0,c.g)(()=>{if(!h.Fp||Y||!J)return;let e=(0,v.RS)((0,p.R)(J));(0,i.sb)(e)&&(0,m.$u)(e)&&(0,v.gR)(J,e)&&e.blur()},[Y,J]),(0,c.g)(()=>{if(!k&&ea)return ea.setFocusManagerState({modal:P,closeOnFocusOut:O,open:Y,onOpenChange:K.setOpen,domReference:X}),()=>{ea.setFocusManagerState(null)}},[k,ea,P,Y,K,O,X]),(0,c.g)(()=>{if(!k&&ex)return q(ex),()=>{queueMicrotask(U)}},[k,ex]);let eR=!k&&(!P||!et)&&(ew||P);return(0,D.jsxs)(n.Fragment,{children:[eR&&(0,D.jsx)(g.U,{"data-type":"inside",ref:ev,onFocus:e=>{if(P){let e=eE();(0,R.p)(e[e.length-1])}else if(ea?.portalNode)if(el.current=!1,(0,b.Qp)(e,ea.portalNode)){let e=(0,b.vF)(X);e?.focus()}else(0,F.q)(H??ea.beforeOutsideRef)?.focus()}}),r,eR&&(0,D.jsx)(g.U,{"data-type":"inside",ref:em,onFocus:e=>{if(P)(0,R.p)(eE()[0]);else if(ea?.portalNode)if(O&&(el.current=!0),(0,b.Qp)(e,ea.portalNode)){let e=(0,b.XJ)(X);e?.focus()}else(0,F.q)(M??ea.afterOutsideRef)?.focus()}})]})}},2612:(e,t,r)=>{"use strict";r.d(t,{U:()=>u});var n=r(14343),i=r(73858);let s=r(32601).Bt;var o=r(33905),a=r(39994),l=r(15383);let u=n.forwardRef(function(e,t){let[r,u]=n.useState();return(0,i.g)(()=>{s&&o.Fp&&u("button")},[]),(0,l.jsx)("span",{...e,ref:t,style:a.Q,"aria-hidden":!r||void 0,...{tabIndex:0,role:r},"data-base-ui-focus-guard":""})})},2978:(e,t,r)=>{"use strict";r.d(t,{M:()=>s,d:()=>i});var n=r(49940);function i(e,t,r,i){let s=!1,o=!1,a=i??n.t0;return{reason:e,event:t??new Event("base-ui"),cancel(){s=!0},allowPropagation(){o=!0},get isCanceled(){return s},get isPropagationAllowed(){return o},trigger:r,...a}}function s(e,t,r){let i=r??n.t0;return{reason:e,event:t??new Event("base-ui"),...i}}},3166:(e,t,r)=>{"use strict";r.d(t,{y:()=>s});var n=r(14343),i=r(49940);function s(e){n.useEffect(e,i.Ml)}},3167:(e,t,r)=>{"use strict";r.d(t,{EW:()=>o,RS:()=>i,gR:()=>s});var n=r(10352);function i(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function s(e,t){if(!e||!t)return!1;let r=t.getRootNode?.();if(e.contains(t))return!0;
1if(r&&(0,n.Ng)(r)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function o(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}},3566:(e,t,r)=>{"use strict";r.d(t,{s:()=>_});var n=r(14343),i=r(45848),s=r(37900),o=r(87190),a=r(41790),l=r(73897),u=r(10352),c=r(33905),d=r(72949),h=r(2978),f=r(81316),p=r(36138),g=r(24082),v=r(3167),m=r(68218),y=r(57193);function b(){return!1}function _(e,t={}){let{enabled:r=!0,escapeKey:w=!0,outsidePress:x=!0,outsidePressEvent:E="sloppy",referencePress:S=b,bubbles:R,externalTree:k}=t,T="rootStore"in e?e.rootStore:e,A=T.useState("open"),C=T.useState("floatingElement"),{dataRef:P,events:O}=T.context,I=(0,d.cq)(k),M=(0,a.K)("function"==typeof x?x:()=>!1),L="function"==typeof x?M:x,N=!1!==L,j=(0,a.K)(()=>E),{escapeKey:B,outsidePress:F}={escapeKey:"boolean"==typeof R?R:R?.escapeKey??!1,outsidePress:"boolean"==typeof R?R:R?.outsidePress??!0},D=n.useRef(!1),H=n.useRef(!1),U=n.useRef(!1),$=n.useRef(!1),z=n.useRef(!1),q=n.useRef(""),V=n.useRef(null),G=(0,l.Z)(),W=(0,l.Z)(),K=(0,a.K)(()=>{W.clear(),P.current.insideReactTree=!1}),Y=(0,a.K)(e=>{let t=P.current.floatingContext?.nodeId;return(I?(0,y.CM)(I.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),X=(0,a.K)(e=>(0,g.F2)(e,T.select("floatingElement"))||(0,g.F2)(e,T.select("domReferenceElement"))),J=(0,a.K)(e=>{S()&&T.setOpen(!1,(0,h.d)(f.Ui,e.nativeEvent))}),Z=(0,a.K)(e=>{if(!A||!r||!w||"Escape"!==e.key||z.current||!B&&Y("__escapeKeyBubbles"))return;let t=(0,m.O_)(e)?e.nativeEvent:e,n=(0,h.d)(f.jv,t);T.setOpen(!1,n),n.isCanceled||e.preventDefault(),B||n.isPropagationAllowed||e.stopPropagation()}),Q=(0,a.K)(()=>{P.current.insideReactTree=!0,W.start(0,K)}),ee=(0,a.K)(e=>{if(!A||!r||0!==e.button)return;let t=(0,v.EW)(e.nativeEvent);(0,v.gR)(T.select("floatingElement"),t)&&(D.current||(D.current=!0,H.current=!1))}),et=(0,a.K)(e=>{A&&r&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&D.current&&(H.current=!0)});n.useEffect(()=>{function e(e){e.open||($.current=!1)}return O.on("openchange",e),()=>{O.off("openchange",e)}},[O]),n.useEffect(()=>{if(!A||!r)return A||($.current=!1),K;P.current.__escapeKeyBubbles=B,P.current.__outsidePressBubbles=F;let e=new l.E,t=new l.E,n=(0,o.R)(C);function a(){U.current=!0,t.start(0,()=>{U.current=!1})}function d(){D.current=!1,H.current=!1}function b(){let e=q.current,t=j(),r="function"==typeof t?t():t;return"string"==typeof r?r:r["pen"!==e&&e?e:"mouse"]}function _(e){let t=P.current.floatingContext?.nodeId,r=I&&(0,y.CM)(I.nodesRef.current,t).some(t=>(0,g.F2)(e,t.context?.elements.floating));return X(e)||r}function x(e){if(function(e){let t=b();return"intentional"===t&&"click"!==e.type||"sloppy"===t&&"click"===e.type}(e)){"click"===e.type||X(e)||(t.clear(),U.current=!1),K();return}if(P.current.insideReactTree)return void K();let r=(0,v.EW)(e),n=`[${(0,p.F)("inert")}]`,i=(0,u.vq)(r)?r.getRootNode():null,s=Array.from(((0,u.Ng)(i)?i:(0,o.R)(T.select("floatingElement"))).querySelectorAll(n)),a=T.context.triggerElements;if(r&&(a.hasElement(r)||a.hasMatchingElement(e=>(0,v.gR)(e,r))))return;let l=(0,u.vq)(r)?r:null;for(;l&&!(0,u.eu)(l);){let e=(0,u.$4)(l);if((0,u.eu)(e)||!(0,u.vq)(e))break;l=e}if(s.length&&(0,u.vq)(r)&&!(0,g.tZ)(r)&&!(0,v.gR)(r,T.select("floatingElement"))&&s.every(e=>!(0,v.gR)(l,e)))return;if((0,u.sb)(r)&&!("touches"in e)){let t=(0,u.eu)(r),n=(0,u.L9)(r),i=/auto|scroll/,s=t||i.test(n.overflowX),o=t||i.test(n.overflowY),a=s&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,l=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,c="rtl"===n.direction,d=l&&(c?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),h=a&&e.offsetY>r.clientHeight;if(d||h)return}if(!_(e)){if("intentional"===b()){if(0!==e.detail&&!(0,m.YF)(e)&&!$.current)return;if(U.current){t.clear(),U.current=!1;return}}("function"!=typeof L||L(e))&&(Y("__outsidePressBubbles")||(T.setOpen(!1,(0,h.d)(f.Np,e)),K()))}}function E(e){if("sloppy"!==b()||!T.select("open")||!r||X(e))return;let t=e.touches[0];t&&(V.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},G.start(1e3,()=>{V.current&&(V.current.dismissOnTouchEnd=!1,V.current.dismissOnMouseDown=!1)}))}
1function S(e,t){let r=(0,v.EW)(e);if(!r)return;let n=(0,i.q)(r,e.type,()=>{t(e),n()})}function R(e){G.clear(),"pointerdown"===e.type&&(0===e.button&&($.current=!0),q.current=e.pointerType),("mousedown"!==e.type||!V.current||V.current.dismissOnMouseDown)&&S(e,e=>{if("pointerdown"===e.type)"sloppy"!==b()||"touch"===e.pointerType||!T.select("open")||!r||X(e)||x(e);else x(e)})}function k(e){if("pointercancel"===e.type&&($.current=!1),!D.current)return;let r=H.current;if(d(),"intentional"===b()){if("pointercancel"===e.type){r&&a();return}if(!_(e)){if(r)return void a();("function"!=typeof L||L(e))&&(t.clear(),U.current=!0,K())}}}function O(e){if("sloppy"!==b()||!V.current||X(e))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-V.current.startX),n=Math.abs(t.clientY-V.current.startY),i=Math.sqrt(r*r+n*n);i>5&&(V.current.dismissOnTouchEnd=!0),i>10&&(x(e),G.clear(),V.current=null)}function M(e){"sloppy"!==b()||!V.current||X(e)||(V.current.dismissOnTouchEnd&&x(e),G.clear(),V.current=null)}let W=(0,s.g)(w&&(0,s.g)((0,i.q)(n,"keydown",Z),(0,i.q)(n,"compositionstart",function(){e.clear(),z.current=!0}),(0,i.q)(n,"compositionend",function(){e.start(5*!!c.Fp,()=>{z.current=!1})})),N&&(0,s.g)((0,i.q)(n,"click",R,!0),(0,i.q)(n,"pointerdown",R,!0),(0,i.q)(n,"pointerup",k,!0),(0,i.q)(n,"pointercancel",k,!0),(0,i.q)(n,"mousedown",R,!0),(0,i.q)(n,"mouseup",k,!0),(0,i.q)(n,"touchstart",function(e){q.current="touch",S(e,E)},{capture:!0,passive:!0}),(0,i.q)(n,"touchmove",function(e){S(e,O)},{capture:!0,passive:!0}),(0,i.q)(n,"touchend",function(e){S(e,M)},{capture:!0,passive:!0})));return()=>{W(),e.clear(),t.clear(),d(),U.current=!1,K()}},[P,C,w,N,L,A,r,B,F,Z,K,j,Y,X,I,T,G]);let er=n.useMemo(()=>({onKeyDown:Z,onPointerDown:J,onClick:J}),[Z,J]),en=n.useMemo(()=>({onKeyDown:Z,onPointerDown:et,onMouseDown:et,onClickCapture:Q,onMouseDownCapture(e){Q(),ee(e)},onPointerDownCapture(e){Q(),ee(e)},onMouseUpCapture:Q,onTouchEndCapture:Q,onTouchMoveCapture:Q}),[Z,Q,ee,et]);return n.useMemo(()=>r?{reference:er,floating:en,trigger:er}:{},[r,er,en])}},3633:(e,t,r)=>{"use strict";r.d(t,{j:()=>_});var n=r(14343),i=r(33475),s=r(45848),o=r(37900),a=r(87190),l=r(41790),u=r(97120),c=r(10352),d=r(2978),h=r(81316),f=r(72949),p=r(3167),g=r(68218),v=r(99482),m=r(19983),y=r(24082);let b={current:null};function _(e,t={}){let{enabled:r=!0,delay:w=0,handleClose:x=null,mouseOnly:E=!1,restMs:S=0,move:R=!0,triggerElementRef:k=b,externalTree:T,isActiveTrigger:A=!0,getHandleCloseContext:C,isClosing:P,shouldOpen:O,guardStaleOpen:I=!1}=t,M="rootStore"in e?e.rootStore:e,{dataRef:L,events:N}=M.context,j=(0,f.cq)(T),B=(0,v.uu)(M),F=n.useRef(!1),D=(0,u.u)(x),H=(0,u.u)(w),U=(0,u.u)(S),$=(0,u.u)(r),z=(0,u.u)(O),q=(0,u.u)(P),V=(0,l.K)(()=>(0,m.GI)(L.current.openEvent?.type,B.interactedInside)),G=(0,l.K)(()=>z.current?.()!==!1),W=(0,l.K)((e,t,r)=>{let n=M.context.triggerElements;return n.hasElement(t)?!e||!(0,p.gR)(e,t):!!(0,c.vq)(r)&&n.hasMatchingElement(e=>(0,p.gR)(e,r))&&(!e||!(0,p.gR)(e,r))}),K=(0,l.K)(()=>{B.handler&&((0,a.R)(M.select("domReferenceElement")).removeEventListener("mousemove",B.handler),B.handler=void 0)}),Y=(0,l.K)(()=>{(0,v.GH)(B)});return A&&(B.handleCloseOptions=x?.__options),n.useEffect(()=>K,[K]),n.useEffect(()=>{if(r)return N.on("openchange",e),()=>{N.off("openchange",e)};function e(e){e.open?F.current=!1:(F.current=e.reason===h.N7,K(),B.openChangeTimeout.clear(),B.restTimeout.clear(),B.blockMouseMove=!0,B.restTimeoutPending=!1)}},[r,N,B,K]),n.useEffect(()=>{if(!r)return;function e(t,r=!0){let n=(0,m.uf)(H.current,"close",B.pointerType);n?B.openChangeTimeout.start(n,()=>{M.setOpen(!1,(0,d.d)(h.N7,t)),j?.events.emit("floating.closed",t)}):r&&(B.openChangeTimeout.clear(),M.setOpen(!1,(0,d.d)(h.N7,t)),j?.events.emit("floating.closed",t))}let t=k.current??(A?M.select("domReferenceElement"):null);if(!(0,c.vq)(t))return;function n(e){if(B.openChangeTimeout.clear(),B.blockMouseMove=!1,E&&!(0,g.Go)(B.pointerType))return;let t=(0,m.hq)(U.current),r=(0,m.uf)(H.current,"open",B.pointerType),n=(0,p.EW)(e),i=e.currentTarget??null,s=M.select("domReferenceElement"),o=i;if((0,c.vq)(n)&&!M.context.triggerElements.hasElement(n)){for(let e of M.context.triggerElements.elements())if((0,p.gR)(e,n)){o=e;break}}(0,c.vq)(i)&&(0,c.vq)(s)&&!M.context.triggerElements.hasElement(i)&&(0,p.gR)(i,s)&&(o=s);let a=null!=o&&W(s,o,n),l=M.select("open"),u=q.current?.()??"ending"===M.select("transitionStatus"),f=!l&&u&&F.current,v=!a&&(0,c.vq)(o)&&(0,c.vq)(s)&&(0,p.gR)(s,o)&&f,y=t>0&&!r,b=!l||a;
1if(a&&(l||f)||v){G()&&M.setOpen(!0,(0,d.d)(h.N7,e,o));return}!y&&(r?B.openChangeTimeout.start(r,()=>{b&&G()&&M.setOpen(!0,(0,d.d)(h.N7,e,o))}):b&&G()&&M.setOpen(!0,(0,d.d)(h.N7,e,o)))}function i(t){if(V())return void Y();K();let r=M.select("domReferenceElement"),n=(0,a.R)(r);B.restTimeout.clear(),B.restTimeoutPending=!1;let i=L.current.floatingContext??C?.();if(!(0,y.Hi)(t.relatedTarget,M.context.triggerElements)){if(D.current&&i){M.select("open")||B.openChangeTimeout.clear();let r=k.current;B.handler=D.current({...i,tree:j,x:t.clientX,y:t.clientY,onClose(){Y(),K(),$.current&&!V()&&r===M.select("domReferenceElement")&&e(t,!0)}}),n.addEventListener("mousemove",B.handler),B.handler(t);return}"touch"===B.pointerType&&(0,p.gR)(M.select("floatingElement"),t.relatedTarget)||e(t)}}let l=I?(0,s.q)(t,"mouseout",function(e){(0,p.gR)(t,e.relatedTarget)||(B.openChangeTimeout.clear(),B.restTimeout.clear(),B.restTimeoutPending=!1)}):void 0;return R?(0,o.g)((0,s.q)(t,"mousemove",n,{once:!0}),(0,s.q)(t,"mouseenter",n),(0,s.q)(t,"mouseleave",i),l):(0,o.g)((0,s.q)(t,"mouseenter",n),(0,s.q)(t,"mouseleave",i),l)},[K,Y,L,H,M,r,D,B,A,W,V,E,R,U,k,j,$,C,q,G,I]),n.useMemo(()=>{if(r)return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,r=e.currentTarget,n=M.select("domReferenceElement"),s=M.select("open"),o=W(n,r,e.target);if(E&&!(0,g.Go)(B.pointerType))return;if(s&&o&&B.handleCloseOptions?.blockPointerEvents){let e=M.select("floatingElement");if(e){let t=B.handleCloseOptions?.getScope?.()??r.ownerDocument.body;(0,v.D8)(B,{scopeElement:t,referenceElement:r,floatingElement:e})}}let a=(0,m.hq)(U.current);function l(){if(B.restTimeoutPending=!1,V())return;let e=M.select("open");!B.blockMouseMove&&(!e||o)&&G()&&M.setOpen(!0,(0,d.d)(h.N7,t,r))}(!s||o)&&0!==a&&(!o&&B.restTimeoutPending&&e.movementX**2+e.movementY**2<2||(B.restTimeout.clear(),"touch"===B.pointerType?i.flushSync(()=>{l()}):o&&s?l():(B.restTimeoutPending=!0,B.restTimeout.start(a,l))))}};function e(e){B.pointerType=e.pointerType}},[r,B,V,W,E,M,U,G])}},5522:e=>{"use strict";e.exports=JSON.parse('{"id":"google-maps-embed","description":"Embed a Google Maps embed on your webpage","website":"https://developers.google.com/maps/documentation/embed/get-started","html":{"element":"iframe","attributes":{"loading":"lazy","src":{"url":"https://www.google.com/maps/embed/v1/place","slugParam":"mode","params":["key","q","center","zoom","maptype","language","region"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}')},5620:(e,t,r)=>{"use strict";r.d(t,{Y:()=>i});var n=r(63604);function i(e){return(0,n._)(19)?e:e?"true":void 0}},7213:(e,t,r)=>{"use strict";r.d(t,{l:()=>d});var n=r(14343),i=r(73858),s=r(41790),o=r(73897),a=r(49940),l=r(92751),u=r(3167),c=r(68218);function d(e,t){let{listRef:r,elementsRef:d,activeIndex:h,onMatch:f,disabledIndices:p,onTyping:g,enabled:v=!0,resetMs:m=750,selectedIndex:y=null}=t,b="rootStore"in e?e.rootStore:e,_=b.useState("open"),w=(0,o.Z)(),x=n.useRef(""),E=n.useRef(y??h??-1),S=n.useRef(null),R=(0,s.K)(e=>{function t(e){let t=d?.current[e];return!(t&&!(0,l.J9)(t)||t?.matches(":disabled"))&&(null==p||!(0,l.FP)(a.Ml,e,p))}function n(e,r,i=0){if(0===e.length)return -1;let s=(i%e.length+e.length)%e.length,o=r.toLowerCase();for(let r=0;r<e.length;r+=1){let n=(s+r)%e.length,i=e[n];if(i?.toLowerCase().startsWith(o)&&t(n))return n}return -1}let i=r.current;if(x.current.length>0&&" "===e.key&&((0,c.jo)(e),g?.(!0)),x.current.length>0&&" "!==x.current[0]&&-1===n(i,x.current)&&" "!==e.key&&g?.(!1),null==i||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;_&&" "!==e.key&&((0,c.jo)(e),g?.(!0));let s=""===x.current;s&&(E.current=y??h??-1),i.every((e,r)=>!(e&&t(r))||e[0]?.toLowerCase()!==e[1]?.toLowerCase())&&x.current===e.key&&(x.current="",E.current=S.current),x.current+=e.key,w.start(m,()=>{x.current="",E.current=S.current,g?.(!1)});let o=s?y??h??-1:E.current,u=n(i,x.current,(o??0)+1);-1!==u?(f?.(u),S.current=u):" "!==e.key&&(x.current="",g?.(!1))}),k=(0,s.K)(e=>{let t=e.relatedTarget,r=b.select("domReferenceElement"),n=b.select("floatingElement");(0,u.gR)(r,t)||(0,u.gR)(n,t)||(w.clear(),x.current="",E.current=S.current,g?.(!1))});(0,i.g)(()=>{(_||null===y)&&(w.clear(),S.current=null,""!==x.current&&(x.current=""))},[_,y,w]);let T=n.useMemo(()=>({onKeyDown:R,onBlur:k}),[R,k]);return n.useMemo(()=>v?{reference:T,floating:T}:{},[v,T])}},7277:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e,...t){let r=new URL("https://base-ui.com/production-error");
1return r.searchParams.set("code",e.toString()),t.forEach(e=>r.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${r} for the full message.`}},7493:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;let s=i(r(81025)),o=r(9957);t.GoogleAnalytics=e=>{var t=n(e,[]);return(0,o.formatData)(s.default,t)}},7594:(e,t,r)=>{"use strict";r.d(t,{X:()=>a});var n=r(14343),i=r(36253),s=r(13634),o=r(84949);let a=n.forwardRef(function(e,t){let{render:r,className:n,style:a,forceRender:l=!1,...u}=e,c=(0,i.P)(),d=c.useState("open"),h=c.useState("nested"),f=c.useState("mounted"),p=c.useState("transitionStatus");return(0,s.o)("div",e,{state:{open:d,transitionStatus:p},ref:[c.context.backdropRef,t],stateAttributesMapping:o.LM,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},u],enabled:l||!h})})},8647:(e,t,r)=>{"use strict";var n=r(44032);r(24956);var i=r(14343),s=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),o=void 0!==n&&n.env&&!0,a=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,s=void 0===i?o:i;u(a(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof s,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=s,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(u(a(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed){var r=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];u(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},r.cssRules=function(){var e=this;return this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&u(a(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return d[n]||(d[n]="jsx-"+c(e+"-"+r)),d[n]}function f(e,t){var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var p=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,s=void 0!==i&&i;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),n&&"boolean"==typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var s=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=s,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return s.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=h(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:h(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),g=i.createContext(null);g.displayName="StyleSheetContext";var v=s.default.useInsertionEffect||s.default.useLayoutEffect,m=new p;function y(e){var t=m||i.useContext(g);return t&&v(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}y.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=y},9834:(e,t,r)=>{"use strict";r.d(t,{mk:()=>s,HH:()=>i,ZV:()=>n,dc:()=>o});let n={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},i={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},s={disabled:!1,...i},o={valid:e=>null===e?null:e?{"data-valid":""}:{"data-invalid":""}}},9957:(e,t)=>{"use strict";function r(e,t,n=!1){return t?Object.keys(e).filter(e=>n?!t.includes(e):t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{}):{}}function n(e,t,r,n){let i=n&&Object.keys(n).length>0?new URL(Object.values(n)[0],e):new URL(e);
1return t&&r&&t.forEach(e=>{r[e]&&i.searchParams.set(e,r[e])}),i.toString()}function i(e,t,r,i,s){var o;if(!t)return`<${e}></${e}>`;let a=(null==(o=t.src)?void 0:o.url)?Object.assign(Object.assign({},t),{src:n(t.src.url,t.src.params,i,s)}):t,l=Object.keys(Object.assign(Object.assign({},a),r)).reduce((e,t)=>{let n=null==r?void 0:r[t],i=a[t],s=null!=n?n:i,o=!0===s?t:`${t}="${s}"`;return s?e+` ${o}`:e},"");return`<${e}${l}></${e}>`}Object.defineProperty(t,"__esModule",{value:!0}),t.formatData=t.createHtml=t.formatUrl=void 0,t.formatUrl=n,t.createHtml=i,t.formatData=function(e,t){var s,o,a,l,u;let c=r(t,null==(s=e.scripts)?void 0:s.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),d=r(t,null==(a=null==(o=e.html)?void 0:o.attributes.src)?void 0:a.params),h=r(t,[null==(u=null==(l=e.html)?void 0:l.attributes.src)?void 0:u.slugParam]),f=r(t,[...Object.keys(c),...Object.keys(d),...Object.keys(h)],!0);return Object.assign(Object.assign({},e),{html:e.html?i(e.html.element,e.html.attributes,f,d,h):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:n(e.url,e.params,c)})):null})}},10288:(e,t,r)=>{"use strict";r.d(t,{h:()=>v});var n=r(14343),i=r(2555),s=r(36253),o=r(13634),a=r(84697),l=r(88545),u=r(23452),c=r(290),d=r(57435),h=r(84949),f=r(64784);f.ho,f.$h,f.ep,f.VJ;let p={...h.GW,...d.G,nestedDialogOpen:e=>e?{"data-nested-dialog-open":""}:null};var g=r(15383);let v=n.forwardRef(function(e,t){let{render:r,className:n,style:d,finalFocus:h,initialFocus:f,...v}=e,m=(0,s.P)(),y=m.useState("descriptionElementId"),b=m.useState("disablePointerDismissal"),_=m.useState("floatingRootContext"),w=m.useState("popupProps"),x=m.useState("modal"),E=m.useState("mounted"),S=m.useState("nested"),R=m.useState("nestedOpenDialogCount"),k=m.useState("open"),T=m.useState("openMethod"),A=m.useState("titleElementId"),C=m.useState("transitionStatus"),P=m.useState("role"),O=_.useState("floatingId");(0,a.p)(),(0,l.v)({open:k,ref:m.context.popupRef,onComplete(){k&&m.context.onOpenChangeComplete?.(!0)}});let I=void 0===f?(0,c.UM)(m.context.popupRef):f,M=m.useStateSetter("popupElement"),L=(0,o.o)("div",e,{state:{open:k,nested:S,transitionStatus:C,nestedDialogOpen:R>0},props:[w,{id:O,"aria-labelledby":A,"aria-describedby":y,role:P,...c.Ls,hidden:!E,onKeyDown(e){u.jF.has(e.key)&&e.stopPropagation()},style:{"--nested-dialogs":R}},v],ref:[t,m.context.popupRef,M],stateAttributesMapping:p});return(0,g.jsx)(i.s,{context:_,openInteractionType:T,disabled:!E,closeOnFocusOut:!b,initialFocus:I,returnFocus:h,modal:!1!==x,restoreFocus:"popup",children:L})})},10352:(e,t,r)=>{"use strict";let n;function i(){return"undefined"!=typeof window}function s(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!i()&&(e instanceof Node||e instanceof o(e).Node)}function u(e){return!!i()&&(e instanceof Element||e instanceof o(e).Element)}function c(e){return!!i()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function d(e){return!!i()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function h(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=x(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==i&&"contents"!==i}function f(e){return/^(table|td|th)$/.test(s(e))}function p(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}r.d(t,{$4:()=>S,CP:()=>E,L9:()=>x,Ll:()=>l,Lv:()=>f,Ng:()=>d,Tc:()=>_,Tf:()=>p,ZU:()=>h,_m:()=>R,ep:()=>a,eu:()=>w,gJ:()=>b,mq:()=>s,sQ:()=>y,sb:()=>c,v9:()=>function e(t,r,n){var i;void 0===r&&(r=[]),void 0===n&&(n=!0);let s=function e(t){let r=S(t);return w(r)?(t.ownerDocument||t).body:c(r)&&h(r)?r:e(r)}(t),a=s===(null==(i=t.ownerDocument)?void 0:i.body),l=o(s);if(!a)return r.concat(s,e(s,[],n));{let t=R(l);return r.concat(l,l.visualViewport||[],h(s)?s:[],t&&n?e(t):[])}},vq:()=>u,zk:()=>o});let g=/transform|translate|scale|rotate|perspective|filter/,v=/paint|layout|strict|content/,m=e=>!!e&&"none"!==e;function y(e){let t=u(e)?x(e):e;return m(t.transform)||m(t.translate)||m(t.scale)||m(t.rotate)||m(t.perspective)||!_()&&(m(t.backdropFilter)||m(t.filter))||g.test(t.willChange||"")||v.test(t.contain||"")}function b(e){let t=S(e);for(;c(t)&&!w(t);){if(y(t))return t;if(p(t))break;t=S(t)}return null}function _(){return null==n&&(n="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),n}function w(e){return/^(html|body|#document)$/.test(s(e))}function x(e){return o(e).getComputedStyle(e)}function E(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function S(e){if("html"===s(e))return e;let t=e.assignedSlot||e.parentNode||d(e)&&e.host||a(e);return d(t)?t.host:t}function R(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},10572:(e,t,r)=>{"use strict";let n,i;r.d(t,{yQ:()=>ee,_7:()=>T,dY:()=>V,qg:()=>Q});let s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";let o=Object.create(null);
1Object.keys(s).forEach(e=>{o[s[e]]=e});let a={type:"error",data:"parser error"},l="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),u="function"==typeof ArrayBuffer,c=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,d=({type:e,data:t},r,n)=>{if(l&&t instanceof Blob)if(r)return n(t);else return h(t,n);if(u&&(t instanceof ArrayBuffer||c(t)))if(r)return n(t);else return h(new Blob([t]),n);return n(s[e]+(t||""))},h=(e,t)=>{let r=new FileReader;return r.onload=function(){t("b"+(r.result.split(",")[1]||""))},r.readAsDataURL(e)};function f(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<p.length;e++)g[p.charCodeAt(e)]=e;let v="function"==typeof ArrayBuffer,m=(e,t)=>{if("string"!=typeof e)return{type:"message",data:b(e,t)};let r=e.charAt(0);return"b"===r?{type:"message",data:y(e.substring(1),t)}:o[r]?e.length>1?{type:o[r],data:e.substring(1)}:{type:o[r]}:a},y=(e,t)=>v?b((e=>{let t=.75*e.length,r=e.length,n,i=0,s,o,a,l;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let u=new ArrayBuffer(t),c=new Uint8Array(u);for(n=0;n<r;n+=4)s=g[e.charCodeAt(n)],o=g[e.charCodeAt(n+1)],a=g[e.charCodeAt(n+2)],l=g[e.charCodeAt(n+3)],c[i++]=s<<2|o>>4,c[i++]=(15&o)<<4|a>>2,c[i++]=(3&a)<<6|63&l;return u})(e),t):{base64:!0,data:e},b=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;function _(e){return e.reduce((e,t)=>e+t.length,0)}function w(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let i=0;i<t;i++)r[i]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}var x=r(89045);let E="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function S(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}let R=E.setTimeout,k=E.clearTimeout;function T(e,t){t.useNativeTimers?(e.setTimeoutFn=R.bind(E),e.clearTimeoutFn=k.bind(E)):(e.setTimeoutFn=E.setTimeout.bind(E),e.clearTimeoutFn=E.clearTimeout.bind(E))}class A extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class C extends x.v{constructor(e){super(),this.writable=!1,T(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new A(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=m(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=function(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}(e);return t.length?"?"+t:""}}let P="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),O={},I=0,M=0,L;function N(e){let t="";do t=P[e%64]+t,e=Math.floor(e/64);while(e>0);return t}function j(){let e=N(+new Date);return e!==L?(I=0,L=e):e+"."+N(I++)}for(;M<64;M++)O[P[M]]=M;let B=!1;try{B="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let F=B;function D(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||F))return new XMLHttpRequest}catch(e){}if(!t)try{return new E[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}function H(){}let U=null!=new D({xdomain:!1}).responseType;class $ extends C{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){let t="https:"===location.protocol,r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}let t=e&&e.forceBase64;this.supportsBinary=U&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}
1doOpen(){this.poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};((e,t)=>{let r=e.split("\x1e"),n=[];for(let e=0;e<r.length;e++){let i=m(r[e],t);if(n.push(i),"error"===i.type)break}return n})(e,this.socket.binaryType).forEach(t),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{let r=e.length,n=Array(r),i=0;e.forEach((e,s)=>{d(e,!1,e=>{n[s]=e,++i===r&&t(n.join("\x1e"))})})})(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=j()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new z(this.uri(),e)}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class z extends x.v{constructor(e,t){super(),T(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;let t=S(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;let r=this.xhr=new D(t);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders)for(let e in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this.opts.extraHeaders[e])}catch(e){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null==(e=this.opts.cookieJar)||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null==(e=this.opts.cookieJar)||e.parseCookies(r)),4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof r.status?r.status:0)},0))},r.send(this.data)}catch(e){this.setTimeoutFn(()=>{this.onError(e)},0);return}"undefined"!=typeof document&&(this.index=z.requestsCount++,z.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=H,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete z.requests[this.index],this.xhr=null}}onLoad(){let e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}function q(){for(let e in z.requests)z.requests.hasOwnProperty(e)&&z.requests[e].abort()}z.requestsCount=0,z.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",q):"function"==typeof addEventListener&&addEventListener("onpagehide"in E?"pagehide":"unload",q,!1));let V="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),G=E.WebSocket||E.MozWebSocket;r(72076).hp;let W="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class K extends C{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}
1doOpen(){if(!this.check())return;let e=this.uri(),t=this.opts.protocols,r=W?{}:S(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=W?new G(e,t,r):t?new G(e,t):new G(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;d(r,this.supportsBinary,e=>{try{this.ws.send(e)}catch(e){}n&&V(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=j()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!G}}class Y extends C{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{let t=function(e,t){i||(i=new TextDecoder);let r=[],n=0,s=-1,o=!1;return new TransformStream({transform(l,u){for(r.push(l);;){if(0===n){if(1>_(r))break;let e=w(r,1);o=(128&e[0])==128,n=(s=127&e[0])<126?3:126===s?1:2}else if(1===n){if(2>_(r))break;let e=w(r,2);s=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(8>_(r))break;let e=w(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>2097151){u.enqueue(a);break}s=0x100000000*i+t.getUint32(4),n=3}else{if(_(r)<s)break;let e=w(r,s);u.enqueue(m(o?e:i.decode(e),t)),n=0}if(0===s||s>e){u.enqueue(a);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),s=new TransformStream({transform(e,t){var r;r=r=>{let n,i=r.length;if(i<126)new DataView((n=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let e=new DataView((n=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,i)}else{let e=new DataView((n=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(n[0]|=128),t.enqueue(n),t.enqueue(r)},l&&e.data instanceof Blob?e.data.arrayBuffer().then(f).then(r):u&&(e.data instanceof ArrayBuffer||c(e.data))?r(f(e.data)):d(e,!1,e=>{n||(n=new TextEncoder),r(n.encode(e))})}});s.readable.pipeTo(e.writable),this.writer=s.writable.getWriter();let o=()=>{r.read().then(({done:e,value:t})=>{e||(this.onPacket(t),o())}).catch(e=>{})};o();let h={type:"open"};this.query.sid&&(h.data=`{"sid":"${this.query.sid}"}`),this.writer.write(h).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this.writer.write(r).then(()=>{n&&V(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null==(e=this.transport)||e.close()}}let X={websocket:K,webtransport:Y,polling:$},J=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Z=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Q(e){if(e.length>2e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=J.exec(e||""),s={},o=14;for(;o--;)s[Z[o]]=i[o]||"";return -1!=r&&-1!=n&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=function(e,t){let r=t.replace(/\/{2,9}/g,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&r.splice(0,1),"/"==t.slice(-1)&&r.splice(r.length-1,1),r}(0,s.path),s.queryKey=function(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}(0,s.query),s}class ee extends x.v{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=Q(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=Q(t.host).host),T(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},r=e.split("&");for(let e=0,n=r.length;e<n;e++){let n=r[e].split("=");
1t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new X[e](r)}open(){let e;if(this.opts.rememberUpgrade&&ee.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(e){let t=this.createTransport(e),r=!1;ee.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;ee.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function i(){r||(r=!0,u(),t.close(),t=null)}let s=e=>{let r=Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function o(){s("transport closed")}function a(){s("socket closed")}function l(e){t&&e.name!==t.name&&i()}let u=()=>{t.removeListener("open",n),t.removeListener("error",s),t.removeListener("close",o),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",s),t.once("close",o),this.once("close",a),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onOpen(){if(this.readyState="open",ee.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0,t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":let t=Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let r=this.writeBuffer[t].data;if(r&&(e+="string"==typeof r?function(e){let t=0,r=0;for(let n=0,i=e.length;n<i;n++)(t=e.charCodeAt(n))<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}(r):Math.ceil(1.33*(r.byteLength||r.size))),t>0&&e>this.maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){let e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){ee.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){let t=[],r=0,n=e.length;for(;r<n;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}ee.protocol=4,ee.protocol},12582:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(14343),i=r(5620),s=r(97571),o=r(36253),a=r(84697),l=r(24967),u=r(15383);let c=n.forwardRef(function(e,t){let{keepMounted:r=!1,...n}=e,c=(0,o.P)(),d=c.useState("mounted"),h=c.useState("modal"),f=c.useState("open");return d||r?(0,u.jsx)(a.m.Provider,{value:r,children:(0,u.jsxs)(s.XF,{ref:t,...n,children:[d&&!0===h&&(0,u.jsx)(l.W,{ref:c.context.
1internalBackdropRef,inert:(0,i.Y)(!f)}),e.children]})}):null})},13634:(e,t,r)=>{"use strict";r.d(t,{o:()=>h});var n=r(7277),i=r(14343),s=r(75836),o=r(63604);function a(e){if(!i.isValidElement(e))return null;let t=e.props;return((0,o._)(19)?t?.ref:e.ref)??null}var l=r(1543),u=r(49940),c=r(16953),d=r(32830);function h(e,t,r={}){let o=t.render;!1!==r.enabled&&(o=function(e){if(e?.$$typeof!==f)return e;let t=i.Children.toArray(e)[0];return i.isValidElement(t)?t:e}(o));let p=function(e,t,r){var n;let{className:i,style:o}=e,{state:h=u.t0,ref:f,props:p,stateAttributesMapping:g,enabled:v=!0}=t,m=v?"function"==typeof i?i(h):i:void 0,y=v?(0,c.m)(o,h):void 0,b=v?function(e,t){let r={};for(let n in e){let i=e[n];if(t?.hasOwnProperty(n)){let e=t[n](i);null!=e&&Object.assign(r,e);continue}!0===i?r[`data-${n.toLowerCase()}`]="":i&&(r[`data-${n.toLowerCase()}`]=i.toString())}return r}(h,g):u.t0,_=v&&p?Array.isArray(n=p)?(0,d.lZ)(n):(0,d.v6)(void 0,n):void 0,w=v?(0,l.r)(b,_)??{}:u.t0;return("undefined"!=typeof document&&(v?Array.isArray(f)?w.ref=(0,s.U)([w.ref,a(r),...f]):w.ref=(0,s.a)(w.ref,a(r),f):(0,s.a)(null,null)),v)?(void 0!==m&&(w.className=(0,d.VN)(w.className,m)),void 0!==y&&(w.style=(0,l.r)(w.style,y)),w):u.t0}(t,r,o);return!1===r.enabled?null:function(e,t,r,s){if(t){if("function"==typeof t)return t(r,s);let e=(0,d.v6)(r,t.props);return e.ref=r.ref,i.cloneElement(t,e)}if(e&&"string"==typeof e){var o,a;return o=e,a=r,"button"===o?(0,i.createElement)("button",{type:"button",...a,key:a.key}):"img"===o?(0,i.createElement)("img",{alt:"",...a,key:a.key}):i.createElement(o,a)}throw Error((0,n.A)(8))}(e,o,p,r.state??u.t0)}let f=Symbol.for("react.lazy")},14810:(e,t,r)=>{e.exports=r(71082)},15174:(e,t,r)=>{"use strict";r.d(t,{i:()=>m});var n=r(14343),i=r(45848),s=r(32601),o=r(33905),a=r(37900),l=r(87190),u=r(73897),c=r(10352),d=r(36138),h=r(3167),f=r(24082),p=r(2978),g=r(81316);let v=s.Md&&o.Fp;function m(e,t={}){let{enabled:r=!0,delay:s}=t,o="rootStore"in e?e.rootStore:e,{events:y,dataRef:b}=o.context,_=n.useRef(!1),w=n.useRef(null),x=n.useRef(!0),E=(0,u.Z)();n.useEffect(()=>{let e=o.select("domReferenceElement");if(!r)return;let t=(0,c.zk)(e);return(0,a.g)((0,i.q)(t,"blur",function(){let e=o.select("domReferenceElement");!o.select("open")&&(0,c.sb)(e)&&e===(0,h.RS)((0,l.R)(e))&&(_.current=!0,w.current=e)}),v&&(0,i.q)(t,"keydown",function(){x.current=!0},!0),v&&(0,i.q)(t,"pointerdown",function(){x.current=!1},!0))},[o,r]),n.useEffect(()=>{if(r)return y.on("openchange",e),()=>{y.off("openchange",e)};function e(e){if(e.reason===g.Ui||e.reason===g.jv){let e=o.select("domReferenceElement");(0,c.vq)(e)&&(w.current=e,_.current=!0)}}},[y,r,o]);let S=n.useMemo(()=>{function e(){_.current=!1,w.current=null}return{onMouseLeave(){e()},onFocus(t){let r=t.currentTarget;if(_.current){if(w.current===r)return;e()}let n=(0,h.EW)(t.nativeEvent);if((0,c.vq)(n)){if(v&&!t.relatedTarget){if(!x.current&&!(0,f.$u)(n))return}else if(!(0,f.em)(n))return}let i=(0,f.Hi)(t.relatedTarget,o.context.triggerElements),{nativeEvent:a,currentTarget:l}=t,u="function"==typeof s?s():s;if(o.select("open")&&i||0===u||void 0===u)return void o.setOpen(!0,(0,p.d)(g.F4,a,l));E.start(u,()=>{_.current||o.setOpen(!0,(0,p.d)(g.F4,a,l))})},onBlur(t){e();let r=t.relatedTarget,n=t.nativeEvent,i=(0,c.vq)(r)&&r.hasAttribute((0,d.F)("focus-guard"))&&"outside"===r.getAttribute("data-type");E.start(0,()=>{let e=o.select("domReferenceElement"),t=(0,h.RS)((0,l.R)(e));if(!r&&t===e||(0,h.gR)(b.current.floatingContext?.refs.floating.current,t)||(0,h.gR)(e,t)||i)return;let s=r??t;(0,f.Hi)(s,o.context.triggerElements)||o.setOpen(!1,(0,p.d)(g.F4,n))})}}},[b,s,o,E]);return n.useMemo(()=>r?{reference:S,trigger:S}:{},[r,S])}},15451:(e,t,r)=>{"use strict";r.d(t,{s:()=>k});var n=r(14343),i=r(38802),s=r(10352),o=r(87190),a=r(73858),l=r(97120),u=r(41790),c=r(78170),d=r(33475),h="undefined"!=typeof document?n.useLayoutEffect:function(){};function f(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!f(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];
1if(("_owner"!==r||!e.$$typeof)&&!f(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function p(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function g(e,t){let r=p(e);return Math.round(t*r)/r}function v(e){let t=n.useRef(e);return h(()=>{t.current=e}),t}var m=r(72949);function y(e){return function(e,t){let{nodeId:r,externalTree:i}=e,o=t.useState("referenceElement"),l=t.useState("floatingElement"),u=t.useState("domReferenceElement"),y=t.useState("open"),b=t.useState("floatingId"),[_,w]=n.useState(null),[x,E]=n.useState(void 0),[S,R]=n.useState(void 0),k=n.useRef(null),T=(0,m.cq)(i),A=n.useMemo(()=>({reference:o,floating:l,domReference:u}),[o,l,u]),C=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:s,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:u,open:m}=e,[y,b]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[_,w]=n.useState(i);f(_,i)||w(i);let[x,E]=n.useState(null),[S,R]=n.useState(null),k=n.useCallback(e=>{e!==P.current&&(P.current=e,E(e))},[]),T=n.useCallback(e=>{e!==O.current&&(O.current=e,R(e))},[]),A=o||x,C=a||S,P=n.useRef(null),O=n.useRef(null),I=n.useRef(y),M=null!=u,L=v(u),N=v(s),j=v(m),B=n.useCallback(()=>{if(!P.current||!O.current)return;let e={placement:t,strategy:r,middleware:_};N.current&&(e.platform=N.current),(0,c.rD)(P.current,O.current,e).then(e=>{let t={...e,isPositioned:!1!==j.current};F.current&&!f(I.current,t)&&(I.current=t,d.flushSync(()=>{b(t)}))})},[_,t,r,N,j]);h(()=>{!1===m&&I.current.isPositioned&&(I.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[m]);let F=n.useRef(!1);h(()=>(F.current=!0,()=>{F.current=!1}),[]),h(()=>
1{if(A&&(P.current=A),C&&(O.current=C),A&&C){if(L.current)return L.current(A,C,B);B()}},[A,C,B,L,M]);let D=n.useMemo(()=>({reference:P,floating:O,setReference:k,setFloating:T}),[k,T]),H=n.useMemo(()=>({reference:A,floating:C}),[A,C]),U=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!H.floating)return e;let t=g(H.floating,y.x),n=g(H.floating,y.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...p(H.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,H.floating,y.x,y.y]);return n.useMemo(()=>({...y,update:B,refs:D,elements:H,floatingStyles:U}),[y,B,D,H,U])}({...e,elements:{...A,..._&&{reference:_}}}),P=(0,s.vq)(x)?x:null,O=void 0===S?t.state.floatingElement:S;t.useSyncedValue("referenceElement",x??null),t.useSyncedValue("domReferenceElement",void 0===x?u:P),t.useSyncedValue("floatingElement",O);let I=n.useCallback(e=>{let t=(0,s.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;w(t),C.refs.setReference(t)},[C.refs]),M=n.useCallback(e=>{((0,s.vq)(e)||null===e)&&(k.current=e,E(e)),((0,s.vq)(C.refs.reference.current)||null===C.refs.reference.current||null!==e&&!(0,s.vq)(e))&&C.refs.setReference(e)},[C.refs,E]),L=n.useCallback(e=>{R(e),C.refs.setFloating(e)},[C.refs]),N=n.useMemo(()=>({...C.refs,setReference:M,setFloating:L,setPositionReference:I,domReference:k}),[C.refs,M,L,I]),j=n.useMemo(()=>({...C.elements,domReference:u}),[C.elements,u]),B=n.useMemo(()=>({...C,dataRef:t.context.dataRef,open:y,onOpenChange:t.setOpen,events:t.context.events,floatingId:b,refs:N,elements:j,nodeId:r,rootStore:t}),[C,N,j,r,t,y,b]);return(0,a.g)(()=>{u&&(k.current=u)},[u]),(0,a.g)(()=>{t.context.dataRef.current.floatingContext=B;let e=T?.nodesRef.current.find(e=>e.id===r);e&&(e.context=B)}),n.useMemo(()=>({...C,context:B,refs:N,elements:j,rootStore:t}),[C,N,j,B,t])}(e,e.rootContext)}var b=r(22025);let _={name:"hide",async fn(e){let{width:t,height:r,x:n,y:i}=e.rects.reference,s=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:s.top-r>=0||s.right-t>=0||s.bottom-r>=0||s.left-t>=0||0===t&&0===r&&0===n&&0===i}}}},w={sideX:"left",sideY:"top"},x="--available-width",E="--available-height";function S(e,t,r){let n="inline-start"===e||"inline-end"===e;return({top:"top",right:n?r?"inline-start":"inline-end":"right",bottom:"bottom",left:n?r?"inline-end":"inline-start":"left"})[t]}function R(e,t,r){let{rects:n,placement:s}=e;return{side:S(t,(0,i.C0)(s),r),align:(0,i.Sg)(s)||"center",anchor:{width:n.reference.width,height:n.reference.height},positioner:{width:n.floating.width,height:n.floating.height}}}function k(e){return function(e,t){var r,d;let{anchor:h,positionMethod:f="absolute",side:p="bottom",sideOffset:g=0,align:v="center",alignOffset:m=0,collisionBoundary:y,collisionPadding:k=5,sticky:A=!1,arrowPadding:C=5,disableAnchorTracking:P=!1,inline:O,keepMounted:I=!1,floatingRootContext:M,mounted:L,collisionAvoidance:N,shift:j,nodeId:B,adaptiveOrigin:F,lazyFlip:D=!1,externalTree:H}=e,[U,$]=n.useState(null);L||null===U||$(null);let z=N.side||"flip",q=N.align||"flip",V=N.fallbackAxisSide||"end",G=j?.crossAxis??!1,W=j?.rootBoundary,K="function"==typeof h?h:void 0,Y=(0,u.K)(K),X=K?Y:h,J=(0,l.u)(h),Z=(0,l.u)(L),Q="rtl"===(0,b.j)(),ee=U||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":Q?"left":"right","inline-start":Q?"right":"left"})[p],et="center"===v?ee:`${ee}-${v}`,er=k;"number"==typeof er?er={top:er,right:er,bottom:er,left:er}:er&&(er={top:er.top||0,right:er.right||0,bottom:er.bottom||0,left:er.left||0});let en=+("bottom"===p),ei=+("top"===p),es=+("right"===p),eo=+("left"===p),ea={boundary:"clipping-ancestors"===y?"clippingAncestors":y,padding:er},el=n.useRef(null),eu=(0,l.u)(g),ec=(0,l.u)(m),ed="function"!=typeof g?g:0,eh="function"!=typeof m?m:0,ef=[];O&&ef.push(O),ef.push(((e,t)=>{let r=(0,c.cY)(e);return{name:r.name,fn:r.fn,options:[e,t]}})(e=>{let t=R(e,p,Q),r="function"==typeof eu.current?eu.current(t):eu.current,n="function"==typeof ec.current?ec.current(t):ec.current;return{mainAxis:r,crossAxis:n,alignmentAxis:n}},[ed,eh,Q,p]));let ep="none"===q&&"shift"!==z,eg=!ep&&(A||G||"shift"===z),ev="none"===z?null:((e,t)=>{let r=(0,c.UU)(e);return{name:r.name,fn:r.fn,options:[e,t]}})({...ea,padding:{top:er.top+1+en,right:er.right+1+eo,bottom:er.bottom+1+ei,left
1:er.left+1+es},mainAxis:!G&&"flip"===z,crossAxis:"flip"===q&&"alignment",fallbackAxisSideDirection:V}),em=ep?null:((e,t)=>{let r=(0,c.BN)(e);return{name:r.name,fn:r.fn,options:[e,t]}})({...ea,rootBoundary:W,mainAxis:"none"!==q,crossAxis:eg,limiter:A||G?void 0:(r=e=>{if(!el.current)return{};let{width:t,height:r}=el.current.getBoundingClientRect(),n=(0,i.TV)((0,i.C0)(e.placement)),s="y"===n?er.left+er.right:er.top+er.bottom;return{offset:("y"===n?t:r)/2+s/2}},{fn:(0,c.ER)(r).fn,options:[r,d]})},[ea,A,G,W,er,q]);"shift"===z||"shift"===q||"center"===v?ef.push(em,ev):ef.push(ev,em),ef.push(((e,t)=>{let r=(0,c.Ej)(e);return{name:r.name,fn:r.fn,options:[e,t]}})({...ea,apply({elements:{floating:e},availableWidth:t,availableHeight:r,rects:n}){if(!Z.current)return;let i=e.style;i.setProperty(x,`${t}px`),i.setProperty(E,`${r}px`);let o=(0,s.zk)(e).devicePixelRatio||1,{x:a,y:l,width:u,height:c}=n.reference,d=(Math.round((a+u)*o)-Math.round(a*o))/o,h=(Math.round((l+c)*o)-Math.round(l*o))/o;i.setProperty("--anchor-width",`${d}px`),i.setProperty("--anchor-height",`${h}px`)}}),((e,t)=>{let r,{name:n,fn:s}={name:"arrow",options:r=e,async fn(e){let{x:t,y:n,placement:s,rects:o,platform:a,elements:l,middlewareData:u}=e,{element:c,padding:d=0,offsetParent:h="real"}=(0,i._3)(r,e)||{};if(null==c)return{};let f=(0,i.nI)(d),p={x:t,y:n},g=(0,i.Dz)(s),v=(0,i.sq)(g),m=await a.getDimensions(c),y="y"===g,b=y?"clientHeight":"clientWidth",_=o.reference[v]+o.reference[g]-p[g]-o.floating[v],w=p[g]-o.reference[g],x="real"===h?await a.getOffsetParent?.(c):l.floating,E=l.floating[b]||o.floating[v];E&&await a.isElement?.(x)||(E=l.floating[b]||o.floating[v]);let S=E/2-m[v]/2-1,R=Math.min(f[y?"top":"left"],S),k=Math.min(f[y?"bottom":"right"],S),T=E-m[v]-k,A=E/2-m[v]/2+(_/2-w/2),C=(0,i.qE)(R,A,T),P=!u.arrow&&null!=(0,i.Sg)(s)&&A!==C&&o.reference[v]/2-(A<R?R:k)-m[v]/2<0,O=P?A<R?A-R:A-T:0;return{[g]:p[g]+O,data:{[g]:C,centerOffset:A-C-O,...P&&{alignmentOffset:O}},reset:P}}};return{name:n,fn:s,options:[e,t]}})(e=>({element:el.current||(0,o.R)(e.elements.floating).createElement("div"),padding:el.current?C:0,offsetParent:"floating"}),[C]),{name:"transformOrigin",fn(e){let t,{elements:{floating:r},middlewareData:n,placement:s,platform:o,rects:a,y:l}=e,u=(0,i.C0)(s),c=(0,i.Sg)(s),d="y"===(0,i.TV)(u),h=el.current,f="function"==typeof g?g(R(e,p,Q)):g;if(!h&&c&&1>=Math.abs(d?n.shift?.x||0:n.shift?.y||0))t="start"===c===(d&&o.isRTL?.(r)===!0)?"100%":"0%";else{let e=d?n.arrow?.x||0:n.arrow?.y||0,r=d?h?.clientWidth||0:h?.clientHeight||0;t=`${e+r/2}px`}let v="top"===u||"left"===u?`calc(100% + ${f}px)`:`${-f}px`;return eg&&d&&Math.abs(n.shift?.y||0)>f&&(v=`${a.reference.y+a.reference.height/2-l}px`),r.style.setProperty("--transform-origin",d?`${t} ${v}`:`${v} ${t}`),{}}},_,F),(0,a.g)(()=>{!L&&M&&M.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[L,M]);let ey=n.useMemo(()=>({ancestorScroll:!P,elementResize:!P&&"undefined"!=typeof ResizeObserver,layoutShift:!P&&"undefined"!=typeof IntersectionObserver}),[P]),{refs:eb,elements:e_,x:ew,y:ex,middlewareData:eE,update:eS,placement:eR,context:ek,isPositioned:eT,floatingStyles:eA}=t({rootContext:M,open:I?L:void 0,placement:et,middleware:ef,strategy:f,whileElementsMounted:I?void 0:(...e)=>(0,c.ll)(...e,ey),nodeId:B,externalTree:H}),{sideX:eC,sideY:eP}=eE.adaptiveOrigin||w,eO=eT?f:"fixed",eI=n.useMemo(()=>{let e;return(e=eT?F?{position:eO,[eC]:ew,[eP]:ex}:{...eA,position:eO}:{position:eO,top:0,left:0})[x]="100vw",e[E]="100vh",eT||(e.opacity=0),e},[F,eO,eC,ew,eP,ex,eA,eT]),eM=n.useRef(null);(0,a.g)(()=>{if(!L)return;let e=J.current,t="function"==typeof e?e():e,r=(T(t)?t.current:t)||null;r!==eM.current&&(eb.setPositionReference(r),eM.current=r)},[L,eb,X,J]),n.useEffect(()=>{if(!L)return;let e=J.current;"function"!=typeof e&&T(e)&&e.current!==eM.current&&(eb.setPositionReference(e.current),eM.current=e.current)},[L,eb,X,J]),n.useEffect(()=>{if(I&&L&&e_.reference&&e_.floating)return(0,c.ll)(e_.reference,e_.floating,eS,ey)},[I,L,e_,eS,ey]);let eL=(0,i.C0)(eR),eN=S(p,eL,Q),ej=(0,i.Sg)(eR)||"center",eB=!!eE.hide?.referenceHidden;(0,a.g)(()=>{D&&L&&eT&&eL!==ee&&$(eL)},[D,L,eT,eL,ee]);let eF=n.useMemo(()=>
1({position:"absolute",top:eE.arrow?.y,left:eE.arrow?.x}),[eE.arrow]),eD=eE.arrow?.centerOffset!==0;return n.useMemo(()=>({positionerStyles:eI,arrowStyles:eF,arrowRef:el,arrowUncentered:eD,side:eN,align:ej,physicalSide:eL,anchorHidden:eB,refs:eb,context:ek,isPositioned:eT,update:eS}),[eI,eF,el,eD,eN,ej,eL,eB,eb,ek,eT,eS])}(e,y)}function T(e){return null!=e&&"current"in e}},15823:(e,t,r)=>{e.exports=r(92031)},16265:(e,t,r)=>{"use strict";r.d(t,{B:()=>a});var n=r(14343),i=r(18979);let s=0,o=i.X.useId;function a(e,t){if(void 0!==o){let r=o();return e??(t?`${t}-${r}`:r)}return function(e,t="mui"){let[r,i]=n.useState(e),o=e||r;return n.useEffect(()=>{null==r&&(s+=1,i(`${t}-${s}`))},[r,t]),o}(e,t)}},16801:(e,t,r)=>{"use strict";r.d(t,{j:()=>s});var n=r(14343);let i={};function s(e,t){let r=n.useRef(i);return r.current===i&&(r.current=e(t)),r}},16953:(e,t,r)=>{"use strict";function n(e,t){return"function"==typeof e?e(t):e}r.d(t,{m:()=>n})},17205:(e,t,r)=>{"use strict";r.d(t,{P:()=>c});var n=r(10352),i=r(16265),s=r(73858),o=r(16801),a=r(45450),l=r(72949),u=r(54658);function c(e){let{open:t=!1,onOpenChange:r,elements:c={}}=e,d=(0,i.B)(),h=null!=(0,l.R1)(),f=(0,o.j)(()=>new u.K({open:t,transitionStatus:void 0,onOpenChange:r,referenceElement:c.reference??null,floatingElement:c.floating??null,triggerElements:new a.Z,floatingId:d,syncOnly:!1,nested:h})).current;return(0,s.g)(()=>{let e={open:t,floatingId:d};void 0!==c.reference&&(e.referenceElement=c.reference,e.domReferenceElement=(0,n.vq)(c.reference)?c.reference:null),void 0!==c.floating&&(e.floatingElement=c.floating),f.update(e)},[t,d,c.reference,c.floating,f]),f.context.onOpenChange=r,f.context.nested=h,f}},18303:(e,t,r)=>{"use strict";r.d(t,{d:()=>n}),r(21014).L;let n="data-trigger-disabled"},18350:function(e,t,r){var n,i;void 0===(i="function"==typeof(n=function(){var e,t,r,n={};n.version="0.2.0";var i=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function s(e,t,r){return e<t?t:e>r?r:e}n.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(i[t]=r);return this},n.status=null,n.set=function(e){var t=n.isStarted();n.status=1===(e=s(e,i.minimum,1))?null:e;var r=n.render(!t),l=r.querySelector(i.barSelector),u=i.speed,c=i.easing;return r.offsetWidth,o(function(t){var s,o,d,h;""===i.positionUsing&&(i.positionUsing=n.getPositioningCSS()),a(l,(s=e,o=u,d=c,(h="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+s)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+s)*100+"%,0)"}:{"margin-left":(-1+s)*100+"%"}).transition="all "+o+"ms "+d,h)),1===e?(a(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){a(r,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){n.remove(),t()},u)},u)):setTimeout(t,u)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout(function(){n.status&&(n.trickle(),e())},i.trickleSpeed)};return i.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*s(Math.random()*t,.1,.95)),t=s(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*i.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&n.start(),e++,t++,r.always(function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=i.template;var r,s=t.querySelector(i.barSelector),o=e?"-100":(-1+(n.status||0))*100,l=document.querySelector(i.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+o+"%,0,0)"}),!i.showSpinner&&(r=t.querySelector(i.spinnerSelector))&&h(r),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(t),t},n.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(i.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&h(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var o=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),a=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,n,i){var s;n=t[s=(s=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[s]=function(t){var r=document.body.style;if(t in r)return t;for(var n,i=e.length,s=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((n=e[i]+s)in r)return n;return t}(s)),r.style[n]=i}return function(e,t){var n,i,s=arguments;if(2==s.length)for(n in t)void 0!==(i=t[n])&&t.hasOwnProperty(n)&&r(e,n,i);else r(e,s[1],s[2])}}();function l(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function u(e,t){var r=d(e),n=r+t;l(r,t)||(e.className=n.substring(1))}function c(e,t){var r,n=d(e);l(e,t)&&(e.className=(r=n.replace(" "+t+" "," ")).substring(1,r.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function h(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})?n.call(t,r,t,e):n)||(e.exports=i)},18667:(e,t,r)=>{"use strict";r.d(t,{$:()=>o});var n=r(14343),i=r(73858),s=r(77423);function o(e,t=!1,r=!1,a=!1){let[l,u]=n.useState(e&&t?"idle":void 0),[c,d]=n.useState(e&&!a);return e&&!c&&(d(!0),u("starting")),e||!c||"ending"===l||r||u("ending"),e||c||"ending"!==l||u(void 0),(0,i.g)(()=>
1{if(!e&&c&&"ending"!==l&&r){let e=s.KP.request(()=>{u("ending")});return()=>{s.KP.cancel(e)}}},[e,c,l,r]),(0,i.g)(()=>{if(!e||t)return;let r=s.KP.request(()=>{u(void 0)});return()=>{s.KP.cancel(r)}},[t,e]),(0,i.g)(()=>{if(!e||!t)return;e&&c&&"idle"!==l&&u("starting");let r=s.KP.request(()=>{u("idle")});return()=>{s.KP.cancel(r)}},[t,e,c,l]),{mounted:c,setMounted:d,transitionStatus:l}}},18906:(e,t,r)=>{"use strict";r.d(t,{D:()=>_});var n=r(29385),i=r(14343),s=r(73858),o=r(87944),a=r(3566),l=r(3167),u=r(290);function c({store:e,parentContext:t,isDrawer:r}){let n=e.useState("open"),c=e.useState("disablePointerDismissal"),d=e.useState("modal"),h=e.useState("popupElement"),f=e.useState("floatingRootContext"),[p,g]=i.useState(0),[v,m]=i.useState(0),y=0===p,b=(0,a.s)(f,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===d?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button)return!1;if("touches"in t){if("touchend"===t.type){if(1!==t.changedTouches.length||0!==t.touches.length)return!1}else if(1!==t.touches.length)return!1}let r=(0,l.EW)(t);if(y&&!c){if(d){let t=e.context.internalBackdropRef.current,n=e.context.backdropRef.current;return!t&&!n||t===r||n===r||(0,l.gR)(r,h)&&!r?.hasAttribute("data-base-ui-portal")}return!0}return!1},escapeKey:y});return(0,o.K)(n&&!0===d,h),e.useContextCallback("onNestedDialogOpen",(e,t)=>{g(e),m(t)}),(0,s.g)(()=>(t?.onNestedDialogOpen&&(n?t.onNestedDialogOpen(p+1,v+ +!!r):t.onNestedDialogOpen(0,0)),()=>{t?.onNestedDialogOpen&&n&&t.onNestedDialogOpen(0,0)}),[r,n,p,v,t]),(0,u.i6)(e,{activeTriggerProps:b.reference,inactiveTriggerProps:b.trigger,popupProps:b.floating,nestedOpenDialogCount:p,nestedOpenDrawerCount:v}),null}var d=r(36253),h=r(81532),f=r(91945),p=r(45450);let g={...f.o,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class v extends h.H{constructor(e,t,r){var n;let s=new p.Z;super(function(e,t,r,n=!1){return{...(0,f.r)(t,r,n),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e,s,t,r),(n=s,{popupRef:i.createRef(),backdropRef:i.createRef(),internalBackdropRef:i.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:n,onOpenChange:void 0,onOpenChangeComplete:void 0}),g)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update((0,u.cQ)(this.state,e,t.trigger)))}}var m=r(2978),y=r(81316),b=r(15383);let _=(0,n.G1)(function(e){return function(e,t){let{children:r,open:n,defaultOpen:s=!1,onOpenChange:o,onOpenChangeComplete:a,disablePointerDismissal:l=!1,modal:h=!0,actionsRef:f,handle:p,triggerId:g,defaultTriggerId:_=null}=t,w="alert-dialog"===e,x=(0,d.P)(!0),E={modal:!!w||h,disablePointerDismissal:w||l,nested:null!=x,role:w?"alertdialog":"dialog"},S=(0,u.xp)((e,t)=>new v({open:s,openProp:n,activeTriggerId:_,triggerIdProp:g,...E},e,t),!0);S.useControlledProp("openProp",n),S.useControlledProp("triggerIdProp",g),S.useSyncedValues(E),S.useContextCallback("onOpenChange",o),S.useContextCallback("onOpenChangeComplete",a);let R=S.useState("open"),k=S.useState("mounted"),T=S.useState("payload");(0,u.xs)(S,R),(0,u.tr)(S);let{forceUnmount:A}=(0,u.l$)(R,S);i.useImperativeHandle(f,()=>({unmount:A,close:()=>S.setOpen(!1,(0,m.d)(y.zJ))}),[A,S]);let C=R||k;return(0,b.jsxs)(d.a.Provider,{value:S,children:[p&&(0,b.jsx)(u.Ae,{handle:p,store:S}),C&&(0,b.jsx)(c,{store:S,parentContext:x?.context,isDrawer:"drawer"===e}),"function"==typeof r?r({payload:T}):r]})}("dialog",e)})},18979:(e,t,r)=>{"use strict";r.d(t,{X:()=>s});var n,i=r(14343);let s={...n||(n=r.t(i,2))}},19123:(e,t,r)=>{"use strict";r.d(t,{G:()=>l,L:()=>a});var n=r(14343),i=r(41790),s=r(32601),o=r(45449);function a(e,t){let{onClick:r,onPointerDown:o}=function(e){let t=n.useRef(""),r=n.useCallback(r=>{r.defaultPrevented||(t.current=r.pointerType,e(r,r.pointerType))},[e]);return{onClick:n.useCallback(r=>
1{if(0===r.detail)return void e(r,"keyboard");"pointerType"in r?e(r,r.pointerType):e(r,t.current),t.current=""},[e]),onPointerDown:r}}((0,i.K)((r,n)=>{("function"==typeof e?e():e)||t(n||(s.s4?"touch":""))}));return n.useMemo(()=>({onClick:r,onPointerDown:o}),[r,o])}function l(e){let[t,r]=n.useState(null),i=a(e,r);return(0,o.x)(e,t=>{t&&!e&&r(null)}),n.useMemo(()=>({openMethod:t,triggerProps:i}),[t,i])}},19246:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>oj});var n="undefined"!=typeof window?window:void 0,i="undefined"!=typeof globalThis?globalThis:n;"undefined"==typeof self&&(i.self=i),"undefined"==typeof File&&(i.File=function(){});var s=null==i?void 0:i.navigator,o=null==i?void 0:i.document,a=null==i?void 0:i.location,l=null==i?void 0:i.fetch,u=null!=i&&i.XMLHttpRequest&&"withCredentials"in new i.XMLHttpRequest?i.XMLHttpRequest:void 0,c=null==i?void 0:i.AbortController,d=null==i?void 0:i.CompressionStream,h=null==s?void 0:s.userAgent,f=null!=n?n:{},p="1.395.0",g={DEBUG:!1,LIB_VERSION:p,LIB_NAME:"web",JS_SDK_VERSION:p};function v(e,t,r,n,i,s,o){try{var a=e[s](o),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,i)}function m(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(e){v(s,n,i,o,a,"next",e)}function a(e){v(s,n,i,o,a,"throw",e)}o(void 0)})}}function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function b(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var _=e=>{if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return e}};function w(e){return"string"==typeof e||e}function x(e){return"string"==typeof e?e:void 0}var E,S=function(e){return e.AnonymousId="anonymous_id",e.DistinctId="distinct_id",e.Props="props",e.EnablePersonProcessing="enable_person_processing",e.PersonMode="person_mode",e.FeatureFlagDetails="feature_flag_details",e.FeatureFlags="feature_flags",e.FeatureFlagPayloads="feature_flag_payloads",e.BootstrapFeatureFlagDetails="bootstrap_feature_flag_details",e.BootstrapFeatureFlags="bootstrap_feature_flags",e.BootstrapFeatureFlagPayloads="bootstrap_feature_flag_payloads",e.OverrideFeatureFlags="override_feature_flags",e.Queue="queue",e.LogsQueue="logs_queue",e.OptedOut="opted_out",e.SessionId="session_id",e.SessionStartTimestamp="session_start_timestamp",e.SessionLastTimestamp="session_timestamp",e.PersonProperties="person_properties",e.GroupProperties="group_properties",e.InstalledAppBuild="installed_app_build",e.InstalledAppVersion="installed_app_version",e.SessionReplay="session_replay",e.SessionReplayEventTriggerActivatedSession="session_replay_event_trigger_activated_session",e.SurveyLastSeenDate="survey_last_seen_date",e.SurveysSeen="surveys_seen",e.Surveys="surveys",e.RemoteConfig="remote_config",e.FlagsEndpointWasHit="flags_endpoint_was_hit",e.DeviceId="device_id",e}({}),R=function(e){return e.GZipJS="gzip-js",e.Base64="base64",e}({}),k=["$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"],T=["token"],A="NativeGzipValidationError",C=e=>e.length>=2&&31===e[0]&&139===e[1],P=e=>!(!e||"object"!=typeof e)&&"NotReadableError"===("name"in e?String(e.name):""),O=e=>{var t=Error("Native gzip produced invalid output: "+e);throw t.name=A,t},I=function(){var e=m(function*(e,t){18>e.size&&O("too-short");var r=new Uint8Array((yield e.slice(0,10).arrayBuffer()));C(r)&&8===r[2]||O("invalid-header");var n=new DataView((yield e.slice(e.size-8).arrayBuffer()));n.getUint32(0,!0)!==(e=>{for(var t=(()=>{if(E)return E;E=[];for(var e=0;256>e;e++){for(var t=e,r=0;8>r;r++)t=1&t?0xedb88320^t>>>1:t>>>1;E[e]=t>>>0}return E})(),r=0xffffffff,n=0;e.length>n;n++)r=t[255&(r^e[n])]^r>>>8;return(0xffffffff^r)>>>0})(t)&&O("invalid-crc");var i=t.length>>>0;n.getUint32(4,!0)!==i&&O("invalid-size")});return function(t,r){return e.apply(this,arguments)}}();function M(){return(M=m(function*(e,t,r){void 0===t&&(t=!0);try{var n,i=(new TextEncoder).encode(e),s=new CompressionStream("gzip"),o=s.writable.getWriter(),a=o.write(i).then(()=>o.close()).catch((n=m(function*(e){try{yield o.abort(e)}catch(e){}throw e}),function(e){return n.apply(this,arguments)})),l=new Response(s.readable).blob(),[u]=yield Promise.all([l,a]);return yield I(u,i),u}catch(e){if(null!=r&&r.rethrow)throw e;return t&&console.error("Failed to gzip compress data",e),null}})).apply(this,arguments)}var L=["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","hub
1spot","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"],N=function(e,t){if(void 0===t&&(t=[]),!e)return!1;var r=e.toLowerCase();return L.concat(t).some(e=>{var t=e.toLowerCase();return -1!==r.indexOf(t)})};function j(e,t){return -1!==e.indexOf(t)}var B=function(e){return e.trim()},F=function(e){return e.replace(/^\$/,"")},D=Object.prototype,H=D.hasOwnProperty,U=D.toString,$=Array.isArray||function(e){return"[object Array]"===U.call(e)},z=e=>"function"==typeof e,q=e=>e===Object(e)&&!$(e),V=e=>{if(q(e)){for(var t in e)if(H.call(e,t))return!1;return!0}return!1},G=e=>void 0===e,W=e=>"[object String]"==U.call(e),K=e=>W(e)&&0===e.trim().length,Y=e=>null===e,X=e=>G(e)||Y(e),J=e=>"[object Number]"==U.call(e)&&e==e,Z=e=>J(e)&&e>0,Q=e=>"[object Boolean]"===U.call(e),ee=e=>j(k,e),et=e=>j(T,e);function er(e){return null===e||"object"!=typeof e}function en(e,t){return({}).toString.call(e)==="[object "+t+"]"}function ei(e){return"undefined"!=typeof Event&&function(e,t){try{return e instanceof t}catch(e){return!1}}(e,Event)}var es=[!0,"true",1,"1","yes"],eo=e=>j(es,e),ea=[!1,"false",0,"0","no"];function el(e,t,r,n,i){return t>r&&(n.warn("min cannot be greater than max."),t=r),J(e)?e>r?(n.warn(" cannot be  greater than max: "+r+". Using max value instead."),r):t>e?(n.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(n.warn(" must be a number. using max or fallback. max: "+r+", fallback: "+i),el(i||r,t,r,n))}class eu{constructor(e){this.Ee={},this.Pe=e.Pe,this.Fe=el(e.bucketSize,0,100,e.Ae),this.$e=el(e.refillRate,0,this.Fe,e.Ae),this.De=el(e.refillInterval,0,864e5,e.Ae)}Ne(e,t){var r=Math.floor((t-e.lastAccess)/this.De);r>0&&(e.tokens=Math.min(e.tokens+r*this.$e,this.Fe),e.lastAccess=e.lastAccess+r*this.De)}consumeRateLimit(e){var t,r=Date.now(),n=String(e),i=this.Ee[n];return i?this.Ne(i,r):this.Ee[n]=i={tokens:this.Fe,lastAccess:r},0===i.tokens||(i.tokens--,0===i.tokens&&(null==(t=this.Pe)||t.call(this,e)),0===i.tokens)}stop(){this.Ee={}}}var ec="Mobile",ed="Android",eh="Tablet",ef=ed+" "+eh,ep="iPad",eg="Apple",ev=eg+" Watch",em="Safari",ey="BlackBerry",eb="Samsung",e_=eb+"Browser",ew=eb+" Internet",ex="Chrome",eE=ex+" OS",eS=ex+" iOS",eR="Internet Explorer",ek=eR+" "+ec,eT="Opera",eA=eT+" Mini",eC="Edge",eP="Microsoft "+eC,eO="Firefox",eI=eO+" iOS",eM="Nintendo",eL="PlayStation",eN="Xbox",ej=ed+" "+ec,eB=ec+" "+em,eF="Windows",eD=eF+" Phone",eH="Nokia",eU="Ouya",e$="Generic",ez=e$+" "+ec.toLowerCase(),eq=e$+" "+eh.toLowerCase(),eV="Konqueror",eG="Oculus Browser",eW="Vivaldi",eK="Yandex",eY="Whale",eX="DuckDuckGo",eJ="Pale Moon",eZ="Waterfox",eQ="Brave",e0="Google Search App",e1="(\\d+(\\.\\d+)?)",e2=RegExp("Version/"+e1),e3=RegExp(eN,"i"),e4=RegExp(eL+" \\w+","i"),e5=RegExp(eM+" \\w+","i"),e8=RegExp(ey+"|PlayBook|BB10","i"),e6={"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"},e9=function(e,t,r,n){var i;return t=t||"",(null!=r&&r.brave?eQ:null)||(null!=n&&n.detectGoogleSearchApp&&j(e,"GSA/")?e0:j(e," OPR/")&&j(e,"Mini")?eA:j(e," OPR/")?eT:e8.test(e)?ey:j(e,"IE"+ec)||j(e,"WPDesktop")?ek:j(e,"OculusBrowser")?eG:j(e,e_)?ew:j(e,eC)||j(e,"Edg/")?eP:j(e,eW+"/")?eW:j(e,"YaBrowser/")?eK:j(e,eY+"/")?eY:j(e,eX+"/")||j(e,"Ddg/")?eX:j(e,"FBIOS")?"Facebook "+ec:j(e,"UCWEB")||j(e,"UCBrowser")?"UC Browser":j(e,"CriOS")?eS:j(e,"CrMo")||j(e,ex)?ex:j(e,ed)&&j(e,em)?ej:j(e,"FxiOS")?eI:j(e.toLowerCase(),eV.toLowerCase())?eV:j(e,eQ+"/")?eQ:(i=t)&&j(i,eg)||j(e,em)&&!j(e,ex)&&!j(e,ed)?j(e,ec)?eB:em:j(e,"PaleMoon/")?eJ:j(e,eZ+"/")?eZ:j(e,eO)?eO:j(e,"MSIE")||j(e,"Trident/")?eR:j(e,"Gecko")?eO:"")},e7={[ek]:[RegExp("rv:"+e1)],[eP]:[RegExp(eC+"?\\/"+e1)],[ex]:[RegExp("("+ex+"|CrMo)\\/"+e1)],[eS]:[RegExp("CriOS\\/"+e1)],"UC Browser":[RegExp("(UCBrowser|UCWEB)\\/"+e1)],[em]:[e2],[eB]:[e2],[eT]:[RegExp("(Opera|OPR)\\/"+e1)],[eO]:[RegExp(eO+"\\/"+e1)],[eI]:[RegExp("FxiOS\\/"+e1)],[eV]:[RegExp("Konqueror[:/]?"+e1,"i")],[ey]:[RegExp(ey+" "+e1),e2],[ej]:[RegExp("android\\s"+e1,"i")],[ew]:[RegExp(e_+"\\/"+e1)],[eG]:[RegExp("OculusBrowser\\/"+e1)],[eW]:[RegExp(eW+"\\/"+e1)],[eK]:[RegExp("YaBrowser\\/"+e1)],[eY]:[RegExp(eY+"\\/"+e1)],[eQ]:[RegExp(eQ+"\\/"+e1)],[eX]:[RegExp("(DuckDuckGo|Ddg)\\/"+e1)],[eJ]:[RegExp("PaleMoon\\/"+e1)],[eZ]:[RegExp(eZ+"\\/"+e1)],[e0]:[RegExp("GSA\\/"+e1)],[eR]:[RegExp("(rv:|MSIE )"+e1)],Mozilla:[RegExp("rv:"+e1)]},te=function(e,t,r,n){var i=e7[e9(e,t,r,n)];if(G(i))return null;for(var s=0;i.length>s;s++){var o=e.match(i[s]);if(o)return parseFloat(o[o.length-2])}return null},tt=[[RegExp(eN+"; "+eN+" (.*?)[);]","i"),e=>[eN,e&&e[1]||""]],[RegExp(eM,"i"),[eM,""]],[RegExp(eL,"i"),[eL,""]],[e8,[ey,""]],[RegExp(eF,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[eD,""];if(new RegExp(ec).test(t)&&!/IEMobile\b/.test(t))return[eF+" "+ec,""];
1var r=/Windows NT ([0-9.]+)/i.exec(t);if(r&&r[1]){var n=e6[r[1]]||"";return/arm/i.test(t)&&(n="RT"),[eF,n]}return[eF,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?["iOS",[e[3],e[4],e[5]||"0"].join(".")]:["iOS",""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=G(e[2])?e[3]:e[2]),["watchOS",t]}],[RegExp("("+ed+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+ed+")","i"),e=>e&&e[2]?[ed,[e[2],e[3],e[4]||"0"].join(".")]:[ed,""]],[/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/,[eE,""]],[/Linux|debian/i,["Linux",""]]],tr=function(e){return e5.test(e)?eM:e4.test(e)?eL:e3.test(e)?eN:RegExp(eU,"i").test(e)?eU:RegExp("("+eD+"|WPDesktop)","i").test(e)?eD:/iPad/.test(e)?ep:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?ev:e8.test(e)?ey:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":RegExp(eH,"i").test(e)?eH:/(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(ec).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)?ed:ef:RegExp("(pda|"+ec+")","i").test(e)?ez:RegExp(eh,"i").test(e)&&!RegExp(eh+" pc","i").test(e)?eq:""},tn=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function ti(e,t){return"string"==typeof e&&tn.test(e)?e:t()}function ts(e){return e?e.split("#")[0]:e}function to(e,t){var r=setTimeout(e,t);return(null==r?void 0:r.unref)&&(null==r||r.unref()),r}var ta=e=>e instanceof Error,tl={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},tu=tl.info;function tc(e){var t=[];for(var r in e){var n=e[r];Y(n)||G(n)||t.push({key:r,value:function e(t){if(Q(t))return{boolValue:t};if("number"==typeof t)return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if("string"==typeof t)return{stringValue:t};if($(t))return{arrayValue:{values:t.map(t=>e(t))}};try{return{stringValue:JSON.stringify(t)}}catch(e){return{stringValue:String(t)}}}(n)})}return t}function td(e,t,r){return y({},e.resourceAttributes,{"service.name":e.serviceName||"unknown_service"},e.environment&&{"deployment.environment":e.environment},e.serviceVersion&&{"service.version":e.serviceVersion},{"telemetry.sdk.name":t,"telemetry.sdk.version":r})}function th(e,t,r,n){return{resourceLogs:[{resource:{attributes:tc(t)},scopeLogs:[{scope:{name:r,version:n},logRecords:e}]}]}}let tf=class{constructor(e,t,r,n,i,s,o){var a;void 0===s&&(s=()=>Promise.resolve()),this._instance=e,this.Se=t,this.Ae=r,this.qe=n,this.je=i,this.Be=s,this.He=o,this.Ue=null,this.ze=0,this.Ve=0,this.We=0,this.Ge=0,this.Ze=!1,this.Qe=t.maxBufferSize,this.Je=Math.max(null!=(a=t.maxQueueSize)?a:t.maxBufferSize,t.maxBufferSize),this.Ye=t.flushIntervalMs,this.Ke=t.maxBatchRecordsPerPost,this.Xe=t.rateCapWindowMs,this.et=t.maxLogsPerInterval}reset(){this.tt(),this.Ue=null,this.We=0,this.Ge=0,this.Ze=!1,this.ze=0,this.Ve=0,this.Ke=this.Se.maxBatchRecordsPerPost}onReconnect(){this.Ve=0,this.rt()}captureLog(e){if(!this._instance.isDisabled&&!this._instance.optedOut&&null!=e&&e.body){var t=this.it(e);if(null!==t)if(t.body){if(this.nt()){var r={record:function(e,t){var{text:r,number:n}=tl[e.level||"info"]||tu,i=String(Date.now())+"000000",s={};t.distinctId&&(s.posthogDistinctId=t.distinctId),t.sessionId&&(s.sessionId=t.sessionId),t.windowId&&(s["window.id"]=t.windowId),X(t.sessionStartTimestamp)||(s.sessionStartTimestamp=String(t.sessionStartTimestamp)),X(t.lastActivityTimestamp)||(s.lastActivityTimestamp=String(t.lastActivityTimestamp)),t.currentUrl&&(s["url.full"]=t.currentUrl),t.screenName&&(s["screen.name"]=t.screenName),t.appState&&(s["app.state"]=t.appState),t.activeFeatureFlags&&t.activeFeatureFlags.length>0&&(s.feature_flags=t.activeFeatureFlags);var o=y({},s,e.attributes||{}),a={timeUnixNano:i,observedTimeUnixNano:i,severityNumber:n,severityText:r,body:{stringValue:e.body},attributes:tc(o)};return e.trace_id&&(a.traceId=e.trace_id),e.span_id&&(a.spanId=e.span_id),G(e.trace_flags)||(a.flags=e.trace_flags),a}(t,this.qe())};this.je(()=>this.st(r))}}else this.Ae.info("Log was rejected in beforeSend function")}}it(e){var t=this.Se.beforeSend;if(!t)return e;var r=$(t)?t:[t],n=e;for(var i of r)try{var s=i(n);if(!s)return this.Ae.info("Log was rejected in beforeSend function"),null;n=s}catch(e){return this.Ae.error("Error in beforeSend function for log:",e),null}return n}nt(){if(void 0===this.et)return!0;var e=Date.now(),t=e-this.We;return this.Xe>t&&t>=0||(this.We=e,this.Ge=0,this.Ze=!1),this.et>
1this.Ge?(this.Ge++,!0):(this.Ze||(this.Ae.warn("captureLog dropping logs: exceeded "+this.et+" logs per "+this.Xe+"ms"),this.Ze=!0),!1)}flush(){var e=this;return m(function*(){if(!e._instance.isDisabled)return e.Ue||(e.Ue=e.ot().finally(()=>{e.Ue=null})),e.Ue})()}ot(){var e=this;return m(function*(){e.tt();var t=null!=(i=e._instance.getPersistedProperty(S.LogsQueue))?i:[];if(0!==t.length)for(var r=t.length,n=0;t.length>0&&r>n;){e.ze=0;var i,s,o,a=Math.min(t.length,e.Ke),l=t.slice(0,a),u=th(l.map(e=>e.record),e.ut(),null!=(s=e.He)?s:e._instance.getLibraryId(),e._instance.getLibraryVersion()),c=yield e._instance.ht(u);if("too-large"===c.kind&&l.length>1)e.Ke=Math.max(1,Math.floor(l.length/2)),e.Ae.warn("Received 413 when sending logs batch of size "+l.length+", reducing batch size to "+e.Ke);else if("retry-later"===c.kind||("too-large"===c.kind?e.Ae.warn("Dropping a single log record after 413 with batch size 1 — the record is larger than the server cap and cannot be split further."):"ok"===c.kind&&e.Se.maxBatchRecordsPerPost>e.Ke&&(e.Ke=Math.min(e.Se.maxBatchRecordsPerPost,e.Ke+1)),yield e.dt(l.length),t=null!=(o=e._instance.getPersistedProperty(S.LogsQueue))?o:[],n+=l.length,"fatal"===c.kind))throw c.error}})()}dt(e){var t=this;return m(function*(){var r,n=Math.max(0,e-t.ze),i=null!=(r=t._instance.getPersistedProperty(S.LogsQueue))?r:[];t._instance.setPersistedProperty(S.LogsQueue,i.slice(n)),yield t.Be()})()}ut(){return td(this.Se,this._instance.getLibraryId(),this._instance.getLibraryVersion())}st(e){var t;if(!this._instance.optedOut){var r=null!=(t=this._instance.getPersistedProperty(S.LogsQueue))?t:[];this.Je>r.length||(r.shift(),this.ze++,this.Ae.info("Logs queue is full, dropping oldest record.")),r.push(e),this._instance.setPersistedProperty(S.LogsQueue,r),this.Qe>r.length?this.ct():this.rt()}}ct(e){void 0===e&&(e=this.Ye),this.vt||(this.vt=to(()=>{this.vt=void 0,this.rt()},e))}ft(){var e=Math.min(Math.max(0,this.Ve-1),6);return this.Ye*Math.pow(2,e)}yt(){var e=this._instance.getPersistedProperty(S.LogsQueue);return!!e&&e.length>0}shutdown(e){var t=this;return m(function*(){t.tt();var r=t.flush().catch(()=>{});void 0!==e?yield Promise.race([r,new Promise(t=>to(t,e))]):yield r})()}flushWithTimeout(e){var t=this;return m(function*(){var r=!1,n=t.flush(),i=new Promise(t=>to(()=>{r=!0,t()},e));try{yield Promise.race([n,i])}finally{r&&n.catch(()=>{})}})()}rt(){this.flush().then(()=>{this.Ve=0},e=>{this.Ve++,this.Ae.error("PostHog logs flush failed:",e)}).finally(()=>{!this._instance.isDisabled&&this.yt()&&this.ct(this.ft())})}tt(){this.vt&&(clearTimeout(this.vt),this.vt=void 0)}};class tp{constructor(e,t,r){void 0===r&&(r=[]),this.coercers=e,this.stackParser=t,this.modifiers=r}buildFromUnknown(e,t){void 0===t&&(t={});var r=t&&t.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(r,t,0).apply(e),i=this.buildParsingContext(t),s=this.parseStacktrace(n,i);return{$exception_list:this.convertToExceptionList(s,r),$exception_level:"error"}}modifyFrames(e){var t=this;return m(function*(){for(var r of e)r.stacktrace&&r.stacktrace.frames&&$(r.stacktrace.frames)&&(r.stacktrace.frames=yield t.applyModifiers(r.stacktrace.frames));return e})()}coerceFallback(e){var t;return{type:"Error",value:"Unknown error",stack:null==(t=e.syntheticException)?void 0:t.stack,synthetic:!0}}parseStacktrace(e,t){var r,n;return null!=e.cause&&(r=this.parseStacktrace(e.cause,t)),""!=e.stack&&null!=e.stack&&(n=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?t.skipFirstLines:0),t.chunkIdMap)),y({},e,{cause:r,stack:n})}applyChunkIds(e,t){return e.map(e=>(e.filename&&t&&(e.chunk_id=t[e.filename]),e))}applyCoercers(e,t){for(var r of this.coercers)if(r.match(e))return r.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return m(function*(){var r=e;for(var n of t.modifiers)r=yield n(r);return r})()}convertToExceptionList(e,t){var r,n,i,s={type:e.type,value:e.value,mechanism:{type:null!=(r=t.type)?r:"generic",handled:null==(n=t.handled)||n,synthetic:null!=(i=e.synthetic)&&i}};e.stack&&(s.stacktrace={type:"raw",frames:e.stack});var o=[s];return null!=e.cause&&o.push(...this.convertToExceptionList(e.cause,y({},t,{handled:!0}))),o}buildParsingContext(e){var t;return{chunkIdMap:function(e){var t=globalThis._posthogChunkIds;if(t){var r=Object.keys(t);return r6&&r.length===r8||(r8=r.length,r6=r.reduce((r,n)=>{r5||(r5={});var i=r5[n];if(i)r[i[0]]=i[1];else for(var s=e(n),o=s.length-1;o>=0;o--){var a=s[o],l=null==a?void 0:a.filename,u=t[n];if(l&&u){r[l]=u,r5[n]=[l,u];break}}return r},{})),r6}}(this.stackParser),skipFirstLines:null!=(t=e.skipFirstLines)?t:1}}buildCoercingContext(e,t,r){void 0===r&&(r=0);var n=(r,n)=>{if(4>=n){var i=this.buildCoercingContext(e,t,n);return this.applyCoercers(r,i)}};return y({},t,{syntheticException:0==r?t.syntheticException:void 0,mechanism:e,apply:e=>n(e,r),next:e=>n(e,r+1)})}}function tg(e,t,r,n,i){var s={platform:e,filename:t,function:"<anonymous>
1"===r?"?":r,in_app:!0};return G(n)||(s.lineno=n),G(i)||(s.colno=i),s}var tv=(e,t)=>{var r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:"?",r?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},tm=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ty=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tb=/\((\S*)(?::(\d+))(?::(\d+))\)/,t_=(e,t)=>{var r=tm.exec(e);if(r){var[,n,i,s]=r;return tg(t,n,"?",+i,+s)}var o=ty.exec(e);if(o){if(o[2]&&0===o[2].indexOf("eval")){var a=tb.exec(o[2]);a&&(o[2]=a[1],o[3]=a[2],o[4]=a[3])}var[l,u]=tv(o[1]||"?",o[2]);return tg(t,u,l,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},tw=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tx=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tE=(e,t)=>{var r=tw.exec(e);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){var n=tx.exec(r[3]);n&&(r[1]=r[1]||"eval",r[3]=n[1],r[4]=n[2],r[5]="")}var i=r[3],s=r[1]||"?";return[s,i]=tv(s,i),tg(t,i,s,r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}},tS=/\(error: (.*)\)/;class tR{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var r=W(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:r?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 en(e,"DOMException")}isDOMError(e){return en(e,"DOMError")}}class tk{match(e){return e instanceof Error}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 r=e.message;return String(r.error&&"string"==typeof r.error.message?r.error.message:r)}getStack(e){return e.stacktrace||e.stack||void 0}}class tT{constructor(){}match(e){return en(e,"ErrorEvent")&&null!=e.error}coerce(e,t){var r;return t.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}var tA=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class tC{match(e){return"string"==typeof e}coerce(e,t){var r,[n,i]=this.getInfos(e);return{type:null!=n?n:"Error",value:null!=i?i:e,stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}getInfos(e){var t="Error",r=e,n=e.match(tA);return n&&(t=n[1],r=n[2]),[t,r]}}var tP=["fatal","error","warning","log","info","debug"];function tO(e,t){void 0===t&&(t=40);var r=Object.keys(e);if(r.sort(),!r.length)return"[object has no keys]";for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(t>=i.length)return n===r.length?i:i.length>t?i.slice(0,t)+"...":i}return""}class tI{match(e){return"object"==typeof e&&null!==e}coerce(e,t){var r,n=this.getErrorPropertyFromObject(e);return n?t.apply(n):{type:this.getType(e),value:this.getValue(e),stack:null==(r=t.syntheticException)?void 0:r.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return ei(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&"string"==typeof e.name){var t="'"+e.name+"' captured as exception";return"message"in e&&"string"==typeof e.message&&(t+=" with message: '"+e.message+"'"),t}if("message"in e&&"string"==typeof e.message)return e.message;var r=this.getObjectClassName(e);return(r&&"Object"!==r?"'"+r+"'":"Object")+" captured as exception with keys: "+tO(e)}isSeverityLevel(e){return W(e)&&!K(e)&&tP.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if(({}).hasOwnProperty.call(e,t)){var r=e[t];if(ta(r))return r}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){return}}}class tM{match(e){return ei(e)}coerce(e,t){var r,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+tO(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class tL{match(e){return er(e)}coerce(e,t){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}}}class tN{match(e){return en(e,"PromiseRejectionEvent")||this.isCu
1stomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!ei(e))return!1;try{var t=e.detail;return null!=t&&"object"==typeof t&&"reason"in t}catch(e){return!1}}coerce(e,t){var r,n=this.getUnhandledRejectionReason(e);return er(n)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n),stack:null==(r=t.syntheticException)?void 0:r.stack,synthetic:!0}:t.apply(n)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&null!=e.detail&&"object"==typeof e.detail&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}}var tj="$message",tB="$timestamp",tF=new Set([tj,tB]),tD={enabled:!0,max_bytes:32768};function tH(e){var t;return e?{enabled:null!=(t=e.enabled)?t:tD.enabled,max_bytes:function(e,t){if(!J(e)||e===1/0||e===-1/0)return t;var r=Math.floor(e);return 0>r?t:r}(e.max_bytes,tD.max_bytes)}:y({},tD)}class tU{constructor(e){this.bt=[],this._t=0,this.Se=tH(e)}setConfig(e){this.Se=tH(e),this.wt()}add(e){var t=function(e){var t=function(e){var t=new WeakSet;try{return JSON.stringify(e,(e,r)=>{if("bigint"==typeof r)return r.toString();if("function"!=typeof r&&"symbol"!=typeof r){if(r instanceof Date)return r.toISOString();if(r instanceof Error)return{name:r.name,message:r.message,stack:r.stack};if(r&&"object"==typeof r){if(t.has(r))return"[Circular]";t.add(r)}return r}})}catch(e){return}}(e);if(t)try{var r=JSON.parse(t);if(!q(r))return;var n=r[tj],i=r[tB];if(!W(n)||0===n.trim().length||!W(i)&&!J(i))return;return{step:r,json:t}}catch(e){return}}(e);if(t){var r=function(e){if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e).length;for(var t=encodeURIComponent(e),r=0,n=0;t.length>n;n++)"%"===t[n]?(r+=1,n+=2):r+=1;return r}(t.json);r>this.Se.max_bytes||(this.bt.push({step:t.step,bytes:r}),this._t+=r,this.wt())}}getAttachable(){return this.bt.map(e=>e.step)}clear(){this.bt=[],this._t=0}size(){return this.bt.length}wt(){for(;this._t>this.Se.max_bytes&&this.bt.length>0;){var e=this.bt.shift();e&&(this._t-=e.bytes)}}}var t$=function(e,t){var{debugEnabled:r}=void 0===t?{}:t,i={k(t){if(n&&(g.DEBUG||f.POSTHOG_DEBUG||r)&&!G(n.console)&&n.console){for(var i=("__rrweb_original__"in n.console[t])?n.console[t].__rrweb_original__:n.console[t],s=arguments.length,o=Array(s>1?s-1:0),a=1;s>a;a++)o[a-1]=arguments[a];i(e,...o)}},debug(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];i.k("debug",...t)},info(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];i.k("log",...t)},warn(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];i.k("warn",...t)},error(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];i.k("error",...t)},critical(){for(var t=arguments.length,r=Array(t),n=0;t>n;n++)r[n]=arguments[n];console.error(e,...r)},uninitializedWarning(e){i.error("You must initialize PostHog before calling "+e)},createLogger:(t,r)=>t$(e+" "+t,r)};return i},tz=t$("[PostHog.js]"),tq=tz.createLogger,tV=tq("[ExternalScriptsLoader]"),tG=(e,t,r)=>{if(e.config.disable_external_dependency_loading)return tV.warn(t+" was requested but loading of external scripts is disabled."),r("Loading of external scripts is disabled");var n=null==o?void 0:o.querySelectorAll("script");if(n){for(var i,s=0;n.length>s;s++)if(i=function(){if(n[s].src===t){var e=n[s];return e.__posthog_loading_callback_fired?{v:r()}:(e.addEventListener("load",t=>{e.__posthog_loading_callback_fired=!0,r(void 0,t)}),e.onerror=e=>r(e),{v:void 0})}}())return i.v}var a=()=>{if(!o)return r("document not found");var n=o.createElement("script");if(n.type="text/javascript",n.crossOrigin="anonymous",n.src=t,n.onload=e=>{n.__posthog_loading_callback_fired=!0,r(void 0,e)},n.onerror=e=>r(e),e.config.prepare_external_dependency_script&&(n=e.config.prepare_external_dependency_script(n)),!n)return r("prepare_external_dependency_script returned null");if("head"===e.config.external_scripts_inject_target)o.head.appendChild(n);else{var i,s=o.querySelectorAll("body > script");s.length>0?null==(i=s[0].parentNode)||i.insertBefore(n,s[0]):o.body.appendChild(n)}};null!=o&&o.body?a():null==o||o.addEventListener("DOMContentLoaded",a)};f.__PosthogExtensions__=f.__PosthogExtensions__||{},f.__PosthogExtensions__.loadExternalDependency=(e,t,r)=>{if("remote-config"!==t){var n;if(e.config.strict_script_versioning)n=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var i="/static/"+t+".js?v="+e.version;"toolbar"===t&&(i=i+"&t="+3e5*Math.floor(Date.now()/3e5)),n=e.requestRouter.endpointFor("assets",
1i)}tG(e,n,r)}else{var s=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");tG(e,s,r)}},f.__PosthogExtensions__.loadSiteApp=(e,t,r)=>{var n=e.requestRouter.endpointFor("api",t);tG(e,n,r)};var tW="$people_distinct_id",tK="$device_id",tY="$device_model",tX="__alias",tJ="__timers",tZ="$autocapture_disabled_server_side",tQ="$heatmaps_enabled_server_side",t0="$exception_capture_enabled_server_side",t1="$error_tracking_suppression_rules",t2="$error_tracking_capture_extension_exceptions",t3="$web_vitals_enabled_server_side",t4="$dead_clicks_enabled_server_side",t5="$product_tours_enabled_server_side",t8="$web_vitals_allowed_metrics",t6="$session_recording_remote_config",t9="$replay_sample_rate",t7="$replay_override_sampling",re="$replay_override_linked_flag",rt="$replay_override_url_trigger",rr="$replay_override_event_trigger",rn="$sesid",ri="$session_is_sampled",rs="$enabled_feature_flags",ro="$active_feature_flags",ra="$early_access_features",rl="$feature_flag_details",ru="$feature_flag_payloads",rc="$feature_flag_request_id",rd="$override_feature_flags",rh="$override_feature_flag_payloads",rf="$stored_person_properties",rp="$stored_group_properties",rg="$surveys",rv="$surveys_loaded_at",rm="$surveys_activated",ry="ph_product_tours",rb="$flag_call_reported",r_="$flag_call_reported_session_id",rw="$feature_flag_errors",rx="$feature_flag_evaluated_at",rE="$user_state",rS="$client_session_props",rR="$capture_rate_limit",rk="$initial_campaign_params",rT="$initial_referrer_info",rA="$initial_person_info",rC="$epp",rP="__POSTHOG_TOOLBAR__",rO="$posthog_cookieless",rI="$sdk_debug_extensions_init_method",rM="$sdk_debug_extensions_init_time_ms",rL="$sdk_debug_recording_script_not_loaded",rN="PostHog loadExternalDependency extension not found.",rj="on_reject",rB="always",rF="anonymous",rD="identified",rH="identified_only",rU="visibilitychange",r$="beforeunload",rz="$pageview",rq="$pageleave",rV="$identify",rG="$groupidentify";function rW(e,t){$(e)&&e.forEach(t)}function rK(e,t){if(!X(e))if($(e))e.forEach(t);else if(e instanceof FormData)e.forEach((e,r)=>t(e,r));else for(var r in e)H.call(e,r)&&t(e[r],r)}var rY=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;t>n;n++)r[n-1]=arguments[n];for(var i of r)for(var s in i)void 0!==i[s]&&(e[s]=i[s]);return e};function rX(e){for(var t=Object.keys(e),r=t.length,n=Array(r);r--;)n[r]=[t[r],e[t[r]]];return n}var rJ=function(e){try{return e()}catch(e){return}},rZ=function(e){return function(){try{for(var t=arguments.length,r=Array(t),n=0;t>n;n++)r[n]=arguments[n];return e.apply(this,r)}catch(e){tz.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),tz.critical(e)}}},rQ=function(e){var t={};return rK(e,function(e,r){(W(e)&&e.length>0||J(e))&&(t[r]=e)}),t},r0=["herokuapp.com","vercel.app","netlify.app"];function r1(e,t,r,n){var{capture:i=!1,passive:s=!0}=null!=n?n:{};null==e||e.addEventListener(t,r,{capture:i,passive:s})}function r2(e){return"ph_toolbar_internal"===e.name}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return J(e)&&isFinite(e)&&Math.floor(e)===e});class r3{constructor(e){if(this.bytes=e,16!==e.length)throw TypeError("not 128-bit length")}static fromFieldsV7(e,t,r,n){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(r)||!Number.isInteger(n)||0>e||0>t||0>r||0>n||e>0xffffffffffff||t>4095||r>0x3fffffff||n>0xffffffff)throw RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=e/0x10000000000,i[1]=e/0x100000000,i[2]=e/0x1000000,i[3]=e/65536,i[4]=e/256,i[5]=e,i[6]=112|t>>>8,i[7]=t,i[8]=128|r>>>24,i[9]=r>>>16,i[10]=r>>>8,i[11]=r,i[12]=n>>>24,i[13]=n>>>16,i[14]=n>>>8,i[15]=n,new r3(i)}toString(){for(var e="",t=0;this.bytes.length>t;t++)e=e+(this.bytes[t]>>>4).toString(16)+(15&this.bytes[t]).toString(16),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw Error("Invalid UUIDv7 was generated");return e}clone(){return new r3(this.bytes.slice(0))}equals(e){return 0===this.compareTo(e)}compareTo(e){for(var t=0;16>t;t++){var r=this.bytes[t]-e.bytes[t];if(0!==r)return Math.sign(r)}return 0}}class r4{constructor(){this.S=0,this.C=0,this.I=new ne}generate(){var e=this.generateOrAbort();if(G(e)){this.S=0;var t=this.generateOrAbort();if(G(t))throw Error("Could not generate UUID after timestamp reset");return t}return e}generateOrAbort(){var e=Date.now();if(e>this.S)this.S=e,this.M();else{if(this.S>=e+1e4)return;this.C++,this.C>0x3ffffffffff&&(this.S++,this.M())}return r3.fromFieldsV7(this.S,Math.trunc(this.C/0x40000000),0x3fffffff&this.C,this.I.nextUint32())}M(){this.C=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}}var r5,r8,r6,r9,r7=e=>{if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};n&&!G(n.crypto)&&crypto.getRandomValues&&(r7=e=>crypto.getRandomValues(e));
1class ne{constructor(){this.R=new Uint32Array(8),this.O=1/0}nextUint32(){return this.R.length>this.O||(r7(this.R),this.O=0),this.R[this.O++]}}var nt=()=>nr().toString(),nr=()=>(r9||(r9=new r4)).generate(),nn="",ni=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,ns={N:()=>!!o,D(e){tz.error("cookieStore error: "+e)},P(e){if(o){try{for(var t=e+"=",r=o.cookie.split(";").filter(e=>e.length),n=0;r.length>n;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}}catch(e){}return null}},F(e){var t;try{t=JSON.parse(ns.P(e))||{}}catch(e){}return t},q(e,t,r,n,i){if(!o)return!1;try{var s="",a="",l=function(e,t){if(t){var r=function(e,t){if(void 0===t&&(t=o),nn)return nn;if(!t||["localhost","127.0.0.1"].includes(e))return"";for(var r=e.split("."),n=Math.min(r.length,8),i="dmn_chk_"+nt();!nn&&n--;){var s=r.slice(n).join("."),a=i+"=1;domain=."+s+";path=/";t.cookie=a+";max-age=3",t.cookie.includes(i)&&(t.cookie=a+";max-age=0",nn=s)}return nn}(e);if(!r){var n,i=(n=e.match(ni))?n[0]:"";i!==r&&tz.info("Warning: cookie subdomain discovery mismatch",i,r),r=i}return r?"; domain=."+r:""}return""}(o.location.hostname,n);if(r){var u=new Date;u.setTime(u.getTime()+864e5*r),s="; expires="+u.toUTCString()}i&&(a="; secure");var c=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+l+a;return c.length>3686.4&&tz.warn("cookieStore warning: large cookie, len="+c.length),o.cookie=c,!0}catch(e){return!1}},A(e,t){if(null!=o&&o.cookie)try{ns.q(e,"",-1,t)}catch(e){return}}},no=null,na={N(){if(!Y(no))return no;var e=!0;if(G(n))e=!1;else try{var t="__mplssupport__";na.q(t,"xyz"),'"xyz"'!==na.P(t)&&(e=!1),na.A(t)}catch(t){e=!1}return e||tz.error("localStorage unsupported; falling back to cookie store"),no=e,e},D(e){tz.error("localStorage error: "+e)},P(e){try{return null==n?void 0:n.localStorage.getItem(e)}catch(e){na.D(e)}return null},F(e){try{return JSON.parse(na.P(e))||{}}catch(e){}return null},q(e,t){try{return null==n||n.localStorage.setItem(e,JSON.stringify(t)),!0}catch(e){na.D(e)}return!1},A(e){try{null==n||n.localStorage.removeItem(e)}catch(e){na.D(e)}}},nl=[tK,"distinct_id",rn,ri,rC,rA,rE],nu={},nc={N:()=>!0,D(e){tz.error("memoryStorage error: "+e)},P:e=>nu[e]||null,F:e=>nu[e]||null,q:(e,t)=>(nu[e]=t,!0),A(e){delete nu[e]}},nd=null,nh={N(){if(!Y(nd))return nd;if(nd=!0,G(n))nd=!1;else try{var e="__support__";nh.q(e,"xyz"),'"xyz"'!==nh.P(e)&&(nd=!1),nh.A(e)}catch(e){nd=!1}return nd},D(e){tz.error("sessionStorage error: ",e)},P(e){try{return null==n?void 0:n.sessionStorage.getItem(e)}catch(e){nh.D(e)}return null},F(e){try{return JSON.parse(nh.P(e))||null}catch(e){}return null},q(e,t){try{return null==n||n.sessionStorage.setItem(e,JSON.stringify(t)),!0}catch(e){nh.D(e)}return!1},A(e){try{null==n||n.sessionStorage.removeItem(e)}catch(e){nh.D(e)}}};class nf{constructor(e){this._instance=e}get Se(){return this._instance.config}get consent(){return this.kt()?0:this.St}
1isOptedOut(){return this.Se.cookieless_mode===rB||this.isRejected()||-1===this.consent&&this.Se.cookieless_mode===rj}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return 0===this.consent}isRejected(){return 0===this.consent||-1===this.consent&&this.Se.opt_out_capturing_by_default}optInOut(e){this.Ct.q(this.It,+!!e,this.Se.cookie_expiration,this.Se.cross_subdomain_cookie,this.Se.secure_cookie)}reset(){this.Ct.A(this.It,this.Se.cross_subdomain_cookie)}get It(){var{token:e,opt_out_capturing_cookie_prefix:t,consent_persistence_name:r}=this._instance.config;return r||(t?t+e:"__ph_opt_in_out_"+e)}get St(){var e=this.Ct.P(this.It);return eo(e)?1:j(ea,e)?0:-1}get Ct(){var e=this.Se.opt_out_capturing_persistence_type,t="localStorage"===e?na:ns;if(!this.Tt||this.Tt!==t){this.Tt=t;var r="localStorage"===e?ns:na;r.P(this.It)&&(this.Tt.P(this.It)||this.optInOut(eo(r.P(this.It))),r.A(this.It,this.Se.cross_subdomain_cookie))}return this.Tt}kt(){return!!this.Se.respect_dnt&&[null==s?void 0:s.doNotTrack,null==s?void 0:s.msDoNotTrack,f.doNotTrack].some(e=>eo(e))}}function np(e){return e instanceof Element&&(e.id===rP||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function ng(e){return!!e&&1===e.nodeType}function nv(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function nm(e){return!!e&&3===e.nodeType}function ny(e){return!!e&&11===e.nodeType&&ng(e.host)}function nb(e){return e?B(e).split(/\s+/):[]}function n_(e){var t=null==n?void 0:n.location.href;return!!(t&&e&&e.some(e=>t.match(e)))}function nw(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 nb(t)}function nx(e){return X(e)?null:B(e).split(/(\s+)/).filter(e=>nV(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function nE(e){var t="";return nB(e)&&!nF(e)&&e.childNodes&&e.childNodes.length&&rK(e.childNodes,function(e){var r;nm(e)&&e.textContent&&(t+=null!=(r=nx(e.textContent))?r:"")}),B(t)}function nS(e){var t;return G(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null}var nR=["a","button","form","input","select","textarea","label"];function nk(e,t){if(G(t))return!0;var r,n=function(e){if(t.some(t=>(function(e,t){var r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector;try{return!!r&&r.call(e,t)}catch(e){return!1}})(e,t)))return{v:!0}};for(var i of e)if(r=n(i))return r.v;return!1}function nT(e){var t=e.parentNode;return!(!t||!ng(t))&&t}var nA=[".ph-no-autocapture","[data-ph-no-autocapture]"],nC=["next","previous","prev",">","<"],nP=[...nC,"+","-","−","–"],nO=(e,t)=>/[a-z0-9]/i.test(t)?e.includes(t):e===t,nI=[".ph-no-rageclick",".ph-no-capture"],nM=["","text","search","email","password","url","tel","number"];function nL(e,t){if(!n||nN(e)||(Q(t)?(i=!!t&&nI,s=void 0,o=!1):(i=null!=(a=null==t?void 0:t.css_selector_ignorelist)?a:nI,s=null==t?void 0:t.content_ignorelist,o=null!=(l=null==t?void 0:t.ignore_text_selection)&&l),!1===i)||o&&!(!(r=e)||!ng(r))&&(nv(r,"textarea")||(nv(r,"input")?j(nM,(r.getAttribute("type")||"").toLowerCase()):function(e){if(e.isContentEditable)return!0;var t=null==e.getAttribute?void 0:e.getAttribute("contenteditable");return"true"===t||""===t}(r))))return!1;var r,i,s,o,a,l,{targetElementList:u}=nj(e,!1);return!function(e,t){var r;if(!1===e||G(e))return!1;if(!0===e)r=nC;else{if(!$(e))return!1;if(e.length>10)return tz.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;r=e.map(e=>e.toLowerCase())}return t.some(e=>{var{safeText:t,ariaLabel:n}=e;return r.some(e=>nO(t,e)||nO(n,e))})}(s,u.map(e=>{var t;return{safeText:nE(e).toLowerCase(),ariaLabel:(null==(t=e.getAttribute("aria-label"))?void 0:t.toLowerCase().trim())||""}}))&&!nk(u,i)}var nN=e=>!e||nv(e,"html")||!ng(e),nj=(e,t)=>{if(!n||nN(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var r=!1,i=[e],s=e;s.parentNode&&!nv(s,"body");)if(ny(s.parentNode))i.push(s.parentNode.host),s=s.parentNode.host;else{var o=nT(s);if(!o)break;if(t||nR.indexOf(o.tagName.toLowerCase())>-1)r=!0;else{var a=n.getComputedStyle(o);a&&"pointer"===a.getPropertyValue("cursor")&&(r=!0)}i.push(o),s=o}return{parentIsUsefulElement:r,targetElementList:i}};function nB(e){for(var t=e;t.parentNode&&!nv(t,"body");t=t.parentNode){var r=nw(t);if(j(r,"ph-sensitive")||j(r,"ph-no-capture"))return!1}if(j(nw(e),"ph-include"))return!0;var n=e.type||"";if(W(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}
1var i=e.name||e.id||"";return!W(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 nF(e){return!!(nv(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||nv(e,"select")||nv(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var nD="(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})",nH=RegExp("^(?:"+nD+")$"),nU=new RegExp(nD),n$="\\d{3}-?\\d{2}-?\\d{4}",nz=RegExp("^("+n$+")$"),nq=RegExp("("+n$+")");function nV(e,t){return void 0===t&&(t=!0),!(X(e)||W(e)&&(e=B(e),(t?nH:nU).test((e||"").replace(/[- ]/g,""))||(t?nz:nq).test(e)))&&!0}function nG(e){var t=nE(e);return nV(t=(t+" "+function e(t){var r="";return t&&t.childNodes&&t.childNodes.length&&rK(t.childNodes,function(t){var n;if(t&&"span"===(null==(n=t.tagName)?void 0:n.toLowerCase()))try{var i=nE(t);r=(r+" "+i).trim(),t.childNodes&&t.childNodes.length&&(r=(r+" "+e(t)).trim())}catch(e){tz.error("[AutoCapture]",e)}}),r}(e)).trim())?t:""}function nW(e){return e.replace(/"|\\"/g,'\\"')}var nK=tq("[Dead Clicks]"),nY=()=>!0,nX=e=>{var t,r=!(null==(t=e.instance.persistence)||!t.get_property(t4)),n=e.instance.config.capture_dead_clicks;return Q(n)?n:!!q(n)||r};class nJ{get lazyLoadedDeadClicksAutocapture(){return this.Et}constructor(e,t,r){this.instance=e,this.isEnabled=t,this.onCapture=r,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[t4]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.Mt(()=>{this.Pt()}):this.stop()}Mt(e){var t,r;null!=(t=f.__PosthogExtensions__)&&t.initDeadClicksAutocapture?e():null==(r=f.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?nK.error("failed to load script",t):e()})}Pt(){var e;if(o){if(!this.Et&&null!=(e=f.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=q(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.Et=f.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.Et.start(o),nK.info("starting...")}}else nK.error("`document` not found. Cannot start.")}stop(){this.Et&&(this.Et.stop(),this.Et=void 0,nK.info("stopping..."))}}var nZ=tq("[SegmentIntegration]"),nQ="posthog-js";function n0(e,t){var{organization:r,projectId:n,prefix:i,severityAllowList:s=["error"],sendExceptionsToPostHog:o=!0}=void 0===t?{}:t;return t=>{if("*"!==s&&!s.includes(t.level)||!e.__loaded)return t;t.tags||(t.tags={});var a=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());t.tags["PostHog Person URL"]=a,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var l,u,c,d,h,f,p=(null==(l=t.exception)?void 0:l.values)||[],g=p.map(e=>y({},e,{stacktrace:e.stacktrace?y({},e.stacktrace,{type:"raw",frames:(e.stacktrace.frames||[]).map(e=>y({},e,{platform:"web:javascript"}))}):void 0})),v={$exception_message:(null==(u=p[0])?void 0:u.value)||t.message,$exception_type:null==(c=p[0])?void 0:c.type,$exception_level:t.level,$exception_list:g,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null==(d=p[0])?void 0:d.value)||t.message,$sentry_exception_type:null==(h=p[0])?void 0:h.type,$sentry_tags:t.tags};return r&&n&&(v.$sentry_url=(i||"https://sentry.io/organizations/")+r+"/issues/?project="+n+"&query="+t.event_id),o&&(null==(f=e.exceptions)||f.sendExceptionEvent(v)),t}}class n1{constructor(e,t,r,n,i,s){this.name=nQ,this.setupOnce=function(o){o(n0(e,{organization:t,projectId:r,prefix:n,severityAllowList:i,sendExceptionsToPostHog:null==s||s}))}}}class n2{constructor(e){this.Rt=(e,t,r)=>{r&&(r.noSessionId||r.activityTimeout||r.sessionPastMaximumLength||r.crossTabAdoption)&&(tz.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:e,changeReason:r}),this.Ot=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.Lt()}Lt(){var e;this.Ft=null==(e=this._instance.sessionManager)?void 0:e.onSessionId(this.Rt)}destroy(){var e;null==(e=this.Ft)||e.call(this),this.Ft=void 0}doPageView(e,t){var r,i=this.At(e,t);return this.Ot={pathname:null!=(r=null==n?void 0:n.location.pathname)?r:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),i}doPageLeave(e){var t;return this.At(e,null==(t=this.Ot)?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:null==(e=this.Ot)?void 0:e.pageViewId}}At(e,t){var r=this.Ot;if(!r)return{$pageview_id:t};var n={$pageview_id:t,$prev_pageview_id:r.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:s,lastScrollY:o,maxScrollY:a,maxContentHeight:l,lastContentY:u,maxContentY:c}=i;
1if(!(G(s)||G(o)||G(a)||G(l)||G(u)||G(c))){s=Math.ceil(s),o=Math.ceil(o),a=Math.ceil(a),l=Math.ceil(l),u=Math.ceil(u),c=Math.ceil(c);var d=s>1?el(o/s,0,1,tz):1,h=s>1?el(a/s,0,1,tz):1,f=l>1?el(u/l,0,1,tz):1,p=l>1?el(c/l,0,1,tz):1;n=rY(n,{$prev_pageview_last_scroll:o,$prev_pageview_last_scroll_percentage:d,$prev_pageview_max_scroll:a,$prev_pageview_max_scroll_percentage:h,$prev_pageview_last_content:u,$prev_pageview_last_content_percentage:f,$prev_pageview_max_content:c,$prev_pageview_max_content_percentage:p})}}return r.pathname&&(n.$prev_pageview_pathname=r.pathname),r.timestamp&&(n.$prev_pageview_duration=(e.getTime()-r.timestamp.getTime())/1e3),n}}var n3=["flags","surveys"],n4={[tW]:{exposure:"hidden"},[tX]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[tJ]:{exposure:"hidden"},[tZ]:{exposure:"event"},[tQ]:{exposure:"hidden"},[t0]:{exposure:"event"},[t1]:{exposure:"hidden"},[t2]:{exposure:"event"},[t3]:{exposure:"event"},[t4]:{exposure:"event"},[t5]:{exposure:"hidden"},[t8]:{exposure:"event"},[t6]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[rn]:{exposure:"hidden"},[ri]:{exposure:"event"},[t9]:{exposure:"event",shouldSkipFromEventProperties:e=>Y(e)},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},$sess_rec_flush_size:{exposure:"hidden"},[rs]:{exposure:"derived",storageGroup:"flags",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!q(e))return{};for(var t={},r=Object.keys(e),n=0;r.length>n;n++)t["$feature/"+r[n]]=e[r[n]];return t}},[ro]:{exposure:"event",storageGroup:"flags"},[ra]:{exposure:"hidden"},[rl]:{exposure:"hidden",storageGroup:"flags"},[ru]:{exposure:"event",storageGroup:"flags"},[rc]:{exposure:"event",storageGroup:"flags",volatile:!0},[rd]:{exposure:"event"},[rh]:{exposure:"hidden"},[rf]:{exposure:"hidden"},[rp]:{exposure:"hidden"},[rg]:{exposure:"hidden",storageGroup:"surveys"},[rv]:{exposure:"hidden",storageGroup:"surveys",volatile:!0},[rm]:{exposure:"event"},[ry]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[rb]:{exposure:"hidden"},[r_]:{exposure:"hidden"},[rw]:{exposure:"hidden"},[rx]:{exposure:"hidden",storageGroup:"flags",volatile:!0},[rE]:{exposure:"hidden"},[rS]:{exposure:"hidden"},[rR]:{exposure:"hidden"},[rk]:{exposure:"hidden"},[rT]:{exposure:"hidden"},[rA]:{exposure:"hidden"},[rC]:{exposure:"hidden"},[t7]:{exposure:"event"},[re]:{exposure:"event"},[rt]:{exposure:"event"},[rr]:{exposure:"event"},[rI]:{exposure:"event"},[rM]:{exposure:"event"},[rL]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},n5=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],n8=e=>{var t=n4[e];if(t)return t;for(var[r,n]of n5)if(0===e.indexOf(r))return n},n6=e=>{var t=null==o?void 0:o.createElement("a");return G(t)?null:(t.href=e,t)},n9=function(e,t){for(var r,n=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;n.length>i;i++){var s=n[i].split("=");if(s[0]===t){r=s;break}}if(!$(r)||2>r.length)return"";var o=r[1];try{o=decodeURIComponent(o)}catch(e){tz.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},n7=function(e,t,r){if(!e||!t||!t.length)return e;for(var n=e.split("#"),i=n[1],s=(n[0]||"").split("?"),o=s[1],a=s[0],l=(o||"").split("&"),u=[],c=0;l.length>c;c++){var d=l[c].split("=");$(d)&&(t.includes(d[0])?u.push(d[0]+"="+r):u.push(l[c]))}var h=a;return null!=o&&(h+="?"+u.join("&")),null!=i&&(h+="#"+i),h},ie=function(e,t){var r=e.match(RegExp(t+"=([^&]*)"));return r?r[1]:null},it="https?://(.*)",ir=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],ii=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...ir],is="<masked>",io=["li_fat_id"];function ia(e,t,r){if(!o)return{};var n,i=t?[...ir,...r||[]]:[],s=il(n7(o.URL,i,is),e);return rY((n={},rK(io,function(e){var t=ns.P(e);n[e]=t||null}),n),s)}function il(e,t){var r=ii.concat(t||[]),n={};return rK(r,function(t){var r=n9(e,t);n[t]=r||null}),n}function iu(e){var t=e?0===e.search(it+"google.([^/?]*)")?"google":0===e.search(it+"bing.com")?"bing":0===e.search(it+"yaho
1o.com")?"yahoo":0===e.search(it+"duckduckgo.com")?"duckduckgo":null:null,r={};if(!Y(t)){r.$search_engine=t;var n=o?n9(o.referrer,"yahoo"!=t?"q":"p"):"";n.length&&(r.ph_keyword=n)}return r}function ic(){return navigator.language||navigator.userLanguage}var id="$direct";function ih(){return(null==o?void 0:o.referrer)||id}function ip(e,t,r){void 0===r&&(r=!1);var n=e?[...ir,...t||[]]:[],i=r?ts(null==a?void 0:a.href):null==a?void 0:a.href,s=null==i?void 0:i.substring(0,1e3);return{r:ih().substring(0,1e3),u:s?n7(s,n,is):void 0}}function ig(e,t){void 0===t&&(t=!1);var r,{r:n,u:i}=e,s=t?ts(i):i,o={$referrer:n,$referring_domain:null==n?void 0:n==id?id:null==(r=n6(n))?void 0:r.host};if(s){o.$current_url=s;var a=n6(s);o.$host=null==a?void 0:a.host,o.$pathname=null==a?void 0:a.pathname,rY(o,il(s))}return n&&rY(o,iu(n)),o}function iv(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return}}var im={flags:rx,surveys:rv},iy=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],ib="main";class i_{constructor(e,t,r){if(void 0===r&&(r=!0),this.$t={},this.Dt=!1,this.Nt=!1,this.Se=e,this.qt=r,this.props={},this.jt=!1,this.Bt=(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.Ct=this.Ht(e),this.Nt=this.Ut(e),this.load(),e.debug&&tz.info("Persistence loaded",e.persistence,y({},this.props)),this.update_config(e,e,t),this.save(),n){var i=()=>this.flush();r1(n,"beforeunload",i,{capture:!1}),r1(n,"pagehide",i,{capture:!1})}}zt(){var e,t=null==(e=this.Se)?void 0:e.persistence_save_debounce_ms;return J(t)&&t>0?t:0}isDisabled(){return!!this.Vt}Ht(e){-1===iy.indexOf(e.persistence.toLowerCase())&&(tz.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t,r,i,s,o=(t=e.cookie_persisted_properties||[],r=e.__preview_cookie_wins_on_conflict||!1,void 0===t&&(t=[]),void 0===r&&(r=!1),i=[...nl,...t],y({},na,{F(e){try{var t={};try{t=ns.F(e)||{}}catch(e){}var n,i=JSON.parse(na.P(e)||"{}");if(r){var s={};for(var o in t){var a=t[o];Y(a)||""===a||(s[o]=a)}n=rY(i,s)}else n=rY(t,i);return na.q(e,n),n}catch(e){}return null},q(e,t,r,n,s,o){var a=na.q(e,t,void 0,void 0,o);try{var l={};i.forEach(e=>{t[e]&&(l[e]=t[e])}),Object.keys(l).length&&ns.q(e,l,r,n,s,o)}catch(e){na.D(e)}return a},A(e,t){try{null==n||n.localStorage.removeItem(e),ns.A(e,t)}catch(e){na.D(e)}}})),a=!1,l=e.persistence.toLowerCase();return"localstorage"===l&&na.N()?(s=na,a=!0):"localstorage+cookie"===l&&o.N()?(s=o,a=!0):"sessionstorage"===l&&nh.N()?s=nh:"memory"===l?s=nc:"cookie"===l?s=ns:o.N()?(s=o,a=!0):s=ns,this.Dt=a,s}Wt(e){return this.Bt+"__"+e}Ut(e){return this.Dt&&!!e.split_storage}Gt(e){var t=null!=e?e:this.Se.feature_flag_cache_ttl_ms;if(!t||0>=t)return!1;var r=this.props[rx];return!r||"number"!=typeof r||Date.now()-r>t}properties(){var e={};return rK(this.props,(t,r)=>{var n=n8(r);if("derived"===(null==n?void 0:n.exposure)){if(null!=n.shouldSkipFromEventProperties&&n.shouldSkipFromEventProperties(t,r===rs?()=>this.Gt():()=>!1))return;n.transformToEventProperties&&rY(e,n.transformToEventProperties(t))}else if(!n||"event"===n.exposure){if(null!=n&&null!=n.shouldSkipFromEventProperties&&n.shouldSkipFromEventProperties(t,()=>!1))return;e[r]=t}}),e}load(){if(!this.Vt){var e=this.Ct.F(this.Bt);e&&(this.props=rY({},e)),this.Nt&&this.Zt()}}Zt(){for(var e of n3){var t=na.F(this.Wt(e));if(t&&!V(t)){var r=this.Qt(e);r.persisted=!0,this.Jt(e)||(r.fingerprint=this.Yt(t,e)),this.Kt(e,t)||rY(this.props,t)}}}Jt(e){return Object.keys(this.props).some(t=>{var r;return(null==(r=n8(t))?void 0:r.storageGroup)===e})}Kt(e,t){var r=im[e];if(!r)return!1;var n=t[r],i=this.props[r];return J(n)&&J(i)&&i>n}refreshKey(e){var t;if(!this.Vt){var r=this.Nt?null==(t=n8(e))?void 0:t.storageGroup:void 0,n=r?na.F(this.Wt(r)):this.Ct.F(this.Bt);if(n&&e in n)this.Xt(e,n[e]);else{if(r){var i=this.Ct.F(this.Bt);if(i&&e in i)return void this.Xt(e,i[e])}this.er(e)}}}save(){if(!this.Vt){var e=this.zt();e>0?G(this.tr)&&(this.tr=setTimeout(()=>{this.tr=void 0,this.rr()},e)):this.rr()}}flush(){G(this.tr)||(clearTimeout(this.tr),this.tr=void 0,this.rr())}rr(){this.Vt||(this.Nt?this.ir():this.nr(this.Ct,this.Bt,this.props,ib))}ir(){var{main:e,groups:t}=this.sr();for(var r of(this.nr(this.Ct,this.Bt,e,ib),n3)){var n,i=t[r];(!V(i)||null!=(n=this.$t[r])&&n.persisted)&&this.nr(na,this.Wt(r),i,r)}}sr(){var e={},t={};for(var r of n3)t[r]={};return rK(this.props,(r,n)=>{var i,s=null==(i=n8(n))?void 0:i.storageGroup;s?t[s][n]=r:e[n]=r}),{main:e,groups:t}}Yt(e,t){if(t===ib)return JSON.stringify(e)+"|"+this.ar+"|"+this.lr+"|"+this.ur;var r={};return rK(e,(e,t)=>{var n;r[t]=null!=(n=n8(t))&&n.volatile?"__volatile__":e}),JSON.stringify(r)}nr(e,t,r,n){var i,s=this.Qt(n);if(n===ib||s.dirty||G(s.fingerprint)){try{if((i=this.Yt(r,n))===s.fingerprint)return void(s.dirty=!1)}catch(e){i=void 0}e.q(t,r,this.ar,this.lr,this.ur,this.Se.debug)?(s.dirty=!1,n!==ib&&(s.persisted=!0),G(i)||(s.fingerprint=i)):this.Se.debug&&tz.warn('failed to persist storage entry "'+t+'"; will retry on next save')}}remove(e){var{keepGroupEntries:t=!1}=void 0===e?{}:e;if(G(this.tr)||(clearTimeout(this.tr),this.tr=void 0),this.Ct.A(this.Bt,!1),this.Ct.A(this.Bt,!0),!t&&this.qt)for(var r of n3)na.A(this.Wt(r));
1t?delete this.$t[ib]:this.$t={}}clear(){this.remove(),this.props={}}register_once(e,t,r){if(q(e)){G(t)&&(t="None"),this.ar=G(r)?this.hr:r;var n=!1;if(rK(e,(e,r)=>{this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.Xt(r,e),n=!0)}),n)return this.save(),!0}return!1}register(e,t){if(q(e)){this.ar=G(t)?this.hr:t;var r=!1;if(rK(e,(t,n)=>{e.hasOwnProperty(n)&&this.props[n]!==t&&(this.Xt(n,t),r=!0)}),r)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.er(e),this.save())}update_campaign_params(){if(!this.jt){var e=ia(this.Se.custom_campaign_params,this.Se.mask_personal_data_properties,this.Se.custom_personal_data_properties);V(rQ(e))||this.register(e),this.jt=!0}}update_search_keyword(){var e;this.register((e=null==o?void 0:o.referrer)?iu(e):{})}update_referrer_info(){var e;this.register_once({$referrer:ih(),$referring_domain:null!=o&&o.referrer&&(null==(e=n6(o.referrer))?void 0:e.host)||id},void 0)}set_initial_person_info(){this.props[rk]||this.props[rT]||this.register_once({[rA]:ip(this.Se.mask_personal_data_properties,this.Se.custom_personal_data_properties,this.Se.disable_capture_url_hashes)},void 0)}get_initial_props(){var e,t,r,n={};rK([rT,rk],e=>{var t=this.props[e];t&&rK(t,function(e,t){n["$initial_"+F(t)]=e})});var i=this.props[rA];return i&&rY(n,(void 0===(e=this.Se.disable_capture_url_hashes)&&(e=!1),t=ig(i,e),r={},rK(t,function(e,t){r["$initial_"+F(t)]=e}),r)),n}safe_merge(e){return rK(this.props,function(t,r){r in e||(e[r]=t)}),e}update_config(e,t,r){this.hr=this.ar=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!r),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie);var n=e.persistence!==t.persistence||!((e,t)=>{if(e.length!==t.length)return!1;var r=[...e].sort(),n=[...t].sort();return r.every((e,t)=>e===n[t])})(e.cookie_persisted_properties||[],t.cookie_persisted_properties||[]),i=n?this.Ht(e):this.Ct,s=this.Ut(e);if(n||s!==this.Nt){var o=this.props;this.clear(),this.Ct=i,this.Nt=s,this.props=o,this.save()}}set_disabled(e){this.Vt=e,this.Vt?this.remove():this.save()}set_cross_subdomain(e){e!==this.lr&&(this.lr=e,this.remove({keepGroupEntries:!0}),this.save())}set_secure(e){e!==this.ur&&(this.ur=e,this.remove({keepGroupEntries:!0}),this.save())}set_event_timer(e,t){var r=this.props[tJ]||{};r[e]=t,this.Xt(tJ,r),this.save()}remove_event_timer(e){var t=this.props[tJ]||{},r=t[e];return G(r)||(delete t[e],this.Xt(tJ,t),this.save()),r}get_property(e){return this.props[e]}set_property(e,t){this.Xt(e,t),this.save()}Xt(e,t){var r;this.props[e]=t,null!=(r=n8(e))&&r.volatile||this.dr(e)}er(e){delete this.props[e],this.dr(e)}dr(e){var t,r=null==(t=n8(e))?void 0:t.storageGroup;r&&(this.Qt(r).dirty=!0)}Qt(e){return this.$t[e]||(this.$t[e]={})}}var iw={Activation:"events",Cancellation:"cancelEvents"},ix={Popover:"popover",API:"api",Widget:"widget"},iE={Always:"always"},iS={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},iR={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},ik={Popover:"popover",Inline:"inline"},iT={SHOWN:"product tour shown"},iA={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},iC=tq("[RateLimiter]");class iP{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=>{iC.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(e){return void iC.warn('could not rate limit - continuing. Error: "'+(null==e?void 0:e.message)+'"',{text:t})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return(null==(e=this.instance.config.rate_limiting)?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max((null==(e=this.instance.config.rate_limiting)?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){void 0===e&&(e=!1);var t,r,n,{captureEventsBurstLimit:i,captureEventsPerSecond:s}=this,o=(new Date).getTime(),a=null!=(t=null==(r=this.instance.persistence)?void 0:r.get_property(rR))?t:{tokens:i,last:o};a.tokens+=(o-a.last)/1e3*s,a.last=o,a.tokens>i&&(a.tokens=i);var l=1>a.tokens;return l||e||(a.tokens=Math.max(0,a.tokens-1)),!l||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+s+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=l,null==(n=this.instance.persistence)||n.set_property(rR,a),{isRateLimited:l,remainingTokens:a.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var iO=tq("[RemoteConfig]");class iI{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=f._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}cr(e){var t,r;null!=(t=f.__PosthogExtensions__)&&t.loadExternalDependency?null==(r=f.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):e()}vr(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 iO.info("Using preloaded remote config",this.remoteConfig),this.pr(this.remoteConfig),void this.gr();if(this._instance.mr())return void iO.warn("Remote config is disabled. Falling back to local config.");this.cr(e=>{if(!e)return iO.info("No config found after loading remote JS config. Falling back to JSON."),void this.vr(e=>{this.pr(e),this.gr()});this.pr(e),this.gr()})}catch(e){iO.error("Error loading remote config",e)}}stop(){this.yr&&(clearInterval(this.yr),this.yr=void 0)}
1refresh(){!this._instance.mr()&&o&&"hidden"!==o.visibilityState&&this._instance.reloadFeatureFlags()}gr(){var e;if(!this.yr){var t=null!=(e=this._instance.config.remote_config_refresh_interval_ms)?e:3e5;0!==t&&(this.yr=setInterval(()=>{this.refresh()},t))}}pr(e){var t;e||iO.error("Failed to fetch remote config from PostHog."),this._instance.pr(null!=e?e:{}),!1!==(null==e?void 0:e.hasFeatureFlags)&&(this._instance.config.advanced_disable_feature_flags_on_first_load||null==(t=this._instance.featureFlags)||t.ensureFlagsLoaded())}}var iM={GZipJS:"gzip-js",Base64:"base64"},iL=Uint8Array,iN=Uint16Array,ij=Uint32Array,iB=new iL([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]),iF=new iL([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]),iD=new iL([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),iH=function(e,t){for(var r=new iN(31),n=0;31>n;++n)r[n]=t+=1<<e[n-1];var i=new ij(r[30]);for(n=1;30>n;++n)for(var s=r[n];r[n+1]>s;++s)i[s]=s-r[n]<<5|n;return[r,i]},iU=iH(iB,2),i$=iU[1];iU[0][28]=258,i$[258]=28;for(var iz=iH(iF,0)[1],iq=new iN(32768),iV=0;32768>iV;++iV){var iG=(43690&iV)>>>1|(21845&iV)<<1;iq[iV]=((65280&(iG=(61680&(iG=(52428&iG)>>>2|(13107&iG)<<2))>>>4|(3855&iG)<<4))>>>8|(255&iG)<<8)>>>1}var iW=function(e,t,r){for(var n=e.length,i=0,s=new iN(t);n>i;++i)++s[e[i]-1];var o,a=new iN(t);for(i=0;t>i;++i)a[i]=a[i-1]+s[i-1]<<1;if(r){o=new iN(1<<t);var l=15-t;for(i=0;n>i;++i)if(e[i])for(var u=i<<4|e[i],c=t-e[i],d=a[e[i]-1]++<<c,h=d|(1<<c)-1;h>=d;++d)o[iq[d]>>>l]=u}else for(o=new iN(n),i=0;n>i;++i)o[i]=iq[a[e[i]-1]++]>>>15-e[i];return o},iK=new iL(288);for(iV=0;144>iV;++iV)iK[iV]=8;for(iV=144;256>iV;++iV)iK[iV]=9;for(iV=256;280>iV;++iV)iK[iV]=7;for(iV=280;288>iV;++iV)iK[iV]=8;var iY=new iL(32);for(iV=0;32>iV;++iV)iY[iV]=5;var iX=iW(iK,9,0),iJ=iW(iY,5,0),iZ=function(e){return(e/8|0)+(7&e&&1)},iQ=function(e,t,r){(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof iN?iN:e instanceof ij?ij:iL)(r-t);return n.set(e.subarray(t,r)),n},i0=function(e,t,r){var n=t/8|0;e[n]|=r<<=7&t,e[n+1]|=r>>>8},i1=function(e,t,r){var n=t/8|0;e[n]|=r<<=7&t,e[n+1]|=r>>>8,e[n+2]|=r>>>16},i2=function(e,t){for(var r=[],n=0;e.length>n;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,s=r.slice();if(!i)return[new iL(0),0];if(1==i){var o=new iL(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var a=r[0],l=r[1],u=0,c=1,d=2;for(r[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=i-1;)a=r[r[d].f>r[u].f?u++:d++],l=r[u!=c&&r[d].f>r[u].f?u++:d++],r[c++]={s:-1,f:a.f+l.f,l:a,r:l};var h=s[0].s;for(n=1;i>n;++n)s[n].s>h&&(h=s[n].s);var f=new iN(h+1),p=i3(r[c-1],f,0);if(p>t){n=0;var g=0,v=p-t,m=1<<v;for(s.sort(function(e,t){return f[t.s]-f[e.s]||e.f-t.f});i>n;++n){var y=s[n].s;if(t>=f[y])break;g+=m-(1<<p-f[y]),f[y]=t}for(g>>>=v;g>0;){var b=s[n].s;t>f[b]?g-=1<<t-f[b]++-1:++n}for(;n>=0&&g;--n){var _=s[n].s;f[_]==t&&(--f[_],++g)}p=t}return[new iL(f),p]},i3=function(e,t,r){return -1==e.s?Math.max(i3(e.l,t,r+1),i3(e.r,t,r+1)):t[e.s]=r},i4=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new iN(++t),n=0,i=e[0],s=1,o=function(e){r[n++]=e},a=1;t>=a;++a)if(e[a]==i&&a!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(i);s=1,i=e[a]}return[r.subarray(0,n),t]},i5=function(e,t){for(var r=0,n=0;t.length>n;++n)r+=e[n]*t[n];return r},i8=function(e,t,r){var n=r.length,i=iZ(t+2);e[i]=255&n,e[i+1]=n>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var s=0;n>s;++s)e[i+s+4]=r[s];return 8*(i+4+n)},i6=function(e,t,r,n,i,s,o,a,l,u,c){i0(t,c++,r),++i[256];for(var d=i2(i,15),h=d[0],f=d[1],p=i2(s,15),g=p[0],v=p[1],m=i4(h),y=m[0],b=m[1],_=i4(g),w=_[0],x=_[1],E=new iN(19),S=0;y.length>S;++S)E[31&y[S]]++;for(S=0;w.length>S;++S)E[31&w[S]]++;for(var R=i2(E,7),k=R[0],T=R[1],A=19;A>4&&!k[iD[A-1]];--A);var C,P,O,I,M=u+5<<3,L=i5(i,iK)+i5(s,iY)+o,N=i5(i,h)+i5(s,g)+o+14+3*A+i5(E,k)+(2*E[16]+3*E[17]+7*E[18]);if(L>=M&&N>=M)return i8(t,c,e.subarray(l,l+u));if(i0(t,c,1+(L>N)),c+=2,L>N){C=iW(h,f,0),P=h,O=iW(g,v,0),I=g;var j=iW(k,T,0);for(i0(t,c,b-257),i0(t,c+5,x-1),i0(t,c+10,A-4),c+=14,S=0;A>S;++S)i0(t,c+3*S,k[iD[S]]);c+=3*A;for(var B=[y,w],F=0;2>F;++F){var D=B[F];for(S=0;D.length>S;++S)i0(t,c,j[H=31&D[S]]),c+=k[H],H>15&&(i0(t,c,D[S]>>>5&127),c+=D[S]>>>12)}}else C=iX,P=iK,O=iJ,I=iY;for(S=0;a>S;++S)if(n[S]>255){i1(t,c,C[257+(H=n[S]>>>18&31)]),c+=P[H+257],H>7&&(i0(t,c,n[S]>>>23&31),c+=iB[H]);var H,U=31&n[S];i1(t,c,O[U]),c+=I[U],U>3&&(i1(t,c,n[S]>>>5&8191),c+=iF[U])}else i1(t,c,C[n[S]]),c+=P[n[S]];return i1(t,c,C[256]),c+P[256]},i9=new ij([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),i7=function(){for(var e=new ij(256),t=0;256>t;++t){for(var r=t,n=9;--n;)r=(1&r&&0xedb88320)^r>>>1;e[t]=r}return e}(),se=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},st=!!u||!!l,sr="text/plain",sn=!1,si=function(e,t,r){void 0===r&&(r=!0);var n,i,s,o,a,[l,u]=e.split("?"),c=y({},t),d=null!=(a=null==u?void 0:u.split("&").map(e=>{var t,[n,i]=e.split("="),s=r&&null!=(t=c[n])?t:i;return delete c[n],n+"="+s}))?a:[],h=(void 0===n&&(n="&"),o=[],rK(c,function(e,t){G(e)||G(t)||"undefined"===t||(i=encodeURIComponent(e instanceof File?e.name:e.toString()),s=encodeURIComponent(t),o[o.length]=s+"="+i)}),o.join(n));return h&&d.push(h),l+"?"+d.join("&")},ss=(e,t)=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,t),so=e=>{if(e.xt)return e.xt;var{data:t,compression:r}=e;if(t){if(r===iM.GZipJS){var n=function(e,t){void 0===t&&(t={});var r=(i=0xffffffff,{p(e){for(var t=i,r=0;e.length>r;++r)t=i7[255&t^e[r]]^t>>>8;i=t},d:()=>0xffffffff^i}),n=e.length;r.p(e);var i,s,o,a,l=(a=10+((s=t).filename&&s.filename.length+1||0),function(e,t,r,n,i,s){var o=e.length,a=new iL(n+o+5*(1+Math.floor(o/7e3))+8),l=a.subarray(n,a.length-8),u=0;if(!t||8>o)for(var c=0;o>=c;c+=65535){var d=c+65535;o>d?u=i8(l,u,e.subarray(c,d)):(l[c]=!0,u=i8(l,u,e.subarray(c,o)))}else{for(var h=i9[t-1],f=h>>>13,p=8191&h,g=(1<<r)-1,v=new iN(32768),m=new iN(g+1),y=Math.ceil(r/3),b=2*y,_=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&g},w=new ij(25e3),x=new iN(288),E=new iN(32),S=0,R=0,k=(c=0,0),T=0,A=0;o>c;++c){var C=_(c),P=32767&c,O=m[C];if(v[P]=O,m[C]=P,c>=T){var I=o-c;if((S>7e3||k>24576)&&I>423){u=i6(e,l,0,w,x,E,R,k,A,c-A,u),k=S=R=0,A=c;for(var M=0;286>M;++M)x[M]=0;for(M=0;30>M;++M)E[M]=0}var L=2,N=0,j=p,B=P-O&32767;if(I>2&&C==_(c-B))for(var F=Math.min(f,I)-1,D=Math.min(32767,c),H=Math.min(258,I);D>=B&&--j&&P!=O;){if(e[c+L]==e[c+L-B]){for(var U=0;H>U&&e[c+U]==e[c+U-B];++U);if(U>L){if(L=U,N=B,U>F)break;var $=Math.min(B,U-2),z=0;for(M=0;$>M;++M){var q=c-B+M+32768&32767,V=q-v[q]+32768&32767;V>z&&(z=V,O=q)}}}B+=(P=O)-(O=v[P])+32768&32767}if(N){w[k++]=0x10000000|i$[L]<<18|iz[N];var G=31&i$[L],W=31&iz[N];R+=iB[G]+iF[W],++x[257+G],++E[W],T=c+L,++S}else w[k++]=e[c],++x[e[c]]}}u=i6(e,l,!0,w,x,E,R,k,A,c-A,u)}return iQ(a,0,n+iZ(u)+i)}(e,null==(o=t).level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+o.mem,a,8)),u=l.length;return function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=2>t.level?4:2*(9==t.level),e[9]=3,0!=t.mtime&&se(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;r.length>=n;++n)e[n+10]=r.charCodeAt(n)}}(l,t),se(l,u-8,r.d()),se(l,u-4,n),l}(function(e,t){var r=e.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var n=new iL(e.length+(e.length>>>1)),i=0,s=function(e){n[i++]=e},o=0;r>o;++o){if(i+5>n.length){var a=new iL(i+8+(r-o<<1));a.set(n),n=a}var l=e.charCodeAt(o);128>l?s(l):(2048>l?s(192|l>>>6):(l>55295&&57344>l?(s(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++o))>>>18),s(128|l>>>12&63)):s(224|l>>>12),s(128|l>>>6&63)),s(128|63&l))}return iQ(n,0,i)}(ss(t)),{mtime:0});return{contentType:sr,body:n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength),estimatedSize:n.byteLength}}if(r===iM.Base64){var i=(e=>"data="+encodeURIComponent("string"==typeof e?e:ss(e)))(function(e){return e?btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(e,t)=>
1String.fromCharCode(parseInt(t,16)))):e}(ss(t)));return{contentType:"application/x-www-form-urlencoded",body:i,estimatedSize:new Blob([i]).size}}var s=ss(t);return{contentType:"application/json",body:s,estimatedSize:new Blob([s]).size}}},sa=e=>{var t,r,n,i=so(e);return!i||(r=e.compression,n=n9(e.url,"compression"),r!==R.GZipJS&&n!==R.GZipJS&&"gzip"!==n)||((t=i.body)instanceof ArrayBuffer?C(new Uint8Array(t)):ArrayBuffer.isView(t)&&C(new Uint8Array(t.buffer,t.byteOffset,t.byteLength)))?{url:e.url,encodedBody:i}:(sn=!0,{url:((e,t)=>{var[r,n]=e.split("#"),[i,s]=r.split("?");if(!s)return e;var o=s.split("&").filter(e=>e.split("=")[0]!==t).join("&");return i+(o?"?"+o:"")+(n?"#"+n:"")})(e.url,"compression"),encodedBody:so(y({},e,{compression:void 0,xt:void 0}))})},sl=e=>{try{return sa(e)}catch(t){return tz.error(t),void(null==e.callback||e.callback({statusCode:0,error:t}))}},su=function(){var e=m(function*(e){var t=ss(e.data),r=yield function(e,t,r){return M.apply(this,arguments)}(t,g.DEBUG,{rethrow:!0});if(!r)return e;var n=yield r.arrayBuffer();return y({},e,{xt:{contentType:sr,body:n,estimatedSize:n.byteLength}})});return function(t){return e.apply(this,arguments)}}(),sc=(e,t)=>si(e,{_:(new Date).getTime().toString(),ver:g.JS_SDK_VERSION,compression:t}),sd=[];l&&sd.push({transport:"fetch",method(e){var t,r=sl(e);if(r){var{url:n,encodedBody:i}=r,{contentType:s,body:o,estimatedSize:a}=null!=i?i:{},u=new Headers;rK(e.headers,function(e,t){u.append(t,e)}),s&&u.append("Content-Type",s);var d=null,h=null;if(c){var f=new c;d={signal:f.signal,timeout:setTimeout(()=>{var t,r;(r=Error("PostHog request timed out"+((t=e.timeout)?" after "+t+"ms":""))).name="AbortError",f.abort(h=r)},e.timeout)}}l(n,y({method:(null==e?void 0:e.method)||"GET",headers:u,keepalive:"POST"===e.method&&52428.8>(a||0),body:o,signal:null==(t=d)?void 0:t.signal},e.fetchOptions)).then(t=>t.text().then(r=>{var n={statusCode:t.status,text:r};if(200===t.status)try{n.json=JSON.parse(r)}catch(e){tz.error(e)}null==e.callback||e.callback(n)})).catch(t=>{t===h?tz.warn(t):tz.error(t),null==e.callback||e.callback({statusCode:0,error:t})}).finally(()=>d?clearTimeout(d.timeout):null)}}}),u&&sd.push({transport:"XHR",method(e){var t=sl(e);if(t){var r=new u,{url:n,encodedBody:i}=t;r.open(e.method||"GET",n,!0);var{contentType:s,body:o}=null!=i?i:{};rK(e.headers,function(e,t){r.setRequestHeader(t,e)}),s&&r.setRequestHeader("Content-Type",s),e.timeout&&(r.timeout=e.timeout),r.onreadystatechange=()=>{if(4===r.readyState){var t={statusCode:r.status,text:r.responseText};if(200===r.status)try{t.json=JSON.parse(r.responseText)}catch(e){}null==e.callback||e.callback(t)}},r.send(o)}}}),null!=s&&s.sendBeacon&&sd.push({transport:"sendBeacon",method(e){try{var{url:t,encodedBody:r}=sa(e),{contentType:n,body:i}=null!=r?r:{};if(!i)return;var o=i instanceof Blob?i:new Blob([i],{type:n});s.sendBeacon(t,o)}catch(e){}}});class sh{constructor(e,t){this.br=!0,this._r=[],this.wr=el((null==t?void 0:t.flush_interval_ms)||3e3,250,5e3,tz.createLogger("flush interval"),3e3),this.kr=e}enqueue(e){this._r.push(e),this.Sr||this.Cr()}unload(){this.Ir();var e=Object.values(this._r.length>0?this.Tr():{});[...e.filter(e=>0===e.url.indexOf("/e")),...e.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.Er(y({},e,{transport:"sendBeacon"}))})}enable(){this.br=!1,this.Cr()}Cr(){var e=this;this.br||(this.Sr=setTimeout(()=>{if(this.Ir(),this._r.length>0){var t=this.Tr();for(var r in t)!function(){var n=t[r],i=(new Date).getTime();n.data&&$(n.data)&&rK(n.data,e=>{e.offset=Math.abs(e.timestamp-i),delete e.timestamp}),e.Er(n)}()}},this.wr))}Er(e){try{this.kr(e)}catch(e){tz.error(e)}}Ir(){clearTimeout(this.Sr),this.Sr=void 0}Tr(){var e={};return rK(this._r,t=>{var r,n=(t?t.batchKey:null)||t.url;G(e[n])&&(e[n]=y({},t,{data:[]})),null==(r=e[n].data)||r.push(t.data)}),this._r=[],e}}var sf=["retriesPerformedSoFar"];class sp{constructor(e){this.Mr=!1,this.Pr=3e3,this._r=[],this._instance=e,this._r=[],this.Rr=!0,!G(n)&&"onLine"in n.navigator&&(this.Rr=n.navigator.onLine,this.Or=()=>{this.Rr=!0,this.Lr()},this.Fr=()=>{this.Rr=!1},r1(n,"online",this.Or),r1(n,"offline",this.Fr))}get length(){return this._r.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,r=b(e,sf);Z(t)&&(r.url=si(r.url,{retry_count:t})),this._instance._send_request(y({},r,{callback:e=>{if(200!==e.statusCode&&(400>e.statusCode||e.statusCode>=500)){if((0===e.statusCode?3:10)>(null!=t?t:0))return void this.st(y({retriesPerformedSoFar:t},r));0===e.statusCode&&tz.warn("Request failed before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped retrying after "+(null!=t?t:0)+" retries.")}null==r.callback||r.callback(e)}}))}st(e){var t,r,n=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=n+1;var i=Math.ceil((r=Math.min(18e5,t=3e3*Math.pow(2,n)))+(Math.random()-.5)*(r-t/2)),s=Date.now()+i;this._r.push({retryAt:s,requestOptions:e});var o="Enqueued failed request for retry in "+i;
1navigator.onLine||(o+=" (Browser is offline)"),tz.warn(o),this.Mr||(this.Mr=!0,this.Ar())}Ar(){if(this.$r&&clearTimeout(this.$r),0===this._r.length)return this.Mr=!1,void(this.$r=void 0);this.$r=setTimeout(()=>{this.Rr&&this._r.length>0&&this.Lr(),this.Ar()},this.Pr)}Lr(){var e=Date.now(),t=[],r=this._r.filter(r=>e>r.retryAt||(t.push(r),!1));if(this._r=t,r.length>0)for(var{requestOptions:n}of r)this.retriableRequest(n)}unload(){for(var{requestOptions:e}of(this.$r&&(clearTimeout(this.$r),this.$r=void 0),this.Mr=!1,G(n)||(this.Or&&(n.removeEventListener("online",this.Or),this.Or=void 0),this.Fr&&(n.removeEventListener("offline",this.Fr),this.Fr=void 0)),this._r))try{this._instance._send_request(y({},e,{transport:"sendBeacon"}))}catch(e){tz.error(e)}this._r=[]}}class sg{constructor(e){this.Dr=()=>{this.Nr||(this.Nr={});var e,t,r,n,i=this.scrollElement(),s=this.scrollY(),o=i?Math.max(0,i.scrollHeight-i.clientHeight):0,a=s+((null==i?void 0:i.clientHeight)||0),l=(null==i?void 0:i.scrollHeight)||0;this.Nr.lastScrollY=Math.ceil(s),this.Nr.maxScrollY=Math.max(s,null!=(e=this.Nr.maxScrollY)?e:0),this.Nr.maxScrollHeight=Math.max(o,null!=(t=this.Nr.maxScrollHeight)?t:0),this.Nr.lastContentY=a,this.Nr.maxContentY=Math.max(a,null!=(r=this.Nr.maxContentY)?r:0),this.Nr.maxContentHeight=Math.max(l,null!=(n=this.Nr.maxContentHeight)?n:0)},this._instance=e}get qr(){return this._instance.config.scroll_root_selector}getContext(){return this.Nr}resetContext(){var e=this.Nr;return setTimeout(this.Dr,0),e}startMeasuringScrollPosition(){r1(n,"scroll",this.Dr,{capture:!0}),r1(n,"scrollend",this.Dr,{capture:!0}),r1(n,"resize",this.Dr)}scrollElement(){if(!this.qr)return null==n?void 0:n.document.documentElement;for(var e of $(this.qr)?this.qr:[this.qr]){var t=null==n?void 0:n.document.querySelector(e);if(t)return t}}jr(e){if(this.qr){var t=this.scrollElement();return t&&t["y"===e?"scrollTop":"scrollLeft"]||0}return n?"y"===e?n.scrollY||n.pageYOffset||n.document.documentElement.scrollTop||0:n.scrollX||n.pageXOffset||n.document.documentElement.scrollLeft||0:0}scrollY(){return this.jr("y")}scrollX(){return this.jr("x")}}var sv=e=>ip(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties,null==e?void 0:e.config.disable_capture_url_hashes);class sm{constructor(e,t,r,n){this.Br=e=>{var t=this.Hr();if(!t||t.sessionId!==e){var r={sessionId:e,props:this.Ur(this._instance)};this.zr.register({[rS]:r})}},this._instance=e,this.Vr=t,this.zr=r,this.Ur=n||sv,this.Vr.onSessionId(this.Br)}Hr(){return this.zr.props[rS]}getSetOnceProps(){var e,t=null==(e=this.Hr())?void 0:e.props;return t?"r"in t?ig(t,this._instance.config.disable_capture_url_hashes):{$referring_domain:t.referringDomain,$pathname:t.initialPathName,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium,utm_content:t.utm_content,utm_term:t.utm_term}:{}}getSessionProps(){var e={};return rK(rQ(this.getSetOnceProps()),(t,r)=>{"$current_url"===r&&(r="url"),e["$session_entry_"+F(r)]=t}),e}}class sy{constructor(){this.Wr={}}on(e,t){return this.Wr[e]||(this.Wr[e]=[]),this.Wr[e].push(t),()=>{this.Wr[e]=this.Wr[e].filter(e=>e!==t)}}emit(e,t){for(var r of this.Wr[e]||[])r(t);for(var n of this.Wr["*"]||[])n(e,t)}}var sb=tq("[SessionId]");class s_{on(e,t){return this.Gr.on(e,t)}constructor(e,t,r){if(this.Zr=null,this.Qr=[],this.Jr=void 0,this.Yr=!1,this.Gr=new sy,this.Kr=(e,t)=>
1!(!Z(e)||!Z(t))&&Math.abs(e-t)>this.sessionTimeoutMs,!e.persistence)throw Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===rB)throw Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Se=e.config,this.zr=e.persistence,this.Xr=void 0,this.ei=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.ti=t||nt,this.ri=r||nt;var n,i=this.Se.persistence_name||this.Se.token;if(this._sessionTimeoutMs=1e3*el(this.Se.session_idle_timeout_seconds||1800,60,36e3,sb.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.ii(),this.ni="ph_"+i+"_window_id",this.si="ph_"+i+"_primary_window_exists",this.oi()){var s=nh.F(this.ni),o=nh.F(this.si);s&&!o?this.Xr=s:nh.A(this.ni),nh.q(this.si,!0)}if(null!=(n=this.Se.bootstrap)&&n.sessionID)try{var a=(e=>{var t=this.Se.bootstrap.sessionID.replace(/-/g,"");if(32!==t.length)throw Error("Not a valid UUID");if("7"!==t[12])throw Error("Not a UUIDv7");return parseInt(t.substring(0,12),16)})();this.ai(this.Se.bootstrap.sessionID,(new Date).getTime(),a)}catch(e){sb.error("Invalid sessionID in bootstrap",e)}this.li()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return G(this.Qr)&&(this.Qr=[]),this.Qr.push(e),this.ei&&e(this.ei,this.Xr),()=>{this.Qr=this.Qr.filter(t=>t!==e)}}oi(){return"memory"!==this.Se.persistence&&!this.zr.Vt&&nh.N()}ui(e){e!==this.Xr&&(this.Xr=e,this.oi()&&nh.q(this.ni,e))}hi(){return this.Xr?this.Xr:this.oi()?nh.F(this.ni):null}di(e){var t=this.Zr;return!Y(t)&&!Y(e)&&5e3>Math.abs(e-t)}ai(e,t,r){var n=t!==this._sessionActivityTimestamp,i=e===this.ei&&r===this._sessionStartTimestamp;this._sessionStartTimestamp=r,this._sessionActivityTimestamp=t,this.ei=e,i&&!n||i&&this.di(t)||(this.Zr=t,this.zr.register({[rn]:[t,e,r]}))}ci(){var e,t=null==(e=this.Se)?void 0:e.persistence_save_debounce_ms;return Z(t)&&t>0}vi(){this.ci()?this.zr.refreshKey(rn):(this.zr.flush(),this.zr.load())}fi(){var e;if(!Y(this._sessionActivityTimestamp)&&this._sessionActivityTimestamp!==this.Zr){this.vi();var[,t,r]=this.pi();t===this.ei&&r===this._sessionStartTimestamp&&(this.Zr=this._sessionActivityTimestamp,this.zr.register({[rn]:[this._sessionActivityTimestamp,null!=(e=this.ei)?e:null,this._sessionStartTimestamp]}),this.zr.flush())}}gi(){var[e]=this.pi();return Math.max(Z(e)?e:0,Z(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0)}mi(e){return this.vi(),this.Kr(e,this.gi())}pi(){var e=this.zr.props[rn];return $(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.Zr=null,clearTimeout(this.yi),this.yi=void 0,this.ai(null,null,null)}destroy(){this.Yr=!0,this.fi(),clearTimeout(this.yi),this.yi=void 0,this.Jr&&n&&(n.removeEventListener(r$,this.Jr,{capture:!1}),this.Jr=void 0),this.Qr=[]}li(){this.Jr=()=>{this.fi(),this.oi()&&nh.A(this.si)},r1(n,r$,this.Jr,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=null),this.Se.cookieless_mode===rB)throw Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=t||(new Date).getTime(),[,n,i]=this.pi(),s=this.gi(),o=this.hi(),a=Z(i)&&Math.abs(r-i)>864e5,l=!1,u=!1,c=!n,d=n,h=!c&&!e&&this.Kr(r,s);h&&((h=this.mi(r))||sb.info("cross-tab refresh kept the session alive",{sessionId:n}),[,n,i]=this.pi()),c||h||a?(n=this.ti(),o=this.ri(),sb.info("new session ID generated",{sessionId:n,windowId:o,changeReason:{noSessionId:c,activityTimeout:h,sessionPastMaximumLength:a}}),i=r,l=!0):(o||(o=this.ri(),l=!0),(u=n!==d)&&(sb.info("adopted cross-tab session id",{sessionId:n,windowId:o}),l=!0));var f=Z(s)&&e&&!a?s:r,p=Z(i)?i:(new Date).getTime();this.ui(o),this.ai(n,f,p),e||this.ii();var g={noSessionId:c,activityTimeout:h,sessionPastMaximumLength:a,crossTabAdoption:u};return l&&this.Qr.forEach(e=>e(n,o,g)),{sessionId:n,windowId:o,sessionStartTimestamp:p,changeReason:l?g:void 0,lastActivityTimestamp:s}}ii(){this.Yr||(clearTimeout(this.yi),this.yi=setTimeout(()=>{if(!this.Yr)if(this.mi((new Date).getTime())){var e=this.ei;this.resetSessionId(),this.Gr.emit("forcedIdleReset",{idleSessionId:e})}else this.ii()},1.1*this.sessionTimeoutMs))}}var sw=function(e,t){if(!e)return!1;var r=e.userAgent;if(r&&N(r,t))return!0;try{var n=null==e?void 0:e.userAgentData;if(null!=n&&n.brands&&n.brands.some(e=>N(null==e?void 0:e.brand,t)))return!0}catch(e){}return!!e.webdriver};function sx(){return(sx=m(function*(){var e=null==s?void 0:s.userAgentData;if(null!=e&&e.getHighEntropyValues)try{var t=yield e.getHighEntropyValues(["model"]),r=null==t?void 0:t.model;return W(r)&&r.length>0?r:void 0}catch(e){return void tz.info("Unable to resolve $device_model from userAgentData.getHighEntropyValues",e)}})).apply(this,arguments)}var sE=function(e,t){if(!function(e){try{new RegExp(e)}catch(e){return!1}return!0}(t))return!1;try{return new RegExp(t).test(e)}catch(e){return!1}};function sS(e,t,r){return ss({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:r})}var sR={exact:(e,t)=>
1t.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=>sE(t,e))),not_regex:(e,t)=>t.every(t=>e.every(e=>!sE(t,e))),icontains:(e,t)=>t.map(sk).some(t=>e.map(sk).some(e=>t.includes(e))),not_icontains:(e,t)=>t.map(sk).every(t=>e.map(sk).every(e=>!t.includes(e))),gt:(e,t)=>t.some(t=>{var r=parseFloat(t);return!isNaN(r)&&e.some(e=>r>parseFloat(e))}),lt:(e,t)=>t.some(t=>{var r=parseFloat(t);return!isNaN(r)&&e.some(e=>r<parseFloat(e))})},sk=e=>e.toLowerCase();function sT(e,t){return!e||Object.entries(e).every(e=>{var[r,n]=e,i=null==t?void 0:t[r];if(G(i)||Y(i))return!1;var s=[String(i)],o=sR[n.operator];return!!o&&o(n.values,s)})}var sA="custom",sC="i.posthog.com",sP=/^\/static\//;class sO{constructor(e){this.bi={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===e?"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,t=null==(e=this.instance.config.ui_host)?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+sC,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this.bi[this.apiHost]||(this.bi[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":sA),this.bi[this.apiHost]}wi(e){if(sP.test(e)){var t=this.instance.config.asset_host;if("string"==typeof t)return t.trim().replace(/\/$/,"")||void 0}}endpointFor(e,t){if(void 0===t&&(t=""),t&&(t="/"===t[0]?t:"/"+t),"ui"===e)return this.uiHost+t;if("flags"===e)return this.flagsApiHost+t;if("assets"===e){var r=this.wi(t);if(r)return""+r+t}if(this.region===sA)return this.apiHost+t;var n=sC+t;switch(e){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var sI=tq("[Surveys]"),sM="seenSurvey_",sL=[ix.Popover,ix.Widget,ix.API],sN={ignoreConditions:!1,ignoreDelay:!1,displayType:ik.Popover},sj=tq("[PostHog ExternalIntegrations]"),sB={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class sF{constructor(e){this._instance=e}Mt(e,t){var r;null==(r=f.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,e,e=>{if(e)return sj.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e,t=this,r=function(e){var r,n,s;!i||null!=(r=f.__PosthogExtensions__)&&null!=(r=r.integrations)&&r[e]||t.Mt(sB[e],()=>{var r;null==(r=f.__PosthogExtensions__)||null==(r=r.integrations)||null==(r=r[e])||r.start(t._instance)}),!i&&null!=(n=f.__PosthogExtensions__)&&null!=(n=n.integrations)&&n[e]&&(null==(s=f.__PosthogExtensions__)||null==(s=s.integrations)||null==(s=s[e])||s.stop())};for(var[n,i]of Object.entries(null!=(e=this._instance.config.integrations)?e:{}))r(n)}}var sD,sH={},sU=0,s$=()=>{},sz='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',sq="Surveys module not available",sV="sanitize_properties is deprecated. Use before_send instead",sG="Invalid value for property_denylist config: ",sW="posthog",sK=!st&&-1===(null==h?void 0:h.indexOf("MSIE"))&&-1===(null==h?void 0:h.indexOf("Mozilla")),sY=e=>{var t;return y({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,asset_host:null,token:"",autocapture:!0,cross_subdomain_cookie:function(e){var t=null==e?void 0:e.hostname;if(!W(t))return!1;var r=t.split(".").slice(-2).join(".");for(var n of r0)if(r===n)return!1;return!0}(null==o?void 0:o.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:s$,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:null!=e?e:"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,__preview_cookie_wins_on_conflict:!1,debug:a&&W(null==a?void 0:a.search)&&-1!==a.search.indexOf("__posthog_debug=true")||!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,disableDeviceModel:!1,disable_external_dependency_loading:!1,strict_script_versioning:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==n||null==(t=n.location)?void 0:t.protocol),ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(e){tz.error("Bad HTTP status: "+e.statusCode+" "+e.text)},get_device_id:e=>e,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:rH,before_send:void 0,request_queue_config:{flush_interval_ms:3e3},error_tracking:{},_onCapture:s$},(e=>({rageclick:e&&e>="2026-05-30"?{content_ignorelist:nP,ignore_text_selection:!0}
1:!e||"2025-11-30">e||{content_ignorelist:!0},capture_pageview:!e||"2025-05-24">e||"history_change",session_recording:e&&e>="2026-06-25"?{strictMinimumDuration:!0,canvasCapture:{resolutionScale:.6},streamNetworkBody:!0}:e&&e>="2026-05-30"?{strictMinimumDuration:!0,canvasCapture:{resolutionScale:.6}}:e&&e>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:e&&e>="2026-01-30"?"head":"body",internal_or_test_user_hostname:e&&e>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:e&&e>="2026-05-30"?250:0,split_storage:!(!e||"2026-05-30">e),detect_google_search_app:!(!e||"2026-05-30">e),disable_capture_url_hashes:!(!e||"2026-06-25">e)}))(e))},sX=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["__preview_disable_beacon","disable_beacon"],["store_google","save_campaign_params"],["verbose","debug"]],sJ=e=>{var t={};for(var[r,n]of sX)G(e[r])||(t[n]=e[r]);var i=rY({},t,e),s=e.__preview_external_dependency_versioned_paths;return G(s)||(G(e.strict_script_versioning)&&(i.strict_script_versioning=!!s),W(s)&&G(e.asset_host)&&(i.asset_host=s)),$(e.property_blacklist)&&(G(e.property_denylist)?i.property_denylist=e.property_blacklist:$(e.property_denylist)?i.property_denylist=[...e.property_blacklist,...e.property_denylist]:tz.error(sG+e.property_denylist)),i};class sZ{constructor(){this.__forceAllowLocalhost=!1}get xi(){return this.__forceAllowLocalhost}set xi(e){tz.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class sQ{ki(e,t){if(e){var r=this.Si.indexOf(e);-1!==r&&this.Si.splice(r,1)}return this.Si.push(t),null==t.initialize||t.initialize(),t}Ci(){return this.config.cookieless_mode===rB||this.config.cookieless_mode===rj&&this.consent.isRejected()}get decideEndpointWasHit(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&e}get flagsEndpointWasHit(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&e}constructor(){this.webPerformance=new sZ,this.Ii=!1,this.version=g.LIB_VERSION,this.Ti=new sy,this.Si=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=sY(),this.SentryIntegration=n1,this.sentryIntegration=e=>(function(e,t){var r=n0(e,t);return{name:nQ,processEvent:e=>r(e)}})(this,e),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Ei=!1,this.Mi=null,this.Pi=null,this.Ri=null,this.scrollManager=new sg(this),this.pageViewManager=new n2(this),this.rateLimiter=new iP(this),this.requestRouter=new sO(this),this.consent=new nf(this),this.externalIntegrations=new sF(this);var e,t=null!=(e=sQ.__defaultExtensionClasses)?e:{};this.featureFlags=t.featureFlags&&new t.featureFlags(this),this.toolbar=t.toolbar&&new t.toolbar(this),this.surveys=t.surveys&&new t.surveys(this),this.conversations=t.conversations&&new t.conversations(this),this.logs=t.logs&&new t.logs(this),this.experiments=t.experiments&&new t.experiments(this),this.exceptions=t.exceptions&&new t.exceptions(this),this.people={set:(e,t,r)=>{var n=W(e)?{[e]:t}:e;this.setPersonProperties(n),null==r||r({})},set_once:(e,t,r)=>{var n=W(e)?{[e]:t}:e;this.setPersonProperties(void 0,n),null==r||r({})}},this.on("eventCaptured",e=>tz.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,r){if(r&&r!==sW){var n,i=null!=(n=sH[r])?n:new sQ;return i._init(e,t,r),sH[r]=i,sH[sW][r]=i,i}return this._init(e,t,r)}_init(e,t,r){void 0===t&&(t={});var i,s,o=W(e)?e.trim():"";if(!o)return tz.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.Oi(t.debug),this.Li=t,this.Fi=[],t.person_profiles?this.Pi=t.person_profiles:t.process_person&&(this.Pi=t.process_person);var a=sY(t.defaults),l=sJ(t),u=rY({},a,l,{name:r,token:o});q(a.rageclick)&&q(l.rageclick)&&(u.rageclick=rY({},a.rageclick,l.rageclick)),q(a.session_recording)&&q(l.session_recording)&&(u.session_recording=rY({},a.session_recording,l.session_recording)),this.set_config(u),this.config.on_xhr_error&&tz.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:iM.GZipJS;var c=this.Ai();this.persistence=new i_(this.config,c),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new i_(y({},this.config,{persistence:"sessionStorage"}),c,!1);var d=y({},this.persistence.props),h=y({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.$i=new sh(e=>this.Di(e),this.config.request_queue_config),this.Ni=new sp(this),this.__request_queue=[];var f=this.Ci();if(f||(this.sessionManager=new s_(this),this.sessionPropsManager=new sm(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(tz.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>{this.qi(f)},0)):(tz.info("Initializing extensions synchronously"),this.qi(f)),g.DEBUG=g.DEBUG||this.config.debug,g.DEBUG&&tz.info("Starting in debug mode",{this:this,config:t,thisC:y({},this.config),p:d,s:h}),!this.config.identity_distinct_id||null!=(i=t.bootstrap)&&i.distinctID||(t.bootstrap=y({},t.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0}
1)),void 0!==(null==(s=t.bootstrap)?void 0:s.distinctID)){var p=t.bootstrap.distinctID,v=this.get_distinct_id(),m=this.persistence.get_property(rE);if(t.bootstrap.isIdentifiedID&&null!=v&&v!==p&&m===rF)this.identify(p);else if(t.bootstrap.isIdentifiedID&&null!=v&&v!==p&&m===rD)tz.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var b=this.config.get_device_id(nt()),_=t.bootstrap.isIdentifiedID?b:p;this.persistence.set_property(rE,t.bootstrap.isIdentifiedID?rD:rF),this.register({distinct_id:p,$device_id:_})}}if(f)this.register_once({distinct_id:rO,$device_id:null},"");else if(!this.get_distinct_id()){var w=this.config.get_device_id(nt());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_property(rE,rF)}return r1(n,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),t.segment?function(e,t){var r=e.config.segment;if(!r)return t();!function(e,t){var r=e.config.segment;if(!r)return t();var n=r=>{var n=()=>r.anonymousId()||nt();e.config.get_device_id=n,r.id()&&(e.register({distinct_id:r.id(),$device_id:n()}),e.persistence.set_property(rE,rD)),t()},i=r.user();"then"in i&&z(i.then)?i.then(n):n(i)}(e,()=>{var n;r.register((Promise&&Promise.resolve||nZ.warn("This browser does not have Promise support, and can not use the segment integration"),n=(t,r)=>{if(!r)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(nZ.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(nZ.info("UserId set, identifying with PostHog"),e.identify(t.event.userId));var n=e.calculateEventProperties(r,t.event.properties);return t.event.properties=Object.assign({},n,t.event.properties),t},{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>n(e,e.event.event),page:e=>n(e,rz),identify:e=>n(e,rV),screen:e=>n(e,"$screen")})).then(()=>{t()})})}(this,()=>this.ji()):this.ji(),z(this.config._onCapture)&&this.config._onCapture!==s$&&(tz.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&tz.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.config.disableDeviceModel||(function(){return sx.apply(this,arguments)})().then(e=>{e&&this.register({[tY]:e})}).catch(s$),this}qi(e){var t,r,n,i,s,o,a,l=performance.now(),u=y({},sQ.__defaultExtensionClasses,this.config.__extensionClasses),c=[];u.featureFlags&&this.Si.push(this.featureFlags=null!=(t=this.featureFlags)?t:new u.featureFlags(this)),u.exceptions&&this.Si.push(this.exceptions=null!=(r=this.exceptions)?r:new u.exceptions(this)),u.historyAutocapture&&this.Si.push(this.historyAutocapture=new u.historyAutocapture(this)),u.tracingHeaders&&this.Si.push(this.tracingHeaders=new u.tracingHeaders(this)),u.siteApps&&this.Si.push(this.siteApps=new u.siteApps(this)),u.sessionRecording&&!e&&this.Si.push(this.sessionRecording=new u.sessionRecording(this)),this.config.disable_scroll_properties||c.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),u.autocapture&&this.Si.push(this.autocapture=new u.autocapture(this)),u.surveys&&this.Si.push(this.surveys=null!=(n=this.surveys)?n:new u.surveys(this)),u.logs&&this.Si.push(this.logs=null!=(i=this.logs)?i:new u.logs(this)),u.conversations&&this.Si.push(this.conversations=null!=(s=this.conversations)?s:new u.conversations(this)),u.productTours&&this.Si.push(this.productTours=new u.productTours(this)),u.heatmaps&&this.Si.push(this.heatmaps=new u.heatmaps(this)),u.webVitalsAutocapture&&this.Si.push(this.webVitalsAutocapture=new u.webVitalsAutocapture(this)),u.exceptionObserver&&this.Si.push(this.exceptionObserver=new u.exceptionObserver(this)),u.deadClicksAutocapture&&this.Si.push(this.deadClicksAutocapture=new u.deadClicksAutocapture(this,nX)),u.toolbar&&this.Si.push(this.toolbar=null!=(o=this.toolbar)?o:new u.toolbar(this)),u.experiments&&this.Si.push(this.experiments=null!=(a=this.experiments)?a:new u.experiments(this)),this.Si.forEach(e
1=>{e.initialize&&c.push(()=>{null==e.initialize||e.initialize()})}),c.push(()=>{if(this.Bi){var e=this.Bi;this.Bi=void 0,this.pr(e)}}),this.Hi(c,l)}Hi(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout(()=>{this.Hi(e,t)},0);var r=e.shift();if(r)try{r()}catch(e){tz.error("Error initializing extension:",e)}}var n=Math.round(performance.now()-t);this.register_for_session({[rI]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[rM]:n}),this.config.__preview_deferred_init_extensions&&tz.info("PostHog extensions initialized ("+n+"ms)")}pr(e){var t;if(!o||!o.body)return tz.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.pr(e)},500);this.config.__preview_deferred_init_extensions&&(this.Bi=e),this.Ui=e,this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=j(e.supportedCompression,iM.GZipJS)?iM.GZipJS:j(e.supportedCompression,iM.Base64)?iM.Base64:void 0),null!=(t=e.analytics)&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Pi?this.Pi:rH}),this.Si.forEach(t=>null==t.onRemoteConfig?void 0:t.onRemoteConfig(e))}ji(){try{this.config.loaded(this)}catch(e){tz.critical("`loaded` function failed",e)}if(this.zi(),this.config.internal_or_test_user_hostname&&null!=a&&a.hostname){var e=a.hostname,t=this.config.internal_or_test_user_hostname;("string"==typeof t?e===t:t.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||this.Ci())&&this.Vi()},1),this.Wi=new iI(this),this.Wi.load()}zi(){var e;this.is_capturing()&&this.config.request_batching&&(null==(e=this.$i)||e.enable())}_dom_loaded(){this.is_capturing()&&rW(this.__request_queue,e=>this.Di(e)),this.__request_queue=[],this.zi()}_handle_unload(){var e,t,r,n;null==(e=this.surveys)||null==e.handlePageUnload||e.handlePageUnload(),this.config.request_batching?(this.Gi()&&this.capture(rq),null==(t=this.logs)||t.flushLogs("sendBeacon"),null==(r=this.$i)||r.unload(),null==(n=this.Ni)||n.unload()):this.Gi()&&this.capture(rq,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded?sK?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)?e.fireCallbackOnDrop&&(null==e.callback||e.callback({statusCode:429})):(e.transport=e.transport||this.config.api_transport,e.headers=y({},this.config.request_headers,e.headers),e.compression="best-available"===e.compression?this.compression:e.compression,(G(this.config.disable_beacon)?this.config.__preview_disable_beacon:this.config.disable_beacon)&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(e=>{var t,r,n,i=y({},e);i.timeout=i.timeout||6e4,i.url=sc(i.url,i.compression);var s=null!=(t=i.transport)?t:"fetch",o=sd.filter(e=>!i.disableTransport||!e.transport||!i.disableTransport.includes(e.transport)),a=null!=(r=null==(n=function(e,t){for(var r=0;e.length>r;r++)if(e[r].transport===s)return e[r]}(o))?void 0:n.method)?r:o[0].method;if(!a)throw Error("No available transport method");"sendBeacon"!==s&&i.data&&i.compression===iM.GZipJS&&d&&!sn?su(i).then(e=>{a(e)}).catch(t=>{if(P(t))return sn=!0,void a(y({},i,{compression:void 0,url:sc(e.url,void 0)}));(e=>{if(!e||"object"!=typeof e)return!1;var t="name"in e?String(e.name):"";return P(e)||t===A})(t)&&(sn=!0),a(i)}):a(i)})(y({},e,{callback:t=>{var r,n;this.rateLimiter.checkForLimiting(t),400>t.statusCode||null==(r=(n=this.config).on_request_error)||r.call(n,t),null==e.callback||e.callback(t)}}))):e.fireCallbackOnDrop&&(null==e.callback||e.callback({statusCode:0}))}Di(e){this.Ni?this.Ni.retriableRequest(e):this._send_request(e)}_execute_array(e){sU++;try{var t,r=[],n=[],i=[];rW(e,e=>{if(e)if($(t=e[0]))i.push(e);else if(z(e))try{e.call(this)}catch(t){tz.error("Error executing queued PostHog call",e,t)}else $(e)&&"alias"===t?r.push(e):$(e)&&-1!==t.indexOf("capture")&&z(this[t])?i.push(e):n.push(e)});var s=function(e,t){rW(e,function(e){try{if($(e[0])){var r=t;
1rK(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else t[e[0]].apply(t,e.slice(1))}catch(t){tz.error("Error executing queued PostHog call",e,t)}})};s(r,this),s(n,this),s(i,this)}finally{sU--}}push(e){if(sU>0&&$(e)&&W(e[0])){var t=sQ.prototype[e[0]];z(t)&&t.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,t,r){var n,i,s,o,a;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.$i){if(this.is_capturing())if(!G(e)&&W(e)){var l=!this.config.opt_out_useragent_filter&&this._is_bot();if(!l||this.config.__preview_capture_bot_pageviews){var u=null!=r&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==u||!u.isRateLimited){null!=t&&t.$current_url&&!W(null==t?void 0:t.$current_url)&&(tz.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),null==t||delete t.$current_url),"$exception"!==e||null!=r&&r.Zi||tz.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 c=new Date,d=(null==r?void 0:r.timestamp)||c,h=ti(null==r?void 0:r.uuid,nt),f={uuid:h,event:e,properties:this.calculateEventProperties(e,t||{},d,h)};e===rz&&this.config.__preview_capture_bot_pageviews&&l&&(f.event="$bot_pageview",f.properties.$browser_type="bot"),u&&(f.properties.$lib_rate_limit_remaining_tokens=u.remainingTokens),(null==r?void 0:r.$set)&&(f.$set=null==r?void 0:r.$set);var p=null==r?void 0:r.$unset;p&&(f.$unset=p);var g,v,m,b=this.Qi(null==r?void 0:r.$set_once,e!==rG,e===rV);if(b&&(f.$set_once=b),null!=r&&r._noTruncate||(i=this.config.properties_string_max_length,s=f,o=e=>W(e)?e.slice(0,i):e,a=new Set,f=function e(t,r){var n;return t!==Object(t)?o?o(t):t:a.has(t)?void 0:(a.add(t),$(t)?(n=[],rW(t,t=>{n.push(e(t))})):(n={},rK(t,(t,r)=>{a.has(t)||(n[r]=e(t,r))})),n)}(s)),f.timestamp=d,G(null==r?void 0:r.timestamp)||(f.properties.$event_time_override_provided=!0,f.properties.$event_time_override_system_time=c),e===iS.DISMISSED||e===iS.SENT){var _=null==t?void 0:t[iR.SURVEY_ID],w=null==t?void 0:t[iR.SURVEY_ITERATION];(e=>{try{var t,r=(t=""+sM+e.id,e.current_iteration&&e.current_iteration>0&&(t=""+sM+e.id+"_"+e.current_iteration),t);
1if(localStorage.getItem(r))return;localStorage.setItem(r,"true")}catch(e){sI.error("Failed to persist survey seen state",e)}})({id:_,current_iteration:w}),f.$set=y({},f.$set,{[(g={id:_,current_iteration:w},m="$survey_"+(v=e===iS.SENT?"responded":"dismissed")+"/"+g.id,g.current_iteration&&g.current_iteration>0&&(m="$survey_"+v+"/"+g.id+"/"+g.current_iteration),m)]:!0})}else e===iS.SHOWN&&(f.$set=y({},f.$set,{[iR.SURVEY_LAST_SEEN_DATE]:(new Date).toISOString()}));if(e===iT.SHOWN){var x=null==t?void 0:t[iA.TOUR_TYPE];x&&(f.$set=y({},f.$set,{[iA.TOUR_LAST_SEEN_DATE+"/"+x]:(new Date).toISOString()}))}var E=y({},f.properties.$set,f.$set);if(V(E)||this.setPersonPropertiesForFlags(E),!X(this.config.before_send)){var S=this.it(f);if(!S)return;(f=S).uuid=ti(f.uuid,nt)}this.Ti.emit("eventCaptured",f);var R={method:"POST",url:null!=(n=null==r?void 0:r._url)?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:f,compression:"best-available",batchKey:null==r?void 0:r._batchKey,transport:null==r?void 0:r.transport};return!this.config.request_batching||r&&(null==r||!r._batchKey)||null!=r&&r.send_instantly?this.Di(R):this.$i.enqueue(R),f}tz.critical("This capture call is ignored due to client rate limiting.")}}else tz.error("No event name provided to posthog.capture")}else tz.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",t=>e(t.event,t))}calculateEventProperties(e,t,r,i,s){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return t;var l,u=s?void 0:this.persistence.remove_event_timer(e),c=y({},t);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ci()&&(c.$cookieless_mode=!0),"$snapshot"===e){var d=y({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!W(c.distinct_id)&&!J(c.distinct_id)||K(c.distinct_id))&&tz.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var f,p=function(e,t,r,i){if(void 0===i&&(i=!1),!h)return{};var s,o,l,u,c,d,f,p,v,m,y,b,_=e?[...ir,...t||[]]:[],[w,x]=function(e){for(var t=0;tt.length>t;t++){var[r,n]=tt[t],i=r.exec(e),s=i&&(z(n)?n(i,e):n);if(s)return s}return["",""]}(h),E=null!=(c="undefined"!=typeof navigator?navigator:void 0)&&c.brave?{brave:!0}:{},S={detectGoogleSearchApp:r},R=rY(rQ({$os:w,$os_version:x,$browser:e9(h,navigator.vendor,E,S),$device:tr(h),$device_type:(f={userAgentDataPlatform:null==(s=navigator)||null==(s=s.userAgentData)?void 0:s.platform,maxTouchPoints:null==(o=navigator)?void 0:o.maxTouchPoints,screenWidth:null==n||null==(l=n.screen)?void 0:l.width,screenHeight:null==n||null==(u=n.screen)?void 0:u.height,devicePixelRatio:null==n?void 0:n.devicePixelRatio},(b=tr(h))===ep||b===ef||"Kobo"===b||"Kindle Fire"===b||b===eq?eh:b===eM||b===eN||b===eL||b===eU?"Console":b===ev?"Wearable":b?ec:"Android"===(null==f?void 0:f.userAgentDataPlatform)&&(null!=(p=null==f?void 0:f.maxTouchPoints)?p:0)>0?600>Math.min(null!=(v=null==f?void 0:f.screenWidth)?v:0,null!=(m=null==f?void 0:f.screenHeight)?m:0)/(null!=(y=null==f?void 0:f.devicePixelRatio)?y:1)?ec:eh:"Desktop"),$timezone:iv(),$timezone_offset:function(){try{return(new Date).getTimezoneOffset()}catch(e){return}}()}),{$current_url:n7(i?ts(null==a?void 0:a.href):null==a?void 0:a.href,_,is),$host:null==a?void 0:a.host,$pathname:null==a?void 0:a.pathname,$raw_user_agent:h.length>1e3?h.substring(0,997)+"...":h,$browser_version:te(h,navigator.vendor,E,S),$browser_language:ic(),$browser_language_prefix:"string"==typeof(d=ic())?d.split("-")[0]:void 0,$screen_height:null==n?void 0:n.screen.height,$screen_width:null==n?void 0:n.screen.width,$viewport_height:null==n?void 0:n.innerHeight,$viewport_width:null==n?void 0:n.innerWidth,$lib:g.LIB_NAME,$lib_version:g.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3});return g.SDK_DIST_CHANNEL&&(R.$sdk_dist_channel=g.SDK_DIST_CHANNEL),R}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties,this.config.detect_google_search_app,this.config.disable_capture_url_hashes
1);if(this.sessionManager){var{sessionId:v,windowId:m}=this.sessionManager.checkAndGetSessionAndWindowId(s,r.getTime());c.$session_id=v,c.$window_id=m}this.sessionPropsManager&&rY(c,this.sessionPropsManager.getSessionProps());try{this.sessionRecording&&rY(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=null==(l=this.Ni)?void 0:l.length}catch(e){c.$sdk_debug_error_capturing_properties=String(e)}if(this.requestRouter.region===sA&&(c.$lib_custom_api_host=this.config.api_host),f=e!==rz||s?e!==rq||s?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,i),c=rY(c,f),e===rz&&o&&(c.title=o.title),!G(u)){var b=r.getTime()-u;c.$duration=parseFloat((b/1e3).toFixed(3))}h&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=rY({},p,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),$(this.config.property_denylist)?rK(this.config.property_denylist,function(e){delete c[e]}):tz.error(sG+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var _=this.config.sanitize_properties;_&&(tz.error(sV),c=_(c,e));var w=this.Ji();return c.$process_person_profile=w,w&&!s&&this.Yi("_calculate_event_properties"),c}Qi(e,t,r){if(void 0===t&&(t=!0),void 0===r&&(r=!1),!this.persistence||!this.Ji()||this.Ii&&!r)return e;var n,i=rY({},this.persistence.get_initial_props(),(null==(n=this.sessionPropsManager)?void 0:n.getSetOnceProps())||{},e||{}),s=this.config.sanitize_properties;return s&&(tz.error(sV),i=s(i,"$set_once")),t&&(this.Ii=!0),V(i)?void 0:i}register(e,t){var r;null==(r=this.persistence)||r.register(e,t)}register_once(e,t,r){var n;null==(n=this.persistence)||n.register_once(e,t,r)}register_for_session(e){var t;null==(t=this.sessionPersistence)||t.register(e)}unregister(e){var t;null==(t=this.persistence)||t.unregister(e)}unregister_for_session(e){var t;null==(t=this.sessionPersistence)||t.unregister(e)}Ki(e,t){this.register({[e]:t})}getFeatureFlag(e,t){var r;return null==(r=this.featureFlags)?void 0:r.getFeatureFlag(e,t)}getFeatureFlagPayload(e){var t;return null==(t=this.featureFlags)?void 0:t.getFeatureFlagPayload(e)}getFeatureFlagResult(e,t){var r;return null==(r=this.featureFlags)?void 0:r.getFeatureFlagResult(e,t)}getAllFeatureFlags(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.getAllFeatureFlags())?e:[]}isFeatureEnabled(e,t){var r;return null==(r=this.featureFlags)?void 0:r.isFeatureEnabled(e,t)}reloadFeatureFlags(){var e;null==(e=this.featureFlags)||e.reloadFeatureFlags()}updateFlags(e,t,r){var n;null==(n=this.featureFlags)||n.updateFlags(e,t,r)}updateEarlyAccessFeatureEnrollment(e,t,r){var n;null==(n=this.featureFlags)||n.updateEarlyAccessFeatureEnrollment(e,t,r)}getEarlyAccessFeatures(e,t,r){var n;return void 0===t&&(t=!1),null==(n=this.featureFlags)?void 0:n.getEarlyAccessFeatures(e,t,r)}on(e,t){return this.Ti.on(e,t)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:sq}),()=>{})}onSessionId(e){var t,r;return null!=(t=null==(r=this.sessionManager)?void 0:r.onSessionId(e))?t:()=>{}}getSurveys(e,t){void 0===t&&(t=!1),this.surveys?this.surveys.getSurveys(e,t):e([],{isLoaded:!1,error:sq})}getActiveMatchingSurveys(e,t){void 0===t&&(t=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,t):e([],{isLoaded:!1,error:sq})}renderSurvey(e,t){var r;null==(r=this.surveys)||r.renderSurvey(e,t)}displaySurvey(e,t){var r;void 0===t&&(t=sN),null==(r=this.surveys)||r.displaySurvey(e,t)}cancelPendingSurvey(e){var t;null==(t=this.surveys)||t.cancelPendingSurvey(e)}canRenderSurvey(e){var t,r;return null!=(t=null==(r=this.surveys)?void 0:r.canRenderSurvey(e))?t:{visible:!1,disabledReason:sq}}canRenderSurveyAsync(e,t){var r,n;return void 0===t&&(t=!1),null!=(r=null==(n=this.surveys)?void 0:n.canRenderSurveyAsync(e,t))?r:Promise.resolve({visible:!1,disabledReason:sq})}Xi(e){return!e||K(e)?(tz.critical("Unique user id has not been set in posthog.identify"),!1):e===rO?(tz.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(tz.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and n
1ot a hardcoded string.'),!1)}identify(e,t,r){if(!this.__loaded||!this.persistence)return tz.uninitializedWarning("posthog.identify");if(J(e)&&(e=e.toString(),tz.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.Xi(e)&&this.Yi("posthog.identify")){var n=this.get_distinct_id();this.register({$user_id:e}),this.get_property(tK)||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),e!==n&&e!==this.get_property(tX)&&(this.unregister(tX),this.register({distinct_id:e}));var i,s=(this.persistence.get_property(rE)||rF)===rF;e!==n&&s?(this.persistence.set_property(rE,rD),this.setPersonPropertiesForFlags({$set:t||{},$set_once:r||{}},!1),this.capture(rV,{distinct_id:e,$anon_distinct_id:n},{$set:t||{},$set_once:r||{}}),this.Ri=sS(e,t,r),null==(i=this.featureFlags)||i.setAnonymousDistinctId(n)):(t||r)&&this.setPersonProperties(t,r),e!==n&&(this.reloadFeatureFlags(),this.unregister(rb))}}setPersonProperties(e,t){if((e||t)&&this.Yi("posthog.setPersonProperties")){var r=sS(this.get_distinct_id(),e,t);this.Ri!==r?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:t||{}},!0),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.Ri=r):tz.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}unsetPersonProperties(e){var t,r=($(e)?e:[e]).filter(e=>W(e)&&e.length>0);0!==r.length&&this.Yi("posthog.unsetPersonProperties")&&(null==(t=this.featureFlags)||t.unsetPersonPropertiesForFlags(r,!0),this.capture("$set",{$unset:r}),this.Ri=null)}group(e,t,r){if(e&&t){var n=this.getGroups(),i=n[e]!==t;if(i&&this.resetGroupPropertiesForFlags(e),this.register({$groups:y({},n,{[e]:t})}),i||r){var s={$group_type:e,$group_key:t};r&&(s.$group_set=r),this.capture(rG,s)}r&&this.setGroupPropertiesForFlags({[e]:r}),i&&!r&&this.reloadFeatureFlags()}else tz.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){var r;void 0===t&&(t=!0),null==(r=this.featureFlags)||r.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(e){var t;void 0===e&&(e=!0),null==(t=this.featureFlags)||t.resetPersonPropertiesForFlags(e)}setGroupPropertiesForFlags(e,t){var r;void 0===t&&(t=!0),this.Yi("posthog.setGroupPropertiesForFlags")&&(null==(r=this.featureFlags)||r.setGroupPropertiesForFlags(e,t))}resetGroupPropertiesForFlags(e){var t;null==(t=this.featureFlags)||t.resetGroupPropertiesForFlags(e)}reset(e){if(tz.info("reset"),!this.__loaded)return tz.uninitializedWarning("posthog.reset");var t,r,n,i,s,o,a,l,u,c,d=this.get_property(tK),h=this.get_property(tY),f=this.get_property(t6);if(this.consent.reset(),null==(t=this.persistence)||t.clear(),null==(r=this.sessionPersistence)||r.clear(),G(f)||null==(c=this.persistence)||c.register({[t6]:f}),null==(n=this.surveys)||n.reset(),null==(i=this.Wi)||i.stop(),null==(s=this.featureFlags)||s.reset(),null==(o=this.conversations)||o.reset(),null==(a=this.logs)||a.reset(),null==(l=this.persistence)||l.set_property(rE,rF),null==(u=this.sessionManager)||u.resetSessionId(),this.Ri=null,this.config.cookieless_mode===rB)this.register_once({distinct_id:rO,$device_id:null},"");else{var p=this.config.get_device_id(nt());this.register_once({distinct_id:p,$device_id:e?p:d},""),e||G(h)||this.register({[tY]:h})}this.register({$last_posthog_reset:(new Date).toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(e,t){var r;this.config.identity_distinct_id=e,this.config.identity_hash=t,this.alias(e),null==(r=this.conversations)||r.en()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,null==(e=this.conversations)||e.tn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,t;return null!=(e=null==(t=this.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:t,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+t);if(null!=e&&e.withTimestamp&&r){var i,s=null!=(i=e.timestampLookBack)?i:10;if(!r)return n;n+="?t="+Math.max(Math.floor(((new Date).getTime()-r)/1e3)-s,0)}return n}alias(e,t){return e===this.get_property(tW)?(tz.critical("Attempting to create alias for existing People user - aborting."),-2):this.Yi("posthog.alias")?(G(t)&&(t=this.get_distinct_id()),e!==t?(this.Ki(tX,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(tz.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=y({},this.config);if(q(e)){rY(this.config,sJ(e));var r,n,i,s,o,a,l,u,c,d,h,f=this.Ai();null==(r=this.persistence)||r.update_config(this.config,t,f),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new i_(y({},this.config,{persistence:"sessionStorage"}),f,!1);var p=this.Oi(this.config.debug);Q(p)&&(this.config.debug=p),Q(this.config.debug)&&(this.config.debug?(g.DEBUG=!0,na.N()&&na.q("ph_debug",!0),tz.info("set_config",{config:e,oldConfig:t,newConfig:y({},this.config)})):(g.DEBUG=!1,na.N()&&na.A("ph_debug"))),null==(n=this.exceptionObserver)||n.onConfigChange(),null==(i=this.exceptions)||i.onConfigChange(),null==(s=this.sessionRecording)||s.startIfEnabledOrStop(),null==(o=this.tracingHeaders)||o.startIfEnabledOrStop(),null==(a=this.autocapture)||a.startIfEnabled(),null==(l=this.heatmaps)||l.startIfEnabled(),null==(u=this.exceptionObserver)||u.startIfEnabledOrStop(),null==(c=this.deadClicksAutocapture)||
1c.startIfEnabledOrStop(),null==(d=this.surveys)||d.loadIfEnabled(),this.rn(),null==(h=this.externalIntegrations)||h.startIfEnabledOrStop()}}_overrideSDKInfo(e,t){g.LIB_NAME=e,g.LIB_VERSION=t}startSessionRecording(e){var t,r,n,i,s,o=!0===e,a={sampling:o||!(null==e||!e.sampling),linked_flag:o||!(null==e||!e.linked_flag),url_trigger:o||!(null==e||!e.url_trigger),event_trigger:o||!(null==e||!e.event_trigger)};Object.values(a).some(Boolean)&&(null==(t=this.sessionManager)||t.checkAndGetSessionAndWindowId(),a.sampling&&(null==(r=this.sessionRecording)||r.overrideSampling()),a.linked_flag&&(null==(n=this.sessionRecording)||n.overrideLinkedFlag()),a.url_trigger&&(null==(i=this.sessionRecording)||i.overrideTrigger("url")),a.event_trigger&&(null==(s=this.sessionRecording)||s.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!(null==(e=this.sessionRecording)||!e.started)}captureException(e,t){if(this.exceptions){var r=Error("PostHog syntheticException"),n=this.exceptions.buildProperties(e,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(y({},n,t))}}addExceptionStep(e,t){var r;null==(r=this.exceptions)||r.addExceptionStep(e,t)}captureLog(e){var t;null==(t=this.logs)||t.captureLog(e)}get logger(){var e,t;return null!=(e=null==(t=this.logs)?void 0:t.logger)?e:sQ.nn}startExceptionAutocapture(e){this.set_config({capture_exceptions:null==e||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var t,r;return null!=(t=null==(r=this.toolbar)?void 0:r.loadToolbar(e))&&t}get_property(e){var t;return null==(t=this.persistence)?void 0:t.props[e]}getSessionProperty(e){var t;return null==(t=this.sessionPersistence)?void 0:t.props[e]}toString(){var e,t=null!=(e=this.config.name)?e:sW;return t!==sW&&(t=sW+"."+t),t}_isIdentified(){var e,t;return(null==(e=this.persistence)?void 0:e.get_property(rE))===rD||(null==(t=this.sessionPersistence)?void 0:t.get_property(rE))===rD}Ji(){var e,t;return!("never"===this.config.person_profiles||this.config.person_profiles===rH&&!this._isIdentified()&&V(this.getGroups())&&(null==(e=this.persistence)||null==(e=e.props)||!e[tX])&&(null==(t=this.persistence)||null==(t=t.props)||!t[rC]))}Gi(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&(!0===this.config.capture_pageview||"history_change"===this.config.capture_pageview)}createPersonProfile(){this.Ji()||this.Yi("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.Yi("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}Yi(e){return"never"===this.config.person_profiles?(tz.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Ki(rC,!0),!0)}Ai(){if("always"===this.config.cookieless_mode)return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==rj)}rn(){var e,t,r,n,i=this.Ai();return(null==(e=this.persistence)?void 0:e.Vt)!==i&&(null==(r=this.persistence)||r.set_disabled(i)),(null==(t=this.sessionPersistence)?void 0:t.Vt)!==i&&(null==(n=this.sessionPersistence)||n.set_disabled(i)),i}opt_in_capturing(e){var t;if(this.config.cookieless_mode!==rB){if(this.Ci()){this.reset(!0),null==(i=this.sessionManager)||i.destroy(),null==(s=this.pageViewManager)||s.destroy(),this.sessionManager=new s_(this),this.pageViewManager=new n2(this),this.persistence&&(this.sessionPropsManager=new sm(this,this.sessionManager,this.persistence));var r,n,i,s,o,a,l,u,c=null!=(o=null==(a=this.config.__extensionClasses)?void 0:a.sessionRecording)?o:null==(l=sQ.__defaultExtensionClasses)?void 0:l.sessionRecording;c&&(this.sessionRecording=this.ki(this.sessionRecording,new c(this)),this.Ui&&(null==(u=this.sessionRecording)||null==u.onRemoteConfig||u.onRemoteConfig(this.Ui)))}this.consent.optInOut(!0),this.rn(),this.zi(),null==(t=this.sessionRecording)||t.startIfEnabledOrStop(),this.config.cookieless_mode==rj&&(null==(r=this.surveys)||r.loadIfEnabled()),(G(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!=(n=null==e?void 0:e.captureEventName)?n:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Vi()}else tz.warn(sz)}opt_out_capturing(){var e,t,r;this.config.cookieless_mode!==rB?(this.config.cookieless_mode===rj&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.rn(),this.config.cookieless_mode===rj&&(this.register({distinct_id:rO,$device_id:null}),null==(e=this.sessionRecording)||e.stopRecording(),this.sessionRecording=void 0,null==(t=this.sessionManager)||t.destroy(),null==(r=this.pageViewM
1anager)||r.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.config.capture_pageview&&this.Vi(),this.zi())):tz.warn(sz)}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 1===e?"granted":0===e?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===rB||(this.config.cookieless_mode===rj?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.rn()}_is_bot(){return s?sw(s,this.config.custom_blocked_useragents):void 0}Vi(){o&&("visible"===o.visibilityState?this.Ei||(this.Ei=!0,this.capture(rz,{title:o.title},{send_instantly:!0}),this.Mi&&(o.removeEventListener(rU,this.Mi),this.Mi=null)):this.Mi||(this.Mi=this.Vi.bind(this),r1(o,rU,this.Mi)))}debug(e){!1===e?(null==n||n.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(null==n||n.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}))}mr(){var e,t,r,n,i=this.Li||{};return"advanced_disable_flags"in i?!!i.advanced_disable_flags:!1!==this.config.advanced_disable_flags?!!this.config.advanced_disable_flags:!0===this.config.advanced_disable_decide?(tz.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):(t="advanced_disable_decide",r=(e="advanced_disable_flags")in i&&!X(i[e]),n=t in i&&!X(i[t]),r?i[e]:!!n&&(tz&&tz.warn("Config field '"+t+"' is deprecated. Please use '"+e+"' instead. The old field will be removed in a future major version."),i[t]))}it(e){if(X(this.config.before_send))return e;var t,r=Object.keys(null!=(t=e.properties)?t:{}).filter(et),n=$(this.config.before_send)?this.config.before_send:[this.config.before_send],i=e;for(var s of n){if(X(i=s(i))){var o="Event '"+e.event+"' was rejected in beforeSend function";return ee(e.event)?tz.warn(o+". This can cause unexpected behavior."):tz.info(o),null}i.properties&&!V(i.properties)||tz.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}for(var a of r)if(i.properties&&X(i.properties[a]))return tz.warn("Event '"+e.event+"' had its '"+a+"' property removed in a beforeSend function. This property is required for ingestion, so the event will be dropped."),null;return i}getPageViewId(){var e;return null==(e=this.pageViewManager.Ot)?void 0:e.pageViewId}captureTraceFeedback(e,t){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,r){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(r)})}Oi(e){var t=Q(e)&&!e,r=na.N()&&"true"===na.P("ph_debug");return!t&&(!!r||e)}}sQ.__defaultExtensionClasses={},sQ.nn={trace:sD=()=>{},debug:sD,info:sD,warn:sD,error:sD,fatal:sD},function(e,t){for(var r=0;t.length>r;r++)e.prototype[t[r]]=rZ(e.prototype[t[r]])}(sQ,["identify"]);class s0{constructor(e){this.disabled=!1===e;var t=q(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,r){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(t-n.y)<this.thresholdPx&&this.timeoutMs>r-n.timestamp){if(this.clicks.push({x:e,y:t,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:r}];return!1}}var s1="$copy_autocapture",s2=tq("[AutoCapture]");function s3(e,t){return t.length>e?t.slice(0,e)+"...":t}var s4=tq("[ExceptionAutocapture]"),s5=tq("[TracingHeaders]"),s8=tq("[Web Vitals]"),s6="disabled",s9="lazy_loading",s7="awaiting_config",oe="missing_config";tq("[SessionRecording]"),tq("[SessionRecording]");var ot="[SessionRecording]",or=tq(ot),on=tq("[Heatmaps]");function oi(e){return q(e)&&"clientX"in e&&"clientY"in e&&J(e.clientX)&&J(e.clientY)}var os=tq("[Product Tours]"),oo=e=>{var t;return!e.config.disable_product_tours&&!(null==(t=e.persistence)||!t.get_property(t5))},oa=["$set_once","$set"],ol=tq("[SiteApps]"),ou="Error while initializing PostHog app with config id ";function oc(e,t,r){if(X(e))return!1;switch(r){case"exact":return e===t;case"contains":return RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*"),"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch(e){return!1}default:return!1}}class od{constructor(e){this.sn=new sy,this.an=(e,t)=>this.ln(e,t)&&this.un(e,t)&&this.hn(e,t)&&this.dn(e,t),this.ln=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event),this._instance=e,this.cn=new Set,this.vn=new Set}init(){var e,t;G(null==(e=this._instance)?void 0:e._addCaptureHook)||null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.on(e,t)})}register(e){var t,r;if(!G(null==(t=this._instance)?void 0:t._addCaptureHook)&&(e.forEach(e
vendor: 4,545 bytes, line 1
1=>{var t,r;null==(t=this.vn)||t.add(e),null==(r=e.steps)||r.forEach(e=>{var t;null==(t=this.cn)||t.add((null==e?void 0:e.event)||"")})}),null!=(r=this._instance)&&r.autocapture)){var n,i=new Set;e.forEach(e=>{var t;null==(t=e.steps)||t.forEach(e=>{null!=e&&e.selector&&i.add(null==e?void 0:e.selector)})}),null==(n=this._instance)||n.autocapture.setElementSelectors(i)}}on(e,t){var r;null!=t&&0!=e.length&&(this.cn.has(e)||this.cn.has(null==t?void 0:t.event))&&this.vn&&(null==(r=this.vn)?void 0:r.size)>0&&this.vn.forEach(e=>{this.fn(t,e)&&this.sn.emit("actionCaptured",e.name)})}pn(e){this.onAction("actionCaptured",t=>e(t))}fn(e,t){if(null==(null==t?void 0:t.steps))return!1;for(var r of t.steps)if(this.an(e,r))return!0;return!1}onAction(e,t){return this.sn.on(e,t)}un(e,t){if(null!=t&&t.url){var r,n=null==e||null==(r=e.properties)?void 0:r.$current_url;if(!n||"string"!=typeof n||!oc(n,t.url,t.url_matching||"contains"))return!1}return!0}hn(e,t){return!!this.gn(e,t)&&!!this.mn(e,t)&&!!this.yn(e,t)}gn(e,t){if(null==t||!t.href)return!0;var r=this.bn(e);if(r.length>0)return r.some(e=>oc(e.href,t.href,t.href_matching||"exact"));var n,i,s=(null==e||null==(n=e.properties)?void 0:n.$elements_chain)||"";return!!s&&oc((i=s.match(/(?::|")href="(.*?)"/))?i[1]:"",t.href,t.href_matching||"exact")}mn(e,t){if(null==t||!t.text)return!0;var r=this.bn(e);if(r.length>0)return r.some(e=>oc(e.text,t.text,t.text_matching||"exact")||oc(e.$el_text,t.text,t.text_matching||"exact"));var n,i,s,o,a=(null==e||null==(n=e.properties)?void 0:n.$elements_chain)||"";return!!a&&(i=function(e){for(var t,r=[],n=/(?::|")text="(.*?)"/g;!X(t=n.exec(e));)r.includes(t[1])||r.push(t[1]);return r}(a),s=t.text,o=t.text_matching||"exact",i.some(e=>oc(e,s,o)))}yn(e,t){if(null==t||!t.selector)return!0;var r,n,i=null==e||null==(r=e.properties)?void 0:r.$element_selectors;if(null!=i&&i.includes(t.selector))return!0;var s=(null==e||null==(n=e.properties)?void 0:n.$elements_chain)||"";if(t.selector_regex&&s)try{return new RegExp(t.selector_regex).test(s)}catch(e){}return!1}bn(e){var t;return null==(null==e||null==(t=e.properties)?void 0:t.$elements)?[]:null==e?void 0:e.properties.$elements}dn(e,t){return null==t||!t.properties||0===t.properties.length||sT(t.properties.reduce((e,t)=>{var r=$(t.value)?t.value.map(String):null!=t.value?[String(t.value)]:[];return e[t.key]={values:r,operator:t.operator||"exact"},e},{}),null==e?void 0:e.properties)}}class oh{constructor(e){this._n=[],this._instance=e,this.wn=new Map,this.xn=new Map,this.kn=new Map}Sn(e,t){return!!e&&sT(e.propertyFilters,null==t?void 0:t.properties)}Cn(e,t){var r=new Map;return e.forEach(e=>{var n;null==(n=e.conditions)||null==(n=n[t])||null==(n=n.values)||n.forEach(t=>{if(null!=t&&t.name){var n=r.get(t.name)||[];n.push(e.id),r.set(t.name,n)}})}),r}In(e,t,r){var n=(r===iw.Activation?this.wn:this.xn).get(e),i=[];return this.Tn(e=>{i=e.filter(e=>null==n?void 0:n.includes(e.id))}),i.filter(n=>{var i,s=null==(i=n.conditions)||null==(i=i[r])||null==(i=i.values)?void 0:i.find(t=>t.name===e);return this.Sn(s,t)})}register(e){var t;G(null==(t=this._instance)?void 0:t._addCaptureHook)||(this.En(e),this.Mn(e))}Mn(e){var t=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.actions)&&(null==(r=e.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0});0!==t.length&&(null==this.Pn&&(this.Pn=new od(this._instance),this.Pn.init(),this.Pn.pn(e=>{this.onAction(e)})),t.forEach(e=>{var t,r,n,i,s;e.conditions&&null!=(t=e.conditions)&&t.actions&&null!=(r=e.conditions)&&null!=(r=r.actions)&&r.values&&(null==(n=e.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0&&(null==(i=this.Pn)||i.register(e.conditions.actions.values),null==(s=e.conditions)||null==(s=s.actions)||null==(s=s.values)||s.forEach(t=>{if(t&&t.name){var r=this.kn.get(t.name);r&&r.push(e.id),this.kn.set(t.name,r||[e.id])}}))}))}En(e){var t,r=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.events)&&(null==(r=e.conditions)||null==(r=r.events)||null==(r=r.values)?void 0:r.length)>0}),n=e.filter(e=>{var t,r;return(null==(t=e.conditions)?void 0:t.cancelEvents)&&(null==(r=e.conditions)||null==(r=r.cancelEvents)||null==(r=r.values)?void 0:r.length)>0});0===r.length&&0===n.length||(null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.onEvent(e,t)}),this.wn=this.Cn(e,iw.Activation),this.xn=this.Cn(e,iw.Cancellation))}onEvent(e,t){var r,n,i=this.Rn(),s=(null==t||null==(r=t.properties)?void 0:r.$survey_id)||(null==t||null==(n=t.properties)?void 0:n.$product_tour_id);
1if(s&&this.getActivatedIds().includes(s)){var o=this.On(e,s);if("consume"===o)return i.info("event consumed activated item, removing it",{event:e,itemId:s}),void this.Ln([s]);if("persist"===o)return i.info("shown item promoted to persisted activation",{event:e,itemId:s}),void this.Fn(s)}if(this.xn.has(e)){var a=this.In(e,t,iw.Cancellation);a.length>0&&(i.info("cancel event matched, cancelling items",{event:e,itemsToCancel:a.map(e=>e.id)}),this.Ln(a.map(e=>e.id)),a.forEach(e=>this.An(e.id)))}if(this.wn.has(e)){i.info("event name matched",{event:e,eventPayload:t,items:this.wn.get(e)});var l=this.In(e,t,iw.Activation);this.$n(l.map(e=>e.id))}}onAction(e){this.kn.has(e)&&this.$n(this.kn.get(e)||[])}$n(e){0!==e.length&&(this._n=[...new Set([...this._n,...e])],this.Rn().info("updating activated items",{activatedItems:this.getActivatedIds()}))}Fn(e){this._n=this._n.filter(t=>t!==e);var t=this.Dn();t.includes(e)||this.Nn([...t,e])}Ln(e){var t=new Set(e);this._n=this._n.filter(e=>!t.has(e));var r=this.Dn(),n=r.filter(e=>!t.has(e));n.length!==r.length&&this.Nn(n)}Dn(){var e,t=this.qn();return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[t])||[]}getActivatedIds(){return[...new Set([...this.Dn(),...this._n])].filter(e=>!this.jn(e))}reset(){this._n=[],this.Dn().length>0&&this.Nn([])}getEventToItemsMap(){return this.wn}Bn(){return this.Pn}}class of extends oh{constructor(e){super(e)}qn(){return rm}Hn(){return iS.SHOWN}Tn(e){var t;null==(t=this._instance)||t.getSurveys(e)}An(e){var t;null==(t=this._instance)||t.cancelPendingSurvey(e)}Rn(){return sI}Nn(e){var t;null==(t=this._instance)||null==(t=t.persistence)||t.register({[rm]:e})}jn(){return!1}On(e,t){var r,n,i,s,o,a;return this.Tn(e=>{a=e.find(e=>e.id===t)}),!a||(o=(null!=(n=null==(i=(r=a).conditions)||null==(i=i.events)||null==(i=i.values)?void 0:i.length)?n:0)>0,r.schedule===iE.Always||null!=(s=r.conditions)&&null!=(s=s.events)&&s.repeatedActivation&&o)?e===iS.SHOWN?"consume":"ignore":e===iS.SHOWN?"persist":e===iS.DISMISSED||e===iS.SENT?"consume":"ignore"}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var op="SDK is not enabled or survey functionality is not yet loaded",og="Disabled. Not loading surveys.",ov=null!=n&&n.location?ie(n.location.hash,"__posthog")||ie(location.hash,"state"):null,om="_postHogToolbarParams",oy=tq("[Toolbar]"),ob=tq("[FeatureFlags]"),o_=tq("[FeatureFlags]",{debugEnabled:!0}),ow="\" failed. Feature flags didn't load in time.",ox=e=>{for(var t={},r=0;e.length>r;r++)t[e[r]]=!0;return t},oE=e=>{var t={};for(var[r,n]of rX(e||{}))n&&(t[r]=n);return t},oS=tq("[Error tracking]"),oR="Refusing to render web experiment since the viewer is a likely bot",ok={icontains:(e,t)=>!!n&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!n&&-1===t.href.toLowerCase().indexOf(e.toLowerCase()),regex:(e,t)=>!!n&&sE(t.href,e),not_regex:(e,t)=>!!n&&!sE(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class oT{get Se(){return this._instance.config}constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{oT.Un("retrieved web experiments from the server"),t.zn=new Map,e.forEach(e=>{if(e.feature_flag_key){t.zn&&(oT.Un("setting flag key ",e.feature_flag_key," to web experiment ",e),null==(r=t.zn)||r.set(e.feature_flag_key,e));var r,n=t._instance.getFeatureFlag(e.feature_flag_key);W(n)&&e.variants[n]&&t.Vn(e.name,n,e.variants[n].transforms)}else if(e.variants)for(var i in e.variants){var s=e.variants[i];oT.Wn(s)&&t.Vn(e.name,i,s.transforms)}})},e)},this._instance=e,this._instance.onFeatureFlags(e=>{this.onFeatureFlags(e)})}initialize(){}onFeatureFlags(e){if(this._is_bot())oT.Un(oR);else if(!this.Se.disable_web_experiments){if(X(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();oT.Un("applying feature flags",e),e.forEach(e=>{var t;if(this.zn&&null!=(t=this.zn)&&t.has(e)){var r,n=this._instance.getFeatureFlag(e),i=null==(r=this.zn)?void 0:r.get(e);n&&null!=i&&i.variants[n]&&this.Vn(i.name,n,i.variants[n].transforms)}})}}previewWebExperiment(){var e=oT.getWindowLocation();if(null!=e&&e.search){var t=n9(null==e?void 0:e.search,"__experiment_id"),r=n9(null==e?void 0:e.search,"__experiment_variant");t&&r&&(oT.Un("previewing web experiments "+t+" && "+r),this.getWebExperiments(e=>{this.Gn(parseInt(t),r,e)},!1,!0))}}loadIfEnabled(){this.Se.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,r){if(this.Se.disable_web_experiments&&!r)return e([]);var n=this._instance.get_property("$web_experiments");if(n&&!t)return e(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Se.token),method:"GET",callback:t=>e(200===t.statusCode&&t.json&&t.json.experiments||[])})}Gn(e,t,r){var n=r.filter(t=>t.id===e);n&&n.length>0&&(oT.Un("Previewing web experiment ["+n[0].name+"] with variant ["+t+"]"),this.Vn(n[0].name,t,n[0].variants[t].transforms))}static Wn(e){return!X(e.conditions)&&oT.Zn(e)&&oT.Qn(e)}static Zn(e){if(X(e.conditions)||X(null==(t=e.conditions)?void 0:t.url))return!0;var t,r,n,i,s=oT.getWindowLocation();return!!s&&(null==(r=e.conditions)||!r.url||ok[null!=(n=null==(i=e.conditions)?void 0:i.urlMatchType)?n:"icontains"](e.conditions.url,s))}
1static getWindowLocation(){return null==n?void 0:n.location}static Qn(e){if(X(e.conditions)||X(null==(r=e.conditions)?void 0:r.utm))return!0;var t=ia();if(t.utm_source){var r,n,i,s,o,a,l,u,c,d=null==(n=e.conditions)||null==(n=n.utm)||!n.utm_campaign||(null==(i=e.conditions)||null==(i=i.utm)?void 0:i.utm_campaign)==t.utm_campaign,h=null==(s=e.conditions)||null==(s=s.utm)||!s.utm_source||(null==(o=e.conditions)||null==(o=o.utm)?void 0:o.utm_source)==t.utm_source,f=null==(a=e.conditions)||null==(a=a.utm)||!a.utm_medium||(null==(l=e.conditions)||null==(l=l.utm)?void 0:l.utm_medium)==t.utm_medium,p=null==(u=e.conditions)||null==(u=u.utm)||!u.utm_term||(null==(c=e.conditions)||null==(c=c.utm)?void 0:c.utm_term)==t.utm_term;return d&&f&&p&&h}return!1}static Un(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;t>n;n++)r[n-1]=arguments[n];tz.info("[WebExperiments] "+e,r)}Vn(e,t,r){this._is_bot()?oT.Un(oR):"control"!==t?r.forEach(r=>{if(r.selector){oT.Un("applying transform of variant "+t+" for experiment "+e+" ",r);var n,i=null==(n=document)?void 0:n.querySelectorAll(r.selector);null==i||i.forEach(e=>{r.html&&(e.innerHTML=r.html),r.css&&e.setAttribute("style",r.css)})}}):oT.Un("Control variants leave the page unmodified.")}_is_bot(){return s&&this._instance?sw(s,this.Se.custom_blocked_useragents):void 0}}var oA=tq("[Conversations]"),oC="Conversations not available yet.",oP="console",oO={featureFlags:class{constructor(e){this.Jn=!1,this.Yn=!1,this.Kn=!1,this.Xn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this._instance=e,this.featureFlagEventHandlers=[]}get Se(){return this._instance.config}get zr(){return this._instance.persistence}ss(e){return this._instance.get_property(e)}os(){var e,t;return null!=(e=null==(t=this.zr)?void 0:t.Gt(this.Se.feature_flag_cache_ttl_ms))&&e}ls(){return!!this.os()&&(this.ns||this.Kn||(this.ns=!0,ob.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}us(){var e,t=null!=(e=this.Se.evaluation_contexts)?e:this.Se.evaluation_environments;return!this.Se.evaluation_environments||this.Se.evaluation_contexts||this.rs||(ob.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.rs=!0),null!=t&&t.length?t.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||ob.error("Invalid evaluation context found:",e,"Expected non-empty string"),t}):[]}hs(){return this.us().length>0}ds(){var e=this.Se.flag_keys;if(!G(e)){if($(e))return e.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||ob.error("Invalid flag key found:",e,"Expected non-empty string"),t});ob.error("Invalid flag_keys found:",e,"Expected array of non-empty strings")}}initialize(){var e,t,{config:r}=this._instance,n=null!=(e=null==(t=r.bootstrap)?void 0:t.featureFlags)?e:{};if(Object.keys(n).length){var i,s,o=null!=(i=null==(s=r.bootstrap)?void 0:s.featureFlagPayloads)?i:{},a=Object.keys(n).filter(e=>!!n[e]).reduce((e,t)=>(e[t]=n[t]||!1,e),{}),l=Object.keys(o).filter(e=>a[e]).reduce((e,t)=>(o[t]&&(e[t]=o[t]),e),{});this.receivedFeatureFlags({featureFlags:a,featureFlagPayloads:l})}}updateFlags(e,t,r){var n,i,s=null!=r&&r.merge&&null!=(n=this.ss(rs))?n:{},o=null!=r&&r.merge&&null!=(i=this.ss(ru))?i:{},a=y({},s,e),l=y({},o,t),u={};for(var[c,d]of Object.entries(a))u[c]={key:c,enabled:w(d),variant:x(d),reason:void 0,metadata:G(null==l?void 0:l[c])?void 0:{id:0,version:void 0,description:void 0,payload:l[c]}};this.receivedFeatureFlags({flags:u})}get hasLoadedFlags(){return this.Yn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.ss(rl),t=this.ss(rd),r=this.ss(rh);if(!r&&!t)return e||{};var n=rY({},e||{});for(var i of[...new Set([...Object.keys(r||{}),...Object.keys(t||{})])]){var s,o,a=n[i],l=null==t?void 0:t[i],u=G(l)?null!=(s=null==a?void 0:a.enabled)&&s:!!l,c=G(l)?a.variant:"string"==typeof l?l:void 0,d=null==r?void 0:r[i],h=y({},a,{enabled:u,variant:u?null!=c?c:null==a?void 0:a.variant:void 0});u!==(null==a?void 0:a.enabled)&&(h.original_enabled=null==a?void 0:a.enabled),c!==(null==a?void 0:a.variant)&&(h.original_variant=null==a?void 0:a.variant),d&&(h.metadata=y({},null==a?void 0:a.metadata,{payload:d,original_payload:null==a||null==(o=a.metadata)?void 0:o.payload})),n[i]=h}return this.Jn||(ob.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:r,finalDetails:n}),this.Jn=!0),n}getAllFeatureFlags(){var e=this.getFlagVariants(),t=this.getFlagPayloads();return Object.keys(e).map(r=>{var n=e[r];return{key:r,enabled:w(n),variant:x(n),payload:_(t[r])}})}getFlagVariants(){var e=this.ss(rs),t=this.ss(rd);if(!t)return e||{};for(var r=rY({},e),n=Object.keys(t),i=0;n.length>i;i++)r[n[i]]=t[n[i]];return this.Jn||(ob.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:r}),this.Jn=!0),r}getFlagPayloads(){var e=this.ss(ru),t=this.ss(rh);if(!t)return e||{};for(var r=rY({},e||{}),n=Object.keys(t),i=0;n.length>i;i++)r[n[i]]=t[n[i]];return this.Jn||(ob.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:r}),this.Jn=!0),r}reloadFeatureFlags(){this.Xn||this.Se.advanced_disable_feature_flags||this.cs||(this._instance.Ti.emit("featureFlagsReloading",!0),this.cs=setTimeout(()=>{this.vs()},5))}fs(){clearTimeout(this.cs),this.cs=void 0}ensureFlagsLoaded(){this.Yn||this.Kn||this.cs||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.Xn=e}vs(e){var t;if(this.fs(),!this._instance.mr())if(this.Kn)this.es=!0;else{var r=this.Se.token,n=this.ss(tK),i={token:r,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:y({},(null==(t=this.zr)?void 0:t.get_initial_props())||{},this.ss(rf)||{}),group_properties:this.ss(rp),timezone:iv()};Y(n)||G(n)||(i.$device_id=n),(null!=e&&e.disableFlags||this.Se.advanced_disable_feature_flags)&&(i.disable_flags=!0),this.hs()&&(i.evaluation_contexts=this.us());var s=this.ds();G(s)||(i.flag_keys=s);var o=!!this.Se.advanced_only_evaluate_survey_feature_flags,a=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Se.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Kn=!0,this._instance._send_request({method:"POST",url:a,data:i,compression:this.Se.disable_compression?void 0:iM.Base64,timeout:this.Se.feature_flag_request_timeout_ms,callback:e=>{var t,r,n,s=!0;if(200===e.statusCode&&(this.es||(this.$anon_distinct_id=void 0),s=!1),this.Kn=!1,!i.disable_flags||this.es){this.ts=!s;var a=[];e.error?e.error instanceof Error?a.push("AbortError"===e.error.name?"timeout":"connection_error"):a.push("unknown_error"):200!==e.statusCode&&a.push("api_error_"+e.statusCode),null!=(t=e.json)&&t.errorsWhileComputingFlags&&a.push("errors_while_computing_flags");var l,u=!(null==(r=e.json)||null==(r=r.quotaLimited)||!r.includes("feature_flags"));(u&&a.push("quota_limited"),null==(n=this.zr)||n.register({[rw]:a}),u)?ob.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."):(i.disable_flags||this.receivedFeatureFlags(null!=(l=e.json)?l:{},s,{partialResponse:o}
1),this.es&&(this.es=!1,this.vs()))}}})}}getFeatureFlag(e,t){var r;if(void 0===t&&(t={}),!t.fresh||this.ts)if(this.Yn||this.getFlags()&&this.getFlags().length>0){if(!this.ls()){var n=this.getFeatureFlagResult(e,t);return null!=(r=null==n?void 0:n.variant)?r:null==n?void 0:n.enabled}}else ob.warn('getFeatureFlag for key "'+e+ow)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return null==t?void 0:t.payload}getFeatureFlagResult(e,t){if(void 0===t&&(t={}),!t.fresh||this.ts)if(this.Yn||this.getFlags()&&this.getFlags().length>0){if(!this.ls()){var r=this.getFlagVariants(),n=e in r,i=r[e],s=this.getFlagPayloads()[e],o=String(i),a=this.ss(rc)||void 0,l=this.ss(rx)||void 0,u=this.ss(rb)||{};if(this.Se.advanced_feature_flags_dedup_per_session){var c,d=this._instance.get_session_id(),h=this.ss(r_);d&&d!==h&&(u={},null==(c=this.zr)||c.register({[rb]:u,[r_]:d}))}if((t.send_event||!("send_event"in t))&&(!(e in u)||!u[e].includes(o))){$(u[e])?u[e].push(o):u[e]=[o],null==(v=this.zr)||v.register({[rb]:u});var f=this.getFeatureFlagDetails(e),p=[...null!=(m=this.ss(rw))?m:[]];G(i)&&p.push("flag_missing");var g={$feature_flag:e,$feature_flag_response:i,$feature_flag_payload:s||null,$feature_flag_request_id:a,$feature_flag_evaluated_at:l,$feature_flag_bootstrapped_response:(null==(y=this.Se.bootstrap)||null==(y=y.featureFlags)?void 0:y[e])||null,$feature_flag_bootstrapped_payload:(null==(b=this.Se.bootstrap)||null==(b=b.featureFlagPayloads)?void 0:b[e])||null,$used_bootstrap_value:!this.ts};G(null==f||null==(w=f.metadata)?void 0:w.version)||(g.$feature_flag_version=f.metadata.version);var v,m,y,b,w,x,E,S,R,k,T,A=null!=(x=null==f||null==(E=f.reason)?void 0:E.description)?x:null==f||null==(S=f.reason)?void 0:S.code;A&&(g.$feature_flag_reason=A),null!=f&&null!=(R=f.metadata)&&R.id&&(g.$feature_flag_id=f.metadata.id),G(null==f?void 0:f.original_variant)&&G(null==f?void 0:f.original_enabled)||(g.$feature_flag_original_response=G(f.original_variant)?f.original_enabled:f.original_variant),null!=f&&null!=(k=f.metadata)&&k.original_payload&&(g.$feature_flag_original_payload=null==f||null==(T=f.metadata)?void 0:T.original_payload),p.length&&(g.$feature_flag_error=p.join(",")),this._instance.capture("$feature_flag_called",g)}if(n)return{key:e,enabled:!!i,variant:"string"==typeof i?i:void 0,payload:_(s)}}}else ob.warn('getFeatureFlagResult for key "'+e+ow)}getRemoteConfigPayload(e,t){var r=this.Se.token,n={distinct_id:this._instance.get_distinct_id(),token:r};this.hs()&&(n.evaluation_contexts=this.us());var i=this.ds();G(i)||(n.flag_keys=i),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:n,compression:this.Se.disable_compression?void 0:iM.Base64,timeout:this.Se.feature_flag_request_timeout_ms,callback(r){var n,i=null==(n=r.json)?void 0:n.featureFlagPayloads;t((null==i?void 0:i[e])||void 0)}})}isFeatureEnabled(e,t){if(void 0===t&&(t={}),!t.fresh||this.ts){if(this.Yn||this.getFlags()&&this.getFlags().length>0){var r=this.getFeatureFlag(e,t);return G(r)?void 0:!!r}ob.warn('isFeatureEnabled for key "'+e+ow)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}receivedFeatureFlags(e,t,r){if(this.zr){this.Yn=!0;var n=this.getFlagVariants(),i=this.getFlagPayloads(),s=this.getFlagsWithDetails();!function(e,t,r,n,i,s){void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i={});var o,a=((o=e.flags)?(e.featureFlags=Object.fromEntries(Object.keys(o).map(e=>{var t;return[e,null!=(t=o[e].variant)?t:o[e].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(o).filter(e=>o[e].enabled).filter(e=>{var t;return null==(t=o[e].metadata)?void 0:t.payload}).map(e=>{var t;return[e,null==(t=o[e].metadata)?void 0:t.payload]}))):e.featureFlags&&ob.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e),l=a.flags,u=a.featureFlags,c=a.featureFlagPayloads;if(u){var d=e.requestId,h=e.evaluatedAt;if($(u)){ob.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var f={};if(u)for(var p=0;u.length>p;p++)f[u[p]]=!0;t&&t.register({[ro]:u,[rs]:f})}else{var g=u,v=c,m=l;if(null!=s&&s.partialResponse)g=y({},r,g),v=y({},n,v),m=y({},i,m);else if(e.errorsWhileComputingFlags)if(l){var b=new Set(Object.keys(l).filter(e=>{var t;return!(null!=(t=l[e])&&t.failed)}));g=y({},r,Object.fromEntries(Object.entries(g).filter(e=>{var[t]=e;return b.has(t)}))),v=y({},n,Object.fromEntries(Object.entries(v||{}).filter(e=>{var[t]=e;return b.has(t)}))),m=y({},i,Object.fromEntries(Object.entries(m||{}).filter(e=>{var[t]=e;return b.has(t)})))}else g=y({},r,g),v=y({},n,v),m=y({},i,m);t&&t.register(y({[ro]:Object.keys(oE(g)),[rs]:g||{},[ru]:v||{},[rl]:m||{}},d?{[rc]:d}:{},h?{[rx]:h}:{}))}}}(e,this.zr,n,i,s,r),t||(this.ns=!1),this.ps(t)}}override(e,t){void 0===t&&(t=!1),ob.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.zr)return ob.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===e)return this.zr.unregister(rd),this.zr.unregister(rh),this.ps(),o_.info("All overrides cleared");if($(e)){var t,r=ox(e);return this.zr.register({[rd]:r}),this.ps(),o_.info("Flag overrides set",{flags:e})}if(e&&"object"==typeof e&&("flags"in e||"payloads"in e)){if(this.Jn=!!(null!=(t=e.suppressWarning)&&t),"flags"in e){if(!1===e.flags)this.zr.unregister(rd),o_.info("Flag overrides cleared");else if(e.flags){if($(e.flags)){var n=ox(e.flags);this.zr.register({[rd]:n})}else this.zr.register({[rd]:e.flags});o_.info("Flag overrides set",{flags:e.flags})}}return"payloads"in e&&(!1===e.payloads?(this.zr.unregister(rh),o_.info("Payload overrides cleared")):e.payloads&&(this.zr.register({[rh]:e.payloads}),o_.info("Payload overrides set",{payloads:e.payloads}))),void this.ps()}if(e&&"object"==typeof e)return this.zr.register({[rd]:e}),this.ps(),o_.info("Flag overrides set",{flags:e});ob.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Yn){var{flags:t,flagVariants:r}=this.gs();e(t,r)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,r){var n,i=(this.ss(ra)||[]).find(t=>t.flagKey===e),s={["$feature_enrollment/"+e]:t},o={$feature_flag:e,$feature_enrollment:t,$set:s};i&&(o.$early_access_feature_name=i.name),r&&(o.$feature_enrollment_stage=r),this._instance.capture("$feature_enrollment_update",o),this.setPersonPropertiesForFlags(s,!1);var a=y({},this.getFlagVariants(),{[e]:t});null==(n=this.zr)||n.register({[ro]:Object.keys(oE(a)),[rs]:a}),this.ps()}getEarlyAccessFeatures(e,t,r){void 0===t&&(t=!1);var n=this.ss(ra),i=r?"&"+r.map(e=>"stage="+e).join("&"):"";if(n&&!t)return e(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Se.token+i),method:"GET",callback:t=>{var r,n;if(t.json){var i=t.json.earlyAccessFeatures;return null==(r=this.zr)||r.unregister(ra),null==(n=this.zr)||n.register({[ra]:i}
1),e(i)}}})}gs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(e=>t[e]),flagVariants:Object.keys(t).filter(e=>t[e]).reduce((e,r)=>(e[r]=t[r],e),{})}}ps(e){var{flags:t,flagVariants:r}=this.gs();this.featureFlagEventHandlers.forEach(n=>n(t,r,{errorsLoading:e}))}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this.ss(rf)||{},n=(null==e?void 0:e.$set)||(null!=e&&e.$set_once?{}:e),i=null==e?void 0:e.$set_once,s={};if(i)for(var o in i)({}).hasOwnProperty.call(i,o)&&(o in r||(s[o]=i[o]));this._instance.register({[rf]:y({},r,s,n)}),t&&this._instance.reloadFeatureFlags()}unsetPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=y({},this.ss(rf)||{});e.forEach(e=>{delete r[e]}),this._instance.register({[rf]:r}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(e){void 0===e&&(e=!0),this._instance.unregister(rf),e&&this._instance.reloadFeatureFlags()}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var r=this.ss(rp)||{};0!==Object.keys(r).length&&Object.keys(r).forEach(t=>{r[t]=y({},r[t],e[t]),delete e[t]}),this._instance.register({[rp]:y({},r,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.ss(rp)||{};this._instance.register({[rp]:y({},t,{[e]:{}})})}else this._instance.unregister(rp)}reset(){this.Yn=!1,this.Kn=!1,this.Xn=!1,this.es=!1,this.ts=!1,this.$anon_distinct_id=void 0,this.fs(),this.Jn=!1}}},oI=y({productTours:class{get zr(){return this._instance.persistence}constructor(e){this.Po=null,this.Ro=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if("productTours"in e){var t,r;if(this.zr&&this.zr.register({[t5]:!!e.productTours}),!oo(this._instance))return!this.Po&&X(null==(t=this.zr)?void 0:t.props[ry])||os.info("product tours disabled; stopping and clearing cached tours"),null==(r=this.Po)||r.stop(),this.Po=null,void this.clearCache();this.loadIfEnabled()}}loadIfEnabled(){!this.Po&&oo(this._instance)&&this.Mt(()=>this.Oo())}Mt(e){var t,r;null!=(t=f.__PosthogExtensions__)&&t.generateProductTours?e():null==(r=f.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"product-tours",t=>{t?os.error("Could not load product tours script",t):e()})}Oo(){var e;!this.Po&&null!=(e=f.__PosthogExtensions__)&&e.generateProductTours&&(this.Po=f.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(void 0===t&&(t=!1),!$(this.Ro)||t){var r=this.zr;if(r){var n=r.props[ry];if($(n)&&!t)return this.Ro=n,void e(n,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:t=>{if(oo(this._instance)){var n=t.statusCode;if(200!==n||!t.json){var i="Product Tours API could not be loaded, status: "+n;return os.error(i),void e([],{isLoaded:!1,error:i})}var s=$(t.json.product_tours)?t.json.product_tours:[];this.Ro=s,r&&r.register({[ry]:s}),e(s,{isLoaded:!0})}else e([],{isLoaded:!0})}})}else e(this.Ro,{isLoaded:!0})}getActiveProductTours(e){X(this.Po)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Po.getActiveProductTours(e)}showProductTour(e){var t;null==(t=this.Po)||t.showTourById(e)}previewTour(e){this.Po?this.Po.previewTour(e):this.Mt(()=>{var t;this.Oo(),null==(t=this.Po)||t.previewTour(e)})}dismissProductTour(){var e;null==(e=this.Po)||e.dismissTour("user_clicked_skip")}nextStep(){var e;null==(e=this.Po)||e.nextStep()}previousStep(){var e;null==(e=this.Po)||e.previousStep()}clearCache(){var e;this.Ro=null,null==(e=this.zr)||e.unregister(ry)}resetTour(e){var t;null==(t=this.Po)||t.resetTour(e)}resetAllTours(){var e;null==(e=this.Po)||e.resetAllTours()}cancelPendingTour(e){var t;null==(t=this.Po)||t.cancelPendingTour(e)}}},oO),oM=y({surveys:class{get Se(){return this._instance.config}constructor(e){this.Qo=void 0,this._surveyManager=null,this.Jo=!1,this.Yo=[],this.Ko=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Se.disable_surveys){var t=e.surveys;if(X(t))return sI.warn("Flags not loaded yet. Not loading surveys.");var r=$(t);this.Qo=r?t.length>0:t,sI.info("flags response received, isSurveysEnabled: "+this.Qo),this.loadIfEnabled()}}reset(){try{var e;null==(e=this._surveyEventReceiver)||e.reset(),localStorage.removeItem("lastSeenSurveyDate");for(var t=[],r=0;r<localStorage.length;r++){var n=localStorage.key(r);(null!=n&&n.startsWith(sM)||null!=n&&n.startsWith("inProgressSurvey_"))&&t.push(n)}
1t.forEach(e=>localStorage.removeItem(e))}catch(e){}}loadIfEnabled(){if(!this._surveyManager)if(this.Jo)sI.info("Already initializing surveys, skipping...");else if(this.Se.disable_surveys)sI.info(og);else if(this.Se.cookieless_mode&&this._instance.consent.isOptedOut())sI.info("Not loading surveys in cookieless mode without consent.");else{var e=null==f?void 0:f.__PosthogExtensions__;if(e){if(!G(this.Qo)||this.Se.advanced_enable_surveys){var t=this.Qo||this.Se.advanced_enable_surveys;this.Jo=!0;try{var r=e.generateSurveys;if(r)return void this.Xo(r,t);var n=e.loadExternalDependency;if(!n)return void this.ea(rN);n(this._instance,"surveys",r=>{r||!e.generateSurveys?this.ea("Could not load surveys script",r):this.Xo(e.generateSurveys,t)})}catch(e){throw this.ea("Error initializing surveys",e),e}finally{this.Jo=!1}}}else sI.error("PostHog Extensions not found.")}}Xo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new of(this._instance),sI.info("Surveys loaded successfully"),this.ta({isLoaded:!0})}ea(e,t){sI.error(e,t),this.ta({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.Yo.push(e),this._surveyManager&&this.ta({isLoaded:!0}),()=>{this.Yo=this.Yo.filter(t=>t!==e)}}getSurveys(e,t){if(void 0===t&&(t=!1),this.Se.disable_surveys)return sI.info(og),e([]);var r,n=this._instance.get_property(rg);if(n&&!t)return e(n,{isLoaded:!0});"undefined"!=typeof Promise&&this.Ko?this.Ko.then(t=>{var{surveys:r,context:n}=t;return e(r,n)}):("undefined"!=typeof Promise&&(this.Ko=new Promise(e=>{r=e})),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Se.token),method:"GET",timeout:this.Se.surveys_request_timeout_ms,callback:t=>{this.Ko=null;var n=t.statusCode;if(200!==n||!t.json){var i="Surveys API could not be loaded, status: "+n;sI.error(i);var s={isLoaded:!1,error:i};return e([],s),void(null==r||r({surveys:[],context:s}))}var o,a,l=t.json.surveys||[],u=l.filter(e=>{var t,r;return!(!e.start_date||e.end_date)&&(!(null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||!t.length)||!(null==(r=e.conditions)||null==(r=r.actions)||null==(r=r.values)||!r.length))});u.length>0&&(null==(a=this._surveyEventReceiver)||a.register(u)),null==(o=this._instance.persistence)||o.register({[rg]:l,[rv]:Date.now()});var c={isLoaded:!0};e(l,c),null==r||r({surveys:l,context:c})}}))}ta(e){for(var t of this.Yo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(e){sI.error("Error in survey callback",e)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!X(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);sI.warn("init was not called")}ra(e){var t=null;return this.getSurveys(r=>{var n;t=null!=(n=r.find(t=>t.id===e))?n:null}),t}ia(e){if(X(this._surveyManager))return{eligible:!1,reason:op};var t="string"==typeof e?this.ra(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(X(this._surveyManager))return sI.warn("init was not called"),{visible:!1,disabledReason:op};var t=this.ia(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return X(this._surveyManager)?(sI.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:op})):new Promise(r=>{this.getSurveys(t=>{var n,i=null!=(n=t.find(t=>t.id===e))?n:null;if(i){var s=this.ia(i);r({visible:s.eligible,disabledReason:s.reason})}else r({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t,r){var n;if(X(this._surveyManager))sI.warn("init was not called");else{var i="string"==typeof e?this.ra(e):e;if(null!=i&&i.id)if(sL.includes(i.type)){var s=null==o?void 0:o.querySelector(t);if(s)return null!=(n=i.appearance)&&n.surveyPopupDelaySeconds?(sI.info("Rendering survey "+i.id+" with delay of "+i.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var e,t;sI.info("Rendering survey "+i.id+" with delay of "+(null==(e=i.appearance)?void 0:e.surveyPopupDelaySeconds)+" seconds"),null==(t=this._surveyManager)||t.renderSurvey(i,s,r),sI.info("Survey "+i.id+" rendered")},1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,s,r);sI.warn("Survey element not found")}else sI.warn("Surveys of type "+i.type+" cannot be rendered in the app");else sI.warn("Survey not found")}}displaySurvey(e,t){var r;if(X(this._surveyManager))sI.warn("init was not called");else{var n=this.ra(e);if(n){var i=n;
1if(null!=(r=n.appearance)&&r.surveyPopupDelaySeconds&&t.ignoreDelay&&(i=y({},n,{appearance:y({},n.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==ik.Popover&&t.initialResponses&&sI.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),!1===t.ignoreConditions){var s=this.canRenderSurvey(n);if(!s.visible)return void sI.warn("Survey is not eligible to be displayed: ",s.disabledReason)}t.displayType!==ik.Inline?this._surveyManager.handlePopoverSurvey(i,t):this.renderSurvey(i,t.selector,t.properties)}else sI.warn("Survey not found")}}cancelPendingSurvey(e){X(this._surveyManager)?sI.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;null==(e=this._surveyManager)||e.handlePageUnload()}}},oO),oL=y({experiments:oT},oO),oN=y({},oO,{sessionRecording:class{get Se(){return this._instance.config}get zr(){return this._instance.persistence}get started(){var e;return!(null==(e=this.ys)||!e.isStarted)}get status(){var e,t;return this.bs===s7||this.bs===oe?this.bs:null!=(e=null==(t=this.ys)?void 0:t.status)?e:this.bs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=s6,this._s=void 0,this._instance=e,!this._instance.sessionManager)throw or.error("started without valid sessionManager"),Error(ot+" started without valid sessionManager. This is a bug.");if(this.Se.cookieless_mode===rB)throw Error(ot+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var e,t=!(null==(e=this._instance.get_property(t6))||!e.enabled),r=!this.Se.disable_session_recording,i=this.Se.disable_session_recording||this._instance.consent.isOptedOut();return n&&t&&r&&!i}startIfEnabledOrStop(e){var t;if(!this.ws||null==(t=this.ys)||!t.isStarted){var r=!G(Object.assign)&&!G(Array.from);this.ws&&r?(this.xs(e),or.info("starting")):(this.bs=s6,this.stopRecording())}}xs(e){var t,r,n;this.ws&&(this.bs!==s7&&this.bs!==oe&&(this.bs=s9),null!=f&&null!=(t=f.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(r=f.__PosthogExtensions__)&&r.initSessionRecording?this.ks(e):null==(n=f.__PosthogExtensions__)||null==n.loadExternalDependency||n.loadExternalDependency(this._instance,this.Ss,t=>{if(t)return or.error("could not load recorder",t);this.ks(e)}))}stopRecording(){var e,t;null==(e=this._s)||e.call(this),this._s=void 0,null==(t=this.ys)||t.stop()}Cs(){var e,t;null==(e=this._s)||e.call(this),this._s=void 0,null==(t=this.ys)||t.discard()}Is(){var e,t;null==(e=this.zr)||e.unregister(ri),null==(t=this.zr)||t.unregister(t9)}Ts(e,t){if(X(e))return null;var r=J(e)?e:parseFloat(e);return"number"!=typeof r||!Number.isFinite(r)||0>r||r>1?(or.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):r}Es(e){if(this.zr){var t,r,n=this.zr,i=()=>{var t,r=!1===e.sessionRecording?void 0:e.sessionRecording,i=this.Ts(null==(t=this.Se.session_recording)?void 0:t.sampleRate,"session_recording.sampleRate"),s=this.Ts(null==r?void 0:r.sampleRate,"remote config sampleRate"),o=null!=i?i:s;X(o)&&this.Is();var a=null==r?void 0:r.minimumDurationMilliseconds;n.register({[t6]:y({cache_timestamp:Date.now(),enabled:!!r},r,{networkPayloadCapture:y({capturePerformance:e.capturePerformance},null==r?void 0:r.networkPayloadCapture),canvasRecording:{enabled:null==r?void 0:r.recordCanvas,fps:null==r?void 0:r.canvasFps,quality:null==r?void 0:r.canvasQuality},sampleRate:o,minimumDurationMilliseconds:G(a)?null:a,endpoint:null==r?void 0:r.endpoint,triggerMatchType:null==r?void 0:r.triggerMatchType,masking:null==r?void 0:r.masking,urlTriggers:null==r?void 0:r.urlTriggers,version:null==r?void 0:r.version,triggerGroups:null==r?void 0:r.triggerGroups})})};i(),null==(t=this._s)||t.call(this),this._s=null==(r=this._instance.sessionManager)?void 0:r.onSessionId(i)}}onRemoteConfig(e){return"sessionRecording"in e?!1===e.sessionRecording?(this.Es(e),void this.Cs()):(this.Es(e),void this.startIfEnabledOrStop()):(this.bs===s7&&(this.bs=oe,or.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var r;void 0===t&&(t="log"),null!=(r=this.ys)&&r.log?this.ys.log(e,t):or.warn("log called before recorder was ready")}get Ss(){var e,t,r=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.get_property(t6);return(null==r||null==(t=r.scriptConfig)?void 0:t.script)||"lazy-recorder"}Ms(){var e,t,r=this._instance.get_property(t6);if(!r)return!1;try{t="object"==typeof r?r:JSON.parse(r)}catch(e){return or.warn("persisted remote config for session recording is invali
1d and will be ignored",e),!1}var n=null!=(e=t.cache_timestamp)?e:Date.now();return 36e5>=Date.now()-n}ks(e){var t,r;if(null==(t=f.__PosthogExtensions__)||!t.initSessionRecording)return or.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[rL]:!0});if(this.ys||(this.ys=null==(r=f.__PosthogExtensions__)?void 0:r.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Ms()){if(this.bs===oe||this.bs===s7)return;return this.bs=s7,or.info("persisted remote config is stale, requesting fresh config before starting"),void new iI(this._instance).load()}this.bs=s9,this.ys.start(e)}onRRwebEmit(e){var t;null==(t=this.ys)||null==t.onRRwebEmit||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.ys||null==(t=this.zr)||t.register({[re]:!0}),null==(e=this.ys)||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.ys||null==(t=this.zr)||t.register({[t7]:!0}),null==(e=this.ys)||e.overrideSampling()}overrideTrigger(e){var t,r;this.ys||null==(r=this.zr)||r.register({["url"===e?rt:rr]:!0}),null==(t=this.ys)||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return(null==(e=this.ys)?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var r;return!(null==(r=this.ys)||!r.tryAddCustomEvent(e,t))}}},{autocapture:class{constructor(e){this.Ps=!1,this.Rs=null,this.Os=!1,this.instance=e,this.rageclicks=new s0(e.config.rageclick),this.Ls=null}initialize(){this.startIfEnabled()}get Se(){var e,t,r=q(this.instance.config.autocapture)?this.instance.config.autocapture:{};return r.url_allowlist=null==(e=r.url_allowlist)?void 0:e.map(e=>new RegExp(e)),r.url_ignorelist=null==(t=r.url_ignorelist)?void 0:t.map(e=>new RegExp(e)),r}Fs(){if(this.isBrowserSupported()){if(n&&o){var e=e=>{e=e||(null==n?void 0:n.event);try{this.As(e)}catch(e){s2.error("Failed to capture event",e)}};if(r1(o,"submit",e,{capture:!0}),r1(o,"change",e,{capture:!0}),r1(o,"click",e,{capture:!0}),this.Se.capture_copied_text){var t=e=>{e=e||(null==n?void 0:n.event);try{this.As(e,s1)}catch(e){s2.error("Failed to capture copy/cut event",e)}};r1(o,"copy",t,{capture:!0}),r1(o,"cut",t,{capture:!0})}}}else s2.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Ps&&(this.Fs(),this.Ps=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Os=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[tZ]:!!e.autocapture_opt_out}),this.Rs=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Ls=e}getElementSelectors(e){var t,r=[];return null==(t=this.Ls)||t.forEach(t=>{var n=null==o?void 0:o.querySelectorAll(t);null==n||n.forEach(n=>{e===n&&r.push(t)})}),r}get isEnabled(){var e,t,r=null==(e=this.instance.persistence)?void 0:e.props[tZ];if(Y(this.Rs)&&!Q(r)&&!this.instance.mr())return!1;var n=null!=(t=this.Rs)?t:!!r;return!!this.instance.config.autocapture&&!n}As(e,t){if(void 0===t&&(t="$autocapture"),this.isEnabled){var r,i=nS(e);nm(i)&&(i=i.parentNode||null),"$autocapture"===t&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,e.timeStamp||(new Date).getTime())&&nL(i,this.instance.config.rageclick)&&this.As(e,"$rageclick");var s=t===s1;if(i&&function(e,t,r,i,s){if(void 0===r&&(r=void 0),!n||nN(e)||null!=(o=r)&&o.url_allowlist&&!n_(r.url_allowlist)||null!=(a=r)&&a.url_ignorelist&&n_(r.url_ignorelist))return!1;if(null!=(l=r)&&l.dom_event_allowlist){var o,a,l,u,c,d,h=r.dom_event_allowlist;if(h&&!h.some(e=>t.type===e))return!1}var{parentIsUsefulElement:f,targetElementList:p}=nj(e,i);if(!function(e,t){var r=null==t?void 0:t.element_allowlist;if(G(r))return!0;var n,i=function(e){if(r.some(t=>e.tagName.toLowerCase()===t))return{v:!0}};for(var s of e)if(n=i(s))return n.v;return!1}(p,r)||!nk(p,null==(u=r)?void 0:u.css_selector_allowlist)||nk(p,null!=(c=null==(d=r)?void 0:d.css_selector_ignorelist)?c:nA))return!1;var g=n.getComputedStyle(e);
1if(g&&"pointer"===g.getPropertyValue("cursor")&&"click"===t.type)return!0;var v=e.tagName.toLowerCase();switch(v){case"html":return!1;case"form":return(s||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(s||["change","click"]).indexOf(t.type)>=0;default:return f?(s||["click"]).indexOf(t.type)>=0:(s||["click"]).indexOf(t.type)>=0&&(nR.indexOf(v)>-1||"true"===e.getAttribute("contenteditable"))}}(i,e,this.Se,s,s?["copy","cut"]:void 0)){var{props:o,explicitNoCapture:a}=function(e,t){var r,i,{e:s,maskAllElementAttributes:o,maskAllText:a,elementAttributeIgnoreList:l,elementsChainAsString:u,disableCaptureUrlHashes:c}=t;if(!ng(e))return{props:{}};for(var d=[e],h=e;h.parentNode&&!nv(h,"body");)if(ny(h.parentNode))d.push(h.parentNode.host),h=h.parentNode.host;else{if(!ng(h.parentNode))break;d.push(h.parentNode),h=h.parentNode}var f,p=[],g={},v=!1,m=!1;if(rK(d,e=>{var t=nB(e);if(nv(e,"a")){var r=e.getAttribute("href");v=!!(t&&r&&nV(r))&&(c?ts(r):r)}j(nw(e),"ph-no-capture")&&(m=!0),p.push(function(e,t,r,n,i){void 0===i&&(i=!1);var s=e.tagName.toLowerCase(),o={tag_name:s};nR.indexOf(s)>-1&&!r&&(o.$el_text="a"===s.toLowerCase()||"button"===s.toLowerCase()?s3(1024,nG(e)):s3(1024,nE(e)));var a=nw(e);a.length>0&&(o.classes=a.filter(function(e){return""!==e})),rK(e.attributes,function(r){var s;if((!nF(e)||-1!==["name","id","class","aria-label"].indexOf(r.name))&&(null==n||!n.includes(r.name))&&!t&&nV(r.value)&&(!W(s=r.name)||"_ngcontent"!==s.substring(0,10)&&"_nghost"!==s.substring(0,7))){var a=r.value;"class"===r.name&&(a=nb(a).join(" ")),o["attr__"+r.name]=s3(1024,"href"===r.name&&i?ts(a):a)}});for(var l=1,u=1,c=e;c=function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!ng(t));return t}(c);)l++,c.tagName===e.tagName&&u++;return o.nth_child=l,o.nth_of_type=u,o}(e,o,a,l,c)),rY(g,function(e){if(!nB(e))return{};var t={};return rK(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var r=e.name.replace("data-ph-capture-attribute-",""),n=e.value;r&&n&&nV(n)&&(t[r]=n)}}),t}(e))}),m)return{props:{},explicitNoCapture:m};if(a||(p[0].$el_text=nv(e,"a")||nv(e,"button")?nG(e):nE(e)),v){p[0].attr__href=v;var b,_,w=null==(b=n6(v))?void 0:b.host,x=null==n||null==(_=n.location)?void 0:_.host;w&&x&&w!==x&&(f=v)}return{props:rY({$event_type:s.type,$ce_version:1},u?{}:{$elements:p},{$elements_chain:p.map(e=>{var t,r,n,i={text:null==(r=e.$el_text)?void 0:r.slice(0,400),tag_name:e.tag_name,href:null==(n=e.attr__href)?void 0:n.slice(0,2048),attr_class:(t=e.attr__class)?$(t)?t:nb(t):void 0,attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return rX(e).filter(e=>{var[t]=e;return 0===t.indexOf("attr__")}).forEach(e=>{var[t,r]=e;return i.attributes[t]=r}),i}).map(e=>{var t,r,n="";if(e.tag_name&&(n+=e.tag_name),e.attr_class)for(var i of(e.attr_class.sort(),e.attr_class))n+="."+i.replace(/"/g,"");var s=y({},e.text?{text:e.text}:{},{"nth-child":null!=(t=e.nth_child)?t:0,"nth-of-type":null!=(r=e.nth_of_type)?r:0},e.href?{href:e.href}:{},e.attr_id?{attr_id:e.attr_id}:{},e.attributes),o={};return rX(s).sort((e,t)=>{var[r]=e,[n]=t;return r.localeCompare(n)}).forEach(e=>{var[t,r]=e;return o[nW(t.toString())]=nW(r.toString())}),(n+=":")+rX(o).map(e=>{var[t,r]=e;return t+'="'+r+'"'}).join("")}).join(";")},null!=(r=p[0])&&r.$el_text?{$el_text:null==(i=p[0])?void 0:i.$el_text}:{},f&&"click"===s.type?{$external_click_url:f}:{},g)}}(i,{e:e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Se.element_attribute_ignorelist,elementsChainAsString:this.Os,disableCaptureUrlHashes:this.instance.config.disable_capture_url_hashes});if(a)return!1;var l=this.getElementSelectors(i);if(l&&l.length>0&&(o.$element_selectors=l),t===s1){var u,c=nx(null==n||null==(u=n.getSelection())?void 0:u.toString()),d=e.type||"clipboard";if(!c)return!1;o.$selected_content=c,o.$copy_type=d}return this.instance.capture(t,o),!0}}}isBrowserSupported(){return z(null==o?void 0:o.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.$s=(null==n||null==(t=n.location)?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(tz.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,tz.info("History API monitoring stopped")}monitorHistoryChanges(){n&&n.history&&(this.Ns("pushState"),this.Ns("replaceState"),this.qs())}Ns(e){var t;if(n&&(null==(t=n.history[e])||!t.__posthog_wrapped__)){var r=this;!function(e,t,r){try{if(!(t in e))return()=>{};var n=e[t],i=r(n);z(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=i,()=>{e[t]===i&&(e[t]=n)}}catch(e){return()=>{}}}(n.history,e,t=>function(n,i,s){t.call(this,n,i,s),r.js(e)})}}js(e){try{var t,r=null==n||null==(t=n.location)?void 0:t.pathname;if(!r)return;r!==this.$s&&this.isEnabled&&this._instance.capture(rz,{navigation_type:e}),this.$s=r}catch(t){tz.error("Error capturing "+e+" pageview",t)}}qs(){if(!this.Ds){var e=()=>{this.js("popstate")};r1(n,"popstate",e),this.Ds=()=>{n&&n.removeEventListener("popstate",e)}}}},heatmaps:class{get Se(){return this.instance.config}constructor(e){var t;this.Bs=!1,this.Ps=!1,this.Hs=null,this.instance=e,this.Bs=!(null==(t=this.instance.persistence)||!t.props[tQ]),this.rageclicks=new s0(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return q(this.Se.capture_heatmaps)&&this.Se.capture_heatmaps.flush_interval_milliseconds&&(e=this.Se.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return X(this.Se.capture_heatmaps)?X(this.Se.enable_heatmaps)?this.Bs:this.Se.enable_heatmaps:!1!==this.Se.capture_heatmaps}
1startIfEnabled(){if(this.isEnabled)this.Ps||(on.info("starting..."),this.Us(),this.ke());else{var e;clearInterval(null!=(e=this.Hs)?e:void 0),this.zs(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[tQ]:t}),this.Bs=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.R;return this.R=void 0,e}Vs(e){this.fe(e.originalEvent,"deadclick")}ke(){this.Hs&&clearInterval(this.Hs),this.Hs="visible"===(null==o?void 0:o.visibilityState)?setInterval(this.Lr.bind(this),this.flushIntervalMilliseconds):null}Us(){n&&o&&(this.Ws=this.Lr.bind(this),r1(n,r$,this.Ws),this.Gs=e=>this.fe(e||(null==n?void 0:n.event)),r1(o,"click",this.Gs,{capture:!0}),this.Zs=e=>this.Qs(e||(null==n?void 0:n.event)),r1(o,"mousemove",this.Zs,{capture:!0}),this.Js=new nJ(this.instance,nY,this.Vs.bind(this)),this.Js.startIfEnabledOrStop(),this.Ys=this.ke.bind(this),r1(o,rU,this.Ys),this.Ps=!0)}zs(){var e;n&&o&&(this.Ws&&n.removeEventListener(r$,this.Ws),this.Gs&&o.removeEventListener("click",this.Gs,{capture:!0}),this.Zs&&o.removeEventListener("mousemove",this.Zs,{capture:!0}),this.Ys&&o.removeEventListener(rU,this.Ys),clearTimeout(this.Ks),null==(e=this.Js)||e.stop(),this.Ps=!1)}Xs(e,t){var r=this.instance.scrollManager.scrollY(),i=this.instance.scrollManager.scrollX(),s=this.instance.scrollManager.scrollElement(),o=function(e,t,r){for(var i=e;i&&ng(i)&&!nv(i,"body")&&i!==r;){if(j(t,null==n?void 0:n.getComputedStyle(i).position))return!0;i=nT(i)}return!1}(nS(e),["fixed","sticky"],s);return{x:e.clientX+(o?0:i),y:e.clientY+(o?0:r),target_fixed:o,type:t}}fe(e,t){var r;if(void 0===t&&(t="click"),!np(e.target)&&oi(e)){var n=this.Xs(e,t);null!=(r=this.rageclicks)&&r.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&nL(nS(e),this.instance.config.rageclick)&&this.eo(y({},n,{type:"rageclick"})),this.eo(n)}}Qs(e){!np(e.target)&&oi(e)&&(clearTimeout(this.Ks),this.Ks=setTimeout(()=>{this.eo(this.Xs(e,"mousemove"))},500))}eo(e){if(n){var t=this.Se.disable_capture_url_hashes?ts(n.location.href):n.location.href,r=this.Se.custom_personal_data_properties,i=n7(t,this.Se.mask_personal_data_properties?[...ir,...r||[]]:[],is);this.R=this.R||{},this.R[i]||(this.R[i]=[]),this.R[i].push(e)}}Lr(){this.R&&!V(this.R)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:nJ,webVitalsAutocapture:class{constructor(e){var t;this.Bs=!1,this.Ps=!1,this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.ro=()=>{clearTimeout(this.io),0!==this.R.metrics.length&&(this._instance.capture("$web_vitals",this.R.metrics.reduce((e,t)=>y({},e,{["$web_vitals_"+t.name+"_event"]:y({},t),["$web_vitals_"+t.name+"_value"]:t.value}),{})),this.R={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.no=e=>{this.R=this.R||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var t,r=this.so();if(!G(r))if(X(null==e?void 0:e.name)||X(null==e?void 0:e.value))s8.error("Invalid metric received",e);else if(!this.oo||this.oo>e.value){this.R.url!==r&&(this.ro(),this.io=setTimeout(this.ro,this.flushToCaptureTimeoutMs)),G(this.R.url)&&(this.R.url=r),this.R.firstMetricTimestamp=G(this.R.firstMetricTimestamp)?Date.now():this.R.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0);var n=null==(t=this._instance.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0),i=y({},e,{$current_url:r,timestamp:Date.now()});G(n)||(i.$session_id=n.sessionId,i.$window_id=n.windowId),this.R.metrics.push(i),this.R.metrics.length===this.allowedMetrics.length&&this.ro()}else s8.error("Ignoring metric with value >= "+this.oo,e)},this.ao=()=>{if(!this.Ps){var e,t,r,n,i=f.__PosthogExtensions__;G(i)||G(i.postHogWebVitalsCallbacks)||({onLCP:e,onCLS:t,onFCP:r,onINP:n}=i.postHogWebVitalsCallbacks),e&&t&&r&&n?(this.allowedMetrics.indexOf("LCP")>-1&&e(this.no.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&t(this.no.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&r(this.no.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&n(this.no.bind(this)),this.Ps=!0):s8.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.Bs=!(null==(t=this._instance.persistence)||!t.props[t3]),this.startIfEnabled()}get lo(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,r=q(this.lo)?null==(e=this.lo)?void 0:e.web_vitals_allowed_metrics:void 0;return X(r)?(null==(t=this._instance.persistence)?void 0:t.props[t8])||["CLS","FCP","INP","LCP"]:r}get flushToCaptureTimeoutMs(){return(q(this.lo)?this.lo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=q(this.lo)?this.lo.web_vitals_attribution:void 0;return null!=e&&e}get oo(){var e=q(this.lo)&&J(this.lo.__web_vitals_max_value)?this.lo.__web_vitals_max_value:9e5;return e>0&&6e4>=e?9e5:e}get isEnabled(){var e=null==a?void 0:a.protocol;if("http:"!==e&&"https:"!==e)return s8.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=q(this.lo)?this.lo.web_vitals:Q(this.lo)?this.lo:void 0;return Q(t)?t:this.Bs}startIfEnabled(){this.isEnabled&&!this.Ps&&(s8.info("enabled, starting..."),this.Mt(this.ao))}onRemoteConfig(e){if("capturePerformance"in e){var t=q(e.capturePerformance)&&!!e.capturePerformance.web_vitals,r=q(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[t3]:t}),this._instance.persistence.register({[t8]:r})),this.Bs=t,this.startIfEnabled()}}Mt(e){var t,r;null!=(t=f.__PosthogExtensions__)&&t.postHogWebVitalsCallbacks?e():null==(r=f.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",t=>{t?s8.error("failed to load script",t):e()})}so(){var e=n?this._instance.config.disable_capture_url_hashes?ts(n.location.href):n.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties;return n7(e,this._instance.config.mask_personal_data_properties?[...ir,...t||[]]:[],is)}s8.error("Could not determine current URL")}}},{exceptionObserver:class{constructor(e){var t,r,i;this.ao=()=>{var e;if(n&&this.isEnabled&&null!=(e=f.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=f.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,r=f.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,i=f.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.uo&&this.Se.capture_unhandled_errors&&(this.uo=t(this.captureException.bind(this))),!this.ho&&this.Se.capture_unhandled_rejections&&(this.ho=r(this.captureException.bind(this))),!this.do&&this.Se.capture_console_errors&&(this.do=i(this.captureException.bind(this)))}catch(e){s4.error("failed to start",e),this.co()}}},this._instance=e,this.vo=!(null==(t=this._instance.persistence)||!t.props[t0]),this.fo=new eu({refillRate:null!=(r=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)?r:1,bucketSize:null!=(i=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)?i:10,refillInterval:1e4,Ae:s4}),this.Se=this.po(),this.startIfEnabledOrStop()}po(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return q(e)?t=y({},t,e):(G(e)?this.vo:e)&&(t=y({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Se.capture_console_errors||this.Se.capture_unhandled_errors||this.Se.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(s4.info("enabled"),this.co(),this.Mt(this.ao)):this.co()}Mt(e){var t,r;null!=(t=f.__PosthogExtensions__)&&t.errorWrappingFunctions?e():null==(r=f.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return s4.error("failed to load script",t);e()})}co(){var e,t,r;null==(e=this.uo)||e.call(this),this.uo=void 0,null==(t=this.ho)||t.call(this),this.ho=void 0,null==(r=this.do)||r.call(this),this.do=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.vo=!!e.autocaptureExceptions,this._instance.persistence&&this._instance.persistence.register({[t0]:this.vo}),this.Se=this.po(),this.startIfEnabledOrStop())}onConfigChange(){this.Se=this.po()}captureException(e){var t,r,n,i=null!=(t=null==e||null==(r=e.$exception_list)||null==(r=r[0])?void 0:r.type)?t:"Exception";this.fo.consumeRateLimit(i)?s4.info("Skipping exception capture because of client rate limiting.",{exception:i}):null==(n=this._instance.exceptions)||n.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,r;this.mo=[],this.yo=new tp([new tR,new tN,new tT,new tk,new tM,new tI,new tC,new tL],function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;t>n;n++)r[n-1]=arguments[n];return function(t,n){void 0===n&&(n=0);for(var i=[],s=t.split("\n"),o=n;s.length>o;o++){var a=s[o];if(1024>=a.length){var l=tS.test(a)?a.replace(tS,"$1"):a;if(!l.match(/\S*Error: /)){for(var u of r){var c=u(l,e);if(c){i.push(c);break}}if(i.length>=50)break}}}if(!i.length)return[];var d=Array.from(i);return d.reverse(),d.slice(0,50).map(e=>y({},e,{filename:e.filename||(d[d.length-1]||{}).filename,function:e.function||"?"}))}}("web:javascript",t_,tE)),this._instance=e,this.mo=null!=(t=null==(r=this._instance.persistence)?void 0:r.get_property(t1))?t:[],this.bo=tH(this._o()),this.wo=new tU(this.bo)}onConfigChange(){this.bo=tH(this._o()),this.wo.setConfig(this.bo)}onRemoteConfig(e){var t,r,n;if("errorTracking"in e){var i=null!=(t=null==(r=e.errorTracking)?void 0:r.suppressionRules)?t:[],s=null==(n=e.errorTracking)?void 0:n.captureExtensionExceptions;this.mo=i,this._instance.persistence&&this._instance.persistence.register({[t1]:this.mo,[t2]:s})}}get xo(){var e,t=!!this._instance.get_property(t2),r=this._instance.config.error_tracking.captureExtensionExceptions;return null!=(e=null!=r?r:t)&&e}buildProperties(e,t){return this.yo.buildFromUnknown(e,{syntheticException:null==t?void 0:t.syntheticException,mechanism:{handled:null==t?void 0:t.handled}})}addExceptionStep(e,t){if(this.bo.enabled)try{if(!W(e)||0===e.trim().length)return void oS.warn("Ignoring exception step because message must be a non-empty string");var r=this.ko(t),{sanitizedProperties:n,droppedKeys:i}=function(e){if(!e)return{sanitizedProperties:{},droppedKeys:[]};var t=[];return{sanitizedProperties:Object.keys(e).reduce((r,n)=>(tF.has(n)?t.push(n):r[n]=e[n],r),{}),droppedKeys:t}}(r);i.length>0&&oS.warn("Ignoring reserved exception step fields",{droppedKeys:i}),this.wo.add(y({[tj]:e,[tB]:(new Date).toISOString()},n))}catch(e){oS.error("Failed to add exception step. Ignoring breadcrumb.",e)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.So(t)){if(this.Co(t))return this.Io("Exception dropped: matched a suppression rule"),void oS.info("Skipping exception capture because a suppression rule matched");if(!this.xo&&this.To(t))return this.Io("Exception dropped: thrown by a browser extension"),void oS.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.Eo(t))return this.Io("Exception dropped: thrown by the PostHog SDK"),void oS.info("Skipping exception capture because it was thrown by the PostHog SDK")}var r=this.bo.enabled&&X(e.$exception_steps)?this.Mo(e):e;try{var n=this._instance.capture("$exception",r,{_noTruncate:!0,_batchKey:"exceptionEvent",Zi:!0});return n&&this.wo.clear(),n}catch(e){return oS.error("Failed to capture exception event. Dropping this exception.",e),void this.wo.clear()}}catch(e){return void oS.error("Failed to process exception event. Ignoring this exception.",e)}}Mo(e){try{var t=this.wo.getAttachable();return 0===t.length?e:y({},e,{$exception_steps:t})}catch(t){return oS.error("Failed to read buffered exception steps. Capturing exception without steps.",t),e}}Io(e){this.bo.enabled&&this.wo.add({[tj]:e,[tB]:(new Date).toISOString()})}ko(e){return q(e)?y({},e):{}}_o(){var e,t;return null!=(e=null==(t=this._instance.config.error_tracking)?void 0:t.exception_steps)?e:{}}Co(e){if(0===e.length)return!1;var t=e.reduce((e,t)=>
1{var{type:r,value:n}=t;return W(r)&&r.length>0&&e.$exception_types.push(r),W(n)&&n.length>0&&e.$exception_values.push(n),e},{$exception_types:[],$exception_values:[]});return this.mo.some(e=>{var r=e.values.map(e=>{var r,n=sR[e.operator],i=$(e.value)?e.value:[e.value],s=null!=(r=t[e.key])?r:[];return i.length>0&&n(i,s)});return"OR"===e.type?r.some(Boolean):r.every(Boolean)})}To(e){return e.flatMap(e=>{var t,r;return null!=(t=null==(r=e.stacktrace)?void 0:r.frames)?t:[]}).some(e=>e.filename&&e.filename.startsWith("chrome-extension://"))}Eo(e){if(e.length>0){var t,r,n,i,s=null!=(t=null==(r=e[0].stacktrace)?void 0:r.frames)?t:[],o=s[s.length-1];return null!=(n=null==o||null==(i=o.filename)?void 0:i.includes("posthog.com/static"))&&n}return!1}So(e){return!X(e)&&$(e)}}},oI,{siteApps:class{constructor(e){this.Lo=0,this._instance=e,this.Fo=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Ao(e,t){if(t){var r=this.globalsForEvent(t);this.Fo.push(r),this.Fo.length>1e3&&(this.Fo=this.Fo.slice(10))}}get siteAppLoaders(){var e;return null==(e=f._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Ao.bind(this));this.$o=()=>{e(),this.Fo=[],this.$o=void 0}}}globalsForEvent(e){if(!e)throw Error("Event payload is required");var t,r,n,i,s,o,a,l={},u=this._instance.get_property("$groups")||[];for(var[c,d]of Object.entries(this._instance.get_property("$stored_group_properties")||{}))l[c]={id:u[c],type:c,properties:d};var{$set_once:h,$set:f}=e;return{event:y({},b(e,oa),{properties:y({},e.properties,f?{$set:y({},null!=(t=null==(r=e.properties)?void 0:r.$set)?t:{},f)}:{},h?{$set_once:y({},null!=(n=null==(i=e.properties)?void 0:i.$set_once)?n:{},h)}:{}),elements_chain:null!=(s=null==(o=e.properties)?void 0:o.$elements_chain)?s:"",distinct_id:null==(a=e.properties)?void 0:a.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:l}}Do(e){var t,r=null==(t=e.tagName)?void 0:t.toLowerCase();return"style"===r&&this._instance.config.prepare_external_dependency_stylesheet?this._instance.config.prepare_external_dependency_stylesheet(e)||(ol.error("prepare_external_dependency_stylesheet returned null"),null):"script"===r&&this._instance.config.prepare_external_dependency_script?this._instance.config.prepare_external_dependency_script(e)||(ol.error("prepare_external_dependency_script returned null"),null):e}No(){if(!this._instance.config.prepare_external_dependency_stylesheet&&!this._instance.config.prepare_external_dependency_script)return()=>{};var e,t,r,n,i,s,a,l,u=null==o?void 0:o.defaultView,c=null==u||null==(e=u.Node)?void 0:e.prototype;if(!u||!c)return()=>{};if(this.Lo++,this.qo)return this.jo();var d=[],h=this,f=new WeakSet,p=(e,t,r)=>{if(null!=e&&e[t]){var n=e[t];e[t]=r(n),d.push(()=>{e[t]=n})}},g=e=>{if(f.has(e))return e;var t=h.Do(e);return t&&f.add(t),t},v=e=>e.map(e=>"string"==typeof e?e:g(e)).filter(e=>!Y(e));return p(c,"appendChild",e=>function(t){var r=g(t);return r?e.call(this,r):t}),p(c,"insertBefore",e=>function(t,r){var n=g(t);return n?e.call(this,n,r):t}),p(c,"replaceChild",e=>function(t,r){var n=g(t);return n?e.call(this,n,r):r}),[null==(t=u.Element)?void 0:t.prototype,null==(r=u.Document)?void 0:r.prototype,null==(n=u.DocumentFragment)?void 0:n.prototype].forEach(e=>{p(e,"append",e=>function(){for(var t=arguments.length,r=Array(t),n=0;t>n;n++)r[n]=arguments[n];return e.apply(this,v(r))}),p(e,"prepend",e=>function(){for(var t=arguments.length,r=Array(t),n=0;t>n;n++)r[n]=arguments[n];return e.apply(this,v(r))})}),[null==(i=u.Element)?void 0:i.prototype,null==(s=u.CharacterData)?void 0:s.prototype,null==(a=u.DocumentType)?void 0:a.prototype].forEach(e=>{p(e,"before",e=>function(){for(var t=arguments.length,r=Array(t),n=0;t>n;n++)r[n]=arguments[n];return e.apply(this,v(r))}),p(e,"after",e=>function(){for(var t=arguments.length,r=Array(t),n=0;t>n;n++)r[n]=arguments[n];return e.apply(this,v(r))}),p(e,"replaceWith",e=>function(){for(var t=arguments.length,r=Array(t),n=0;t>n;n++)r[n]=arguments[n];var i=v(r);return r.length&&!i.length?void 0:e.apply(this,i)})}),p(null==(l=u.Element)?void 0:l.prototype,"insertAdjacentElement",e=>function(t,r){var n=g(r);return n?e.call(this,t,n):null}),this.qo=()=>
1{d.forEach(e=>e()),this.qo=void 0},this.jo()}jo(){var e=!1;return()=>{var t;e||(e=!0,this.Lo--,0===this.Lo&&(null==(t=this.qo)||t.call(this)))}}Bo(e,t){void 0===t&&(t=!0);var r=this.No();try{var n=e(r);return t&&r(),n}catch(e){throw r(),e}}setupSiteApp(e){var t=this.apps[e.id],r=()=>{var r;!t.errored&&this.Fo.length&&(ol.info("Processing "+this.Fo.length+" events for site app with id "+e.id),this.Fo.forEach(e=>this.Bo(()=>null==t.processEvent?void 0:t.processEvent(e))),t.processedBuffer=!0),Object.values(this.apps).every(e=>e.processedBuffer||e.errored)&&(null==(r=this.$o)||r.call(this))},n=!1,i=i=>{t.errored=!i,t.loaded=!0,ol.info("Site app with id "+e.id+" "+(i?"loaded":"errored")),n&&r()};try{var{processEvent:s}=this.Bo(t=>e.init({posthog:this._instance,callback(e){t(),i(e)}}),!1);s&&(t.processEvent=s),n=!0}catch(t){ol.error(ou+e.id,t),i(!1)}if(n&&t.loaded)try{r()}catch(r){ol.error("Error while processing buffered events PostHog app with config id "+e.id,r),t.errored=!0}}Ho(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var r of e)this.setupSiteApp(r)}Uo(e){var t=this;if(0!==Object.keys(this.apps).length){var r=this.globalsForEvent(e),n=function(n){try{t.Bo(()=>null==n.processEvent?void 0:n.processEvent(r))}catch(t){ol.error("Error while processing event "+e.event+" for site app "+n.id,t)}};for(var i of Object.values(this.apps))n(i)}}onRemoteConfig(e){var t,r,n,i=this;if(null!=(t=this.siteAppLoaders)&&t.length)return this.isEnabled?(this.Ho(),void this._instance.on("eventCaptured",e=>this.Uo(e))):void ol.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(r=this.$o)||r.call(this),null!=(n=e.siteApps)&&n.length)if(this.isEnabled){var s=function(e){var t;f["__$$ph_site_app_"+e]=i._instance,null==(t=f.__PosthogExtensions__)||null==t.loadSiteApp||t.loadSiteApp(i._instance,a,t=>{if(t)return ol.error(ou+e,t)})};for(var{id:o,url:a}of e.siteApps)s(o)}else ol.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},oM,{tracingHeaders:class{constructor(e){this.zo=void 0,this.Vo=void 0,this.Wo=void 0,this.ao=()=>{var e,t,r=this.Go();r?(G(this.zo)&&(this.zo=null==(e=f.__PosthogExtensions__)||null==(e=e.tracingHeadersPatchFns)?void 0:e._patchXHR(r,()=>this._instance.get_distinct_id(),this._instance.sessionManager)),G(this.Vo)&&(this.Vo=null==(t=f.__PosthogExtensions__)||null==(t=t.tracingHeadersPatchFns)?void 0:t._patchFetch(r,()=>this._instance.get_distinct_id(),this._instance.sessionManager))):this.co()},this._instance=e}initialize(){this.startIfEnabledOrStop()}Mt(e){var t,r;null!=(t=f.__PosthogExtensions__)&&t.tracingHeadersPatchFns?e():null==(r=f.__PosthogExtensions__)||null==r.loadExternalDependency||r.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return s5.error("failed to load script",t);e()})}Zo(){var e,t;return null!=(e=null!=(t=this._instance.config.tracing_headers)?t:this._instance.config.addTracingHeaders)?e:this._instance.config.__add_tracing_headers}Go(){var e=this.Zo();return $(e)?($(this.Wo)?this.Wo.splice(0,this.Wo.length,...e):this.Wo=[...e],e.length>0?this.Wo:void 0):($(this.Wo)&&this.Wo.splice(0),this.Wo=e||void 0,this.Wo)}co(){var e,t;null==(e=this.zo)||e.call(this),null==(t=this.Vo)||t.call(this),this.zo=void 0,this.Vo=void 0}startIfEnabledOrStop(){this.Go()?this.Mt(this.ao):this.co()}}},{toolbar:class{constructor(e){this.instance=e}na(e){f.ph_toolbar_state=e}sa(){var e;return null!=(e=f.ph_toolbar_state)?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,r){if(void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===r&&(r=void 0),r2(this.instance.config)||!n||!o)return!1;e=null!=e?e:n.location,r=null!=r?r:n.history;try{if(!t){try{n.localStorage.setItem("test","test"),n.localStorage.removeItem("test")}catch(e){return!1}t=null==n?void 0:n.localStorage}var i,s=ov||ie(e.hash,"__posthog")||ie(e.hash,"state"),a=s?rJ(()=>JSON.parse(atob(decodeURIComponent(s))))||rJ(()=>JSON.parse(decodeURIComponent(s))):null;return a&&"ph_authorize"===a.action?((i=a).source="url",i&&Object.keys(i).length>0&&(a.desiredHash?e.hash=a.desiredHash:r?r.replaceState(r.state,"",e.pathname+e.search):e.hash="")):((i=JSON.parse(t.getItem(om)||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.config.token!==i.token||(this.loadToolbar(i),0))}catch(e){return!1}}oa(e){var t=f.ph_load_toolbar||f.ph_load_editor;!X(t)&&z(t)?t(e,this.instance):oy.warn("No toolbar load function found")}loadToolbar(e){var t,r=!(null==o||!o.getElementById(rP));if(!n||r)return!1;var i="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,s=y({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},i?{instrument:!1}:{});return(n.localStorage.setItem(om,JSON.stringify(y({},s,{source:void 0}))),2===this.sa())?this.oa(s):0===this.sa()&&(this.na(1),null==(t=f.__PosthogExtensions__)||null==t.loadExternalDependency||t.loadExternalDependency(this.instance,"toolbar",e=>{if(e)return oy.error("[Toolbar] Failed to load",e),void this.na(0);this.na(2),this.oa(s)}),r1(n,"turbolinks:load",()=>{this.na(0),this.loadToolbar(s)})),!0}aa(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,r){return void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===r&&(r=void 0),this.maybeLoadToolbar(e,t,r)}}},oL,{conversations:class{constructor(e){this.la=void 0,this._conversationsManager=null,this.ua=!1,this.ha=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;X(t)||(Q(t)?this.la=t:(this.la=t.enabled,this.ha=t),this.loadIfEnabled())}}reset(){var e;null==(e=this._conversationsManager)||e.reset(),this._conversationsManager=null,this.la=void 0,this.ha=null}loadIfEnabled(){if(!(this._conversationsManager||this.ua||this._instance.config.disable_conversations||r2(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=null==f?void 0:f.__PosthogExtensions__;if(e&&!G(this.la)&&this.la)if(this.ha&&this.ha.token){this.ua=!0;try{var t=e.initConversations;if(t)return this.da(t),void(this.ua=!1);var r=e.loadExternalDependency;if(!r)return void this.ca(rN);r(this._instance,"conversations",t=>{t||!e.initConversations?this.ca("Could not load conversations script",t):this.da(e.initConversations),this.ua=!1})}catch(e){this.ca("Error initializing conversations",e),this.ua=!1}}else oA.error("Conversations enabled but missing token in remote config.")}}da(e){if(this.ha)try{this._conversationsManager=e(this.ha,this._instance),oA.info("Conversations loaded successfully")}catch(e){this.ca("Error completing conversations initialization",e)}else oA.error("Cannot complete initialization: remote config is null")}ca(e,t){oA.error(e,t),this._conversationsManager=null,this.ua=!1}show(){this._conversationsManager?this._conversationsManager.show():oA.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return!0===this.la&&!Y(this._conversationsManager)}isVisible(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.isVisible())&&e}sendMessage(e,t,r){var n=this;return m(function*(){return n._conversationsManager?n._conversationsManager.sendMessage(e,t,r):(oA.warn(oC),null)})()}getMessages(e,t){var r=this;return m(function*(){return r._conversationsManager?r._conversationsManager.getMessages(e,t):(oA.warn(oC),null)})()}markAsRead(e){var t=this;return m(function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(oA.warn(oC),null)})()}getTickets(e){var t=this;return m(function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(oA.warn(oC),null)})()}requestRestoreLink(e){var t=this;return m(function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(oA.warn(oC),null)})()}restoreFromToken(e){var t=this;return m(function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(oA.warn(oC),null)})()}restoreFromUrlToken(){var e=this;return m(function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(oA.warn(oC),null)})()}getCurrentTicketId(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.getCurrentTicketId())?e:null}getWidgetSessionId(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.getWidgetSessionId())?e:null}en(){var e;null==(e=this._conversationsManager)||e.setIdentity()}tn(){var e;null==(e=this._conversationsManager)||e.clearIdentity()}}},{logs:class{constructor(e){var t;this.va=!1,this.fa=!1,this.Ae=tq("[logs]"),this._r=[],this.pa=[],this.ga=()=>{var e,t;null==(e=this.ma)||e.onReconnect(),null==(t=this.ya)||t.onReconnect()},this._instance=e,this._instance&&null!=(t=this._instance.config.logs)&&t.captureConsoleLogs&&(this.va=!0),n&&r1(n,"online",this.ga)}ba(e,t,r,n){var i,s,o,a,l,u,c,d,h,f,p,g,v,m,y=(i=null==(m=this._instance)||null==(m
1=m.config)?void 0:m.logs,h=null!=(s=null==i?void 0:i.flushIntervalMs)?s:3e3,f=null!=(o=null==i?void 0:i.maxBufferSize)?o:100,g=G(p=null!=r&&r.consoleCapture?void 0:null!=(a=null==i?void 0:i.maxLogsPerInterval)?a:1e3)?Math.max(f,2048):Math.max(f,p),{serviceName:null!=(l=null!=(u=null==(v=null==i?void 0:i.resourceAttributes)?void 0:v["service.name"])?u:null==i?void 0:i.serviceName)?l:null==r?void 0:r.serviceNameDefault,serviceVersion:null!=(c=null==v?void 0:v["service.version"])?c:null==i?void 0:i.serviceVersion,environment:null!=(d=null==v?void 0:v["deployment.environment"])?d:null==i?void 0:i.environment,resourceAttributes:v,beforeSend:null==i?void 0:i.beforeSend,flushIntervalMs:h,maxBufferSize:f,maxQueueSize:g,maxBatchRecordsPerPost:100,rateCapWindowMs:h,maxLogsPerInterval:p,backgroundFlushBudgetMs:0,terminationFlushBudgetMs:0});return[new tf(this._a(e,t),y,this.Ae,()=>this.wa(),e=>e(),void 0,n),y]}xa(){var e,t,r=null==(e=this._instance)||null==(e=e.config)?void 0:e.logs;return this.ma&&this.ka===r||(null==(t=this.ma)||t.reset(),this.ka=r,[this.ma,this.Sa]=this.ba(()=>this._r,e=>{this._r=e})),this.ma}Ca(){var e,t,r=null==(e=this._instance)||null==(e=e.config)?void 0:e.logs;return this.ya&&this.Ia===r||(null==(t=this.ya)||t.reset(),this.Ia=r,[this.ya,this.Ta]=this.ba(()=>this.pa,e=>{this.pa=e},{serviceNameDefault:"posthog-browser-logs",consoleCapture:!0},oP)),this.ya}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,r=null==(t=e.logs)?void 0:t.captureConsoleLogs;!X(r)&&r&&(this.va=!0,this.loadIfEnabled())}reset(){var e,t;this._r=[],null==(e=this.ma)||e.reset(),this.pa=[],null==(t=this.ya)||t.reset()}captureLog(e){this.xa().captureLog(e)}le(e){this.Ca().captureLog(e)}get logger(){return this.Ea||(this.Ea={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.Ea}flushLogs(e){e?this.Ma(e):(this.ma&&this.ma.flush().catch(e=>this.Ae.error("PostHog logs flush failed:",e)),this.ya&&this.ya.flush().catch(e=>this.Ae.error("PostHog logs flush failed:",e)))}loadIfEnabled(){if(this.va&&!this.fa){var e=null==f?void 0:f.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",t=>{var r;t||null==(r=e.logs)||!r.initializeLogs?this.Ae.error("Could not load logs script",t):(e.logs.initializeLogs(this._instance),this.fa=!0)}):this.Ae.error(rN)}else this.Ae.error("PostHog Extensions not found.")}}_a(e,t){var r=this._instance;return{get isDisabled(){return!1},get optedOut(){return!r.is_capturing()},getPersistedProperty:t=>t===S.LogsQueue?e():void 0,setPersistedProperty(e,r){e===S.LogsQueue&&t(null!=r?r:[])},ht:e=>this.ht(e),getLibraryId:()=>g.LIB_NAME,getLibraryVersion:()=>g.LIB_VERSION}}ht(e){return new Promise(t=>{var r=!1,n=e=>{r||(r=!0,clearTimeout(i),t(e))},i=setTimeout(()=>n({kind:"retry-later",error:Error("logs request timed out")}),9e4);this._instance._send_request({method:"POST",url:this.Pa(),data:e,compression:"best-available",batchKey:"logs",fireCallbackOnDrop:!0,callback(e){var t,r=e.statusCode;r>=200&&300>r?n({kind:"ok"}):413===r?n({kind:"too-large"}):0!==r&&429!==r&&500>r?n({kind:"fatal",error:Error("logs request failed with status "+r)}):n({kind:"retry-later",error:null!=(t=e.error)?t:Error("logs request failed with status "+r)})}})})}Ma(e){this._r.length>0&&this.Ra(e,this._r,this.Sa,g.LIB_NAME,e=>{this._r=e}),this.pa.length>0&&this.Ra(e,this.pa,this.Ta,oP,e=>{this.pa=e})}Ra(e,t,r,n,i){if(0!==t.length){var s=t.map(e=>e.record);i([]);var o=th(s,td(r,g.LIB_NAME,g.LIB_VERSION),n,g.LIB_VERSION);this._instance._send_request({method:"POST",url:this.Pa(),data:o,compression:"best-available",batchKey:"logs",transport:e})}}Pa(){return this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token)}wa(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:r,windowId:n,sessionStartTimestamp:i,lastActivityTimestamp:s}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=r,t.windowId=n,X(i)||(t.sessionStartTimestamp=i),X(s)||(t.lastActivityTimestamp=s)}if(null!=f&&null!=(e=f.location)&&e.href&&(t.currentUrl=this._instance.config.disable_capture_url_hashes?ts(f.location.href):f.location.href),this._instance.featureFlags){var o=this._instance.featureFlags.getFlags();o&&o.length>0&&(t.activeFeatureFlags=o)}return t}}});sQ.__defaultExtensionClasses=y({},oN);var oj=function(){g.SDK_DIST_CHANNEL="npm";var e=sH[sW]=new sQ;return function(){function e(){e.done||(e.done=!0,sK=!1,rK(sH,function(e){e._dom_loaded()}))}null!=o&&o.addEventListener?"complete"===o.readyState?e():r1(o,"DOMContentLoaded",e,{capture:!1}):n&&tz.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),e}()},19983:(e,t,r)=>{"use strict";r.d(t,{GI:()=>o,h$:()=>a,hq:()=>s,uf:()=>i});var n=r(68218);function i(e,t,r){let i=null==r||(0,n.Go)(r)?"function"==typeof e?e():e:0;return"number"==typeof i?i:i?.[t]}function s(e){return"function"==typeof e?e():e}function o(e,t){return t||"click"===e||"mousedown"===e}function a(e){return e?.includes("mouse")&&"mousedown"!==e}},20041:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(14343),i=r(26732),s="function"==typeof IntersectionObserver,o=new Map,a=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!s,[c,d]=(0,n.useState)(!1),h=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{h.current=e},[]);return(0,n.useEffect)(()=>{if(s){if(u||c)return;let e=h.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:s}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=a.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=o.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},a.push(r),o.set(r,t),t}(r);return s.set(e,t),i.observe(e),function(){if(s.delete(e),i.unobserve(e),0===s.size){i.disconnect(),o.delete(n);let e=a.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,h.current]),[f,c,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},20583:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Decoder:()=>p,Encoder:()=>h,PacketType:()=>n,protocol:()=>d});var n,i=r(89045);let s="function"==typeof ArrayBuffer,o=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),l="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);function u(e){return s&&(e instanceof ArrayBuffer||("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer))||a&&e instanceof Blob||l&&e instanceof File}let c=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],d=5;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(n||(n={}));class h{constructor(e){this.replacer=e}encode(e){return(e.type===n.EVENT||e.type===n.ACK)&&function e(t,r){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(e(t[r]))return!0;return!1}if(u(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1==arguments.length)return e(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return!0;return!1}(e)?this.encodeAsBinary({type:e.type===n.EVENT?n.BINARY_EVENT:n.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===n.BINARY_EVENT||e.type===n.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=function(e){let t=[],r=e.data;return e.data=function e(t,r){if(!t)return t;if(u(t)){let e={_placeholder:!0,num:r.length};return r.push(t),e}if(Array.isArray(t)){let n=Array(t.length);for(let i=0;i<t.length;i++)n[i]=e(t[i],r);return n}if("object"==typeof t&&!(t instanceof Date)){let n={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=e(t[i],r));return n}return t}(r,t),e.attachments=t.length,{packet:e,buffers:t}}(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}}function f(e){return"[object Object]"===Object.prototype.toString.call(e)}class p extends i.v{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let r=(t=this.decodeString(e)).type===n.BINARY_EVENT;r||t.type===n.BINARY_ACK?(t.type=r?n.EVENT:n.ACK,this.reconstructor=new g(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(u(e)||e.base64)if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+e)}decodeString(e){let t=0,r={type:Number(e.charAt(0))};if(void 0===n[r.type])throw Error("unknown packet type "+r.type);if(r.type===n.BINARY_EVENT||r.type===n.BINARY_ACK){let n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(n,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");r.attachments=Number(i)}if("/"===e.charAt(t+1)){let n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(n,t)}else r.nsp="/";let i=e.charAt(t+1);if(""!==i&&Number(i)==i){let n=t+1;for(;++t;){let r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(p.isPayloadValid(r.type,n))r.data=n;else throw Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case n.CONNECT:return f(t);case n.DISCONNECT:return void 0===t;case n.CONNECT_ERROR:return"string"==typeof t||f(t);case n.EVENT:case n.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===c.indexOf(t[0]));case n.ACK:case n.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class g{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t,r;let e=(t=this.reconPack,r=this.buffers,t.data=function e(t,r){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<r.length)return r[t.num];throw Error("illegal attachments")}if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=e(t[n],r);else if("object"==typeof t)for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=e(t[n],r));return t}(t.data,r),delete t.attachments,t);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},20957:(e,t,r)=>{"use strict";r.d(t,{u:()=>u});var n=r(14343),i=r(16801),s=r(41790),o=r(73858),a=r(84016),l=r(15383);function u(e){let{children:t,elementsRef:r,labelsRef:u,onMapChange:f}=e,p=(0,s.K)(f),[,g]=n.useState(!1),v=(0,i.j)(d).current,m=(0,i.j)(c).current,y=n.useRef(0),b=n.useRef(!0),_=n.useRef(null),w=n.useRef(null),x=(0,s.K)(()=>{b.current||(b.current=!0,g(e=>!e))}),E=(0,s.K)((e,t)=>{m.set(e,t),x()}),S=(0,s.K)(e=>{m.delete(e),x()}),R=(0,s.K)(e=>{let t=new Map;
1return r.current.length=0,u&&(u.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),r.current[e.index]=e.element,u&&(u.current[e.index]=void 0!==e.registration.label?e.registration.label:e.registration.textRef?.current?.textContent??e.element.textContent)}),y.current=r.current.length,t}),k=(0,s.K)(()=>{let[e,t]=function(e){let t=new Set,r=[],n=[];e.forEach((e,i)=>{if(!i.isConnected)return;let s=e.index,o={index:s??-1,element:i,registration:e};null===s?n.push(o):s>=0&&(t.add(s),r.push(o))});let i=0;return n.sort((e,t)=>h(e.element,t.element)),n.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,r.push(e),i+=1}),t.size>0&&r.sort((e,t)=>e.index-t.index),[r,n.map(e=>e.element)]}(m),r=R(e),n=_.current,i=!n||n.length!==e.length||e.some((e,t)=>{let r=n[t];return e.index!==r.index||e.element!==r.element||e.registration.index!==r.registration.index||e.registration.metadata!==r.registration.metadata});!function(e){if(w.current?.disconnect(),w.current=null,"function"!=typeof MutationObserver||e.length<2)return;let t=new MutationObserver(r=>{if(!function(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}(r))return;let n=null;for(let r of e)if(r.isConnected){if(n&&h(n,r)>0){t.disconnect(),x();return}n=r}});w.current=t;let r=new Set;for(let t=1;t<e.length;t+=1){let n=function(e,t){let r=e.parentElement;for(;r&&!r.contains(t);)r=r.parentElement;return r}(e[t-1],e[t]);n&&r.add(n)}r.forEach(e=>t.observe(e,{childList:!0}))}(t),_.current=e,b.current=!1,i&&(v.forEach(e=>e(r)),p(r))});(0,o.g)(()=>(!b.current&&_.current&&R(_.current),()=>{r.current=[],u&&(u.current=[])}),[r,u,R]),(0,o.g)(()=>{b.current&&k()}),(0,o.g)(()=>()=>{w.current?.disconnect(),b.current=!0},[]);let T=(0,s.K)(e=>(v.add(e),()=>{v.delete(e)})),A=n.useMemo(()=>({register:E,unregister:S,subscribeMapChange:T,nextIndexRef:y}),[E,S,T,y]);return(0,l.jsx)(a.D.Provider,{value:A,children:t})}function c(){return new Map}function d(){return new Set}function h(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}},21014:(e,t,r)=>{"use strict";r.d(t,{L:()=>n,V:()=>i});let n="data-popup-open",i="data-pressed"},21226:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});var n=r(21420);let i=/jsdom|happydom/.test(n.ST)},21420:(e,t,r)=>{"use strict";r.d(t,{JG:()=>a,RT:()=>s,ST:()=>o});let{userAgent:n,platform:i,maxTouchPoints:s}="undefined"==typeof navigator?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0},o=n.toLowerCase(),a=i.toLowerCase()},21566:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(85343);let i={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};i.node;let s=(0,n.A)(i)},22025:(e,t,r)=>{"use strict";r.d(t,{j:()=>s});var n=r(14343);let i=n.createContext(void 0);function s(){let e=n.useContext(i);return e?.direction??"ltr"}},22387:(e,t,r)=>{"use strict";r.d(t,{S:()=>o});var n=r(7277),i=r(14343);let s=i.createContext(void 0);function o(e){let t=i.useContext(s);if(void 0===t&&!e)throw Error((0,n.A)(69));return t}},22940:(e,t,r)=>{"use strict";r.d(t,{r:()=>a});var n=r(14343),i=r(36253),s=r(13634),o=r(50566);let a=n.forwardRef(function(e,t){let{render:r,className:n,style:a,id:l,...u}=e,c=(0,i.P)(),d=(0,o.e)(l);return c.useSyncedValueWithCleanup("descriptionElementId",d),(0,s.o)("p",e,{ref:t,props:[{id:d},u]})})},23452:(e,t,r)=>{"use strict";r.d(t,{$v:()=>g,Jd:()=>s,Kp:()=>u,Qi:()=>p,RJ:()=>a,dB:()=>d,eR:()=>o,il:()=>i,jF:()=>h,rT:()=>f,w_:()=>c,yZ:()=>l});var n=r(10352);let i="ArrowUp",s="ArrowDown",o="ArrowLeft",a="ArrowRight",l="Home",u="End",c="PageUp",d="PageDown",h=new Set([i,s,o,a,l,u]),f=["Shift","Control","Alt","Meta"];function p(e){return!!((0,n.sb)(e)&&"INPUT"===e.tagName&&null!=e.selectionStart||(0,n.sb)(e)&&"TEXTAREA"===e.tagName)}function g(e,t,r,n){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,s=e.scrollTop,o=e.clientWidth<e.scrollWidth,a=e.clientHeight<e.scrollHeight;if(o&&"vertical"!==n){let n=v(e,t,"left"),s=m(e),o=m(t);"ltr"===r&&(n+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-s.scrollPaddingRight?i=n+t.offsetWidth+o.scrollMarginRight-e.clientWidth+s.scrollPaddingRight:n-o.scrollMarginLeft<e.scrollLeft+s.scrollPaddingLeft&&(i=n-o.scrollMarginLeft-s.scrollPaddingLeft)),"rtl"===r&&(n-o.scrollMarginLeft<e.scrollLeft+s.scrollPaddingLeft?i=n-o.scrollMarginLeft-s.scrollPaddingLeft:n+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-s.scrollPaddingRight&&(i=n+t.offsetWidth+o.scrollMarginRight-e.clientWidth+s.scrollPaddingRight))}if(a&&"horizontal"!==n){let r=v(e,t,"top"),n=m(e),i=m(t);r-i.scrollMarginTop<e.scrollTop+n.scrollPaddingTop?s=r-i.scrollMarginTop-n.scrollPaddingTop:r+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-n.scrollPaddingBottom&&(s=r+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+n.scrollPaddingBottom)}e.scrollTo({left:i,top:s,behavior:"auto"})}function v(e,t,r){let n="left"===r?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[n],t.offsetParent!==e);)t=t.offsetParent;return i}function m(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||
10,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}},23684:(e,t,r)=>{"use strict";var n=r(14343),i=r(24436),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,a=n.useRef,l=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=a(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var f=o(e,(d=u(function(){function e(e){if(!l){if(l=!0,o=e,e=n(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return a=t}return a=e}if(t=a,s(o,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(o=e,t):(o=e,a=r)}var o,a,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],d[1]);return l(function(){h.hasValue=!0,h.value=f},[f]),c(f),f}},24082:(e,t,r)=>{"use strict";r.d(t,{$u:()=>d,F2:()=>u,H5:()=>h,Hi:()=>l,WZ:()=>f,em:()=>p,nd:()=>g,tZ:()=>c});var n=r(10352),i=r(21226),s=r(3167),o=r(84249),a=r(18303);function l(e,t){if(!(0,n.vq)(e))return!1;if(t.hasElement(e))return!e.hasAttribute(a.d);for(let[,r]of t.entries())if((0,s.gR)(r,e))return!r.hasAttribute(a.d);return!1}function u(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function c(e){return e.matches("html,body")}function d(e){return(0,n.sb)(e)&&e.matches(o.BT)}function h(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${o.BT}`)!=null}function f(e){return!!e&&"combobox"===e.getAttribute("role")&&d(e)}function p(e){if(!e||i.I)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}function g(e){return e?e.hasAttribute(o.Ed)?e:e.querySelector(`[${o.Ed}]`)||e:null}},24436:(e,t,r)=>{"use strict";e.exports=r(65379)},24956:()=>{},24967:(e,t,r)=>{"use strict";r.d(t,{W:()=>s});var n=r(14343),i=r(15383);let s=n.forwardRef(function(e,t){let r,{cutout:n,...s}=e;if(n){let e=n.getBoundingClientRect();r=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,i.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...s,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:r}})})},26805:(e,t,r)=>{"use strict";function n(e){return null==e?e:"current"in e?e.current:e}r.d(t,{q:()=>n})},27058:(e,t,r)=>{"use strict";r.r(t),r.d(t,{SessionContext:()=>X,SessionProvider:()=>en,__NEXTAUTH:()=>G,getCsrfToken:()=>Q,getProviders:()=>ee,getSession:()=>Z,signIn:()=>et,signOut:()=>er,useSession:()=>J});var n=r(15383),i=r(14343);class s extends Error{constructor(e,t){e instanceof Error?super(void 0,{cause:{err:e,...e.cause,...t}}):"string"==typeof e?(t instanceof Error&&(t={err:t,...t.cause}),super(e,t)):super(void 0,e),this.name=this.constructor.name,this.type=this.constructor.type??"AuthError",this.kind=this.constructor.kind??"error",Error.captureStackTrace?.(this,this.constructor);let r=`https://errors.authjs.dev#${this.type.toLowerCase()}`;this.message+=`${this.message?". ":""}Read more at ${r}`}}class o extends s{}o.kind="signIn";class a extends s{}a.type="AdapterError";class l extends s{}l.type="AccessDenied";class u extends s{}u.type="CallbackRouteError";class c extends s{}c.type="ErrorPageLoop";class d extends s{}d.type="EventError";class h extends s{}h.type="InvalidCallbackUrl";class f extends o{constructor(){super(...arguments),this.code="credentials"}}f.type="CredentialsSignin";class p extends s{}p.type="InvalidEndpoints";class g extends s{}g.type="InvalidCheck";class v extends s{}v.type="JWTSessionError";class m extends s{}m.type="MissingAdapter";class y extends s{}y.type="MissingAdapterMethods";class b extends s{}b.type="MissingAuthorize";class _ extends s{}_.type="MissingSecret";class w extends o{}w.type="OAuthAccountNotLinked";class x extends o{}x.type="OAuthCallbackError";class E extends s{}E.type="OAuthProfileParseError";class S extends s{}S.type="SessionTokenError";class R extends o{}R.type="OAuthSignInError";class k extends o{}k.type="EmailSignInError";class T extends s{}T.type="SignOutError";class A extends s{}A.type="UnknownAction";class C extends s{}C.type="UnsupportedStrategy";class P extends s{}P.type="InvalidProvider";class O extends s{}O.type="UntrustedHost";class I extends s{}I.type="Verification";class M extends o{}M.type="MissingCSRF";class L extends s{}L.type="DuplicateConditionalUI";class N extends s{}N.type="MissingWebAuthnAutocomplete";class j extends s{}j.type="WebAuthnVerificationError";class B extends o{}B.type="AccountNotLinked";class F extends s{}F.type="ExperimentalFeatureNotEnabled";class D extends s{}class H extends s{}async function U(e,t,r,n={}){let i=`${$(t)}/${e}`;try{let e={headers:{"Content-Type":"application/json",...n?.headers?.cookie?{cookie
1:n.headers.cookie}:{}}};n?.body&&(e.body=JSON.stringify(n.body),e.method="POST");let t=await fetch(i,e),r=await t.json();if(!t.ok)throw r;return r}catch(e){return r.error(new D(e.message,e)),null}}function $(e){return"undefined"==typeof window?`${e.baseUrlServer}${e.basePathServer}`:e.basePath}function z(){return Math.floor(Date.now()/1e3)}function q(e){let t=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let r=new URL(e||t),n=("/"===r.pathname?t.pathname:r.pathname).replace(/\/$/,""),i=`${r.origin}${n}`;return{origin:r.origin,host:r.host,path:n,base:i,toString:()=>i}}var V=r(44032);let G={baseUrl:q(V.env.NEXTAUTH_URL??V.env.VERCEL_URL).origin,basePath:q(V.env.NEXTAUTH_URL).path,baseUrlServer:q(V.env.NEXTAUTH_URL_INTERNAL??V.env.NEXTAUTH_URL??V.env.VERCEL_URL).origin,basePathServer:q(V.env.NEXTAUTH_URL_INTERNAL??V.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:()=>{}},W=null;function K(){return"undefined"==typeof BroadcastChannel?{postMessage:()=>{},addEventListener:()=>{},removeEventListener:()=>{}}
1:(null===W&&(W=new BroadcastChannel("next-auth")),W)}let Y={debug:console.debug,error:console.error,warn:console.warn},X=i.createContext?.(void 0);function J(e){if(!X)throw Error("React Context is unavailable in Server Components");let t=i.useContext(X),{required:r,onUnauthenticated:n}=e??{},s=r&&"unauthenticated"===t.status;return(i.useEffect(()=>{if(s){let e=`${G.basePath}/signin?${new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href})}`;n?n():window.location.href=e}},[s,n]),s)?{data:t.data,update:t.update,status:"loading"}:t}async function Z(e){let t=await U("session",G,Y,e);return(e?.broadcast??!0)&&K().postMessage({event:"session",data:{trigger:"getSession"}}),t}async function Q(){let e=await U("csrf",G,Y);return e?.csrfToken??""}async function ee(){return U("providers",G,Y)}async function et(e,t,r){let{callbackUrl:n=window.location.href,redirect:i=!0}=t??{},s=$(G),o=await ee();if(!o){window.location.href=`${s}/error`;return}if(!e||!(e in o)){window.location.href=`${s}/signin?${new URLSearchParams({callbackUrl:n})}`;return}let a="credentials"===o[e].type,l="email"===o[e].type,u=`${s}/${a?"callback":"signin"}/${e}`,c=await Q(),d=await fetch(`${u}?${new URLSearchParams(r)}`,{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({...t,csrfToken:c,callbackUrl:n})}),h=await d.json();if(i||!(a||l)){let e=h.url??n;window.location.href=e,e.includes("#")&&window.location.reload();return}let f=new URL(h.url).searchParams.get("error"),p=new URL(h.url).searchParams.get("code");return d.ok&&await G._getSession({event:"storage"}),{error:f,code:p,status:d.status,ok:d.ok,url:f?null:h.url}}async function er(e){let{callbackUrl:t=window.location.href}=e??{},r=$(G),n=await Q(),i=await fetch(`${r}/signout`,{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({csrfToken:n,callbackUrl:t})}),s=await i.json();if(K().postMessage({event:"session",data:{trigger:"signout"}}),e?.redirect??!0){let e=s.url??t;window.location.href=e,e.includes("#")&&window.location.reload();return}return await G._getSession({event:"storage"}),s}function en(e){if(!X)throw Error("React Context is unavailable in Server Components");let{children:t,basePath:r,refetchInterval:s,refetchWhenOffline:o}=e;r&&(G.basePath=r);let a=void 0!==e.session;G._lastSync=a?z():0;let[l,u]=i.useState(()=>(a&&(G._session=e.session),e.session)),[c,d]=i.useState(!a);i.useEffect(()=>(G._getSession=async({event:e}={})=>{try{let t="storage"===e;if(t||void 0===G._session){G._lastSync=z(),G._session=await Z({broadcast:!t}),u(G._session);return}if(!e||null===G._session||z()<G._lastSync)return;G._lastSync=z(),G._session=await Z(),u(G._session)}catch(e){Y.error(new H(e.message,e))}finally{d(!1)}},G._getSession(),()=>{G._lastSync=0,G._session=void 0,G._getSession=()=>{}}),[]),i.useEffect(()=>{let e=()=>G._getSession({event:"storage"});return K().addEventListener("message",e),()=>K().removeEventListener("message",e)},[]),i.useEffect(()=>{let{refetchOnWindowFocus:t=!0}=e,r=()=>{t&&"visible"===document.visibilityState&&G._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",r,!1),()=>document.removeEventListener("visibilitychange",r,!1)},[e.refetchOnWindowFocus]);let h=function(){let[e,t]=i.useState("undefined"!=typeof navigator&&navigator.onLine),r=()=>t(!0),n=()=>t(!1);return i.useEffect(()=>(window.addEventListener("online",r),window.addEventListener("offline",n),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}),[]),e}(),f=!1!==o||h;i.useEffect(()=>{if(s&&f){let e=setInterval(()=>{G._session&&G._getSession({event:"poll"})},1e3*s);return()=>clearInterval(e)}},[s,f]);let p=i.useMemo(()=>({data:l,status:c?"loading":l?"authenticated":"unauthenticated",async update(e){if(c||!l)return;d(!0);let t=await U("session",G,Y,void 0===e?void 0:{body:{csrfToken:await Q(),data:e}});return d(!1),t&&(u(t),K().postMessage({event:"session",data:{trigger:"getSession"}})),t}}),[l,c]);return(0,n.jsx)(X.Provider,{value:p,children:t})}},27438:e=>{"use strict";e.exports=JSON.parse('{"id":"youtube-embed","description":"Embed a YouTube embed on your webpage.","website":"https://github.com/paulirish/lite-youtube-embed","html":{"element":"lite-youtube","attributes":{"videoid":null,"playlabel":null}},"stylesheets":["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],"scripts":[{"url":"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js","strategy":"idle","location":"head","action":"append"}]}')},27542:(e,t,r)=>{"use strict";r.d(t,{F:()=>m,c:()=>y});
1var n=r(15383),i=r(14343),s=r(10572),o=r(20583);function a(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var l=r(89045);let u=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class c extends l.v{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[a(e,"open",this.onopen.bind(this)),a(e,"packet",this.onpacket.bind(this)),a(e,"error",this.onerror.bind(this)),a(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(u.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let r={type:o.PacketType.EVENT,data:t};if(r.options={},r.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,n=t.pop();this._registerAckCallback(e,n),r.id=e}let n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return(!this.flags.volatile||n&&this.connected)&&(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,t){var r;let n=null!=(r=this.flags.timeout)?r:this._opts.ackTimeout;if(void 0===n){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},n),s=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...t){return new Promise((r,n)=>{let i=(e,t)=>e?n(e):r(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>{if(r===this._queue[0])return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:o.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}
1_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case o.PacketType.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.PacketType.EVENT:case o.PacketType.BINARY_EVENT:this.onevent(e);break;case o.PacketType.ACK:case o.PacketType.BINARY_ACK:this.onack(e);break;case o.PacketType.DISCONNECT:this.ondisconnect();break;case o.PacketType.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:o.PacketType.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:o.PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}function d(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}d.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-r:e+r}return 0|Math.min(e,this.max)},d.prototype.reset=function(){this.attempts=0},d.prototype.setMin=function(e){this.ms=e},d.prototype.setMax=function(e){this.max=e},d.prototype.setJitter=function(e){this.jitter=e};class h extends l.v{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,(0,s._7)(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(r=t.randomizationFactor)?r:.5),this.backoff=new d({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||o;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null==(t=this.backoff)||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null==(t=this.backoff)||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null==(t=this.backoff)||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new s.yQ(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=a(t,"open",function(){r.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=a(t,"error",i);if(!1!==this._timeout){let e=this._timeout,r=this.setTimeoutFn(()=>{n(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(a(e,"ping",this.onping.bind(this)),a(e,"data",this.ondata.bind(this)),a(e,"error",this.onerror.bind(this)),a(e,"close",this.onclose.bind(this)),a(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){(0,s.dY)(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new c(this,e,t),this.nsps[e]=r),r}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}
1cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{!e.skipReconnect&&(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let f={};function p(e,t){let r;"object"==typeof e&&(t=e,e=void 0);let n=function(e,t="",r){let n=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=(0,s.qg)(e)),!n.port&&(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),i=n.source,o=n.id,a=n.path,l=f[o]&&a in f[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||l?r=new h(i,t):(f[o]||(f[o]=new h(i,t)),r=f[o]),n.query&&!t.query&&(t.query=n.queryKey),r.socket(n.path,t)}Object.assign(p,{Manager:h,Socket:c,io:p,connect:p});var g=r(27058);let v=(0,i.createContext)({socket:null,isSocketConnected:!1}),m=e=>{let{children:t}=e,{data:r,status:s}=(0,g.useSession)(),[o,a]=(0,i.useState)(null),[l,u]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if("authenticated"===s&&!l){var e;a(p("https://server.rackety.tv",{auth:{email:null==r||null==(e=r.user)?void 0:e.email}})),u(!0)}},[s,null==r?void 0:r.user,l]),(0,n.jsx)(v.Provider,{value:{socket:o,isSocketConnected:l},children:t})},y=()=>{let{socket:e,isSocketConnected:t}=(0,i.useContext)(v);return{socket:e,isSocketConnected:t}}},27870:(e,t,r)=>{"use strict";r.d(t,{V$:()=>u,eZ:()=>l,er:()=>a});var n=r(7277),i=r(14343),s=r(49940),o=r(9834);let a={invalid:void 0,name:void 0,validityData:{state:o.ZV,errors:[],error:"",value:"",initialValue:null},setValidityData:s.tE,disabled:void 0,setTouched:s.tE,setDirty:s.tE,setFilled:s.tE,setFocused:s.tE,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:o.mk,registerFieldControl:s.tE,validation:{getValidationProps:(e,t=s.t0)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:s.tE,getInputControl:()=>null,commit:async()=>{},change:s.tE}},l=i.createContext(a);function u(e=!0){let t=i.useContext(l);if(t.setValidityData===s.tE&&!e)throw Error((0,n.A)(28));return t}},28743:(e,t,r)=>{"use strict";r.r(t),r.d(t,{SearchContext:()=>td,default:()=>tf});var n,i,s,o,a,l,u,c,d=r(15383),h=r(60284),f=r.n(h);r(72323);var p=r(27058),g=r(18350),v=r.n(g);r(40663);var m=r(15823),y=r.n(m),b=r(14343),_=r(87696),w=r.n(_),x=r(55336),E=r.n(x),S=r(46285),R=r(11),k=r(99170),T=r(97248),A=r(29563),C=r(21566),P=r(85343);let O={name:"octagon-x",size:24,node:[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-octagon"]};O.node;let I=(0,P.A)(O);var M=r(82229);let L=e=>{let{...t}=e,{theme:r="system"}=(0,S.D)();return(0,d.jsx)(k.l$,{theme:r,className:"toaster group",icons:{success:(0,d.jsx)(T.A,{className:"size-4"}),info:(0,d.jsx)(A.A,{className:"size-4"}),warning:(0,d.jsx)(C.A,{className:"size-4"}),error:(0,d.jsx)(I,{className:"size-4"}),loading:(0,d.jsx)(M.A,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},toastOptions:{classNames:{toast:"cn-toast"}},...t})};var N=r(81905),j=r(19246),B=(0,b.createContext)({get client(){return n},bootstrap:void 0});function F(e){var t,r,i=e.children,s=e.client,o=e.apiKey,a=e.options,l=(0,b.useRef)(null),u=(0,b.useMemo)(function(){if(s)return o&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),a&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),s;var e=n;return o||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},[s,o,JSON.stringify(a)]);return(0,b.useEffect)(function(){if(!s&&o){var e=n,t=l.current;t?(o!==t.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),a&&!function e(t,r,n){if(void 0===n&&(n=new WeakMap),t===r)return!0;
1if("object"!=typeof t||null===t||"object"!=typeof r||null===r)return!1;if(n.has(t)&&n.get(t)===r)return!0;n.set(t,r);var i=Object.keys(t),s=Object.keys(r);if(i.length!==s.length)return!1;for(var o=0;o<i.length;o++){var a=i[o];if(!s.includes(a)||!e(t[a],r[a],n))return!1}return!0}(a,t.options)&&e.set_config(a)):(e.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),e.init(o,a)),l.current={apiKey:o,options:null!=a?a:{}}}},[s,o,JSON.stringify(a)]),b.createElement(B.Provider,{value:{client:u,bootstrap:null!=(t=null==a?void 0:a.bootstrap)?t:null==(r=null==s?void 0:s.config)?void 0:r.bootstrap}},i)}var D=function(e){return"function"==typeof e},H=function(e,t){return(H=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};"function"==typeof SuppressedError&&SuppressedError;var U={componentStack:null,exceptionEvent:null,error:null},$={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};!function(e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}function r(t){var r=e.call(this,t)||this;return r.state=U,r}H(r,e),r.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),r.prototype.componentDidCatch=function(e,t){var r,n=this.props.additionalProperties;D(n)?r=n(e):"object"==typeof n&&(r=n);var i=this.context.client.captureException(e,r),s=t.componentStack;this.setState({error:e,componentStack:null!=s?s:null,exceptionEvent:i})},r.prototype.render=function(){var e=this.props,t=e.children,r=e.fallback,n=this.state;if(null==n.componentStack)return D(t)?t():t;var i=D(r)?b.createElement(r,{error:n.error,componentStack:n.componentStack,exceptionEvent:n.exceptionEvent}):r;return b.isValidElement(i)?i:(console.warn($.INVALID_FALLBACK),b.createElement(b.Fragment,null))},r.contextType=B}(b.Component),n=j.Ay;var z=r(27542),q=r(91934),V=function(e,t){return(V=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function G(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}V(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var W=function(){return(W=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function K(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function Y(e,t){var r=t&&t.cache?t.cache:ee,n=t&&t.serializer?t.serializer:Z;return(t&&t.strategy?t.strategy:function(e,t){var r,n,i=1===e.length?X:J;return r=t.cache.create(),n=t.serializer,i.bind(this,e,r,n)})(e,{cache:r,serializer:n})}function X(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),s=t.get(i);return void 0===s&&(s=e.call(this,n),t.set(i,s)),s}function J(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return void 0===s&&(s=e.apply(this,n),t.set(i,s)),s}var Z=function(){return JSON.stringify(arguments)};function Q(){this.cache=Object.create(null)}Q.prototype.get=function(e){return this.cache[e]},Q.prototype.set=function(e,t){this.cache[e]=t};var ee={create:function(){return new Q}},et={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,J.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,X.bind(this,e,r,n)}};function er(e){return e.type===s.literal}function en(e){return e.type===s.number}function ei(e){return e.type===s.date}function es(e){return e.type===s.time}function eo(e){return e.type===s.select}function ea(e){return e.type===s.plural}function el(e){return e.type===s.tag}function eu(e){return!!(e&&"object"==typeof e&&e.type===o.number)}function ec(e){return!!(e&&"object"==typeof e&&e.type===o.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_
vendor: 5,666 bytes, line 1
1NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(i||(i={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(s||(s={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(o||(o={}));var ed=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,eh=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,ef=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ep=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,eg=/^(@+)?(\+|#+)?[rs]?$/g,ev=/(\*)(0+)|(#+)(0+)|(0+)/g,em=/^(0+)$/;function ey(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(eg,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function eb(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function e_(e){var t=eb(e);return t||{}}var ew={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
1:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},ex=new RegExp("^".concat(ed.source,"*")),eE=new RegExp("".concat(ed.source,"*$"));function eS(e,t){return{start:e,end:t}}var eR=!!String.prototype.startsWith&&"_a".startsWith("a",1),ek=!!String.fromCodePoint,eT=!!Object.fromEntries,eA=!!String.prototype.codePointAt,eC=!!String.prototype.trimStart,eP=!!String.prototype.trimEnd,eO=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&0x1fffffffffffff>=Math.abs(e)},eI=!0;try{eI=(null==(a=eD("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:a[0])==="a"}catch(e){eI=!1}var eM=eR?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},eL=ek?String.fromCodePoint:function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0;i>s;){if((e=t[s++])>1114111)throw RangeError(e+" is not a valid code point");n+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return n},eN=eT?Object.fromEntries:function(e){for(var t={},r=0;r<e.length;r++){var n=e[r],i=n[0],s=n[1];t[i]=s}return t},ej=eA?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0)&&!(t>=n)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},eB=eC?function(e){return e.trimStart()}:function(e){return e.replace(ex,"")},eF=eP?function(e){return e.trimEnd()}:function(e){return e.replace(eE,"")};function eD(e,t){return new RegExp(e,t)}if(eI){var eH=eD("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");l=function(e,t){var r;return eH.lastIndex=t,null!=(r=eH.exec(e)[1])?r:""}}else l=function(e,t){for(var r=[];;){var n,i=ej(e,t);if(void 0===i||ez(i)||(n=i)>=33&&n<=35||36===n||n>=37&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||n>=162&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||n>=8208&&n<=8213||n>=8214&&n<=8215||8216===n||8217===n||8218===n||n>=8219&&n<=8220||8221===n||8222===n||8223===n||n>=8224&&n<=8231||n>=8240&&n<=8248||8249===n||8250===n||n>=8251&&n<=8254||n>=8257&&n<=8259||8260===n||8261===n||8262===n||n>=8263&&n<=8273||8274===n||8275===n||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||8608===n||n>=8609&&n<=8610||8611===n||n>=8612&&n<=8613||8614===n||n>=8615&&n<=8621||8622===n||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||8658===n||8659===n||8660===n||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||8968===n||8969===n||8970===n||8971===n||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||9001===n||9002===n||n>=9003&&n<=9083||9084===n||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||9655===n||n>
1=9656&&n<=9664||9665===n||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||9839===n||n>=9840&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||n>=10132&&n<=10175||n>=10176&&n<=10180||10181===n||10182===n||n>=10183&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||n>=10649&&n<=10711||10712===n||10713===n||10714===n||10715===n||n>=10716&&n<=10747||10748===n||10749===n||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||11158===n||n>=11159&&n<=11263||n>=11776&&n<=11777||11778===n||11779===n||11780===n||11781===n||n>=11782&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||n>=11790&&n<=11798||11799===n||n>=11800&&n<=11801||11802===n||11803===n||11804===n||11805===n||n>=11806&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||n>=11818&&n<=11822||11823===n||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||11840===n||11841===n||11842===n||n>=11843&&n<=11855||n>=11856&&n<=11857||11858===n||n>=11859&&n<=11903||n>=12289&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||n>=12306&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||n>=12318&&n<=12319||12320===n||12336===n||64830===n||64831===n||n>=65093&&n<=65094)break;r.push(i),t+=i>=65536?2:1}return eL.apply(void 0,r)};var eU=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){var a=this.parseArgument(e,r);if(a.err)return a;n.push(a.val)}else if(125===o&&e>0)break;else if(35===o&&("plural"===t||"selectordinal"===t)){var l=this.clonePosition();this.bump(),n.push({type:s.pound,location:eS(l,this.clonePosition())})}else if(60!==o||this.ignoreTag||47!==this.peek())if(60===o&&!this.ignoreTag&&e$(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;n.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;n.push(a.val)}else if(!r)return this.error(i.UNMATCHED_CLOSING_TAG,eS(this.clonePosition(),this.clonePosition()));else break}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:s.literal,value:"<".concat(n,"/>"),location:eS(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(i.INVALID_TAG,eS(r,this.clonePosition()));var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var a=o.val,l=this.clonePosition();if(!this.bumpIf("</"))return this.error(i.UNCLOSED_TAG,eS(r,this.clonePosition()));if(this.isEOF()||!e$(this.char()))return this.error(i.INVALID_TAG,eS(l,this.clonePosition()));var u=this.clonePosition();return n!==this.parseTagName()?this.error(i.UNMATCHED_CLOSING_TAG,eS(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:s.tag,value:n,children:a,location:eS(r,this.clonePosition())},err:null}:this.error(i.INVALID_TAG,eS(l,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i){n+=i;continue}var o=this.tryParseUnquoted(e,t);if(o){n+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var l=eS(r,this.clonePosition());return{val:{type:s.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(e$(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";
1case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return eL.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),eL(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,eS(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(i.EMPTY_ARGUMENT,eS(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(i.MALFORMED_ARGUMENT,eS(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,eS(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:s.argument,value:n,location:eS(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,eS(r,this.clonePosition()));return this.parseArgumentOptions(e,t,n,r);default:return this.error(i.MALFORMED_ARGUMENT,eS(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=l(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:eS(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var a,l=this.clonePosition(),u=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(u){case"":return this.error(i.EXPECT_ARGUMENT_TYPE,eS(l,c));case"number":case"date":case"time":this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var p=eF(f.val);if(0===p.length)return this.error(i.EXPECT_ARGUMENT_STYLE,eS(this.clonePosition(),this.clonePosition()));d={style:p,styleLocation:eS(h,this.clonePosition())}}var g=this.tryParseArgumentClose(n);if(g.err)return g;var v=eS(n,this.clonePosition());if(d&&eM(null==d?void 0:d.style,"::",0)){var m=eB(d.style.slice(2));if("number"===u){var f=this.parseNumberSkeletonFromString(m,d.styleLocation);if(f.err)return f;return{val:{type:s.number,value:r,location:v,style:f.val},err:null}}if(0===m.length)return this.error(i.EXPECT_DATE_TIME_SKELETON,v);var y,b=m;this.locale&&(b=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var o=1+(1&s),a=s<2?1:3+(s>>1),l=function(e){var t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=e.language;return"root"!==n&&(t=e.maximize().region),(ew[t||""]||ew[n||""]||ew["".concat(n,"-001")]||ew["001"])[0]}(t);for(("H"==l||"k"==l)&&(a=0);a-- >0;)r+="a";for(;o-- >0;)r=l+r}else"J"===i?r+="H":r+=i}return r}(m,this.locale));var p={type:o.dateTime,pattern:b,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?(y={},b.replace(eh,function(e){var t=e.length;switch(e[0]){case"G":y.era=4===t?"long":5===t?"narrow":"short";break;case"y":y.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":y.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":y.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":y.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");y.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");y.weekday=["short","long","narrow","short"][t-4];break;case"a":y.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":y.hourCycle="h12",y.hour=["numeric","2-digit"][t-1];break;case"H":y.hourCycle="h23",y.hour=["numeric","2-digit"][t-1];break;case"K":y.hourCycle="h11",y.hour=["numeric","2-digit"][t-1];break;case"k":y.hourCycle="h24",y.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":y.minute=["numeric","2-digit"][t-1];break;case"s":y.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":y.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),y):{}};return{val:{type:"date"===u?s.date:s.time,value:r,location:v,style:p},err:null}}return{val:{type:"number"===u?s.number:"date"===u?s.date:s.time,value:r,location:v,style:null!=(a=null==d?void 0:d.style)?a:null},err:null};
1case"plural":case"selectordinal":case"select":var _=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(i.EXPECT_SELECT_ARGUMENT_OPTIONS,eS(_,W({},_)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),x=0;if("select"!==u&&"offset"===w.value){if(!this.bumpIf(":"))return this.error(i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,eS(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),w=this.parseIdentifierIfPossible(),x=f.val}var E=this.tryParsePluralOrSelectOptions(e,u,t,w);if(E.err)return E;var g=this.tryParseArgumentClose(n);if(g.err)return g;var S=eS(n,this.clonePosition());if("select"===u)return{val:{type:s.select,value:r,options:eN(E.val),location:S},err:null};return{val:{type:s.plural,value:r,options:eN(E.val),offset:x,pluralType:"plural"===u?"cardinal":"ordinal",location:S},err:null};default:return this.error(i.INVALID_ARGUMENT_TYPE,eS(l,c))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,eS(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,eS(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(ef).filter(function(e){return e.length>0}),r=[],n=0;n<t.length;n++){var i=t[n].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var s=i[0],o=i.slice(1),a=0;a<o.length;a++)if(0===o[a].length)throw Error("Invalid number skeleton");r.push({stem:s,options:o})}return r}(e)}catch(e){return this.error(i.INVALID_NUMBER_SKELETON,t)}return{val:{type:o.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=W(W(W({},t),{notation:"scientific"}),n.options.reduce(function(e,t){return W(W({},e),e_(t))},{}));continue;case"engineering":t=W(W(W({},t),{notation:"engineering"}),n.options.reduce(function(e,t){return W(W({},e),e_(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(ev,function(e,r,n,i,s,o){if(r)t.minimumIntegerDigits=n.length;else if(i&&s)throw Error("We currently do not support maximum integer digits");else if(o)throw Error("We currently do not support exact integer digits");return""});continue}if(em.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(ep.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(ep,function(e,r,n,i,s,o){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:s&&o?(t.minimumFractionDigits=s.length,t.maximumFractionDigits=s.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=n.options[0];"w"===i?t=W(W({}
1,t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=W(W({},t),ey(i)));continue}if(eg.test(n.stem)){t=W(W({},t),ey(n.stem));continue}var s=eb(n.stem);s&&(t=W(W({},t),s));var o=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!em.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem);o&&(t=W(W({},t),o))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var s,o=!1,a=[],l=new Set,u=n.value,c=n.location;;){if(0===u.length){var d=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(i.EXPECT_PLURAL_ARGUMENT_SELECTOR,i.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=eS(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error("select"===t?i.DUPLICATE_SELECT_ARGUMENT_SELECTOR:i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,eS(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var g=this.tryParseArgumentClose(f);if(g.err)return g;a.push([u,{value:p.val,location:eS(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(s=this.parseIdentifierIfPossible()).value,c=s.location}return 0===a.length?this.error("select"===t?i.EXPECT_SELECT_ARGUMENT_SELECTOR:i.EXPECT_PLURAL_ARGUMENT_SELECTOR,eS(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(i.MISSING_OTHER_CLAUSE,eS(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,s=10*s+(o-48),this.bump();else break}var a=eS(n,this.clonePosition());return i?eO(s*=r)?{val:s,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=ej(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(eM(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ez(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function e$(e){return e>=97&&e<=122||e>=65&&e<=90}function ez(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function eq(e,t){void 0===t&&(t={});var r=new eU(e,t=W({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(r.err){var n=SyntaxError(i[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,eo(t)||ea(t))for(var r in t.options)delete t.options[r].location,e(t.options[r].value);else en(t)&&eu(t.style)||(ei(t)||es(t))&&ec(t.style)?delete t.style.location:el(t)&&e(t.children)})}(r.val),r.val}!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(u||(u={}));var eV=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return G(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),eG=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),u.INVALID_VALUE,i)||this}return G(t,e),t}(eV),eW=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),u.INVALID_VALUE,n)||this}return G(t,e),t}(eV),eK=function(e){function t(t,r){return e.call(this,'The intl str
1ing context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),u.MISSING_VALUE,r)||this}return G(t,e),t}(eV);function eY(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(c||(c={}));var eX=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var o,a,l=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=l.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===c.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return function e(t,r,n,i,o,a,l){if(1===t.length&&er(t[0]))return[{type:c.literal,value:t[0].value}];for(var d=[],h=0;h<t.length;h++){var f=t[h];if(er(f)){d.push({type:c.literal,value:f.value});continue}if(f.type===s.pound){"number"==typeof a&&d.push({type:c.literal,value:n.getNumberFormat(r).format(a)});continue}var p=f.value;if(!(o&&p in o))throw new eK(p,l);var g=o[p];if(f.type===s.argument){g&&"string"!=typeof g&&"number"!=typeof g||(g="string"==typeof g||"number"==typeof g?String(g):""),d.push({type:"string"==typeof g?c.literal:c.object,value:g});continue}if(ei(f)){var v="string"==typeof f.style?i.date[f.style]:ec(f.style)?f.style.parsedOptions:void 0;d.push({type:c.literal,value:n.getDateTimeFormat(r,v).format(g)});continue}if(es(f)){var v="string"==typeof f.style?i.time[f.style]:ec(f.style)?f.style.parsedOptions:i.time.medium;d.push({type:c.literal,value:n.getDateTimeFormat(r,v).format(g)});continue}if(en(f)){var v="string"==typeof f.style?i.number[f.style]:eu(f.style)?f.style.parsedOptions:void 0;v&&v.scale&&(g*=v.scale||1),d.push({type:c.literal,value:n.getNumberFormat(r,v).format(g)});continue}if(el(f)){var m=f.children,y=f.value,b=o[y];if("function"!=typeof b)throw new eW(y,"function",l);var _=b(e(m,r,n,i,o,a).map(function(e){return e.value}));Array.isArray(_)||(_=[_]),d.push.apply(d,_.map(function(e){return{type:"string"==typeof e?c.literal:c.object,value:e}}))}if(eo(f)){var w=f.options[g]||f.options.other;if(!w)throw new eG(f.value,g,Object.keys(f.options),l);d.push.apply(d,e(w.value,r,n,i,o));continue}if(ea(f)){var w=f.options["=".concat(g)];if(!w){if(!Intl.PluralRules)throw new eV('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',u.MISSING_INTL_API,l);var x=n.getPluralRules(r,{type:f.pluralType}).select(g-(f.offset||0));w=f.options[x]||f.options.other}if(!w)throw new eG(f.value,g,Object.keys(f.options),l);d.push.apply(d,e(w.value,r,n,i,o,g-(f.offset||0)));continue}}return d.length<2?d:d.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===c.literal&&t.type===c.literal?r.value+=t.value:e.push(t),e},[])}(l.ast,l.locales,l.formatters,l.formats,e,void 0,l.message)},this.resolvedOptions=function(){var e;return{locale:(null==(e=l.resolvedLocale)?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(l.locales)[0]}},this.getAst=function(){return l.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=i||{};d.formatters;var h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}(d,["formatters"]);this.ast=e.__parse(t,W(W({},h),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(o=e.formats,n?Object.keys(o).reduce(function(e,t){var r,i;return e[t]=(r=o[t],(i=n[t])?W(W(W({},r||{}),i||{}),Object.keys(r).reduce(function(e,t){return e[t]=W(W({},r[t]),i[t]||{}),e},{})):r),e},W({},o)):o),this.formatters=i&&i.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Y(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,K([void 0],t,!1)))},{cache:eY(a.number),strategy:et.variadic}),getDateTimeFormat:Y(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,K([void 0],t,!1)))},{cache:eY(a.dateTime),strategy:et.variadic}),getPluralRules:Y(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,K([void 0],t,!1)))},{cache:eY(a.pluralRules),strategy:et.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}
1,enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=eq,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),eJ=r(74687);let eZ="true"!==r(44032).env.NEXT_PUBLIC_TOLGEE_LOCAL,eQ=(0,eJ.H_)().use((e,t)=>(t.setFinalFormatter((()=>{let e=new Map;function t(t){if(!e.get(t)){let r=String(t).replace(/[^a-zA-Z]/g,"-");for(;!function(e){try{return!!Intl.NumberFormat.supportedLocalesOf(e).length}catch(e){return!1}}(r);)r=r.split("-").slice(0,-1).join("-")||"en";e.set(t,r)}return e.get(t)}return Object.freeze({getLanguage:t,format:({translation:e,language:r,params:n})=>{let i=!Object.values(n||{}).find(e=>"function"==typeof e);return new eX(e,t(r),void 0,{ignoreTag:i}).format(n)}})})()),e)).use((0,eJ.VD)()).init({availableLanguages:["es","en","fr","de","it","pt"],defaultLanguage:"es",...eZ?{apiKey:"tgpak_gjptqodghfzwonthmrttmzdqgzyhmyrxmf2gq3zqnzqtc",apiUrl:"https://tolgee.rackety.tv"}:{},staticData:{es:()=>r.e(2398).then(r.t.bind(r,32398,19)),en:()=>r.e(4145).then(r.t.bind(r,4145,19)),fr:()=>r.e(3970).then(r.t.bind(r,93970,19)),de:()=>r.e(2893).then(r.t.bind(r,2893,19)),it:()=>r.e(7243).then(r.t.bind(r,37243,19)),pt:()=>r.e(1394).then(r.t.bind(r,1394,19))}});var e0=r(91289),e1=r(86085),e2=r.n(e1),e3=r(30276),e4=r.n(e3),e5=r(82964),e8=r(55630),e6=r(89470),e9=r(58811),e7=r(94096),te=r(41196),tt=r(34482),tr=r(72810),tn=r(95941),ti=r(54136),ts=r(98444);let to=["BASIC","PRO","PREMIUM","COACH","CLUB","DISTRIBUTOR","ADMIN"];function ta(){var e;let{data:t,update:r}=(0,p.useSession)(),n=(0,e7.iU)(t),i=null==t?void 0:t.impersonation,[s,o]=(0,b.useState)(!1),[a,l]=(0,b.useState)(""),[u,c]=(0,b.useState)([]),h=!!(null==i?void 0:i.active),f=(null==n?void 0:n.role)==="ADMIN",g=(0,e7.c7)(t);if((0,e6.s)(()=>{if(!a)return c([]);e8.A.get("/search/".concat(a.toLowerCase()),{headers:{Authorization:"Bearer ".concat(g)}}).then(e=>{var t,r;return c(null!=(r=null==(t=e.data)?void 0:t.users)?r:[])}).catch(()=>c([]))},300,[a]),!f&&!h)return null;let v=null!=(e=null==n?void 0:n.name)?e:null==n?void 0:n.tag;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(R.m_,{children:[(0,d.jsx)(R.k$,{render:(0,d.jsx)("button",{type:"button","aria-label":"Control de suplantaci\xf3n","data-privacy-ignore":!0,onClick:()=>o(!0),className:(0,e9.cn)("fixed top-1/2 right-0 z-[999] flex -translate-y-1/2 items-center justify-center rounded-l-lg border border-r-0 px-2 py-2.5 shadow-md transition-[padding,background-color] hover:pl-3",h?"border-premium bg-premium text-primary":"bg-muted text-muted-foreground hover:bg-border hover:text-foreground")}),children:(0,d.jsx)(e5.A,{className:"size-4"})}),(0,d.jsx)(R.ZI,{side:"left",children:h?"Actuando como ".concat(v," — clic para gestionar"):"Control de suplantaci\xf3n"})]}),(0,d.jsx)(tr.lG,{open:s,onOpenChange:o,children:(0,d.jsxs)(tr.Cf,{className:"sm:max-w-md","data-
1privacy-ignore":!0,children:[(0,d.jsxs)(tr.c7,{children:[(0,d.jsx)(tr.L3,{children:"Control de suplantaci\xf3n"}),(0,d.jsx)(tr.rr,{children:"Act\xfaa como otro usuario o rol para probar la plataforma."})]}),h&&(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-lg border border-premium bg-premium/20 px-3.5 py-2.5 text-sm",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"font-semibold",children:"Actuando como"}),(0,d.jsxs)("p",{className:"text-muted-foreground",children:[v," \xb7 ",null==n?void 0:n.role]})]}),(0,d.jsx)(tt.$,{variant:"destructive",size:"sm",onClick:()=>r({clearImpersonation:!0}).then(()=>o(!1)),children:"Detener suplantaci\xf3n"})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,d.jsx)(ti.J,{className:"text-[11px] font-semibold tracking-[0.05em] text-muted-foreground uppercase",children:"Cambiar rol"}),(0,d.jsxs)(ts.l6,{value:null,items:to.map(e=>({value:e,label:e})),onValueChange:e=>e&&r({startRoleOverride:{role:e}}),children:[(0,d.jsx)(ts.bq,{className:"w-full",children:(0,d.jsx)(ts.yv,{placeholder:h&&(null==i?void 0:i.adminId)===(null==n?void 0:n.id)?"Cambiar a otro rol…":"Selecciona un rol…"})}),(0,d.jsx)(ts.gC,{children:to.map(e=>(0,d.jsx)(ts.eb,{value:e,children:e},e))})]})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,d.jsx)(ti.J,{htmlFor:"impersonate-user",className:"text-[11px] font-semibold tracking-[0.05em] text-muted-foreground uppercase",children:"Suplantar usuario"}),(0,d.jsx)(tn.p,{id:"impersonate-user",value:a,onChange:e=>l(e.target.value),placeholder:"Buscar por nombre, tag o email…",autoComplete:"off"}),a&&(0,d.jsxs)("ul",{className:"max-h-60 divide-y overflow-y-auto rounded-lg border",children:[0===u.length&&(0,d.jsx)("li",{className:"px-3 py-2 text-sm text-muted-foreground",children:"Sin resultados"}),u.map(e=>{var t;return(0,d.jsx)("li",{children:(0,d.jsxs)("button",{type:"button",className:"flex w-full items-center gap-3 px-3 py-2 text-left text-sm hover:bg-muted",onClick:()=>r({startImpersonation:{userId:e.id}}).then(()=>o(!1)),children:[e.image?(0,d.jsx)("img",{src:e.image,alt:"",className:"size-7 rounded-full object-cover"}):(0,d.jsx)("span",{className:"flex size-7 items-center justify-center rounded-full bg-muted text-xs font-semibold uppercase",children:null==(t=e.tag)?void 0:t[0]}),(0,d.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,d.jsx)("span",{className:"block truncate",children:e.name}),(0,d.jsxs)("span",{className:"block truncate text-xs text-muted-foreground",children:["@",e.tag]})]}),(0,d.jsx)(te.E,{variant:"secondary",children:e.role})]})},e.id)})]})]})]})})]})}var tl=r(74098),tu=r(43226);function tc(){let e=(0,tl.A)("TermsGate"),{data:t,status:r,update:n}=(0,p.useSession)(),i=(0,e7.iU)(t),s=(0,m.useRouter)(),[o,a]=(0,b.useState)(!1),l="authenticated"===r&&!s.pathname.startsWith("/legal")&&!!(null==i?void 0:i.isProfileComplete)&&!!(null==i?void 0:i.needsTermsAcceptance),u=async()=>{if(!o&&i){a(!0);try{await e8.A.post("/user/".concat(i.id,"/accept-terms")),await n({refreshProfile:!0})}catch(t){console.error(t),k.oR.error(e("error"))}finally{a(!1)}}},c=(e,t)=>(0,d.jsx)(tu.N,{href:e,target:"_blank",className:"font-medium text-primary underline",children:t});return(0,d.jsx)(tr.lG,{open:l,children:(0,d.jsxs)(tr.Cf,{showCloseButton:!1,children:[(0,d.jsxs)(tr.c7,{children:[(0,d.jsx)(tr.L3,{children:e("title")}),(0,d.jsx)(tr.rr,{children:e("content",{legal:e=>c("/legal/terms",e),privacy:e=>c("/legal/privacy-policy",e)})})]}),(0,d.jsx)(tr.Es,{children:(0,d.jsx)(tt.$,{onClick:u,pending:o,children:e("acceptButton")})})]})})}let td=(0,b.createContext)();v().configure({showSpinner:!1}),y().onRouteChangeStart=e=>{v().start()},y().onRouteChangeComplete=()=>v().done(),y().onRouteChangeError=()=>v().done(),j.Ay.init("phc_lOxn7tWHslEXgxvjajIWJQKFFGxpRBW91N0CznZDllv",{api_host:"https://t.rackety.tv",ui_host:"https://eu.posthog.com",defaults:"2026-05-30",person_profiles:"always",loaded:e=>{}});let th=()=>{let{data:e}=(0,p.useSession)(),t=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{var r;(null==e||null==(r=e.user)?void 0:r.id)&&!t.current&&(t.current=!0,j.Ay.identify(e.user.id,{email:e.user.email,name:e.user.name,role:e.user.role}))},[e]),null};function tf(e){let{Component:t,pageProps:{session:r,...n},staticData:i}=e,[s,o]=(0,b.useState)(!1),a=(0,m.useRouter)();return(0,b.useEffect)(()=>
1{if(window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone){let e=document.querySelector("meta[name=viewport]");e&&e.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0")}},[]),(0,b.useEffect)(()=>{var e,t;null==(t=window.HubSpotConversations)||null==(e=t.widget)||e.refresh()},[a.asPath]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(e4(),{children:(0,d.jsx)("meta",{name:"viewport",content:"viewport-fit=cover, width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0",className:f().dynamic([["a24d6ddf67d9843c",[w().style.fontFamily,E().style.fontFamily]]])},"viewport")}),(0,d.jsx)(f(),{id:"a24d6ddf67d9843c",dynamic:[w().style.fontFamily,E().style.fontFamily],children:":root{--font-inter:".concat(w().style.fontFamily,";--font-jakarta:").concat(E().style.fontFamily,"}")}),(0,d.jsx)(F,{client:j.Ay,children:(0,d.jsx)(p.SessionProvider,{session:r,refetchOnWindowFocus:!1,children:(0,d.jsx)(e0.IO,{tolgee:eQ,ssr:{language:a.locale,staticData:i},children:(0,d.jsx)(S.N,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,children:(0,d.jsxs)(R.Bc,{children:[(0,d.jsxs)(td.Provider,{value:{searchState:s,toggleSearch:()=>{o(e=>!e)}},children:[(0,d.jsx)(z.F,{children:(0,d.jsxs)(q.P,{children:[(0,d.jsx)(th,{}),(0,d.jsx)(t,{...n,className:f().dynamic([["a24d6ddf67d9843c",[w().style.fontFamily,E().style.fontFamily]]])+" "+(n&&null!=n.className&&n.className||"")}),(0,d.jsx)(ta,{}),(0,d.jsx)(tc,{})]})}),(0,d.jsx)(N.GoogleTagManager,{gtmId:"GTM-NB86LSFK"})]}),(0,d.jsx)(L,{position:"top-center"})]})})})})})]})}tf.getInitialProps=async e=>({...await e2().getInitialProps(e),staticData:await eQ.loadRequired({language:e.ctx.locale})})},29265:(e,t,r)=>{"use strict";r.d(t,{V:()=>i,e:()=>n});let n="data-starting-style",i="data-ending-style"},29385:(e,t,r)=>{"use strict";let n;r.d(t,{G1:()=>u,iE:()=>a,kz:()=>l,nk:()=>c});var i=r(14343),s=r(16801);let o=[];function a(){return n}function l(e){o.push(e)}function u(e){let t=(t,r)=>{let i,a=(0,s.j)(d).current;try{for(let e of(n=a,o))e.before(a);for(let n of(i=e(t,r),o))n.after(a);a.didInitialize=!0}finally{n=void 0}return i};return t.displayName=e.displayName||e.name,t}function c(e){return i.forwardRef(u(e))}function d(){return{didInitialize:!1}}},29563:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(85343);let i={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};i.node;let s=(0,n.A)(i)},29836:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});var n=r(14343);function i({controlled:e,default:t,name:r,state:i="value"}){let{current:s}=n.useRef(void 0!==e),[o,a]=n.useState(t),l=n.useCallback(e=>{s||a(e)},[]);return[s&&void 0!==e?e:o,l]}},30276:(e,t,r)=>{e.exports=r(80034)},31019:(e,t,r)=>{"use strict";r.d(t,{j:()=>i});var n=r(14343);function i(e){let t=n.useRef(!0);t.current&&(t.current=!1,e())}},32601:(e,t,r)=>{"use strict";r.d(t,{Bt:()=>l,Md:()=>a,s4:()=>i,yA:()=>o});var n=r(21420);let i=/^i(os$|p)/.test(n.JG)||"macintel"===n.JG&&n.RT>1,s="android",o=n.JG===s||n.ST.includes(s),a=!i&&n.JG.startsWith("mac");n.JG.startsWith("win"),o||/^(linux|chrome os)/.test(n.JG);let l=a||i},32830:(e,t,r)=>{"use strict";r.d(t,{PT:()=>f,VN:()=>p,lZ:()=>o,v6:()=>s});var n=r(1543);let i={};function s(e,t,r,n,i){if(!r&&!n&&!i&&!e)return a(t);let s=a(e);return t&&(s=l(s,t)),r&&(s=l(s,r)),n&&(s=l(s,n)),i&&(s=l(s,i)),s}function o(e){if(0===e.length)return i;if(1===e.length)return a(e[0]);let t=a(e[0]);for(let r=1;r<e.length;r+=1)t=l(t,e[r]);return t}function a(e){return c(e)?{...d(e,i)}:function(e){let t={...e};for(let e in t){let r=t[e];u(e,r)&&(t[e]=h(r))}return t}(e)}function l(e,t){return c(t)?d(t,e):function(e,t){if(!t)return e;for(let r in t){let i=t[r];switch(r){case"style":e[r]=(0,n.r)(e.style,i);break;case"className":e[r]=p(e.className,i);break;default:u(r,i)?e[r]=function(e,t){return t?e?(...r)=>{let n=r[0];if(g(n)){f(n);let i=t(...r);return n.baseUIHandlerPrevented||e?.(...r),i}let i=t(...r);return e?.(...r),i}:h(t):e}(e[r],i):e[r]=i}}return e}(e,t)}function u(e,t){let r=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2);return 111===r&&110===n&&i>=65&&i<=90&&("function"==typeof t||void 0===t)}function c(e){return"function"==typeof e}function d(e,t){return c(e)?e(t):e??i}function h(e){return e?(...t)=>{let r=t[0];return g(r)&&f(r),e(...t)}:e}function f(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function p(e,t){return t?e?t+" "+e:t:e}function g(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},33685:(e,t)=>{t.read=function(e,t,r,n,i){var s,o,a=8*i-n-1,l=(1<<a)-1,u=l>>1,c=-7,d=r?i-1:0,h=r?-1:1,f=e[t+d];for(d+=h,s=f&(1<<-c)-1,f>>=-c,c+=a;c>0;s=256*s+e[t+d],d+=h,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=n;c>0;o=256*o+e[t+d],d+=h,c-=8);if(0===s)s=1-u;else{if(s===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),s-=u}return(f?-1:1)*o*Math.pow(2,s-n)}
1,t.write=function(e,t,r,n,i,s){var o,a,l,u=8*s-i-1,c=(1<<u)-1,d=c>>1,h=5960464477539062e-23*(23===i),f=n?0:s-1,p=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(a=0,o=c):o+d>=1?(a=(t*l-1)*Math.pow(2,i),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+f]=255&a,f+=p,a/=256,i-=8);for(o=o<<i|a,u+=i;u>0;e[r+f]=255&o,f+=p,o/=256,u-=8);e[r+f-p]|=128*g}},33905:(e,t,r)=>{"use strict";r.d(t,{Fp:()=>i,cn:()=>s});var n=r(21420);let i="undefined"!=typeof CSS&&!!CSS.supports?.("-webkit-backdrop-filter:none"),s=!i&&n.ST.includes("firefox");i||n.ST.includes("chrom")},34224:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{html:t,scripts:r,stylesheets:n}=(0,o.YouTubeEmbed)(e);return(0,i.jsx)(a.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==r?void 0:r.map(e=>(0,i.jsx)(s.default,{src:e.url,strategy:l[e.strategy],stylesheets:n},e.url))})};let i=r(15383),s=n(r(76317)),o=r(44223),a=n(r(47110)),l={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},34482:(e,t,r)=>{"use strict";r.d(t,{$:()=>f,r:()=>h});var n=r(15383),i=r(14343),s=r(59594),o=r(13634);let a=i.forwardRef(function(e,t){let{render:r,className:n,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:l=!0,style:u,...c}=e,{getButtonProps:d,buttonRef:h}=(0,s.s)({disabled:i,focusableWhenDisabled:a,native:l});return(0,o.o)("button",e,{state:{disabled:i},ref:[t,h],props:[c,d]})});var l=r(56783),u=r(58811),c=r(43226),d=r(84413);let h=(0,l.F)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 data-pending:disabled:opacity-100 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function f(e){let{className:t,variant:r="default",size:i="default",nativeButton:s,pending:o=!1,disabled:l,children:f,...p}=e,g="string"==typeof i&&i.startsWith("icon");
1return(0,n.jsxs)(a,{"data-slot":"button","data-pending":o||void 0,"aria-busy":o||void 0,className:(0,u.cn)(h({variant:r,size:i,className:t})),nativeButton:null!=s?s:!p.render,disabled:l||o,...p,children:[o?(0,n.jsx)(d.y,{"data-icon":g?void 0:"inline-start"}):p.render?(0,n.jsx)(c.o,{}):null,g&&o?null:f]})}},35733:(e,t,r)=>{"use strict";r.d(t,{G:()=>a});var n=r(14343),i=r(87190),s=r(87944),o=r(73858);function a(e,t,r,a){let[l,u]=n.useState(!1);(0,o.g)(()=>{if(!e||!t||null==r)return void u(!1);let n=(0,i.R)(r).documentElement.clientWidth,s=r.offsetWidth;u(n>0&&s>0&&s>=n-20)},[e,t,r]),(0,s.K)(e&&(!t||l),a)}},35776:(e,t,r)=>{"use strict";r.d(t,{z:()=>v});var n=r(7277),i=r(14343),s=r(29385),o=r(36253),a=r(59594),l=r(13634),u=r(84949),c=r(1090),d=r(76284),h=r(290),f=r(50566),p=r(71378),g=r(19123);let v=(0,s.nk)(function(e,t){let{render:r,className:s,style:v,disabled:m=!1,nativeButton:y=!0,id:b,payload:_,handle:w,...x}=e,E=(0,o.P)(!0),S=(0,d.f)(w)??E;if(!S)throw Error((0,n.A)(79));let R=(0,f.e)(b),k=S.useState("floatingRootContext"),T=S.useState("isOpenedByTrigger",R),A=S.useState("triggerPopupId",R),C=i.useRef(null),{registerTrigger:P,isMountedByThisTrigger:O}=(0,h.L_)(R,C,S,{payload:_}),{getButtonProps:I,buttonRef:M}=(0,a.s)({disabled:m,native:y}),L=(0,p.k)(k),N=(0,g.L)(()=>S.select("open"),e=>{S.set("openMethod",e)}),j=S.useState("triggerProps",O);return(0,l.o)("button",e,{state:{disabled:m,open:T},ref:[M,t,P,C],props:[L.reference,j,N,{[c.Kd]:"",id:R,"aria-haspopup":"dialog","aria-expanded":T,"aria-controls":A},x,I],stateAttributesMapping:u.qV})})},35795:(e,t,r)=>{"use strict";r.d(t,{x:()=>o});var n=r(14343),i=r(49940);let s=n.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:i.tE,validationMode:"onSubmit",submitCountRef:{current:0}});function o(){return n.useContext(s)}},36138:(e,t,r)=>{"use strict";function n(e){return`data-base-ui-${e}`}r.d(t,{F:()=>n})},36253:(e,t,r)=>{"use strict";r.d(t,{P:()=>o,a:()=>s});var n=r(7277),i=r(14343);let s=i.createContext(void 0);function o(e){let t=i.useContext(s);if(!e&&void 0===t)throw Error((0,n.A)(27));return t}},37900:(e,t,r)=>{"use strict";function n(...e){return()=>{for(let t=0;t<e.length;t+=1){let r=e[t];r&&r()}}}r.d(t,{g:()=>n})},38802:(e,t,r)=>{"use strict";r.d(t,{B1:()=>T,C0:()=>d,Dz:()=>v,Jx:()=>a,LI:()=>s,PG:()=>f,RI:()=>o,Sg:()=>h,T9:()=>i,TV:()=>g,WJ:()=>y,_3:()=>c,bV:()=>R,jk:()=>n,lP:()=>S,nI:()=>k,qE:()=>u,sq:()=>p,w7:()=>m});let n=Math.min,i=Math.max,s=Math.round,o=Math.floor,a=e=>({x:e,y:e}),l={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e,t,r){return i(e,n(t,r))}function c(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function f(e){return"x"===e?"y":"x"}function p(e){return"y"===e?"height":"width"}function g(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function v(e){return f(g(e))}function m(e,t,r){void 0===r&&(r=!1);let n=h(e),i=v(e),s=p(i),o="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=R(o)),[o,R(o)]}function y(e){let t=R(e);return[b(e),t,b(t)]}function b(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let _=["left","right"],w=["right","left"],x=["top","bottom"],E=["bottom","top"];function S(e,t,r,n){let i=h(e),s=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?w:_;return t?_:w;case"left":case"right":return t?x:E;default:return[]}}(d(e),"start"===r,n);return i&&(s=s.map(e=>e+"-"+i),t&&(s=s.concat(s.map(b)))),s}function R(e){let t=d(e);return l[t]+e.slice(t.length)}function k(e){var t,r,n,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(r=e.right)?r:0,bottom:null!=(n=e.bottom)?n:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}}function T(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}},39718:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(85343);let i={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};i.node;let s=(0,n.A)(i)},39767:(e,t,r)=>{"use strict";function n(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}r.d(t,{F:()=>n})},39994:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i,a:()=>s});
1let n={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},i={...n,position:"fixed",top:0,left:0},s={...n,position:"absolute"}},40003:(e,t,r)=>{"use strict";r.d(t,{U:()=>s});var n=r(10352),i=r(21226);function s(e,t){let r=function(e){let t=e.getBoundingClientRect(),r=(0,n.zk)(e);if(i.I)return t;let s=r.getComputedStyle(e,"::before"),o=r.getComputedStyle(e,"::after");if("none"===s.content&&"none"===o.content)return t;let a=parseFloat(s.width)||0,l=parseFloat(s.height)||0,u=parseFloat(o.width)||0,c=parseFloat(o.height)||0,d=Math.max(t.width,a,u),h=Math.max(t.height,l,c),f=d-t.width,p=h-t.height;return{left:t.left-f/2,right:t.right+f/2,top:t.top-p/2,bottom:t.bottom+p/2}}(t);return e.clientX>=r.left-5&&e.clientX<=r.right+5&&e.clientY>=r.top-5&&e.clientY<=r.bottom+5}},40236:(e,t,r)=>{"use strict";r.d(t,{L:()=>a});var n=r(14343),i=r(36253),s=r(13634),o=r(50566);let a=n.forwardRef(function(e,t){let{render:r,className:n,style:a,id:l,...u}=e,c=(0,i.P)(),d=(0,o.e)(l);return c.useSyncedValueWithCleanup("titleElementId",d),(0,s.o)("h2",e,{ref:t,props:[{id:d},u]})})},40663:()=>{},41196:(e,t,r)=>{"use strict";r.d(t,{E:()=>l});var n=r(32830),i=r(13634),s=r(56783),o=r(58811);let a=(0,s.F)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function l(e){var t;let{className:r,variant:s="default",render:l,...u}=e;return t={defaultTagName:"span",props:(0,n.v6)({className:(0,o.cn)(a({variant:s}),r)},u),render:l,state:{slot:"badge",variant:s}},(0,i.o)(t.defaultTagName??"div",t,t)}},41790:(e,t,r)=>{"use strict";r.d(t,{K:()=>a});var n=r(18979),i=r(16801);let s=n.X.useInsertionEffect,o=s&&s!==n.X.useLayoutEffect?s:e=>e();function a(e){let t=(0,i.j)(l).current;return t.next=e,o(t.effect),t.trampoline}function l(){let e={next:void 0,callback:u,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function u(){}},42491:(e,t,r)=>{"use strict";r.d(t,{V:()=>u});var n=r(33475),i=r(77423),s=r(41790),o=r(26805),a=r(29265);let l=null;function u(e,t=!1,r=!1){let c=(0,i.NR)();return(0,s.K)((i,s=null)=>{c.cancel();let u=(0,o.q)(e);if(null==u)return;let d=()=>{if(!r)return void n.flushSync(i);if(!l){let e=[];l=e,queueMicrotask(()=>{l=null,n.flushSync(()=>{for(let t of e)t()})})}l.push(()=>{s?.aborted||i()})};if("function"!=typeof u.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void i();function h(){Promise.all(u.getAnimations().map(e=>e.finished)).then(()=>{s?.aborted||d()},()=>{if(!s?.aborted){if(u.getAnimations().some(e=>e.pending||"finished"!==e.playState))return void h();d()}})}if(t){let e=a.e;if(!u.hasAttribute(e))return void c.request(h);let t=new MutationObserver(()=>{u.hasAttribute(e)||(t.disconnect(),h())});return t.observe(u,{attributes:!0,attributeFilter:[e]}),void s?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(h)})}},43226:(e,t,r)=>{"use strict";r.d(t,{N:()=>d,o:()=>h});var n=r(15383),i=r(14810),s=r.n(i),o=r(15823),a=r.n(o),l=r(14343),u=r(84413);let c=(0,l.createContext)(!1);function d(e){let{children:t,onClick:r,...i}=e,[o,u]=(0,l.useState)(!1);return(0,l.useEffect)(()=>
1{if(!o)return;let e=()=>u(!1);return a().events.on("routeChangeComplete",e),a().events.on("routeChangeError",e),()=>{a().events.off("routeChangeComplete",e),a().events.off("routeChangeError",e)}},[o]),(0,n.jsx)(s(),{...i,onClick:e=>{null==r||r(e),!e.defaultPrevented&&function(e,t){var r,n;if(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||t.target&&"_self"!==t.target)return!1;let i="string"==typeof t.href?t.href:null!=(n=null==(r=t.href)?void 0:r.pathname)?n:"";return!/^(https?:)?\/\//.test(i)&&!i.startsWith("mailto:")&&!i.startsWith("tel:")}(e,i)&&u(!0)},"data-pending":o||void 0,children:(0,n.jsx)(c.Provider,{value:o,children:t})})}function h(e){return(0,l.useContext)(c)?(0,n.jsx)(u.y,{"data-icon":"inline-start",...e}):null}},44223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=t.GoogleMapsEmbed=t.GoogleAnalytics=void 0;var n=r(7493);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return n.GoogleAnalytics}});var i=r(99370);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return i.GoogleMapsEmbed}});var s=r(88006);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return s.YouTubeEmbed}})},45150:(e,t,r)=>{"use strict";e.exports=r(23684)},45449:(e,t,r)=>{"use strict";r.d(t,{x:()=>o});var n=r(14343),i=r(73858),s=r(41790);function o(e,t){let r=n.useRef(e),o=(0,s.K)(t);(0,i.g)(()=>{r.current!==e&&o(r.current),r.current=e},[e,o])}},45450:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(){this.idMap=new Map}add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}},45564:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,s=l(e),o=s[0],a=s[1],u=new i((o+a)*3/4-a),c=0,d=a>0?o-4:o;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,s=[],o=0,a=n-i;o<a;o+=16383)s.push(function(e,t,n){for(var i,s=[],o=t;o<n;o+=3)i=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),s.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}(e,o,o+16383>a?a:o+16383));return 1===i?s.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&s.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),s.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o<a;++o)r[o]=s[o],n[s.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},45848:(e,t,r)=>{"use strict";function n(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}r.d(t,{q:()=>n})},46282:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});var n=r(10352);function i(e,t,{detail:r=0}={}){e.dispatchEvent(new((0,n.zk)(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}},46285:(e,t,r)=>{"use strict";r.d(t,{D:()=>c,N:()=>d});var n=r(14343),i=(e,t,r,n,i,s,o,a)=>{let l=document.documentElement,u=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&s?i.map(e=>s[e]||e):i;r?(l.classList.remove(...n),l.classList.add(s&&s[t]?s[t]:t)):l.setAttribute(e,t)}),r=t,a&&u.includes(r)&&(l.style.colorScheme=r)}if(n)c(n);else try{let e=localStorage.getItem(t)||r,n=o&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
1k":"light":e;c(n)}catch(e){}},s=["light","dark"],o="(prefers-color-scheme: dark)",a="undefined"==typeof window,l=n.createContext(void 0),u={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=n.useContext(l))?e:u},d=e=>n.useContext(l)?n.createElement(n.Fragment,null,e.children):n.createElement(f,{...e}),h=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:i=!0,storageKey:a="theme",themes:u=h,defaultTheme:c=r?"system":"light",attribute:d="data-theme",value:f,children:y,nonce:b,scriptProps:_})=>{let[w,x]=n.useState(()=>g(a,c)),[E,S]=n.useState(()=>"system"===w?m():w),R=f?Object.values(f):u,k=n.useCallback(e=>{let n=e;if(!n)return;"system"===e&&r&&(n=m());let o=f?f[n]:n,a=t?v(b):null,l=document.documentElement,u=e=>{"class"===e?(l.classList.remove(...R),o&&l.classList.add(o)):e.startsWith("data-")&&(o?l.setAttribute(e,o):l.removeAttribute(e))};if(Array.isArray(d)?d.forEach(u):u(d),i){let e=s.includes(c)?c:null,t=s.includes(n)?n:e;l.style.colorScheme=t}null==a||a()},[b]),T=n.useCallback(e=>{let t="function"==typeof e?e(w):e;x(t);try{localStorage.setItem(a,t)}catch(e){}},[w]),A=n.useCallback(t=>{S(m(t)),"system"===w&&r&&!e&&k("system")},[w,e]);n.useEffect(()=>{let e=window.matchMedia(o);return e.addListener(A),A(e),()=>e.removeListener(A)},[A]),n.useEffect(()=>{let e=e=>{e.key===a&&(e.newValue?x(e.newValue):T(c))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[T]),n.useEffect(()=>{k(null!=e?e:w)},[e,w]);let C=n.useMemo(()=>({theme:w,setTheme:T,forcedTheme:e,resolvedTheme:"system"===w?E:w,themes:r?[...u,"system"]:u,systemTheme:r?E:void 0}),[w,T,e,E,r,u]);return n.createElement(l.Provider,{value:C},n.createElement(p,{forcedTheme:e,storageKey:a,attribute:d,enableSystem:r,enableColorScheme:i,defaultTheme:c,value:f,themes:u,nonce:b,scriptProps:_}),y)},p=n.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:s,enableColorScheme:o,defaultTheme:a,value:l,themes:u,nonce:c,scriptProps:d})=>{let h=JSON.stringify([r,t,a,e,u,l,s,o]).slice(1,-1);return n.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${i.toString()})(${h}
1)`}})}),g=(e,t)=>{let r;if(!a){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},v=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},m=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},47110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({html:e,height:t=null,width:r=null,children:s,dataNtpc:o=""}){return(0,i.useEffect)(()=>{o&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${o}`}})},[o]),(0,n.jsxs)(n.Fragment,{children:[s,e?(0,n.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=r?`${r}px`:"auto"},"data-ntpc":o,dangerouslySetInnerHTML:{__html:e}}):null]})};let n=r(15383),i=r(14343)},47128:(e,t,r)=>{"use strict";r.d(t,{l:()=>c});var n=r(14343),i=r(73858),s=r(41790),o=r(16801),a=r(49940),l=r(50566),u=r(71761);function c(e={}){let{id:t,enabled:r=!0}=e,{controlId:d,registerControlId:h,resetControlId:f}=(0,u.H)(),p=(0,l.e)(),g=(0,o.j)(()=>Symbol()),v=n.useRef(!1),m=n.useRef(!1),y=(0,s.K)(()=>{v.current&&h!==a.tE&&(v.current=!1,h(g.current,void 0))});return(0,i.g)(()=>{let e;if(!r||h===a.tE)return void y();if(void 0!==t)m.current=!0,e=t;else{if(!m.current)return void f();e=p}if(void 0===e)return void y();v.current=!0,h(g.current,e)},[t,r,h,f,p,g,y]),(0,i.g)(()=>y,[y]),(r?d:void 0)??t??p}},49940:(e,t,r)=>{"use strict";function n(){}r.d(t,{Ml:()=>i,t0:()=>s,tE:()=>n});let i=Object.freeze([]),s=Object.freeze({})},50566:(e,t,r)=>{"use strict";r.d(t,{e:()=>i});var n=r(16265);function i(e){return(0,n.B)(e,"base-ui")}},52360:(e,t,r)=>{"use strict";r.d(t,{H:()=>u});var n=r(14343),i=r(36253),s=r(13634),o=r(59594),a=r(2978),l=r(81316);let u=n.forwardRef(function(e,t){let{render:r,className:n,style:u,disabled:c=!1,nativeButton:d=!0,...h}=e,f=(0,i.P)(),p=f.useState("open"),{getButtonProps:g,buttonRef:v}=(0,o.s)({disabled:c,native:d});return(0,s.o)("button",e,{state:{disabled:c},ref:[t,v],props:[{onClick:function(e){p&&f.setOpen(!1,(0,a.d)(l.SR,e.nativeEvent))}},h,g]})})},53373:(e,t,r)=>{"use strict";r.d(t,{AO:()=>f,Kr:()=>g,N:()=>E,Qp:()=>x,XJ:()=>y,Yu:()=>_,bp:()=>w,nq:()=>p,vF:()=>m,yV:()=>S});var n=r(10352),i=r(87190),s=r(3167),o=r(92751);function a(e){for(let t of Array.from(e.children))if("summary"===(0,n.mq)(t))return t;return null}function l(e){let t=e?(0,n.mq)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==t||null!=e.parentElement&&"details"===(0,n.mq)(e.parentElement)&&a(e.parentElement)===e)&&("details"!==t||null==a(e))&&("input"!==t||"hidden"!==e.type)}function u(e){if(!l(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=function(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let r=e.getRootNode();return(0,n.Ng)(r)?r.host:null}(t)){let r=t!==e,i="slot"===(0,n.mq)(t);if(t.hasAttribute("inert")||r&&"details"===(0,n.mq)(t)&&!t.open&&!function(e,t){let r=a(t);return!!r&&(e===r||(0,s.gR)(r,e))}(e,t)||t.hasAttribute("hidden")||!i&&!function(e,t){let r=(0,n.L9)(e);return t?"none"!==r.display:(0,o.J9)(e,r)}(t,r))return!1}return!0}function c(e){let t=e.tabIndex;if(t<0){let t=(0,n.mq)(e);if("details"===t||"audio"===t||"video"===t||(0,n.sb)(e)&&e.isContentEditable)return 0}return t}function d(e){return"input"!==(0,n.mq)(e)?null:"radio"===e.type&&""!==e.name?e:null}function h(e){if((0,n.sb)(e)&&"slot"===(0,n.mq)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,n.sb)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function f(e){return u(e)&&c(e)>=0}function p(e){let t=[];return!function e(t,r){h(t).forEach(t=>{l(t)&&r.push(t),e(t,r)})}(e,t),t.filter(u)}function g(e){let t=p(e);return t.filter(e=>c(e)>=0&&function(e,t){let r=d(e);if(!r)return!0;let n=t.find(e=>{let t=d(e);return t?.name===r.name&&t.form===r.form&&t.checked});return n?n===r:t.find(e=>{let t=d(e);return t?.name===r.name&&t.form===r.form})===r}(e,t))}function v(e,t){let r=g(e),n=r.length;if(0===n)return;let o=(0,s.RS)((0,i.R)(e)),a=r.indexOf(o);return r[-1===a?1===t?0:n-1:a+t]}function m(e){return v((0,i.R)(e).body,1)||e}function y(e){return v((0,i.R)(e).body,-1)||e}function b(e,t){if(!e)return null;let r=g((0,i.R)(e).body),n=r.length;if(0===n)return null;let s=r.indexOf(e);return -1===s?null:r[(s+t+n)%n]}function _(e){return b(e,1)}function w(e){return b(e,-1)}function x(e,t){let r=t||e.currentTarget,n=e.relatedTarget;return!n||!(0,s.gR)(r,n)}
1function E(e){g(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function S(e){let t=[];!function e(t,r,i){h(t).forEach(t=>{(0,n.sb)(t)&&t.matches(r)&&i.push(t),e(t,r,i)})}(e,"[data-tabindex]",t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}},53641:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r(84949),i=r(13634),s=r(67813);function o(e,t,{styles:r,transitionStatus:o,props:a,refs:l,hidden:u,inert:c=!1}){let d={...r};return c&&(d.pointerEvents="none"),(0,i.o)("div",e,{state:t,ref:l,props:[{role:"presentation",hidden:u,style:d},(0,s.d)(o),a],stateAttributesMapping:n.GW})}},54136:(e,t,r)=>{"use strict";r.d(t,{J:()=>s});var n=r(15383);r(14343);var i=r(58811);function s(e){let{className:t,...r}=e;return(0,n.jsx)("label",{"data-slot":"label",className:(0,i.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...r})}},54523:(e,t,r)=>{"use strict";r.d(t,{I:()=>o});var n=r(73858),i=r(16801),s=r(27870);function o(e,t,r,a,l=!0,u){let{registerFieldControl:c}=(0,s.V$)(),d=(0,i.j)(()=>Symbol());(0,n.g)(()=>{let n=d.current;if(!l)return void c(n,void 0);c(n,{controlRef:e,getValue:a,id:t,name:u,value:r})},[e,l,a,t,u,c,d,r]),(0,n.g)(()=>{let e=d.current;return()=>{c(e,void 0)}},[c,d])}},54658:(e,t,r)=>{"use strict";r.d(t,{K:()=>a});var n=r(81532),i=r(79834),s=r(68218);let o={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class a extends n.H{constructor(e){let{syncOnly:t,nested:r,onOpenChange:n,triggerElements:s,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:n,dataRef:{current:{}},events:(0,i.d)(),nested:r,triggerElements:s},o),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,s.Ev)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>
1{this.syncOpenEvent(e,t.event);let r={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",r)};setOpen=(e,t)=>{if(this.syncOnly)return void this.context.onOpenChange?.(e,t);this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}},55096:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(28743)}])},55336:e=>{e.exports={style:{fontFamily:"'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback'",fontStyle:"normal"},className:"__className_3c4d47",variable:"__variable_3c4d47"}},55630:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let n=r(56958).A.create({baseURL:"https://server.rackety.tv"}),i=null,s=0,o=async()=>{let e=Date.now();return i&&e-s<3e4||(i=Promise.resolve().then(r.bind(r,27058)).then(e=>{let{getSession:t}=e;return t()}).catch(()=>null),s=e),i};n.interceptors.request.use(async e=>{let t=e.headers||{};if(t.Authorization||t.authorization)return e;let r=await o(),n=null==r?void 0:r.accessToken;return n&&(e.headers={...t,Authorization:"Bearer ".concat(n)}),e});let a=n},56783:(e,t,r)=>{"use strict";r.d(t,{F:()=>o});var n=r(71623);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=n.$,o=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return s(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:o,defaultVariants:a}=t,l=Object.keys(o).map(e=>{let t=null==r?void 0:r[e],n=null==a?void 0:a[e];if(null===t)return null;let s=i(t)||i(n);return o[e][s]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return s(e,l,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...u}[t]):({...a,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},56958:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>to});var i,s,o,a={};function l(e,t){return function(){return e.apply(t,arguments)}}r.r(a),r.d(a,{hasBrowserEnv:()=>eh,hasStandardBrowserEnv:()=>ep,hasStandardBrowserWebWorkerEnv:()=>eg,navigator:()=>ef,origin:()=>ev});var u=r(44032);let{toString:c}=Object.prototype,{getPrototypeOf:d}=Object,{iterator:h,toStringTag:f}=Symbol,p=(e=>t=>{let r=c.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),g=e=>(e=e.toLowerCase(),t=>p(t)===e),v=e=>t=>typeof t===e,{isArray:m}=Array,y=v("undefined"),b=g("ArrayBuffer"),_=v("string"),w=v("function"),x=v("number"),E=e=>null!==e&&"object"==typeof e,S=e=>{if("object"!==p(e))return!1;let t=d(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(f in e)&&!(h in e)},R=g("Date"),k=g("File"),T=g("Blob"),A=g("FileList"),C=g("URLSearchParams"),[P,O,I,M]=["ReadableStream","Request","Response","Headers"].map(g);function L(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e)if("object"!=typeof e&&(e=[e]),m(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i,s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;for(n=0;n<o;n++)i=s[n],t.call(null,e[i],i,e)}}function N(e,t){let r;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,B=e=>!y(e)&&e!==j,F=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&d(Uint8Array)),D=g("HTMLFormElement"),H=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),U=g("RegExp"),$=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};L(r,(r,i)=>{let s;!1!==(s=t(r,i,e))&&(n[i]=s||r)}),Object.defineProperties(e,n)},z=g("AsyncFunction"),q=(i="function"==typeof setImmediate,s=w(j.postMessage),i?setImmediate:s?((e,t)=>(j.addEventListener("message",({source:r,data:n})=>{r===j&&n===e&&t.length&&t.shift()()},!1),r=>{t.push(r),j.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),V="undefined"!=typeof queueMicrotask?queueMicrotask.bind(j):void 0!==u&&u.nextTick||q,G={isArray:m,isArrayBuffer:b,isBuffer:function(e){return null!==e&&!y(e)&&null!==e.constructor&&!y(e.constructor)&&w(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||w(e.append)&&("formdata"===(t=p(e))||"object"===t&&w(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&b(e.buffer)},isString:_,isNumber:x,isBoolean:e=>!0===e||!1===e,isObject:E,isPlainObject:S,isReadableStream:P,isRequest:O,isResponse:I,isHeaders:M,isUndefined:y,isDate:R,isFile:k,isBlob:T,isRegExp:U,isFunction:w,isStream:e=>E(e)&&w(e.pipe),isURLSearchParams:C,isTypedArray:F,isFileList:A,forEach:L,merge:function e(){let{caseless:t}=B(this)&&this||{},r={},n=(n,i)=>{let s=t&&N(r,i)||i;S(r[s])&&S(n)?r[s]=e(r[s],n):S(n)?r[s]=e({},n):m(n)?r[s]=n.slice():r[s]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&L(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(L(t,(t,n)=>{r&&w(t)?e[n]=l(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,s,o,a={};if(t=t||{},null==e)return t;do{for(s=(i=Object.getOwnPropertyNames(e)).length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=!1!==r&&d(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:p,kindOfTest:g,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(m(e))return e;let t=e.length;if(!x(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>
1{let r,n=(e&&e[h]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:D,hasOwnProperty:H,hasOwnProp:H,reduceDescriptors:$,freezeMethods:e=>{$(e,(t,r)=>{if(w(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(w(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(m(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:N,global:j,isContextDefined:B,isSpecCompliantForm:function(e){return!!(e&&w(e.append)&&"FormData"===e[f]&&e[h])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(E(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;let i=m(e)?[]:{};return L(e,(e,t)=>{let s=r(e,n+1);y(s)||(i[t]=s)}),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:z,isThenable:e=>e&&(E(e)||w(e))&&w(e.then)&&w(e.catch),setImmediate:q,asap:V,isIterable:e=>null!=e&&w(e[h])};function W(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}G.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});let K=W.prototype,Y={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Y[e]={value:e}}),Object.defineProperties(W,Y),Object.defineProperty(K,"isAxiosError",{value:!0}),W.from=(e,t,r,n,i,s)=>{let o=Object.create(K);return G.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),W.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};var X=r(72076).hp;function J(e){return G.isPlainObject(e)||G.isArray(e)}function Z(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function Q(e,t,r){return e?e.concat(t).map(function(e,t){return e=Z(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let ee=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)}),et=function(e,t,r){if(!G.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=G.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!G.isUndefined(t[e])})).metaTokens,i=r.visitor||u,s=r.dots,o=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(i))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(G.isBoolean(e))return e.toString();if(!a&&G.isBlob(e))throw new W("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):X.from(e):e}function u(e,r,i){let a=e;if(e&&!i&&"object"==typeof e)if(G.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if(G.isArray(e)&&(u=e,G.isArray(u)&&!u.some(J))||(G.isFileList(e)||G.endsWith(r,"[]"))&&(a=G.toArray(e)))return r=Z(r),a.forEach(function(e,n){G.isUndefined(e)||null===e||t.append(!0===o?Q([r],n,s):null===o?r:r+"[]",l(e))}),!1}return!!J(e)||(t.append(Q(i,r,s),l(e)),!1)}let c=[],d=Object.assign(ee,{defaultVisitor:u,convertValue:l,isVisitable:J});if(!G.isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!G.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),G.forEach(r,function(r,s){!0===(!(G.isUndefined(r)||null===r)&&i.call(t,r,G.isString(s)?s.trim():s,n,d))&&e(r,n?n.concat(s):[s])}),c.pop()}}(e),t};
1function er(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function en(e,t){this._pairs=[],e&&et(e,this,t)}let ei=en.prototype;function es(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function eo(e,t,r){let n;if(!t)return e;let i=r&&r.encode||es;G.isFunction(r)&&(r={serialize:r});let s=r&&r.serialize;if(n=s?s(t,r):G.isURLSearchParams(t)?t.toString():new en(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}ei.append=function(e,t){this._pairs.push([e,t])},ei.toString=function(e){let t=e?function(t){return e.call(this,t,er)}:er;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ea{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,function(t){null!==t&&e(t)})}}let el={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eu="undefined"!=typeof URLSearchParams?URLSearchParams:en,ec="undefined"!=typeof FormData?FormData:null,ed="undefined"!=typeof Blob?Blob:null,eh="undefined"!=typeof window&&"undefined"!=typeof document,ef="object"==typeof navigator&&navigator||void 0,ep=eh&&(!ef||0>["ReactNative","NativeScript","NS"].indexOf(ef.product)),eg="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ev=eh&&window.location.href||"http://localhost",em={...a,isBrowser:!0,classes:{URLSearchParams:eu,FormData:ec,Blob:ed},protocols:["http","https","file","blob","url","data"]},ey=function(e){if(G.isFormData(e)&&G.isFunction(e.entries)){let t={};return G.forEachEntry(e,(e,r)=>{!function e(t,r,n,i){let s=t[i++];if("__proto__"===s)return!0;let o=Number.isFinite(+s),a=i>=t.length;return(s=!s&&G.isArray(n)?n.length:s,a)?G.hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r:(n[s]&&G.isObject(n[s])||(n[s]=[]),e(t,r,n[s],i)&&G.isArray(n[s])&&(n[s]=function(e){let t,r,n={},i=Object.keys(e),s=i.length;for(t=0;t<s;t++)n[r=i[t]]=e[r];return n}(n[s]))),!o}(G.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null},eb={transitional:el,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=G.isObject(e);if(s&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return i?JSON.stringify(ey(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1){var o,a;return(o=e,a=this.formSerializer,et(o,new em.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return em.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},a))).toString()}if((r=G.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return et(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(s||i){t.setContentType("application/json",!1);var l=e;if(G.isString(l))try{return(0,JSON.parse)(l),G.trim(l)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(l)}return e}],transformResponse:[function(e){let t=this.transitional||eb.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw W.from(e,W.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:em.classes.FormData,Blob:em.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{eb.headers[e]={}});let e_=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ew=Symbol("internals");function ex(e){return e&&String(e).trim().toLowerCase()}function eE(e){return!1===e||null==e?e:G.isArray(e)?e.map(eE):String(e)}function eS(e,t,r,n,i){if(G.isFunction(n))return n.call(this,t,r);if(i&&(t=r),G.isString(t)){if(G.isString(n))return -1!==t.indexOf(n);if(G.isRegExp(n))return n.test(t)}}class eR{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=ex(t);if(!i)throw Error("header name must be a non-empty string");let s=G.findKey(n,i);s&&void 0!==n[s]&&!0!==r&&(void 0!==r||!1===n[s])||(n[s||t]=eE(e))}let s=(e,t)=>G.forEach(e,(e,r)=>i(e,r,t));if(G.isPlainObject(e)||e instanceof this.constructor)s(e,t);else{let n;if(G.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim())))s((e=>{let t,r,n,i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&e_[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i})(e),t);else if(G.isObject(e)&&G.isIterable(e)){let r={},n,i;for(let t of e){if(!G.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[i=t[0]]=(n=r[i])?G.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(r,t)}else null!=e&&i(t,e,r)}return this}get(e,t){if(e=ex(e)){let r=G.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),n=/([^\s,;
1=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}if(G.isFunction(t))return t.call(this,e,r);if(G.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ex(e)){let r=G.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||eS(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=ex(e)){let i=G.findKey(r,e);i&&(!t||eS(r,r[i],i,t))&&(delete r[i],n=!0)}}return G.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||eS(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return G.forEach(this,(n,i)=>{let s=G.findKey(r,i);if(s){t[s]=eE(n),delete t[i];return}let o=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();o!==i&&delete t[i],t[o]=eE(n),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return G.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&G.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[ew]=this[ew]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=ex(e);if(!t[n]){let i=G.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(r,t+i,{value:function(r,n,i){return this[t].call(this,e,r,n,i)},configurable:!0})}),t[n]=!0}}return G.isArray(e)?e.forEach(n):n(e),this}}function ek(e,t){let r=this||eb,n=t||r,i=eR.from(n.headers),s=n.data;return G.forEach(e,function(e){s=e.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function eT(e){return!!(e&&e.__CANCEL__)}function eA(e,t,r){W.call(this,null==e?"canceled":e,W.ERR_CANCELED,t,r),this.name="CanceledError"}function eC(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}eR.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(eR.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),G.freezeMethods(eR),G.inherits(eA,W,{__CANCEL__:!0});let eP=function(e,t){let r,n=Array(e=e||10),i=Array(e),s=0,o=0;return t=void 0!==t?t:1e3,function(a){let l=Date.now(),u=i[o];r||(r=l),n[s]=a,i[s]=l;let c=o,d=0;for(;c!==s;)d+=n[c++],c%=e;if((s=(s+1)%e)===o&&(o=(o+1)%e),l-r<t)return;let h=u&&l-u;return h?Math.round(1e3*d/h):void 0}},eO=function(e,t){let r,n,i=0,s=1e3/t,o=(t,s=Date.now())=>{i=s,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),a=t-i;a>=s?o(e,t):(r=e,n||(n=setTimeout(()=>{n=null,o(r)},s-a)))},()=>r&&o(r)]},eI=(e,t,r=3)=>{let n=0,i=eP(50,250);return eO(r=>{let s=r.loaded,o=r.lengthComputable?r.total:void 0,a=s-n,l=i(a);n=s,e({loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&s<=o?(o-s)/l:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})},r)},eM=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},eL=e=>(...t)=>G.asap(()=>e(...t)),eN=em.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,em.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(em.origin),em.navigator&&/(msie|trident)/i.test(em.navigator.userAgent)):()=>!0,ej=em.hasStandardBrowserEnv?{write(e,t,r,n,i,s){let o=[e+"="+encodeURIComponent(t)];G.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),G.isString(n)&&o.push("path="+n),G.isString(i)&&o.push("domain="+i),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function eB(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||!1==r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eF=e=>e instanceof eR?{...e}:e;function eD(e,t){t=t||{};let r={};function n(e,t,r,n){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:n},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function i(e,t,r,i){return G.isUndefined(t)?G.isUndefined(e)?void 0:n(void 0,e,r,i):n(e,t,r,i)}function s(e,t){if(!G.isUndefined(t))return n(void 0,t)}function o(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,i,s){return s in t?n(r,i):s in e?n(void 0,r):void 0}let l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBo
1dyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t,r)=>i(eF(e),eF(t),r,!0)};return G.forEach(Object.keys(Object.assign({},e,t)),function(n){let s=l[n]||i,o=s(e[n],t[n],n);G.isUndefined(o)&&s!==a||(r[n]=o)}),r}let eH=e=>{let t,r=eD({},e),{data:n,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:l}=r;if(r.headers=a=eR.from(a),r.url=eo(eB(r.baseURL,r.url,r.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),G.isFormData(n)){if(em.hasStandardBrowserEnv||em.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(t=a.getContentType())){let[e,...r]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...r].join("; "))}}if(em.hasStandardBrowserEnv&&(i&&G.isFunction(i)&&(i=i(r)),i||!1!==i&&eN(r.url))){let e=s&&o&&ej.read(o);e&&a.set(s,e)}return r},eU="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,i,s,o,a,l=eH(e),u=l.data,c=eR.from(l.headers).normalize(),{responseType:d,onUploadProgress:h,onDownloadProgress:f}=l;function p(){o&&o(),a&&a(),l.cancelToken&&l.cancelToken.unsubscribe(n),l.signal&&l.signal.removeEventListener("abort",n)}let g=new XMLHttpRequest;function v(){if(!g)return;let n=eR.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());eC(function(e){t(e),p()},function(e){r(e),p()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(l.method.toUpperCase(),l.url,!0),g.timeout=l.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(v)},g.onabort=function(){g&&(r(new W("Request aborted",W.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",n=l.transitional||el;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),r(new W(t,n.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,g)),g=null},void 0===u&&c.setContentType(null),"setRequestHeader"in g&&G.forEach(c.toJSON(),function(e,t){g.setRequestHeader(t,e)}),G.isUndefined(l.withCredentials)||(g.withCredentials=!!l.withCredentials),d&&"json"!==d&&(g.responseType=l.responseType),f&&([s,a]=eI(f,!0),g.addEventListener("progress",s)),h&&g.upload&&([i,o]=eI(h),g.upload.addEventListener("progress",i),g.upload.addEventListener("loadend",o)),(l.cancelToken||l.signal)&&(n=t=>{g&&(r(!t||t.type?new eA(null,e,g):t),g.abort(),g=null)},l.cancelToken&&l.cancelToken.subscribe(n),l.signal&&(l.signal.aborted?n():l.signal.addEventListener("abort",n)));let m=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l.url);if(m&&-1===em.protocols.indexOf(m))return void r(new W("Unsupported protocol "+m+":",W.ERR_BAD_REQUEST,e));g.send(u||null)})},e$=function*(e,t){let r,n=e.byteLength;if(!t||n<t)return void(yield e);let i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},ez=async function*(e,t){for await(let r of eq(e))yield*e$(r,t)},eq=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},eV=(e,t,r,n)=>{let i,s=ez(e,t),o=0,a=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await s.next();if(t){a(),e.close();return}let i=n.byteLength;if(r){let e=o+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),s.return())},{highWaterMark:2})},eG="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,eW=eG&&"function"==typeof ReadableStream,eK=eG&&("function"==typeof TextEncoder?(n=new TextEncoder,e=>n.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),eY=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},eX=eW&&eY(()=>
1{let e=!1,t=new Request(em.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),eJ=eW&&eY(()=>G.isReadableStream(new Response("").body)),eZ={stream:eJ&&(e=>e.body)};eG&&(o=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{eZ[e]||(eZ[e]=G.isFunction(o[e])?t=>t[e]():(t,r)=>{throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,r)})}));let eQ=async e=>{if(null==e)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e)){let t=new Request(em.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e))?(await eK(e)).byteLength:void 0},e0=async(e,t)=>{let r=G.toFiniteNumber(e.getContentLength());return null==r?eQ(t):r},e1={http:null,xhr:eU,fetch:eG&&(async e=>{let t,r,{url:n,method:i,data:s,signal:o,cancelToken:a,timeout:l,onDownloadProgress:u,onUploadProgress:c,responseType:d,headers:h,withCredentials:f="same-origin",fetchOptions:p}=eH(e);d=d?(d+"").toLowerCase():"text";let g=((e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof W?t:new eA(t instanceof Error?t.message:t))}},s=t&&setTimeout(()=>{s=null,i(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t),o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:a}=n;return a.unsubscribe=()=>G.asap(o),a}})([o,a&&a.toAbortSignal()],l),v=g&&g.unsubscribe&&(()=>{g.unsubscribe()});try{if(c&&eX&&"get"!==i&&"head"!==i&&0!==(r=await e0(h,s))){let e,t=new Request(n,{method:"POST",body:s,duplex:"half"});if(G.isFormData(s)&&(e=t.headers.get("content-type"))&&h.setContentType(e),t.body){let[e,n]=eM(r,eI(eL(c)));s=eV(t.body,65536,e,n)}}G.isString(f)||(f=f?"include":"omit");let o="credentials"in Request.prototype;t=new Request(n,{...p,signal:g,method:i.toUpperCase(),headers:h.normalize().toJSON(),body:s,duplex:"half",credentials:o?f:void 0});let a=await fetch(t,p),l=eJ&&("stream"===d||"response"===d);if(eJ&&(u||l&&v)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=a[t]});let t=G.toFiniteNumber(a.headers.get("content-length")),[r,n]=u&&eM(t,eI(eL(u),!0))||[];a=new Response(eV(a.body,65536,r,()=>{n&&n(),v&&v()}),e)}d=d||"text";let m=await eZ[G.findKey(eZ,d)||"text"](a,e);return!l&&v&&v(),await new Promise((r,n)=>{eC(r,n,{data:m,headers:eR.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:t})})}catch(r){if(v&&v(),r&&"TypeError"===r.name&&/Load failed|fetch/i.test(r.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,e,t),{cause:r.cause||r});throw W.from(r,r&&r.code,e,t)}})};G.forEach(e1,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e2=e=>`- ${e}`,e3=e=>G.isFunction(e)||null===e||!1===e,e4={getAdapter:e=>{let t,r,{length:n}=e=G.isArray(e)?e:[e],i={};for(let s=0;s<n;s++){let n;if(r=t=e[s],!e3(t)&&void 0===(r=e1[(n=String(t)).toLowerCase()]))throw new W(`Unknown adapter '${n}'`);if(r)break;i[n||"#"+s]=r}if(!r){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new W("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(e2).join("\n"):" "+e2(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r}};function e5(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eA(null,e)}function e8(e){return e5(e),e.headers=eR.from(e.headers),e.data=ek.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e4.getAdapter(e.adapter||eb.adapter)(e).then(function(t){return e5(e),t.data=ek.call(e,e.transformResponse,t),t.headers=eR.from(t.headers),t},function(t){return!eT(t)&&(e5(e),t&&t.response&&(t.response.data=ek.call(e,e.transformResponse,t.response),t.response.headers=eR.from(t.response.headers))),Promise.reject(t)})}let e6="1.10.0",e9={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e9[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let e7={};e9.transitional=function(e,t,r){function n(e,t){return"[Axios v"+e6+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,s)=>{if(!1===e)throw new W(n(i," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!e7[i]&&(e7[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,s)}},e9.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}
1`),!0)};let te={assertOptions:function(e,t,r){if("object"!=typeof e)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let s=n[i],o=t[s];if(o){let t=e[s],r=void 0===t||o(t,s,e);if(!0!==r)throw new W("option "+s+" must be "+r,W.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new W("Unknown option "+s,W.ERR_BAD_OPTION)}},validators:e9},tt=te.validators;class tr{constructor(e){this.defaults=e||{},this.interceptors={request:new ea,response:new ea}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:s,headers:o}=t=eD(this.defaults,t);void 0!==i&&te.assertOptions(i,{silentJSONParsing:tt.transitional(tt.boolean),forcedJSONParsing:tt.transitional(tt.boolean),clarifyTimeoutError:tt.transitional(tt.boolean)},!1),null!=s&&(G.isFunction(s)?t.paramsSerializer={serialize:s}:te.assertOptions(s,{encode:tt.function,serialize:tt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),te.assertOptions(t,{baseUrl:tt.spelling("baseURL"),withXsrfToken:tt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&G.merge(o.common,o[t.method]);o&&G.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=eR.concat(a,o);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[e8.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,c),n=e.length,r=Promise.resolve(t);d<n;)r=r.then(e[d++],e[d++]);return r}n=l.length;let h=t;for(d=0;d<n;){let e=l[d++],t=l[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{r=e8.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,n=c.length;d<n;)r=r.then(c[d++],c[d++]);return r}getUri(e){return eo(eB((e=eD(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(e){tr.prototype[e]=function(t,r){return this.request(eD(r||{},{method:e,url:t,data:(r||{}).data}))}}),G.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,i){return this.request(eD(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tr.prototype[e]=t(),tr.prototype[e+"Form"]=t(!0)});class tn{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new eA(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tn(function(t){e=t}),cancel:e}}}let ti={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
1alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ti).forEach(([e,t])=>{ti[t]=e});let ts=function e(t){let r=new tr(t),n=l(tr.prototype.request,r);return G.extend(n,tr.prototype,r,{allOwnKeys:!0}),G.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(eD(t,r))},n}(eb);ts.Axios=tr,ts.CanceledError=eA,ts.CancelToken=tn,ts.isCancel=eT,ts.VERSION=e6,ts.toFormData=et,ts.AxiosError=W,ts.Cancel=ts.CanceledError,ts.all=function(e){return Promise.all(e)},ts.spread=function(e){return function(t){return e.apply(null,t)}},ts.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},ts.mergeConfig=eD,ts.AxiosHeaders=eR,ts.formToJSON=e=>ey(G.isHTMLForm(e)?new FormData(e):e),ts.getAdapter=e4.getAdapter,ts.HttpStatusCode=ti,ts.default=ts;let to=ts},57193:(e,t,r)=>{"use strict";function n(e,t){let r=[],n=e.find(e=>e.id===t)?.parentId;for(;n;){let t=e.find(e=>e.id===n);n=t?.parentId,t&&(r=r.concat(t))}return r}r.d(t,{$4:()=>n,CM:()=>function e(t,r,n=!0){return t.filter(e=>e.parentId===r).flatMap(r=>[...!n||r.context?.open?[r]:[],...e(t,r.id,n)])}})},57435:(e,t,r)=>{"use strict";r.d(t,{G:()=>o});var n=r(29265);let i={[n.e]:""},s={[n.V]:""},o={transitionStatus:e=>"starting"===e?i:"ending"===e?s:null}},57454:(e,t,r)=>{"use strict";function n(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}r.d(t,{q:()=>n})},57912:(e,t,r)=>{"use strict";r.d(t,{Ai:()=>d,DI:()=>o,Gu:()=>u,Q0:()=>c,Vz:()=>l,jd:()=>i,kJ:()=>a,tl:()=>s});var n=r(79143);let i=(e,t)=>Object.is(e,t);function s(e,t,r){return null==e||null==t?Object.is(e,t):r(e,t)}function o(e,t,r){return Array.isArray(e)&&Array.isArray(t)?!(0,n.B)(e,t,(e,t)=>s(e,t,r)):e!==t}function a(e,t,r){return!!e&&e.some(e=>void 0!==e&&s(t,e,r))}function l(e,t,r){return e?e.findIndex(e=>void 0!==e&&s(e,t,r)):-1}function u(e,t,r,n){let s=n&&Array.isArray(t)?e.findIndex(function(e,t){if(t!==i)return r=>a(e,r,t);let r=new Set(e);return r.delete(void 0),t=>r.has(t)&&(0!==t||e.some(e=>Object.is(t,e)))}(t,r)):l(e,t,r);return -1===s?null:s}function c(e,t,r,n,i,s){return a(n,t,i)?null!=s&&e>s&&a(n,r[s],i)?s:e:e===s?u(r,n,i,!0):s}function d(e,t,r){return e.filter(e=>!s(t,e,r))}},58811:(e,t,r)=>{"use strict";r.d(t,{cn:()=>j});let n=(e,t=0)=>{let r=new Int32Array(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n)-48-t;return r},i=e=>{let t=new Int32Array(e.length+1);for(let r=0;r<e.length;r++)t[r+1]=t[r]+e[r];return t},s=e=>{let t=new Int32Array(e.length),r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n)-48;r+=i>>>1^-(1&i),t[n]=r}return t},o=i(n("E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010")),a=i(n(":11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3")),l=(()=>{let e=o.length-1,t=new Int32Array(e);for(let r=e-1;r>=0;r--){let e=1,n=r+1;for(let i=o[r];i<o[r+1];i++)e+=t[n],n+=t[n];t[r]=e}let r=new Int32Array(o[e]),n=0;for(let i=0;i<e;i++){let e=i+1;for(let s=o[i];s<o[i+1];s++)r[n++]=e,e+=t[e]}return r})(),u=n("02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000\x85ŏ000\x88
10000ŏ000000\x900000\x970000000000000000000000000000000000000000000000000000\xcb000000000000000000000\xde000000000000000000\xf00000000\xf80\xf9\xfa\xfb\xfc\xfd\xfe\xffĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000",1),c=i(n("1233333593464636351265367151576")),d=n("93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0324325853;D>E?3257D>03258432585:0325B:;0328B:032"),h=n("012123445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EJK4444::EJ4444441691;644444114244444:;L6666555555555555555999666664444444444444444444444226?6:66644M9N?D:111::::6DJ199"),f=s("0202002020020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200"),p=(()=>{let e=new Int32Array(319).fill(-1),t=s("02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222"),r=s("02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222");for(let n=0;n<t.length;n++)e[t[n]]=r[n];return e})(),g="container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize  -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-p
1an- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top|none | auto square video| auto fr max min px| auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover| gradient-to-b gradient-to-bl gradient-to-br gradient-to-l gradient-to-r gradient-to-t gradient-to-tl gradient-to-tr none|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform".split("|").map(e=>{let t=e.split(" "),r=t.shift();for(let e=0;e<t.length;e++)t[e]=r+t[e];return t}),v=s("0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422"),m=s("ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>ʶ22ʷʺʷ2ʸʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚ\xc4ȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ\xab\xaeĝ822ĔđĔ2ē2222622"),y=s("02222222222222222222222222222222222222222222222222222222222222222203062222222222IL2200IL021042222]`222IL0gj2e50n2222U00X202[^2y0000560|{~\x83\x8622\x89\x8c\x8b>22|22222222222G000q\x86OVI00000}\x9a2\x9b>40000\x8c\x9dB00000I\xa8\xad000\xb000000000000000\x8d021Q\xb2\xb100\xb4\x93000000000000000000000\x96222\x9bHGHa5\xbe222\xc36\xc02222\xcd\xd0000\xad\xb02\xb1"),b=new Int32Array(991
1),_=new Int32Array(991),w=new Int32Array(991),x="",E=new Int32Array(1030);{let e=new Map,t=0,r=0;for(let n=0;n<v.length;n++)for(let i of g[y[n]]){let s=e.get(i);void 0===s&&(s=t++,e.set(i,s),E[2*s]=x.length,E[2*s+1]=i.length,x+=i),b[r]=v[n],_[r]=m[n],w[r]=s,r++}}let S=s("0b2N:222@R>F@286\xa62@H2D266226FB22B2>BD\\6N22222Z222D222p"),R=i(n("1::22222432:222:22:22>222222:22:2221322511111311111114")),k=s("2\x8a4A;33N=C@H4A;33N=C@<2;363@QTQʰ222ˉ\xbaŴŽ2R2=18cƴ\xc5Ň\x9c\xdc\xdbŲǝȈ:ħ25=11D3A@216Er25;11B3?<438Cn9@7=<8192>2E121@9@EHE@9>2T25511<398216=V25511<398216=\x84ƧNž2Đ\xe5242L222290000f22500ɛ000ǘ222"),T=n("ij"),A=n("\x97");var C={GROUP_COUNT:384,customValidatorNames:[],edgeStart:o,labelStart:a,labelText:"@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom",edgeTarget:l,nodeGroup:u,nodeVlist:p,vlistPat:c,vlistOps:d,vlistRef:h,vlistGroup:f,litAnchor:b,litGroup:_,litPool:w,poolOffsets:E,poolText:x,adjGid:S,adjStart:R,adjTgt:k,patGid:T,patTgt:A,postfixLookupGroups:n("1"),orderSensitiveModifiers:"* ** after backdrop before details-content file first-letter first-line marker placeholder selection"};let P="line"in Error(),O=(e,t,r)=>{let n=0x811c9dc5;for(let i=t;i<r;i++)n=Math.imul(n^e.charCodeAt(i),0x1000193);return n},I=(e,t,r)=>{let n=r-t,i=Math.imul(n,0x9e3779b1)^e.charCodeAt(t);if(n>3){let s=n>>2,o=n>>1;i=Math.imul((i=Math.imul(i^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+s),0x85ebca6b))^e.charCodeAt(t+o)<<8^e.charCodeAt(t+o+s)<<16^e.charCodeAt(r-3),0xc2b2ae35)^(e.charCodeAt(r-2)<<8^e.charCodeAt(r-1)<<16);for(let n=t+3,s=r-4;n<t+8&&n<s;n++,s--)i=Math.imul(i^e.charCodeAt(n)^e.charCodeAt(s)<<8,0x1000193)}return i^i>>>15},M=(e,t)=>{if(!e)return"";if("string"==typeof e)return e;let r="";if("number"==typeof e.length&&(!t||Array.isArray(e))){for(let n=0;n<e.length;n++){let i=e[n];if(!i)continue;let s="string"==typeof i?i:M(i,t);s&&(r&&(r+=" "),r+=s)}return r}if(t){if("number"==typeof e)return""+e;if("object"==typeof e)for(let t in e)e[t]&&(r&&(r+=" "),r+=t)}return r},L=function(){return((e,t)=>{let r="";for(let n=0;n<e.length;n++){let i=e[n];if(!i)continue;let s="string"==typeof i?i:M(i,t);s&&(r&&(r+=" "),r+=s)}return r})(arguments,!1)},N=((e,t,r={})=>{let{GROUP_COUNT:n,edgeStart:i,labelStart:s,labelText:o,edgeTarget:a,nodeGroup:l,nodeVlist:u,vlistPat:c,vlistOps:d,vlistRef:h,vlistGroup:f,litAnchor:p,litGroup:g,litPool:v,poolOffsets:m,poolText:y,adjGid:b,adjStart:_,adjTgt:w,patGid:x,patTgt:E,postfixLookupGroups:S,customValidatorNames:R,orderSensitiveModifiers:k}=e,T=new Int32Array(n).fill(-1);for(let e=0;e<b.length;e++)T[b[e]]=e;let A=0;for(let e=0;e+1<_.length;e++){let t=_[e+1]-_[e];t>A&&(A=t)}let C=32;for(;C<2*(1+A+x.length);)C<<=1;let M=new Int32Array(h.length+1);for(let e=0;e<h.length;e++)M[e+1]=M[e]+c[h[e]+1]-c[h[e]];let N=new Uint8Array(n);for(let e=0;e<S.length;e++)N[S[e]]=1;let j=new Uint8Array(i.length-1),B=0,F=!0;for(let e=0;e<p.length;e++){j[p[e]]=1;let t=m[2*v[e]+1];t>B&&(B=t);let r=y.charCodeAt(m[2*v[e]]);(91===r||40===r)&&(F=!1)}let D=1;for(;D<2*p.length;)D<<=1;let H=new Int32Array(D).fill(-1);for(let e=0;e<p.length;e++){let t=m[2*v[e]],r=(O(y,t,t+m[2*v[e]+1])^Math.imul(p[e],0x9e3779b1))&D-1;for(;-1!==H[r];)r=r+1&D-1;H[r]=e}let U=(e,t,r,n)=>{let i=(O(t,r,n)^Math.imul(e,0x9e3779b1))&D-1,s=n-r;for(;;){let n=H[i];if(-1===n)return -1;if(p[n]===e&&m[2*v[n]+1]===s){let e=m[2*v[n]],i=!0;for(let n=0;n<s;n++)if(y.charCodeAt(e+n)!==t.charCodeAt(r+n)){i=!1;break}if(i)return g[n]}i=i+1&D-1}},$=r.cacheSize??8192,z=r.prefix??e.prefix??"",q=""===z?"":z+":",V=q.length,G=(R??[]).map(e=>{let r=t&&t[e];if(!r)throw Error("cn: missing validator "+e);return r}),W=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,K=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Y=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,X=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,J=0,Z=-1,Q=-1,ee=-1,et=-1,er=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||95===e,en=e=>/\s/.test(String.fromCharCode(e)),ei=(e,t,r)=>{if(J=0,Z=-1,r-t<3)return;let n=e.charCodeAt(t),i=e.charCodeAt(r-1);if(91===n&&93===i)J=1;else{if(40!==n||41!==i)return;J=2}ee=t+1,et=r-1;let s=t+1;if(er(e.charCodeAt(s))){for(s++;s<r-1;){let t=e.charCodeAt(s);if(!er(t)&&45!==t)break;s++}s<r-2&&58===e.charCodeAt(s)&&(Z=t+1,Q=s,ee=s+1)}},es=(e,t,r,n)=>{if(r-t!==n.length)return!1;for(let r=0;r<n.length;r++)if(e.charCodeAt(t+r)!==n.charCodeAt(r))return!1;return!0},eo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ea=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,el=e=>!!e&&!Number.isNaN(Number(e)),eu=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],ec="length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight".split("|").map(e=>e.split(" ")),ed=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],eh=(e,t,r,n)=>{if(e>=10){if(e>=25)return G[e-25](t.slice(r,n));let i=e-10;if(J!==eu[i])return!1;if(Z>=0){for(let e of ec[i])if(es(t,Z,Q,e))return!0;return!1}switch(ed[i]){case 0:return!1;case 1:return!0;case 2:{let e=t.slice(ee,et);return W.test(e)&&!K.test(e)}case 3:return el(t.slice(ee,et));case 4:return X.test(t.slice(ee,et));default:return Y.test(t.slice(ee,et))}}switch(e){case 0:return!0;case 1:return 0===J;case 2:return 1===J;case 3:return 2===J;case 4:return eo.test(t.slice(r,n));case 5:return el(t.slice(r,n));case 6:{let e=t.slice(r,n);return!!e&&Number.isInteger(Number(e))}case 7:return n>r&&37===t.charCodeAt(n-1)&&el(t.slice(r,n-1));case 8:return ea.test(t.slice(r,n));default:return((e,t,r)=>{if(r-t<11||!es(e,t,t+10,"@container"))return!1;if(47===e.charCodeAt(t+10))return r-t>=12;let n=e.charCodeAt(t+11);return 115===n&&r-t>=17&&es(e,t+10,t+16,"-size/")||110===n&&r-t>=19&&es(e,t+10,t+18,"-normal/")})(t,r,n)}},ef=new Set("string"==typeof k?k.split(" "):k),ep=(e,t,r,n,i,s)=>{let o=O(t,r,n)^0x9e3779b9*!!i,a=e.get(o);if(void 0!==a)e:for(let e=0;e<a.length;e++){let s=a[e];if(s.imp===i&&s.k.length===n-r){for(let e=0;e<s.k.length;
1e++)if(s.k.charCodeAt(e)!==t.charCodeAt(r+e))continue e;return s.id}}else e.set(o,a=[]);let l=t.slice(r,n),u=s(l);return a.push({k:l,imp:i,id:u}),u},eg=new Map,ev=new Map,em=2,ey=(e,t)=>{let r=[],n=0,i=0,s=0;for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);0===n&&0===i&&58===o?(r.push(e.slice(s,t)),s=t+1):91===o?n++:93===o?n--:40===o?i++:41===o&&i--}r.push(e.slice(s));let o=r[0];if(r.length>1){let e=[],t=[];for(let n of r)91===n.charCodeAt(0)||ef.has(n)?(t.length&&(e.push(...t.sort()),t=[]),e.push(n)):t.push(n);t.length&&e.push(...t.sort()),o=e.join(":")}let a=t?o+" !":o,l=ev.get(a);return void 0===l&&ev.set(a,l=em++),l},eb=new Map,e_=n,ew=n+4096,ex=()=>e_++,eE=new Int32Array(8192),eS=Array(8192).fill(null),eR=new Int32Array(8192),ek=new Int32Array(8192),eT=new Uint8Array(8192),eA=0,eC=(e,t,r,n,i,s,o,a)=>{let l=e;if(null!==eS[e])if(null===eS[1|e])l=1|e;else{if((3&eA++)!=0)return;l=e|eA>>2&1}eS[l]=t.slice(r,n),eE[l]=i,eR[l]=s,ek[l]=o,eT[l]=a},eP=()=>eS.fill(null),eO=256,eI=[new Int32Array(256),new Int32Array(eO),new Int32Array(eO),new Int32Array(eO)],[eM,eL,eN,ej]=eI,eB=new Uint8Array(eO),eF=new Uint8Array(eO),eD=()=>{eO*=2,eI=eI.map(e=>{let t=new Int32Array(eO);return t.set(e),t}),[eM,eL,eN,ej]=eI;let e=new Uint8Array(eO);e.set(eB),eB=e,eF=new Uint8Array(eO)},eH=64,eU=new Int32Array(64),e$=new Int32Array(eH),ez=new Int32Array(n),eq=2048,eV=21,eG=new Float64Array(2048),eW=new Int32Array(eq),eK=0,eY=(e,t)=>{if(0===e&&t<n)return ez[t]===eK?1:(ez[t]=eK,0);let r=2097152*e+t+1,i=Math.imul(r,0x9e3779b1)>>>eV;for(;eW[i]===eK;){if(eG[i]===r)return 1;i=i+1&eq-1}return eG[i]=r,eW[i]=eK,0},eX=(e,t,r,n,i)=>{if(r-t>=2&&91===e.charCodeAt(t)&&93===e.charCodeAt(r-1)){let n=-1;for(let i=t+1;i<r-1;i++)if(58===e.charCodeAt(i)){n=i;break}return -1===n||n===t+1?-1:ep(eb,e,t+1,n,0,ex)}if(n>=0&&l[n]>=0)return l[n];for(let t=i-1;t>=0;t--){let n=e$[t];if(n>r)continue;let i=eU[t],s=r-n;if(1===j[i]&&s>0&&s<=B){let t=e.charCodeAt(n);if(!1===F||91!==t&&40!==t){let t=U(i,e,n,r);if(t>=0)return t}}let o=u[i];if(o<0)continue;let a=h[o],l=c[a],p=c[a+1];if(l===p)continue;ei(e,n,r);let g=M[o]-l;for(let t=l;t<p;t++)if(eh(d[t],e,n,r))return f[g+t]}return -1},eJ=e=>{let t=e.length,r=0,l=0,c=!1;(em>4096||eg.size>4096)&&(eg=new Map,ev=new Map,em=2,eP()),e_>ew&&(eb=new Map,e_=n,eP());let d=0;for(;d<t;){let h,f=e.charCodeAt(d);if(32===f||f>=9&&f<=13||f>=160&&en(f)){32!==f&&(c=!0),d++;continue}let p=d,g=0;for(;d<t;){if((f=e.charCodeAt(d))<=32){if(32===f)break;if(f>=9&&f<=13){c=!0;break}}else if(f>=160&&en(f)){c=!0;break}g=Math.imul(g^f,0x1000193),d++}let v=d,m=v-p;r===eO&&eD();let y=r++;eM[y]=p,eL[y]=v,l+=m;let b=(g^=Math.imul(m,0x9e3779b1))^g>>>15,_=8190&b;{let t=-1;if(eE[_]===b&&null!==eS[_]&&eS[_].length===m?t=_:eE[1|_]===b&&null!==eS[1|_]&&eS[1|_].length===m&&(t=1|_),t>=0){let r=eS[t],n=!0;for(let t=0;t<m;t++)if(r.charCodeAt(t)!==e.charCodeAt(p+t)){n=!1;break}if(n){eN[y]=eR[t],ej[y]=ek[t],eB[y]=eT[t];continue}}}let w=p;if(0!==V){if(v-p<=V||!e.startsWith(q,p)){eN[y]=-1,eC(_,e,p,v,b,-1,0,0);continue}w=p+V}let x=0,E=0,S=-1,R=-1;for(let t=w;t<v;t++){let r=e.charCodeAt(t);if(0===x&&0===E){if(58===r){S=t;continue}if(47===r){R=t;continue}}91===r?x++:93===r?x--:40===r?E++:41===r&&E--}let k=S>=w?S+1:w,T=k,A=v,C=!1,P=0;A>T&&33===e.charCodeAt(A-1)?(C=!0,A--):A>T&&33===e.charCodeAt(T)&&(C=!0,T++,P=1);let O=-1;R>k&&(O=R+P)>=A&&(O=-1);let I=T;A-T>1&&45===e.charCodeAt(T)&&(I=T+1);let M=0,L=0,B=0,F=-1,D=0;(u[0]>=0||1===j[0])&&(eU[0]=0,e$[0]=I,D=1);let H=-1,U=0;for(let t=I;t<A;t++)if(t===O&&(H=L<B?-1:M,U=D),-1!==M){let r=e.charCodeAt(t),n=-1;if(L<B)o.charCodeAt(L)===r?++L===B&&(n=M=F):M=-1;else{let e=i[M],t=i[M+1],l=-1;for(let i=e;i<t;i++){let e=s[i];
1if(o.charCodeAt(e)===r){s[i+1]-e==1?n=l=a[i]:(L=e+1,B=s[i+1],F=a[i],l=M);break}}M=l}if(n>=0&&(u[n]>=0||1===j[n])&&t+1<A&&45===e.charCodeAt(t+1)){if(D===eH){let e=new Int32Array(eH*=2);e.set(eU),eU=e;let t=new Int32Array(eH);t.set(e$),e$=t}eU[D]=n,e$[D]=t+2,D++}}O===A&&(H=L<B?-1:M,U=D);let $=L<B?-1:M,z=!1;if(O>=0)if(z=!0,-1!==(h=eX(e,T,O,H,U))&&h<n&&N[h]){let t=eX(e,T,A,$,D);-1!==t&&t!==h&&(h=t,z=!1)}else -1===h&&(h=eX(e,T,A,$,D),z=!1);else h=eX(e,T,A,$,D);let G=0,W=0;-1===h?eN[y]=-1:(W=+!!z,G=w>=S?+!!C:ep(eg,e,w,S,+!!C,e=>ey(e,C)),eN[y]=h,eB[y]=W,ej[y]=G),eC(_,e,p,v,b,h,G,W)}if(0===r)return"";if(1===r)return 0===eM[0]&&eL[0]===t?e:e.slice(eM[0],eL[0]);if(r*C>eq){for(;r*C>eq;)eq<<=1,eV--;eG=new Float64Array(eq),eW=new Int32Array(eq)}if(em>=2097152||e_>=2097152)throw Error("cn: too many distinct classes in one merge");0==(eK=eK+1|0)&&(ez.fill(0),eW.fill(0),eK=1);let h=!1;for(let e=r-1;e>=0;e--){let t=eN[e];if(-1===t){eF[e]=1;continue}let r=ej[e];if(1===eY(r,t)){eF[e]=0,h=!0;continue}if(eF[e]=1,t<n){let n=T[t];if(n>=0)for(let e=_[n];e<_[n+1];e++)eY(r,w[e]);if(1&eB[e])for(let e=0;e<x.length;e++)x[e]===t&&eY(r,E[e])}}if(!h&&!c&&t===l+r-1)return e;let f="",p=0;for(;p<r;){if(!eF[p]){p++;continue}let t=eM[p],n=eL[p],i=p+1;for(;i<r&&eF[i]&&eM[i]===n+1&&32===e.charCodeAt(n);)n=eL[i],i++;f.length>0&&(f+=" "),f+=e.slice(t,n),p=i}return f},eZ=new Int32Array(32768),eQ=0,e0=1,e1=Object.create(null),e2=Object.create(null),e3=new Map,e4=new Map,e5=0,e8=0,e6=()=>{eQ^=16384,e0=e0+1|0,e8=0},e9=0===$?eJ:P?e=>{let t=e3.get(e);return void 0!==t?t:(e=>{let t=e3.get(e);if(void 0!==t)return t;let r=I(e,0,e.length),n=(16383&r)+eQ,i=eZ[n]===(r^e0)||eZ[16384^n]===(r^e0-1);return i&&void 0!==(t=e4.get(e))?(e3.set(e,t),t):(t=eJ(e),i?(e3.set(e,t),++e5>$&&(e5=0,e4=e3,e3=new Map,e6())):(eZ[n]=r^e0,++e8>16384&&e6()),t)})(e)}:e=>{let t=e1[e];if(void 0!==t)return t;let r=I(e,0,e.length),n=(16383&r)+eQ,i=eZ[n]===(r^e0)||eZ[16384^n]===(r^e0-1);return i&&void 0!==(t=e2[e])?(e1[e]=t,t):(t=eJ(e),i?(e1[e]=t,++e5>$&&(e5=0,e2=e1,e1=Object.create(null),e6())):(eZ[n]=r^e0,++e8>16384&&e6()),t)};return{merge:function(){return 1==arguments.length&&"string"==typeof arguments[0]?e9(arguments[0]):e9(L.apply(null,arguments))},mergeString:e9,seenBefore:0===$?()=>!1:e=>{let t=I(e,0,e.length),r=(16383&t)+eQ;return eZ[r]===(t^e0)||eZ[16384^r]===(t^e0-1)||(eZ[r]=t^e0,++e8>16384&&e6(),!1)},mergeUncached:eJ}})(C),j=((e,t)=>{let r=void 0===t?()=>!0:t.seenBefore,n=void 0===t?e:t.mergeUncached,i=new Map,s=new Map,o=0,a=null,l=(e,t,r,n)=>{let i=0;if(t){if(t!==e.a0)return!1;i=1}if(r){if(r!==(0===i?e.a0:e.a1))return!1;i++}if(n){if(n!==(0===i?e.a0:1===i?e.a1:e.a2))return!1;i++}return i===e.t},u=(e,t)=>{let r=e.a,n=0;for(let e=0;e<t.length;e++){let i=t[e];if(i){if(i!==r[n])return!1;n++}}return n===e.t},c=(t,l)=>{let c=t.length,d=null===a?null:a.n;if(!l){if(null!==d&&u(d,t))return a=d,d.r;if(null!==a&&a!==d&&u(a,t))return a.r}let h="",f=-1,p=0,g=!1;for(let e=0;e<c;e++){let r=t[e];if(r){if("string"!=typeof r){if(!(r=t[e]=M(r,!0)))continue;g=!0}f<0&&(h=r,f=e),p++}}if(0===p)return"";if(1===p)return e(h);if(g){if(null!==d&&u(d,t))return a=d,d.r;if(null!==a&&a!==d&&u(a,t))return a.r}let v=i.get(h);void 0===v&&void 0!==(v=s.get(h))&&i.set(h,v);let m=null;if(void 0!==v)e:for(let e=0;e<v.length;e++){let r=v[e];if(r.t!==p)continue;let n=r.a,i=1;for(let e=f+1;e<c;e++){let r=t[e];if(r&&r!==n[i++])continue e}m=r;break}if(null===m){let a=h,l=[h];for(let e=f+1;e<c;e++){let r=t[e];r&&(a+=" "+r,l.push(r))}if(!r(a))return n(a);m={r:e(a),t:l.length,a0:l[0],a1:l[1],a2:l[2]??"",a:l,n:null},void 0===v&&i.set(h,v=[]),v.length>=256&&v.shift(),v.push(m),++o>1e3&&(o=0,s=i,i=new Map)}return null!==a&&a!==m&&(a.n=m),a=m,m.r};return function(t,r,n){let i=arguments.length;if((1|i)==3){let e=a;if(null!==e){let i=e.n;if(null!==i&&l(i,t,r,n))return a=i,i.r;if(e!==i&&l(e,t,r,n))return e.r}return c([t,r,n],!0)}if(1===i)return"string"==typeof t?e(t):Array.isArray(t)?c(t.slice(),!1):e(M(t,!0));let s=a;if(null!==s){let e=s.n;if(null!==e){let t=e.a,r=0,n=!0;for(let e=0;e<i;e++){let i=arguments[e];if(i){if(i!==t[r]){n=!1;break}r++}}if(n&&r===e.t)return a=e,e.r}if(s!==e){let e=s.a,t=0,r=!0;for(let n=0;n<i;n++){let i=arguments[n];if(i){if(i!==e[t]){r=!1;break}t++}}if(r&&t===s.t)return s.r}}let o=[];for(let e=0;e<i;e++)o.push(arguments[e]);return c(o,!0)}})(N.mergeString,N);N.merge},59544:(e,t,r)=>{"use strict";r.d(t,{a:()=>b});var n=r(14343),i=r(45848),s=r(37900),o=r(73858),a=r(87190),l=r(41790),u=r(73897),c=r(10352),d=r(2978),h=r(81316),f=r(72949),p=r(3167),g=r(57193),v=r(99482),m=r(24082),y=r(19983);function b(e,t={}){let{enabled:r=!0,closeDelay:_=0,nodeId:w}=t,x="rootStore"in e?e.rootStore:e,E=x.useState("open"),S=x.useState("floatingElement"),R=x.use
1State("domReferenceElement"),{dataRef:k}=x.context,T=(0,f.cq)(),A=(0,f.R1)(),C=(0,v.uu)(x),P=(0,u.Z)(),O=(0,l.K)(()=>(0,y.GI)(k.current.openEvent?.type,C.interactedInside)),I=(0,l.K)(()=>(0,y.h$)(k.current.openEvent?.type)),M=(0,l.K)(()=>{(0,v.GH)(C)});(0,o.g)(()=>{E||(C.pointerType=void 0,C.restTimeoutPending=!1,C.interactedInside=!1,M())},[E,C,M]),n.useEffect(()=>M,[M]),(0,o.g)(()=>{if(r&&E&&C.handleCloseOptions?.blockPointerEvents&&I()&&(0,c.vq)(R)&&S){let e=(0,a.R)(S),t=T?.nodesRef.current.find(e=>e.id===A)?.context?.elements.floating;t&&(t.style.pointerEvents="");let r=C.pointerEventsScopeElement!==S?C.pointerEventsScopeElement:null,n=t!==S?t:null,i=C.handleCloseOptions?.getScope?.()??r??n??R.closest("[data-rootownerid]")??e.body;return(0,v.D8)(C,{scopeElement:i,referenceElement:R,floatingElement:S}),()=>{M()}}},[r,E,R,S,C,I,T,A,M]),n.useEffect(()=>{if(r)return(0,s.g)(S&&(0,i.q)(S,"mouseenter",function(){C.openChangeTimeout.clear(),P.clear(),T?.events.off("floating.closed",t),M()}),S&&(0,i.q)(S,"mouseleave",function(r){if(e()&&T)return void T.events.on("floating.closed",t);if((0,m.Hi)(r.relatedTarget,x.context.triggerElements))return;let n=k.current.floatingContext?.nodeId??w,i=r.relatedTarget;if(!(T&&n&&(0,c.vq)(i)&&(0,g.CM)(T.nodesRef.current,n,!1).some(e=>(0,p.gR)(e.context?.elements.floating,i)))){if(C.handler)return void C.handler(r);M(),I()&&!O()&&function(e){let t=(0,y.uf)(_,"close",C.pointerType),r=()=>{x.setOpen(!1,(0,d.d)(h.N7,e)),T?.events.emit("floating.closed",e)};t?C.openChangeTimeout.start(t,r):(C.openChangeTimeout.clear(),r())}(r)}}),S&&(0,i.q)(S,"pointerdown",function(e){let t=(0,p.EW)(e);if(!(0,m.H5)(t)){C.interactedInside=!1;return}C.interactedInside=t?.closest("[aria-haspopup]")!=null},!0),()=>{T?.events.off("floating.closed",t)});function e(){return!!(T&&A&&(0,g.CM)(T.nodesRef.current,A).length>0)}function t(r){!T||!A||e()||P.start(0,()=>{T.events.off("floating.closed",t),x.setOpen(!1,(0,d.d)(h.N7,r)),T.events.emit("floating.closed",r)})}},[r,S,x,k,_,w,I,O,M,C,T,A,P])}},59594:(e,t,r)=>{"use strict";r.d(t,{s:()=>c});var n=r(14343),i=r(10352),s=r(41790),o=r(73858),a=r(32830),l=r(81032),u=r(46282);function c(e={}){let{disabled:t=!1,focusableWhenDisabled:r,tabIndex:h=0,native:f=!0,composite:p}=e,g=n.useRef(null),v=(0,l.G)(!0),m=p??void 0!==v,{props:y}=function(e){let{focusableWhenDisabled:t,disabled:r,composite:i=!1,tabIndex:s=0,isNativeButton:o}=e,a=i&&!1!==t,l=i&&!1===t;return{props:n.useMemo(()=>{let e={onKeyDown(e){r&&t&&"Tab"!==e.key&&e.preventDefault()}};return i||(e.tabIndex=s,!o&&r&&(e.tabIndex=t?s:-1)),(o&&(t||a)||!o&&r)&&(e["aria-disabled"]=r),o&&(!t||l)&&(e.disabled=r),e},[i,r,t,a,l,o,s])}}({focusableWhenDisabled:r,disabled:t,composite:m,tabIndex:h,isNativeButton:f}),b=n.useCallback(()=>{let e=g.current;d(e)&&m&&t&&void 0===y.disabled&&e.disabled&&(e.disabled=!1)},[t,y.disabled,m]);return(0,o.g)(b,[b]),{getButtonProps:n.useCallback((e={})=>{let{onClick:r,onMouseDown:n,onKeyUp:s,onKeyDown:o,onPointerDown:l,...c}=e;return(0,a.v6)({onClick(e){if(t)return void e.preventDefault();r?.(e)},onMouseDown(e){t||n?.(e)},onKeyDown(e){var r;if(t||((0,a.PT)(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,s=e.currentTarget,l=d(s),c=!f&&(r=s,(0,i.sb)(r)&&"A"===r.tagName&&!!r.href),h=n&&(f?l:!c),p="Enter"===e.key,g=" "===e.key,v=s.getAttribute("role"),y=v?.startsWith("menuitem")||"option"===v||"gridcell"===v;if(n&&m&&g){if(e.defaultPrevented&&y)return;e.preventDefault(),(!f||l)&&(e.preventBaseUIHandler(),(0,u.B)(s,e));return}if(!h||f||!g&&!p){n&&c&&g&&e.preventDefault();return}!e.defaultPrevented&&(e.preventDefault(),p&&(e.preventBaseUIHandler(),(0,u.B)(s,e)))},onKeyUp(e){if(!t){if((0,a.PT)(e),s?.(e),e.target===e.currentTarget&&f&&m&&d(e.currentTarget)&&" "===e.key)return void e.preventDefault();!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||f||m||e.defaultPrevented||" "!==e.key||(e.preventBaseUIHandler(),(0,u.B)(e.currentTarget,e)))}},onPointerDown(e){if(t)return void e.preventDefault();l?.(e)}},f?{type:"button"}:{role:"button"},y,c)},[t,y,m,f]),buttonRef:(0,s.K)(e=>{g.current=e,b()})}}function d(e){return(0,i.sb)(e)&&"BUTTON"===e.tagName}},60284:(e,t,r)=>{"use strict";e.exports=r(8647).style}
1,62007:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(85343);let i={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};i.node;let s=(0,n.A)(i)},63604:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});let n=parseInt(r(14343).version,10);function i(e){return n>=e}},64784:(e,t,r)=>{"use strict";r.d(t,{$h:()=>s,VJ:()=>a,ep:()=>o,ho:()=>i,ii:()=>l});var n=r(29265);let i="data-open",s="data-closed",o=n.e,a=n.V,l="data-anchor-hidden"},64935:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(85343);let i={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};i.node;let s=(0,n.A)(i)},65379:(e,t,r)=>{"use strict";var n=r(14343),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=n.useState,o=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=s({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},66071:(e,t,r)=>{"use strict";r.d(t,{i:()=>d});var n=r(10352),i=r(73897),s=r(3167),o=r(57193);let a=.1*.1;function l(e,t,r,n,i,s){return n>=t!=s>=t&&e<=(i-r)*(t-n)/(s-n)+r}function u(e,t,r,n,i,s,o,a,u,c){let d=!1;return l(e,t,r,n,i,s)&&(d=!d),l(e,t,i,s,o,a)&&(d=!d),l(e,t,o,a,u,c)&&(d=!d),l(e,t,u,c,r,n)&&(d=!d),d}function c(e,t,r,n,i,s){let o=Math.min(r,i),a=Math.max(r,i),l=Math.min(n,s),u=Math.max(n,s);return e>=o&&e<=a&&t>=l&&t<=u}function d(e={}){let{blockPointerEvents:t=!1}=e,r=new i.E,l=({x:e,y:t,placement:i,elements:l,onClose:d,nodeId:h,tree:f})=>{let p=i?.split("-")[0],g=!1,v=null,m=null,y="undefined"!=typeof performance?performance.now():0;return function(i){r.clear();let b=l.domReference,_=l.floating;if(!b||!_||null==p||null==e||null==t)return;let{clientX:w,clientY:x}=i,E=(0,s.EW)(i),S="mouseleave"===i.type,R=(0,s.gR)(_,E),k=(0,s.gR)(b,E);if(R&&(g=!0,!S))return;if(k&&(g=!1,!S)){g=!0;return}if(S&&(0,n.vq)(i.relatedTarget)&&(0,s.gR)(_,i.relatedTarget))return;function T(){return!!(f&&(0,o.CM)(f.nodesRef.current,h).length>0)}function A(){T()||(r.clear(),d())}if(T())return;let C=b.getBoundingClientRect(),P=_.getBoundingClientRect(),O=e>P.right-P.width/2,I=t>P.bottom-P.height/2,M=P.width>C.width,L=P.height>C.height,N=(M?C:P).left,j=(M?C:P).right,B=(L?C:P).top,F=(L?C:P).bottom;if("top"===p&&t>=C.bottom-1||"bottom"===p&&t<=C.top+1||"left"===p&&e>=C.right-1||"right"===p&&e<=C.left+1)return void A();let D=!1;switch(p){case"top":D=c(w,x,N,C.top+1,j,P.bottom-1);break;case"bottom":D=c(w,x,N,P.top+1,j,C.bottom-1);break;case"left":D=c(w,x,P.right-1,F,C.left+1,B);break;case"right":D=c(w,x,C.right-1,F,P.left+1,B)}if(D)return;if(g&&(!(w>=C.x)||!(w<=C.x+C.width)||!(x>=C.y)||!(x<=C.y+C.height))||!S&&function(e,t){let r=performance.now(),n=r-y;if(null===v||null===m||0===n)return v=e,m=t,y=r,!1;let i=e-v,s=t-m;return v=e,m=t,y=r,i*i+s*s<n*n*a}(w,x))return void A();let H=!1;switch(p){case"top":{let r=M?.25:2,n=t+.5+1,i=O||M?P.bottom-.5:P.top,s=O?M?P.bottom-.5:P.top:P.bottom-.5;H=u(w,x,M||O?e+r:e-r,n,M?e-r:O?e+r:e-r,n,P.left,i,P.right,s);break}case"bottom":{let r=M?.25:2,n=t-.5,i=O||M?P.top+.5:P.bottom,s=O?M?P.top+.5:P.bottom:P.top+.5;H=u(w,x,M||O?e+r:e-r,n,M?e-r:O?e+r:e-r,n,P.left,i,P.right,s);break}case"left":{let r=L?.25:2,n=e+.5+1,i=I||L?P.right-.5:P.left,s=I?L?P.right-.5:P.left:P.right-.5;H=u(w,x,i,P.top,s,P.bottom,n,L||I?t+r:t-r,n,L?t-r:I?t+r:t-r);break}case"right":{let r=L?.25:2,n=e-.5,i=I||L?P.left+.5:P.right,s=I?L?P.left+.5:P.right:P.left+.5;H=u(w,x,n,L||I?t+r:t-r,n,L?t-r:I?t+r:t-r,i,P.top,s,P.bottom)}}H?g||r.start(40,A):A()}};return l.__options={...e,blockPointerEvents:t},l}},67813:(e,t,r)=>{"use strict";r.d(t,{d:()=>s});var n=r(49940),i=r(1090);function s(e){return"starting"===e?i.K2:n.t0}},68218:(e,t,r)=>{"use strict";r.d(t,{Ev:()=>c,Go:()=>u,O_:()=>o,Pg:()=>l,YF:()=>a,jo:()=>s});var n=r(32601),i=r(21226);function s(e){e.preventDefault(),e.stopPropagation()}function o(e){return"nativeEvent"in e}function a(e){return""===e.pointerType&&!!e.isTrusted||(n.yA&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function l(e){return!i.I&&(!n.yA&&0===e.width&&0===e.height||n.yA&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function u(e,t){let r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function c(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t}},69310:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let n=(e,t)=>r(12107).normalizeLocalePath(e,t);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71082:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return x},useLinkStatus:function(){return w}});let n=r(98781),i=r(15383),s=n._(r(14343)),o=r(98936),a=r(22842),l=r(60931),u=r(62397),c=r(22702),d=r(42311),h=r(20041),f=r(83466),p=r(58863),g=r(88900);r(81358);let v=new Set;function m(e,t,r,n){if((0,a.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(v.has(i))return;v.add(i)}e.prefetch(t,r,n).catch(e=>{})}}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=s.default.forwardRef(function(e,t){let r,n,{href:l,as:v,children:b,prefetch:_=null,passHref:w,replace:x,shallow:E,scroll:S,locale:R,onClick:k,onNavigate:T,onMouseEnter:A,onTouchStart:C,legacyBehavior:P=!1,...O}=e;r=b,P&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let I=s.default.useContext(d.RouterContext),M=!1!==_,{href:L,as:N}=s.default.useMemo(()=>{if(!I){let e=y(l);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(I,l,!0);return{href:e,as:v?(0,o.resolveHref)(I,v):t||e}},[I,l,v]),j=s.default.useRef(L),B=s.default.useRef(N);P&&(n=s.default.Children.only(r));let F=P?n&&"object"==typeof n&&n.ref:t,[D,H,U]=(0,h.useIntersection)({rootMargin:"200px"}),$=s.default.useCallback(e=>{(B.current!==N||j.current!==L)&&(U(),B.current=N,j.current=L),D(e)},[N,L,U,D]),z=(0,g.useMergedRef)($,F);s.default.useEffect(()=>{I&&H&&M&&m(I,L,N,{locale:R})},[N,L,H,R,M,null==I?void 0:I.locale,I]);let q={ref:z,onClick(e){P||"function"!=typeof k||k(e),P&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),I&&(e.defaultPrevented||function(e,t,r,n,i,s,o,l,u){let{nodeName:c}=e.currentTarget;if(!("A"===c.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,a.isLocalURL)(r)){i&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let e=null==o||o;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:s,locale:l,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})})()}}(e,I,L,N,x,E,S,R,T))},onMouseEnter(e){P||"function"!=typeof A||A(e),P&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),I&&m(I,L,N,{locale:R,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){P||"function"!=typeof C||C(e),P&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),I&&m(I,L,N,{locale:R,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(N))q.href=N;else if(!P||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==R?R:null==I?void 0:I.locale;q.href=(null==I?void 0:I.isLocaleDomain)&&(0,f.getDomainLocale)(N,e,null==I?void 0:I.locales,null==I?void 0:I.domainLocales)||(0,p.addBasePath)((0,c.addLocale)(N,e,null==I?void 0:I.defaultLocale))}return P?s.default.cloneElement(n,q):(0,i.jsx)("a",{...O,...q,children:r})}),_=(0,s.createContext)({pending:!1}),w=()=>(0,s.useContext)(_),x=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71378:(e,t,r)=>{"use strict";r.d(t,{k:()=>h});var n=r(14343),i=r(77423),s=r(73897),o=r(49940),a=r(3167),l=r(24082),u=r(68218),c=r(2978),d=r(81316);function h(e,t={}){let{enabled:r=!0,event:f="click",toggle:p=!0,ignoreMouse:g=!1,stickIfOpen:v=!0,touchOpenDelay:m=0,reason:y=d.Ui}=t,b="rootStore"in e?e.rootStore:e,_=b.context.dataRef,w=n.useRef(void 0),x=(0,i.NR)(),E=(0,s.Z)(),S=n.useMemo(()=>{function e(e,t,r,n){let i=(0,c.d)(y,t,r);e&&"touch"===n&&m>0?E.start(m,()=>{b.setOpen(!0,i)}):b.setOpen(e,i)}function t(e,t,r){let n=_.current.openEvent,i=b.select("domReferenceElement")!==t;return!!e&&!!i||!e||!p||!!n&&!!v&&!r(n.type)}return{onPointerDown(e){w.current=(0,u.Go)(e.pointerType,!0)&&(0,u.Pg)(e.nativeEvent)?"virtual":e.pointerType},onMouseDown(r){let n=w.current,i=r.nativeEvent,s=b.select("open");if(0!==r.button||"click"===f||(0,u.Go)(n,!0)&&g)return;let o=t(s,r.currentTarget,e=>"click"===e||"mousedown"===e),c=(0,a.EW)(i);if((0,l.$u)(c))return void e(o,i,c,n);let d=r.currentTarget;x.request(()=>{e(o,i,d,n)})},onClick(r){if("mousedown-only"===f)return;let n=w.current;if("mousedown"===f&&n){w.current=void 0;return}(0,u.Go)(n,!0)&&g||e(t(b.select("open"),r.currentTarget,e=>"click"===e||"mousedown"===e||"keydown"===e||"keyup"===e),r.nativeEvent,r.currentTarget,n)},onKeyDown(){w.current=void 0}}},[_,f,g,y,b,v,p,x,E,m]);return n.useMemo(()=>r?{reference:S}:o.t0,[r,S])}},71623:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(r=0;r<s;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n,A:()=>i});let i=n},71761:(e,t,r)=>{"use strict";r.d(t,{H:()=>o});var n=r(14343),i=r(49940);let s=n.createContext({controlId:void 0,registerControlId:i.tE,resetControlId:i.tE,labelId:void 0,setLabelId:i.tE,messageIds:[],setMessageIds:i.tE,getDescriptionProps:e=>e});function o(){return n.useContext(s)}},72076:(e,t,r)=>{"use strict";let n=r(45564),i=r(33685),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>
vendor: 21,072 bytes, line 1
10x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);let r=0|p(n,i),s=o(r),l=s.write(n,i);return l!==r&&(s=s.slice(0,l)),s}if(ArrayBuffer.isView(e)){var s=e;if(B(s,Uint8Array)){let e=new Uint8Array(s);return h(e.buffer,e.byteOffset,e.byteLength)}return d(s)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let l=e.valueOf&&e.valueOf();if(null!=l&&l!==e)return a.from(l,t,r);let u=function(e){if(a.isBuffer(e)){let t=0|f(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(u)return u;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),o(e<0?0:0|f(e))}function d(e){let t=e.length<0?0:0|f(e.length),r=o(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),n}function f(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(e).length;default:if(i)return n?-1:L(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=F[e[n]];return i}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":var s,o,a;return s=this,o=t,a=r,0===o&&a===s.length?n.fromByteArray(s):n.fromByteArray(s.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){let n=e.slice(t,r),i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function v(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){var s;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(s=r*=1)!=s&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return y(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){let s,o=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,a/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let n=-1;for(s=r;s<a;s++)if(u(e,s)===u(t,-1===n?0:s-n)){if(-1===n&&(n=s),s-n+1===l)return n*o}else -1!==n&&(s-=s-n),n=-1}else for(r+l>a&&(r=a-l),s=r;s>=0;s--){let r=!0;for(let n=0;n<l;n++)if(u(e,s+n)!==u(t,n)){r=!1;break}if(r)return s}return -1}function b(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let t=e[i],s=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=r){let r,n,a,l;switch(o){case 1:t<128&&(s=t);break;case 2:(192&(r=e[i+1]))==128&&(l=(31&t)<<6|63&r)>127&&(s=l);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(l=(15&t)<<12|(63&r)<<6|63&n)>2047&&(l<55296||l>57343)&&(s=l);break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],(192&r)==128&&(192&n)==128&&(192&a)==128&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a)>65535&&l<1114112&&(s=l)}}null===s?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=o}var s=n;let o=s.length;if(o<=4096)return String.fromCharCode.apply(String,s);let a="",l=0;for(;l<o;)a+=String.fromCharCode.apply(String,s.slice(l,l+=4096));return a}function _(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,s){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function x(e,t,r,n,i){P(t,n,i,e,r,7);let s=Number(t&BigInt(0xffffffff));e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s;let o=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,r}function E(e,t,r,n,i){P(t,n,i,e,r,7);let s=Number(t&BigInt(0xffffffff));e[r+7]=s,s>>=8,e[r+6]=s,s>>=8,e[r+5]=s,s>>=8,e[r+4]=s;let o=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r+3]=o,o>>=8,e[r+2]=o,o>>=8,e[r+1]=o,o>>=8,e[r]=o,r+8}function S(e,t,r,n,i,s){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function R(e,t,r,n,s){return t*=1,r>>>=0,s||S(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,s){return t*=1,r>>>=0,s||S(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.hp=a,t.IS=50,a.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(B(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let t=e[r];if(B(t,Uint8Array))i+t.length>n.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(a.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},a.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},a.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},a.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):g.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let e="",r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},s&&(a.prototype[s]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(B(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let s=i-n,o=r-t,l=Math.min(s,o),u=this.slice(n,i),c=e.slice(t,r);for(let e=0;e<l;++e)if(u[e]!==c[e]){s=u[e],o=c[e];break}return s<o?-1:+(o<s)},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){var i,s,o,a,l,u,c,d;if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let f=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let s=e.length-r;n?(n=Number(n))>s&&(n=s):n=s;let o=t.length;for(n>o/2&&(n=o/2),i=0;i<n;++i){var a;let n=parseInt(t.substr(2*i,2),16);if((a=n)!=a)break;e[r+i]=n}return i}(this,e,t,r);case"utf8":case"utf-8":return i=t,s=r,j(L(e,this.length-i),this,i,s);case"ascii":case"latin1":case"binary":return o=t,a=r,j(function(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,o,a);case"base64":return l=t,u=r,j(N(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,j(function(e,t){let r,n,i=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(f)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);let n=this[e],i=1,s=0;for(;++s<t&&(i*=256);)n+=this[e+s]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=D(function(e){O(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&I(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),a.prototype.readBigUInt64BE=D(function(e){O(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&I(e,this.length-8);let n=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],i=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);let n=this[e],i=1,s=0;for(;++s<t&&(i*=256);)n+=this[e+s]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);let n=t,i=1,s=this[e+--n];for(;n>0&&(i*=256);)s+=this[e+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*t)),s},a.prototype.readInt8=function(e,t){return(e>>>=0,t||_(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||_(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||_(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=D(function(e){O(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&I(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+0x1000000*this[++e])}),a.prototype.readBigInt64BE=D(function(e){O(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&I(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r)}),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||_(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||_(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||_(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||_(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=1,s=0;for(this[t]=255&e;++s<r&&(i*=256);)this[t+s]=e/i&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=r-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=D(function(e,t=0){return x(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=D(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=0,s=1,o=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/s|0)-o&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=r-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s|0)-o&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigInt64LE=D(function(e,t=0){return x(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=D(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(e,t,r){return R(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return R(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},a.prototype.fill=function(e,t,r,n){let i;if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){let t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{let s=a.isBuffer(e)?e:a.from(e,n),o=s.length;
1if(0===o)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%o]}return this};let T={};function A(e,t,r){T[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function C(e){let t="",r=e.length,n=+("-"===e[0]);for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function P(e,t,r,n,i,s){if(e>r||e<t){let n,i="bigint"==typeof t?"n":"";throw n=s>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(s+1)*8}${i}`:`>= -(2${i} ** ${(s+1)*8-1}${i}) and < 2 ** ${(s+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new T.ERR_OUT_OF_RANGE("value",n,e)}O(i,"offset"),(void 0===n[i]||void 0===n[i+s])&&I(i,n.length-(s+1))}function O(e,t){if("number"!=typeof e)throw new T.ERR_INVALID_ARG_TYPE(t,"number",e)}function I(e,t,r){if(Math.floor(e)!==e)throw O(e,r),new T.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new T.ERR_BUFFER_OUT_OF_BOUNDS;throw new T.ERR_OUT_OF_RANGE(r||"offset",`>= ${+!!r} and <= ${t}`,e)}A("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),A("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),A("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?i=C(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=C(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let M=/[^+/0-9A-Za-z-_]/g;function L(e,t){let r;t=t||1/0;let n=e.length,i=null,s=[];for(let o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319||o+1===n){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return s}function N(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function B(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let F=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function D(e){return"undefined"==typeof BigInt?H:e}function H(){throw Error("BigInt not supported")}},72323:()=>{},72810:(e,t,r)=>{"use strict";r.d(t,{Cf:()=>_,Es:()=>x,HM:()=>y,L3:()=>E,c7:()=>w,lG:()=>g,rr:()=>S,zM:()=>v});var n=r(15383);r(14343);var i=r(18906),s=r(35776),o=r(12582),a=r(52360),l=r(7594),u=r(10288),c=r(40236),d=r(22940),h=r(58811),f=r(34482),p=r(64935);function g(e){let{...t}=e;return(0,n.jsx)(i.D,{"data-slot":"dialog",...t})}function v(e){let{...t}=e;return(0,n.jsx)(s.z,{"data-slot":"dialog-trigger",...t})}function m(e){let{...t}=e;return(0,n.jsx)(o.Z,{"data-slot":"dialog-portal",...t})}function y(e){let{...t}=e;return(0,n.jsx)(a.H,{"data-slot":"dialog-close",...t})}function b(e){let{className:t,...r}=e;return(0,n.jsx)(l.X,{"data-slot":"dialog-overlay",className:(0,h.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",t),...r})}function _(e){let{className:t,children:r,showCloseButton:i=!0,animation:s="zoom",...o}=e;return(0,n.jsxs)(m,{children:[(0,n.jsx)(b,{}),(0,n.jsxs)(u.h,{"data-slot":"dialog-content",className:(0,h.cn)("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 roun
1ded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0","zoom"===s&&"data-open:zoom-in-95 data-closed:zoom-out-95",t),...o,children:[r,i&&(0,n.jsxs)(a.H,{"data-slot":"dialog-close",render:(0,n.jsx)(f.$,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[(0,n.jsx)(p.A,{}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function w(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"dialog-header",className:(0,h.cn)("flex flex-col gap-2",t),...r})}function x(e){let{className:t,showCloseButton:r=!1,children:i,...s}=e;return(0,n.jsxs)("div",{"data-slot":"dialog-footer",className:(0,h.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",t),...s,children:[i,r&&(0,n.jsx)(a.H,{render:(0,n.jsx)(f.$,{variant:"outline"}),children:"Close"})]})}function E(e){let{className:t,...r}=e;return(0,n.jsx)(c.L,{"data-slot":"dialog-title",className:(0,h.cn)("font-heading text-base leading-none font-medium",t),...r})}function S(e){let{className:t,...r}=e;return(0,n.jsx)(d.r,{"data-slot":"dialog-description",className:(0,h.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",t),...r})}},72949:(e,t,r)=>{"use strict";r.d(t,{$c:()=>p,P6:()=>g,R1:()=>d,cq:()=>h,fI:()=>f});var n=r(14343),i=r(16265),s=r(73858),o=r(16801),a=r(98378),l=r(15383);let u=n.createContext(null),c=n.createContext(null),d=()=>n.useContext(u)?.id||null,h=e=>{let t=n.useContext(c);return e??t};function f(e){let t=(0,i.B)(),r=h(e),n=d();return(0,s.g)(()=>{if(!t)return;let e={id:t,parentId:n};return r?.addNode(e),()=>{r?.removeNode(e)}},[r,t,n]),t}function p(e){let{children:t,id:r}=e,i=d();return(0,l.jsx)(u.Provider,{value:n.useMemo(()=>({id:r,parentId:i}),[r,i]),children:t})}function g(e){let{children:t,externalTree:r}=e,n=(0,o.j)(()=>r??new a.k).current;return(0,l.jsx)(c.Provider,{value:n,children:t})}},73858:(e,t,r)=>{"use strict";r.d(t,{g:()=>i});var n=r(14343);let i="undefined"!=typeof document?n.useLayoutEffect:()=>{}},73897:(e,t,r)=>{"use strict";r.d(t,{E:()=>s,Z:()=>o});var n=r(16801),i=r(3166);class s{static create(){return new s}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}function o(){let e=(0,n.j)(s.create).current;return(0,i.y)(e.disposeEffect),e}},74098:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(91289);let i=e=>{let{t:t}=(0,n.WD)();return(r,n)=>t("".concat(e,".").concat(r),n)}},74687:(e,t,r)=>{"use strict";r.d(t,{H_:()=>D,MA:()=>c,VD:()=>H,hN:()=>C,zb:()=>u});var n,i=r(72076).hp;function s(e){return!!(e&&"function"==typeof e.then)}function o(e,t){return s(e)?Promise.resolve(e).then(t):t(e)}function a(e,t,r){function n(r){let n=t(r);throw e.emit(n),console.error(n),n}try{let e=r();if(s(e))return e.catch(n);return e}catch(e){n(e)}}function l(e){let t=(Array.isArray(e)?e:[e]).map(e=>`'${e}'`),r=t.slice(-2).join(" or "),n=[...t.slice(0,-2),r].join(", ");return`Tolgee: You need to specify ${n} option`}function u(e){return"string"==typeof e?[e]:Array.isArray(e)?e:void 0}function c(e){return u(e)||[]}function d(e){return Array.from(new Set(e))}function h(e){return e?e.replace(/\/+$/,""):e}Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;let f=(e,t)=>fetch(e,t),p=(e=f)=>(t,r)=>{let n=Object.fromEntries(new Headers(null==r?void 0:r.headers).entries());return n["x-api-key"]&&(n=Object.assign({"x-tolgee-sdk-type":"JS","x-tolgee-sdk-version":"prerelease"},n)),e(t,Object.assign(Object.assign({},r),{headers:n}))},g=(e,t)=>{let r=[];return{listen(e){let t=t=>{e(t)};return r.push(t),{unsubscribe(){r=r.filter(e=>t!==e)}}},emit(n){t()&&r.forEach(t=>t({type:e,value:n}))}}};
1class v extends Error{constructor(e,t,r=!1){let{language:n,namespace:i}=e;super(`Tolgee: Failed to fetch record for "${n}"${i&&` and "${i}"`}`),this.cause=t,this.isDev=r,this.name="RecordFetchError",this.language=n,this.namespace=i}}class m extends Error{constructor(e,t){super(e),this.cause=t,this.name="LanguageDetectorError"}}class y extends Error{constructor(e,t){super(e),this.cause=t,this.name="LanguageStorageError"}}let b=e=>{let t=new Map;return Object.entries(e).forEach(([e,r])=>{if(null!=r){if("object"==typeof r)return void b(r).forEach((r,n)=>{t.set(e+"."+n,r)});t.set(e,r)}}),t},_=e=>Object.fromEntries(b(e).entries()),w=e=>{let[t,...r]=e.split(":");return{language:t,namespace:r.join(":")||""}},x=({language:e,namespace:t})=>t?`${e}:${t}`:e;function E(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}let S="invalid",R={observerOptions:{tagAttributes:{textarea:["placeholder"],input:["value","placeholder"],img:["alt"],"*":["aria-label","title"]},restrictedElements:["script","style"],highlightKeys:["Alt"],highlightColor:"rgb(255, 0, 0)",highlightWidth:5,inputPrefix:"%-%tolgee:",inputSuffix:"%-%",passToParent:["option","optgroup"],fullKeyEncode:!1},observerType:"invisible",onFormatError:S,apiUrl:"https://app.tolgee.io",autoLoadRequiredData:!0,fetch:p(),onTranslationMissing:({key:e})=>e},k=(...e)=>{let t={};return e.forEach(e=>{t=Object.assign(Object.assign(Object.assign({},t),e),{observerOptions:Object.assign(Object.assign({},t.observerOptions),null==e?void 0:e.observerOptions)})}),t};function T(e,t){let r=k(R,null==t?void 0:t.initialOptions,e);return r.apiUrl=h(r.apiUrl),(null==e?void 0:e.fetch)&&(r.fetch=p(e.fetch)),{initialOptions:r,activeNamespaces:(null==t?void 0:t.activeNamespaces)||new Map,language:null==t?void 0:t.language,pendingLanguage:null==t?void 0:t.language,isInitialLoading:!1,isRunning:!1}}let A=(e,t,r)=>{let n=e;return Object.freeze({init(e){n=e},notify(){let e=t();n!==e&&r(e),n=e}})},C=(e,...t)=>{let r,n={};return"object"==typeof e?n=e:(n.key=e,"string"==typeof t[0]?(n.defaultValue=t[0],r=t[1]):"object"==typeof t[0]&&(r=t[0])),r&&(n=Object.assign(Object.assign({},function(e){var{ns:t,noWrap:r,orEmpty:n,params:i,language:s}=e,o=E(e,["ns","noWrap","orEmpty","params","language"]);return Object.assign(Object.assign({},{ns:t,noWrap:r,orEmpty:n,language:s}),{params:Object.assign({},o)})}(r)),n)),n};String(Number.MAX_SAFE_INTEGER);var P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},O={};!function(e){function t(e){for(var t=0,r=Math.min(65536,e.length+1),n=new Uint16Array(r),i=[],s=0;;){var o=t<e.length;if(!o||s>=r-1){var a=n.subarray(0,s);if(i.push(String.fromCharCode.apply(null,a)),!o)return i.join("");e=e.subarray(t),t=0,s=0}var l=e[t++];if((128&l)==0)n[s++]=l;else if((224&l)==192){var u=63&e[t++];n[s++]=(31&l)<<6|u}else if((240&l)==224){var u=63&e[t++],c=63&e[t++];n[s++]=(31&l)<<12|u<<6|c}else if((248&l)==240){var u=63&e[t++],c=63&e[t++],d=(7&l)<<18|u<<12|c<<6|63&e[t++];d>65535&&(d-=65536,n[s++]=d>>>10&1023|55296,d=56320|1023&d),n[s++]=d}}}var r="Failed to ",n=function(e,t,n){if(e)throw Error("".concat(r).concat(t,": the '").concat(n,"' option is unsupported."))},s="function"==typeof i&&i.from,o=s?function(e){return i.from(e)}:function(e){for(var t=0,r=e.length,n=0,i=Math.max(32,r+(r>>>1)+7),s=new Uint8Array(i>>>3<<3);t<r;){var o=e.charCodeAt(t++);if(o>=55296&&o<=56319){if(t<r){var a=e.charCodeAt(t);(64512&a)==56320&&(++t,o=((1023&o)<<10)+(1023&a)+65536)}if(o>=55296&&o<=56319)continue}if(n+4>s.length){i+=8,i*=1+t/e.length*2;var l=new Uint8Array(i=i>>>3<<3);l.set(s),s=l}if((0xffffff80&o)==0){s[n++]=o;continue}if((0xfffff800&o)==0)s[n++]=o>>>6&31|192;else if((0xffff0000&o)==0)s[n++]=o>>>12&15|224,s[n++]=o>>>6&63|128;else{if((0xffe00000&o)!=0)continue;s[n++]=o>>>18&7|240,s[n++]=o>>>12&63|128,s[n++]=o>>>6&63|128}s[n++]=63&o|128}return s.slice?s.slice(0,n):s.subarray(0,n)};function a(){this.encoding="utf-8"}a.prototype.encode=function(e,t){return n(t&&t.stream,"encode","stream"),o(e)};var l=!s&&"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL,u=["utf-8","utf8","unicode
1-1-1-utf-8"],c=t;s?c=function(e,t){return(e instanceof i?e:i.from(e.buffer,e.byteOffset,e.byteLength)).toString(t)}:l&&(c=function(e){try{var r;try{var n=new Blob([e],{type:"text/plain;charset=UTF-8"});r=URL.createObjectURL(n);var i=new XMLHttpRequest;return i.open("GET",r,!1),i.send(),i.responseText}finally{r&&URL.revokeObjectURL(r)}}catch(r){return t(e)}});var d="construct 'TextDecoder'",h="".concat(r," ").concat(d,": the ");function f(e,t){if(n(t&&t.fatal,d,"fatal"),e=e||"utf-8",!(s?i.isEncoding(e):-1!==u.indexOf(e.toLowerCase())))throw RangeError("".concat(h," encoding label provided ('").concat(e,"') is invalid."));this.encoding=e,this.fatal=!1,this.ignoreBOM=!1}f.prototype.decode=function(e,t){var r;return n(t&&t.stream,"decode","stream"),r=e instanceof Uint8Array?e:new Uint8Array(e.buffer instanceof ArrayBuffer?e.buffer:e),c(r,this.encoding)},e.TextEncoder=e.TextEncoder||a,e.TextDecoder=e.TextDecoder||f}("undefined"!=typeof window?window:P);let I=function(e,t){for(var r=0;r<t.length;r++){let n=t[r];if("string"!=typeof n&&!Array.isArray(n)){for(let t in n)if("default"!==t&&!(t in e)){let r=Object.getOwnPropertyDescriptor(n,t);r&&Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:O},[O]);null==(n=console.assert)||n.call(console,I),RegExp(`([‌‍]{9})+`,"gu");let M=null,L="__tolgee_apiKey",N="__tolgee_apiUrl";function j(){let e=sessionStorage.getItem(L)||void 0,t=sessionStorage.getItem(N)||void 0;if(e&&t)return{apiKey:e,apiUrl:t}}function B(){sessionStorage.removeItem(L),sessionStorage.removeItem(N)}let F=()=>e=>e;function D(){return(()=>{let e={plugins:[],options:{}},t=Object.freeze({use:r=>(e.plugins.push(r),t),updateDefaults:r=>(e.options=k(e.options,r),t),init(t){let r=function(e){let t=function({options:e}){let t,r=function(){let e=!0;function t(){return e}let r=Object.freeze({onPendingLanguageChange:g("pendingLanguage",t),onLanguageChange:g("language",t),onLoadingChange:g("loading",t),onFetchingChange:g("fetching",t),onInitialLoaded:g("initialLoad",t),onRunningChange:g("running",t),onCacheChange:g("cache",t),onPermanentChange:g("permanentChange",t),onError:g("error",t),onUpdate:function(e){let t=[],r=[];function n(){if(0===r.length)return;let e=r;r=[],t.forEach(t=>{t(e)})}return Object.freeze({listen(e){let r=t=>{e(t)};return t.push(r),{unsubscribe(){t=t.filter(e=>r!==e)}}},emit(t,i){e()&&e()&&(r.push(t),i?setTimeout(n,0):n())}})}(t),setEmitterActive(t){e=t},on:(e,t)=>{switch(e){case"pendingLanguage":return r.onPendingLanguageChange.listen(t);case"language":return r.onLanguageChange.listen(t);case"loading":return r.onLoadingChange.listen(t);case"fetching":return r.onFetchingChange.listen(t);case"initialLoad":return r.onInitialLoaded.listen(t);case"running":return r.onRunningChange.listen(t);case"cache":return r.onCacheChange.listen(t);case"update":return r.onUpdate.listen(t);case"permanentChange":return r.onPermanentChange.listen(t);case"error":return r.onError.listen(t)}}});return r.onInitialLoaded.listen(e=>r.onUpdate.emit(e,!1)),r.onLanguageChange.listen(e=>r.onUpdate.emit(e,!1)),r.onCacheChange.listen(e=>r.onUpdate.emit(e,!0)),r}(),n=A(!1,()=>p.isFetching(),r.onFetchingChange.emit),i=A(!1,()=>j.isLoading(),r.onLoadingChange.emit),u=function(e,t,r){let n,i=T(),s=Object.freeze({init(e){i=T(e,i)},isRunning:()=>i.isRunning,setRunning(e){i.isRunning!==e&&(i.isRunning=e,r.emit(e))},isInitialLoading:()=>i.isInitialLoading,setInitialLoading(e){i.isInitialLoading=e},getLanguage:()=>i.language||i.initialOptions.language,setLanguage(t){i.language!==t&&(i.language=t,e.emit(t))},getPendingLanguage:()=>i.pendingLanguage||s.getLanguage(),setPendingLanguage(e){i.pendingLanguage!==e&&(i.pendingLanguage=e,t.emit(e))},getInitialOptions:()=>Object.assign(Object.assign({},i.initialOptions),n),addActiveNs(e){c(e).forEach(e=>{let t=i.activeNamespaces.get(e);void 0!==t?i.activeNamespaces.set(e,t+1):i.activeNamespaces.set(e,1)})},removeActiveNs(e){c(e).forEach(e=>{let t=i.activeNamespaces.get(e);void 0!==t&&t>1?i.activeNamespaces.set(e,t-1):i.activeNamespaces.delete(e)})},getRequiredNamespaces:()=>d([s.getDefaultNs(),...i.initialOptions.ns||[],...c(i.initialOptions.fallbackNs),...i.activeNamespaces.keys()]),getFallbackLangs(e){var t,r;let n=e||s.getLanguage();return n?d([n,..."object"!=typeof(r=t=i.initialOptions.fallbackLanguage)||Array.isArray(r)||null===r?c(t):c(null==t?void 0:t[n])]):[]},getFallbackNs:()=>c(i.initialOptions.fallbackNs),getNs(){var e,t;return(null==(e=i.initialOptions.ns)?void 0:e.length)?i.initialOptions.ns:[null!=(t=i.initialOptions.defaultNs)?t:""]},getDefaultNs(e){var t,r,n;return void 0===e?null!=(n=null!=(t=i.initialOptions.defaultNs)?t:null==(r=i.initialOptions.ns)?void 0:r[0])?n:"":e},getAvailableLanguages:()=>i.initialOptions.availableLanguages?i.initialOptions.availableLanguages:i.initialOptions.staticData?Array.from(new Set(Object.keys(i.initialOptions.staticData).map(e=>w(e).language))):void 0,getAvailableNs:()=>i.initialOptions.availableNs,withDefaultNs:e=>({namespace:void 0===e.namespace?s.getDefaultNs():e.namespace,language:e.language}),overrideCredentials(e){n=e?Object.assign(Object.assign({},e),{apiUrl:h(e.apiUrl)}):void 0}});return s}(r.onLanguageChange,r.onPendingLanguageChange,r.onRunningChange),f=function(e,t,r,n,i,s,l,u){let c={ui:void 0},d={formatters:[],finalFormatter:void 0,observer:void 0,devBackend:void 0,backends:[],ui:void 0,languageDetector:void 0,languageStorage:void 0},h=async({keysAndDefaults:e,target:t})=>{var r;let o=e.map(({key:e,ns:t,defaultValue:r})=>({key:e,defaultValue:r,fallbackNamespaces:n(t),namespace:i({key:e,ns:t})[0],translation:s({key:e,ns:t})}));null==(r=d.ui)||r.handleElementClick(o,t)},f=(e,t)=>{var r;return(null==(r=d.observer)?void 0:r.findPositions(e,t))||[]};function p(e){let t=s({key:e.key,ns:e.ns});return P.formatTranslation(Object.assign(Object.assign({},e),{translation:t,formatEnabled:!0}))}function g(){return{fetch:t().fetch}}function v(e){d.observer=null==e?void 0:e()}function b(){return!!d.observer}function _(e){e&&d.formatters.push(e)}function w(e){d.finalFormatter=e}function x(e){c.ui=e}function R(){return!!c.ui}function k(e){d.languageStorage=e}function T(e){d.languageDetector=e}function A(e){e&&d.backends.push(e)}function C(e){d.devBackend=e}let P=Object.freeze({addPlugin:function(e,t){let r=Object.freeze({setFinalFormatter:w,addFormatter:_,setObserver:v,hasObserver:b,setUi:x,hasUi:R,setDevBackend:C,addBackend:A,setLanguageDetector:T,setLanguageStorage:k});t(e,r)},findPositions:f,run(){var e,r;let{apiKey:n,apiUrl:i,projectId:s,observerOptions:o,tagNewKeys:a,filterTag:g}=t();d.ui=null==(e=c.ui)?void 0:e.call(c,{apiKey:n,apiUrl:i,projectId:s,highlight:P.highlight,changeTranslation:l,findPositions:f,onPermanentChange:e=>u.onPermanentChange.emit(e),tagNewKeys:a,filterTag:g}),null==(r=d.observer)||r.run({mouseHighlight:!!d.ui,options:o,translate:p,onClick:h})},stop(){var e;
1d.ui=void 0,null==(e=d.observer)||e.stop()},getLanguageStorage:()=>d.languageStorage,getInitialLanguage(){let e=r();return o(a(u.onError,e=>new y("Tolgee: Failed to load language",e),()=>{var e;return null==(e=d.languageStorage)?void 0:e.getLanguage(g())}),t=>{if((!e||e.includes(t))&&t)return t;if(!d.languageDetector)return;let n=r();return a(u.onError,e=>new m("Tolgee: Failed to detect language",e),()=>{var e;return null==(e=d.languageDetector)?void 0:e.getLanguage(Object.assign({availableLanguages:n},g()))})})},setStoredLanguage:e=>a(u.onError,e=>new y("Tolgee: Failed to store language",e),()=>{var t;return null==(t=d.languageStorage)?void 0:t.setLanguage(e,g())}),getDevBackend:()=>d.devBackend,getBackendRecord:async({language:e,namespace:t})=>{for(let r of d.backends){let n=await r.getRecord(Object.assign({language:e,namespace:t},g()));if(void 0!==n)return n}},getBackendDevRecord:async({language:e,namespace:r})=>{var n;let{apiKey:i,apiUrl:s,projectId:o,filterTag:a}=t();if(i&&s&&P.hasDevBackend())return null==(n=d.devBackend)?void 0:n.getRecord(Object.assign({apiKey:i,apiUrl:s,projectId:o,language:e,namespace:r,filterTag:a},g()))},getLanguageDetector:()=>d.languageDetector,retranslate(){var e;null==(e=d.observer)||e.retranslate()},highlight:(e,t)=>{var r,n;return(null==(n=null==(r=d.observer)?void 0:r.highlight)?void 0:n.call(r,e,t))||{unhighlight(){}}},unwrap(e){var t;return d.observer?null==(t=d.observer)?void 0:t.unwrap(e):{text:e,keys:[]}},wrap(e){var t;return d.observer?null==(t=d.observer)?void 0:t.wrap(e):e.translation},hasDevBackend:()=>!!P.getDevBackend(),formatTranslation(r){var n,{formatEnabled:i}=r,s=E(r,["formatEnabled"]);let{key:o,translation:a,defaultValue:l,noWrap:u,params:c,ns:h,orEmpty:f}=s,p=null!=a?a:l,g="";null==a&&(g=t().onTranslationMissing(s));let v=null!=p?p:f?"":g,m=e(),y=i||!(null==(n=d.observer)?void 0:n.outputNotFormattable),b=e=>d.observer&&!u?d.observer.wrap({key:o,translation:e,defaultValue:l,params:c,ns:h}):e;v=b(v);try{if(p&&m&&y)for(let e of d.formatters)v=e.format({translation:v,language:m,params:c});d.finalFormatter&&p&&m&&y&&(v=d.finalFormatter.format({translation:v,language:m,params:c}))}catch(i){console.error(i);let e=("string"==typeof i?i:"string"==typeof(null==i?void 0:i.message)?i.message:void 0)||S,r=t().onFormatError,n=typeof r;v=b(v="string"===n?r:"function"===n?r(e,s):S)}return v}});return P}(u.getLanguage,u.getInitialOptions,u.getAvailableLanguages,R,M,L,P,r),p=function(e,t,r,n,i,o,a){let l=new Map,u=new Map,h={},f=0;function p(t,r,n){let i=x(t);u.set(i,{data:_(r),version:n}),e.onCacheChange.emit(w(i))}async function g(r){function n(t){let n=new v(r,t);throw e.onError.emit(n),console.error(n),n}let i=t(r);if(s(i)){let e=await i.catch(n);if(void 0!==e)return e}let o=h[x(r)];if("function"!=typeof o)return o;try{return await o()}catch(e){n(e)}}async function m(t,n){let i;if(n)try{i=await r(t)}catch(n){let r=new v(t,n,!0);e.onError.emit(r),console.warn(r)}return i||(i=await g(t)),i}let y=Object.freeze({addStaticData(e){if(Array.isArray(e))for(let t of e){let e=x(t),r=u.get(e);r&&0!==r.version||p(t,_(t.data),0)}else e&&(h=Object.assign(Object.assign({},h),e),Object.entries(e).forEach(([e,t])=>{if("function"!=typeof t){let r=w(e),n=u.get(e);n&&0!==n.version||p(r,_(t),0)}}))},invalidate(){l.clear(),f+=1},addRecord(e,t){p(e,_(t),f)},exists(e,t=!1){let r=u.get(x(e));return r&&t?r.version===f:!!r},getRecord(e){let t=n(e),r=x(t),i=u.get(r);if(i)return Object.assign(Object.assign({},t),{cacheKey:r,data:i.data})},getAllRecords:()=>Array.from(u.entries()).map(([e])=>y.getRecord(w(e))),getTranslation(e,t){var r;return null==(r=u.get(x(e)))?void 0:r.data[t]},getTranslationNs(e,t,r){var n;for(let i of e)for(let e of t)if(null!=(null==(n=u.get(x({language:e,namespace:i})))?void 0:n.data[r]))return[i];return d(e)},getTranslationFallback(e,t,r){var n;for(let i of e)for(let e of t){let t=null==(n=u.get(x({language:e,namespace:i})))?void 0:n.data[r];if(null!=t)return t}},changeTranslation(t,r,n){var i;let s=null==(i=u.get(x(t)))?void 0:i.data;s&&(s[r]=n,e.onCacheChange.emit(Object.assign(Object.assign({},t),{key:r})))},isFetching(e){if(i())return!0;
1if(void 0===e)return l.size>0;let t=c(e);return!!Array.from(l.keys()).find(e=>t.includes(w(e).namespace))},isLoading(e,t){let r=c(t);return!!i()||!!Array.from(l.keys()).find(t=>{let n=w(t);return(!r.length||r.includes(n.namespace))&&!y.exists({namespace:n.namespace,language:e})})},async loadRecords(e,t){let r=e.map(e=>{let r=n(e),i=x(r);if((null==t?void 0:t.useCache)&&y.exists(r,!0))return Object.assign(Object.assign({},r),{new:!1,cacheKey:i,data:y.getRecord(r).data});let s=l.get(i);if(s)return Object.assign(Object.assign({},r),{new:!1,promise:s,cacheKey:i});let o=m(r,!(null==t?void 0:t.noDev))||Promise.resolve(void 0);return l.set(i,o),Object.assign(Object.assign({},r),{new:!0,promise:o,cacheKey:i})});o.notify(),a.notify();let i=r.map(e=>e.promise).filter(Boolean),s=await Promise.all(i);return r.forEach(e=>{var t;e.promise&&(e.data=_(null!=(t=s[0])?t:{}),s.shift());let r=l.get(e.cacheKey)!==e.promise;e.new&&!r&&(l.delete(e.cacheKey),e.data?y.addRecord(e,e.data):y.getRecord(e)||y.addRecord(e,{}))}),o.notify(),a.notify(),r.map(e=>{var t;return{language:e.language,namespace:e.namespace,data:null!=(t=e.data)?t:{},cacheKey:e.cacheKey}})}});return y}(r,f.getBackendRecord,f.getBackendDevRecord,u.withDefaultNs,u.isInitialLoading,n,i);function b(e){return u.getDefaultNs(e)}function R(e){return d([...c(b(e)),...u.getFallbackNs()])}function k(e){return d([...c(null!=e?e:b()),...u.getRequiredNamespaces()])}function P(e,t,r){let n=u.withDefaultNs(e),i=p.getTranslation(n,t);return p.changeTranslation(n,t,r),{revert(){p.changeTranslation(n,t,i)}}}function O(e){u.init(e),p.addStaticData(u.getInitialOptions().staticData)}function I(e,t){let r=u.getFallbackLangs(e),n=k(t),i=[];return r.forEach(e=>{n.forEach(t=>{i.push({language:e,namespace:t})})}),i}function M({key:e,ns:t}){let r=u.getFallbackLangs(),n=R(null!=t?t:void 0);return p.getTranslationNs(n,r,e)}function L({key:e,ns:t,language:r}){let n=R(null!=t?t:void 0),i=u.getFallbackLangs(r);return p.getTranslationFallback(n,i,e)}function N(){if(!u.getLanguage())return o(f.getInitialLanguage(),e=>{let t=e||u.getInitialOptions().defaultLanguage;t&&u.setLanguage(t)})}e&&O(e),r.onUpdate.listen(()=>{u.isRunning()&&f.retranslate()});let j=Object.freeze(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r),u),f),p),{init:O,getTranslation:L,changeTranslation:P,getTranslationNs:M,getDefaultAndFallbackNs:R,findPositions:f.findPositions,getRequiredDescriptors:I,async changeLanguage(e){(u.getPendingLanguage()!==e||u.getLanguage()!==e)&&(u.setPendingLanguage(e),u.isRunning()&&u.getInitialOptions().autoLoadRequiredData&&await p.loadRecords(I(e),{useCache:!0}),e===u.getPendingLanguage()&&(u.setLanguage(e),await f.setStoredLanguage(e)))},async addActiveNs(e,t){t||u.addActiveNs(e),u.isRunning()&&await p.loadRecords(I(void 0,e),{useCache:!0})},async loadRecord(e,t){var r;return null==(r=(await j.loadRecords([e],t))[0])?void 0:r.data},isLoading:e=>p.isLoading(u.getLanguage(),e),isLoaded(e){let t=u.getLanguage();if(!t)return!1;let r=u.getFallbackLangs(t),n=k(e),i=[];return r.forEach(e=>{n.forEach(t=>{p.exists({language:e,namespace:t})||i.push({language:e,namespace:t})})}),0===i.length},t:(...e)=>{let t=C(...e),r=L(t);return f.formatTranslation(Object.assign(Object.assign({},t),{translation:r}))},isDev:()=>!!(u.getInitialOptions().apiKey&&u.getInitialOptions().apiUrl),async loadRequired(e){(null==e?void 0:e.language)||await N();let t=I(null==e?void 0:e.language);return j.loadRecords(t,e)},async loadMatrix(e){let t=function(e){let t=[],r=[];if(Array.isArray(e.languages))t=e.languages;else if("all"===e.languages){let e=j.getAvailableLanguages();if(!e)throw Error(l("availableLanguages"));t=e}if(Array.isArray(e.namespaces))r=e.namespaces;else if("all"===e.namespaces){let e=j.getAvailableNs();if(!e)throw Error(l("availableNs"));r=e}let n=[];return t.forEach(e=>{r.forEach(t=>{n.push({language:e,namespace:t})})}),n}(e);return j.loadRecords(t,e)},run(){if((f.getLanguageDetector()||f.getLanguageStorage())&&!u.getAvailableLanguages())throw Error(l("availableLanguages"));if(!u.getLanguage()&&!u.getInitialOptions().defaultLanguage)throw Error(l(["defaultLanguage","language"]));return u.isRunning()||(u.setRunning(!0),f.run(),t=function(){let e=o(N(),()=>{let e=I(void 0,void 0).filter(e=>!p.exists(e,!0));if(e.length&&u.getInitialOptions().autoLoadRequiredData)return p.loadRecords(e,{useCache:!0})});if(s(e))return u.setInitialLoading(!0),n.notify(),i.notify(),Promise.resolve(e).then(()=>{u.setInitialLoading(!1),n.notify(),i.notify(),r.onInitialLoaded.emit()});r.onInitialLoaded.emit()}()),Promise.resolve(t)},stop(){u.isRunning()&&(f.stop(),u.setRunning(!1))}}));return j}({options:e});function r(e){let r=t.isRunning();r&&t.stop(),e(),t.isDev()&&t.invalidate(),r&&t.run()}t.isDev()&&t.invalidate();let n=Object.freeze({on:t.on,setEmitterActive:t.setEmitterActive,getLanguage:t.getLanguage,getPendingLanguage:t.getPendingLanguage,changeLanguage:t.changeLanguage,changeTranslation:t.changeTranslation,addActiveNs:t.addActiveNs,removeActiveNs:t.removeActiveNs,loadRequired:t.loadRequired,loadMatrix:t.loadMatrix,loadRecords:t.loadRecords,loadRecord:t.loadRecord,addStaticData:t.addStaticData,getRecord:t.getRecord,getAllRecords:t.getAllRecords,isLoaded:t.isLoaded,getRequiredDescriptors:t.getRequiredDescriptors,isInitialLoading:t.isInitialLoading,isLoading:t.isLoading,isFetching:t.is
1Fetching,isRunning:t.isRunning,run:t.run,stop:t.stop,t:t.t,highlight:t.highlight,findPositions:t.findPositions,getInitialOptions:t.getInitialOptions,isDev:t.isDev,wrap:t.wrap,unwrap:t.unwrap,overrideCredentials(e){r(()=>t.overrideCredentials(e))},addPlugin(e){e&&r(()=>t.addPlugin(n,e))},updateOptions(e){e&&r(()=>t.init(e))}});return n}(k(e.options,t));return e.plugins.forEach(r.addPlugin),r}});return t})().use(F())}(()=>{if("undefined"==typeof window)return!1;try{return"undefined"!=typeof sessionStorage&&sessionStorage}catch(e){return console.error("sessionStorage not available",e),!1}})()&&(F=()=>e=>{let t=function(){let e;return{update:async function(t){null==e||e();let{cancel:r,promise:n}=function({message:e,recievingMessage:t,data:r,attempts:n=1,timeout:i=300}){let s=!1,o=()=>new Promise((n,s)=>{let o=function(e,t){let r=r=>{var n,i;e.includes(null==(n=r.data)?void 0:n.type)&&t(null==(i=r.data)?void 0:i.data)};return window.addEventListener("message",r,!1),{unsubscribe(){window.removeEventListener("message",r)}}}(t,function(e){clearTimeout(a),l(),n(e)});window.postMessage({type:e,data:r},window.origin);let a=setTimeout(function(){l(),s()},i);function l(){o.unsubscribe()}});return{cancel(){s=!0},promise:(async()=>{for(let e=0;e<n;e++){if(s)return new Promise(()=>{});try{return await o()}catch(e){continue}}if(!s)throw`Didn't recieve ${t.join(" or ")} in time.`;return new Promise(()=>{})})()}}({message:"TOLGEE_READY",recievingMessage:["TOLGEE_PLUGIN_READY","TOLGEE_PLUGIN_UPDATED"],data:t,attempts:4});return e=r,n}}}(),r=async()=>{let e=await function(e){var t;return M||(M=(t=`https://cdn.jsdelivr.net/npm/@tolgee/web@${e}/dist/tolgee-in-context-tools.umd.min.js`,new Promise((e,r)=>{let n=document.createElement("script");n.src=t,n.addEventListener("load",()=>e()),n.addEventListener("error",e=>r(e.error)),document.head.appendChild(n)})).then(()=>window["@tolgee/in-context-tools"].InContextTools)),M}("prerelease");return t=>{let r=j();return t.addPlugin(e({credentials:r})),t}};return e.on("running",({value:r})=>{r&&function(e){"loading"!==document.readyState?Promise.resolve().then(()=>{e()}):document.addEventListener&&document.addEventListener("DOMContentLoaded",e)}(()=>{t.update({uiPresent:!0,uiVersion:void 0,mode:e.isDev()?"development":"production",config:{apiUrl:e.getInitialOptions().apiUrl||"",apiKey:e.getInitialOptions().apiKey||""}}).catch(B)})}),j()&&r().then(t=>{e.addPlugin(t)}).catch(e=>{console.error("Tolgee: Failed to load in-context tools"),console.error(e)}),e});let H=()=>e=>e},75836:(e,t,r)=>{"use strict";r.d(t,{U:()=>s,a:()=>i});var n=r(16801);function i(e,t,r,i){var s,l,u,c,d;let h=(0,n.j)(o).current;return s=h,l=e,u=t,c=r,d=i,(s.refs[0]!==l||s.refs[1]!==u||s.refs[2]!==c||s.refs[3]!==d)&&a(h,[e,t,r,i]),h.callback}function s(e){var t,r;let i=(0,n.j)(o).current;return t=i,r=e,(t.refs.length!==r.length||t.refs.some((e,t)=>e!==r[t]))&&a(i,e),i.callback}function o(){return{callback:null,cleanup:null,refs:[]}}function a(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=r){let n=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(null!=i)switch(typeof i){case"function":{let t=i(r);"function"==typeof t&&(n[e]=t);break}case"object":i.current=r}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let r=t[e];if(null!=r)switch(typeof r){case"function":{let t=n[e];"function"==typeof t?t():r(null);break}case"object":r.current=null}}}}}}},76284:(e,t,r)=>{"use strict";r.d(t,{f:()=>o});var n=r(14343),i=r(24436),s=r(49940);function o(e){let t=n.useCallback(t=>void 0===e?s.tE:e.subscribeStore(t),[e]),r=n.useCallback(()=>void 0===e?void 0:e.store,[e]);return(0,i.useSyncExternalStore)(t,r,()=>e?.serverStore)}},76317:(e,t,r)=>{e.exports=r(81325)},77423:(e,t,r)=>{"use strict";r.d(t,{KP:()=>a,NR:()=>l});var n=r(16801),i=r(3166);globalThis.requestAnimationFrame;class s{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1)t[r]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}}let o=new s;class a{static create(){return new a}static request(e){return o.request(e)}static cancel(e){return o.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=o.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(o.cancel(this.currentId),this.currentId=null)};
vendor: 9,211 bytes, line 1
1disposeEffect=()=>this.cancel}function l(){let e=(0,n.j)(a.create).current;return(0,i.y)(e.disposeEffect),e}},77837:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(85343);let i={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};i.node;let s=(0,n.A)(i)},78170:(e,t,r)=>{"use strict";r.d(t,{ll:()=>R,rD:()=>O,UU:()=>A,ER:()=>P,cY:()=>k,iD:()=>E,BN:()=>T,Ej:()=>C});var n=r(38802);function i(e,t,r){let i,{reference:s,floating:o}=e,a=(0,n.TV)(t),l=(0,n.Dz)(t),u=(0,n.sq)(l),c=(0,n.C0)(t),d=s.x+s.width/2-o.width/2,h=s.y+s.height/2-o.height/2,f=s[u]/2-o[u]/2;switch(c){case"top":i={x:d,y:s.y-o.height};break;case"bottom":i={x:d,y:s.y+s.height};break;case"right":i={x:s.x+s.width,y:h};break;case"left":i={x:s.x-o.width,y:h};break;default:i={x:s.x,y:s.y}}let p=(0,n.Sg)(t);return p&&(i[l]+=f*("end"===p?1:-1)*(r&&"y"===a?-1:1)),i}async function s(e,t){var r;void 0===t&&(t={});let{x:i,y:s,platform:o,rects:a,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=(0,n._3)(t,e),g=(0,n.nI)(p),v=l[f?"floating"===h?"reference":"floating":h],m=(0,n.B1)(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(v)))||r?v:v.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),y="floating"===h?{x:i,y:s,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),_=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},w=(0,n.B1)(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:u}):y);return{top:(m.top-w.top+g.top)/_.y,bottom:(w.bottom-m.bottom+g.bottom)/_.y,left:(m.left-w.left+g.left)/_.x,right:(w.right-m.right+g.right)/_.x}}let o=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:l}=r,u=l.detectOverflow?l:{...l,detectOverflow:s},c=await (null==l.isRTL?void 0:l.isRTL(t)),d=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:f}=i(d,n,c),p=n,g=0,v={};for(let r=0;r<a.length;r++){let s=a[r];if(!s)continue;let{name:m,fn:y}=s,{x:b,y:_,data:w,reset:x}=await y({x:h,y:f,initialPlacement:n,placement:p,strategy:o,middlewareData:v,rects:d,platform:u,elements:{reference:e,floating:t}});h=null!=b?b:h,f=null!=_?_:f,v[m]={...v[m],...w},x&&g<50&&(g++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(d=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:h,y:f}=i(d,p,c)),r=-1)}return{x:h,y:f,placement:p,strategy:o,middlewareData:v}},a=new Set(["left","top"]);async function l(e,t){let{placement:r,platform:i,elements:s}=e,o=await (null==i.isRTL?void 0:i.isRTL(s.floating)),l=(0,n.C0)(r),u=(0,n.Sg)(r),c="y"===(0,n.TV)(r),d=a.has(l)?-1:1,h=o&&c?-1:1,f=(0,n._3)(t,e),{mainAxis:p,crossAxis:g,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return u&&"number"==typeof v&&(g="end"===u?-1*v:v),c?{x:g*h,y:p*d}:{x:p*d,y:g*h}}var u=r(10352);function c(e){let t=(0,u.L9)(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,s=(0,u.sb)(e),o=s?e.offsetWidth:r,a=s?e.offsetHeight:i,l=(0,n.LI)(r)!==o||(0,n.LI)(i)!==a;return l&&(r=o,i=a),{width:r,height:i,$:l}}function d(e){return(0,u.vq)(e)?e:e.contextElement}function h(e){let t=d(e);if(!(0,u.sb)(t))return(0,n.Jx)(1);let r=t.getBoundingClientRect(),{width:i,height:s,$:o}=c(t),a=(o?(0,n.LI)(r.width):r.width)/i,l=(o?(0,n.LI)(r.height):r.height)/s;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let f=(0,n.Jx)(0);function p(e){let t=(0,u.zk)(e);return(0,u.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:f}function g(e,t,r,i){var s;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),a=d(e),l=(0,n.Jx)(1);t&&(i?(0,u.vq)(i)&&(l=h(i)):l=h(e));let c=(void 0===(s=r)&&(s=!1),i&&s&&i===(0,u.zk)(a))?p(a):(0,n.Jx)(0),f=(o.left+c.x)/l.x,g=(o.top+c.y)/l.y,v=o.width/l.x,m=o.height/l.y;if(a&&i){let e=(0,u.zk)(a),t=(0,u.vq)(i)?(0,u.zk)(i):i,r=e,n=(0,u._m)(r);for(;n&&t!==r;){let e=h(n),t=n.getBoundingClientRect(),i=(0,u.L9)(n),s=t.left+(n.clientLeft+parseFloat(i.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(i.paddingTop))*e.y;f*=e.x,g*=e.y,v*=e.x,m*=e.y,f+=s,g+=o,r=(0,u.zk)(n),n=(0,u._m)(r)}}return(0,n.B1)({width:v,height:m,x:f,y:g})}function v(e,t){let r=(0,u.CP)(e).scrollLeft;return t?t.left+r:g((0,u.ep)(e)).left+r}function m(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-v(e,r),y:r.top+t.scrollTop}}function y(e,t,r){let i;if("viewport"===t||"layoutViewport"===t)i=function(e,t,r){void 0===r&&(r="viewport");let n="layoutViewport"===r,i=(0,u.zk)(e),s=(0,u.ep)(e),o=i.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,d=0;if(o){let e=!(0,u.Tc)()||"fixed"===t;n?e||(c=-o.offsetLeft,d=-o.offsetTop):(a=o.width,l=o.height,e&&(c=o.offsetLeft,d=o.offsetTop))}if(0>=v(s)){let e=s.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(s.clientWidth-t.clientWidth-n),o="stable both-edges"===getComputedStyle(s).scrollbarGutter?i/2:i;o<=25&&(a-=o)}return{width:a,height:l,x:c,y:d}}(e,r,t);else if("document"===t)i=function(e){let t=(0,u.CP)(e),r=e.ownerDocument.body,i=(0,n.T9)(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=(0,n.T9)(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),o=-t.scrollLeft+v(e),a=-t.scrollTop;return"rtl"===(0,u.L9)(r).direction&&(o+=(0,n.T9)(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}((0,u.ep)(e));else if((0,u.vq)(t))i=function(e,t){let r=g(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=h(e),o=e.clientWidth*s.x,a=e.clientHeight*s.y;return{width:o,height:a,x:i*s.x,y:n*s.y}}(t,r);else{let r=p(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return(0,n.B1)(i)}function b(e){return"static"===(0,u.L9)(e).position}function _(e,t){if(!(0,u.sb)(e)||"fixed"===(0,u.L9)(e).position)return null;if(t)return t(e);let r=e.offsetParent;return(0,u.ep)(e)===r&&(r=r.ownerDocument.body),r}function w(e,t){let r=(0,u.zk)(e);if((0,u.Tf)(e))return r;if(!(0,u.sb)(e)){let t=(0,u.$4)(e);for(;t&&!(0,u.eu)(t);){if((0,u.vq)(t)&&!b(t))return t;t=(0,u.$4)(t)}return r}let n=_(e,t);for(;n&&(0,u.Lv)(n)&&b(n);)n=_(n,t);return n&&(0,u.eu)(n)&&b(n)&&!(0,u.sQ)(n)?r:n||(0,u.gJ)(e)||r}let x=async function(e){let t=this.getOffsetParent||w,r=this.getDimensions,i=await r(e.floating);return{reference:function(e,t,r){let i=(0,u.sb)(t),s=(0,u.ep)(t),o="fixed"===r,a=g(e,!0,o,t),l={scrollLeft:0,scrollTop:0},c=(0,n.Jx)(0);if((i||!o)&&(("body"!==(0,u.mq)(t)||(0,u.ZU)(s))&&(l=(0,u.CP)(t)),i)){let e=g(t,!0,o,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!i&&s&&(c.x=v(s));let d=!s||i||o?(0,n.Jx)(0):m(s,l);return{x:a.left+l.scrollLeft-c.x-d.x,y:a.top+l.scrollTop-c.y-d.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},E={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:i,strategy:s}=e,o="fixed"===s,a=(0,u.ep)(i),l=!!t&&(0,u.Tf)(t.floating);if(i===a||l&&o)return r;let c={scrollLeft:0,scrollTop:0},d=(0,n.Jx)(1),f=(0,n.Jx)(0),p=(0,u.sb)(i);if((p||!o)&&(("body"!==(0,u.mq)(i)||(0,u.ZU)(a))&&(c=(0,u.CP)(i)),p)){let e=g(i);d=h(i),f.x=e.x+i.clientLeft,f.y=e.y+i.clientTop}let v=!a||p||o?(0,n.Jx)(0):m(a,c);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+f.x+v.x,y:r.y*d.y-c.scrollTop*d.y+f.y+v.y}},getDocumentElement:u.ep,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:s}=e,o=[..."clippingAncestors"===r?(0,u.Tf)(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=(0,u.v9)(e,[],!1).filter(e=>(0,u.vq)(e)&&"body"!==(0,u.mq)(e)),i=null,s="fixed"===(0,u.L9)(e).position,o=s?(0,u.$4)(e):e;for(;(0,u.vq)(o)&&!(0,u.eu)(o);){let e=(0,u.L9)(o),t=(0,u.sQ)(o),r=i?i.position:s?"fixed":"";t||"fixed"!==r&&("absolute"!==r||"static"!==e.position)?i=e:n=n.filter(e=>e!==o),o=(0,u.$4)(o)}return t.set(e,n),n}(t,this._c):[].concat(r),i],a=y(t,o[0],s),l=a.top,c=a.right,d=a.bottom,h=a.left;for(let e=1;e<o.length;e++){let r=y(t,o[e],s);l=(0,n.T9)(r.top,l),c=(0,n.jk)(r.right,c),d=(0,n.jk)(r.bottom,d),h=(0,n.T9)(r.left,h)}return{width:c-h,height:d-l,x:h,y:l}},getOffsetParent:w,getElementRects:x,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:r}=c(e);return{width:t,height:r}},getScale:h,isElement:u.vq,isRTL:function(e){return"rtl"===(0,u.L9)(e).direction}};function S(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function R(e,t,r,i){let s;void 0===i&&(i={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:h=!1}=i,f=d(e),p=o||a?[...f?(0,u.v9)(f):[],...t?(0,u.v9)(t):[]]:[];
1p.forEach(e=>{o&&e.addEventListener("scroll",r),a&&e.addEventListener("resize",r)});let v=f&&c?function(e,t,r){let i,s=null,o=(0,u.ep)(e);function a(){var e;clearTimeout(i),null==(e=s)||e.disconnect(),s=null}function l(r,u){void 0===r&&(r=!1),void 0===u&&(u=1),a();let c=e.getBoundingClientRect(),{left:d,top:h,width:f,height:p}=c;if(r||t(),!f||!p)return;let g=(0,n.RI)(h),v=(0,n.RI)(o.clientWidth-(d+f)),m={rootMargin:-g+"px "+-v+"px "+-(0,n.RI)(o.clientHeight-(h+p))+"px "+-(0,n.RI)(d)+"px",threshold:(0,n.T9)(0,(0,n.jk)(1,u))||1},y=!0;function b(t){let r=t[0].intersectionRatio;if(!S(c,e.getBoundingClientRect()))return l();if(r!==u){if(!y)return l();r?l(!1,r):i=setTimeout(()=>{l(!1,1e-7)},1e3)}y=!1}try{s=new IntersectionObserver(b,{...m,root:o.ownerDocument})}catch(e){s=new IntersectionObserver(b,m)}s.observe(e)}let c=(0,u.zk)(e),d=()=>l(r);return c.addEventListener("resize",d),l(!0),()=>{c.removeEventListener("resize",d),a()}}(f,r,a):null,m=-1,y=null;l&&(y=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&y&&t&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),r()}),f&&!h&&y.observe(f),t&&y.observe(t));let b=h?g(e):null;return h&&function t(){let n=g(e);b&&!S(b,n)&&r(),b=n,s=requestAnimationFrame(t)}(),r(),()=>{var e;p.forEach(e=>{o&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)}),null==v||v(),null==(e=y)||e.disconnect(),y=null,h&&cancelAnimationFrame(s)}}let k=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:s,placement:o,middlewareData:a}=t,u=await l(t,e);return o===(null==(r=a.offset)?void 0:r.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:i+u.x,y:s+u.y,data:{...u,placement:o}}}}},T=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:s,platform:o}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=(0,n._3)(e,t),d={x:r,y:i},h=await o.detectOverflow(t,c),f=(0,n.TV)(s),p=(0,n.PG)(f),g=d[p],v=d[f],m=(e,t)=>(0,n.qE)(t+h["y"===e?"top":"left"],t,t-h["y"===e?"bottom":"right"]);a&&(g=m(p,g)),l&&(v=m(f,v));let y=u.fn({...t,[p]:g,[f]:v});return{...y,data:{x:y.x-r,y:y.y-i,enabled:{[p]:a,[f]:l}}}}}},A=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,i,s,o,a;let{placement:l,middlewareData:u,rects:c,initialPlacement:d,platform:h,elements:f}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:b=!0,..._}=(0,n._3)(e,t);if(null!=(r=u.arrow)&&r.alignmentOffset)return{};let w=(0,n.C0)(l),x=(0,n.TV)(d),E=(0,n.C0)(d)===d,S=await (null==h.isRTL?void 0:h.isRTL(f.floating)),R=v||(E||!b?[(0,n.bV)(d)]:(0,n.WJ)(d)),k="none"!==y;!v&&k&&R.push(...(0,n.lP)(d,b,y,S));let T=[d,...R],A=await h.detectOverflow(t,_),C=[],P=(null==(i=u.flip)?void 0:i.overflows)||[];if(p&&C.push(A[w]),g){let e=(0,n.w7)(l,c,S);C.push(A[e[0]],A[e[1]])}if(P=[...P,{placement:l,overflows:C}],!C.every(e=>e<=0)){let e=((null==(s=u.flip)?void 0:s.index)||0)+1,t=T[e];if(t&&("alignment"!==g||x===(0,n.TV)(t)||P.every(e=>(0,n.TV)(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:P},reset:{placement:t}};let r=null==(o=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(m){case"bestFit":{let e=null==(a=P.filter(e=>{if(k){let t=(0,n.TV)(e.placement);return t===x||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case"initialPlacement":r=d}if(l!==r)return{reset:{placement:r}}}return{}}}},C=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let r,i,{placement:s,rects:o,platform:a,elements:l}=t,{apply:u=()=>{},...c}=(0,n._3)(e,t),d=await a.detectOverflow(t,c),h=(0,n.C0)(s),f=(0,n.Sg)(s),p="y"===(0,n.TV)(s),{width:g,height:v}=o.floating;"top"===h||"bottom"===h?(r=h,i=f===(await (null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(i=h,r="end"===f?"top":"bottom");let m=v-d.top-d.bottom,y=g-d.left-d.right,b=(0,n.jk)(v-d[r],m),_=(0,n.jk)(g-d[i],y),w=t.middlewareData.shift,x=!w,E=b,S=_;null!=w&&w.enabled.x&&(S=y),null!=w&&w.enabled.y&&(E=m),x&&!f&&(p?S=g-2*(0,n.T9)(d.left,d.right):E=v-2*(0,n.T9)(d.top,d.bottom)),await u({...t,availableWidth:S,availableHeight:E});let R=await a.getDimensions(l.floating);return g!==R.width||v!==R.height?{reset:{rects:!0}}:{}}}},P=function(e){return void 0===e&&(e={}),{options:e,fn(t){var r,i,s,o;let{x:l,y:u,placement:c,rects:d,middlewareData:h}=t,{offset:f=0,mainAxis:p=!0,crossAxis:g=!0}=(0,n._3)(e,t),v={x:l,y:u},m=(0,n.TV)(c),y=(0,n.PG)(m),b=v[y],_=v[m],w=(0,n._3)(f,t),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:null!=(r=w.mainAxis)?r:0,crossAxis:null!=(i=w.crossAxis)?i:0};if(p){let e="y"===y?"height":"width",t=d.reference[y]-d.floating[e]+x.mainAxis,r=d.reference[y]+d.reference[e]-x.mainAxis;b<t?b=t:b>r&&(b=r)}if(g){let e="y"===y?"width":"height",t=a.has((0,n.C0)(c)),r=d.reference[m]-d.floating[e]+(t&&(null==(s=h.offset)?void 0:s[m])||0)+(t?0:x.crossAxis),i=d.reference[m]+d.reference[e]+(t?0:(null==(o=h.offset)?void 0:o[m])||0)-(t?x.crossAxis:0);_<r?_=r:_>i&&(_=i)}return{[y]:b,[m]:_}}}},O=(e,t,r)=>{let n=new Map,i=null!=r?r:{},s={...E,...i.platform,_c:n};return o(e,t,{...i,platform:s})}},79143:(e,t,r)=>{"use strict";function n(e,t,r=Object.is){let{length:i}=e;if(i!==t.length)return!1;for(let n=0;n<i;n+=1)if(!r(e[n],t[n]))return!1;return!0}r.d(t,{B:()=>n})},79834:(e,t,r)=>{"use strict";function n(){let e=new Map;
1return{emit(t,r){e.get(t)?.forEach(e=>e(r))},on(t,r){e.has(t)||e.set(t,new Set),e.get(t).add(r)},off(t,r){e.get(t)?.delete(r)}}}r.d(t,{d:()=>n})},80231:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{apiKey:t,...r}=e,n={...r,key:t},{html:a}=(0,s.GoogleMapsEmbed)(n);return(0,i.jsx)(o.default,{height:n.height||null,width:n.width||null,html:a,dataNtpc:"GoogleMapsEmbed"})};let i=r(15383),s=r(44223),o=n(r(47110))},81025:e=>{"use strict";e.exports=JSON.parse('{"id":"google-analytics","description":"Install a Google Analytics tag on your website","website":"https://analytics.google.com/analytics/web/","scripts":[{"url":"https://www.googletagmanager.com/gtag/js","params":["id"],"strategy":"worker","location":"head","action":"append"},{"code":"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag(\'js\',new Date());gtag(\'config\',\'${args.id}\')","strategy":"worker","location":"head","action":"append"}]}')},81032:(e,t,r)=>{"use strict";r.d(t,{G:()=>o,H:()=>s});var n=r(7277),i=r(14343);let s=i.createContext(void 0);function o(e=!1){let t=i.useContext(s);if(void 0===t&&!e)throw Error((0,n.A)(16));return t}},81316:(e,t,r)=>{"use strict";r.d(t,{$E:()=>_,Bo:()=>l,Dq:()=>m,F4:()=>o,L5:()=>T,LO:()=>w,N7:()=>s,Np:()=>a,QJ:()=>y,SR:()=>u,Ui:()=>i,Vh:()=>R,Wn:()=>b,Xn:()=>g,_J:()=>p,c:()=>S,dv:()=>n,jv:()=>v,p:()=>x,pf:()=>h,qs:()=>f,r9:()=>E,ru:()=>d,ux:()=>c,zJ:()=>k});let n="none",i="trigger-press",s="trigger-hover",o="trigger-focus",a="outside-press",l="item-press",u="close-press",c="chip-remove-press",d="track-press",h="input-change",f="input-clear",p="input-press",g="focus-out",v="escape-key",m="list-navigation",y="keyboard",b="pointer",_="drag",w="cancel-open",x="sibling-open",E="disabled",S="missing",R="initial",k="imperative-action",T="window-resize"},81358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},81532:(e,t,r)=>{"use strict";r.d(t,{H:()=>f});var n=r(14343),i=r(24436),s=r(45150),o=r(63604),a=r(29385);let l=(0,o._)(19)?function(e,t,r,s,o){let l,u=(0,a.iE)();if(!u){let a=n.useCallback(()=>t(e.getSnapshot(),r,s,o),[e,t,r,s,o]);return(0,i.useSyncExternalStore)(e.subscribe,a,a)}let c=u.syncIndex;return u.syncIndex+=1,u.didInitialize?(l=u.syncHooks[c]).store===e&&l.selector===t&&Object.is(l.a1,r)&&Object.is(l.a2,s)&&Object.is(l.a3,o)||(l.store!==e&&(u.didChangeStore=!0),l.store=e,l.selector=t,l.a1=r,l.a2=s,l.a3=o,l.value=t(e.getSnapshot(),r,s,o)):(l={store:e,selector:t,a1:r,a2:s,a3:o,value:t(e.getSnapshot(),r,s,o)},u.syncHooks.push(l)),l.value}:function(e,t,r,n,i){return(0,s.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,r,n,i))};(0,a.kz)({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let r=0;r<e.syncHooks.length;r+=1){let n=e.syncHooks[r],i=n.selector(n.store.state,n.a1,n.a2,n.a3);Object.is(n.value,i)||(t=!0,n.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let r=new Set;for(let t of e.syncHooks)r.add(t.store);let n=[];for(let e of r)n.push(e.subscribe(t));return()=>{for(let e of n)e()}}),(0,i.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});class u{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let r of this.listeners){if(t!==this.updateTick)return;r(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,r,n){return l(this,e,t,r,n)}}var c=r(41790),d=r(73858),h=r(49940);class f extends u{constructor(e,t={},r){super(e),this.context=t,this.selectors=r}useSyncedValue(e,t){n.useDebugValue(e);let r=this;(0,d.g)(()=>{r.state[e]!==t&&r.set(e,t)},[r,e,t])}useSyncedValueWithCleanup(e,t){let r=this;(0,d.g)(()=>(r.state[e]!==t&&r.set(e,t),()=>{r.set(e,void 0)}),[r,e,t])}useSyncedValues(e){let t=this,r=Object.values(e);(0,d.g)(()=>{t.update(e)},[t,...r])}useControlledProp(e,t){n.useDebugValue(e);let r=this,i=void 0!==t;(0,d.g)(()=>{i&&!Object.is(r.state[e],t)&&r.setState({...r.state,[e]:t})},[r,e,t,i])}select(e,t,r,n){return(0,this.selectors[e])(this.state,t,r,n)}
1useState(e,t,r,i){return n.useDebugValue(e),l(this,this.selectors[e],t,r,i)}useContextCallback(e,t){n.useDebugValue(e);let r=(0,c.K)(t??h.tE);this.context[e]=r}useStateSetter(e){let t=n.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let r,n=(r="function"==typeof e?e:this.selectors[e])(this.state);return t(n,n,this),this.subscribe(e=>{let i=r(e);if(!Object.is(n,i)){let e=n;n=i,t(i,e,this)}})}}},81905:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=t.sendGTMEvent=t.GoogleTagManager=t.YouTubeEmbed=t.GoogleMapsEmbed=void 0;var i=r(80231);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n(i).default}});var s=r(34224);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return n(s).default}});var o=r(96647);Object.defineProperty(t,"GoogleTagManager",{enumerable:!0,get:function(){return o.GoogleTagManager}}),Object.defineProperty(t,"sendGTMEvent",{enumerable:!0,get:function(){return o.sendGTMEvent}});var a=r(97275);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return a.GoogleAnalytics}}),Object.defineProperty(t,"sendGAEvent",{enumerable:!0,get:function(){return a.sendGAEvent}})},82229:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(85343);let i={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};i.node;let s=(0,n.A)(i)},82964:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(85343);let i={name:"user-cog",size:24,node:[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};i.node;let s=(0,n.A)(i)},83466:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return i}});let n=r(83644);function i(e,t,i,s){{let o=r(69310).normalizeLocalePath,a=r(83745).detectDomainLocale,l=t||o(e,i).detectedLocale,u=a(s,void 0,l);if(u){let t="http"+(u.http?"":"s")+"://",r=l===u.defaultLocale?"":"/"+l;return""+t+u.domain+(0,n.normalizePathTrailingSlash)(""+r+e)}return!1}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84016:(e,t,r)=>{"use strict";r.d(t,{D:()=>i,M:()=>s});var n=r(14343);let i=n.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function s(){return n.useContext(i)}},84249:(e,t,r)=>{"use strict";r.d(t,{BT:()=>i,Ed:()=>n,Jd:()=>l,RJ:()=>o,eR:()=>s,il:()=>a});let n="data-base-ui-focusable",i="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",s="ArrowLeft",o="ArrowRight",a="ArrowUp",l="ArrowDown"},84413:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});var n=r(15383),i=r(82229),s=r(58811);function o(e){let{className:t,...r}=e;return(0,n.jsx)(i.A,{role:"status","aria-label":"Cargando","data-slot":"spinner",className:(0,s.cn)("size-4 animate-spinner",t),...r})}},84697:(e,t,r)=>{"use strict";r.d(t,{m:()=>s,p:()=>o});var n=r(7277),i=r(14343);let s=i.createContext(void 0);function o(){let e=i.useContext(s);if(void 0===e)throw Error((0,n.A)(26));return e}},84949:(e,t,r)=>{"use strict";r.d(t,{GW:()=>f,LM:()=>p,jL:()=>h,qV:()=>d});var n=r(57435),i=r(64784),s=r(21014);let o={[s.L]:""},a={[s.L]:"",[s.V]:""},l={[i.ho]:""},u={[i.$h]:""},c={[i.ii]:""},d={open:e=>e?o:null},h={open:e=>e?a:null},f={open:e=>e?l:u,anchorHidden:e=>e?c:null},p={...f,...n.G}},85343:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14343);let i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},o=(0,n.createContext)({}),a=(0,n.forwardRef)((e,t)=>{var r,a,l;let{color:u,size:c,width:d,height:h,strokeWidth:f,absoluteStrokeWidth:p,nonScalingStroke:g,className:v="",children:m,iconNode:y=[],icon:b={node:y,aliases:[],size:24},..._}=e,{size:w=24,strokeWidth:x=2,absoluteStrokeWidth:E=!1,nonScalingStroke:S=!1,color:R="currentColor",className:k=""}=null!=(r=(0,n.useContext)(o))?r:{},T=!!m||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(_),[A,C,P=[]]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){var t,r,n,o,a,l,u,c,d,h,f,p,g,v,m;let y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=null!=(n=y.attributeNames)?n:{},_=e=>{var t;return null!=(t=b[e])?t:e},w=null!=(a=null!=(o=e.size)?o:e.width)?a:s.width,x=null!=(u=null!=(l=e.size)?l:e.height)?u:s.height,E=null!=(c=null==(t=e.aliases)?void 0:t.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>"lucide-".concat(e)))?c:[],S=[...e.name?["lucide-".concat(e.name)]:[],...E],R=null!=(d=null==(r=y.className)?void 0:r.split(" ").filter(
1Boolean))?d:[],k=!1===y.includeDefaultClasses?i(...R):i("lucide",...S,...R),T=y.absoluteStrokeWidth?Number(null!=(h=y.strokeWidth)?h:s["stroke-width"])*Number(null!=(p=null!=(f=e.size)?f:e.width)?p:s.width)/Number(null!=(v=null!=(g=y.size)?g:y.width)?v:s.width):null!=(m=y.strokeWidth)?m:s["stroke-width"];return["svg",{...Object.entries(s).reduce((e,t)=>{let[r,n]=t;return e[_(r)]=n,e},{}),..."color"in y&&y.color&&{[_("stroke")]:y.color},..."size"in y&&null!=y.size&&{[_("width")]:y.size,[_("height")]:y.size},..."width"in y&&null!=y.width&&{[_("width")]:y.width},..."height"in y&&null!=y.height&&{[_("height")]:y.height},[_("stroke-width")]:T,...k&&{[_("class")]:k},[_("viewBox")]:"0 0 ".concat(w," ").concat(x),...!1===y.hasA11yProp?{[_("aria-hidden")]:"true"}:{},..."attributes"in y&&y.attributes},e.node.map(e=>{let[t,r,n]=e,i=y.nonScalingStroke?{[_("vector-effect")]:"non-scaling-stroke",...r}:r;return n?[t,i,n]:[t,i]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(b,{color:null!=u?u:R,width:null!=(a=null!=d?d:c)?a:w,height:null!=(l=null!=h?h:c)?l:w,strokeWidth:null!=f?f:x,absoluteStrokeWidth:null!=p?p:E,nonScalingStroke:null!=g?g:S,className:i(k,v),hasA11yProp:T,attributes:_});return(0,n.createElement)(A,{ref:t,...C},[...P.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(m)?m:[m]])});function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="string"==typeof e?function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:null==e?void 0:e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...r.length>0?{aliases:r}:{}}}(e,t,r):e,s=(0,n.forwardRef)((e,t)=>{let{className:r,...s}=e;return(0,n.createElement)(a,{ref:t,icon:i,className:r,...s})});return i.name&&(s.displayName=(e=>{let t=(e=>{let t="",r=!1;for(let n of e){if("-"===n||"_"===n||n<=" "){r=t.length>0;continue}0===t.length?t+=n.toLowerCase():t+=r?n.toUpperCase():n,r=!1}return t})(e);return t.charAt(0).toUpperCase()+t.slice(1)})(i.name)),s}},86085:(e,t,r)=>{e.exports=r(20055)},86674:(e,t,r)=>{"use strict";r.d(t,{C:()=>S});var n=r(14343),i=r(77423),s=r(73858),o=r(87190),a=r(41790),l=r(97120),u=r(33905),c=r(10352),d=r(2978),h=r(81316),f=r(72949),p=r(92751),g=r(84249),v=r(24082),m=r(3167),y=r(95838),b=r(68218);function _(e){return u.Fp&&0===e.movementX&&0===e.movementY}function w(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function x(e,t){return w(t,e===g.il||e===g.Jd,e===g.eR||e===g.RJ)}function E(e,t,r){return w(t,e===g.Jd,r?e===g.eR:e===g.RJ)||"Enter"===e||" "===e||""===e}function S(e,t){let{listRef:r,activeIndex:u,onNavigate:S=()=>{},enabled:R=!0,selectedIndex:k=null,allowEscape:T=!1,loopFocus:A=!1,nested:C=!1,rtl:P=!1,virtual:O=!1,focusItemOnOpen:I="auto",focusItemOnHover:M=!0,openOnArrowKeyDown:L=!0,disabledIndices:N,orientation:j="vertical",parentOrientation:B,id:F,resetOnPointerLeave:D=!0,externalTree:H,grid:U}=t,$=null!=U,z="rootStore"in e?e.rootStore:e,q=z.useState("open"),V=z.useState("floatingElement"),G=z.useState("domReferenceElement"),W=z.context.dataRef,K=(0,v.nd)(V),Y=(0,v.WZ)(G),X=(0,l.u)(K),J=(0,f.R1)(),Z=(0,f.cq)(H),Q=n.useRef(I),ee=n.useRef(k??-1),et=n.useRef(null),er=n.useRef(!0),en=(0,a.K)(e=>{S(-1===ee.current?null:ee.current,e)}),ei=n.useRef(!!V),es=n.useRef(q),eo=n.useRef(!1),ea=n.useRef(!1),el=n.useRef(null),eu=(0,l.u)(N),ec=(0,l.u)(q),ed=(0,l.u)(k),eh=(0,l.u)(D),ef=(0,i.NR)(),ep=(0,i.NR)(),eg=(0,a.K)(()=>{function e(e){O?Z?.events.emit("virtualfocus",e):el.current=(0,y.p)(e,{sync:eo.current,preventScroll:!0})}let t=r.current[ee.current],n=ea.current;t&&e(t),(eo.current?e=>e():e=>ef.request(e))(()=>{let i=r.current[ee.current]||t;i&&(t||e(i),ew&&(n||!er.current)&&i.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,s.g)(()=>{W.current.orientation=j},[W,j]),(0,s.g)(()=>{R&&(q&&V?(ee.current=k??-1,Q.current&&null!=k&&(ea.current=!0,en())
1):ei.current&&(ee.current=-1,en()))},[R,q,V,k,en]),(0,s.g)(()=>{if(R){if(!q){eo.current=!1;return}if(V)if(null==u){if(eo.current=!1,null!=ed.current)return;if(ei.current&&(ee.current=-1,eg()),(!es.current||!ei.current)&&Q.current&&(null!=et.current||!0===Q.current&&null==et.current)){let e=0,t=()=>{null==r.current[0]?(e<2&&(e?e=>ep.request(e):queueMicrotask)(t),e+=1):(ee.current=null==et.current||E(et.current,j,P)||C?(0,p.Zb)(r):(0,p.vB)(r),et.current=null,en())};t()}}else(0,p.du)(r.current,u)||(ee.current=u,eg(),ea.current=!1)}},[R,q,V,u,ed,C,r,j,P,en,eg,ep]),(0,s.g)(()=>{if(!R||V||!Z||O||!ei.current)return;let e=Z.nodesRef.current,t=e.find(e=>e.id===J)?.context?.elements.floating,r=(0,m.RS)((0,o.R)(G??t??null)),n=e.some(e=>e.context&&(0,m.gR)(e.context.elements.floating,r));t&&!n&&er.current&&t.focus({preventScroll:!0})},[R,V,G,Z,J,O]),(0,s.g)(()=>{es.current=q,ei.current=!!V}),(0,s.g)(()=>{q||(et.current=null,Q.current=I)},[q,I]);let ev=null!=u,em=(0,a.K)(e=>{if(!ec.current)return;let t=r.current.indexOf(e.currentTarget);-1!==t&&(ee.current!==t||u!==t)&&(ee.current=t,en(e))}),ey=(0,a.K)(()=>B??Z?.nodesRef.current.find(e=>e.id===J)?.context?.dataRef?.current.orientation),eb=(0,a.K)(()=>(0,p.Zb)(r,eu.current)),e_=(0,a.K)(e=>{if(er.current=!1,eo.current=!0,229===e.which||!ec.current&&e.currentTarget===X.current)return;if(C&&function(e,t,r,n){let i=r?e===g.RJ:e===g.eR,s=e===g.il;return"both"===t||"horizontal"===t&&n?"Escape"===e:w(t,i,s)}(e.key,j,P,$)){x(e.key,ey())||(0,b.jo)(e),z.setOpen(!1,(0,d.d)(h.Dq,e.nativeEvent)),(0,c.sb)(G)&&(O?Z?.events.emit("virtualfocus",G):G.focus());return}let t=ee.current,n=(0,p.Zb)(r,N),i=(0,p.vB)(r,N);if(Y||("Home"===e.key&&((0,b.jo)(e),ee.current=n,en(e)),"End"===e.key&&((0,b.jo)(e),ee.current=i,en(e))),null!=U){let t=U(e,ee.current,r,j,A,P,N,n,i);if(null!=t&&(ee.current=t,en(e)),"both"===j)return}if(x(e.key,j)){if((0,b.jo)(e),q&&!O&&(0,m.RS)(e.currentTarget.ownerDocument)===e.currentTarget){ee.current=E(e.key,j,P)?n:i,en(e);return}E(e.key,j,P)?A?t>=i?T&&t!==r.current.length?ee.current=-1:(eo.current=!1,ee.current=n):ee.current=(0,p.BF)(r.current,{startingIndex:t,disabledIndices:N}):ee.current=Math.min(i,(0,p.BF)(r.current,{startingIndex:t,disabledIndices:N})):A?t<=n?T&&-1!==t?ee.current=r.current.length:(eo.current=!1,ee.current=i):ee.current=(0,p.BF)(r.current,{startingIndex:t,decrement:!0,disabledIndices:N}):ee.current=Math.max(n,(0,p.BF)(r.current,{startingIndex:t,decrement:!0,disabledIndices:N})),(0,p.du)(r.current,ee.current)&&(ee.current=-1),en(e)}}),ew=n.useMemo(()=>({onFocus(e){eo.current=!0,em(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){!_(e)&&(eo.current=!0,ea.current=!1,M&&em(e))},onPointerLeave(e){if(!ec.current||!er.current||"touch"===e.pointerType)return;eo.current=!0;let t=e.relatedTarget;if(!(!M||r.current.includes(t))&&eh.current&&(el.current?.(),el.current=null,ee.current=-1,en(e),!O)){let e=X.current,t=(0,m.RS)((0,o.R)(e));e&&(0,m.gR)(e,t)&&e.focus({preventScroll:!0})}}}),[em,ec,X,M,r,en,eh,O]),ex=n.useMemo(()=>O&&q&&ev&&{"aria-activedescendant":`${F}-${u}`},[O,q,ev,F,u]),eE=n.useMemo(()=>({...!Y?ex:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&q&&!O){let t=(0,m.EW)(e.nativeEvent);if(t&&!(0,m.gR)(X.current,t))return;(0,b.jo)(e),z.setOpen(!1,(0,d.d)(h.Xn,e.nativeEvent)),(0,c.sb)(G)&&G.focus();return}e_(e)},onPointerMove(e){_(e)||(er.current=!0)}}),[ex,e_,X,Y,z,q,O,G]),eS=n.useMemo(()=>{function e(e){z.setOpen(!0,(0,d.d)(h.Dq,e.nativeEvent,e.currentTarget))}function t(e){"auto"===I&&(0,b.YF)(e.nativeEvent)&&(Q.current=!O)}function r(e){Q.current=I,"auto"===I&&(0,b.Pg)(e.nativeEvent)&&(Q.current=!0)}return{onKeyDown(t){var r,n;let i=z.select("open");er.current=!1;let s=t.key.startsWith("Arrow"),o=(r=t.key,n=ey(),w(n,P?r===g.eR:r===g.RJ,r===g.Jd)),a=x(t.key,j),l=(C?o:a)||"Enter"===t.key||""===t.key.trim();if(O&&i)return e_(t);if(i||L||!s){if(l){let e=x(t.key,ey());et.current=C&&e?null:t.key}if(C){o&&((0,b.jo)(t),i?(ee.current=eb(),en(t)):e(t));return}a&&(null!=ed.current&&(ee.current=ed.current),(0,b.jo)(t),!i&&L?e(t):e_(t),i&&en(t))}},onFocus(e){z.select("open")&&!O&&(ee.current=-1,en(e))},onPointerDown:r,onPointerEnter:r,onMouseDown:t,onClick:t}},[e_,I,eb,C,en,z,L,j,ey,P,ed,O]),eR=n.useMemo(()=>({...ex,...eS}),[ex,eS]);return n.useMemo(()=>R?{reference:eR,floating:eE,item:ew,trigger:eS}:{},[R,eR,eE,eS,ew])}},87190:(e,t,r)=>{"use strict";function n(e){return e?.ownerDocument||document}r.d(t,{R:()=>n})},87293:(e,t,r)=>{"use strict";function n(e){return null==e?void 0:`${e}-label`}function i(e,t){return e??t}r.d(t,{$:()=>n,_:()=>i})},87696:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},87944:(e,t,r)=>{"use strict";r.d(t,{K:()=>y});
1var n=r(10352),i=r(45848),s=r(33905),o=r(32601),a=r(87190),l=r(73858),u=r(73897),c=r(77423);let d={},h={},f="";function p(e,t){return(0,n.ZU)(e)?e:t}function g(e,t,r){return/hidden|clip/.test(e.getComputedStyle(p(t,r)).overflowY)}class v{lockCount=0;restore=null;timeoutLock=u.E.create();timeoutUnlock=u.E.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(0===this.lockCount||null!==this.restore)return;let t=(0,a.R)(e),r=t.documentElement,l=t.body,u=(0,n.zk)(r);if(g(u,r,l)){let t=new u.MutationObserver(()=>{g(u,r,l)||(t.disconnect(),this.restore=null,this.lock(e))}),n={attributes:!0};t.observe(r,n),t.observe(l,n),this.restore=()=>t.disconnect();return}let v=o.s4||!function(e){if("undefined"==typeof document)return!1;let t=(0,a.R)(e);return(0,n.zk)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=v?function(e){let t=(0,a.R)(e),r=p(t.documentElement,t.body),n={overflowY:r.style.overflowY,overflowX:r.style.overflowX};return Object.assign(r.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(r.style,n)}}(e):function(e){let t=(0,a.R)(e),r=t.documentElement,o=t.body,l=(0,n.zk)(r),u=0,g=0,v=!1,m=c.KP.create();if(s.Fp&&(l.visualViewport?.scale??1)!==1)return()=>{};function y(){let t=l.getComputedStyle(r),n=l.getComputedStyle(o),i=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";u=r.scrollTop,g=r.scrollLeft,d={scrollbarGutter:r.style.scrollbarGutter,overflowY:r.style.overflowY,overflowX:r.style.overflowX},f=r.style.scrollBehavior,h={position:o.style.position,height:o.style.height,width:o.style.width,boxSizing:o.style.boxSizing,overflowY:o.style.overflowY,overflowX:o.style.overflowX,scrollBehavior:o.style.scrollBehavior};let s=r.scrollHeight>r.clientHeight,c=r.scrollWidth>r.clientWidth,m="scroll"===t.overflowY||"scroll"===n.overflowY,y="scroll"===t.overflowX||"scroll"===n.overflowX,b=Math.max(0,l.innerWidth-o.clientWidth),_=Math.max(0,l.innerHe
1ight-o.clientHeight),w=parseFloat(n.marginTop)+parseFloat(n.marginBottom),x=parseFloat(n.marginLeft)+parseFloat(n.marginRight),E=p(r,o);if(v=function(e){if(!("undefined"!=typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"undefined"==typeof document)return!1;let t=(0,a.R)(e),r=t.documentElement,n=p(r,t.body),i=n.style.overflowY,s=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",n.style.overflowY="scroll";let o=n.offsetWidth;n.style.overflowY="hidden";let l=n.offsetWidth;return n.style.overflowY=i,r.style.scrollbarGutter=s,o===l}(e)){r.style.scrollbarGutter=i,E.style.overflowY="hidden",E.style.overflowX="hidden";return}Object.assign(r.style,{scrollbarGutter:i,overflowY:"hidden",overflowX:"hidden"}),(s||m)&&(r.style.overflowY="scroll"),(c||y)&&(r.style.overflowX="scroll"),Object.assign(o.style,{position:"relative",height:w||_?`calc(100dvh - ${w+_}px)`:"100dvh",width:x||b?`calc(100vw - ${x+b}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),o.scrollTop=u,o.scrollLeft=g,r.setAttribute("data-base-ui-scroll-locked",""),r.style.scrollBehavior="unset"}function b(){Object.assign(r.style,d),Object.assign(o.style,h),v||(r.scrollTop=u,r.scrollLeft=g,r.removeAttribute("data-base-ui-scroll-locked"),r.style.scrollBehavior=f)}y();let _=(0,i.q)(l,"resize",function(){b(),m.request(y)});return()=>{m.cancel(),b(),"function"==typeof l.removeEventListener&&_()}}(e)}}let m=new v;function y(e=!0,t=null){(0,l.g)(()=>{if(e)return m.acquire(t)},[e,t])}},88006:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let s=i(r(27438)),o=r(9957);t.YouTubeEmbed=e=>{var t=n(e,[]);return(0,o.formatData)(s.default,t)}},88545:(e,t,r)=>{"use strict";r.d(t,{v:()=>o});var n=r(14343),i=r(41790),s=r(42491);function o(e){let{enabled:t=!0,open:r,ref:o,batch:a=!1,onComplete:l}=e,u=(0,i.K)(l),c=(0,s.V)(o,r,a);n.useEffect(()=>{if(!t)return;let e=new AbortController;return c(u,e.signal),()=>{e.abort()}},[t,r,u,c])}},88900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(14343);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=s(e,n)),t&&(i.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89045:(e,t,r)=>{"use strict";function n(e){if(e){var t=e;for(var r in n.prototype)t[r]=n.prototype[r];return t}}r.d(t,{v:()=>n}),n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this},n.prototype.emitReserved=n.prototype.emit,n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},89470:(e,t,r)=>{"use strict";r.d(t,{s:()=>i});var n=r(14343);let i=(e,t,r)=>{let i=(0,n.useCallback)(e,r);(0,n.useEffect)(()=>{let e=setTimeout(()=>{i()},t);return()=>{clearTimeout(e)}},[i,t])}},91289:(e,t,r)=>{"use strict";let n,i,s;r.d(t,{IO:()=>c,T:()=>g,WD:()=>h});var o=r(14343),a=r(74687);let l={useSuspense:!1},u=()=>(n||(n=o.createContext(void 0)),n),c=({tolgee:e,options:t,children:r,fallback:n,ssr:i})=>{(0,o.useEffect)(()=>{(null==s?void 0:s.run)!==e.run&&(s&&s.stop(),s=e,e.run().catch(e=>{console.error(e)}).finally(()=>{p(!1)}))},[e]);let c=e,{language:d,staticData:h}="object"!=typeof i?{}:i;c=function(e,t,r,n=!0){let[i]=(0,o.useState)(()=>Object.assign(Object.assign({},e),{t(...t){let r=(0,a.hN)(...t);return e.t(Object.assign(Object.assign({},r),{noWrap:!0}))}})),[s,l]=(0,o.useState)(n);return(0,o.useEffect)(()=>
1{l(!1)},[]),(0,o.useMemo)(()=>{n&&(e.setEmitterActive(!1),e.addStaticData(r),e.changeLanguage(t),e.setEmitterActive(!0))},[t,r,e]),(0,o.useState)(()=>{if(!e.isLoaded()&&n){let r=e.getRequiredDescriptors(t),n=e.getAllRecords(),i=r.map(({namespace:e,language:t})=>e?`${e}:${t}`:t).filter(e=>!n.find(t=>(null==t?void 0:t.cacheKey)===e));console.warn(`Tolgee: Missing records in "staticData" for proper SSR functionality: ${i.map(e=>`"${e}"`).join(", ")}`)}}),s?i:e}(e,d,h,!!i);let[f,p]=(0,o.useState)(!c.isLoaded()),g=Object.assign(Object.assign({},l),t),v=u();return g.useSuspense?o.createElement(v.Provider,{value:{tolgee:c,options:g}},f?n:o.createElement(o.Suspense,{fallback:n||null},r)):o.createElement(v.Provider,{value:{tolgee:c,options:g}},f?n:r)},d=(e,t)=>{let{tolgee:r,options:n}=(()=>{let e=u(),t=(0,o.useContext)(e)||i;if(!t)throw Error("Couldn't find tolgee instance, did you forgot to use `TolgeeProvider`?");return t})(),s=(0,a.zb)(e),l=(0,a.MA)(s).join(":"),c=Object.assign(Object.assign({},n),t),{rerender:d,instance:h}=(()=>{let[e,t]=(0,o.useState)(0);return{instance:e,rerender:(0,o.useCallback)(()=>{t(e=>e+1)},[t])}})();(0,o.useRef)([]).current=[];let f=r.isLoaded(s);(0,o.useEffect)(()=>{let e=r.on("update",d);return()=>{e.unsubscribe()}},[l,r]),(0,o.useEffect)(()=>(r.addActiveNs(s),()=>r.removeActiveNs(s)),[l,r]);let p=(0,o.useCallback)(e=>{var t;let n=null!=(t=e.ns)?t:null==s?void 0:s[0];return r.t(Object.assign(Object.assign({},e),{ns:n}))},[r,h]);if(c.useSuspense&&!f)throw r.addActiveNs(s,!0);return{t:p,isLoading:!f}},h=(e,t)=>{let{t:r,isLoading:n}=d(e,t);return{t:(0,o.useCallback)((...e)=>r((0,a.hN)(...e)),[r]),isLoading:n}},f=e=>{let t=function(e){return Array.isArray(e)&&1===e.length?e[0]:e}(e);return Array.isArray(t)?t.map((e,t)=>o.createElement(o.Fragment,{key:t},e)):t},p=e=>{let t=e.keyName||e.children;void 0===t&&console.error("T component: keyName not defined");let r=e.defaultValue||(e.keyName?e.children:void 0),n=f(e.t({key:t,params:(e=>{if(!e)return;let t={};return Object.entries(e||{}).forEach(([e,r])=>{"function"==typeof r?t[e]=e=>r(f(e)):o.isValidElement(r)?t[e]=e=>void 0===r.props.children&&(null==e?void 0:e.length)?o.cloneElement(r,{},f(e)):o.cloneElement(r):t[e]=r}),t})(e.params),defaultValue:r,noWrap:e.noWrap,ns:e.ns,language:e.language}));return o.createElement(o.Fragment,null,n)},g=e=>{let{t}=d();return o.createElement(p,Object.assign({t:t},e))}},91934:(e,t,r)=>{"use strict";r.d(t,{P:()=>u,a:()=>c});var n=r(15383),i=r(14343),s=r(27542),o=r(27058),a=r(55630);let l=(0,i.createContext)({userStreams:[]}),u=e=>{let{children:t}=e,[r,u]=(0,i.useState)([]),[c,d]=(0,i.useState)(!1),{socket:h}=(0,s.c)(),{data:f}=(0,o.useSession)(),p=e=>{u(t=>[...t,e])},g=(0,i.useCallback)(e=>{let t=[...r],n=t.findIndex(t=>t.id===e.id);t[n]=e,u(t)},[r]),v=(0,i.useCallback)(e=>{u(r.filter(t=>t.id!==e))},[r]);return(0,i.useEffect)(()=>{(async()=>{if((null==f?void 0:f.user)&&!c)try{let e=await a.A.get("/user/live/".concat(f.user.tag));200===e.status&&u(e.data)}catch(e){console.warn("Could not load user live streams",e)}finally{d(!0)}})()},[null==f?void 0:f.user,c]),(0,i.useEffect)(()=>(null==h||h.on("addStream",p),null==h||h.on("updateStream",g),null==h||h.on("removeStream",v),()=>{null==h||h.off("addStream",p),null==h||h.off("updateStream",g),null==h||h.off("removeStream",v)}),[h,v,g]),(0,n.jsx)(l.Provider,{value:{userStreams:r},children:t})},c=()=>{let{userStreams:e}=(0,i.useContext)(l);return{userStreams:e}}},91945:(e,t,r)=>{"use strict";r.d(t,{o:()=>c,r:()=>s});var n=r(49940),i=r(54658);function s(e,t,r=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new i.K({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:r,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:n.t0,inactiveTriggerProps:n.t0,popupProps:n.t0}}let o=e=>e.triggerIdProp??e.activeTriggerId,a=e=>e.openProp??e.open,l=e=>(e.popupElement?.id??e.floatingId)||void 0;function u(e,t){return void 0!==t&&a(e)&&o(e)===t}let c={open:a,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:o,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:l,isTriggerActive:(e,t)=>
1void 0!==t&&o(e)===t,isOpenedByTrigger:(e,t)=>u(e,t),isMountedByTrigger:(e,t)=>void 0!==t&&o(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>!function(e,t){return!!u(e,t)||void 0!==t&&a(e)&&null==o(e)&&1===e.triggerCount}(e,t)?void 0:l(e),popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement}},92369:(e,t,r)=>{"use strict";r.d(t,{q:()=>o});var n=r(14343),i=r(73858),s=r(84016);function o(e={}){let{guess:t,label:r,metadata:a,textRef:l,index:u}=e,{register:c,unregister:d,subscribeMapChange:h,nextIndexRef:f}=(0,s.M)(),p=n.useRef(-1),[g,v]=n.useState(null==u&&t?()=>{if(-1===p.current){let e=f.current;f.current+=1,p.current=e}return p.current}:-1),m=u??g,y=n.useRef(null),b=n.useCallback(e=>{let t=y.current;t&&d(t),y.current=e,e&&c(e,{metadata:a??null,index:u??null,label:r,textRef:l})},[u,c,d,a,r,l]);return(0,i.g)(()=>{if(null==u)return h(e=>{let t=y.current?e.get(y.current)?.index:null;null!=t&&v(t)})},[u,h]),{ref:b,index:m}}},92751:(e,t,r)=>{"use strict";r.d(t,{BF:()=>d,FP:()=>f,J9:()=>p,Kg:()=>h,Zb:()=>u,du:()=>l,vB:()=>c});var n=r(38802),i=r(10352),s=r(68218),o=r(84249);function a(e,t,r){return Math.floor(e/t)!==r}function l(e,t){return t<0||t>=e.length}function u(e,t){return d(e.current,{disabledIndices:t})}function c(e,t){return d(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function d(e,{startingIndex:t=-1,decrement:r=!1,disabledIndices:n,amount:i=1}={}){let s=t;do s+=r?-i:i;while(s>=0&&s<=e.length-1&&f(e,s,n));return s}function h(e,{event:t,orientation:r,loopFocus:i,onLoop:u,rtl:c,cols:h,disabledIndices:p,minIndex:g,maxIndex:v,prevIndex:m,stopEvent:y=!1}){let b,_=m;if(t.key===o.il?b="up":t.key===o.Jd&&(b="down"),b){let r=[],o=[],a=!1,c=0;{let t=null,n=-1;e.forEach((e,i)=>{if(null==e)return;c+=1;let s=e.closest('[role="row"]');
1s&&(a=!0),(s!==t||-1===n)&&(t=s,r[n+=1]=[]),r[n].push(i),o[i]=n})}let w=!1,x=0;if(a)for(let e of r){let t=e.length;t>x&&(x=t),t!==h&&(w=!0)}let E=w&&c<e.length,S=x||h;y&&(0,s.jo)(t);let R=(n=>{if(!w||-1===m)return;let s=o[m];if(null==s)return;let a=r[s].indexOf(m),l="up"===n?-1:1;for(let n=s+l,c=0;c<r.length;c+=1,n+=l){if(n<0||n>=r.length){if(!i||E)return;if(n=n<0?r.length-1:0,u){let e=Math.min(a,r[n].length-1);n=o[u(t,m,r[n][e]??r[n][0])]??n}}let s=r[n];for(let t=Math.min(a,s.length-1);t>=0;t-=1){let r=s[t];if(!f(e,r,p))return r}}})(b)??(t=>{if(!E||-1===m)return;let r=m%S,s="up"===t?-S:S,o=v-v%S,a=(0,n.RI)(v/S)+1;for(let t=m-r+s,n=0;n<a;n+=1,t+=s){if(t<0||t>v){if(!i)return;t=t<0?o:0}let n=Math.min(t+S-1,v);for(let i=Math.min(t+r,n);i>=t;i-=1)if(!f(e,i,p))return i}})(b);if(void 0!==R)_=R;else if(-1===m)_="up"===b?v:g;else if(_=d(e,{startingIndex:m,amount:S,decrement:"up"===b,disabledIndices:p}),i){if("up"===b&&(m-S<g||_<0)){let e=m%S,r=v%S,n=v-(r-e);_=r===e?v:r>e?n:n-S,u&&(_=u(t,m,_))}"down"===b&&m+S>v&&(_=d(e,{startingIndex:m%S-S,amount:S,disabledIndices:p}),u&&(_=u(t,m,_)))}l(e,_)&&(_=m)}if("both"===r){let r=(0,n.RI)(m/h);t.key===(c?o.eR:o.RJ)&&(y&&(0,s.jo)(t),m%h!=h-1?(_=d(e,{startingIndex:m,disabledIndices:p}),i&&a(_,h,r)&&(_=d(e,{startingIndex:m-m%h-1,disabledIndices:p}),u&&(_=u(t,m,_)))):i&&(_=d(e,{startingIndex:m-m%h-1,disabledIndices:p}),u&&(_=u(t,m,_))),a(_,h,r)&&(_=m)),t.key===(c?o.RJ:o.eR)&&(y&&(0,s.jo)(t),m%h!=0?(_=d(e,{startingIndex:m,decrement:!0,disabledIndices:p}),i&&a(_,h,r)&&(_=d(e,{startingIndex:m+(h-m%h),decrement:!0,disabledIndices:p}),u&&(_=u(t,m,_)))):i&&(_=d(e,{startingIndex:m+(h-m%h),decrement:!0,disabledIndices:p}),u&&(_=u(t,m,_))),a(_,h,r)&&(_=m));let f=(0,n.RI)(v/h)===r;l(e,_)&&(i&&f?(_=t.key===(c?o.RJ:o.eR)?v:d(e,{startingIndex:m-m%h-1,disabledIndices:p}),u&&(_=u(t,m,_))):_=m)}return _}function f(e,t,r){if("function"==typeof r?r(t):r?.includes(t)??!1)return!0;let n=e[t];return!!n&&(!!(!p(n)||n.matches(":disabled"))||!r&&(n.hasAttribute("disabled")||"true"===n.getAttribute("aria-disabled")))}function p(e,t=e?(0,i.L9)(e):null){var r;return!!e&&!!e.isConnected&&!!t&&"hidden"!==(r=t).visibility&&"collapse"!==r.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}},93639:(e,t,r)=>{"use strict";r.d(t,{f6:()=>a,Dp:()=>l,Li:()=>o,u:()=>h,Md:()=>d,yg:()=>u,T:()=>c});var n=r(14343);function i(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}var s=r(15383);function o(e){var t;return"object"==typeof(t=e?.[0])&&null!=t&&Array.isArray(t.items)}function a(e){return o(e)?e.flatMap(e=>e.items):e}function l(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(o(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1}function u(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return i(e)}function c(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?i(e.value):i(e)}function d(e,t,r){if(r&&null!=e)return r(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??u(e,r);if(Array.isArray(t)){let n=a(t);if(null==e||"object"!=typeof e){let t=n.find(t=>t.value===e);return t&&null!=t.label?t.label:u(e,r)}if("value"in e){let t=n.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return u(e,r)}function h(e,t,r){return e.reduce((e,i,o)=>(o>0&&e.push(", "),e.push((0,s.jsx)(n.Fragment,{children:d(i,t,r)},o)),e),[])}},94096:(e,t,r)=>{"use strict";function n(e){return null==e?void 0:e.user}function i(e){return"/auth/login?callbackUrl=".concat(encodeURIComponent(e))}function s(e){return null==e?void 0:e.accessToken}r.d(t,{PU:()=>i,c7:()=>s,iU:()=>n})},94171:(e,t,r)=>{"use strict";r.d(t,{D:()=>a});var n=r(14343),i=r(73858),s=r(10352),o=r(54658);function a(e){let{popupStore:t,treatPopupAsFloatingElement:r=!1,floatingRootContext:a,floatingId:l,nested:u,onOpenChange:c}=e,d=t.useState("open"),h=t.useState("activeTriggerElement"),f=t.useState(r?"popupElement":"positionerElement"),p=t.context.triggerElements,g=n.useRef(null);
1void 0===a&&null===g.current&&(g.current=new o.K({open:d,transitionStatus:void 0,referenceElement:h,floatingElement:f,triggerElements:p,onOpenChange:c,floatingId:l,syncOnly:!0,nested:u}));let v=a??g.current;return t.useSyncedValue("floatingId",l),(0,i.g)(()=>{let e={open:d,floatingId:l,referenceElement:h,floatingElement:f};(0,s.vq)(h)&&(e.domReferenceElement=h),v.state.positionReference===v.state.referenceElement&&(e.positionReference=h),v.update(e)},[d,l,h,f,v]),v.context.onOpenChange=c,v.context.nested=u,v}},95838:(e,t,r)=>{"use strict";r.d(t,{p:()=>s});var n=r(49940);let i=0;function s(e,t={}){let{preventScroll:r=!1,sync:o=!1,shouldFocus:a}=t;function l(){(!a||a())&&e?.focus({preventScroll:r})}if(cancelAnimationFrame(i),o)return l(),n.tE;let u=requestAnimationFrame(l);return i=u,()=>{i===u&&(cancelAnimationFrame(u),i=0)}}},95941:(e,t,r)=>{"use strict";r.d(t,{p:()=>S});var n=r(15383),i=r(14343),s=r(29836),o=r(73858),a=r(87190),l=r(41790),u=r(73897),c=r(27870),d=r(54523),h=r(35795),f=r(71761),p=r(47128),g=r(9834),v=r(13634),m=r(45449),y=r(2978),b=r(81316),_=r(3167);let w=i.forwardRef(function(e,t){let{render:r,className:n,id:w,name:x,value:E,disabled:S=!1,onValueChange:R,defaultValue:k,autoFocus:T=!1,style:A,...C}=e,{state:P,name:O,disabled:I,setTouched:M,setDirty:L,validityData:N,setFocused:j,setFilled:B,validationMode:F,validation:D}=(0,c.V$)(),{clearErrors:H,elementRef:U,submitCountRef:$}=(0,h.x)(),z=I||S,q=O??x,V={...P,disabled:z},{labelId:G}=(0,f.H)(),W=(0,p.l)({id:w}),[K]=(0,s.q)({controlled:E,default:k,name:"FieldControl",state:"value"}),Y=void 0!==E,X=Y?K:void 0,J=null==X?void 0:String(X),Z=(0,l.K)(()=>D.inputRef.current?.value);(0,d.I)(D.inputRef,W,J,Z,!z,x),(0,o.g)(()=>{let e=J??D.inputRef.current?.value;void 0!==e&&B(""!==e)},[J,D.inputRef,B]),(0,m.x)(J,()=>{void 0!==J&&(H(q),L(J!==(N.initialValue??"")),D.change(J))});let Q=i.useRef(null),ee=(0,u.Z)();return(0,o.g)(()=>{T&&Q.current===(0,_.RS)((0,a.R)(Q.current))&&j(!0)},[T,j]),(0,v.o)("input",e,{ref:[t,Q],state:V,props:[{id:W,disabled:z,name:q,ref:D.inputRef,"aria-labelledby":G,autoFocus:T,...Y?{value:X}:{defaultValue:k},onChange(e){let t=e.currentTarget.value,r=(0,y.d)(b.dv,e.nativeEvent);R?.(t,r),!Y&&(L(t!==(N.initialValue??"")),B(""!==t),e.nativeEvent.defaultPrevented||r.isCanceled||(H(q),D.change(t)))},onFocus(){j(!0)},onBlur(e){if(M(!0),j(!1),"onBlur"===F){let t=e.currentTarget.value;D.commit(t),Y&&queueMicrotask(()=>{let e=D.inputRef.current?.value;void 0!==e&&e!==t&&e!==(N.initialValue??"")&&D.commit(e)})}},onKeyDown(e){if("INPUT"===e.currentTarget.tagName&&"Enter"===e.key){M(!0);let t=e.currentTarget.value,r=e.currentTarget.form;if(r&&r===U.current&&!e.defaultPrevented){let t=e.currentTarget,r=$.current;ee.start(0,()=>{$.current===r&&D.commit(t.value)})}else D.commit(t)}}},C,e=>D.getValidationProps(z,e)],stateAttributesMapping:g.dc})}),x=i.forwardRef(function(e,t){return(0,n.jsx)(w,{ref:t,...e})});var E=r(58811);function S(e){let{className:t,type:r,...i}=e;return(0,n.jsx)(x,{type:r,"data-slot":"input",className:(0,E.cn)("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",t),...i})}},96647:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=void 0,t.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:r="https://www.googletagmanager.com/gtm.js",dataLayerName:n="dataLayer",auth:l,preview:u,dataLayer:c,nonce:d}=e;a=n;let h="dataLayer"!==n?`&l=${n}`:"",f=l?`&gtm_auth=${l}`:"",p=u?`&gtm_preview=${u}&gtm_cookies_win=x`:"";return(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:`
2      (function(w,l){
3        w[l]=w[l]||[];
4        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
5        ${c?`w[l].push(${JSON.stringify(c)})`:""}
6      })(window,'${n}');`},nonce:d}),(0,i.jsx)(o.default,{id:"_next-gtm","data-ntpc":"GTM",src:`${r}?id=${t}${h}${f}${p}`,nonce:d})]})};let i=r(15383),s=r(14343),o=n(r(76317)),a="dataLayer";t.sendGTMEvent=(e,t)=>
6{let r=t||a;window[r]=window[r]||[],window[r].push(e)}},97120:(e,t,r)=>{"use strict";r.d(t,{u:()=>s});var n=r(73858),i=r(16801);function s(e){let t=(0,i.j)(o,e).current;return t.next=e,(0,n.g)(t.effect),t}function o(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}},97248:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(85343);let i={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};i.node;let s=(0,n.A)(i)},97275:function(e,t,r){"use strict";let n;var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=function(e){let{gaId:t,debugMode:r,dataLayerName:i="dataLayer",nonce:l}=e;return void 0===n&&(n=i),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:`
7          window['${i}'] = window['${i}'] || [];
8          function gtag(){window['${i}'].push(arguments);}
9          gtag('js', new Date());
10
11          gtag('config', '${t}' ${r?",{ 'debug_mode': true }":""});`},nonce:l}),(0,s.jsx)(a.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:l})]})},t.sendGAEvent=function(){if(void 0===n)return void console.warn("@next/third-parties: GA has not been initialized");window[n]?window[n].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${n} does not exist`)};let s=r(15383),o=r(14343),a=i(r(76317))},97571:(e,t,r)=>{"use strict";r.d(t,{CK:()=>E,XF:()=>S,vB:()=>w});var n=r(14343),i=r(33475),s=r(10352),o=r(45848),a=r(37900),l=r(16265),u=r(73858),c=r(41790),d=r(49940),h=r(2612),f=r(53373),p=r(2978),g=r(81316),v=r(36138),m=r(13634),y=r(1090),b=r(15383);let _=n.createContext(null),w=()=>n.useContext(_),x=(0,v.F)("portal");function E(e={}){let{ref:t,container:r,componentProps:o=d.t0,elementProps:a}=e,h=(0,l.B)(),f=w(),p=f?.portalNode,[g,v]=n.useState(null),[y,b]=n.useState(null),_=(0,c.K)(e=>{null!==e&&b(e)}),S=n.useRef(null);(0,u.g)(()=>{if(null===r){S.current&&(S.current=null,b(null),v(null));return}let e=(r&&((0,s.Ll)(r)?r:r.current))??p??document.body;if(null==e){S.current&&(S.current=null,b(null),v(null));return}S.current!==e&&(S.current=e,b(null),v(e))},[r,p]);let R=(0,m.o)("div",o,{ref:[t,_],props:[{id:h,[x]:""},a]}),k=g&&R?i.createPortal(R,g):null;return{node:y,nodeId:n.isValidElement(R)?R.props.id:void 0,subtree:k}}let S=n.forwardRef(function(e,t){let{render:r,className:s,style:l,children:c,container:d,portalOwnerRole:v,...m}=e,{node:w,nodeId:x,subtree:S}=E({container:d,ref:t,componentProps:e,elementProps:m}),R=n.useRef(null),k=n.useRef(null),T=n.useRef(null),A=n.useRef(null),[C,P]=n.useState(null),O=n.useRef(!1),I=C?.modal,M=C?.open,L=!!C&&!C.modal&&C.open&&!!w;n.useEffect(()=>{if(w&&!I)return(0,a.g)((0,o.q)(w,"focusin",e,!0),(0,o.q)(w,"focusout",e,!0));function e(e){w&&e.relatedTarget&&(0,f.Qp)(e)&&("focusin"===e.type?O.current&&((0,f.yV)(w),O.current=!1):((0,f.N)(w),O.current=!0))}},[w,I]),(0,u.g)(()=>{w&&!0===M&&O.current&&((0,f.yV)(w),O.current=!1)},[M,w]);let N=n.useMemo(()=>({beforeOutsideRef:R,afterOutsideRef:k,beforeInsideRef:T,afterInsideRef:A,portalNode:w,setFocusManagerState:P}),[w]);return(0,b.jsxs)(n.Fragment,{children:[S,(0,b.jsxs)(_.Provider,{value:N,children:[L&&w&&(0,b.jsx)(h.U,{"data-type":"outside",ref:R,onFocus:e=>{if((0,f.Qp)(e,w))T.current?.focus();else{let e=C?C.domReference:null,t=(0,f.XJ)(e);t?.focus()}}}),L&&w&&(0,b.jsx)("span",{role:v,"aria-owns":x,style:y.z_}),w&&i.createPortal(c,w),L&&w&&(0,b.jsx)(h.U,{"data-type":"outside",ref:k,onFocus:e=>{if((0,f.Qp)(e,w))A.current?.focus();else{let t=C?C.domReference:null,r=(0,f.vF)(t);r?.focus(),C?.closeOnFocusOut&&C?.onOpenChange(!1,(0,p.d)(g.Xn,e.nativeEvent))}}})]})]})})},98378:(e,t,r)=>{"use strict";r.d(t,{k:()=>i});var n=r(79834);class i{nodesRef={current:[]};events=(0,n.d)();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);-1!==t&&this.nodesRef.current.splice(t,1)}}},98444:(e,t,r)=>{"use strict";r.d(t,{l6:()=>e7,gC:()=>tr,eb:()=>tn,bq:()=>tt,yv:()=>te});var n=r(15383),i=r(14343),s=r(39994),o=r(75836),a=r(16801),l=r(31019),u=r(39767),c=r(29836),d=r(73858),h=r(41790),f=r(97120),p=r(81532),g=r(49940),v=r(17205),m=r(71378),y=r(3566),b=r(86674),_=r(7213),w=r(7277);let x=i.createContext(void 0),E=i.createContext(void 0),S=i.createContext(void 0);function R(){let e=i.useContext(x);if(void 0===e)throw Error((0,w.A)(60));return e}function k(){let e=i.useContext(E);if(void 0===e)throw Error((0,w.A)(101));return e}function T(){let e=i.useContext(S);if(void 0===e)throw Error((0,w.A)(61));return e}var A=r(27870),C=r(54523),P=r(47128),O=r(18667),I=r(57912),M=r(93639);let L={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:r,itemToStringValue:n}=e;return null!=t&&(r&&Array.isArray(t)?t.length>0:""!==(0,M.T)(t,n))},hasNullItemLabel:(e,t)=>
11!!t&&(0,M.Dp)(e.items),open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let r=e.isItemEqualToValue,n=e.value;return e.multiple?Array.isArray(n)&&n.some(e=>(0,I.tl)(t,e,r)):(0,I.tl)(t,n,r)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};var N=r(2978),j=r(81316),B=r(88545),F=r(35795),D=r(45449),H=r(19123),U=r(57454);function $(e,t){return Math.max(0,e-t)}function z(e,t){if(t<=0)return 0;let r=(0,U.q)(e,0,t),n=t-r,i=r<=1,s=n<=1;return i&&s?r<=n?0:t:i?0:s?t:r}var q=r(290),V=r(32830),G=r(13634);let W={value:()=>null},K=i.forwardRef(function(e,t){let{className:r,render:n,children:i,placeholder:s,style:o,...a}=e,l=R(),u=l.useState("value"),c=l.useState("items"),d=l.useState("itemToStringLabel"),h=l.useState("hasSelectedValue"),f=!h&&null!=s&&null==i,p=l.useState("hasNullItemLabel",f),g=null;return g="function"==typeof i?i(u):null!=i?i:f&&!p?s:Array.isArray(u)?(0,M.u)(u,c,d):(0,M.Md)(u,c,d),(0,G.o)("span",e,{state:{value:u,placeholder:!h},ref:[t,l.context.valueRef],props:[{children:g},a],stateAttributesMapping:W})});var Y=r(87190),X=r(73897),J=r(71761),Z=r(84949),Q=r(9834),ee=r(40003),et=r(24082),er=r(3167),en=r(59594),ei=r(87293),es=r(21014);es.L,es.V;let eo={...Z.jL,...Q.dc,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},ea=i.forwardRef(function(e,t){let{render:r,className:n,id:s,disabled:o=!1,nativeButton:a=!0,style:l,...u}=e,{setTouched:c,setFocused:d,validationMode:h,validation:p,state:g,disabled:v}=(0,A.V$)(),{labelId:m}=(0,J.H)(),y=R(),{readOnly:b,required:_,disabled:w}=k(),x=v||w||o,E=y.useState("open"),S=y.useState("mounted"),T=y.useState("value"),C=y.useState("triggerProps"),O=y.useState("positionerElement"),I=y.useState("listElement"),M=y.useState("popupSide"),L=y.useState("id"),B=y.useState("labelId"),F=y.useState("hasSelectedValue"),D=S&&O?M:null,H=(0,ei._)(m,B);(0,P.l)({id:s});let U=(0,f.u)(O),$=i.useRef(null),{getButtonProps:z,buttonRef:q}=(0,en.s)({disabled:x,native:a}),W=y.useStateSetter("triggerElement"),K=(0,X.Z)(),Z=(0,X.Z)(),Q=(0,X.Z)();i.useEffect(()=>{if(E)return Q.start(400,()=>{y.context.selectionRef.current.allowUnselectedMouseUp=!0,y.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{Q.clear()};y.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},Z.clear()},[E,y,Z,Q]);let es=(0,V.v6)(C,{id:s??L,role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-controls":E?I?.id??(0,et.nd)(O)?.id:void 0,"aria-labelledby":H,"aria-readonly":b||void 0,"aria-required":_||void 0,tabIndex:x?-1:0,onFocus(e){d(!0),E&&y.context.alignItemWithTriggerActiveRef.current&&y.context.setOpen(!1,(0,N.d)(j.dv,e.nativeEvent)),K.start(0,()=>{y.set("forceMount",!0)})},onBlur(e){(0,er.gR)(O,e.relatedTarget)||(c(!0),d(!1),"onBlur"===h&&p.commit(T))},onMouseDown(e){if(E)return;let t=(0,Y.R)(e.currentTarget);function r(e){if(!$.current)return;let t=e.target;!((0,er.gR)($.current,t)||(0,er.gR)(U.current,t))&&((0,ee.U)(e,$.current)||y.context.setOpen(!1,(0,N.d)(j.LO,e)))}Z.start(0,()=>{t.addEventListener("mouseup",r,{once:!0})})}},u,z),ea=p.getValidationProps(x,es);ea.role="combobox";let el={...g,open:E,disabled:x,value:T,readOnly:b,popupSide:D,placeholder:!F};return(0,G.o)("button",e,{ref:[t,$,q,W],state:el,stateAttributesMapping:eo,props:ea})}),el=i.forwardRef(function(e,t){let{render:r,className:n,style:i,...s}=e,o=R().useState("open");return(0,G.o)("span",e,{state:{open:o},ref:t,props:[{"aria-hidden":!0,children:"▼"},s],stateAttributesMapping:Z.qV})});var eu=r(97571);let ec=i.forwardRef(function(e,t){let r=R(),i=r.useState("mounted"),s=r.useState("forceMount");return i||s?(0,n.jsx)(eu.XF,{ref:t,...e}):null});var ed=r(5620),eh=r(20957),ef=r(15451);let ep=i.createContext(void 0);function eg(){let e=i.useContext(ep);if(!e)throw Error((0,w.A)(59));return e}var ev=r(24967),em=r(1090);function ey(e,t){e&&Object.assign(e.style,t)}let eb={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var e_=r(53641),ew=r(35733);let ex={position:"fixed"},eE=i.forwardRef(function(e,t){let{anchor:r,className:s,render:o,positionMethod:a,side:l,align:u,sideOffset:c,alignOffset:f,collisionBoundary:p="clipping-ancestors",collisionPadding:g,arrowPadding:v,sticky:m,disableAnchorTracking:y,alignItemWithTrigger:b=!0,collisionAvoidance:_=em.uD,style:w,...x}=e,E=R(),S=T(),k=E.useState("open"),A=E.useState("mounted"),C=E.useState("modal"),P=E.useState("value"),O=E.useState("openMethod"),M=E.useState("positionerElement"),L=E.useState("triggerElement"),B=E.useState("isItemEqualToValue"),F=E.useState("transitionStatus"),D=i.useRef(null),H=i.useRef(null),[U,$]=i.useState(b),z=A&&U&&"touch"!==O;A||U===b||$(b),i.useImperativeHandle(E.context.alignItemWithTriggerActiveRef,()=>z),(0,ew.G)((z||C)&&k,"touch"===O,M,L);let q=(0,ef.s)({anchor:r,floatingRootContext:S,positionMethod:a,mounted:A,side:l,sideOffset:c,align:u,alignOffset:f,arrowPadding:v,collisionBoundary:p,collisionPadding:g,sticky:m,disableAnchorTracking:y??z,collisionAvoidance:_,keepMounted:!0}),V=z?"none":q.side,G=z?ex:q.positionerStyles,W={open:k,side:V,align:q.align,anchorHidden:q.anchorHidden};(0,d.g)(()=>{E.set("popupSide",q.side)},[E,q.side]);let K=E.useStateSetter("positionerElement"),Y=(0,e_.i)(e,W,{styles:G,transitionStatus:F,props:x,refs:[t,K],hidden:!A,inert:!k}),X=i.useRef(0),J=(0,h.K)(e=>{if(0===E.context.valuesRef.current.length)return;let t=X.current;X.current=e.size;let r=(0,N.d)(j.dv);if(0!==t&&!E.state.multiple&&null!==P&&-1===(0,I.Vz)(E.context.valuesRef.current,P,B)){let e=E.context.
11initialValueRef.current,t=null!=e&&-1!==(0,I.Vz)(E.context.valuesRef.current,e,B)?e:null;E.context.setValue(t,r),null===t&&(E.set("selectedIndex",null),E.context.selectedItemTextRef.current=null)}if(0!==t&&E.state.multiple&&Array.isArray(P)){let e=P.filter(e=>-1!==(0,I.Vz)(E.context.valuesRef.current,e,B));e.length!==P.length&&(E.context.setValue(e,r),0===e.length&&(E.set("selectedIndex",null),E.context.selectedItemTextRef.current=null))}if(k&&z){E.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:""};ey(M,e),ey(E.context.popupRef.current,e)}}),Z=i.useMemo(()=>({...q,side:V,alignItemWithTriggerActive:z,setControlledAlignItemWithTrigger:$,scrollUpArrowRef:D,scrollDownArrowRef:H}),[q,V,z,$]);return(0,n.jsx)(eh.u,{elementsRef:E.context.listRef,labelsRef:E.context.labelsRef,onMapChange:J,children:(0,n.jsxs)(ep.Provider,{value:Z,children:[A&&C&&(0,n.jsx)(ev.W,{inert:(0,ed.Y)(!k),cutout:L}),Y]})})});var eS=r(38802),eR=r(45848),ek=r(33905),eT=r(10352),eA=r(77423),eC=r(2555),eP=r(78170);let eO="base-ui-disable-scrollbar",eI={className:eO,getElement:e=>(0,n.jsx)("style",{nonce:e,href:eO,precedence:"base-ui:low",children:`.${eO}{scrollbar-width:none}.${eO}::-webkit-scrollbar{display:none}`})};var eM=r(57435),eL=r(22387),eN=r(23452),ej=r(67813),eB=r(1277),eF=r(22025);let eD="--transform-origin",eH={...Z.GW,...eM.G},eU=i.forwardRef(function(e,t){let{render:r,className:s,style:o,finalFocus:a,...l}=e,u=R(),{multiple:c,readOnly:f,highlightItemOnHover:p}=k(),g=T(),{side:v,align:m,alignItemWithTriggerActive:y,isPositioned:b,setControlledAlignItemWithTrigger:_}=eg(),w=null!=(0,eL.S)(!0),x=(0,eF.j)(),{nonce:E,disableStyleElements:S}=(0,eB.n)(),A=u.useState("id"),C=u.useState("open"),P=u.useState("openMethod"),O=u.useState("mounted"),I=u.useState("popupProps"),M=u.useState("transitionStatus"),L=u.useState("triggerElement"),F=u.useState("positionerElement"),D=u.useState("listElement"),H=i.useRef(!1),$=i.useRef(!1),z=i.useRef({}),q=(0,eA.NR)(),V=(0,h.K)(e=>{var t;if(!F||!u.context.popupRef.current||!$.current)return;let r="0px"===F.style.top,n="0px"===F.style.bottom;if(H.current||!y||!r&&!n)return void u.context.handleScrollArrowVisibility(e);let i=eq(F),s=(t=F.getBoundingClientRect().height,t/i.y),o=(0,Y.R)(F),a=(0,eT.zk)(F),l=a.getComputedStyle(F),c=parseFloat(l.marginTop),d=parseFloat(l.marginBottom),h=e$(a.getComputedStyle(u.context.popupRef.current)),f=Math.min(o.documentElement.clientHeight-c-d,h),p=e.scrollTop,g=ez(e),v=null,m=e=>{F.style.height=`${e}px`},b=r?g-p:p,_=Math.min(s+b,f);if(b<=1){let t=(0,U.q)(b,0,f-s);t>0&&m(s+t),e.scrollTop=r?g:0,f-(s+t)<=1&&(H.current=!0),u.context.handleScrollArrowVisibility(e);return}if(f-_>1)v=r?1/0:0;else if(n&&p<g){let e=s+b-f;v=p-(b-e)}let w=Math.ceil(_);if(0!==w&&m(w),null!=v){let t=(0,U.q)(v,0,ez(e));Math.abs(e.scrollTop-t)>1&&(e.scrollTop=t)}w>=f-1&&(H.current=!0),u.context.handleScrollArrowVisibility(e)});i.useImperativeHandle(u.context.scrollHandlerRef,()=>V,[V]),(0,B.v)({open:C,ref:u.context.popupRef,onComplete(){C&&u.context.onOpenChangeComplete(!0)}}),(0,d.g)(()=>{F&&u.context.popupRef.current&&!Object.keys(z.current).length&&(z.current={top:F.style.top||"0",left:F.style.left||"0",right:F.style.right,height:F.style.height,bottom:F.style.bottom,minHeight:F.style.minHeight,maxHeight:F.style.maxHeight,marginTop:F.style.marginTop,marginBottom:F.style.marginBottom})},[u,F]),(0,d.g)(()=>{C||y||($.current=!1,H.current=!1,ey(F,z.current))},[C,y,F]),(0,d.g)(()=>{let e=u.context.popupRef.current;if(!C||!L||!F||!e||y&&!b||"ending"===u.state.transitionStatus)return;if($.current=!0,e.style.removeProperty(eD),!y)return void q.request(()=>u.context.handleScrollArrowVisibility(D||e));let t=function(e){let{style:t}=e,r={};for(let[e,n]of eG)r[e]=t.getPropertyValue(e),t.setProperty(e,n,"important");return()=>{for(let[e]of eG){let n=r[e];n?t.setProperty(e,n):t.removeProperty(e)}}}(e);try{let t,r=u.context.selectedItemTextRef.current;r?.isConnected||(r=!u.select("hasSelectedValue")&&u.context.firstItemTextRef.current?.isConnected?u.context.firstItemTextRef.current:null);let n=u.context.valueRef.current,i=(0,eT.zk)(F),s=i.getComputedStyle(F),o=i.getComputedStyle(e),a=(0,Y.R)(L),l=eq(L),c=eV(L.getBoundingClientRect(),l),d=eV(F.getBoundingClientRect(),l),h=c.height,f=D||e,g=f.scrollHeight,v=parseFloat(o.borderBottomWidth),m=parseFloat(s.marginTop)||10,y=parseFloat(s.marginBottom)||10,b=parseFloat(s.minHeight)||100,w=e$(o),E=a.documentElement.clientHeight-m-y,S=a.documentElement.clientWidth,R=E-c.bottom+h,k="rtl"===x?c.right-d.width:c.left,T=0;if(r&&n){let e=eV(n.getBoundingClientRect(),l);t=eV(r.getBoundingClientRect(),l),k=d.left+("rtl"===x?e.right-t.right:e.left-t.left);let i=e.top-c.top+e.height/2;T=t.top-d.top+t.height/2-i}let A=R+T+y+v,C=Math.min(E,A),P=E-m-y,O=A-C;F.style.left=`${(0,U.q)(k,5,S-5-d.width)}px`,F.style.height=`${C}px`,F.style.maxHeight="none",F.style.marginTop=`${m}px`,F.style.marginBottom=`${y}px`,e.style.height="100%";let I=ez(f),M=O>=I-1;M&&(C=Math.min(E,d.height)-(O-I));let N=c.top<20||c.bottom>
11E-20||Math.ceil(C)+1<Math.min(g,b),j=(i.visualViewport?.scale??1)!==1&&ek.Fp;if(N||j){ey(F,z.current),_(!1);return}let B=Math.max(b,C);if(M){let e=Math.max(0,E-A);F.style.top=d.height>=P?"0":`${e}px`,F.style.height=`${C}px`,f.scrollTop=ez(f)}else F.style.bottom="0",f.scrollTop=O;if(t){let r=d.top,n=d.height,i=t.top+t.height/2,s=(0,U.q)(n>0?(i-r)/n*100:50,0,100);e.style.setProperty(eD,`50% ${s}%`)}(B===E||C>=w)&&(H.current=!0),u.context.handleScrollArrowVisibility(f),p&&null===u.state.selectedIndex&&null===u.state.activeIndex&&null!=u.context.listRef.current[0]&&u.set("activeIndex",0)}finally{t()}},[u,C,F,L,y,_,q,D,p,x,b]),i.useEffect(()=>{if(!y||!F||!C)return;let e=(0,eT.zk)(F);return(0,eR.q)(e,"resize",function(e){u.context.setOpen(!1,(0,N.d)(j.L5,e))})},[u,y,F,C]);let W={...D?{role:"presentation"}:{role:"listbox","aria-multiselectable":c||void 0,"aria-readonly":f||void 0,id:`${A}-list`},onKeyDown(e){w&&eN.jF.has(e.key)&&e.stopPropagation()},onScroll(e){D||V(e.currentTarget)},...y&&{style:D?{height:"100%"}:eb},className:!D&&y?eI.className:void 0},K=(0,G.o)("div",e,{ref:[t,u.context.popupRef],state:{open:C,transitionStatus:M,side:v,align:m},stateAttributesMapping:eH,props:[I,W,(0,ej.d)(M),l]});return(0,n.jsxs)(i.Fragment,{children:[!S&&eI.getElement(E),(0,n.jsx)(eC.s,{context:g,modal:!1,disabled:!O,openInteractionType:P,returnFocus:a,restoreFocus:!0,children:K})]})});function e$(e){let t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function ez(e){return $(e.scrollHeight,e.clientHeight)}function eq(e){return eP.iD.getScale(e)}function eV(e,t){return(0,eS.B1)({x:e.x/t.x,y:e.y/t.y,width:e.width/t.x,height:e.height/t.y})}let eG=[["transform","none"],["scale","1"],["translate","0 0"]],eW=i.forwardRef(function(e,t){let{render:r,className:n,style:i,...s}=e,o=R(),{multiple:a,readOnly:l}=k(),{alignItemWithTriggerActive:u}=eg(),c=o.useState("hasScrollArrows"),d=o.useState("openMethod"),h=o.useState("id"),f={id:`${h}-list`,role:"listbox","aria-multiselectable":a||void 0,"aria-readonly":l||void 0,onScroll(e){o.context.scrollHandlerRef.current?.(e.currentTarget)},...u&&{style:eb},className:c&&"touch"!==d?eI.className:void 0},p=o.useStateSetter("listElement");return(0,G.o)("div",e,{ref:[t,p],props:[f,s]})});var eK=r(92369);let eY=i.createContext(void 0);function eX(){let e=i.useContext(eY);if(!e)throw Error((0,w.A)(57));return e}var eJ=r(68218);let eZ=i.memo(i.forwardRef(function(e,t){let{render:r,className:s,style:o,value:a=null,label:l,disabled:u=!1,nativeButton:c=!1,...h}=e,f=i.useRef(null),p=(0,eK.q)({guess:!0,label:l,textRef:f}),g=R(),{itemProps:v,multiple:m,disabled:y,readOnly:b}=k(),_=y||u,w=g.useState("isActive",p.index),x=g.useState("open"),E=g.useState("isSelected",a),S=g.useState("isSelectedByFocus",p.index),T=g.useState("isItemEqualToValue"),A=p.index,C=i.useRef(null);(0,d.g)(()=>{let e=g.context.valuesRef.current;return e[A]=a,()=>{delete e[A]}},[A,a,g]),(0,d.g)(()=>{let e,t=g.state.value,r=g.state.selectedIndex,n=r;m&&Array.isArray(t)?(e=(n=(0,I.Q0)(A,a,g.context.valuesRef.current,t,T,r))===A,A!==r||e||(g.context.selectedItemTextRef.current=null)):(e=void 0!==t&&(0,I.tl)(a,t,T))&&(n=A),g.set("selectedIndex",n),e&&f.current&&(g.context.selectedItemTextRef.current=f.current)},[A,m,T,g,a]);let P=i.useRef("mouse"),O=i.useRef(!1),{getButtonProps:M,buttonRef:L}=(0,en.s)({disabled:_,focusableWhenDisabled:!0,native:c,composite:!0});function B(){g.context.selectionRef.current.dragY=0}let F=(0,G.o)("div",e,{ref:[L,t,p.ref,C],state:{disabled:_,selected:E,highlighted:w},props:[v,{role:"option","aria-selected":E,tabIndex:x&&w?0:-1,onKeyDown(e){g.set("activeIndex",A)," "===e.key&&g.context.typingRef.current&&e.preventDefault()},onClick(e){let t="touch"!==P.current,r=e.nativeEvent.pointerType,n=t&&(0,eJ.YF)(e.nativeEvent)&&(void 0!==r||w),i=t&&!n&&!O.current;O.current=!1,_||i||function(e){if(y||b)return;let t=g.state.value;if(m){let r=Array.isArray(t)?t:[],n=E?(0,I.Ai)(r,a,T):[...r,a];g.context.setValue(n,(0,N.d)(j.Bo,e))}else g.context.setValue(a,(0,N.d)(j.Bo,e)),g.context.setOpen(!1,(0,N.d)(j.Bo,e))}(e.nativeEvent)},onPointerEnter(e){P.current=e.pointerType},onPointerMove(e){if("mouse"===e.pointerType&&1===e.buttons){let t=g.context.selectionRef.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){P.current=e.pointerType,O.current=!0,B()},onMouseUp(){if(B(),_||"touch"===P.current||O.current)return;let e=!g.context.selectionRef.current.allowSelectedMouseUp&&E,t=!g.context.selectionRef.current.allowUnselectedMouseUp&&!E;e||t||(O.current=!0,C.current?.click(),O.current=!1)}},h,M]}),D=i.useMemo(()=>({selected:E,index:A,textRef:f,selectedByFocus:S}),[E,A,f,S]);return(0,n.jsx)(eY.Provider,{value:D,children:F})})),eQ=i.memo(i.forwardRef(function(e,t){let{index:r,textRef:n,selectedByFocus:s}=eX(),o=R(),{render:a,className:l,style:u,...c}=e,d=i.useCallback(e=>{e&&(0===r&&(o.context.firstItemTextRef.current=e),s&&(o.context.selectedItemTextRef.current=e))},[o,r,s]);return(0,G.o)("div",e,{ref:[d,t,n],props:c})}
11)),e0=i.forwardRef(function(e,t){let{selected:r}=eX();return e.keepMounted||r?(0,n.jsx)(e1,{...e,ref:t}):null}),e1=i.memo(i.forwardRef((e,t)=>{let{render:r,className:n,style:s,keepMounted:o,...a}=e,{selected:l}=eX(),u=i.useRef(null),{transitionStatus:c,setMounted:d}=(0,O.$)(l),h=(0,G.o)("span",e,{ref:[t,u],state:{selected:l,transitionStatus:c},props:[{"aria-hidden":!0,children:"✔️"},a],stateAttributesMapping:eM.G});return(0,B.v)({batch:!0,enabled:!l,open:l,ref:u,onComplete(){l||d(!1)}}),h})),e2=i.forwardRef(function(e,t){let{render:r,className:n,style:i,direction:s,keepMounted:o,...a}=e,l="up"===s,u=R(),{side:c,scrollDownArrowRef:h,scrollUpArrowRef:f}=eg(),p=u.useState(l?"scrollUpArrowVisible":"scrollDownArrowVisible"),g=u.useState("openMethod"),v=p&&"touch"!==g,m=(0,X.Z)(),y=l?f:h,{mounted:b,transitionStatus:_,setMounted:w}=(0,O.$)(v);(0,d.g)(()=>(u.context.scrollArrowsMountedCountRef.current+=1,u.set("hasScrollArrows",!0),()=>{u.context.scrollArrowsMountedCountRef.current=Math.max(0,u.context.scrollArrowsMountedCountRef.current-1),0===u.context.scrollArrowsMountedCountRef.current&&u.set("hasScrollArrows",!1)}),[u]),(0,B.v)({open:v,ref:y,onComplete(){v||w(!1)}});let x=(0,G.o)("div",e,{ref:[t,y],state:{direction:s,visible:v,side:c,transitionStatus:_},props:[{"aria-hidden":!0,children:l?"▲":"▼",style:{position:"absolute"},onMouseMove(e){0===e.movementX&&0===e.movementY||m.isStarted()||(u.set("activeIndex",null),m.start(40,function e(){let t=u.state.listElement??u.context.popupRef.current;if(!t)return;u.set("activeIndex",null),u.context.handleScrollArrowVisibility(t);let r=$(t.scrollHeight,t.clientHeight),n=z(t.scrollTop,r),i=n===(l?0:r),s=u.context.listRef.current;if(n!==t.scrollTop&&(t.scrollTop=n),i)return void m.clear();if(s.length>0){let e=y.current?.offsetHeight||0;t.scrollTop=function(e,t,r,n,i,s){if(t){let t=0,n=r+i-1;for(let r=0;r<e.length;r+=1){let i=e[r];if(i&&i.offsetTop>=n){t=r;break}}let o=Math.max(0,t-1),a=e[o];return o<t&&a?z(a.offsetTop-i,s):0}let o=e.length-1,a=r+n-i+1;for(let t=0;t<e.length;t+=1){let r=e[t];if(r&&r.offsetTop+r.offsetHeight>a){o=Math.max(0,t-1);break}}let l=Math.min(e.length-1,o+1),u=e[l];return l>o&&u?z(u.offsetTop+u.offsetHeight-n+i,s):s}(s,l,n,t.clientHeight,e,r)}m.start(40,e)}))},onMouseLeave(){m.clear()}},a],stateAttributesMapping:eM.G});return b||o?x:null}),e3=i.forwardRef(function(e,t){return(0,n.jsx)(e2,{...e,ref:t,direction:"up"})}),e4=i.forwardRef(function(e,t){return(0,n.jsx)(e2,{...e,ref:t,direction:"down"})});var e5=r(58811),e8=r(77837),e6=r(62007),e9=r(39718);let e7=function(e){let{id:t,value:r,defaultValue:w=null,onValueChange:R,open:k,defaultOpen:T=!1,onOpenChange:U,name:G,form:W,autoComplete:K,disabled:Y=!1,readOnly:X=!1,required:J=!1,modal:Z=!0,actionsRef:Q,inputRef:ee,onOpenChangeComplete:et,items:er,multiple:en=!1,itemToStringLabel:ei,itemToStringValue:es,isItemEqualToValue:eo=I.jd,highlightItemOnHover:ea=!0,children:el}=e,{clearErrors:eu}=(0,F.x)(),{setDirty:ec,setTouched:ed,setFocused:eh,validityData:ef,setFilled:ep,name:eg,disabled:ev,validation:em,validationMode:ey}=(0,A.V$)(),eb=(0,P.l)({id:t}),e_=ev||Y,ew=eg??G,[ex,eE]=(0,c.q)({controlled:r,default:en?w??g.Ml:w,name:"Select",state:"value"}),[eS,eR]=(0,c.q)({controlled:k,default:T,name:"Select",state:"open"}),ek=i.useRef([]),eT=i.useRef([]),eA=i.useRef(null),eC=i.useRef(null),eP=i.useRef(0),eO=i.useRef(null),eI=i.useRef([]),eM=i.useRef(!1),eL=i.useRef(null),eN=i.useRef(null),ej=i.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),eB=i.useRef(!1),eF=i.useRef(ex),{mounted:eD,setMounted:eH,transitionStatus:eU}=(0,O.$)(eS),{openMethod:e$,triggerProps:ez}=(0,H.G)(eS),eq=(0,a.j)(()=>new p.H({id:eb,labelId:void 0,modal:Z,multiple:en,itemToStringLabel:ei,itemToStringValue:es,isItemEqualToValue:eo,value:ex,open:eS,mounted:eD,transitionStatus:eU,items:er,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:g.t0,triggerProps:g.t0,triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:g.tE,setOpen:g.tE,handleScrollArrowVisibility:g.tE,onOpenChangeComplete:g.tE,listRef:ek,popupRef:eA,scrollHandlerRef:eC,scrollArrowsMountedCountRef:eP,valueRef:eO,valuesRef:eI,labelsRef:eT,typingRef:eM,selectionRef:ej,firstItemTextRef:eL,selectedItemTextRef:eN,alignItemWithTriggerActiveRef:eB,initialValueRef:eF},L)).current,eV=eq.useState("activeIndex"),eG=eq.useState("selectedIndex"),eW=eq.useState("triggerElement"),eK=eq.useState("positionerElement"),eY=function(e){let[t,r]=i.useState({current:e,previous:null});return Object.is(e,t.current)||r({current:e,previous:t.current}),t.previous}(e$),eX=e$??eY,eJ=i.useMemo(()=>en?"":(0,M.T)(ex,es),[en,ex,es]),eZ=i.useMemo(()=>en&&Array.isArray(ex)?ex.map(e=>(0,M.T)(e,es)):(0,M.T)(ex,es),[en,ex,es]),eQ=(0,f.u)(eW),e0=(0,h.K)(()=>eZ);(0,C.I)(eQ,eb,ex,e0,!e_,G);let e1=en?Array.isArray(ex)&&ex.length>0:null!=ex&&""!==eJ;(0,d.g)(()=>{ep(e1)},[e1,ep]),(0,d.g)(function(){let e=(0,I.Gu)(eI.current,ex,eo,en);null===e&&(eN.current=null),eS||eq.set("selectedIndex",e)},[en,eS,ex,eo,eq]),(0,D.x)(ex,()=>{eu(ew),ec((0,I.DI)(ex,ef.initialValue,eo)),em.change(ex)});let e2=(0,h.K)((e,t)=>
11{U?.(e,t),!t.isCanceled&&(eR(e),e||t.reason!==j.Xn&&t.reason!==j.Np||(ed(!0),eh(!1),"onBlur"===ey&&em.commit(ex)))}),e3=(0,h.K)(()=>{eH(!1),eq.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),et?.(!1)});(0,B.v)({enabled:!Q,open:eS,ref:eA,onComplete(){eS||e3()}}),i.useImperativeHandle(Q,()=>({unmount:e3}),[e3]);let e4=(0,h.K)((e,t)=>{R?.(e,t),t.isCanceled||eE(e)}),e5=(0,h.K)(e=>{let t=$(e.scrollHeight,e.clientHeight),r=z(e.scrollTop,t);eq.set("scrollUpArrowVisible",r>0),eq.set("scrollDownArrowVisible",r<t)}),e8=(0,v.P)({open:eS,onOpenChange:e2,elements:{reference:eW,floating:eK}}),e6=(0,m.k)(e8,{enabled:!e_,event:"mousedown"}),e9=(0,y.s)(e8),e7=(0,b.C)(e8,{enabled:!e_,listRef:ek,activeIndex:eV,selectedIndex:eG,disabledIndices:g.Ml,onNavigate(e){(null!==e||eS)&&eq.set("activeIndex",e)},focusItemOnHover:ea}),te=(0,_.l)(e8,{enabled:!e_&&(eS||!X&&!en),listRef:eT,activeIndex:eV,selectedIndex:eG,disabledIndices:e=>(0,u.F)(ek.current[e]),onMatch(e){eS?eq.set("activeIndex",e):e4(eI.current[e],(0,N.d)(j.dv))},onTyping(e){eM.current=e}}),tt=i.useMemo(()=>(0,V.v6)(te.reference,e7.reference,e9.reference,e6.reference,ez),[e6.reference,te.reference,e7.reference,e9.reference,ez]),tr=i.useMemo(()=>(0,V.v6)(q.Ls,te.floating,e7.floating,e9.floating),[te.floating,e7.floating,e9.floating]),tn=e7.item??g.t0;eq.useContextCallback("setValue",e4),eq.useContextCallback("setOpen",e2),eq.useContextCallback("handleScrollArrowVisibility",e5),eq.useContextCallback("onOpenChangeComplete",et),(0,l.j)(()=>{eq.update({popupProps:tr,triggerProps:tt})}),eq.useSyncedValues({id:eb,modal:Z,multiple:en,value:ex,open:eS,mounted:eD,transitionStatus:eU,popupProps:tr,triggerProps:tt,items:er,itemToStringLabel:ei,itemToStringValue:es,isItemEqualToValue:eo,openMethod:eX});let ti=i.useMemo(()=>({disabled:e_,readOnly:X,required:J,multiple:en,highlightItemOnHover:ea,itemProps:tn}),[e_,X,J,en,ea,tn]),ts=(0,o.a)(ee,em.inputRef),to=en?void 0:ew,ta=i.useMemo(()=>en&&Array.isArray(ex)&&ew?ex.map(e=>{let t=(0,M.T)(e,es);return(0,n.jsx)("input",{type:"hidden",form:W,name:ew,value:t,disabled:e_},t)}):null,[en,ex,W,ew,es,e_]);return(0,n.jsxs)(x.Provider,{value:eq,children:[(0,n.jsx)(E.Provider,{value:ti,children:(0,n.jsx)(S.Provider,{value:e8,children:el})}),(0,n.jsx)("input",{...em.getValidationProps(e_,{onFocus(){eq.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||e_||X)return;let t=e.currentTarget.value,r=(0,N.d)(j.dv,e.nativeEvent);eq.set("forceMount",!0),queueMicrotask(function(){if(en)return;let e=t.toLowerCase(),n=eI.current.findIndex(t=>(0,M.T)(t,es).toLowerCase()===e||(0,M.yg)(t,ei).toLowerCase()===e);-1===n&&(n=eI.current.findIndex((t,r)=>{let n=eT.current[r];return null!=n&&n.toLowerCase()===e}));let i=eI.current[n];null!=i&&e4(i,r)})}}),id:eb&&null==to?`${eb}-hidden-input`:void 0,form:W,name:to,autoComplete:K,value:eJ,disabled:e_,required:J&&!(en&&e1),readOnly:X,ref:ts,style:ew?s.a:s.Q,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),ta]})};function te(e){let{className:t,...r}=e;return(0,n.jsx)(K,{"data-slot":"select-value",className:(0,e5.cn)("flex flex-1 text-left",t),...r})}function tt(e){let{className:t,size:r="default",children:i,...s}=e;return(0,n.jsxs)(ea,{"data-slot":"select-trigger","data-size":r,className:(0,e5.cn)("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...s,children:[i,(0,n.jsx)(el,{render:(0,n.jsx)(e8.A,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function tr(e){let{className:t,children:r,side:i="bottom",sideOffset:s=4,align:o="center",alignOffset:a=0,alignItemWithTrigger:l=!0,...u}=e;return(0,n.jsx)(ec,{children:(0,n.jsx)(eE,{side:i,sideOffset:s,align:o,alignOffset:a,alignItemWithTrigger:l,className:"isolate z-50",children:(0,n.jsxs)(eU,{"data-slot":"select-content","data-align-trigger":l,className:(0,e5.cn)("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground
11/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-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 pointer-coarse:rounded-xl pointer-coarse:shadow-lg data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),...u,children:[(0,n.jsx)(ti,{}),(0,n.jsx)(eW,{children:r}),(0,n.jsx)(ts,{})]})})})}function tn(e){let{className:t,children:r,...i}=e;return(0,n.jsxs)(eZ,{"data-slot":"select-item",className:(0,e5.cn)("relative flex w-full cursor-default touch-manipulation items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden transition-colors select-none [-webkit-tap-highlight-color:transparent] after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:bg-foreground after:opacity-0 after:transition-opacity after:duration-150 focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground active:after:opacity-10 active:after:duration-0 data-highlighted:bg-accent data-highlighted:text-accent-foreground pointer-coarse:min-h-10 pointer-coarse:gap-2 pointer-coarse:pl-2 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...i,children:[(0,n.jsx)(eQ,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:r}),(0,n.jsx)(e0,{render:(0,n.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,n.jsx)(e6.A,{className:"pointer-events-none"})})]})}function ti(e){let{className:t,...r}=e;return(0,n.jsx)(e3,{"data-slot":"select-scroll-up-button",className:(0,e5.cn)("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",t),...r,children:(0,n.jsx)(e9.A,{})})}function ts(e){let{className:t,...r}=e;return(0,n.jsx)(e4,{"data-slot":"select-scroll-down-button",className:(0,e5.cn)("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",t),...r,children:(0,n.jsx)(e8.A,{})})}},99170:(e,t,r)=>{"use strict";r.d(t,{l$:()=>x,oR:()=>m});var n=r(14343),i=r(33475);let s=Array(12).fill(0),o=({visible:e,className:t})=>n.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},n.createElement("div",{className:"sonner-spinner"},s.map((e,t)=>n.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),a=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},n.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"})),l=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},n.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"})),u=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},n.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"})),c=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},n.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"})),d=n.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","aria-hidden":"true"},n.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),h=1,f=e=>{var t;return"number"==typeof(null==e?void 0:e.id)||(null==e||null==(t=e.id)?void 0:t.length)>0?e.id:h++};class p{constructor(){this.subscribe=e=>
11(this.subscribers.push(e),this.getActiveToasts().forEach(t=>e(t)),()=>{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.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-100;e<=0||(this.toasts=this.toasts.filter(t=>!(e>0&&this.dismissedToasts.has(t.id))||(this.dismissedToasts.delete(t.id),e--,!1)))},this.create=e=>{let{message:t,...r}=e,n=f(e),i=this.pendingDismissals.get(n);void 0!==i&&(cancelAnimationFrame(i),this.pendingDismissals.delete(n),this.dismissedToasts.delete(n));let s=this.dismissedToasts.has(n),o=void 0===e.dismissible||e.dismissible;return s&&(this.dismissedToasts.delete(n),this.toasts=this.toasts.filter(e=>e.id!==n)),(s?void 0:this.toasts.find(e=>e.id===n))?this.toasts=this.toasts.map(r=>r.id===n?(this.publish({...r,...e,id:n,title:t}),{...r,...e,id:n,dismissible:o,title:t}):r):this.addToast({title:t,...r,dismissible:o,id:n}),n},this.dismiss=e=>{if(null==e)return this.getActiveToasts().forEac
11h(e=>{this.dismissedToasts.add(e.id),this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);return void 0!==t&&cancelAnimationFrame(t),this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),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)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let r,i;if(!t)return;void 0!==t.loading&&(i=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let s=Promise.resolve(e instanceof Function?e():e),o=void 0!==i,a=s.then(async e=>{if(r=["resolve",e],n.isValidElement(e))o=!1,this.create({id:i,type:"default",message:e});else if(v(e)&&!e.ok){o=!1;let r="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,s="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,a="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:i,type:"error",description:s,...a})}else if(e instanceof Error){o=!1;let r="function"==typeof t.error?await t.error(e):t.error,s="function"==typeof t.description?await t.description(e):t.description,a="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:i,type:"error",description:s,...a})}else if(void 0!==t.success){o=!1;let r="function"==typeof t.success?await t.success(e):t.success,s="function"==typeof t.description?await t.description(e):t.description,a="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:i,type:"success",description:s,...a})}}).catch(async e=>{if(r=["reject",e],void 0!==t.error){o=!1;let r="function"==typeof t.error?await t.error(e):t.error,s="function"==typeof t.description?await t.description(e):t.description,a="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:i,type:"error",description:s,...a})}}).finally(()=>{o&&(this.dismiss(i),i=void 0),null==t.finally||t.finally.call(t)}),l=()=>new Promise((e,t)=>a.then(()=>"reject"===r[0]?t(r[1]):e(r[1])).catch(t));return"string"!=typeof i&&"number"!=typeof i?{unwrap:l}:Object.assign(i,{unwrap:l})},this.custom=(e,t)=>{let r=f(t);return this.create({...t,jsx:e(r),id:r,type:void 0}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}}let g=new p,v=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,m=Object.assign((e,t)=>g.message(e,t),{success:g.success,info:g.info,warning:g.warning,error:g.error,custom:g.custom,message:g.message,promise:g.promise,dismiss:g.dismiss,loading:g.loading},{getHistory:()=>g.toasts,getToasts:()=>g.getActiveToasts()});function y(e){return void 0!==e.label}function b(...e){return e.filter(Boolean).join(" ")}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}
vendor: 14,921 bytes, line 11
11("[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;flex:1;min-width:0}[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(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);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]{-webkit-user-select:none;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%)}");
11let _=e=>{var t,r,i,s,h,f,p,g,v,m,_;let{invert:w,toast:x,unstyled:E,interacting:S,setHeights:R,visibleToasts:k,heights:T,index:A,toasts:C,expanded:P,removeToast:O,defaultRichColors:I,closeButton:M,style:L,cancelButtonStyle:N,actionButtonStyle:j,className:B="",descriptionClassName:F="",duration:D,position:H,gap:U,exp
11andByDefault:$,classNames:z,icons:q,closeButtonAriaLabel:V="Close toast"}=e,[G,W]=n.useState(null),[K,Y]=n.useState(null),[X,J]=n.useState(!1),[Z,Q]=n.useState(!1),[ee,et]=n.useState(!1),[er,en]=n.useState(!1),[ei,es]=n.useState(!1),[eo,ea]=n.useState(0),[el,eu]=n.useState(0),ec=n.useRef(x.duration||D||4e3),ed=n.useRef(null),eh=n.useRef(null),ef=0===A,ep=A+1<=k,eg=x.type,ev=null!=eg?eg:"default",em=!1!==x.dismissible,ey=x.className||"",eb=x.descriptionClassName||"",e_=n.useMemo(()=>T.findIndex(e=>e.toastId===x.id)||0,[T,x.id]),ew=n.useMemo(()=>{var e;return null!=(e=x.closeButton)?e:M},[x.closeButton,M]),ex=n.useMemo(()=>x.duration||D||4e3,[x.duration,D]),eE=n.useRef(0),eS=n.useRef(0),eR=n.useRef(0),ek=n.useRef(null),[eT,eA]=H.split("-"),eC=n.useMemo(()=>T.reduce((e,t,r)=>r>=e_?e:e+t.height,0),[T,e_]),eP=(()=>{let[e,t]=n.useState(document.hidden);return n.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[]),e})(),eO=n.useMemo(()=>{var t;return null!=(t=e.swipeDirections)?t:function(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}(H)},[e.swipeDirections,H]),eI=x.invert||w,eM="loading"===eg;eS.current=n.useMemo(()=>e_*U+eC,[e_,eC]),n.useEffect(()=>{ec.current=ex},[ex]),n.useEffect(()=>{J(!0)},[]),n.useEffect(()=>{let e=eh.current;if(e){let t=e.getBoundingClientRect().height;return eu(t),R(e=>[{toastId:x.id,height:t,position:x.position},...e]),()=>R(e=>e.filter(e=>e.toastId!==x.id))}},[R,x.id]),n.useLayoutEffect(()=>{if(!X)return;let e=eh.current,t=e.style.height;e.style.height="auto";let r=e.getBoundingClientRect().height;e.style.height=t,eu(r),R(e=>e.find(e=>e.toastId===x.id)?e.map(e=>e.toastId===x.id?{...e,height:r}:e):[{toastId:x.id,height:r,position:x.position},...e])},[X,x.title,x.description,R,x.id,x.jsx,x.action,x.cancel]);let eL=n.useCallback(()=>{Q(!0),ea(eS.current),R(e=>e.filter(e=>e.toastId!==x.id)),setTimeout(()=>{O(x)},200)},[x,O,R,eS]);function eN(){var e,t;return(null==q?void 0:q.loading)?n.createElement("div",{className:b(null==z?void 0:z.loader,null==x||null==(t=x.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===eg},q.loading):n.createElement(o,{className:b(null==z?void 0:z.loader,null==x||null==(e=x.classNames)?void 0:e.loader),visible:"loading"===eg})}n.useEffect(()=>{let e;if((!x.promise||"loading"!==eg)&&x.duration!==1/0&&"loading"!==x.type)return P||S||eP?(()=>{if(eR.current<eE.current){let e=new Date().getTime()-eE.current;ec.current=ec.current-e}eR.current=new Date().getTime()})():ec.current!==1/0&&(eE.current=new Date().getTime(),e=setTimeout(()=>{null==x.onAutoClose||x.onAutoClose.call(x,x),eL()},ec.current)),()=>clearTimeout(e)},[P,S,x,eg,eP,eL]),n.useEffect(()=>{x.delete&&(eL(),null==x.onDismiss||x.onDismiss.call(x,x))},[eL,x.delete]);let ej=x.icon||(null==q?void 0:q[eg])||(e=>{switch(e){case"success":return a;case"info":return u;case"warning":return l;case"error":return c;default:return null}})(eg);return n.createElement("li",{tabIndex:0,ref:eh,className:b(B,ey,null==z?void 0:z.toast,null==x||null==(t=x.classNames)?void 0:t.toast,null==z?void 0:z[ev],null==x||null==(r=x.classNames)?void 0:r[ev]),"data-sonner-toast":"","data-rich-colors":null!=(m=x.richColors)?m:I,"data-styled":!(x.jsx||x.unstyled||E),"data-mounted":X,"data-promise":!!x.promise,"data-swiped":ei,"data-removed":Z,"data-visible":ep,"data-y-position":eT,"data-x-position":eA,"data-index":A,"data-front":ef,"data-swiping":ee,"data-dismissible":em,"data-type":eg,"data-invert":eI,"data-swipe-out":er,"data-swipe-direction":K,"data-expanded":!!(P||$&&X),"data-testid":x.testId,style:{"--index":A,"--toasts-before":A,"--z-index":C.length-A,"--offset":`${Z?eo:eS.current}px`,"--initial-height":$?"auto":`${el}px`,...L,...x.style},onDragEnd:()=>{et(!1),W(null),ek.current=null},onPointerDown:e=>
11{2!==e.button&&!eM&&em&&(ed.current=new Date,ea(eS.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(et(!0),ek.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,n,i;if(er||!em)return;ek.current=null;let s=Number((null==(e=eh.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),o=Number((null==(t=eh.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),a=new Date().getTime()-(null==(r=ed.current)?void 0:r.getTime()),l="x"===G?s:o,u=Math.abs(l)/a;if(("x"===G?eO.includes(s>0?"right":"left"):eO.includes(o>0?"bottom":"top"))&&(Math.abs(l)>=45||u>.11)){ea(eS.current),null==x.onDismiss||x.onDismiss.call(x,x),"x"===G?Y(s>0?"right":"left"):Y(o>0?"down":"up"),eL(),en(!0);return}null==(n=eh.current)||n.style.setProperty("--swipe-amount-x","0px"),null==(i=eh.current)||i.style.setProperty("--swipe-amount-y","0px"),es(!1),et(!1),W(null)},onPointerMove:e=>{var t,r,n;if(!ek.current||!em||(null==(t=window.getSelection())?void 0:t.toString().length)>0)return;let i=e.clientY-ek.current.y,s=e.clientX-ek.current.x;!G&&(Math.abs(s)>1||Math.abs(i)>1)&&W(Math.abs(s)>Math.abs(i)?"x":"y");let o={x:0,y:0},a=e=>1/(1.5+Math.abs(e)/20);if("y"===G){if(eO.includes("top")||eO.includes("bottom"))if(eO.includes("top")&&i<0||eO.includes("bottom")&&i>0)o.y=i;else{let e=i*a(i);o.y=Math.abs(e)<Math.abs(i)?e:i}}else if("x"===G&&(eO.includes("left")||eO.includes("right")))if(eO.includes("left")&&s<0||eO.includes("right")&&s>0)o.x=s;else{let e=s*a(s);o.x=Math.abs(e)<Math.abs(s)?e:s}(Math.abs(o.x)>0||Math.abs(o.y)>0)&&es(!0),null==(r=eh.current)||r.style.setProperty("--swipe-amount-x",`${o.x}px`),null==(n=eh.current)||n.style.setProperty("--swipe-amount-y",`${o.y}px`)}},ew&&!x.jsx&&"loading"!==eg?n.createElement("button",{"aria-label":V,"data-disabled":eM,"data-close-button":!0,onClick:eM||!em?()=>{}:()=>{eL(),null==x.onDismiss||x.onDismiss.call(x,x)},className:b(null==z?void 0:z.closeButton,null==x||null==(i=x.classNames)?void 0:i.closeButton)},null!=(_=null==q?void 0:q.close)?_:d):null,(eg||x.icon||x.promise)&&null!==x.icon&&((null==q?void 0:q[eg])!==null||x.icon)?n.createElement("div",{"data-icon":"",className:b(null==z?void 0:z.icon,null==x||null==(s=x.classNames)?void 0:s.icon)},"loading"===eg?x.icon||eN():x.promise?eN():null,"loading"!==eg?ej:null):null,n.createElement("div",{"data-content":"",className:b(null==z?void 0:z.content,null==x||null==(h=x.classNames)?void 0:h.content)},n.createElement("div",{"data-title":"",className:b(null==z?void 0:z.title,null==x||null==(f=x.classNames)?void 0:f.title)},x.jsx?x.jsx:"function"==typeof x.title?x.title():x.title),x.description?n.createElement("div",{"data-description":"",className:b(F,eb,null==z?void 0:z.description,null==x||null==(p=x.classNames)?void 0:p.description)},"function"==typeof x.description?x.description():x.description):null),n.isValidElement(x.cancel)?x.cancel:x.cancel&&y(x.cancel)?n.createElement("button",{"data-button":!0,"data-cancel":!0,style:x.cancelButtonStyle||N,onClick:e=>{y(x.cancel)&&em&&(null==x.cancel.onClick||x.cancel.onClick.call(x.cancel,e),eL())},className:b(null==z?void 0:z.cancelButton,null==x||null==(g=x.classNames)?void 0:g.cancelButton)},x.cancel.label):null,n.isValidElement(x.action)?x.action:x.action&&y(x.action)?n.createElement("button",{"data-button":!0,"data-action":!0,style:x.actionButtonStyle||j,onClick:e=>{y(x.action)&&(null==x.action.onClick||x.action.onClick.call(x.action,e),e.defaultPrevented||eL())},className:b(null==z?void 0:z.actionButton,null==x||null==(v=x.classNames)?void 0:v.actionButton)},x.action.label):null)};function w(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}let x=n.forwardRef(function(e,t){let{id:r,invert:s,position:o="bottom-right",hotkey:a=["altKey","KeyT"],expand:l,closeButton:u,className:c,offset:d,mobileOffset:h,theme:f="light",richColors:p,duration:v,style:m,visibleToasts:y=3,toastOptions:b,dir:x=w(),gap:E=14,icons:S,customAriaLabel:R,containerAriaLabel:k="Notifications"}=e,[T,A]=n.useState([]),C=n.useMemo(()=>r?T.filter(e=>e.toasterId===r):T.filter(e=>!e.toasterId),[T,r]),P=n.useMemo(()=>Array.from(new Set([o].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,o]),[O,I]=n.useState([]),[M,L]=n.useState(!1),[N,j]=n.useState(!1),[B,F]=n.useState("system"!==f?f:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
11k":"light"),D=n.useRef(null),H=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=n.useRef(null),$=n.useRef(!1),z=n.useCallback(e=>{A(t=>{var r;return(null==(r=t.find(t=>t.id===e.id))?void 0:r.delete)||g.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return n.useEffect(()=>g.subscribe(e=>{if(e.dismiss)return void requestAnimationFrame(()=>{A(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});setTimeout(()=>{i.flushSync(()=>{A(t=>{let r=t.findIndex(t=>t.id===e.id);return -1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[]),n.useEffect(()=>{if("system"!==f)return void F(f);if("system"===f&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),"undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",({matches:e})=>{e?F("dark"):F("light")})}catch(t){e.addListener(({matches:e})=>{try{e?F("dark"):F("light")}catch(e){console.error(e)}})}},[f]),n.useEffect(()=>{T.length<=1&&L(!1)},[T]),n.useEffect(()=>{let e=e=>{var t,r;a.length>0&&a.every(t=>e[t]||e.code===t)&&(L(!0),null==(r=D.current)||r.focus()),"Escape"===e.code&&(document.activeElement===D.current||(null==(t=D.current)?void 0:t.contains(document.activeElement)))&&L(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a]),n.useEffect(()=>{if(D.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,$.current=!1)}},[D.current]),n.createElement("section",{ref:t,"aria-label":null!=R?R:`${k} ${H}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},P.map((t,r)=>{var i;let[o,a]=t.split("-");return C.length?n.createElement("ol",{key:t,dir:"auto"===x?w():x,tabIndex:-1,ref:D,className:c,"data-sonner-toaster":!0,"data-sonner-theme":B,"data-y-position":o,"data-x-position":a,style:{"--front-toast-height":`${(null==(i=O[0])?void 0:i.height)||0}px`,"--width":"356px","--gap":`${E}px`,...m,...function(e,t){let r={};return[e,t].forEach((e,t)=>{let n=1===t,i=n?"--mobile-offset":"--offset",s=n?"16px":"24px";function o(e){["top","right","bottom","left"].forEach(t=>{r[`${i}-${t}`]="number"==typeof e?`${e}px`:e})}"number"==typeof e||"string"==typeof e?o(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?r[`${i}-${t}`]=s:r[`${i}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]}):o(s)}),r}(d,h)},onBlur:e=>{$.current&&!e.currentTarget.contains(e.relatedTarget)&&($.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:e=>{!(e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible)&&($.current||($.current=!0,U.current=e.relatedTarget))},onMouseEnter:()=>L(!0),onMouseMove:()=>L(!0),onMouseLeave:()=>{N||L(!1)},onDragEnd:()=>L(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||j(!0)},onPointerUp:()=>j(!1)},C.filter(e=>!e.position&&0===r||e.position===t).map((r,i)=>{var o,a;return n.createElement(_,{key:r.id,icons:S,index:i,toast:r,defaultRichColors:p,duration:null!=(o=null==b?void 0:b.duration)?o:v,className:null==b?void 0:b.className,descriptionClassName:null==b?void 0:b.descriptionClassName,invert:s,visibleToasts:y,closeButton:null!=(a=null==b?void 0:b.closeButton)?a:u,interacting:N,position:t,style:null==b?void 0:b.style,unstyled:null==b?void 0:b.unstyled,classNames:null==b?void 0:b.classNames,cancelButtonStyle:null==b?void 0:b.cancelButtonStyle,actionButtonStyle:null==b?void 0:b.actionButtonStyle,closeButtonAriaLabel:null==b?void 0:b.closeButtonAriaLabel,removeToast:z,toasts:C.filter(e=>e.position==r.position),heights:O.filter(e=>e.position==r.position),setHeights:I,expandByDefault:l,gap:E,expanded:M,swipeDirections:e.swipeDirections})})):null}))})},99370:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}
11,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleMapsEmbed=void 0;let s=i(r(5522)),o=r(9957);t.GoogleMapsEmbed=e=>{var t=n(e,[]);return(0,o.formatData)(s.default,t)}},99482:(e,t,r)=>{"use strict";r.d(t,{D8:()=>u,GH:()=>l,uu:()=>c});var n=r(3166),i=r(16801),s=r(73897);class o{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new s.E,this.restTimeout=new s.E,this.handleCloseOptions=void 0}static create(){return new o}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}let a=new WeakMap;function l(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&a.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),a.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function u(e,t){let{scopeElement:r,referenceElement:n,floatingElement:i}=t,s=a.get(r);s&&s!==e&&l(s),l(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=r,e.pointerEventsReferenceElement=n,e.pointerEventsFloatingElement=i,a.set(r,e),r.style.pointerEvents="none",n.style.pointerEvents="auto",i.style.pointerEvents="auto"}function c(e){let t=e.context.dataRef.current,r=(0,i.j)(()=>t.hoverInteractionState??o.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=r),(0,n.y)(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(55096),t(92031))),_N_E=e.O()}]);

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