PageSourceSearch

https://swetrix.com/docs/_next/static/chunks/1cx1qz1s1-0pq.js

js swetrix.com collected 2026-09-24 19:01:24 UTC 113,221 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,687607,e=>{"use strict";var t=e.i(271645),r=e.i(981140),n=e.i(30030),o=e.i(369340),i=e.i(934620),a=e.i(820783),s=e.i(248425),l=e.i(296626),c=e.i(610772),u=e.i(843476),d=Object.defineProperty,f=(e,t)=>d(e,"name",{value:t,configurable:!0}),p="Collapsible",[h,m]=(0,n.createContextScope)(p),[g,v]=h(p),b=t.forwardRef(f(function(e,r){let{__scopeCollapsible:n,open:i,defaultOpen:a,disabled:l,onOpenChange:d,...f}=e,[h,m]=(0,o.useControllableState)({prop:i,defaultProp:a??!1,onChange:d,caller:p});return(0,u.jsx)(g,{scope:n,disabled:l,contentId:(0,c.useId)(),open:h,onOpenToggle:t.useCallback(()=>m(e=>!e),[m]),children:(0,u.jsx)(s.Primitive.div,{"data-state":j(h),"data-disabled":l?"":void 0,...f,ref:r})})},"Collapsible")),y=t.forwardRef(f(function(e,t){let{__scopeCollapsible:n,...o}=e,i=v("CollapsibleTrigger",n);return(0,u.jsx)(s.Primitive.button,{type:"button","aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":j(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...o,ref:t,onClick:(0,r.composeEventHandlers)(e.onClick,i.onOpenToggle)})},"CollapsibleTrigger")),x="CollapsibleContent",w=t.forwardRef(f(function(e,t){let{forceMount:r,...n}=e,o=v(x,e.__scopeCollapsible);return(0,u.jsx)(l.Presence,{present:r||o.open,children:({present:e})=>(0,u.jsx)(S,{...n,ref:t,present:e})})},"CollapsibleContent")),S=t.forwardRef(f(function(e,r){let{__scopeCollapsible:n,present:o,children:l,...c}=e,d=v(x,n),[f,p]=t.useState(o),h=t.useRef(null),m=(0,a.useComposedRefs)(r,h),g=t.useRef(0),b=g.current,y=t.useRef(0),w=y.current,S=d.open||f,C=t.useRef(S),R=t.useRef(void 0);return t.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,i.useLayoutEffect)(()=>{let e=h.current;if(e){R.current=R.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,y.current=t.width,C.current||(e.style.transitionDuration=R.current.transitionDuration,e.style.animationName=R.current.animationName),p(o)}},[d.open,o]),(0,u.jsx)(s.Primitive.div,{"data-state":j(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!S,...c,ref:m,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:S&&l})},"CollapsibleContentImpl"));function j(e){return e?"open":"closed"}f(j,"getState"),e.s(["CollapsibleContent",0,w,"CollapsibleTrigger",0,y,"Content",0,w,"Root",0,b,"Trigger",0,y,"createCollapsibleScope",0,m])},586318,e=>{"use strict";var t=e.i(271645),r=e.i(843476),n=Object.defineProperty,o=(e,t)=>n(e,"name",{value:t,configurable:!0}),i=t.createContext(void 0),a=o(e=>{let{dir:t,children:n}=e;return(0,r.jsx)(i.Provider,{value:t,children:n})},"DirectionProvider");function s(e){let r=t.useContext(i);return e||r||"ltr"}o(s,"useDirection"),e.s(["DirectionProvider",0,a,"useDirection",0,s])},178761,e=>{"use strict";let t;var r=e.i(271645),n=e.i(981140),o=e.i(820783),i=e.i(30030),a=e.i(726330),s=e.i(303536),l=e.i(765491),c=e.i(610772);let u=["top","right","bottom","left"],d=Math.min,f=Math.max,p=Math.round,h=Math.floor,m=e=>({x:e,y:e}
vendor: 5,731 bytes, line 1
1),g={left:"right",right:"left",bottom:"top",top:"bottom"};function v(e,t){return"function"==typeof e?e(t):e}function b(e){return e.split("-")[0]}function y(e){return e.split("-")[1]}function x(e){return"x"===e?"y":"x"}function w(e){return"y"===e?"height":"width"}function S(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function j(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let C=["left","right"],R=["right","left"],P=["top","bottom"],k=["bottom","top"];function E(e){let t=b(e);return g[t]+e.slice(t.length)}function T(e){var t,r,n,o;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!=(o=e.left)?o:0}:{top:e,right:e,bottom:e,left:e}}function O(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function I(e,t,r){let n,{reference:o,floating:i}=e,a=S(t),s=x(S(t)),l=w(s),c=b(t),u=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,f=o[l]/2-i[l]/2;switch(c){case"top":n={x:u,y:o.y-i.height};break;case"bottom":n={x:u,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:d};break;case"left":n={x:o.x-i.width,y:d};break;default:n={x:o.x,y:o.y}}let p=y(t);return p&&(n[s]+=f*("end"===p?1:-1)*(r&&"y"===a?-1:1)),n}async function L(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=v(t,e),h=T(p),m=s[f?"floating"===d?"reference":"floating":d],g=O(await i.getClippingRect({element:null==(r=await (null==i.isElement?void 0:i.isElement(m)))||r?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),b="floating"===d?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),x=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=O(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:l}):b);return{top:(g.top-w.top+h.top)/x.y,bottom:(w.bottom-g.bottom+h.bottom)/x.y,left:(g.left-w.left+h.left)/x.x,right:(w.right-g.right+h.right)/x.x}}let A=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=a.detectOverflow?a:{...a,detectOverflow:L},l=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=I(c,n,l),f=n,p=0,h={};for(let r=0;r<i.length;r++){let m=i[r];if(!m)continue;let{name:g,fn:v}=m,{x:b,y:y,data:x,reset:w}=await v({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=b?b:u,d=null!=y?y:d,h[g]={...h[g],...x},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:u,y:d}=I(c,f,l)),r=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}};function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function D(e){return u.some(t=>e[t]>=0)}let _=new Set(["left","top"]);async function M(e,t){let{placement:r,platform:n,elements:o}=e,i=await (null==n.isRTL?void 0:n.isRTL(o.floating)),a=b(r),s=y(r),l="y"===S(r),c=_.has(a)?-1:1,u=i&&l?-1:1,d=v(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}function F(){return"u">typeof window}function z(e){return W(e)?(e.nodeName||"").toLowerCase():"#document"}function $(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function B(e){var t;return null==(t=(W(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function W(e){return!!F()&&(e instanceof Node||e instanceof $(e).Node)}function V(e){return!!F()&&(e instanceof Element||e instanceof $(e).Element)}function H(e){return!!F()&&(e instanceof HTMLElement||e instanceof $(e).HTMLElement)}function U(e){return!(!F()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof $(e).ShadowRoot)}function q(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function X(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let K=/transform|translate|scale|rotate|perspective|filter/,Y=/paint|layout|strict|content/,G=e=>!!e&&"none"!==e;function J(e){let t=V(e)?ee(e):e;return G(t.transform)||G(t.translate)||G(t.scale)||G(t.rotate)||G(t.perspective)||!Z()&&(G(t.backdropFilter)||G(t.filter))||K.test(t.willChange||"")||Y.test(t.contain||"")}function Z(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function Q(e){return/^(html|body|#document)$/.test(z(e))}function ee(e){return $(e).getComputedStyle(e)}function et(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if("html"===z(e))return e;let t=e.assignedSlot||e.parentNode||U(e)&&e.host||B(e);return U(t)?t.host:t}function en(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=er(t);return Q(r)?(t.ownerDocument||t).body:H(r)&&q(r)?r:e(r)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=$(o);if(!i)return t.concat(o,en(o,[],r));{let e=eo(a);
1return t.concat(a,a.visualViewport||[],q(o)?o:[],e&&r?en(e):[])}}function eo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ei(e){let t=ee(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=H(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=p(r)!==i||p(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function ea(e){return V(e)?e:e.contextElement}function es(e){let t=ea(e);if(!H(t))return m(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:i}=ei(t),a=(i?p(r.width):r.width)/n,s=(i?p(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let el=m(0);function ec(e){let t=$(e);return Z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function eu(e,t,r,n){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),a=ea(e),s=m(1);t&&(n?V(n)&&(s=es(n)):s=es(e));let l=(void 0===(o=r)&&(o=!1),n&&o&&n===$(a))?ec(a):m(0),c=(i.left+l.x)/s.x,u=(i.top+l.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(a&&n){let e=$(a),t=V(n)?$(n):n,r=e,o=eo(r);for(;o&&t!==r;){let e=es(o),t=o.getBoundingClientRect(),n=ee(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,f*=e.y,c+=i,u+=a,o=eo(r=$(o))}}return O({width:d,height:f,x:c,y:u})}function ed(e,t){let r=et(e).scrollLeft;return t?t.left+r:eu(B(e)).left+r}function ef(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ed(e,r),y:r.top+t.scrollTop}}function ep(e,t,r){var n;let o;if("viewport"===t||"layoutViewport"===t)o=function(e,t,r){void 0===r&&(r="viewport");let n="layoutViewport"===r,o=$(e),i=B(e),a=o.visualViewport,s=i.clientWidth,l=i.clientHeight,c=0,u=0;if(a){let e=!Z()||"fixed"===t;n?e||(c=-a.offsetLeft,u=-a.offsetTop):(s=a.width,l=a.height,e&&(c=a.offsetLeft,u=a.offsetTop))}if(0>=ed(i)){let e=i.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-n),a="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;a<=25&&(s-=a)}return{width:s,height:l,x:c,y:u}}(e,r,t);else if("document"===t){let t,r,i,a,s,l;t=et(n=B(e)),r=n.ownerDocument.body,i=f(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),a=f(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+ed(n),l=-t.scrollTop,"rtl"===ee(r).direction&&(s+=f(n.clientWidth,r.clientWidth)-i),o={width:i,height:a,x:s,y:l}}else if(V(t)){let e,n,i,a,s,l;n=(e=eu(t,!0,"fixed"===r)).top+t.clientTop,i=e.left+t.clientLeft,a=es(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,o={width:s,height:l,x:i*a.x,y:n*a.y}}else{let r=ec(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return O(o)}function eh(e){return"static"===ee(e).position}function em(e,t){if(!H(e)||"fixed"===ee(e).position)return null;if(t)return t(e);let r=e.offsetParent;return B(e)===r&&(r=r.ownerDocument.body),r}function eg(e,t){var r;let n=$(e);if(X(e))return n;if(!H(e)){let t=er(e);for(;t&&!Q(t);){if(V(t)&&!eh(t))return t;t=er(t)}return n}let o=em(e,t);for(;o&&(r=o,/^(table|td|th)$/.test(z(r)))&&eh(o);)o=em(o,t);return o&&Q(o)&&eh(o)&&!J(o)?n:o||function(e){let t=er(e);for(;H(t)&&!Q(t);){if(J(t))return t;if(X(t))break;t=er(t)}return null}(e)||n}let ev=async function(e){let t=this.getOffsetParent||eg,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=H(t),o=B(t),i="fixed"===r,a=eu(e,!0,i,t),s={scrollLeft:0,scrollTop:0},l=m(0);if((n||!i)&&(("body"!==z(t)||q(o))&&(s=et(t)),n)){let e=eu(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!n&&o&&(l.x=ed(o));let c=!o||n||i?m(0):ef(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},eb={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,i="fixed"===o,a=B(n),s=!!t&&X(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=m(1),u=m(0),d=H(n);
1if((d||!i)&&(("body"!==z(n)||q(a))&&(l=et(n)),d)){let e=eu(n);c=es(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}let f=!a||d||i?m(0):ef(a,l);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:B,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,i=[..."clippingAncestors"===r?X(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=en(e,[],!1).filter(e=>V(e)&&"body"!==z(e)),o=null,i="fixed"===ee(e).position,a=i?er(e):e;for(;V(a)&&!Q(a);){let e=ee(a),t=J(a),r=o?o.position:i?"fixed":"";t||"fixed"!==r&&("absolute"!==r||"static"!==e.position)?o=e:n=n.filter(e=>e!==a),a=er(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=ep(t,i[0],o),s=a.top,l=a.right,c=a.bottom,u=a.left;for(let e=1;e<i.length;e++){let r=ep(t,i[e],o);s=f(r.top,s),l=d(r.right,l),c=d(r.bottom,c),u=f(r.left,u)}return{width:l-u,height:c-s,x:u,y:s}},getOffsetParent:eg,getElementRects:ev,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:r}=ei(e);return{width:t,height:r}},getScale:es,isElement:V,isRTL:function(e){return"rtl"===ee(e).direction}};function ey(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ex=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=v(e,t)||{};if(null==c)return{};let p=T(u),h={x:r,y:n},m=x(S(o)),g=w(m),b=await a.getDimensions(c),j="y"===m,C=j?"clientHeight":"clientWidth",R=i.reference[g]+i.reference[m]-h[m]-i.floating[g],P=h[m]-i.reference[m],k=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),E=k?k[C]:0;E&&await (null==a.isElement?void 0:a.isElement(k))||(E=s.floating[C]||i.floating[g]);let O=E/2-b[g]/2-1,I=d(p[j?"top":"left"],O),L=d(p[j?"bottom":"right"],O),A=E-b[g]-L,N=E/2-b[g]/2+(R/2-P/2),D=f(I,d(N,A)),_=!l.arrow&&null!=y(o)&&N!==D&&i.reference[g]/2-(N<I?I:L)-b[g]/2<0,M=_?N<I?N-I:N-A:0;return{[m]:h[m]+M,data:{[m]:D,centerOffset:N-D-M,..._&&{alignmentOffset:M}},reset:_}}});var ew=e.i(174080),eS="u">typeof document?r.useLayoutEffect:function(){};function ej(e,t){let r,n,o;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(!ej(e[n],t[n]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if(("_owner"!==r||!e.$$typeof)&&!ej(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eC(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eR(e,t){let r=eC(e);return Math.round(t*r)/r}function eP(e){let t=r.useRef(e);return eS(()=>{t.current=e}),t}var ek=e.i(248425),eE=e.i(843476),eT=Object.defineProperty,eO=r.forwardRef(eT(function(e,t){let{children:r,width:n=10,height:o=5,...i}=e;return(0,eE.jsx)(ek.Primitive.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,eE.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0})),eI=e.i(30207),eL=e.i(934620);function eA(e){let[t,n]=r.useState(void 0);return(0,eL.useLayoutEffect)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(0,Object.defineProperty)(eA,"name",{value:"useSize",configurable:!0});var eN=Object.defineProperty,eD=(e,t)=>eN(e,"name",{value:t,configurable:!0}),e_="Popper",[eM,eF]=(0,i.createContextScope)(e_),[ez,e$]=eM(e_),eB=eD(e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null),[a,s]=r.useState(void 0);return(0,eE.jsx)(ez,{scope:t,anchor:o,onAnchorChange:i,placementState:a,setPlacementState:s,children:n})},"Popper"),eW=r.forwardRef(eD(function(e,t){let{__scopePopper:n,virtualRef:i,...a}=e,s=e$("PopperAnchor",n),l=r.useRef(null),c=s.onAnchorChange,u=r.useCallback(e=>{l.current=e,e&&c(e)},[c]),d=(0,o.useComposedRefs)(t,u),f=r.useRef(null);r.useEffect(()=>{if(!i)return;let e=f.current;f.current=i.current,e!==f.current&&c(f.current)});let p=s.placementState&&eG(s.placementState),h=p?.[0],m=p?.[1];return i?null:(0,eE.jsx)(ek.Primitive.div,{"data-radix-popper-side":h,"data-radix-popper-align":m,...a,ref:d})},"PopperAnchor")),eV="PopperContent",[eH,eU]=eM(eV),eq=r.forwardRef(eD(function(e,t){var n,i,a,s,l,c,u,p,m,g,T,O,I;let L,F,z,W,V,H,{__scopePopper:U,side:q="bottom",sideOffset:X=0,align:K="center",alignOffset:Y=0,arrowPadding:G=0,avoidCollisions:J=!0,collisionBoundary:Z=[],collisionPadding:Q=0,sticky:ee="partial",hideWhenDetached:et=!1,updatePositionStrategy:er="optimized",onPlaced:eo,...ei}=e,es=e$(eV,U),[el,ec]=r.useState(null),ed=(0,o.useComposedRefs)(t,ec),[ef,ep]=r.useState(null),eh=eA(ef),em=eh?.width??0,eg=eh?.he
1ight??0,ev="number"==typeof Q?Q:{top:0,right:0,bottom:0,left:0,...Q},eT=Array.isArray(Z)?Z:[Z],eO=eT.length>0,eN={padding:ev,boundary:eT.filter(eK),altBoundary:eO},{refs:e_,floatingStyles:eM,placement:eF,isPositioned:ez,middlewareData:eB}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);ej(p,o)||h(o);let[m,g]=r.useState(null),[v,b]=r.useState(null),y=r.useCallback(e=>{e!==j.current&&(j.current=e,g(e))},[]),x=r.useCallback(e=>{e!==C.current&&(C.current=e,b(e))},[]),w=a||m,S=s||v,j=r.useRef(null),C=r.useRef(null),R=r.useRef(d),P=null!=c,k=eP(c),E=eP(i),T=eP(u),O=r.useCallback(()=>{var e,r;let o,i,a;if(!j.current||!C.current)return;let s={placement:t,strategy:n,middleware:p};E.current&&(s.platform=E.current),(e=j.current,r=C.current,o=new Map,i=null!=s?s:{},a={...eb,...i.platform,_c:o},A(e,r,{...i,platform:a})).then(e=>{let t={...e,isPositioned:!1!==T.current};I.current&&!ej(R.current,t)&&(R.current=t,ew.flushSync(()=>{f(t)}))})},[p,t,n,E,T]);eS(()=>{!1===u&&R.current.isPositioned&&(R.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let I=r.useRef(!1);eS(()=>(I.current=!0,()=>{I.current=!1}),[]),eS(()=>{if(w&&(j.current=w),S&&(C.current=S),w&&S){if(k.current)return k.current(w,S,O);O()}},[w,S,O,k,P]);let L=r.useMemo(()=>({reference:j,floating:C,setReference:y,setFloating:x}),[y,x]),N=r.useMemo(()=>({reference:w,floating:S}),[w,S]),D=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=eR(N.floating,d.x),r=eR(N.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eC(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,N.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:O,refs:L,elements:N,floatingStyles:D}),[d,O,L,N,D])}({strategy:"fixed",placement:q+("center"!==K?"-"+K:""),whileElementsMounted:eD((...e)=>(function(e,t,r,n){let o;void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,u=ea(e),p=i||a?[...u?en(u):[],...t?en(t):[]]:[];p.forEach(e=>{i&&e.addEventListener("scroll",r),a&&e.addEventListener("resize",r)});let m=u&&l?function(e,t,r){let n,o=null,i=B(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}function s(r,l){void 0===r&&(r=!1),void 0===l&&(l=1),a();let c=e.getBoundingClientRect(),{left:u,top:p,width:m,height:g}=c;if(r||t(),!m||!g)return;let v={rootMargin:-h(p)+"px "+-h(i.clientWidth-(u+m))+"px "+-h(i.clientHeight-(p+g))+"px "+-h(u)+"px",threshold:f(0,d(1,l))||1},b=!0;function y(t){let r=t[0].intersectionRatio;if(!ey(c,e.getBoundingClientRect()))return s();if(r!==l){if(!b)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!1}try{o=new IntersectionObserver(y,{...v,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(y,v)}o.observe(e)}let l=$(e),c=()=>s(r);return l.addEventListener("resize",c),s(!0),()=>{l.removeEventListener("resize",c),a()}}(u,r,a):null,g=-1,v=null;s&&(v=new ResizeObserver(e=>{let[n]=e;n&&n.target===u&&v&&t&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),r()}),u&&!c&&v.observe(u),t&&v.observe(t));let b=c?eu(e):null;return c&&function t(){let n=eu(e);b&&!ey(b,n)&&r(),b=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;p.forEach(e=>{i&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,c&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===er}),"whileElementsMounted"),elements:{reference:es.anchor},middleware:[{name:(L={name:"offset",options:i=n={mainAxis:X+eg,alignmentAxis:Y},async fn(e){var t,r;let{x:n,y:o,placement:a,middlewareData:s}=e,l=await M(e,i);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:n+l.x,y:o+l.y,data:{...l,placement:a}}}}).name,fn:L.fn,options:[n,void 0]},J&&{name:(F={name:"shift",options:l=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===ee?{fn:(a=void 0,{options:a={},fn(e){var t,r,n,o;let{x:i,y:s,placement:l,rects:c,middlewareData:u}=e,{offset:d=0,mainAxis:f=!0,crossAxis:p=!0}=v(a,e),h={x:i,y:s},m=S(l),g=x(m),y=h[g],w=h[m],j=v(d,e),C="number"==typeof j?{mainAxis:j,crossAxis:0}:{mainAxis:null!=(t=j.mainAxis)?t:0,crossAxis:null!=(r=j.crossAxis)?r:0};if(f){let e="y"===g?"height":"width",t=c.reference[g]-c.floating[e]+C.mainAxis,r=c.reference[g]+c.reference[e]-C.mainAxis;y<t?y=t:y>r&&(y=r)}if(p){let e="y"===g?"width":"height",t=_.has(b(l)),r=c.reference[m]-c.floating[e]+(t&&(null==(n=u.offset)?void 0:n[m])||0)+(t?0:C.crossAxis),i=c.reference[m]+c.reference[e]+(t?0:(null==(o=u.offset)?void 0:o[m])||0)-(t?C.crossAxis:0);w<r?w=r:w>i&&(w=i)}return{[g]:y,[m]:w}}}).fn,options:[void 0,void 0]}:void 0,...eN},async fn(e){let{x:t,y:r,placement:n,platform:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=v(l,e),u={x:t,y:r},p=await o.detectOverflow(e,c),h=S(n),m=x(h),g=u[m],b=u[h],y=(e,t)=>f(t+p["y"===e?"top":"left"],d(t,t-p["y"===e?"bottom":"right"]));i&&(g=y(m,g)),a&&(b=y(h,b));let w=s.fn({...e,[m]:g,[h]:b});return{...w,data:{x:w.x-t,y:w.y-r,enabled:{[m]:i,[h]:a}}}}}).name,fn:F.fn,options:[s,void 0]},J&&{name:(z={name:"flip",options:u=c={...eN},async fn(e){var t,r,n,o,i,a,s,l;let c,d,f,{placement:p,middlewareData:h,rects:m,initialPlacement:g,platform:T,elements:O}=e,{mainAxis:I=!0,crossAxis:L=!0,fallbackPlacements:A,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:_=!0,...M}=v(u,e);if(null!=(t=h.arrow)&&t.alignmentOffset)return{};let F=b(p),z=S(g),$=b(g)===g,B=await (null==T.isRTL?void 0:T.isRTL(O.floating)),W=A||($||!_?[E(g)]:(c=E(g),[j(g),c,j(c)])),V="none"!==D;!A&&V&&W.push(...(d=y(g),f=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?R:C;return t?C:R;case"left":case"right":return t?P:k;default:return[]}}(b(g),"start"===D,B),d&&(f=f.map(e=>e+"-"+d),_&&(f=f.concat(f.map(j)))),f));let H=[g,...W],U=await T.detectOverflow(e,M),q=[],X=(null==(r=h.flip)?void 0:r.overflows)||[];if(I&&q.push(U[F]),L){let e,t,r,n,o=(a=p,s=m,void 0===(l=B)&&(l=!1),e=y(a),r=w(t=x(S(a))),n="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[r]>s.floating[r]&&(n=E(n)),[n,E(n)]);q.push(U[o[0]],U[o[1]])}if(X=[...X,{placement:p,overflows:q}],!q.every(e=>e<=0)){let e=((null==(n=h.flip)?void 0:n.index)||0)+1,t=H[e];if(t&&("alignment"!==L||z===S(t)||X.every(e=>S(e.placement)!==z||e.overflows[0]>0)))return{data:{index:e,overflows:X},reset:{placement:t}};let r=null==(o=X.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(N){case"bestFit":{let e=null==(i=X.filter(e=>{if(V){let t=S(e.placement);return t===z||"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:i[0];e&&(r=e);break}case"initialPlacement":r=g}if(p!==r)return{reset:{placement:r}}}return{}}}).name,fn:z.fn,options:[c,void 0]},{name:(W={name:"size",options:m=p={...eN,apply:eD(({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")},async fn(e){let t,r,{placement:n,rects:o,platform:i,elements:a}=e,{apply:s=()=>{},...l}=v(m,e),c=await i.detectOverflow(e,l),u=b(n),p=y(n),h="y"===S(n),{width:g,height:x}=o.floating;"top"===u||"bottom"===u?(t=u,r=p===(await (null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(r=u,t="end"===p?"top":"bottom");let w=x-c.top-c.bottom,j=g-c.left-c.right,C=d(x-c[t],w),R=d(g-c[r],j),P=e.middlewareData.shift,k=!P,E=C,T=R;null!=P&&P.enabled.x&&(T=j),null!=P&&P.enabled.y&&(E=w),k&&!p&&(h?T=g-2*f(c.left,c.right):E=x-2*f(c.top,c.bottom)),await s({...e,availableWidth:T,availableHeight:E});let O=await i.getDimensions(a.floating);return g!==O.width||x!==O.height?{reset:{rects:!0}}:{}}}).name,fn:W.fn,options:[p,void 0]},ef&&{name:(V={name:"arrow",options:T=g={element:ef,padding:G},fn(e){let{element:t,padding:r}="function"==typeof T?T(e):T;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?ex({element:t.current,padding:r}).fn(e):{}:t?ex({element:t,padding:r}).fn(e):{}}}).name,fn:V.fn,options:[g,void 0]},eY({arrowWidth:em,arrowHeight:eg}),et&&{name:(H={name:"hide",options:I=O={strategy:"referenceHidden",...eN,boundary:eO?eN.boundary:void 0},async fn(e){let{rects:t,platform:r}=e,{strategy:n="referenceHidden",...o}=v(I,e);switch(n){case"referenceHidden":{let n=N(await r.detectOverflow(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:D(n)}}}case"escaped":{let n=N(await r.detectOverflow(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:D(n)}}}default:return{}}}}).name,fn:H.fn,options:[O,void 0]}]}),eW=es.setPlacementState;(0,eL.useLayoutEffect)(()=>(eW(eF),()=>{eW(void 0)}),[eF,eW]);let[eU,eq]=eG(eF),eX=(0,eI.useCallbackRef)(eo);(0,eL.useLayoutEffect)(()=>{ez&&eX?.()},[ez,eX]);let eJ=eB.arrow?.x,eZ=eB.arrow?.y,eQ=eB.arrow?.centerOffset!==0,[e0,e1]=r.useState();return(0,eL.useLayoutEffect)(()=>{el&&e1(window.getComputedStyle(el).zIndex)},[el]),(0,eE.jsx)("div",{ref:e_.setFloating,"data-radix-popper-content-wrapper":"",style:{...eM,transform:ez?eM.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:e0,"--radix-popper-transform-origin":[eB.transformOrigin?.x,eB.transformOrigin?.y].join(" "),...eB.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eE.jsx)(eH,{scope:U,placedSide:eU,placedAlign:eq,onArrowChange:ep,arrowX:eJ,arrowY:eZ,shouldHideArrow:eQ,children:(0,eE.jsx)(ek.Primitive.div,{"data-side":eU,"data-align":eq,...ei,ref:ed,style:{...ei.style,animation:ez?ei.style?.animation:"none"}})})})},"PopperContent")),eX={top:"bottom",right:"left",bottom:"top",left:"right"};function eK(e){return null!==e}eD(eK,"isNotNull");var eY=eD(e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=eG(r),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2,p="",h="";return"bottom"===l?(p=i?u:`${d}px`,h=`${-s}px`):"top"===l?(p=i?u:`${d}px`,h=`${n.floating.height+s}px`):"right"===l?(p=`${-s}px`,h=i?u:`${f}px`):"left"===l&&(p=`${n.floating.width+s}px`,h=i?u:`${f}px`),{data:{x:p,y:h}}}}),"transformOrigin");function eG(e){let[t,r="center"]=e.split("-");return[t,r]}eD(eG,"getSideAndAlignFromPlacement");var eJ=e.i(774606),eZ=e.i(296626),eQ=e.i(991918),e0=e.i(369340),e1=e.i(186312),e2=e.i(985369),e5=Object.defineProperty,e6=(e,t)=>e5(e,"name",{value:t,configurable:!0}),e3="Popover",[e4,e8]=(0,i.createContextScope)(e3,[eF]),e7=eF(),[e9,te]=e4(e3),tt
1=e6(e=>{let{__scopePopover:t,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!1}=e,l=e7(t),u=r.useRef(null),[d,f]=r.useState(!1),[p,h]=(0,e0.useControllableState)({prop:o,defaultProp:i??!1,onChange:a,caller:e3});return(0,eE.jsx)(eB,{...l,children:(0,eE.jsx)(e9,{scope:t,contentId:(0,c.useId)(),triggerRef:u,open:p,onOpenChange:h,onOpenToggle:r.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:d,onCustomAnchorAdd:r.useCallback(()=>f(!0),[]),onCustomAnchorRemove:r.useCallback(()=>f(!1),[]),modal:s,children:n})})},"Popover"),tr=r.forwardRef(e6(function(e,t){let{__scopePopover:r,...i}=e,a=te("PopoverTrigger",r),s=e7(r),l=(0,o.useComposedRefs)(t,a.triggerRef),c=(0,eE.jsx)(ek.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":th(a.open),...i,ref:l,onClick:(0,n.composeEventHandlers)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?c:(0,eE.jsx)(eW,{asChild:!0,...s,children:c})},"PopoverTrigger")),tn="PopoverPortal",[to,ti]=e4(tn,{forceMount:void 0}),ta=e6(e=>{let{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=te(tn,t);return(0,eE.jsx)(to,{scope:t,forceMount:r,children:(0,eE.jsx)(eZ.Presence,{present:r||i.open,children:(0,eE.jsx)(eJ.Portal,{asChild:!0,container:o,children:n})})})},"PopoverPortal"),ts="PopoverContent",tl=r.forwardRef(e6(function(e,t){let r=ti(ts,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=te(ts,e.__scopePopover);return(0,eE.jsx)(eZ.Presence,{present:n||i.open,children:i.modal?(0,eE.jsx)(tu,{...o,ref:t}):(0,eE.jsx)(td,{...o,ref:t})})},"PopoverContent")),tc=(0,eQ.createSlot)("PopoverContent.RemoveScroll"),tu=r.forwardRef(e6(function(e,t){let i=te(ts,e.__scopePopover),a=r.useRef(null),s=(0,o.useComposedRefs)(t,a),l=r.useRef(!1);return r.useEffect(()=>{let e=a.current;if(e)return(0,e1.hideOthers)(e)},[]),(0,eE.jsx)(e2.RemoveScroll,{as:tc,allowPinchZoom:!0,children:(0,eE.jsx)(tf,{...e,ref:s,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,n.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),l.current||i.triggerRef.current?.focus()}),onPointerDownOutside:(0,n.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;l.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,n.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),td=r.forwardRef(e6(function(e,t){let n=te(ts,e.__scopePopover),o=r.useRef(!1),i=r.useRef(!1);return(0,eE.jsx)(tf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"PopoverContentNonModal")),tf=r.forwardRef(e6(function(e,t){let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,...h}=e,m=te(ts,r),g=e7(r);return(0,s.useFocusGuards)(),(0,eE.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,eE.jsx)(a.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:p,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onDismiss:()=>m.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,eE.jsx)(eq,{"data-state":th(m.open),role:"dialog",id:m.contentId,...g,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl")),tp=r.forwardRef(e6(function(e,t){let{__scopePopover:r,...o}=e,i=te("PopoverClose",r);return(0,eE.jsx)(ek.Primitive.button,{type:"button",...o,ref:t,onClick:(0,n.composeEventHandlers)(e.onClick,()=>i.onOpenChange(!1))})},"PopoverClose"));function th(e){return e?"open":"closed"}e6(th,"getState"),e.s(["Content",0,tl,"PopoverClose",0,tp,"Portal",0,ta,"Root",0,tt,"Trigger",0,tr],
1178761)},647873,e=>{"use strict";var t=e.i(224110),r=e.i(843476);function n({ref:e,href:o="#",external:i=!!(o.match(/^\w+:/)||o.startsWith("//")),prefetch:a,children:s,...l}){return i?(0,r.jsx)("a",{ref:e,href:o,rel:"noreferrer noopener",target:"_blank",...l,children:s}):(0,r.jsx)(t.Link,{ref:e,href:o,prefetch:a,...l,children:s})}e.s(["Link",0,n,"default",0,n])},683512,281878,253754,600074,187302,874072,e=>{"use strict";function t(e,r,n={}){let{includeSeparator:o=!0}=n;return function e(t){let n;for(let i of t){if(r(i)){let e=[];return n&&e.push(n),e.push(i),e}if("separator"===i.type&&o){n=i;continue}if("folder"===i.type){let t=i.index&&r(i.index)?[i.index]:e(i.children);if(t)return t.unshift(i),n&&t.unshift(n),t}}}(e)??null}e.s(["LinkItem",()=>z,"baseSlots",()=>$],874072),e.s(["isLayoutTabActive",()=>N,"isLinkItemActive",()=>_,"useLinkItems",()=>D],187302);let r=Symbol("VisitBreak");e.s(["i",0,function(e,t,n){let o,i=e.$ref&&`${e.$ref.folder}/`;if(!i||!t.$ref||!n.$ref?.startsWith(i))return;let a=`${t.$ref.folder}/${n.$ref.slice(i.length)}`;return function(e,t){try{!function e(n,o){let i=t(n,o);switch(i){case"skip":return n;case"break":throw r;default:i&&(n=i)}if("index"in n&&n.index&&(n.index=e(n.index,n)),"fallback"in n&&n.fallback&&(n.fallback=e(n.fallback,n)),"children"in n)for(let t=0;t<n.children.length;t++)n.children[t]=e(n.children[t],n);return n}(e)}catch(t){if(t===r)return e;throw t}}(t,e=>{if("page"===e.type&&e.$ref===a)return o=e,"break"}),o},"r",0,t],683512);var n=e.i(309864),o=e.i(179862),i=e.i(713548),a=e.i(843476),s=e.i(271645),l=e.i(178761);let c=l.Root,u=l.Trigger;function d({className:e,align:t="center",sideOffset:r=4,...n}){return(0,a.jsx)(l.Portal,{children:(0,a.jsx)(l.Content,{align:t,sideOffset:r,side:"bottom",className:(0,o.cn)("z-50 origin-(--radix-popover-content-transform-origin) overflow-y-auto max-h-(--radix-popover-content-available-height) min-w-[240px] max-w-[98vw] rounded-xl border bg-fd-popover/60 backdrop-blur-lg p-2 text-sm text-fd-popover-foreground shadow-lg focus-visible:outline-none data-[state=closed]:animate-fd-popover-out data-[state=open]:animate-fd-popover-in",e),...n})})}l.PopoverClose,e.s(["Popover",0,c,"PopoverContent",0,d,"PopoverTrigger",0,u],281878);var f=e.i(532257);function p({className:e,variant:t="ghost",children:r,...s}){let l=(0,n.useI18n)(),h=(0,f.useTranslations)({note:"language switcher"});if(!l.locales)throw Error("Missing `<I18nProvider />`");let m=h("Choose a language");return(0,a.jsxs)(c,{children:[(0,a.jsx)(u,{"aria-label":h("Choose a language",{note:"aria-label"}),className:(0,o.cn)((0,i.buttonVariants)({variant:t}),"gap-1.5 p-1.5 data-[state=open]:bg-fd-accent",e),...s,children:r}),(0,a.jsxs)(d,{className:"flex flex-col gap-0.5 p-1",children:[(0,a.jsx)("p",{className:"p-2 text-xs font-medium text-fd-muted-foreground",children:m}),l.locales.map(e=>(0,a.jsx)("button",{type:"button",className:(0,o.cn)("px-2 py-1.5 text-start text-sm rounded-lg transition-colors",e.locale===l.locale?"bg-fd-primary/10 text-fd-primary":"text-fd-muted-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"),onClick:()=>{l.onChange?.(e.locale)},children:e.name},e.locale))]})]})}function h(e){let{locales:t,locale:r}=(0,n.useI18n)(),o=t?.find(e=>e.locale===r)?.name;return(0,a.jsx)("span",{...e,children:o})}var m=e.i(757061),g=e.i(630299),g=g;function v({hideIfDisabled:e,size:t="icon-sm",color:r,variant:n=r??"ghost",...s}){let{setOpenSearch:l,enabled:c}=(0,m.useSearchContext)(),u=(0,f.useTranslations)({note:"search trigger"});return e&&!c?null:(0,a.jsx)("button",{type:"button",className:(0,o.cn)((0,i.buttonVariants)({size:t,variant:n}),s.className),"data-search":"","aria-label":u("Open Search",{note:"aria-label"}),onClick:()=>{l(!0)},children:(0,a.jsx)(g.default,{})})}function b({hideIfDisabled:e,...t}){let{enabled:r,hotKey:n,setOpenSearch:i}=(0,m.useSearchContext)(),s=(0,f.useTranslations)({note:"search trigger"});return e&&!r?null:(0,a.jsxs)("button",{type:"button","data-search-full":"",...t,className:(0,o.cn)("inline-flex items-center gap-2 rounded-lg border bg-fd-secondary/50 p-1.5 ps-2 text-sm text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground",t.className),onClick:()=>{i(!0)},children:[(0,a.jsx)(g.default,{className:"size-4"}),s("Search"),(0,a.jsx)("div",{className:"ms-auto inline-flex gap-0.5",children:n.map((e,t)=>(0,a.jsx)("kbd",{className:"rounded-md border bg-fd-background px-1.5",children:e.display},t))})]})}e.s(["FullSearchTrigger",0,b,"SearchTrigger",0,v],253754);var y=e.i(456420);let x={name:"airplay",size:24,node:[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]]};x.node;let w=(0,y.default)(x),S={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};S.node;let j=(0,y.default)(S),C={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};C.node;let R=(0,y.default)(C);var P=e.i(665623),k=e.i(363178),E=e.i(174080);let T=(0,P.cva)("size-6.5 p-1.5 text-fd-muted-foreground",{variants:{active:{true:"bg-fd-accent text-fd-accent-foreground",false:"text-fd-muted-foreground"}}}),O=[["light",R],["dark",j],["system",w]];function I({className:e,mode:t="light-dark",...r}){let{setTheme:n,theme:i,resolvedTheme:l}
1=(0,k.useTheme)(),[c,u]=(0,s.useState)(!1),d=(0,f.useTranslations)({note:"theme switcher"}),p={light:d("Light",{note:"aria-label"}),dark:d("Dark",{note:"aria-label"}),system:d("System",{note:"aria-label"})},h=e=>{document?.startViewTransition?document.startViewTransition(()=>(0,E.flushSync)(()=>n(e))):n(e)};(0,s.useEffect)(()=>{u(!0)},[]);let m=(0,o.cn)("inline-flex items-center rounded-full border p-1 overflow-hidden *:rounded-full",e);if("light-dark"===t){let e=c?l:null;return(0,a.jsx)("button",{className:m,"aria-label":d("Toggle Theme",{note:"aria-label"}),onClick:()=>h("light"===e?"dark":"light"),"data-theme-toggle":"",children:O.map(([t,r])=>{if("system"!==t)return(0,a.jsx)(r,{fill:"currentColor",className:(0,o.cn)(T({active:e===t}))},t)})})}let g=c?i:null;return(0,a.jsx)("div",{className:m,"data-theme-toggle":"",...r,children:O.map(([e,t])=>(0,a.jsx)("button",{"aria-label":p[e],className:(0,o.cn)(T({active:g===e})),onClick:()=>h(e),children:(0,a.jsx)(t,{className:"size-full",fill:"currentColor"})},e))})}function L(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function A(e,t,r=!1){return(e=L(e))===(t=L(t))||r&&t.startsWith(`${e}/`)}function N(e,r){return e.$folder?null!==t(e.$folder.children,e=>"page"===e.type&&A(e.url,r)):e.urls?e.urls.has(L(r)):A(e.url,r,!0)}function D({githubUrl:e,links:t}){return(0,s.useMemo)(()=>{let r=function({links:e=[],githubUrl:t}){let r=[...e];return t&&r.push({type:"icon",url:t,text:"Github",label:"GitHub",icon:(0,a.jsx)("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})}),external:!0}),r}({links:t,githubUrl:e}),n=[],o=[];for(let e of r)switch(e.on){case"menu":o.push(e);break;case"nav":n.push(e);break;default:n.push(e),o.push(e)}return{navItems:n,menuItems:o,all:r}},[t,e])}function _(e,t){return"custom"!==e.type&&!!e.url&&"none"!==e.active&&A(e.url,t,"nested-url"===e.active)}e.s(["isActive",0,A,"normalize",0,L],600074);var M=e.i(647873),F=e.i(224110);function z({ref:e,item:t,...r}){let n=_(t,(0,F.usePathname)());return(0,a.jsx)(M.default,{ref:e,href:t.url,external:t.external,...r,"data-active":n,children:r.children})}function $({useProps:e}){function t(t){let{themeSwitch:r}=e();return r.component?r.component:(0,a.jsx)(I,{...t,...r})}function r(t){let{searchToggle:r}=e();return r.components?.sm?r.components.sm:(0,a.jsx)(v,{...t,...r.sm})}function o(t){let{searchToggle:r}=e();return r.components?.lg?r.components.lg:(0,a.jsx)(b,{...t,...r.full})}function i({href:t="/",...r}){let{url:n=t,title:o}=e().nav??{};return"function"==typeof o?o({href:n,...r}):(0,a.jsx)(M.default,{href:n,...r,children:o})}return{useBaseSlots(e){let{locales:a=[]}=(0,n.useI18n)(),{nav:s,slots:l={},i18n:c=a.length>1,searchToggle:{enabled:u=!0,...d}={},themeSwitch:{enabled:f=!0,...m}={}}=e;return{baseSlots:{navTitle:l.navTitle??i,themeSwitch:f&&(l.themeSwitch??t),languageSelect:!!c&&(l.languageSelect??{root:p,text:h}),searchTrigger:u&&(l.searchTrigger??{sm:r,full:o})},baseProps:{nav:s,searchToggle:d,themeSwitch:m}}}}}},451988,e=>{"use strict";var t=e.i(179862),r=e.i(843476),n=e.i(271645),o=e.i(687607);let i=o.Root,a=o.CollapsibleTrigger;e.s(["Collapsible",0,i,"CollapsibleContent",0,function({children:e,...i}){let[a,s]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{s(!0)},[]),(0,r.jsx)(o.CollapsibleContent,{...i,className:(0,t.cn)("overflow-hidden",a&&"data-[state=closed]:animate-fd-collapsible-up data-[state=open]:animate-fd-collapsible-down",i.className),children:e})},"CollapsibleTrigger",0,a])},757061,363178,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let n=(0,r.createContext)({enabled:!1,open:!1,hotKey:[],setOpenSearch:()=>void 0}),o=[{key:e=>e.metaKey||e.ctrlKey,display:(0,t.jsx)(function(){let[e,t]=(0,r.useState)("⌘");return(0,r.useEffect)(()=>{/Windows|Linux/i.test(window.navigator.userAgent)&&t("Ctrl")},[]),e},{})},{key:"k",display:"K"}],i=(0,r.lazy)(()=>e.A(274774));e.s(["SearchProvider",0,function({SearchDialog:e=i,children:a,preload:s=!0,options:l,hotKey:c=o,links:u}){let[d,f]=(0,r.useState)(!s&&void 0),p=(0,r.useEffectEvent)(e=>{c.every(t=>"string"==typeof t.key?e.key===t.key:t.key(e))&&(f(e=>!e),e.preventDefault())});return(0,r.useEffect)(()=>(window.addEventListener("keydown",p),()=>{window.removeEventListener("keydown",p)}),[]),(0,t.jsxs)(n,{value:(0,r.useMemo)(()=>
1({enabled:!0,open:d??!1,hotKey:c,setOpenSearch:f}),[d,c]),children:[(0,t.jsx)(r.Suspense,{fallback:null,children:void 0!==d&&(0,t.jsx)(e,{open:d,onOpenChange:f,links:u,...l})}),a]})},"useSearchContext",0,function(){return(0,r.use)(n)}],757061);var a=(e,t,r,n,o,i,a,s)=>{let l=document.documentElement,c=["light","dark"];function u(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&i?o.map(e=>i[e]||e):o;r?(l.classList.remove(...n),l.classList.add(i&&i[t]?i[t]:t)):l.setAttribute(e,t)}),r=t,s&&c.includes(r)&&(l.style.colorScheme=r)}if(n)u(n);else try{let e=localStorage.getItem(t)||r,n=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;u(n)}catch(e){}},s=["light","dark"],l="(prefers-color-scheme: dark)",c="u"<typeof window,u=r.createContext(void 0),d={setTheme:e=>{},themes:[]},f=["light","dark"],p=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:i="theme",themes:a=f,defaultTheme:c=n?"system":"light",attribute:d="data-theme",value:p,children:b,nonce:y,scriptProps:x})=>{let[w,S]=r.useState(()=>m(i,c)),[j,C]=r.useState(()=>"system"===w?v():w),R=p?Object.values(p):a,P=r.useCallback(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=v());let i=p?p[r]:r,a=t?g(y):null,l=document.documentElement,u=e=>{"class"===e?(l.classList.remove(...R),i&&l.classList.add(i)):e.startsWith("data-")&&(i?l.setAttribute(e,i):l.removeAttribute(e))};if(Array.isArray(d)?d.forEach(u):u(d),o){let e=s.includes(c)?c:null,t=s.includes(r)?r:e;l.style.colorScheme=t}null==a||a()},[y]),k=r.useCallback(e=>{let t="function"==typeof e?e(w):e;S(t);try{localStorage.setItem(i,t)}catch(e){}},[w]),E=r.useCallback(t=>{C(v(t)),"system"===w&&n&&!e&&P("system")},[w,e]);r.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(E),E(e),()=>e.removeListener(E)},[E]),r.useEffect(()=>{let e=e=>{e.key===i&&(e.newValue?S(e.newValue):k(c))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[k]),r.useEffect(()=>{P(null!=e?e:w)},[e,w]);let T=r.useMemo(()=>({theme:w,setTheme:k,forcedTheme:e,resolvedTheme:"system"===w?j:w,themes:n?[...a,"system"]:a,systemTheme:n?j:void 0}),[w,k,e,j,n,a]);return r.createElement(u.Provider,{value:T},r.createElement(h,{forcedTheme:e,storageKey:i,attribute:d,enableSystem:n,enableColorScheme:o,defaultTheme:c,value:p,themes:a,nonce:y,scriptProps:x}),b)},h=r.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:i,defaultTheme:s,value:l,themes:c,nonce:u,scriptProps:d})=>{let f=JSON.stringify([n,t,s,e,c,l,o,i]).slice(1,-1);return r.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"u"<typeof window?u:"",dangerouslySetInnerHTML:{__html:`(${a.toString()})(${f})`}})}),m=(e,t)=>{let r;if(!c){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},g=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)}},v=e=>(e||(e=window.matchMedia(l)),e.matches?"dark":"light");e.s(["ThemeProvider",0,e=>r.useContext(u)?r.createElement(r.Fragment,null,e.children):r.createElement(p,{...e}),"useTheme",0,()=>{var e;return null!=(e=r.useContext(u))?e:d}],363178)},563199,557886,214072,411150,730942,716327,643905,670956,183374,283978,379654,999092,221229,127652,e=>{"use strict";e.s(["LayoutBody",()=>tb,"useDocsLayout",()=>tv,"useIsDocsLayout",()=>tg],563199);var t=e.i(179862),r=e.i(224110),n=e.i(843476),o=e.i(271645),i=e.i(683512),i=i,a=e.i(88349),s=i;function l(e,t){let r=(0,a.r)(t);return(0,s.r)(e,e=>"page"===e.type&&e.url===r)}e.s(["getBreadcrumbItemsFromPath",0,function(e,t,r){let{includePage:n=!1,includeSeparator:o=!1,includeRoot:i=!1}=r,a=[];for(let r=0;r<t.length;r++){let s=t[r];switch(s.type){case"page":n&&a.push({name:s.name,url:s.url});break;case"folder":if(s.root){a=[],i&&a.push({name:e.name,url:"object"==typeof i?i.url:s.index?.url});break}(r===t.length-1||s.index!==t[r+1])&&a.push({name:s.name,url:s.index?.url});break;case"separator":s.name&&o&&a.push({name:s.name})}}return a},"searchPath",0,l],557886);let c=(0,o.createContext)(null),u=(0,o.createContext)([]);function d({tree:e,children:t}){let i=(0,o.useRef)(0),a=(0,r.usePathname)(),s=(0,o.useMemo)(()=>e,[e.$id]),f=(0,o.useMemo)(()=>l(s.children,a)??(s.fallback?l(s.fallback.children,a):null)??[],[s,a]),p=f.findLast(e=>"folder"===e.type&&e.root)??s;return p.$id??=String(i.current++),(0,n.jsx)(c,{value:(0,o.useMemo)(()=>({root:p,full:s}),[p,s]),children:(0,n.jsx)(u,{value:f,children:t})})}function f(){return(0,o.use)(u)}function p(){let e=(0,o.use)(c);if(!e)throw Error("You must wrap this component under <DocsLayout />");return e}function h(e){let{full:t}=p(),r=(0,o.use)(u);return(0,o.useMemo)(()=>{let n=[],o=r[r.length-1],a=o?.type==="page"?o:void 0,s=t.fallback&&!t.children.includes(r[0])?t.fallback:t;for(let t of r){if("folder"!==t.type||!t.root)continue;let r={active:t,options:[]};(function e(t,r,n,o,a){for(let s of t.children)if("folder"===s.type)if(s.root===r.root){let e=o.find(e=>e.$folder&&(e.$folder===s||e.$folder.$id===s.$id));if(!e)continue;let t=n&&i.i(r,s,n);a.push(t?{...e,url:t.url}:e)}else s.root||e(s,r,n,o,a)})(s,t,a,e,r.options),r.options.length>0&&n.push(r),s=t}let l=e.filter(e=>!e.$folder);if(l.length>0){let e=n.findLast(e=>e.active?.root===!0);e?e.options.push(...l):n.push({options:l})}return n},[e,t,r])}e.s(["TreeContextProvider",0,d,"useTabsGroups",0,h,"useTreeContext",0,p,"useTreePath",0,f],214072);var m=e.i(874072),g=e.i(187302);function v({enabled:e=!0}){let[t,r]=(0,o.useState)();return(0,o.useEffect)(()=>
1{if(!e)return;let t=()=>{r(window.scrollY<10)};return t(),window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[e]),t}e.s(["useIsScrollTop",0,v],411150);var b=e.i(713548),y=e.i(658846),x=e.i(253754),w=Object.defineProperty,S=(e,t)=>{let r={};for(var n in e)w(r,n,{get:e[n],enumerable:!0});return t||w(r,Symbol.toStringTag,{value:"Module"}),r};e.s(["__exportAll",0,S],730942);var j=e.i(451988),C=e.i(647873),R=e.i(456420);let P={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};P.node;let k=(0,R.default)(P);e.s(["ChevronDown",0,k],716327);let E={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};E.node;let T=(0,R.default)(E);e.s(["default",0,T],643905);var O=e.i(532257),I=e.i(543137),L=e.i(296626),A=e.i(191909),N=e.i(248425),D=e.i(30030),_=e.i(820783),M=e.i(30207),F=e.i(586318),z=e.i(934620);function $(e,[t,r]){return Math.min(r,Math.max(t,e))}(0,Object.defineProperty)($,"name",{value:"clamp",configurable:!0});var B=e.i(981140),W=Object.defineProperty,V=(e,t)=>W(e,"name",{value:t,configurable:!0});function H(e,t){return o.useReducer((e,r)=>t[e][r]??e,e)}V(H,"useStateMachine");var U="ScrollArea",[q,X]=(0,D.createContextScope)(U),[K,Y]=q(U),G=o.forwardRef(V(function(e,t){let{__scopeScrollArea:r,type:i="hover",dir:a,scrollHideDelay:s=600,...l}=e,[c,u]=o.useState(null),[d,f]=o.useState(null),[p,h]=o.useState(null),[m,g]=o.useState(null),[v,b]=o.useState(null),[y,x]=o.useState(0),[w,S]=o.useState(0),[j,C]=o.useState(!1),[R,P]=o.useState(!1),k=(0,_.useComposedRefs)(t,u),E=(0,F.useDirection)(a);return(0,n.jsx)(K,{scope:r,type:i,dir:E,scrollHideDelay:s,scrollArea:c,viewport:d,onViewportChange:f,content:p,onContentChange:h,scrollbarX:m,onScrollbarXChange:g,scrollbarXEnabled:j,onScrollbarXEnabledChange:C,scrollbarY:v,onScrollbarYChange:b,scrollbarYEnabled:R,onScrollbarYEnabledChange:P,onCornerWidthChange:x,onCornerHeightChange:S,children:(0,n.jsx)(N.Primitive.div,{dir:E,...l,ref:k,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})},"ScrollArea")),J=o.forwardRef(V(function(e,t){let{__scopeScrollArea:r,children:i,nonce:a,...s}=e,l=Y("ScrollAreaViewport",r),c=o.useRef(null),u=(0,_.useComposedRefs)(t,c,l.onViewportChange);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Z,{nonce:a}),(0,n.jsx)(N.Primitive.div,{"data-radix-scroll-area-viewport":"",...s,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,n.jsx)("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})},"ScrollAreaViewport")),Z=o.memo(V(function({nonce:e}){return(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:e})},"ScrollAreaViewportStyle"),(e,t)=>e.nonce===t.nonce),Q="ScrollAreaScrollbar",ee=o.forwardRef(V(function(e,t){let{forceMount:r,...i}=e,a=Y(Q,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:l}=a,c="horizontal"===e.orientation;return o.useEffect(()=>(c?s(!0):l(!0),()=>{c?s(!1):l(!1)}),[c,s,l]),"hover"===a.type?(0,n.jsx)(et,{...i,ref:t,forceMount:r}):"scroll"===a.type?(0,n.jsx)(er,{...i,ref:t,forceMount:r}):"auto"===a.type?(0,n.jsx)(en,{...i,ref:t,forceMount:r}):"always"===a.type?(0,n.jsx)(eo,{...i,ref:t,"data-state":"visible"}):null},"ScrollAreaScrollbar")),et=o.forwardRef(V(function(e,t){let{forceMount:r,...i}=e,a=Y(Q,e.__scopeScrollArea),[s,l]=o.useState(!1);return o.useEffect(()=>{let e=a.scrollArea,t=0;if(e){let r=V(()=>{window.clearTimeout(t),l(!0)},"handlePointerEnter"),n=V(()=>{t=window.setTimeout(()=>l(!1),a.scrollHideDelay)},"handlePointerLeave");return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[a.scrollArea,a.scrollHideDelay]),(0,n.jsx)(L.Presence,{present:r||s,children:(0,n.jsx)(en,{"data-state":s?"visible":"hidden",...i,ref:t})})},"ScrollAreaScrollbarHover")),er=o.forwardRef(V(function(e,t){let{forceMount:r,...i}=e,a=Y(Q,e.__scopeScrollArea),s="horizontal"===e.orientation,l=eC(()=>u("SCROLL_END"),100),[c,u]=H("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return o.useEffect(()=>{if("idle"===c){let e=window.setTimeout(()=>u("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(e)}},[c,a.scrollHideDelay,u]),o.useEffect(()=>{let e=a.viewport,t=s?"scrollLeft":"scrollTop";if(e){let r=e[t],n=V(()=>{let n=e[t];r!==n&&(u("SCROLL"),l()),r=n},"handleScroll");return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}}
1,[a.viewport,s,u,l]),(0,n.jsx)(L.Presence,{present:r||"hidden"!==c,children:(0,n.jsx)(eo,{"data-state":"hidden"===c?"hidden":"visible",...i,ref:t,onPointerEnter:(0,B.composeEventHandlers)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,B.composeEventHandlers)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})},"ScrollAreaScrollbarScroll")),en=o.forwardRef(V(function(e,t){let r=Y(Q,e.__scopeScrollArea),{forceMount:i,...a}=e,[s,l]=o.useState(!1),c="horizontal"===e.orientation,u=eC(()=>{if(r.viewport){let e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;l(c?e:t)}},10);return eR(r.viewport,u),eR(r.content,u),(0,n.jsx)(L.Presence,{present:i||s,children:(0,n.jsx)(eo,{"data-state":s?"visible":"hidden",...a,ref:t})})},"ScrollAreaScrollbarAuto")),eo=o.forwardRef(V(function(e,t){let{orientation:r="vertical",...i}=e,a=Y(Q,e.__scopeScrollArea),s=o.useRef(null),l=o.useRef(0),[c,u]=o.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=ev(c.viewport,c.content),f={...i,sizes:c,onSizesChange:u,hasThumb:!!(d>0&&d<1),onThumbChange:V(e=>s.current=e,"onThumbChange"),onThumbPointerUp:V(()=>l.current=0,"onThumbPointerUp"),onThumbPointerDown:V(e=>l.current=e,"onThumbPointerDown")};function p(e,t){return ey(e,l.current,c,t)}return(V(p,"getScrollPosition"),"horizontal"===r)?(0,n.jsx)(ei,{...f,ref:t,onThumbPositionChange:()=>{if(a.viewport&&s.current){let e=ex(a.viewport.scrollLeft,c,a.dir);s.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=p(e,a.dir))}}):"vertical"===r?(0,n.jsx)(ea,{...f,ref:t,onThumbPositionChange:()=>{if(a.viewport&&s.current){let e=ex(a.viewport.scrollTop,c);s.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=p(e))}}):null},"ScrollAreaScrollbarVisible")),ei=o.forwardRef(V(function(e,t){let{sizes:r,onSizesChange:i,...a}=e,s=Y(Q,e.__scopeScrollArea),[l,c]=o.useState(),u=o.useRef(null),d=(0,_.useComposedRefs)(t,u,s.onScrollbarXChange);return o.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),(0,n.jsx)(ec,{"data-orientation":"horizontal",...a,ref:d,sizes:r,style:{bottom:0,left:"rtl"===s.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===s.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":eb(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(s.viewport){let n=s.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),eS(n,r)&&t.preventDefault()}},onResize:()=>{u.current&&s.viewport&&l&&i({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:eg(l.paddingLeft),paddingEnd:eg(l.paddingRight)}})}})},"ScrollAreaScrollbarX")),ea=o.forwardRef(V(function(e,t){let{sizes:r,onSizesChange:i,...a}=e,s=Y(Q,e.__scopeScrollArea),[l,c]=o.useState(),u=o.useRef(null),d=(0,_.useComposedRefs)(t,u,s.onScrollbarYChange);return o.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),(0,n.jsx)(ec,{"data-orientation":"vertical",...a,ref:d,sizes:r,style:{top:0,right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":eb(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(s.viewport){let n=s.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),eS(n,r)&&t.preventDefault()}},onResize:()=>{u.current&&s.viewport&&l&&i({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:eg(l.paddingTop),paddingEnd:eg(l.paddingBottom)}})}})},"ScrollAreaScrollbarY")),[es,el]=q(Q),ec=o.forwardRef(V(function(e,t){let{__scopeScrollArea:r,sizes:i,hasThumb:a,onThumbChange:s,onThumbPointerUp:l,onThumbPointerDown:c,onThumbPositionChange:u,onDragScroll:d,onWheelScroll:f,onResize:p,...h}=e,m=Y(Q,r),[g,v]=o.useState(null),b=(0,_.useComposedRefs)(t,v),y=o.useRef(null),x=o.useRef(""),w=m.viewport,S=i.content-i.viewport,j=(0,M.useCallbackRef)(f),C=(0,M.useCallbackRef)(u),R=eC(p,10);function P(e){y.current&&d({x:e.clientX-y.current.left,y:e.clientY-y.current.top})}return V(P,"handleDragScroll"),o.useEffect(()=>{let e=V(e=>{let t=e.target;g?.contains(t)&&j(e,S)},"handleWheel");return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[w,g,S,j]),o.useEffect(C,[i,C]),eR(g,R),eR(m.content,R),(0,n.jsx)(es,{scope:r,scrollbar:g,hasThumb:a,onThumbChange:(0,M.useCallbackRef)(s),onThumbPointerUp:(0,M.useCallbackRef)(l),onThumbPositionChange:C,onThumbPointerDown:(0,M.useCallbackRef)(c),children:(0,n.jsx)(N.Primitive.div,{...h,ref:b,style:{position:"absolute",...h.style},onPointerDown:(0,B.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),y.current=g.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),P(e))}),onPointerMove:(0,B.composeEventHandlers)(e.onPointerMove,P),onPointerUp:(0,B.composeEventHandlers)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=x.current,m.viewport&&(m.viewport.style.scrollBehavior=""),y.current=null})})})},"ScrollAreaScrollbarImpl")),eu="ScrollAreaThumb",ed=o.forwardRef(V(function(e,t){let{forceMount:r,...o}=e,i=el(eu,e.__scopeScrollArea);return(0,n.jsx)(L.Presence,{present:r||i.hasThumb,children:(0,n.jsx)(ef,{ref:t,...o}
1)})},"ScrollAreaThumb")),ef=o.forwardRef(V(function(e,t){let{__scopeScrollArea:r,style:i,...a}=e,s=Y(eu,r),l=el(eu,r),{onThumbPositionChange:c}=l,u=(0,_.useComposedRefs)(t,l.onThumbChange),d=o.useRef(void 0),f=eC(()=>{d.current&&(d.current(),d.current=void 0)},100);return o.useEffect(()=>{let e=s.viewport;if(e){let t=V(()=>{f(),d.current||(d.current=ej(e,c),c())},"handleScroll");return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[s.viewport,f,c]),(0,n.jsx)(N.Primitive.div,{"data-state":l.hasThumb?"visible":"hidden",...a,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:(0,B.composeEventHandlers)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;l.onThumbPointerDown({x:r,y:n})}),onPointerUp:(0,B.composeEventHandlers)(e.onPointerUp,l.onThumbPointerUp)})},"ScrollAreaThumbImpl")),ep="ScrollAreaCorner",eh=o.forwardRef(V(function(e,t){let r=Y(ep,e.__scopeScrollArea),o=!!(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&o?(0,n.jsx)(em,{...e,ref:t}):null},"ScrollAreaCorner")),em=o.forwardRef(V(function(e,t){let{__scopeScrollArea:r,...i}=e,a=Y(ep,r),[s,l]=o.useState(0),[c,u]=o.useState(0),d=!!(s&&c),{onCornerWidthChange:f,onCornerHeightChange:p}=a;return eR(a.scrollbarX,()=>{let e=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(e),u(e)}),eR(a.scrollbarY,()=>{let e=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(e),l(e)}),o.useEffect(()=>()=>{f(0),p(0)},[f,p]),d?(0,n.jsx)(N.Primitive.div,{...i,ref:t,style:{width:s,height:c,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null},"ScrollAreaCornerImpl"));function eg(e){return e?parseInt(e,10):0}function ev(e,t){let r=e/t;return isNaN(r)?0:r}function eb(e){let t=ev(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function ey(e,t,r,n="ltr"){let o=eb(r),i=t||o/2,a=r.scrollbar.paddingStart+i,s=r.scrollbar.size-r.scrollbar.paddingEnd-(o-i),l=r.content-r.viewport;return ew([a,s],"ltr"===n?[0,l]:[-1*l,0])(e)}function ex(e,t,r="ltr"){let n=eb(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,s=$(e,"ltr"===r?[0,a]:[-1*a,0]);return ew([0,a],[0,i-n])(s)}function ew(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function eS(e,t){return e>0&&e<t}V(eg,"toInt"),V(ev,"getThumbRatio"),V(eb,"getThumbSize"),V(ey,"getScrollPositionFromPointer"),V(ex,"getThumbOffsetFromScroll"),V(ew,"linearScale"),V(eS,"isScrollingWithinScrollbarBounds");var ej=V((e,t=()=>{})=>(e.scrollLeft,e.scrollTop,()=>window.cancelAnimationFrame(0)),"addUnlinkedScrollListener");function eC(e,t){let r=(0,M.useCallbackRef)(e),n=o.useRef(0);return o.useEffect(()=>()=>window.clearTimeout(n.current),[]),o.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function eR(e,t){let r=(0,M.useCallbackRef)(t);(0,z.useLayoutEffect)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}V(eC,"useDebounceCallback"),V(eR,"useResizeObserver");var eP=S({SidebarCollapseTrigger:()=>eH,SidebarContent:()=>eA,SidebarDrawerContent:()=>e_,SidebarDrawerOverlay:()=>eD,SidebarFolder:()=>ez,SidebarFolderContent:()=>eW,SidebarFolderLink:()=>eB,SidebarFolderTrigger:()=>e$,SidebarItem:()=>eF,SidebarProvider:()=>eT,SidebarSeparator:()=>eM,SidebarTrigger:()=>eV,SidebarViewport:()=>eN,useAutoScroll:()=>eU,useFolder:()=>eI,useFolderDepth:()=>eL,useSidebar:()=>eO});let ek=(0,o.createContext)(null),eE=(0,o.createContext)(null);function eT({defaultOpenLevel:e=0,prefetch:t,children:i}){let a=(0,o.useRef)(!0),[s,l]=(0,o.useState)(!1),[c,u]=(0,o.useState)(!1),d=(0,r.usePathname)(),f=!function(e,t=!1){let[r,n]=(0,o.useState)(null);return(0,o.useEffect)(()=>{if(t)return;let r=window.matchMedia(e),o=()=>{n(r.matches)};return o(),r.addEventListener("change",o),()=>{r.removeEventListener("change",o)}},[t,e]),r}("(width < 768px)")?"full":"drawer";return(0,I.useOnChange)(d,()=>{a.current&&l(!1),a.current=!0}),(0,n.jsx)(ek,{value:(0,o.useMemo)(()=>({open:s,setOpen:l,collapsed:c,setCollapsed:u,closeOnRedirect:a,defaultOpenLevel:e,prefetch:t,mode:f}),[s,c,e,t,f]),children:i})}function eO(){let e=(0,o.use)(ek);if(!e)throw Error("Missing SidebarContext, make sure you have wrapped the component in <DocsLayout /> and the context is available.");return e}function eI(){return(0,o.use)(eE)}function eL(){return(0,o.use)(eE)?.depth??0}function eA({mode:e="full",children:t}){let{collapsed:r,mode:n}=eO(),[i,a]=(0,o.useState)(!1),s=(0,o.useRef)(null),l=(0,o.useRef)(0);if((0,I.useOnChange)(r,()=>{r&&a(!1)}),!0===e||e===n)return t({ref:s,collapsed:r,hovered:i,onPointerEnter(e){c(e)||(window.clearTimeout(l.current),a(!0))},onPointerLeave(e){c(e)||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!1),Math.min(e.clientX,document.body.clientWidth-e.clientX)>100?0:500))}});function c(e){let t=s.current;return!t||!r||"touch"===e.pointerType||t.getAnimations().length>0}}function eN({area:e,viewport:r,children:o}){return(0,n.jsxs)(G,{type:"scroll",...e,className:(0,t.cn)("overflow-hidden min-h-0 flex-1",e?.className),children:[(0,n.jsx)(J,{...r,className:(0,t.cn)("size-full rounded-[inherit] *:flex! *:flex-col! *:gap-0.5! p-4 overscroll-contain mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)]",r?.className),children:o}),(0,n.jsx)(eh,{}),(0,n.jsx)(ee,{className:"flex h-full w-1.5 select-none data-[state=hidden]:animate-fd-fade-out",children:(0,n.jsx)(ed,{className:"relative flex-1 rounded-full bg-fd-border"})})]})}function eD(e){let{open:t,setOpen:r,mode:o}=eO();if("drawer"===o)return(0,n.jsx)(L.Presence,{present:t,children:(0,n.jsx)("div",{"data-state":t?"open":"closed",onClick:()=>r(!1),...e})})}function e_({className:e,children:r,...o}
1){let{open:i,mode:a}=eO(),s=i?"open":"closed";if("drawer"===a)return(0,n.jsx)(L.Presence,{present:i,children:({present:i})=>(0,n.jsx)("aside",{id:"nd-sidebar-mobile","data-state":s,className:(0,t.cn)(!i&&"invisible",e),...o,children:r})})}function eM(e){return(0,n.jsx)("p",{...e})}function eF({icon:e,active:t=!1,children:r,...i}){let a=(0,o.useRef)(null),{prefetch:s}=eO();return eU(t,a),(0,n.jsxs)(C.default,{ref:a,"data-active":t,prefetch:s,...i,children:[e??(i.external?(0,n.jsx)(T,{}):null),r]})}function ez({defaultOpen:e,collapsible:t=!0,active:r=!1,children:i,...a}){let{defaultOpenLevel:s}=eO(),l=eL()+1,c=!1===t||r||(e??s>=l),[u,d]=(0,o.useState)(c);return(0,I.useOnChange)(c,e=>{e&&d(e)}),(0,n.jsx)(j.Collapsible,{open:u,onOpenChange:d,disabled:!t,...a,children:(0,n.jsx)(eE,{value:(0,o.useMemo)(()=>({open:u,setOpen:d,depth:l,collapsible:t}),[t,l,u]),children:i})})}function e$({children:e,...r}){let{open:i,collapsible:a}=(0,o.use)(eE);return a?(0,n.jsxs)(j.CollapsibleTrigger,{...r,children:[e,(0,n.jsx)(k,{"data-icon":!0,className:(0,t.cn)("ms-auto transition-transform",!i&&"-rotate-90 rtl:rotate-90")})]}):(0,n.jsx)("div",{...r,children:e})}function eB({children:e,active:r=!1,...i}){let a=(0,o.useRef)(null),{open:s,setOpen:l,collapsible:c}=(0,o.use)(eE),{prefetch:u}=eO();return eU(r,a),(0,n.jsxs)(C.default,{ref:a,"data-active":r,onClick:e=>{c&&(e.target instanceof Element&&e.target.matches("[data-icon], [data-icon] *")?(l(!s),e.preventDefault()):l(!r||!s))},prefetch:u,...i,children:[e,c&&(0,n.jsx)(k,{"data-icon":!0,className:(0,t.cn)("ms-auto transition-transform",!s&&"-rotate-90 rtl:rotate-90")})]})}function eW(e){return(0,n.jsx)(j.CollapsibleContent,{...e,children:e.children})}function eV({children:e,...t}){let{open:r,setOpen:o}=eO(),i=(0,O.useTranslations)({note:"sidebar"});return(0,n.jsx)("button",{type:"button","aria-label":i(r?"Close Sidebar":"Open Sidebar",{note:"aria-label"}),"aria-expanded":r,"aria-controls":"nd-sidebar-mobile",onClick:()=>o(e=>!e),...t,children:e})}function eH(e){let{collapsed:t,setCollapsed:r}=eO(),o=(0,O.useTranslations)({note:"sidebar"});return(0,n.jsx)("button",{type:"button","aria-label":o("Collapse Sidebar",{note:"aria-label"}),"data-collapsed":t,onClick:()=>{r(e=>!e)},...e,children:e.children})}function eU(e,t){let{mode:r}=eO();(0,o.useEffect)(()=>{e&&t.current&&(0,A.default)(t.current,{boundary:document.getElementById("drawer"===r?"nd-sidebar-mobile":"nd-sidebar"),scrollMode:"if-needed"})},[e,r,t])}e.s(["SidebarCollapseTrigger",0,eH,"SidebarContent",0,eA,"SidebarDrawerContent",0,e_,"SidebarDrawerOverlay",0,eD,"SidebarFolder",0,ez,"SidebarFolderContent",0,eW,"SidebarFolderLink",0,eB,"SidebarFolderTrigger",0,e$,"SidebarItem",0,eF,"SidebarProvider",0,eT,"SidebarSeparator",0,eM,"SidebarTrigger",0,eV,"SidebarViewport",0,eN,"base_exports",0,eP,"useFolder",0,eI,"useFolderDepth",0,eL,"useSidebar",0,eO],670956);var eq=e.i(600074);let eX=(0,o.createContext)(null);function eK({SidebarFolder:e,SidebarFolderContent:t,SidebarFolderLink:i,SidebarFolderTrigger:a,SidebarSeparator:s,SidebarItem:l}){function c(e){return e.map((e,t)=>(0,n.jsx)(u,{node:e},t))}function u({node:r}){let{Separator:d,Item:p,Folder:h,pathname:m}=(0,o.use)(eX);if("separator"===r.type)return d?(0,n.jsx)(d,{item:r}):(0,n.jsxs)(s,{children:[r.icon,r.name]});if("folder"===r.type){let o=f();return h?(0,n.jsx)(h,{item:r,children:c(r.children)}):(0,n.jsxs)(e,{collapsible:r.collapsible,active:o.includes(r),defaultOpen:r.defaultOpen,children:[r.index?(0,n.jsxs)(i,{href:r.index.url,active:(0,eq.isActive)(r.index.url,m),external:r.index.external,children:[r.icon,r.name]}):(0,n.jsxs)(a,{children:[r.icon,r.name]}),(0,n.jsx)(t,{children:c(r.children)})]})}return p?(0,n.jsx)(p,{item:r}):(0,n.jsx)(l,{href:r.url,external:r.external,active:(0,eq.isActive)(r.url,m),icon:r.icon,children:r.name})}return function(e){let{Folder:t,Item:i,Separator:a}=e,{root:s}=p(),l=(0,r.usePathname)();return(0,n.jsx)(eX,{value:(0,o.useMemo)(()=>({Folder:t,Item:i,Separator:a,pathname:l}),[t,i,a,l]),children:(0,n.jsx)(o.Fragment,{children:c(s.children)},s.$id)})}}function eY({SidebarFolder:e,SidebarFolderContent:t,SidebarFolderLink:o,SidebarFolderTrigger:i,SidebarItem:a}){return function s({item:l,...c}){let u=(0,r.usePathname)(),d=(0,g.isLinkItemActive)(l,u);return"custom"===l.type?(0,n.jsx)("div",{...c,children:l.children}):"menu"===l.type?(0,n.jsxs)(e,{...c,children:[l.url?(0,n.jsxs)(o,{href:l.url,active:d,external:l.external,children:[l.icon,l.text]}):(0,n.jsxs)(i,{children:[l.icon,l.text]}),(0,n.jsx)(t,{children:l.items.map((e,t)=>(0,n.jsx)(s,{item:e},t))})]}):(0,n.jsx)(a,{href:l.url,icon:l.icon,external:l.external,active:d,...c,children:l.text})}}e.s(["createPageTreeRenderer",0,eK],183374),e.s(["createLinkItemRenderer",0,eY],283978);var eG=e.i(281878),eJ=e.i(689664);let eZ={name:"chevrons-up-down",size:24,node:[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]};eZ.node;let eQ=(0,R.default)(eZ);function e0({options:e,placeholder:t,...r}){return h(e).map((e,o)=>(0,n.jsx)(e1,{options:e.options,placeholder:t,...r},o))}function e1({options:e,placeholder:i,...a}){let[s,l]=(0,o.useState)(!1),{closeOnRedirect:c}=eO(),u=(0,r.usePathname)(),d=(0,o.useMemo)(()=>e.findLast(e=>(0,g.isLayoutTabActive)(e,u)),[e,u]),f=()=>{c.current=!1,l(!1)},p=d?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"size-9 shrink-0 empty:hidden md:size-5",children:d.icon}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium",children:d.title}),(0,n.jsx)("p",{className:"text-sm text-fd-muted-foreground empty:hidden md:hidden",children:d.description})]})]}):i;return(0,n.jsxs)(eG.Popover,{open:s,onOpenChange:l,children:[p&&(0,n.jsxs)(eG.PopoverTrigger,{...a,className:(0,t.cn)("flex items-center gap-2 rounded-lg p-2 border bg-fd-secondary/50 text-start text-fd-secondary-foreground transition-colors hover:bg-fd-accent data-[state=open]:bg-fd-accent data-[state=open]:text-fd-accent-foreground",a.className),children:[p,(0,n.jsx)(eQ,{className:"shrink-0 ms-auto size-4 text-fd-muted-foreground"})]}),(0,n.jsx)(eG.PopoverContent,{className:"flex flex-col gap-1 w-(--radix-popover-trigger-width) p-1 fd-scroll-container",children:e.map(e=>{let r=d&&e.url===d.url;if(r||!e.unlisted)return(0,n.jsxs)(C.default,{href:e.url,onClick:f,...e.props,className:(0,t.cn)("flex items-center gap-2 rounded-lg p-1.5 hover:bg-fd-accent hover:text-fd-accent-foreground",e.props?.className),children:[(0,n.jsx)("div",{className:"shrink-0 size-9 md:mb-auto md:size-5 empty:hidden",children:e.icon}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium leading-none",children:e.title}),(0,n.jsx)("p",{className:"text-[0.8125rem] text-fd-muted-foreground mt-1 empty:hidden",children:e.description})]}),(0,n.jsx)(eJ.Check,{className:(0,t.cn)("shrink-0 ms-auto size-3.5 text-fd-
1primary",!r&&"invisible")})]},e.url)})})]})}g.isLayoutTabActive,e.s(["SidebarTabsDropdown",0,e0],379654);let e2={name:"languages",size:24,node:[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]};e2.node;let e5=(0,R.default)(e2);e.s(["Languages",0,e5],999092);let e6={name:"panel-left",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],aliases:["sidebar"]};e6.node;let e3=(0,R.default)(e6);e.s(["default",0,e3],221229),e.s(["SidebarIcon",0,e3],127652);let e4=(0,e.i(665623).cva)("relative flex flex-row items-center gap-2 rounded-lg p-2 text-start text-fd-muted-foreground wrap-anywhere [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{link:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none data-[active=true]:bg-fd-primary/10 data-[active=true]:text-fd-primary data-[active=true]:hover:transition-colors",button:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none"},highlight:{true:"data-[active=true]:before:content-[''] data-[active=true]:before:bg-fd-primary data-[active=true]:before:absolute data-[active=true]:before:w-px data-[active=true]:before:inset-y-2.5 data-[active=true]:before:inset-s-2.5"}}}),{useSidebar:e8}=eP;function e7(e){return(0,n.jsx)(eT,{...e})}function e9({footer:e,banner:r,collapsible:o=!0,components:i,...a}){let{menuItems:s,slots:l,props:{tabs:c,nav:u,tabMode:d}}=tv(),f=s.filter(e=>"icon"===e.type),p=(0,n.jsxs)(eN,{children:[s.filter(e=>"icon"!==e.type).map((e,r,o)=>(0,n.jsx)(td,{item:e,className:(0,t.cn)(r===o.length-1&&"mb-4")},r)),(0,n.jsx)(tu,{...i})]});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(tn,{...a,children:[(0,n.jsxs)("div",{className:"flex flex-col gap-3 p-4 pb-2",children:[(0,n.jsxs)("div",{className:"flex",children:[l.navTitle&&(0,n.jsx)(l.navTitle,{className:"inline-flex text-[0.9375rem] items-center gap-2.5 font-medium me-auto"}),u?.children,o&&(0,n.jsx)(tt,{className:(0,t.cn)((0,b.buttonVariants)({variant:"ghost",size:"icon-sm",className:"mb-auto text-fd-muted-foreground"})),children:(0,n.jsx)(e3,{})})]}),l.searchTrigger&&(0,n.jsx)(l.searchTrigger.full,{hideIfDisabled:!0}),c.length>0&&(0,n.jsx)(e0,{options:"auto"===d?c:c.filter(e=>"string"==typeof e.$folder?.root)}),r]}),p,(l.languageSelect||f.length>0||l.themeSwitch||e)&&(0,n.jsxs)("div",{className:"flex flex-col p-4 pt-2",children:[l.languageSelect&&(0,n.jsxs)(l.languageSelect.root,{variant:"secondary",className:"text-fd-muted-foreground text-start justify-start bg-fd-secondary/50 mb-2",children:[(0,n.jsx)(e5,{className:"size-4.5"}),(0,n.jsx)(l.languageSelect.text,{}),(0,n.jsx)(k,{className:"ms-auto size-3.5"})]}),(0,n.jsxs)("div",{className:"flex text-fd-muted-foreground items-center border bg-fd-secondary/50 p-0.5 pe-0 rounded-lg empty:hidden",children:[f.map((e,r)=>(0,n.jsx)(m.LinkItem,{item:e,className:(0,t.cn)((0,b.buttonVariants)({size:"icon-sm",variant:"ghost"})),"aria-label":e.label,children:e.icon},r)),l.themeSwitch&&(0,n.jsx)(l.themeSwitch,{className:"px-1 py-0 border-y-0 border-e-0 rounded-none ms-auto *:rounded-md"})]}),e]})]}),(0,n.jsxs)(to,{children:[(0,n.jsxs)("div",{className:"flex flex-col gap-3 p-4 pb-2",children:[(0,n.jsxs)("div",{className:"flex text-fd-muted-foreground items-center gap-1.5",children:[(0,n.jsx)("div",{className:"flex flex-1",children:f.map((e,r)=>(0,n.jsx)(m.LinkItem,{item:e,className:(0,t.cn)((0,b.buttonVariants)({size:"icon-sm",variant:"ghost",className:"p-2"})),"aria-label":e.label,children:e.icon},r))}),l.languageSelect&&(0,n.jsxs)(l.languageSelect.root,{children:[(0,n.jsx)(e5,{className:"size-4.5"}),(0,n.jsx)(l.languageSelect.text,{})]}),l.themeSwitch&&(0,n.jsx)(l.themeSwitch,{className:"p-0"}),(0,n.jsx)(tr,{className:(0,t.cn)((0,b.buttonVariants)({variant:"ghost",size:"icon-sm",className:"p-2"})),children:(0,n.jsx)(e3,{})})]}),c.length>0&&(0,n.jsx)(e0,{options:c}),r]}),p,(0,n.jsx)("div",{className:"flex flex-col border-t p-4 pt-2 empty:hidden",children:e})]})]})}function te(e){return(0,n.jsx)(ez,{...e})}function tt(e){return(0,n.jsx)(eH,{...e})}function tr(e){return(0,n.jsx)(eV,{...e})}function tn({ref:e,className:r,children:i,...a}){let s=(0,o.useRef)(null);return(0,n.jsx)(eA,{children:({collapsed:o,hovered:l,ref:c,...u})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{"data-sidebar-placeholder":"",className:"sticky top-(--fd-docs-row-1) z-20 [grid-area:sidebar] pointer-events-none *:pointer-events-auto h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] md:layout:[--fd-sidebar-width:268px] max-md:hidden",children:[o&&(0,n.jsx)("div",{className:"absolute inset-s-0 inset-y-0 w-4",...u}),(0,n.jsx)("aside",{id:"nd-sidebar",ref:(0,y.mergeRefs)(s,e,c),"data-collapsed":o,"data-hovered":o&&l,className:(0,t.cn)("absolute flex flex-col w-full inset-s-0 inset-y-0 items-end bg-fd-card text-sm border-e duration-250 *:w-(--fd-sidebar-width)",o&&["inset-y-2 rounded-xl transition-transform border w-(--fd-sidebar-width)",l?"shadow-lg translate-x-2 rtl:-translate-x-2":"-translate-x-(--fd-sidebar-width) rtl:translate-x-full"],s.current&&"true"===s.current.getAttribute("data-collapsed")!==o&&"transition-[width,inset-block,translate,background-color]",r),...a,...u,children:i})]}),(0,n.jsxs)("div",{"data-sidebar-panel":"",className:(0,t.cn)("fixed flex to
1p-[calc(--spacing(4)+var(--fd-docs-row-3))] inset-s-4 shadow-lg transition-opacity rounded-xl p-0.5 border bg-fd-muted text-fd-muted-foreground z-10",(!o||l)&&"pointer-events-none opacity-0"),children:[(0,n.jsx)(eH,{className:(0,t.cn)((0,b.buttonVariants)({variant:"ghost",size:"icon-sm",className:"rounded-lg"})),children:(0,n.jsx)(e3,{})}),(0,n.jsx)(x.SearchTrigger,{className:"rounded-lg",hideIfDisabled:!0})]})]})})}function to({children:e,className:r,...o}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eD,{className:"fixed z-40 inset-0 backdrop-blur-xs data-[state=open]:animate-fd-fade-in data-[state=closed]:animate-fd-fade-out"}),(0,n.jsx)(e_,{className:(0,t.cn)("fixed text-[0.9375rem] flex flex-col shadow-lg border-s inset-e-0 inset-y-0 w-[85%] max-w-[380px] z-40 bg-fd-background data-[state=open]:animate-fd-sidebar-in data-[state=closed]:animate-fd-sidebar-out",r),...o,children:e})]})}function ti({className:e,style:r,children:o,...i}){let a=eL();return(0,n.jsx)(eF,{className:(0,t.cn)(e4({variant:"link",highlight:a>=1}),e),style:{paddingInlineStart:tc(a),...r},...i,children:o})}function ta({className:e,style:r,...o}){let{depth:i,collapsible:a}=eI();return(0,n.jsx)(e$,{className:(0,t.cn)(e4({variant:a?"button":null}),"w-full",e),style:{paddingInlineStart:tc(i-1),...r},...o,children:o.children})}function ts({className:e,style:r,...o}){let i=eL();return(0,n.jsx)(eB,{className:(0,t.cn)(e4({variant:"link",highlight:i>1}),"w-full",e),style:{paddingInlineStart:tc(i-1),...r},...o,children:o.children})}function tl({className:e,children:r,...o}){let i=eL();return(0,n.jsx)(eW,{className:(0,t.cn)("relative",1===i&&"before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:inset-s-2.5",e),...o,children:(0,n.jsx)("div",{className:"flex flex-col gap-0.5 pt-0.5",children:r})})}function tc(e){return`calc(${2+3*e} * var(--spacing))`}let tu=eK({SidebarFolder:te,SidebarFolderContent:tl,SidebarFolderLink:ts,SidebarFolderTrigger:ta,SidebarItem:ti,SidebarSeparator:function({className:e,style:r,children:o,...i}){let a=eL();return(0,n.jsx)(eM,{className:(0,t.cn)("inline-flex items-center gap-2 mb-1 px-2 mt-6 empty:mb-0 [&_svg]:size-4 [&_svg]:shrink-0",0===a&&"first:mt-0",e),style:{paddingInlineStart:tc(a),...r},...i,children:o})}}),td=eY({SidebarFolder:te,SidebarFolderContent:tl,SidebarFolderLink:ts,SidebarFolderTrigger:ta,SidebarItem:ti});function tf(e){let{isNavTransparent:r,slots:o,props:{nav:i}}=tv();return i?.component?i.component:(0,n.jsxs)("header",{id:"nd-subnav","data-transparent":r,...e,className:(0,t.cn)("[grid-area:header] sticky top-(--fd-docs-row-1) z-30 flex items-center ps-4 pe-2.5 border-b transition-colors backdrop-blur-sm h-(--fd-header-height) md:hidden max-md:layout:[--fd-header-height:--spacing(14)] data-[transparent=false]:bg-fd-background/80",e.className),children:[o.navTitle&&(0,n.jsx)(o.navTitle,{className:"inline-flex items-center gap-2.5 font-semibold"}),(0,n.jsx)("div",{className:"flex-1",children:i?.children}),o.searchTrigger&&(0,n.jsx)(o.searchTrigger.sm,{hideIfDisabled:!0,className:"p-2"}),o.sidebar&&(0,n.jsx)(o.sidebar.trigger,{className:(0,t.cn)((0,b.buttonVariants)({variant:"ghost",size:"icon-sm",className:"p-2"})),children:(0,n.jsx)(e3,{})})]})}function tp(e){let{slots:r}=tv(),{collapsed:i}=r.sidebar.useSidebar(),[a,s]=(0,o.useState)(i),l=a!==i;return(0,o.useEffect)(()=>{l&&s(i)},[i,l]),(0,n.jsx)("div",{id:"nd-docs-layout","data-sidebar-collapsed":i,"data-column-changed":l,...e,style:{gridTemplate:`"sidebar sidebar header toc toc"
2"sidebar sidebar toc-popover toc toc"
3"sidebar sidebar main toc toc" 1fr / minmax(min-content, 1fr) var(--fd-sidebar-col) minmax(0, calc(var(--fd-layout-width,97rem) - var(--fd-sidebar-width) - var(--fd-toc-width))) var(--fd-toc-width) minmax(min-content, 1fr)`,"--fd-docs-row-1":"var(--fd-banner-height, 0px)","--fd-docs-row-2":"calc(var(--fd-docs-row-1) + var(--fd-header-height))","--fd-docs-row-3":"calc(var(--fd-docs-row-2) + var(--fd-toc-popover-height))","--fd-sidebar-col":i?"0px":"var(--fd-sidebar-width)",...e.style},className:(0,t.cn)("grid overflow-x-clip min-h-(--fd-docs-height) [--fd-docs-height:100dvh] [--fd-header-height:0px] [--fd-toc-popover-height:0px] [--fd-sidebar-width:0px] [--fd-toc-width:0px] data-[column-changed=true]:transition-[grid-template-columns]",e.className),children:e.children})}let{useBaseSlots:th}=(0,m.baseSlots)({useProps:()=>tv().props}),tm=(0,o.createContext)(null);function tg(){return null!==(0,o.use)(tm)}function tv(){let e=(0,o.use)(tm);if(!e)throw Error("Please use <DocsPage /> (`fumadocs-ui/layouts/docs/page`) under <DocsLayout /> (`fumadocs-ui/layouts/docs`).");return e}function tb(e){let{nav:{enabled:t=!0,transparentMode:r="none"}={},sidebar:{enabled:o=!0,defaultOpenLevel:i,prefetch:a,...s}={},slots:l,tabs:c,tabMode:u="auto",tree:f,containerProps:p,children:h}=e,m=v({enabled:"top"===r})??!0,{baseSlots:b,baseProps:y}=th(e),x=(0,g.useLinkItems)(e),w={...b,header:l?.header??tf,container:l?.container??tp,sidebar:l?.sidebar??{provider:e7,root:e9,trigger:tr,useSidebar:e8}};return(0,n.jsx)(d,{tree:f,children:(0,n.jsx)(tm,{value:{props:{tabMode:u,tabs:c,...y},isNavTransparent:"top"===r?m:"always"===r,slots:w,...x},children:(0,n.jsx)(w.sidebar.provider,{defaultOpenLevel:i,prefetch:a,children:(0,n.jsxs)(w.container,{...p,children:[t&&(0,n.jsx)(w.header,{}),o&&(0,n.jsx)(w.sidebar.root,{...s}),"top"===u&&c.length>0&&(0,n.jsx)(ty,{tabs:c,className:"z-10 bg-fd-background border-b px-6 pt-3 xl:px-8 max-md:hidden"}),h]})})})})}function ty({tabs:e,...i}){let a=(0,r.usePathname)(),s=h(e).findLast(e=>"string"!=typeof e.active?.root),l=(0,o.useMemo)(()=>s?.options.findLast(e=>(0,g.isLayoutTabActive)(e,a)),[s,a]);if(s)return(0,n.jsx)("div",{...i,className:(0,t.cn)("flex flex-row items-end gap-6 overflow-auto [grid-area:main]",i.className),children:s.options.map((e,r)=>(0,n.jsx)(C.default,{href:e.url,className:(0,t.cn)("inline-flex border-b-2 border-transparent transition-colors items-center pb-1.5 font-medium gap-2 text-fd-muted-foreground text-sm text-nowrap hover:text-fd-accent-foreground",e.unlisted&&l!==e&&"hidden",l===e&&"border-fd-primary text-fd-
3primary"),children:e.title},r))})}},658846,e=>{"use strict";e.s(["mergeRefs",0,function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}}])},689664,e=>{"use strict";var t=e.i(456420);let r={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};r.node;let n=(0,t.default)(r);e.s(["Check",0,n],689664)},522016,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},useLinkStatus:function(){return y}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(190809),a=e.r(843476),s=i._(e.r(271645)),l=e.r(195057),c=e.r(8372),u=e.r(818581),d=e.r(718967),f=e.r(405550),p=e.r(388540),h=e.r(91949),m=e.r(573668),g=e.r(509396);function v(t){var r;let n,o,i,[v,y]=(0,s.useOptimistic)(h.IDLE_LINK_STATUS),x=(0,s.useRef)(null),{href:w,as:S,children:j,prefetch:C=null,passHref:R,replace:P,shallow:k,scroll:E,onClick:T,onMouseEnter:O,onTouchStart:I,legacyBehavior:L=!1,onNavigate:A,transitionTypes:N,ref:D,unstable_dynamicOnHover:_,...M}=t;n=j,L&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let F=s.default.useContext(c.AppRouterContext),z=!1!==C,$=!1===C?"none":!0===C?"full":"auto",B="none"!==$?"auto"===$?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,W="string"==typeof(r=S||w)?r:(0,l.formatUrl)(r);if(L){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=s.default.Children.only(n)}let V=L?o&&"object"==typeof o&&o.ref:D,H,U=s.default.useCallback(e=>(null!==F&&(x.current=(0,h.mountLinkInstance)(e,W,F,B,z,y,H)),()=>{x.current&&((0,h.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,h.unmountPrefetchableInstance)(e)}),[z,W,F,B,y,H]),q={ref:(0,u.useMergedRef)(U,V),onClick(t){L||"function"!=typeof T||T(t),L&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!F||t.defaultPrevented||function(t,r,n,o,i,a,l,c="none"){if("u">typeof window){let u,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(699781);s.default.startTransition(()=>{f(r,o?"replace":"push",!1===i?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,l,c)})}}(t,W,x,P,E,A,N,$)},onMouseEnter(e){L||"function"!=typeof O||O(e),L&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),F&&z&&(0,h.onNavigationIntent)(e.currentTarget,!0===_)},onTouchStart:function(e){L||"function"!=typeof I||I(e),L&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),F&&z&&(0,h.onNavigationIntent)(e.currentTarget,!0===_)}};return(0,d.isAbsoluteUrl)(W)?q.href=W:L&&!R&&("a"!==o.type||"href"in o.props)||(q.href=(0,f.addBasePath)(W)),i=L?s.default.cloneElement(o,q):(0,a.jsx)("a",{...M,...q,children:n}),(0,a.jsx)(b.Provider,{value:v,children:i})}let b=(0,s.createContext)(h.IDLE_LINK_STATUS),y=()=>(0,s.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},818581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(271645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=i(e,n)),t&&(o.current=i(t,n))},[e,t])}function i(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 r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
3dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},573668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(718967),o=e.r(652817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},998183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},195057,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(190809)._(e.r(998183)),a=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",s=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(i.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),u&&"?"!==u[0]&&(u="?"+u),o=o.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${o}${u}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return s(e)}},718967,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return v},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return x},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return i},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return S}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&s.test(e)};function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);
3class v extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(e){return JSON.stringify({message:e.message,stack:e.stack})}},618566,(e,t,r)=>{t.exports=e.r(976562)},831114,e=>{"use strict";let t=e=>{let t=location.search.match(e);return t&&t[2]||void 0},r=/[?&](ref|source|utm_source|gad_source)=([^?&]+)/,n=/[?&](utm_campaign|gad_campaignid)=([^?&]+)/,o=/[?&](utm_medium)=([^?&]+)/,i=/[?&](utm_term)=([^?&]+)/,a=/[?&](utm_content)=([^?&]+)/,s=/[?&](gclid)=([^?&]+)/,l=()=>void 0!==navigator.languages?navigator.languages[0]:navigator.language,c=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return}},u=()=>{if(location.search&&location.search.length>1)return location.search.slice(1);let e=location.hash.indexOf("?");if(e>-1){let t=location.hash.slice(e+1);if(t)return t}},d=()=>t(o)||(t(s)?"<gclid>":void 0),f=e=>{let t=location.pathname||"";if(e.hash){let r=location.hash.indexOf("?");t+=((e,t)=>{if(!0===t)return e;if(!Array.isArray(t)||!e)return"";let r=e.slice(1);return t.some(e=>e.replace(/^#/,"")===r)?e:""})(r>-1?location.hash.substring(0,r):location.hash,e.hash)}if(e.search){let r=location.hash.indexOf("?");t+=((e,t)=>{if(!0===t)return e;if(!Array.isArray(t)||!e)return"";let r=new Set(t),n=e.slice(1).split("&").filter(e=>{let t=e.indexOf("="),n=-1===t?e:e.slice(0,t);try{return r.has(decodeURIComponent(n.replace(/\+/g," ")))}catch{return r.has(n)}});return n.length?`?${n.join("&")}`:""})(location.search||(r>-1?location.hash.substring(r):""),e.search)}return t},p=["total","normal","none"],h={stop(){}},m={async stop(){},async flush(){}},g="replaylibrary.min.js",v=`https://cdn.jsdelivr.net/npm/swetrix@latest/dist/${g}`,b={mousemove:50,scroll:150,input:"last"},y={script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0},x=[2e3,5e3,15e3],w=["click","keydown","mousedown","mousemove","scroll","touchstart"];class S{constructor(e,t){this.projectID=e,this.options=t,this.pageData=null,this.pageViewsOptions=null,this.errorsOptions=null,this.perfStatsCollected=!1,this.activePage=null,this.errorListenerExists=!1,this.cachedData=null,this.rrwebLoader=null,this.sessionReplayActions=null,this.sessionReplayInitPromise=null,this.identifiedProfileId=null,this.lastIdentifySent=null,this.trackPathChange=this.trackPathChange.bind(this),this.heartbeat=this.heartbeat.bind(this),this.captureError=this.captureError.bind(this),this.getSessionReplayPreloadOption()&&this.preloadSessionReplay().catch(()=>void 0)}captureError(e){"number"==typeof this.errorsOptions?.sampleRate&&this.errorsOptions.sampleRate>=Math.random()||this.submitError({filename:e.filename,lineno:e.lineno,colno:e.colno,name:e.error?.name||"Error",message:e.error?.message||e.message,stackTrace:e.error?.stack},!0)}trackErrors(e){return this.errorListenerExists||!this.canTrack()?h:(this.errorsOptions=e,window.addEventListener("error",this.captureError),this.errorListenerExists=!0,{stop:()=>{window.removeEventListener("error",this.captureError),this.errorListenerExists=!1}})}submitError(e,t){let r={pid:this.projectID},n={pg:this.activePage||f({hash:this.pageViewsOptions?.hash,search:this.pageViewsOptions?.search}),lc:l(),tz:c(),...e};if(t&&this.errorsOptions?.callback){let e=this.errorsOptions.callback(n);if(!1===e)return;e&&"object"==typeof e&&Object.assign(n,e)}Object.assign(n,r),this.sendRequest("error",n)}async track(e){if(!this.canTrack())return;let o={...e,pid:this.projectID,pg:this.activePage||f({hash:this.pageViewsOptions?.hash,search:this.pageViewsOptions?.search}),lc:l(),tz:c(),ref:document.referrer||void 0,so:t(r),me:d(),ca:t(n),te:t(i),co:t(a),qs:u(),profileId:e.profileId??this.options?.profileId};await this.sendRequest("custom",o)}trackPageViews(e){let t;if(!this.canTrack())return h;if(this.pageData)return this.pageData.actions;this.pageViewsOptions=e,e?.unique||(t=setInterval(this.trackPathChange,2e3)),setTimeout(this.heartbeat,3e3);let r=setInterval(this.heartbeat,28e3),n=f({hash:e?.hash,search:e?.search});return this.pageData={path:n,actions:{stop:()=>{clearInterval(t),clearInterval(r)}}},this.trackPage(n,e?.unique),this.pageData.actions}getPerformanceStats(){if(!this.canTrack()||this.perfStatsCollected||!window.performance?.getEntriesByType)return{};let e=window.performance.getEntriesByType("navigation")[0];return e?(this.perfStatsCollected=!0,{dns:e.domainLookupEnd-e.domainLookupStart,tls:e.secureConnectionStart?e.requestStart-e.secureConnectionStart:0,conn:e.secureConnectionStart?e.secureConnectionStart-e.connectStart:e.connectEnd-e.connectStart,response:e.responseEnd-e.responseStart,render:e.domComplete-e.domContentLoadedEventEnd,dom_load:e.domContentLoadedEventEnd-e.responseEnd,page_load:e.loadEventStart,ttfb:e.responseStart-e.requestStart}):{}}async getFeatureFlags(e,t){if(!("u">typeof window))return{};let r=e?.profileId??this.options?.profileId;if(!t&&this.cachedData){let e=Date.now();if(this.cachedData.profileId===r&&e-this.cachedData.timestamp<3e5)return this.cachedData.flags}try{return await this.fetchFlagsAndExperiments(e),this.cachedData?.flags||{}}catch(e){return console.warn("[Swetrix] Error fetching feature flags:",e),this.cachedData?.flags||{}}}async fetchFlagsAndExperiments(e){let t=this.getApiBase(),r={pid:this.projectID},n=e?.profileId??this.options?.profileId;n&&(r.profileId=n);let o=await fetch(`${t}/feature-flag/evaluate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!o.ok)return void console.warn("[Swetrix] Failed to fetch feature flags and experiments:",o.status);let i=await o.json(),a=e?.profileId??this.options?.profileId;this.cachedData={flags:i.flags||{},experiments:i.experiments||{},timestamp:Date.now(),profileId:a}}async getFeatureFlag(e,t,r=!1){return(await this.getFeatureFlags(t))[e]??r}clearFeatureFlagsCache(){this.cachedData=null}async identify(e,t){if("string"!=typeof e||!e.trim())return void console.error("[Swetrix] identify() expects a non-empty string profileId");let r=e.trim();this.options={...this.options,profileId:r};let n=`${r}:${t?JSON.stringify(t):""}`;if(this.canTrack()&&this.lastIdentifySent!==n){this.lastIdentifySent=n,this.clearFeatureFlagsCache();try{let e=this.getApiBase(),n=await fetch(`${e}/log/identify`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pid:this.projectID,profileId:r,traits:t})});if(!n.ok)return;let o=await n.json();this.identifiedProfileId=o.profileId||null}catch{}}}async setTraits(e){let t=this.options?.profileId;t?!e||"object"!=typeof e||Array.isArray(e)?console.error("[Swetrix] setTraits() expects an object of traits"):await this.identify(t,e):console.error("[Swetrix] setTraits() requires the visitor to be identified via identify() first")}reset(){this.options&&delete this.options.profileId,this.identifiedProfileId=null,this.lastIdentifySent=null,this.clearFeatureFlagsCache()}async getExperiments(e,t){if(!("u">typeof window))return{};let r=e?.profileId??this.options?.profileId;if(!t&&this.cachedData){let e=Date.now();if(this.cachedData.profileId===r&&e-this.cachedData.timestamp<3e5)return this.cachedData.experiments}try{return await this.fetchFlagsAndExperiments(e),this.cachedData?.experiments||{}}catch(e){return console.warn("[Swetrix] Error fetching experiments:",e),this.cachedData?.experiments||{}}}async getExperiment(e,t,r=null){return(await this.getExperiments(t))[e]??r}clearExperimentsCache(){this.cachedData=null}async getProfileId(){if(this.identifiedProfileId)return this.identifiedProfileId;if(this.options?.profileId){let e;return e=this.options.profileId,`usr_${e.trim()}`}if(!("u">typeof window))return null;
3try{let e=this.getApiBase(),t=await fetch(`${e}/log/profile-id`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pid:this.projectID})});if(!t.ok)return null;return(await t.json()).profileId}catch{return null}}async getSessionId(){if(!("u">typeof window))return null;try{let e=this.getApiBase(),t=await fetch(`${e}/log/session-id`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pid:this.projectID})});if(!t.ok)return null;return(await t.json()).sessionId}catch{return null}}async startSessionReplay(e={}){if(this.sessionReplayActions)return this.sessionReplayActions;if(this.sessionReplayInitPromise)return this.sessionReplayInitPromise;let t=this.initialiseSessionReplay(e);this.sessionReplayInitPromise=t;try{return await t}finally{this.sessionReplayInitPromise===t&&(this.sessionReplayInitPromise=null)}}async initialiseSessionReplay(e){let t,r;if(this.sessionReplayActions)return this.sessionReplayActions;if(!this.canTrack())return m;let n="number"==typeof e.maxDurationMs&&e.maxDurationMs>0?e.maxDurationMs:18e5;if(!this.shouldSampleSessionReplay(e.sampleRate))return m;try{await this.preloadSessionReplay()}catch{return m}let o=this.getRrwebRecorder();if(!o)return m;let i=this.getSessionReplayPrivacy(e.privacy),a=this.createReplayId(),s=await this.sendSessionReplayStart(a,i);if(!s)return m;let l=s.replayId,c="number"==typeof e.flushIntervalMs&&e.flushIntervalMs>0?e.flushIntervalMs:5e3,u="number"==typeof e.maxEventsPerChunk&&e.maxEventsPerChunk>0?Math.floor(e.maxEventsPerChunk):100,d="number"==typeof e.maxBytesPerChunk?Math.floor(e.maxBytesPerChunk):NaN,f=d>=1?d:524288,p="number"==typeof e.maxBytesPerEvent?Math.floor(e.maxBytesPerEvent):NaN,h=p>=1?p:5242880,g="number"==typeof e.idleTimeoutMs&&e.idleTimeoutMs>0?e.idleTimeoutMs:null,v=s.nextChunkIndex,b=0,y=!1,x=[],S=0,j=Promise.resolve(),C=async(e=!1)=>{if(!x.length)return;let t=x;x=[],S=0;let r=v++;j=j.catch(()=>void 0).then(async()=>{if(!await this.sendSessionReplayChunk(l,i,r,t,e)&&!y&&b<3&&t.some(e=>2===e.type)){b+=1;try{o.takeFullSnapshot?.()}catch{}}}),await j},R=e.rrweb?.emit,P=o(this.getSessionReplayRecordOptions(i,e.rrweb,e=>{try{R?.(e)}catch{}let t=0;try{var r;r=JSON.stringify(e),t="u">typeof TextEncoder?new TextEncoder().encode(r).length:"u">typeof Blob?new Blob([r]).size:r.length}catch{return}!(t>h)&&(x.length&&S+t>f&&C(),x.push(e),S+=t,(x.length>=u||S>=f)&&C())},!!e.recordIframes,e.maskAllText)),k=setInterval(()=>void C(),c),E=()=>void C(!0),T=()=>{"hidden"===document.visibilityState&&C(!0)},O=()=>{r&&(clearTimeout(r),r=void 0)},I=async()=>{y||(y=!0,clearInterval(k),t&&clearTimeout(t),O(),window.removeEventListener("pagehide",E),document.removeEventListener("visibilitychange",T),w.forEach(e=>{window.removeEventListener(e,L)}),P?.(),await C(),this.sessionReplayActions=null,this.sessionReplayInitPromise=null)},L=()=>{g&&!y&&(O(),r=setTimeout(()=>void I(),g))};return window.addEventListener("pagehide",E),document.addEventListener("visibilitychange",T),t=setTimeout(()=>void I(),n),g&&(w.forEach(e=>{window.addEventListener(e,L,{passive:!0})}),L()),this.sessionReplayActions={stop:I,flush:async()=>{await C()}},this.sessionReplayActions}shouldSampleSessionReplay(e){return"number"!=typeof e||!(e<=0)&&(e>=1||Math.random()<e)}getSessionReplayPrivacy(e){return p.includes(e)?e:"total"}getApiBase(){return this.options?.apiURL?this.options.apiURL.replace(/\/log\/?$/,""):"https://api.swetrix.com"}heartbeat(){if(!this.pageViewsOptions?.heartbeatOnBackground&&"hidden"===document.visibilityState)return;let e={pid:this.projectID};this.options?.profileId&&(e.profileId=this.options.profileId),this.sendRequest("hb",e)}trackPathChange(){if(!this.pageData)return;let e=f({hash:this.pageViewsOptions?.hash,search:this.pageViewsOptions?.search}),{path:t}=this.pageData;t!==e&&this.trackPage(e,!1)}trackPage(e,t=!1){if(!this.pageData)return;this.pageData.path=e;let r=this.getPerformanceStats();this.activePage=e,this.submitPageView({pg:e},t,r,!0)}submitPageView(e,o,s,f){let p={pid:this.projectID,perf:s,unique:o},h={lc:l(),tz:c(),ref:document.referrer||void 0,so:t(r),me:d(),ca:t(n),te:t(i),co:t(a),qs:u(),profileId:this.options?.profileId,...e};if(f&&this.pageViewsOptions?.callback){let e=this.pageViewsOptions.callback(h);if(!1===e)return;e&&"object"==typeof e&&Object.assign(h,e)}f&&(this.activePage=h.pg||null),Object.assign(h,p),this.sendRequest("",h)}canTrack(){return!(this.options?.disabled||!("u">typeof window)||this.options?.respectDNT&&window.navigator?.doNotTrack==="1"||!this.options?.devMode&&(location?.hostname==="localhost"||location?.hostname==="127.0.0.1"||location?.hostname==="")||navigator?.webdriver)}getSessionReplayUrl(){let e=this.getSessionReplayPreloadOption();return e&&"object"==typeof e&&e.rrwebUrl?e.rrwebUrl:this.getDefaultSessionReplayUrl()}getSessionReplayPreloadOption(){return this.options?.preloadSessionReplay}getDefaultSessionReplayUrl(){if(!("u">typeof window))return v;let e=this.getTrackerScript();if(e?.src){let{hostname:t,pathname:r}=new URL(e.src);return"swetrix.org"===t&&/^\/swetrix(\.min)?\.js$/i.test(r)?v:new URL(g,e.src).toString()}return v}getTrackerScript(){return Array.from(document.scripts).find(e=>{if(!e.src)return!1;try{let{pathname:t}=new URL(e.src);return/(^|\/)swetrix(\.min)?\.js$/i.test(t)}catch{return!1}})}getRrwebRecorder(){if(!("u">typeof window))return;if("function"==typeof window.rrweb?.record)return window.rrweb.record;let e=window.rrwebRecord;return"function"==typeof e?e:e&&"function"==typeof e.record?e.record:void 0}preloadSessionReplay(){if(!("u">typeof window)||this.getRrwebRecorder())return Promise.resolve();if(this.rrwebLoader)return this.rrwebLoader;if(window.__SWETRIX_RRWEB_LOADING__)return this.rrwebLoader=window.__SWETRIX_RRWEB_LOADING__,this.rrwebLoader.catch(()=>{window.__SWETRIX_RRWEB_LOADING__===this.rrwebLoader&&delete window.__SWETRIX_RRWEB_LOADING__,this.rrwebLoader=null}),this.rrwebLoader;this.rrwebLoader=this.loadSessionReplayRecorder(),window.__SWETRIX_RRWEB_LOADING__=this.rrwebLoader;let e=this.rrwebLoader;return e.catch(()=>{window.__SWETRIX_RRWEB_LOADING__===e&&delete window.__SWETRIX_RRWEB_LOADING__,this.rrwebLoader===e&&(this.rrwebLoader=null)}),this.rrwebLoader}async loadSessionReplayRecorder(){let e=this.getSessionReplayPreloadOption();e&&"object"==typeof e&&e.rrwebUrl||this.getTrackerScript()?await this.loadSessionReplayScript(this.getSessionReplayUrl()):await this.loadSessionReplayPackage()||await this.loadSessionReplayScript(this.getDefaultSessionReplayUrl())}async loadSessionReplayPackage(){try{let t=await e.A(722394),r=t.record||t.default?.re
3cord;if("function"!=typeof r)return!1;return window.rrwebRecord={record:r},!0}catch{return!1}}loadSessionReplayScript(e){return new Promise((t,r)=>{let n=document.createElement("script");n.async=!0,n.src=e,n.crossOrigin="anonymous",n.onload=()=>t(),n.onerror=()=>r(Error("Failed to load rrweb")),document.head.appendChild(n)})}getSessionReplayRecordOptions(e,t,r,n,o){let i=t&&Object.prototype.hasOwnProperty.call(t,"sampling"),a=t&&Object.prototype.hasOwnProperty.call(t,"slimDOMOptions"),s="object"==typeof t?.sampling&&null!==t.sampling?{...b,...t.sampling}:i?t?.sampling:b,l="object"==typeof t?.slimDOMOptions&&null!==t.slimDOMOptions?{...y,...t.slimDOMOptions}:a?t?.slimDOMOptions:y,c={recordCanvas:!1,recordCrossOriginIframes:!1,collectFonts:!1,inlineImages:!1,...t,sampling:s,slimDOMOptions:l,emit:r},u="object"==typeof c.maskInputOptions&&null!==c.maskInputOptions?c.maskInputOptions:{},d=this.getSessionReplayPrivacy(e),f=n?void 0:"iframe",p=("boolean"==typeof o?o:"total"===d)?{maskTextSelector:"*"}:{};return"total"===d?{...c,...p,maskAllInputs:!0,blockSelector:this.mergeSelectors(this.mergeSelectors(c.blockSelector,f),"img, picture, video, audio, canvas, svg"),recordCanvas:!1,inlineImages:!1,emit:r}:"normal"===d?{...c,...p,maskAllInputs:!0,blockSelector:this.mergeSelectors(c.blockSelector,f),emit:r}:{...c,...p,blockSelector:this.mergeSelectors(c.blockSelector,f),maskInputOptions:{...u,password:!0},emit:r}}mergeSelectors(e,t){return t?"string"==typeof e&&e.trim()?`${e}, ${t}`:t:"string"==typeof e?e:void 0}createReplayId(){return"u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}async sendSessionReplayStart(e,t){try{let r=this.getApiBase(),n=await fetch(`${r}/log/session-replay/start`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pid:this.projectID,replayId:e,privacy:t,pg:this.activePage||f({hash:this.pageViewsOptions?.hash,search:this.pageViewsOptions?.search}),lc:l(),tz:c(),profileId:this.options?.profileId})});if(!n.ok)return null;try{let t=await n.json(),r="string"==typeof t.replayId&&t.replayId?t.replayId:e,o="number"==typeof t.nextChunkIndex&&Number.isFinite(t.nextChunkIndex)&&t.nextChunkIndex>=0?Math.floor(t.nextChunkIndex):0;return{replayId:r,nextChunkIndex:o}}catch{return{replayId:e,nextChunkIndex:0}}}catch{return null}}async sendSessionReplayChunk(e,t,r,n,o){let i=this.getApiBase(),a=`${i}/log/session-replay/chunk`,s=JSON.stringify({pid:this.projectID,replayId:e,privacy:t,chunkIndex:r,events:n});if(o&&"function"==typeof navigator.sendBeacon&&navigator.sendBeacon(a,new Blob([s],{type:"application/json"})))return!0;let l=o?1:x.length+1;for(let e=0;e<l;e++){e>0&&await new Promise(t=>setTimeout(t,x[e-1]));try{let e=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},keepalive:o&&s.length<6e4,body:s});if(e.ok)return!0;if(e.status<500&&408!==e.status&&429!==e.status)break}catch{}}return!1}async sendRequest(e,t){let r=this.options?.apiURL||"https://api.swetrix.com/log",n=JSON.stringify(t);await fetch(`${r}/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},keepalive:n.length<6e4,body:n})}}let j=null;async function C(e){j&&await j.track(e)}e.s(["init",0,function(e,t){return j||(j=new S(e,t)),j},"startSessionReplay",0,function(e){return j?j.startSessionReplay(e):Promise.resolve(m)},"track",0,C,"trackViews",0,function(e){return new Promise(t=>{j?"u"<typeof document||"complete"===document.readyState?t(j.trackPageViews(e)):window.addEventListener("load",()=>{t(j.trackPageViews(e))}):t(h)})}],831114)}]);

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.