PageSourceSearch

https://tokenhot.ai/_next/static/chunks/0o45mr8on2cru.js

js tokenhot.ai collected 2026-10-05 13:07:33 UTC 121,255 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,599122,e=>{"use strict";let t=(0,e.i(988410).tv)({base:"separator",defaultVariants:{orientation:"horizontal",variant:"default"},variants:{orientation:{horizontal:"separator--horizontal",vertical:"separator--vertical"},variant:{default:"separator--default",secondary:"separator--secondary",tertiary:"separator--tertiary"}}});var n=e.i(388386),a=e.i(823316),r=e.i(843476);let l=({className:e,orientation:l,variant:o,...i})=>{let s=(0,a.useSlottedContext)(n.SeparatorContext),d=l??s?.orientation??"horizontal";return(0,r.jsx)(n.Separator,{"data-orientation":d,"data-slot":"separator",orientation:d,className:t({orientation:d,variant:o,className:e}),...i})},o=Object.assign(l,{Root:l});e.s(["Separator",0,o],599122)},94539,867798,944834,772203,503939,928091,e=>{"use strict";let t,n;e.s(["setCookie",0,function(e,t,n=31536e3){"u">typeof document&&(document.cookie=`${e}=${encodeURIComponent(t)}; path=/; max-age=${n}; SameSite=Lax`)}],94539),e.s(["matchesShortcut",0,(e,t)=>e.key.toLowerCase()===t.key&&t.shift===e.shiftKey&&t.alt===e.altKey&&(t.mod?!(!e.metaKey&&!e.ctrlKey):t.ctrl===e.ctrlKey&&t.meta===e.metaKey),"parseToggleShortcut",0,e=>{let t=e.split("+").map(e=>e.trim().toLowerCase()).filter(Boolean);if(0===t.length)return null;let n={alt:!1,ctrl:!1,key:"",meta:!1,mod:!1,shift:!1};for(let e of t)"mod"===e?n.mod=!0:"cmd"===e||"command"===e?n.meta=!0:"ctrl"===e||"control"===e?n.ctrl=!0:"meta"===e||"win"===e||"super"===e?n.meta=!0:"shift"===e?n.shift=!0:"alt"===e||"option"===e||"opt"===e?n.alt=!0:n.key=e;return n.key?n:null}],867798);var a=e.i(843476);let r=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",...e,children:(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M5.5 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M7 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m3.5 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd"})}),l=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",...e,children:(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 9a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m6.5 1.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m0-5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m-5 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0M13 9a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m1.5-3.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0",clipRule:"evenodd"})});e.s(["Bars",0,e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",...e,children:(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.25 3.25A.75.75 0 0 1 2 2.5h12A.75.75 0 0 1 14 4H2a.75.75 0 0 1-.75-.75m0 4.75A.75.75 0 0 1 2 7.25h12a.75.75 0 0 1 0 1.5H2A.75.75 0 0 1 1.25 8M2 12a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})}),"ChevronRight",0,e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",...e,children:(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0",clipRule:"evenodd"})}),"Grip",0,r,"GripHorizontal",0,l,"LayoutSideContentLeft",0,e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",...e,children:(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 3.5h6A1.5 1.5 0 0 1 13.5 5v6a1.5 1.5 0 0 1-1.5 1.5H6zm-1.5 0H4A1.5 1.5 0 0 0 2.5 5v6A1.5 1.5 0 0 0 4 12.5h.5zM1 5a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3z",clipRule:"evenodd"})}),"LayoutSideContentRight",0,e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",...e,children:(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 3.5H4A1.5 1.5 0 0 0 2.5 5v6A1.5 1.5 0 0 0 4 12.5h6zm1.5 0h.5A1.5 1.5 0 0 1 13.5 5v6a1.5 1.5 0 0 1-1.5 1.5h-.5zM15 5a3 3 0 0 0-3-3H4a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3z",clipRule:"evenodd"})})],944834);var o=e.i(271645);function i({groupSize:e,panelElement:t,styleProp:n}){let a,[r,l]=function(e){switch(typeof e){case"number":return[e,"px"];case"string":{let t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}(n);switch(l){case"%":a=r/100*e;break;case"px":a=r;break;case"rem":a=r*parseFloat(getComputedStyle(t.ownerDocument.body).fontSize);break;case"em":a=r*parseFloat(getComputedStyle(t).fontSize);break;case"vh":a=r/100*window.innerHeight;break;case"vw":a=r/100*window.innerWidth}return a}function s(e){return parseFloat(e.toFixed(3))}function d({group:e}){let{orientation:t,panels:n}=e;return n.reduce((e,n)=>e+="horizontal"===t?n.element.offsetWidth:n.element.offsetHeight,0)}function u(e){let{panels:t}=e,n=d({group:e});return 0===n?t.map(e=>({groupResizeBehavior:e.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:!0===e.panelConstraints.collapsible,defaultSize:void 0,disabled:e.panelConstraints.disabled,minSize:0,maxSize:100,panelId:e.id})):t.map(e=>{let t,{element:a,panelConstraints:r}=e,l=0;void 0!==r.collapsedSize&&(l=s(i({groupSize:n,panelElement:a,styleProp:r.collapsedSize})/n*100)),void 0!==r.defaultSize&&(t=s(i({groupSize:n,panelElement:a,styleProp:r.defaultSize})/n*100));let o=0;void 0!==r.minSize&&(o=s(i({groupSize:n,panelElement:a,styleProp:r.minSize})/n*100));let d=100;return void 0!==r.maxSize&&(d=s(i({groupSize:n,panelElement:a,styleProp:r.maxSize})/n*100)),{groupResizeBehavior:r.groupResizeBehavior,collapsedSize:l,collapsible:!0===r.collapsible,defaultSize:t,disabled:r.disabled,minSize:o,maxSize:d,panelId:e.id}})}function c(e,t="Assertion error"){if(!e)throw Error(t)}function p(e,t){return Array.from(t).sort("horizontal"===e?f:h)}function f(e,t){let n=e.element.offsetLeft-t.element.offsetLeft;return 0!==n?n:e.element.offsetWidth-t.element.offsetWidth}function h(e,t){let n=e.element.offsetTop-t.element.offsetTop;return 0!==n?n:e.element.offsetHeight-t.element.offsetHeight}function m(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function g(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function b(e){let{element:n,orientation:a,panels:r,separators:l}=e,o=p(a,Array.from(n.children).filter(m).map(e=>({element:e}))).map(({element:e})=>e),i=[],s=!1,u=!1,f=-1,h=-1,b=0,y,v=[];{let e=-1;for(let t of o)t.hasAttribute("data-panel")&&(e++,t.hasAttribute("data-disabled")||(b++,-1===f&&(f=e),h=e))}if(b>1){let n=-1;for(let p of o)if(p.hasAttribute("data-panel")){n++;let l=r.find(e=>e.element===p);if(l){if(y){let r,o=y.element.getBoundingClientRect(),m=p.getBoundingClientRect();if(u){let e="horizontal"===a?new DOMRect(o.right,o.top,0,o.height):new DOMRect(o.left,o.bottom,o.width,0),t="horizontal"===a?new DOMRect(m.left,m.top,0,m.height):new DOMRect(m.left,m.top,m.width,0);switch(v.length){case 0:r=[e,t];break;case 1:{let n=v[0],l=function({orientation:e,rects:t,targetRect:n}){let a={x:n.x+n.width/2,y:n.y+n.height/2},r,l=Number.MAX_VALUE;for(let n of t){let{x:t,y:o}
1=g(a,n),i="horizontal"===e?t:o;i<l&&(l=i,r=n)}return c(r,"No rect found"),r}({orientation:a,rects:[o,m],targetRect:n.element.getBoundingClientRect()});r=[n,l===o?t:e];break}default:r=v}}else r=v.length?v:["horizontal"===a?new DOMRect(o.right,m.top,m.left-o.right,m.height):new DOMRect(m.left,o.bottom,m.width,m.top-o.bottom)];for(let a of r){let r="width"in a?a:a.element.getBoundingClientRect(),o=(void 0===t&&(t="function"==typeof matchMedia&&!!matchMedia("(pointer:coarse)").matches),t)?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(r.width<o){let e=o-r.width;r=new DOMRect(r.x-e/2,r.y,r.width+e,r.height)}if(r.height<o){let e=o-r.height;r=new DOMRect(r.x,r.y-e/2,r.width,r.height+e)}let u=n<=f||n>h;s||u||i.push({group:e,groupSize:d({group:e}),panels:[y,l],separator:"width"in a?void 0:a,rect:r}),s=!1}}u=!1,y=l,v=[]}}else if(p.hasAttribute("data-separator")){null!==p.ariaDisabled&&(s=!0);let e=l.find(e=>e.element===p);e?v.push(e):(y=void 0,v=[])}else u=!0}return i}class y{#e={};addListener(e,t){let n=this.#e[e];return void 0===n?this.#e[e]=[t]:n.includes(t)||n.push(t),()=>{this.removeListener(e,t)}}emit(e,t){let n=this.#e[e];if(void 0!==n)if(1===n.length)n[0].call(null,t);else{let e=!1,a=null,r=Array.from(n);for(let n=0;n<r.length;n++){let l=r[n];try{l.call(null,t)}catch(t){null===a&&(e=!0,a=t)}}if(e)throw a}}removeAllListeners(){this.#e={}}removeListener(e,t){let n=this.#e[e];if(void 0!==n){let e=n.indexOf(t);e>=0&&n.splice(e,1)}}}let v=new Map,x=new y;function S(e,t){for(let[t]of v)if(t.id===e)return t}function w(e,t){for(let[t,n]of v)if(t.id===e)return n;if(t)throw Error(`Could not find data for Group with id ${e}`)}function C(e,t){return x.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function z(e,t){let n=v.get(e);(v=new Map(v)).set(e,t),x.emit("groupChange",{group:e,prev:n,next:t})}let P=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function R(e){let t=e.length;for(;t--;){let n=e[t];if(c(n,"Missing node"),function(e){let t,n=getComputedStyle(e);return!!("fixed"===n.position||"auto"!==n.zIndex&&("static"!==n.position||"flex"===(t=getComputedStyle(k(e)??e).display)||"inline-flex"===t)||1>+n.opacity||"transform"in n&&"none"!==n.transform||"webkitTransform"in n&&"none"!==n.webkitTransform||"mixBlendMode"in n&&"normal"!==n.mixBlendMode||"filter"in n&&"none"!==n.filter||"webkitFilter"in n&&"none"!==n.webkitFilter||"isolation"in n&&"isolate"===n.isolation||P.test(n.willChange)||"touch"===n.webkitOverflowScrolling)}(n))return n}return null}function M(e){return e&&Number(getComputedStyle(e).zIndex)||0}function E(e){let t=[];for(;e;)t.push(e),e=k(e);return t}function k(e){let{parentNode:t}=e;return null!==t&&"object"==typeof t&&"nodeType"in t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.host:t}function N(e,t){let n=[];return t.forEach((t,a)=>{if(a.disabled)return;let r=b(a),l=function(e,t,n){let a,r={x:1/0,y:1/0};for(let l of t){let t=g(n,l.rect);switch(e){case"horizontal":t.x<=r.x&&(a=l,r=t);break;case"vertical":t.y<=r.y&&(a=l,r=t)}}return a?{distance:r,hitRegion:a}:void 0}(a.orientation,r,{x:e.clientX,y:e.clientY});l&&l.distance.x<=0&&l.distance.y<=0&&function({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!m(n)||n.contains(e)||e.contains(n))return!0;if(function(e,t){let n;if(e===t)throw Error("Cannot compare node with itself");let a={a:E(e),b:E(t)};for(;a.a.at(-1)===a.b.at(-1);)n=a.a.pop(),a.b.pop();c(n,"Stacking order can only be calculated for elements with a common ancestor");let r={a:M(R(a.a)),b:M(R(a.b))};if(r.a===r.b){let e=n.childNodes,t={a:a.a.at(-1),b:a.b.at(-1)},r=e.length;for(;r--;){let n=e[r];if(n===t.a)return 1;if(n===t.b)return -1}}return Math.sign(r.a-r.b)}(n,e)>0){let r=n;for(;r;){var a;if(r.contains(e))break;if(a=r.getBoundingClientRect(),a.x<t.x+t.width&&a.x+a.width>t.x&&a.y<t.y+t.height&&a.y+a.height>t.y)return!1;r=r.parentElement}}return!0}({groupElement:a.element,hitRegion:l.hitRegion.rect,pointerEventTarget:e.target})&&n.push(l.hitRegion)}),n}function D(e,t,n=0){return Math.abs(s(e)-s(t))<=n}function L(e,t){return D(e,t)?0:e>t?1:-1}function T({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:a}){let{collapsedSize:r=0,collapsible:l,disabled:o,maxSize:i=100,minSize:d=0}=t;return o&&!e?n:(0>L(a,d)&&(a=l&&0>L(a,(r+d)/2)?r:d),s(a=Math.min(i,a)))}function I({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:a,prevLayout:r,trigger:l}){if(D(e,0))return t;let o="imperative-api"===l,i=Object.values(t),s=Object.values(r),d=[...i],[u,p]=a;c(null!=u,"Invalid first pivot index"),c(null!=p,"Invalid second pivot index");let f=0;if("keyboard"===l){{let t=e<0?p:u,a=n[t];c(a,`Panel constraints not found for index ${t}`);let{collapsedSize:r=0,collapsible:l,minSize:o=0}=a;if(l){let n=i[t];if(c(null!=n,`Previous layout not found for panel index ${t}
1`),D(n,r)){let t=o-n;L(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let t=e<0?u:p,a=n[t];c(a,`No panel constraints found for index ${t}`);let{collapsedSize:r=0,collapsible:l,minSize:o=0}=a;if(l){let n=i[t];if(c(null!=n,`Previous layout not found for panel index ${t}`),D(n,o)){let t=n-r;L(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}else{let t=e<0?p:u,a=n[t];c(a,`Panel constraints not found for index ${t}`);let r=i[t],{collapsible:l,collapsedSize:o,minSize:s}=a;if(l&&0>L(r,s))if(e>0){let t=s-o;0>L(r+e,s)&&(e=0>=L(e,t/2)?0:t)}else{let t=s-o;0>L(r-e,s)&&(e=L(100+e,100-t/2)>0?0:-t)}}{let t=e<0?1:-1,a=e<0?p:u,r=0;for(;;){let e=i[a];if(c(null!=e,`Previous layout not found for panel index ${a}`),r+=T({overrideDisabledPanels:o,panelConstraints:n[a],prevSize:e,size:100})-e,(a+=t)<0||a>=n.length)break}let l=Math.min(Math.abs(e),Math.abs(r));e=e<0?0-l:l}{let t=e<0?u:p;for(;t>=0&&t<n.length;){let a=Math.abs(e)-Math.abs(f),r=i[t];c(null!=r,`Previous layout not found for panel index ${t}`);let l=r-a,s=T({overrideDisabledPanels:o,panelConstraints:n[t],prevSize:r,size:l});if(!D(r,s)&&(f+=r-s,d[t]=s,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?t--:t++}}if(function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}(s,d))return r;{let t=e<0?p:u,a=i[t];c(null!=a,`Previous layout not found for panel index ${t}`);let r=a+f,l=T({overrideDisabledPanels:o,panelConstraints:n[t],prevSize:a,size:r});if(d[t]=l,!D(l,r)){let t=r-l,a=e<0?p:u;for(;a>=0&&a<n.length;){let r=d[a];c(null!=r,`Previous layout not found for panel index ${a}`);let l=r+t,i=T({overrideDisabledPanels:o,panelConstraints:n[a],prevSize:r,size:l});if(D(r,i)||(t-=i-r,d[a]=i),D(t,0))break;e>0?a--:a++}}}if(!D(Object.values(d).reduce((e,t)=>t+e,0),100,.1))return r;let h=Object.keys(r);return d.reduce((e,t,n)=>(e[h[n]]=t,e),{})}function j(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(void 0===t[n]||0!==L(e[n],t[n]))return!1;return!0}function _({layout:e,panelConstraints:t}){let n=Object.values(e),a=[...n],r=a.reduce((e,t)=>e+t,0);if(a.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${a.map(e=>`${e}%`).join(", ")}`);if(!D(r,100)&&a.length>0)for(let e=0;e<t.length;e++){let t=a[e];c(null!=t,`No layout data found for index ${e}`);let n=100/r*t;a[e]=n}let l=0;for(let e=0;e<t.length;e++){let r=n[e];c(null!=r,`No layout data found for index ${e}`);let o=a[e];c(null!=o,`No layout data found for index ${e}`);let i=T({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:r,size:o});o!=i&&(l+=o-i,a[e]=i)}if(!D(l,0))for(let e=0;e<t.length;e++){let n=a[e];c(null!=n,`No layout data found for index ${e}`);let r=n+l,o=T({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:n,size:r});if(n!==o&&(l-=o-n,a[e]=o,D(l,0)))break}let o=Object.keys(e);return a.reduce((e,t,n)=>(e[o[n]]=t,e),{})}function O({groupId:e,panelId:t}){let n=()=>{for(let[t,{defaultLayoutDeferred:n,derivedPanelConstraints:a,layout:r,groupSize:l,separatorToPanels:o}]of v)if(t.id===e)return{defaultLayoutDeferred:n,derivedPanelConstraints:a,group:t,groupSize:l,layout:r,separatorToPanels:o};throw Error(`Group ${e} not found`)},a=()=>{let e=n().derivedPanelConstraints.find(e=>e.panelId===t);if(void 0!==e)return e;throw Error(`Panel constraints not found for Panel ${t}`)},r=()=>{let e=n().group.panels.find(e=>e.id===t);if(void 0!==e)return e;throw Error(`Layout not found for Panel ${t}`)},l=()=>{let e=n().layout[t];if(void 0!==e)return e;throw Error(`Layout not found for Panel ${t}`)},o=e=>{if(e===l())return;let{defaultLayoutDeferred:a,derivedPanelConstraints:r,group:o,groupSize:i,layout:d,separatorToPanels:u}=n(),c=_({layout:(({nextSize:e,panels:n,prevLayout:a,derivedPanelConstraints:r})=>{let o=l(),i=n.findIndex(e=>e.id===t),d=0===i,u=i===n.length-1;if(u&&e<o&&(d||n.slice(0,i).every((e,t)=>{let n=r[t];return n?.collapsible&&D(n.collapsedSize,a[n.panelId])}))){let e=n.slice(0,i).reduce((e,t)=>e+a[t.id],0);return{...a,[t]:s(100-e)}}return I({delta:u?o-e:e-o,initialLayout:a,panelConstraints:r,pivotIndices:u?[i-1,i]:[i,i+1],prevLayout:a,trigger:"imperative-api"})})({nextSize:e,panels:o.panels,prevLayout:d,derivedPanelConstraints:r}),panelConstraints:r});j(d,c)||z(o,{defaultLayoutDeferred:a,derivedPanelConstraints:r,groupSize:i,layout:c,separatorToPanels:u})};return{collapse:()=>{let{collapsible:e,collapsedSize:t}=a(),{mutableValues:n}=r(),i=l();e&&i!==t&&(n.expandToSize=i,o(t))},expand:()=>{let{collapsible:e,collapsedSize:t,minSize:n}=a(),{mutableValues:i}=r(),s=l();
1if(e&&s===t){let e=i.expandToSize??n;0===e&&(e=1),o(e)}},getSize:()=>{let{group:e}=n(),t=l(),{element:a}=r();return{asPercentage:t,inPixels:"horizontal"===e.orientation?a.offsetWidth:a.offsetHeight}},isCollapsed:()=>{let{collapsible:e,collapsedSize:t}=a(),n=l();return e&&D(t,n)},resize:e=>{let{group:t}=n(),{element:a}=r(),l=d({group:t});o(s(i({groupSize:l,panelElement:a,styleProp:e})/l*100))}}}function A(e){e.defaultPrevented||N(e,v).forEach(t=>{if(t.separator&&!t.separator.disableDoubleClick){let n=t.panels.find(e=>void 0!==e.panelConstraints.defaultSize);if(n){let a=n.panelConstraints.defaultSize,r=O({groupId:t.group.id,panelId:n.id});r&&void 0!==a&&(r.resize(a),e.preventDefault())}}})}function B(e){for(let[t]of v)if(t.separators.some(t=>t.element===e))return t;throw Error("Could not find parent Group for separator element")}function F({groupId:e}){let t=()=>{for(let[t,n]of v)if(t.id===e)return{group:t,...n};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:e,layout:n}=t();return e?{}:n},setLayout(e){let{defaultLayoutDeferred:n,derivedPanelConstraints:a,group:r,groupSize:l,layout:o,separatorToPanels:i}=t(),s=_({layout:e,panelConstraints:a});return n?o:(j(o,s)||z(r,{defaultLayoutDeferred:n,derivedPanelConstraints:a,groupSize:l,layout:s,separatorToPanels:i}),s)}}}function K(e,t){let n=B(e),a=w(n.id,!0),r=n.separators.find(t=>t.element===e);c(r,"Matching separator not found");let l=a.separatorToPanels.get(r);c(l,"Matching panels not found");let o=l.map(e=>n.panels.indexOf(e)),i=F({groupId:n.id}).getLayout(),s=_({layout:I({delta:t,initialLayout:i,panelConstraints:a.derivedPanelConstraints,pivotIndices:o,prevLayout:i,trigger:"keyboard"}),panelConstraints:a.derivedPanelConstraints});j(i,s)||z(n,{defaultLayoutDeferred:a.defaultLayoutDeferred,derivedPanelConstraints:a.derivedPanelConstraints,groupSize:a.groupSize,layout:s,separatorToPanels:a.separatorToPanels})}function H(e){if(e.defaultPrevented)return;let t=e.currentTarget,n=B(t);if(!n.disabled)switch(e.key){case"ArrowDown":e.preventDefault(),"vertical"===n.orientation&&K(t,5);break;case"ArrowLeft":e.preventDefault(),"horizontal"===n.orientation&&K(t,-5);break;case"ArrowRight":e.preventDefault(),"horizontal"===n.orientation&&K(t,5);break;case"ArrowUp":e.preventDefault(),"vertical"===n.orientation&&K(t,-5);break;case"End":e.preventDefault(),K(t,100);break;case"Enter":{e.preventDefault();let n=B(t),{derivedPanelConstraints:a,layout:r,separatorToPanels:l}=w(n.id,!0),o=n.separators.find(e=>e.element===t);c(o,"Matching separator not found");let i=l.get(o);c(i,"Matching panels not found");let s=i[0],d=a.find(e=>e.panelId===s.id);if(c(d,"Panel metadata not found"),d.collapsible){let e=r[s.id];K(t,(d.collapsedSize===e?n.mutableState.expandedPanelSizes[s.id]??d.minSize:d.collapsedSize)-e)}break}case"F6":{e.preventDefault();let n=B(t).separators.map(e=>e.element),a=Array.from(n).findIndex(t=>t===e.currentTarget);c(null!==a,"Index not found");let r=e.shiftKey?a>0?a-1:n.length-1:a+1<n.length?a+1:0;n[r].focus({preventScroll:!0});break}case"Home":e.preventDefault(),K(t,-100)}}let $={cursorFlags:0,state:"inactive"},V=new y;function W(e){let t=$;$=e,V.emit("change",{prev:t,next:e})}function G(e){if(e.defaultPrevented||"mouse"===e.pointerType&&e.button>0)return;let t=v,n=N(e,t),a=new Map,r=!1;n.forEach(e=>{e.separator&&(r||(r=!0,e.separator.element.focus({focusVisible:!1,preventScroll:!0})));let n=t.get(e.group);n&&a.set(e.group,n.layout)}),W({cursorFlags:0,hitRegions:n,initialLayoutMap:a,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}let U=e=>e,q=()=>{};function Y(){return void 0===n&&(n=!1,"u">typeof window&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(n=!0)),n}let X=new WeakMap;function J(e){if(null===e.defaultView||void 0===e.defaultView)return;let{prevStyle:t,styleSheet:n}=X.get(e)??{};void 0===n&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));let a=$;switch(a.state){case"active":case"hover":{let e=function({cursorFlags:e,groups:t,state:n}){let a=0,r=0;
1switch(n){case"active":case"hover":t.forEach(e=>{if(!e.mutableState.disableCursor)switch(e.orientation){case"horizontal":a++;break;case"vertical":r++}})}if(0!==a||0!==r){if("active"===n&&e&&Y()){let t=(4&e)!=0,n=(8&e)!=0;if((1&e)!=0)return t?"se-resize":n?"ne-resize":"e-resize";if((2&e)!=0)return t?"sw-resize":n?"nw-resize":"w-resize";if(t)return"s-resize";if(n)return"n-resize"}return Y()?a>0&&r>0?"move":a>0?"ew-resize":"ns-resize":a>0&&r>0?"grab":a>0?"col-resize":"row-resize"}}({cursorFlags:a.cursorFlags,groups:a.hitRegions.map(e=>e.group),state:a.state}),r=`*, *:hover {cursor: ${e} !important; }`;if(t===r)return;t=r,e?0===n.cssRules.length?n.insertRule(r):n.replaceSync(r):1===n.cssRules.length&&n.deleteRule(0);break}case"inactive":t=void 0,1===n.cssRules.length&&n.deleteRule(0)}X.set(e,{prevStyle:t,styleSheet:n})}function Z({document:e,event:t,hitRegions:n,initialLayoutMap:a,mountedGroups:r,pointerDownAtPoint:l,prevCursorFlags:o}){var i;let s,d,u=0;n.forEach(e=>{let{group:n,groupSize:o}=e,{orientation:i,panels:s}=n,{disableCursor:d}=n.mutableState,c=0;c=l?"horizontal"===i?(t.clientX-l.x)/o*100:(t.clientY-l.y)/o*100:"horizontal"===i?t.clientX<0?-100:100:t.clientY<0?-100:100;let p=a.get(n),f=r.get(n);if(!p||!f)return;let{defaultLayoutDeferred:h,derivedPanelConstraints:m,groupSize:g,layout:b,separatorToPanels:y}=f;if(m&&b&&y){let t=I({delta:c,initialLayout:p,panelConstraints:m,pivotIndices:e.panels.map(e=>s.indexOf(e)),prevLayout:b,trigger:"mouse-or-touch"});if(j(t,b)){if(0!==c&&!d)switch(i){case"horizontal":u|=c<0?1:2;break;case"vertical":u|=c<0?4:8}}else z(e.group,{defaultLayoutDeferred:h,derivedPanelConstraints:m,groupSize:g,layout:t,separatorToPanels:y})}});let c=0;0===t.movementX?c|=3&o:c|=3&u,0===t.movementY?c|=12&o:c|=12&u,i=c,s=$,(d={...$}).cursorFlags=i,$=d,V.emit("change",{prev:s,next:d}),J(e)}function Q(e){let t=v,n=$;"active"===n.state&&Z({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}function ee(e){if(e.defaultPrevented)return;let t=$,n=v;if("active"===t.state){if(0===e.buttons){W({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(e=>{let t=w(e.group.id,!0);z(e.group,t)});return}for(let n of t.hitRegions)if(n.separator){let{element:t}=n.separator;t.hasPointerCapture?.(e.pointerId)||t.setPointerCapture?.(e.pointerId)}Z({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags})}else{let a=N(e,n);0===a.length?"inactive"!==t.state&&W({cursorFlags:0,state:"inactive"}):W({cursorFlags:0,hitRegions:a,state:"hover"}),J(e.currentTarget)}}function et(e){e.relatedTarget instanceof HTMLIFrameElement&&"hover"===$.state&&W({cursorFlags:0,state:"inactive"})}function en(e){if(e.defaultPrevented||"mouse"===e.pointerType&&e.button>0)return;let t=$;"active"===t.state&&(W({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(J(e.currentTarget),t.hitRegions.forEach(e=>{let t=w(e.group.id,!0);z(e.group,t)}),e.preventDefault()))}function ea(e){let t=0,n=0,a={};for(let r of e)if(void 0!==r.defaultSize){t++;let e=s(r.defaultSize);n+=e,a[r.panelId]=e}else a[r.panelId]=void 0;let r=e.length-t;if(0!==r){let t=s((100-n)/r);for(let n of e)void 0===n.defaultSize&&(a[n.panelId]=t)}return a}let er=new Map;function el(e){let t=(0,o.useId)();return`${e??t}`}let eo="u">typeof window?o.useLayoutEffect:o.useEffect;function ei(e){let t=(0,o.useRef)(e);return eo(()=>{t.current=e},[e]),(0,o.useCallback)((...e)=>t.current?.(...e),[t])}function es(...e){return ei(t=>{e.forEach(e=>{if(e)switch(typeof e){case"function":e(t);break;case"object":e.current=t}})})}function ed(e){let t=(0,o.useRef)({...e});return eo(()=>{for(let n in e)t.current[n]=e[n]},[e]),t.current}let eu=(0,o.createContext)(null);function ec({children:e,className:t,defaultLayout:n,disableCursor:r,disabled:l,elementRef:i,groupRef:f,id:h,onLayoutChange:m,onLayoutChanged:g,orientation:y="horizontal",resizeTargetMinimumSize:x={coarse:20,fine:10},style:P,...R}){let M,E=(0,o.useRef)({onLayoutChange:{},onLayoutChanged:{}}),k=ei(e=>{j(E.current.onLayoutChange,e)||(E.current.onLayoutChange=e,m?.(e))}),N=ei(e=>{j(E.current.onLayoutChanged,e)||(E.current.onLayoutChanged=e,g?.(e))}),L=el(h),T=(0,o.useRef)(null),[I,O]=function(){let[e,t]=(0,o.useState)({});return[e,(0,o.useCallback)(()=>t({}),[])]}(),B=(0,o.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:x,separators:[]}),K=es(T,i);M=(0,o.useRef)({getLayout:()=>({}),setLayout:U}),(0,o.useImperativeHandle)(f,()=>M.current,[]),eo(()=>{Object.assign(M.current,F({groupId:L}))});let V=ei((e,t)=>{let a=$,r=S(e),l=w(e);if(l){let e=!1;return"active"===a.state&&(e=a.hitRegions.some(e=>e.group===r)),{flexGrow:l.layout[t]??1,pointerEvents:e?"none":void 0}}if(n?.[t])return{flexGrow:n?.[t]}}),W=ed({defaultLayout:n,disableCursor:r}),q=(0,o.useMemo)(()=>
1({get disableCursor(){return!!W.disableCursor},getPanelStyles:V,id:L,orientation:y,registerPanel:e=>{let t=B.current;return t.panels=p(y,[...t.panels,e]),O(),()=>{t.panels=t.panels.filter(t=>t!==e),O()}},registerSeparator:e=>{let t=B.current;return t.separators=p(y,[...t.separators,e]),O(),()=>{t.separators=t.separators.filter(t=>t!==e),O()}},updatePanelProps:(e,{disabled:t})=>{let n=B.current.panels.find(t=>t.id===e);n&&(n.panelConstraints.disabled=t);let a=S(L),r=w(L);a&&r&&z(a,{...r,derivedPanelConstraints:u(a)})},updateSeparatorProps:(e,{disabled:t,disableDoubleClick:n})=>{let a=B.current.separators.find(t=>t.id===e);a&&(a.disabled=t,a.disableDoubleClick=n)}}),[V,L,O,y,W]),Y=(0,o.useRef)(null);return eo(()=>{let e,t,n,a,r,o,i,p,f,h,m,g,x,S=T.current;if(null===S)return;let P=B.current;if(void 0!==W.defaultLayout&&Object.keys(W.defaultLayout).length===P.panels.length)for(let t of(e={},P.panels)){let n=W.defaultLayout[t.id];void 0!==n&&(e[t.id]=n)}let R={disabled:!!l,element:S,id:L,mutableState:{defaultLayout:e,disableCursor:!!W.disableCursor,expandedPanelSizes:B.current.lastExpandedPanelSizes,layouts:B.current.layouts},orientation:y,panels:P.panels,resizeTargetMinimumSize:P.resizeTargetMinimumSize,separators:P.separators};Y.current=R;let M=(t=!0,c(R.element.ownerDocument.defaultView,"Cannot register an unmounted Group"),n=R.element.ownerDocument.defaultView.ResizeObserver,a=new Set,r=new Set,(o=new n(e=>{for(let n of e){let{borderBoxSize:e,target:a}=n;if(a===R.element){if(t){let e=d({group:R});if(0===e)return;let t=w(R.id);if(!t)return;let n=u(R),a=t.defaultLayoutDeferred?ea(n):t.layout,r=_({layout:function({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:a}){if(n<=0||t<=0||n===t)return a;let r=0,l=0,o=!1,i=new Map,d=[];for(let u of e.panels){let e=a[u.id]??0;if("preserve-pixel-size"===u.panelConstraints.groupResizeBehavior){o=!0;let a=s(e/100*n/t*100);i.set(u.id,a),r+=a}else d.push(u.id),l+=e}if(!o||0===d.length)return a;let u=100-r,c={...a};if(i.forEach((e,t)=>{c[t]=e}),l>0)for(let e of d){let t=a[e]??0;c[e]=s(t/l*u)}else{let e=s(u/d.length);for(let t of d)c[t]=e}return c}({group:R,nextGroupSize:e,prevGroupSize:t.groupSize,prevLayout:a}),panelConstraints:n});if(!t.defaultLayoutDeferred&&j(t.layout,r)&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}(t.derivedPanelConstraints,n)&&t.groupSize===e)return;z(R,{defaultLayoutDeferred:!1,derivedPanelConstraints:n,groupSize:e,layout:r,separatorToPanels:t.separatorToPanels})}}else!function(e,t,n){if(!n[0])return;let a=e.panels.find(e=>e.element===t);if(!a||!a.onResize)return;let r=d({group:e}),l="horizontal"===e.orientation?a.element.offsetWidth:a.element.offsetHeight,o=a.mutableValues.prevSize,i={asPercentage:s(l/r*100),inPixels:l};a.mutableValues.prevSize=i,a.onResize(i,a.id,o)}(R,a,e)}})).observe(R.element),R.panels.forEach(e=>{c(!a.has(e.id),`Panel ids must be unique; id "${e.id}" was used more than once`),a.add(e.id),e.onResize&&o.observe(e.element)}),i=d({group:R}),p=u(R),f=R.panels.map(({id:e})=>e).join(","),(h=R.mutableState.defaultLayout)&&(function(e,t){let n=e.map(e=>e.id),a=Object.keys(t);if(n.length!==a.length)return!1;for(let e of n)if(!a.includes(e))return!1;return!0}(R.panels,h)||(h=void 0)),m=_({layout:R.mutableState.layouts[f]??h??ea(p),panelConstraints:p}),g=R.element.ownerDocument,er.set(g,(er.get(g)??0)+1),x=new Map,b(R).forEach(e=>{e.separator&&x.set(e.separator,e.panels)}),z(R,{defaultLayoutDeferred:0===i,derivedPanelConstraints:p,groupSize:i,layout:m,separatorToPanels:x}),R.separators.forEach(e=>{c(!r.has(e.id),`Separator ids must be unique; id "${e.id}" was used more than once`),r.add(e.id),e.element.addEventListener("keydown",H)}),1===er.get(g)&&(g.addEventListener("dblclick",A,!0),g.addEventListener("pointerdown",G,!0),g.addEventListener("pointerleave",Q),g.addEventListener("pointermove",ee),g.addEventListener("pointerout",et),g.addEventListener("pointerup",en,!0)),function(){t=!1,er.set(g,Math.max(0,(er.get(g)??0)-1)),(v=new Map(v)).delete(R),R.separators.forEach(e=>{e.element.removeEventListener("keydown",H)}),er.get(g)||(g.removeEventListener("dblclick",A,!0),g.removeEventListener("pointerdown",G,!0),g.removeEventListener("pointerleave",Q),g.removeEventListener("pointermove",ee),g.removeEventListener("pointerout",et),g.removeEventListener("pointerup",en,!0)),o.disconnect()}),{defaultLayoutDeferred:E,derivedPanelConstraints:I,layout:O}=w(R.id,!0);!E&&I.length>0&&(k(O),N(O));let F=C(L,e=>{let{defaultLayoutDeferred:t,derivedPanelConstraints:n,layout:a}=e.next;if(t||0===n.length)return;let r=R.panels.map(({id:e})=>e).join(",");
1R.mutableState.layouts[r]=a,n.forEach(t=>{if(t.collapsible){let{layout:n}=e.prev??{};if(n){let e=D(t.collapsedSize,a[t.panelId]),r=D(t.collapsedSize,n[t.panelId]);e&&!r&&(R.mutableState.expandedPanelSizes[t.panelId]=n[t.panelId])}}});let l="active"!==$.state;k(a),l&&N(a)});return()=>{Y.current=null,M(),F()}},[l,L,N,k,y,I,W]),(0,o.useEffect)(()=>{let e=Y.current;e&&(e.mutableState.defaultLayout=n,e.mutableState.disableCursor=!!r)}),(0,a.jsx)(eu.Provider,{value:q,children:(0,a.jsx)("div",{...R,className:t,"data-group":!0,"data-testid":L,id:L,ref:K,style:{height:"100%",width:"100%",overflow:"hidden",...P,display:"flex",flexDirection:"horizontal"===y?"row":"column",flexWrap:"nowrap",touchAction:"horizontal"===y?"pan-y":"pan-x"},children:e})})}function ep(e,t){return`react-resizable-panels:${[e,...t].join(":")}`}function ef(){return function(){}}function eh(){let e=(0,o.useContext)(eu);return c(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function em({children:e,className:t,collapsedSize:n="0%",collapsible:r=!1,defaultSize:l,disabled:i,elementRef:s,groupResizeBehavior:d="preserve-relative-size",id:u,maxSize:c="100%",minSize:p="0%",onResize:f,panelRef:h,style:m,...g}){let b,y=!!u,v=el(u),x=ed({disabled:i}),S=(0,o.useRef)(null),w=es(S,s),{getPanelStyles:z,id:P,orientation:R,registerPanel:M,updatePanelProps:E}=eh(),k=null!==f,N=ei((e,t,n)=>{f?.(e,u,n)});eo(()=>{let e=S.current;if(null!==e)return M({element:e,id:v,idIsStable:y,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:k?N:void 0,panelConstraints:{groupResizeBehavior:d,collapsedSize:n,collapsible:r,defaultSize:l,disabled:x.disabled,maxSize:c,minSize:p}})},[d,n,r,l,k,v,y,c,p,N,M,x]),(0,o.useEffect)(()=>{E(v,{disabled:i})},[i,v,E]),function(e,t){let{id:n}=eh(),a=(0,o.useRef)({collapse:q,expand:q,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:q});(0,o.useImperativeHandle)(t,()=>a.current,[]),eo(()=>{Object.assign(a.current,O({groupId:n,panelId:e}))})}(v,h);let D=()=>{let e=z(P,v);if(e)return JSON.stringify(e)},L=(0,o.useSyncExternalStore)(e=>C(P,e),D,D);return b=L?JSON.parse(L):l?{flexGrow:void 0,flexShrink:void 0,flexBasis:l}:{flexGrow:1},(0,a.jsx)("div",{...g,"data-disabled":i||void 0,"data-panel":!0,"data-testid":v,id:v,ref:w,style:{...eg,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...b},children:(0,a.jsx)("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...m,touchAction:"horizontal"===R?"pan-y":"pan-x"},children:e})})}ec.displayName="Group",em.displayName="Panel";let eg={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function eb({children:e,className:t,disabled:n,disableDoubleClick:r,elementRef:l,id:i,style:s,...d}){let u,c,p=el(i),f=ed({disabled:n,disableDoubleClick:r}),[h,m]=(0,o.useState)({}),[g,b]=(0,o.useState)("inactive"),[y,v]=(0,o.useState)(!1),x=(0,o.useRef)(null),S=es(x,l),{disableCursor:w,id:z,orientation:P,registerSeparator:R,updateSeparatorProps:M}=eh();return eo(()=>{let e=x.current;if(null!==e){var t;let n={disabled:f.disabled,disableDoubleClick:f.disableDoubleClick,element:e,id:p},a=R(n),r=(t=e=>{b("inactive"!==e.next.state&&e.next.hitRegions.some(e=>e.separator===n)?e.next.state:"inactive")},V.addListener("change",t)),l=C(z,e=>{let{derivedPanelConstraints:t,layout:a,separatorToPanels:r}=e.next,l=r.get(n);if(l){let e=l[0],n=l.indexOf(e);m(function({layout:e,panelConstraints:t,panelId:n,panelIndex:a}){let r,l,o=e[n],i=t.find(e=>e.panelId===n);if(i){let s=i.maxSize,d=i.collapsible?i.collapsedSize:i.minSize,u=[a,a+1];l=_({layout:I({delta:d-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[n],r=_({layout:I({delta:s-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:r,valueMin:l,valueNow:o}}({layout:a,panelConstraints:t,panelId:e.id,panelIndex:n}))}});return()=>{r(),l(),a()}}},[z,p,R,f]),(0,o.useEffect)(()=>{M(p,{disabled:n,disableDoubleClick:r})},[n,r,p,M]),n&&!w&&(u="not-allowed"),c=n?"disabled":"active"===g?"active":y?"focus":g,(0,a.jsx)("div",{...d,"aria-controls":h.valueControls,"aria-disabled":n||void 0,"aria-orientation":"horizontal"===P?"vertical":"horizontal","aria-valuemax":h.valueMax,"aria-valuemin":h.valueMin,"aria-valuenow":h.valueNow,children:e,className:t,"data-separator":c,"data-testid":p,id:p,onBlur:()=>v(!1),onFocus:()=>v(!0),ref:S,role:"separator",style:{flexBasis:"auto",cursor:u,...s,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:n?void 0:0})}eb.displayName="Separator";var ey=e.i(770893),ev=e.i(393348);let ex=(0,ev.tv)({defaultVariants:{orientation:"horizontal",type:"line",variant:"primary"},slots:{base:"resizable",handle:"resizable__handle",handleBar:"resizable__handle-bar",handleHitArea:"resizable__handle-hit-area",indicator:"resizable__handle-indicator",panel:"resizable__panel"},variants:{orientation:{horizontal:{base:"resizable--horizontal",handle:"resizable__handle--horizontal",handleBar:"resizable__handle-bar--horizontal",handleHitArea:"resizable__handle-hit-area--horizontal"},vertical:{base:"resizable--vertical",handle:"resizable__handle--vert
1ical",handleBar:"resizable__handle-bar--vertical",handleHitArea:"resizable__handle-hit-area--vertical"}},type:{drag:{handle:"resizable__handle--drag",indicator:"resizable__handle-indicator--drag"},handle:{handle:"resizable__handle--handle",indicator:"resizable__handle-indicator--pill"},line:{handle:"resizable__handle--line"},pill:{handle:"resizable__handle--pill",indicator:"resizable__handle-indicator--pill"}},variant:{primary:{handle:"resizable__handle--primary"},secondary:{handle:"resizable__handle--secondary"},tertiary:{handle:"resizable__handle--tertiary"}}}}),eS={getItem:()=>null,setItem:()=>{}},ew={getItem:e=>{if("u"<typeof window)return null;try{return window.localStorage.getItem(e)}catch{return null}},setItem:(e,t)=>{if("u">typeof window)try{window.localStorage.setItem(e,t)}catch{}}};function eC(e){if(null!=e)return"number"==typeof e?`${e}%`:e}let ez=(0,o.createContext)(null),eP=()=>{let e=(0,o.useContext)(ez);if(!e)throw Error("Resizable subcomponents must be rendered inside <Resizable>.");return e},eR=({autoSaveId:e,children:t,className:n,handleRef:r,id:l,onLayoutChange:i,orientation:s="horizontal",storage:d,style:u,...c})=>{let p=(0,o.useMemo)(()=>ex({orientation:s}),[s]),f=(0,o.useMemo)(()=>({orientation:s??"horizontal",slots:p}),[s,p]),{defaultLayout:h,onLayoutChanged:m}=function({debounceSaveMs:e=100,panelIds:t,storage:n=localStorage,...a}){let r=void 0!==t,l="id"in a?a.id:a.groupId,i=ep(l,t??[]),s=(0,o.useSyncExternalStore)(ef,()=>n.getItem(i),()=>n.getItem(i)),d=(0,o.useMemo)(()=>{if(s){let e=JSON.parse(s);if(Array.from(Object.values(e)).every(e=>"number"==typeof e))return e}},[s]),u=(0,o.useMemo)(()=>{if(!d)return function({id:e,panelIds:t,storage:n}){let a=ep(e,[]),r=n.getItem(a);if(r)try{let e=JSON.parse(r);if(t){let n=e[t.join(",")];if(n&&Array.isArray(n.layout)&&t.length===n.layout.length){let e={};for(let a=0;a<t.length;a++)e[t[a]]=n.layout[a];return e}}else{let t=Object.keys(e);if(1===t.length){let n=e[t[0]];if(n&&Array.isArray(n.layout)){let e=t[0].split(",");if(e.length===n.layout.length){let t={};for(let a=0;a<e.length;a++)t[e[a]]=n.layout[a];return t}}}}}catch{}}({id:l,panelIds:t,storage:n})},[d,l,t,n]),c=d??u,p=(0,o.useRef)(null),f=(0,o.useCallback)(()=>{let e=p.current;e&&(p.current=null,clearTimeout(e))},[]);(0,o.useLayoutEffect)(()=>()=>{f()},[f]);let h=(0,o.useCallback)(e=>{let t;f(),t=r?ep(l,Object.keys(e)):ep(l,[]);try{n.setItem(t,JSON.stringify(e))}catch(e){console.error(e)}},[f,r,l,n]);return{defaultLayout:c,onLayoutChange:(0,o.useCallback)(t=>{f(),0===e?h(t):p.current=setTimeout(()=>{h(t)},e)},[f,e,h]),onLayoutChanged:h}}({id:e||"__no_persist__",storage:e?d??ew:eS});return(0,a.jsx)(ez,{value:f,children:(0,a.jsx)(ec,{className:(0,ey.composeSlotClassName)(p?.base,n),"data-slot":"resizable",defaultLayout:e?h:void 0,groupRef:r,id:l,orientation:"vertical"===s?"vertical":"horizontal",style:u,onLayoutChange:i,onLayoutChanged:e?m:void 0,...c,children:t})})},eM=({children:e,className:t,type:n="pill"})=>{let{orientation:o,slots:i}=eP();return e?(0,a.jsx)("span",{className:(0,ey.composeSlotClassName)(i?.indicator,t),"data-slot":"resizable-handle-indicator",children:e}):"drag"===n?(0,a.jsx)("span",{"aria-hidden":"true",className:(0,ey.composeSlotClassName)(i?.indicator,t,{type:"drag"}),"data-slot":"resizable-handle-indicator",children:(0,a.jsx)("horizontal"===o?r:l,{className:"resizable__handle-indicator-icon","data-slot":"resizable-handle-indicator-icon"})}):(0,a.jsx)("span",{"aria-hidden":"true",className:(0,ey.composeSlotClassName)(i?.indicator,t,{type:"pill"}),"data-slot":"resizable-handle-indicator"})},eE=Object.assign(eR,{Handle:({"aria-label":e,children:t,className:n,disabled:r,id:l,type:i="line",variant:s="primary",withIndicator:d})=>{let{orientation:u}=eP(),c=(0,o.useMemo)(()=>ex({orientation:u,type:i,variant:s}),[u,i,s]),p=null==t&&(d??"line"!==i),f="drag"===i?"drag":"pill";return(0,a.jsxs)(eb,{"aria-label":e??"Resize handle",className:(0,ey.composeSlotClassName)(c?.handle,n),"data-slot":"resizable-handle","data-type":i,"data-variant":s,disabled:r,id:l,children:[t,p?(0,a.jsx)(eM,{type:f}):null]})},Indicator:eM,Panel:({children:e,className:t,collapsedSize:n,collapsible:r,defaultSize:l,handleRef:i,id:s,maxSize:d,minSize:u,onCollapse:c,onExpand:p,onResize:f,style:h})=>{let{slots:m}=eP(),g=(0,o.useRef)(null),b=(0,o.useRef)(void 0),y=(0,o.useCallback)(e=>{g.current=e,"function"==typeof i?i(e):i&&(i.current=e)},[i]),v=r&&(c||p),x=(0,o.useCallback)((e,t,n)=>{if(v&&g.current){let e=g.current.isCollapsed();void 0!==b.current&&(e&&!b.current?c?.():!e&&b.current&&p?.()),b.current=e}f?.(e,t,n)},[v,c,p,f]);return(0,a.jsx)(em,{className:(0,ey.composeSlotClassName)(m?.panel,t),collapsedSize:eC(n),collapsible:r,"data-slot":"resizable-panel",defaultSize:eC(l),id:s,maxSize:eC(d),minSize:eC(u),panelRef:v?y:i,style:h,onResize:v?x:f,children:e})},Root:eR});e.s(["Resizable",0,eE],772203);var ek=e.i(586109),eN=e.i(171291),eD=e.i(758282),eL=e.i(207487),eT=e.i(828522);function eI(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function ej(){return e_(/^iPhone/)||e_(/^iPad/)||e_(/^Mac/)&&navigator.maxTouchPoints>1}function e_(e){return"u">typeof window&&null!=window.navigator?e.test(window.navigator.platform):void 0}
1let eO=[.32,.72,0,1],eA="sheet-dragging",eB=o.default.createContext({onDrag:()=>{},isDismissable:!1,onNestedDrag:()=>{},isDragging:!1,onNestedOpenChange:()=>{},isOpen:!1,onPress:()=>{},keyboardIsOpen:{current:!1},overlayRef:{current:null},isHandleOnly:!1,sheetRef:{current:null},activeSnapPoint:null,isModal:!1,onRelease:()=>{},closeSheet:()=>{},onNestedRelease:()=>{},onOpenChange:()=>{},openProp:void 0,container:null,placement:"bottom",isDetached:!1,snapPoints:null,noBodyStyles:!1,snapPointsOffset:null,setActiveSnapPoint:()=>{},setBackgroundColorOnScale:!0,setIsOpen:()=>{},shouldFade:!1,shouldAnimate:{current:!0},shouldAutoFocus:!1,shouldScaleBackground:!1}),eF=()=>{let e=o.default.useContext(eB);if(!e)throw Error("useSheetContext must be used within a Sheet.Root");return e},eK=new WeakMap;function eH(e,t,n=!1){if(!(e&&e instanceof HTMLElement))return;let a={};Object.entries(t).forEach(([t,n])=>{t.startsWith("--")?e.style.setProperty(t,n):(a[t]=e.style[t],e.style[t]=n)}),n||eK.set(e,a)}let e$=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function eV(e,t){if(!e)return null;let n=window.getComputedStyle(e),a=n.transform||n.webkitTransform||n.mozTransform,r=a.match(/^matrix3d\((.+)\)$/);return r?parseFloat(r[1].split(", ")[e$(t)?13:12]):(r=a.match(/^matrix\((.+)\)$/))?parseFloat(r[1].split(", ")[e$(t)?5:4]):null}function eW(e,t){if(!e)return()=>{};let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}let eG=(0,ev.tv)({defaultVariants:{backdrop:"opaque",placement:"bottom"},slots:{backdrop:"sheet__backdrop",body:"sheet__body",closeTrigger:"sheet__close-trigger",content:"sheet__content",dialog:"sheet__dialog",footer:"sheet__footer",handle:"sheet__handle",handleBar:"sheet__handle-bar",header:"sheet__header",heading:"sheet__heading"},variants:{backdrop:{blur:{backdrop:"sheet__backdrop--blur"},opaque:{backdrop:"sheet__backdrop--opaque"},transparent:{backdrop:"sheet__backdrop--transparent"}},placement:{bottom:{content:"sheet__content--bottom",dialog:"sheet__dialog--bottom"},left:{content:"sheet__content--left",dialog:"sheet__dialog--left"},right:{content:"sheet__content--right",dialog:"sheet__dialog--right"},top:{content:"sheet__content--top",dialog:"sheet__dialog--top"}}}});function eU({controlled:e,default:t,onChange:n}){let{current:a}=o.useRef(void 0!==e),[r,l]=o.useState(t),i=o.useRef(n);return i.current=n,[a?e:r,o.useCallback(e=>{a||l(e),i.current?.(e)},[])]}let eq=null,eY="u">typeof window?o.useLayoutEffect:o.useEffect;function eX(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}let eJ="u">typeof document&&window.visualViewport;function eZ(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function eQ(e){for(eZ(e)&&(e=e.parentElement);e&&!eZ(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}let e0=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),e1,e5=0;function e3(e,t,n){let a=e.style[t];return e.style[t]=n,()=>{e.style[t]=a}}function e2(e,t,n,a){return e.addEventListener(t,n,a),()=>{e.removeEventListener(t,n,a)}}function e6(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=eQ(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,a=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=a-n)}e=t.parentElement}}function e4(e){return e instanceof HTMLInputElement&&!e0.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let e7=()=>()=>{},e8="u">typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):void 0;function e9({isOpen:e,onOpenChange:t,children:n,onDrag:r,onRelease:l,snapPoints:i,shouldScaleBackground:s=!1,setBackgroundColorOnScale:d=!0,closeThreshold:u=.25,scrollLockTimeout:c=100,isDismissable:p=!0,isHandleOnly:f=!1,fadeFromIndex:h=i&&i.length-1,activeSnapPoint:m,onActiveSnapPointChange:g,isFixed:b,isModal:y=!0,onClose:v,isNested:x,noBodyStyles:S=!1,placement:w="bottom",defaultOpen:C=!1,disablePreventScroll:z=!1,snapToSequentialPoint:P=!1,preventScrollRestoration:R=!1,repositionInputs:M=!0,onAnimationEnd:E,container:k,shouldAutoFocus:N=!1,isDetached:D=!1}){let[L=!1,T]=eU({controlled:e,default:C,onChange:e=>{t?.(e),e||x||ec(),setTimeout(()=>{E?.(e)},500),e&&!y&&"u">typeof window&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),e||(document.body.style.pointerEvents="auto")}}),[I,j]=(0,o.useState)(C),[_,O]=(0,o.useState)(!1),[A,B]=(0,o.useState)(!1),F=(0,o.useRef)(null),K=(0,o.useRef)(null),H=(0,o.useRef)(null),$=(0,o.useRef)(null),V=(0,o.useRef)(null),W=(0,o.useRef)(!1),G=(0,o.useRef)(null),U=(0,o.useRef)(0),q=(0,o.useRef)(!1),Y=(0,o.useRef)(!C),X=(0,o.useRef)(0),J=(0,o.useRef)(null),Z=(0,o.useRef)(J.current?.getBoundingClientRect().height||0),Q=(0,o.useRef)(J.current?.getBoundingClientRect().width||0),ee=(0,o.useRef)(0),et=(0,o.useRef)(null),en=(0,o.useRef)(i?.length??0);en.current=i?.length??0;let{activeSnapPoint:ea,activeSnapPointIndex:er,getPercentageDragged:el,onDrag:eo,onRelease:ei,setActiveSnapPoint:es,shouldFade:ed,snapPointsOffset:eu}=function({activeSnapPointProp:e,container:t,direction:n="bottom",fadeFromIndex:a,isOpen:r,onSnapPointChange:l,overlayRef:i,setActiveSnapPointProp:s,sheetRef:d,snapPoints:u,snapToSequentialPoint:c}){let[p,f]=eU({controlled:e,default:u?.[0],onChange:s}),[h,m]=o.default.useState("u">typeof window?{innerHeight:window.innerHeight,innerWidth:window.innerWidth}:void 0),g=o.default.useRef(!1);o.default.useEffect(()=>{let e;function t(){clearTimeout(e),e=setTimeout(()=>
1{m({innerHeight:window.innerHeight,innerWidth:window.innerWidth})},100)}return window.addEventListener("resize",t),()=>{clearTimeout(e),window.removeEventListener("resize",t)}},[]);let b=o.default.useMemo(()=>p===u?.[u.length-1]||null,[u,p]),y=o.default.useMemo(()=>u?.findIndex(e=>e===p)??null,[u,p]),v=o.default.useMemo(()=>u&&u.length>0&&(a||0===a)&&!Number.isNaN(a)&&u[a]===p||!u,[u,a,p]),x=o.default.useMemo(()=>{let e=t?t.getBoundingClientRect():null,a=e?{height:e.height,width:e.width}:"u">typeof window?{height:window.innerHeight,width:window.innerWidth}:{height:0,width:0};return u?.map(e=>{let t="string"==typeof e,r=0;if(t&&(r=parseInt(e,10)),e$(n)){let l=t?r:h?e*a.height:0;return h?"bottom"===n?a.height-l:-a.height+l:l}let l=t?r:h?e*a.width:0;return h?"right"===n?a.width-l:-a.width+l:l})??[]},[u,h,t,n]),S=o.default.useMemo(()=>null!==y?x?.[y]??null:null,[x,y]),w=o.default.useRef(x);o.default.useEffect(()=>{w.current=x},[x]);let C=o.default.useRef(u);o.default.useEffect(()=>{C.current=u},[u]);let z=o.default.useCallback(e=>{let t=w.current,r=C.current,o=t?.findIndex(t=>t===e)??null;l(o),eH(d.current,{transform:e$(n)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`,transition:`transform 0.5s cubic-bezier(${eO.join(",")})`}),eH(i.current,t&&o!==t.length-1&&void 0!==a&&o!==a&&null!==o&&o<a?{"--sheet-backdrop-opacity":"0"}:{"--sheet-backdrop-opacity":"1"}),f(r?.[Math.max(o??0,0)]??null)},[d,a,i,f,n,l]);return o.default.useEffect(()=>{if(r){if(!g.current)return g.current=!0,void(void 0!==a&&(y??0)<a&&eH(i.current,{"--sheet-backdrop-opacity":"0"}));if(p||e){let t=u?.findIndex(t=>t===e||t===p)??-1;x&&-1!==t&&"number"==typeof x[t]&&z(x[t])}}else g.current=!1},[p,e,y,u,x,z,r,a,i]),{activeSnapPoint:p,activeSnapPointIndex:y,getPercentageDragged:function(e,t){if(!u||"number"!=typeof y||!x||void 0===a)return null;let n=y===a-1;if(y>=a&&t)return 0;if(n&&!t)return 1;if(!v&&!n)return null;let r=n?y+1:y-1,l=e/Math.abs(n?x[r]-x[r-1]:x[r+1]-x[r]);return n?1-l:l},isLastSnapPoint:b,onDrag:function({draggedDistance:e}){if(null===S)return;let t="bottom"===n||"right"===n?S-e:S+e;("bottom"===n||"right"===n)&&t<x[x.length-1]||("top"===n||"left"===n)&&t>x[x.length-1]||eH(d.current,{transform:e$(n)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},onRelease:function({closeDrawer:e,dismissible:t,draggedDistance:r,velocity:l}){if(void 0===a)return;let o="bottom"===n||"right"===n?(S??0)-r:(S??0)+r,s=0===y,d=r>0;
1if(y===a-1&&eH(i.current,{transition:`opacity 0.5s cubic-bezier(${eO.join(",")})`}),!c&&l>2&&!d)return void(t?e():z(x[0]));if(!c&&l>2&&d&&x&&u)return void z(x[u.length-1]);let p=x?.reduce((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-o)<Math.abs(e-o)?t:e),f=e$(n)?window.innerHeight:window.innerWidth;if(l>.4&&Math.abs(r)<.4*f){let n=d?1:-1;if(n>0&&b&&u)return void z(x[u.length-1]);if(s&&n<0&&t&&e(),null===y)return;return void z(x[y+n])}z(p)},setActiveSnapPoint:f,shouldFade:v,snapPointsOffset:x}}({activeSnapPointProp:m,container:k,direction:w,fadeFromIndex:h,isOpen:L,onSnapPointChange:o.default.useCallback(e=>{en.current>0&&e===en.current-1&&(K.current=new Date)},[]),overlayRef:F,setActiveSnapPointProp:g,sheetRef:J,snapPoints:i,snapToSequentialPoint:P});!function(e={}){let{isDisabled:t}=e;eY(()=>{if(!t){let e,t,n,a,r,l;return 1==++e5&&ej()&&(t=0,n=window.pageXOffset,a=window.pageYOffset,r=eX(e3(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),e3(document.documentElement,"overflow","hidden")),window.scrollTo(0,0),l=eX(e2(document,"touchstart",n=>{(e=eQ(n.target))===document.documentElement&&e===document.body||(t=n.changedTouches[0].pageY)},{capture:!0,passive:!1}),e2(document,"touchmove",n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let a=n.changedTouches[0].pageY,r=e.scrollTop,l=e.scrollHeight-e.clientHeight;0!==l&&((r<=0&&a>t||r>=l&&a<t)&&n.preventDefault(),t=a)},{capture:!0,passive:!1}),e2(document,"touchend",e=>{let t=e.target;e4(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame(()=>{t.style.transform=""}))},{capture:!0,passive:!1}),e2(document,"focus",e=>{let t=e.target;e4(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",eJ&&(eJ.height<window.innerHeight?requestAnimationFrame(()=>{e6(t)}):eJ.addEventListener("resize",()=>e6(t),{once:!0}))}))},!0),e2(window,"scroll",()=>{window.scrollTo(0,0)})),e1=()=>{r(),l(),window.scrollTo(n,a)}),()=>{0==--e5&&e1?.()}}},[t])}({isDisabled:!L||_||!y||A||!I||!M||!z});let{restorePositionSetting:ec}=function({hasBeenOpened:e,isOpen:t,modal:n,nested:a,noBodyStyles:r,preventScrollRestoration:l}){let[i,s]=o.default.useState(()=>"u">typeof window?window.location.href:""),d=o.default.useRef(0),u=o.default.useCallback(()=>{if(eI()&&null===eq&&t&&!r){eq={height:document.body.style.height,left:document.body.style.left,position:document.body.style.position,right:"unset",top:document.body.style.top};let{innerHeight:e,scrollX:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{height:"auto",left:-t+"px",right:"0px",top:-d.current+"px"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let t=e-window.innerHeight;t&&d.current>=e&&(document.body.style.top=-(d.current+t)+"px")}),300)}},[t,r]),c=o.default.useCallback(()=>{if(eI()&&null!==eq&&!r){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,eq),window.requestAnimationFrame(()=>{l&&i!==window.location.href?s(window.location.href):window.scrollTo(t,e)}),eq=null}},[i,l,r]);return o.default.useEffect(()=>{function e(){d.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),o.default.useEffect(()=>{if(n)return()=>{"u">typeof document&&(document.querySelector("[data-sheet-drawer]")||c())}},[n,c]),o.default.useEffect(()=>{!a&&e&&(t?(window.matchMedia("(display-mode: standalone)").matches||u(),n||window.setTimeout(()=>{c()},500)):c())},[t,e,i,n,a,u,c]),{restorePositionSetting:c}}({hasBeenOpened:I,isOpen:L,modal:y,nested:x??!1,noBodyStyles:S,preventScrollRestoration:R});function ep(){return(window.innerWidth-26)/window.innerWidth}function ef(e){(p||i)&&(J.current&&!J.current.contains(e.target)||(Z.current=J.current?.getBoundingClientRect().height||0,Q.current=J.current?.getBoundingClientRect().width||0,O(!0),H.current=new Date,ej()&&window.addEventListener("touchend",()=>W.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),U.current=e$(w)?e.pageY:e.pageX))}function eh(e,t){let n=e,a=window.getSelection()?.toString(),r=J.current?eV(J.current,w):null,l=new Date;if("SELECT"===n.tagName||n.hasAttribute("data-sheet-no-drag")||n.closest("[data-sheet-no-drag]"))return!1;
1if("right"===w||"left"===w)return!0;if(K.current&&l.getTime()-K.current.getTime()<500)return!1;if(null!==r&&("bottom"===w?r>0:r<0))return!0;if(a&&a.length>0)return!1;if(V.current&&l.getTime()-V.current.getTime()<c&&0===r||t)return V.current=l,!1;for(;n;){if(n.scrollHeight>n.clientHeight){if(0!==n.scrollTop)return V.current=new Date,!1;if("dialog"===n.getAttribute("role"))break}n=n.parentNode}return!0}function em(e){if(J.current&&_){let t="bottom"===w||"right"===w?1:-1,n=(U.current-(e$(w)?e.pageY:e.pageX))*t,a=n>0,l=i&&!p&&!a;if(l&&0===er)return;let o=Math.abs(n),d=et.current,u=o/("bottom"===w||"top"===w?Z.current:Q.current),c=el(o,a);if(null!==c&&(u=c),l&&u>=1)return;if(!W.current){if(!eh(e.target,a))return;J.current.classList.add(eA),W.current=!0,eH(J.current,{transition:"none"}),eH(F.current,{transition:"none"}),F.current?.setAttribute("data-sheet-dragging","")}if(i&&eo({draggedDistance:n}),a&&!i){let e=Math.min(-(8*(Math.log(n+1)-2)*1),0)*t;return void eH(J.current,{transform:e$(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}let f=1-u;if((ed||h&&er===h-1)&&(r?.(e,u),eH(F.current,i?{"--sheet-backdrop-opacity":`${f}`}:{opacity:"1",transition:"none"},!0)),d&&F.current&&s){let e=Math.min(ep()+u*(1-ep()),1),t=8-8*u,n=Math.max(0,14-14*u);eH(d,{borderRadius:`${t}px`,transform:e$(w)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:"none"},!0)}if(!i){let e=o*t;eH(J.current,{transform:e$(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}}function eg(e){_&&J.current&&(J.current.classList.remove(eA),F.current?.removeAttribute("data-sheet-dragging"),W.current=!1,O(!1),$.current=new Date),v?.(),i&&eH(F.current,{"--sheet-backdrop-opacity":"0"}),e||T(!1),setTimeout(()=>{i&&es(i[0]??null)},500)}function eb(){if(!J.current)return;let e=et.current,t=eV(J.current,w);eH(J.current,{transform:"translate3d(0, 0, 0)",transition:`transform 0.5s cubic-bezier(${eO.join(",")})`}),eH(F.current,{opacity:"1",transition:`opacity 0.5s cubic-bezier(${eO.join(",")})`}),s&&t&&t>0&&L&&eH(e,{borderRadius:"8px",overflow:"hidden",...e$(w)?{transform:`scale(${ep()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${ep()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionDuration:"0.5s",transitionProperty:"transform, border-radius",transitionTimingFunction:`cubic-bezier(${eO.join(",")})`},!0)}function ey(e){if(!_||!J.current)return;J.current.classList.remove(eA),F.current?.removeAttribute("data-sheet-dragging"),W.current=!1,O(!1),$.current=new Date;let t=eV(J.current,w);
1if(!e||!eh(e.target,!1)||!t||Number.isNaN(t)||null===H.current)return;let n=$.current.getTime()-H.current.getTime(),a=U.current-(e$(w)?e.pageY:e.pageX),r=Math.abs(a)/n;if(r>.05&&(B(!0),setTimeout(()=>{B(!1)},200)),i)return ei({closeDrawer:eg,dismissible:p,draggedDistance:a*("bottom"===w||"right"===w?1:-1),velocity:r}),void l?.(e,!0);if("bottom"===w||"right"===w?a>0:a<0)return eb(),void l?.(e,!0);if(r>.4)return eg(),void l?.(e,!1);let o=J.current.getBoundingClientRect(),s=Math.min(o.height??0,window.innerHeight),d=Math.min(o.width??0,window.innerWidth);Math.abs(t)>=("left"===w||"right"===w?d:s)*u?(eg(),l?.(e,!1)):(l?.(e,!0),eb())}function ev(e){let t=e?(window.innerWidth-16)/window.innerWidth:1,n=e?-16:0;G.current&&window.clearTimeout(G.current),eH(J.current,{borderRadius:e?"8px":"",overflow:e?"hidden":"",transform:e$(w)?`scale(${t}) translate3d(0, ${n}px, 0)`:`scale(${t}) translate3d(${n}px, 0, 0)`,transition:`transform 0.5s cubic-bezier(${eO.join(",")})`}),!e&&J.current&&(G.current=setTimeout(()=>{let e=eV(J.current,w);eH(J.current,{borderRadius:"",overflow:"",transform:e$(w)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`,transition:"none"})},500))}function ex(e,t){if(t<0)return;let n=(window.innerWidth-16)/window.innerWidth,a=n+t*(1-n),r=16*t-16;eH(J.current,{transform:e$(w)?`scale(${a}) translate3d(0, ${r}px, 0)`:`scale(${a}) translate3d(${r}px, 0, 0)`,transition:"none"})}function eS(e,t){let n=e$(w)?window.innerHeight:window.innerWidth,a=t?(n-16)/n:1,r=t?-16:0;t&&eH(J.current,{transform:e$(w)?`scale(${a}) translate3d(0, ${r}px, 0)`:`scale(${a}) translate3d(${r}px, 0, 0)`,transition:`transform 0.5s cubic-bezier(${eO.join(",")})`})}o.default.useEffect(()=>{window.requestAnimationFrame(()=>{Y.current=!0})},[]),o.default.useEffect(()=>{L?(j(!0),et.current=document.querySelector("[data-sheet-wrapper]")):et.current=null},[L]),o.default.useEffect(()=>{function e(){if(J.current&&M&&(e4(document.activeElement)||q.current)){let e=window.visualViewport?.height||0,t=window.innerHeight,n=t-e,a=J.current.getBoundingClientRect(),r=a.height||0,l=a.top;if(ee.current||(ee.current=r),Math.abs(X.current-n)>60&&(q.current=!q.current),i&&i.length>0&&eu&&null!=er&&(n+=eu[er]||0),X.current=n,r>e||q.current){let a=r;r>e&&(a=e-(r>.8*t?l:26)),J.current.style.height=b?r-Math.max(n,0)+"px":`${Math.max(a,e-l)}px`}else{let e;e=navigator.userAgent,"u">typeof window&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))||(J.current.style.height=`${ee.current}px`)}J.current.style.bottom=i&&i.length>0&&!q.current?"0px":`${Math.max(n,0)}px`}}return window.visualViewport?.addEventListener("resize",e),()=>window.visualViewport?.removeEventListener("resize",e)},[er,i,eu,M,b]),o.default.useEffect(()=>(L&&(eH(document.documentElement,{scrollBehavior:"auto"}),K.current=new Date),()=>{!function(e,t){if(!(e&&e instanceof HTMLElement))return;let n=eK.get(e);n&&(e.style[t]=n[t])}(document.documentElement,"scrollBehavior")}),[L]),o.default.useEffect(()=>{y||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[y]);let ew=(0,o.useRef)({closeSheet:eg,onDrag:em,onNestedDrag:ex,onNestedOpenChange:ev,onNestedRelease:eS,onPress:ef,onRelease:ey});ew.current={closeSheet:eg,onDrag:em,onNestedDrag:ex,onNestedOpenChange:ev,onNestedRelease:eS,onPress:ef,onRelease:ey};let eC=(0,o.useMemo)(()=>({closeSheet:(...e)=>ew.current.closeSheet(...e),onDrag:(...e)=>ew.current.onDrag(...e),onNestedDrag:(...e)=>ew.current.onNestedDrag(...e),onNestedOpenChange:(...e)=>ew.current.onNestedOpenChange(...e),onNestedRelease:(...e)=>ew.current.onNestedRelease(...e),onPress:(...e)=>ew.current.onPress(...e),onRelease:(...e)=>ew.current.onRelease(...e)}),[]),ez=(0,o.useMemo)(()=>({activeSnapPoint:ea,activeSnapPointIndex:er,closeSheet:eC.closeSheet,container:k,isDetached:D,isDismissable:p,isDragging:_,isHandleOnly:f,isModal:y,isOpen:L,keyboardIsOpen:q,noBodyStyles:S,onDrag:eC.onDrag,onNestedDrag:eC.onNestedDrag,onNestedOpenChange:eC.onNestedOpenChange,onNestedRelease:eC.onNestedRelease,onOpenChange:t,onPress:eC.onPress,onRelease:eC.onRelease,overlayRef:F,placement:w,setActiveSnapPoint:es,setBackgroun
1dColorOnScale:d,setIsOpen:T,sheetRef:J,shouldAnimate:Y,shouldAutoFocus:N,shouldFade:ed,shouldScaleBackground:s,snapPoints:i,snapPointsOffset:eu}),[ea,er,eC,k,D,p,_,f,y,L,S,t,w,es,d,T,N,ed,s,i,eu]);return(0,a.jsx)(eB.Provider,{value:ez,children:n})}let te=Object.assign(e9,{Backdrop:({children:e,className:t,ref:n,variant:r,...l})=>{let{closeSheet:i,isDismissable:s,isModal:d,isOpen:u,onRelease:c,overlayRef:p,shouldAnimate:f,shouldFade:h,snapPoints:m}=eF(),g=(0,o.useMemo)(()=>(0,eN.mergeRefs)(n??null,p),[n,p]),b=m&&m.length>0,y=(0,o.useMemo)(()=>eG({backdrop:r}),[r]);return(0,a.jsx)(eT.ModalOverlay,{ref:g,className:(0,ey.composeTwRenderProps)(t,d?y?.backdrop():""),"data-sheet-animate":f?.current?"true":"false","data-sheet-overlay":"","data-sheet-snap-points":b?"true":"false","data-sheet-snap-points-overlay":u&&h?"true":"false","data-slot":"sheet-backdrop",isDismissable:s,isOpen:u,onOpenChange:e=>{(s||e)&&(e||i())},onMouseUp:e=>c(e),...l,children:t=>"function"==typeof e?e(t):e})},Body:({children:e,className:t,...n})=>{let{placement:r}=eF(),l=(0,o.useMemo)(()=>eG({placement:r}),[r]);return(0,a.jsx)("div",{className:(0,ey.composeSlotClassName)(l?.body,t),"data-slot":"sheet-body",...n,children:e})},Close:({children:e})=>{let{closeSheet:t}=eF();return o.default.cloneElement(e,{onPress:()=>t()})},CloseTrigger:({children:e,className:t,...n})=>{let{closeSheet:r,placement:l}=eF(),i=(0,o.useMemo)(()=>eG({placement:l}),[l]);return(0,a.jsx)(ek.CloseButton,{className:(0,ey.composeTwRenderProps)(t,i?.closeTrigger()),"data-slot":"sheet-close-trigger",onPress:()=>r(),...n,children:e})},Content:({children:e,className:t,ref:n,style:r,...l})=>{let{activeSnapPointIndex:i,container:s,isDetached:d,isHandleOnly:u,isOpen:c,onDrag:p,onPress:f,onRelease:h,placement:m,sheetRef:g,shouldAnimate:b,snapPoints:y,snapPointsOffset:v}=eF(),x=(0,o.useMemo)(()=>eG({placement:m}),[m]),[S,w]=(0,o.useState)(!1),C=(0,o.useMemo)(()=>(0,eN.mergeRefs)(n??null,g),[n,g]),z=(0,o.useRef)(null),P=(0,o.useRef)(null),R=(0,o.useRef)(!1),M=y&&y.length>0;function E(e){z.current=null,R.current=!1,h(e)}return function(){let{isOpen:e,noBodyStyles:t,placement:n,setBackgroundColorOnScale:a,shouldScaleBackground:r}=eF(),l=o.default.useRef(null),i=(0,o.useMemo)(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-26)/window.innerWidth}o.default.useEffect(()=>{if(e&&r){l.current&&clearTimeout(l.current);let e=document.querySelector("[data-sheet-wrapper]")||document.querySelector("[sheet-wrapper]");if(!e)return;let r=e8?.matches?"0.01ms":"0.5s";!function(...e){}(a&&!t?eW(document.body,{background:"black"}):e7,eW(e,{transformOrigin:e$(n)?"top":"left",transitionDuration:r,transitionProperty:"transform, border-radius",transitionTimingFunction:`cubic-bezier(${eO.join(",")})`}));let o=eW(e,{borderRadius:"8px",overflow:"hidden",...e$(n)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{o(),l.current=window.setTimeout(()=>{i?document.body.style.background=i:document.body.style.removeProperty("background")},500)}}},[e,r,i,a,t,n])}(),o.default.useEffect(()=>{M&&window.requestAnimationFrame(()=>{w(!0)})},[]),(0,a.jsx)(eT.Modal,{ref:C,className:(0,ey.composeTwRenderProps)(t,x?.content()),"data-sheet-animate":b?.current?"true":"false","data-sheet-custom-container":s?"true":"false","data-sheet-delayed-snap-points":S?"true":"false","data-sheet-detached":d?"true":void 0,"data-sheet-drawer":"","data-sheet-drawer-direction":m,"data-sheet-snap-points":c&&M?"true":"false","data-slot":"sheet-content",...l,style:{...v&&v.length>0?{"--snap-point-height":`${v[i??0]}px`}:{},...d?{"--initial-transform":"calc(100% + 8px)"}:{},...r},onContextMenu:e=>{l.onContextMenu?.(e),P.current&&E(P.current)},onPointerDown:e=>{u||(l.onPointerDown?.(e),z.current={x:e.pageX,y:e.pageY},f(e))},onPointerMove:e=>{if(P.current=e,u||(l.onPointerMove?.(e),!z.current))return;let t=e.pageY-z.current.y,n=e.pageX-z.current.x,a="touch"===e.pointerType?10:2;((e,t,n=0)=>
1{if(R.current)return!0;let a=Math.abs(e.y),r=Math.abs(e.x),l=r>a,o=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*o<0)&&r>=0&&r<=n)return l}else if(!(e.y*o<0)&&a>=0&&a<=n)return!l;return R.current=!0,!0})({x:n,y:t},m,a)?p(e):(Math.abs(n)>a||Math.abs(t)>a)&&(z.current=null)},onPointerOut:e=>{l.onPointerOut?.(e),E(P.current)},onPointerUp:e=>{l.onPointerUp?.(e),z.current=null,R.current=!1,h(e)},children:t=>"function"==typeof e?e(t):e})},Dialog:({children:e,className:t,...n})=>{let{placement:r}=eF(),l=(0,o.useMemo)(()=>eG({placement:r}),[r]);return(0,a.jsx)(eL.Dialog,{className:(0,ey.composeSlotClassName)(l?.dialog,t),"data-placement":r,"data-slot":"sheet-dialog",...n,children:e})},Footer:({children:e,className:t,...n})=>{let{placement:r}=eF(),l=(0,o.useMemo)(()=>eG({placement:r}),[r]);return(0,a.jsx)("div",{className:(0,ey.composeSlotClassName)(l?.footer,t),"data-slot":"sheet-footer",...n,children:e})},Handle:({children:e,className:t,preventCycle:n=!1,...r})=>{let{activeSnapPoint:l,closeSheet:i,isDismissable:s,isDragging:d,isHandleOnly:u,isOpen:c,onDrag:p,onPress:f,placement:h,setActiveSnapPoint:m,snapPoints:g}=eF(),b=(0,o.useMemo)(()=>eG({placement:h}),[h]),y=(0,o.useRef)(null),v=(0,o.useRef)(!1);function x(){y.current&&window.clearTimeout(y.current),v.current=!1}return(0,a.jsx)("div",{"aria-hidden":"true",className:(0,ey.composeSlotClassName)(b?.handle,t),"data-sheet-drawer-visible":c?"true":"false","data-sheet-handle":"","data-slot":"sheet-handle",onClick:function(){v.current?x():window.setTimeout(()=>(function(){if(d||n||v.current)return void x();if(x(),!g||0===g.length)return void(s&&i());if(l===g[g.length-1]&&s)return void i();let e=g.findIndex(e=>e===l);-1!==e&&m(g[e+1]??null)})(),120)},onPointerCancel:x,onPointerDown:e=>{u&&f(e),y.current=window.setTimeout(()=>{v.current=!0},250)},onPointerMove:e=>{u&&p(e)},...r,children:(0,a.jsx)("span",{"aria-hidden":"true","data-slot":"sheet-handle-hitarea",children:e??(0,a.jsx)("span",{className:(0,ey.composeSlotClassName)(b?.handleBar,void 0),"data-slot":"sheet-handle-bar"})})})},NestedRoot:function({isOpen:e,onDrag:t,onOpenChange:n,...r}){let{onNestedDrag:l,onNestedOpenChange:o,onNestedRelease:i}=eF();if(!l)throw Error("Sheet.NestedRoot must be placed in another Sheet");return(0,a.jsx)(e9,{isNested:!0,isOpen:e,onRelease:i,onClose:()=>{o(!1)},onDrag:(e,n)=>{l(e,n),t?.(e,n)},onOpenChange:e=>{e&&o(e),n?.(e)},...r})},Header:({children:e,className:t,...n})=>{let{placement:r}=eF(),l=(0,o.useMemo)(()=>eG({placement:r}),[r]);return(0,a.jsx)("div",{className:(0,ey.composeSlotClassName)(l?.header,t),"data-slot":"sheet-header",...n,children:e})},Root:e9,Heading:({children:e,className:t,...n})=>{let{placement:r}=eF(),l=(0,o.useMemo)(()=>eG({placement:r}),[r]);return(0,a.jsx)(eD.Heading,{className:(0,ey.composeSlotClassName)(l?.heading,t),"data-slot":"sheet-heading",slot:"title",...n,children:e})},Trigger:({children:e})=>{let{setIsOpen:t}=eF();return o.default.cloneElement(e,{onPress:()=>t(!0)})}});e.s(["Sheet",0,te],503939);let tt=(0,ev.tv)({slots:{aside:"app-layout__aside",asideTrigger:"app-layout__aside-trigger",body:"app-layout__body",footer:"app-layout__footer",header:"app-layout__header",main:"app-layout__main",menuToggle:"app-layout__menu-toggle",toolbar:"app-layout__toolbar"}});e.s(["appLayoutVariants",0,tt],928091)},251264,444113,962607,88653,806928,642623,313416,e=>{"use strict";var t=e.i(247167),n=e.i(157537),a=e.i(259258),r=e.i(271645),l=e.i(770893),o=e.i(94539),i=e.i(867798),s=e.i(944834),d=e.i(772203),u=e.i(503939),c=e.i(928091),p=e.i(843476),f=e.i(599122);let h=(0,e.i(988410).tv)({defaultVariants:{hideScrollBar:!1,orientation:"vertical",variant:"fade"},slots:{base:"scroll-shadow"},variants:{hideScrollBar:{false:{},true:{base:"scroll-shadow--hide-scrollbar"}},orientation:{horizontal:{base:"scroll-shadow--horizontal"},vertical:{base:"scroll-shadow--vertical"}},variant:{fade:{base:"scroll-shadow--fade"}}}});var m=e.i(171291);let g=globalThis?.document?r.useLayoutEffect:r.useEffect,b=({children:e,className:t,hideScrollBar:n=!1,isEnabled:a=!0,offset:l=0,onVisibilityChange:o,orientation:i="vertical",ref:s,size:d=40,variant:u="fade",visibility:c="auto",...f})=>{let b=(0,r.useRef)(null);(e=>{let{containerRef:t,isEnabled:n,offset:a,onVisibilityChange:l,orientation:o,visibility:i}=e,s=(0,r.useRef)(null),d=(0,r.useRef)(null),u=(0,r.useCallback)(()=>{let e=t.current;if(!e)return;let n="vertical"===o,r=n?e.scrollTop:e.scrollLeft,i=n?e.scrollHeight:e.scrollWidth,u=n?e.clientHeight:e.clientWidth,c=r>a,p=r+u+a<i,f=s.current;f&&f.hasScrollBefore===c&&f.hasScrollAfter===p||(s.current={hasScrollBefore:c,hasScrollAfter:p},null!==d.current&&cancelAnimationFrame(d.current),d.current=requestAnimationFrame(()=>{d.current=null,n?c&&p?(e.dataset.topBottomScroll="true",delete e.dataset.topScroll,delete e.dataset.bottomScroll,l?.("both")):(e.dataset.topScroll=String(c),e.dataset.bottomScroll=String(p),delete e.dataset.topBottomScroll,l&&(c?l("top"):p?l("bottom"):l("none"))):c&&p?(e.dataset.leftRightScroll="true",delete e.dataset.leftScroll,delete e.dataset.rightScroll,l?.("both")):(e.dataset.leftScroll=String(c),e.dataset.rightScroll=String(p),delete e.dataset.leftRightScroll,l&&(c?l("left"):p?l("right"):l("none")))}))},[t,o,a,l]);(0,r.useEffect)(()=>{let e=t.current;if(!e||!n||"auto"!==i)return;u(),e.addEventListener("scroll",u,{passive:!0});let a=new ResizeObserver(u);return a.observe(e),()=>{e.removeEventListener("scroll",u),a.disconnect(),null!==d.current&&(cancelAnimationFrame(d.current),d.current=null),s.current=null}},[t,i,n,u])}
1)({containerRef:b,isEnabled:a,offset:l,onVisibilityChange:o,orientation:i,visibility:c}),g(()=>{let e=b.current;e&&"auto"!==c&&(delete e.dataset.topScroll,delete e.dataset.bottomScroll,delete e.dataset.topBottomScroll,delete e.dataset.leftScroll,delete e.dataset.rightScroll,delete e.dataset.leftRightScroll,"both"===c?e.dataset["vertical"===i?"topBottomScroll":"leftRightScroll"]="true":"none"!==c&&(e.dataset[`${c}Scroll`]="true"))},[c,i]);let y=(0,r.useMemo)(()=>h({hideScrollBar:n,orientation:i,variant:u}),[i,n,u]);return(0,p.jsx)("div",{ref:(0,m.mergeRefs)(b,s),className:y.base({className:t}),"data-orientation":i,"data-scroll-shadow-size":d,style:{"--scroll-shadow-size":`${d}px`,...f.style},...f,children:e})};b.displayName="HeroUI.ScrollShadow";let y=Object.assign(b,{Root:b});var v=e.i(683579),x=e.i(358771),S=e.i(823316),w=e.i(550840),C=e.i(879813),z=(e.i(58549),e.i(706442)),P=e.i(510390),R=e.i(890319);e.i(246562);var M=e.i(871356);let E=new WeakMap;function k(e,t){var n;let{id:a}=E.get(e)??{};if(!a)throw Error("Unknown list");return`${a}-${"string"==typeof(n=t)?n.replace(/\s*/g,""):""+n}`}var N=e.i(75975),D=e.i(937757),L=e.i(269431),T=e.i(136950),I=e.i(977926),j=e.i(3353),_=e.i(485581),O=e.i(478607),A=e.i(232940),B=e.i(218602),F=e.i(19930),K=e.i(90531),H=e.i(388684),$=e.i(926202),V=e.i(43418),W=e.i(363499);let G={ltr:"ArrowRight",rtl:"ArrowLeft"},U={ltr:"ArrowLeft",rtl:"ArrowRight"};function q(e){let t=null,n=null;do(n=e.lastChild())&&(t=n);while(n)return t}var Y=e.i(375895),X=e.i(303530),J=e.i(302129),Z=e.i(259775),Q=e.i(77894),ee=e.i(603668),et=(e.i(379927),e.i(849486)),en=e.i(65988),ea=e.i(783222),er=e.i(433336),el=e.i(258268),eo=e.i(285741);Z.ItemNode;(0,J.createLeafComponent)(Z.LoaderNode,function(e,t,n){let a=(0,r.useContext)(z.ListStateContext),{isVirtualized:l}=(0,r.useContext)(w.CollectionRendererContext),{isLoading:o,onLoadMore:i,scrollOffset:s,...d}=e,u=(0,r.useRef)(null),c=(0,r.useMemo)(()=>({onLoadMore:i,collection:a?.collection,sentinelRef:u,scrollOffset:s}),[i,s,a?.collection]);(0,et.useLoadMoreSentinel)(c,u);let p=(0,S.useRenderProps)({...d,id:void 0,children:n.rendered,defaultClassName:"react-aria-GridListLoadingIndicator",values:void 0});return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{style:{position:"relative",width:0,height:0},inert:(0,Q.inertValue)(!0)},r.default.createElement("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})),o&&p.children&&r.default.createElement(S.dom.div,{...p,...(0,M.filterDOMProps)(e,{global:!0}),role:"row",ref:t},r.default.createElement("div",{"aria-colindex":l?1:void 0,role:"gridcell"},p.children)))}),Z.SectionNode;let ei=(0,r.createContext)({}),es=(0,r.createContext)(null),ed=(0,J.createLeafComponent)(Z.HeaderNode,function(e,t){[e,t]=(0,S.useContextProps)(e,t,ei);let n=(0,r.useContext)(es);return r.default.createElement(S.dom.div,{render:e.render,className:"react-aria-GridListHeader",ref:t,...e},r.default.createElement("div",{...n,style:{display:"contents"}},e.children))});var eu=e.i(612439),ec={};ec={"ar-AE":{collapse:"طي",expand:"تمديد"},"bg-BG":{collapse:"Свиване",expand:"Разширяване"},"cs-CZ":{collapse:"Sbalit",expand:"Roztáhnout"},"da-DK":{collapse:"Skjul",expand:"Udvid"},"de-DE":{collapse:"Reduzieren",expand:"Erweitern"},"el-GR":{collapse:"Σύμπτυξη",expand:"Ανάπτυξη"},"en-US":{expand:"Expand",collapse:"Collapse"},"es-ES":{collapse:"Contraer",expand:"Ampliar"},"et-EE":{collapse:"Ahenda",expand:"Laienda"},"fi-FI":{collapse:"Pienennä",expand:"Laajenna"},"fr-FR":{collapse:"Réduire",expand:"Développer"},"he-IL":{collapse:"כווץ",expand:"הרחב"},"hr-HR":{collapse:"Sažmi",expand:"Proširi"},"hu-HU":{collapse:"Összecsukás",expand:"Kibontás"},"it-IT":{collapse:"Comprimi",expand:"Espandi"},"ja-JP":{collapse:"折りたたむ",expand:"展開"},"ko-KR":{collapse:"접기",expand:"펼치기"},"lt-LT":{collapse:"Sutraukti",expand:"Išskleisti"},"lv-LV":{collapse:"Sakļaut",expand:"Izvērst"},"nb-NO":{collapse:"Skjul",expand:"Utvid"},"nl-NL":{collapse:"Samenvouwen",expand:"Uitvouwen"},"pl-PL":{collapse:"Zwiń",expand:"Rozwiń"},"pt-BR":{collapse:"Recolher",expand:"Expandir"},"pt-PT":{collapse:"Colapsar",expand:"Expandir"},"ro-RO":{collapse:"Restrângeți",expand:"Extindeți"},"ru-RU":{collapse:"Свернуть",expand:"Развернуть"},"sk-SK":{collapse:"Zbaliť",expand:"Rozbaliť"},"sl-SI":{collapse:"Strni",expand:"Razširi"},"sr-SP":{collapse:" Skupi",expand:"Proširi"},"sv-SE":{collapse:"Dölj",expand:"Expandera"},"tr-TR":{collapse:"Daralt",expand:"Genişlet"},"uk-UA":{collapse:"Згорнути",expand:"Розгорнути"},"zh-CN":{collapse:"折叠",expand:"扩展"},"zh-TW":{collapse:"收合",expand:"展開"}};var ep=e.i(924470);function ef(e,t,n){var a;let{node:l}=e,o=function(e,t,n){let{node:a,isVirtualized:l}=e,{direction:o}=(0,V.useLocale)(),{onAction:i,linkBehavior:s,keyboardNavigationBehavior:d,shouldSelectOnPressUp:u}=E.get(t),c=(0,I.useSlotId)(),p=(0,r.useRef)(null),f={},h=e.hasChildItems,m=t.selectionManager.isLink(a.key);if(null!=a&&"expandedKeys"in t){let e=t.collection.getChildren?.(a.key);h=h||[...e??[]].length>1,null==i&&!m&&"none"===t.selectionManager.selectionMode&&h&&(i=()=>t.toggleKey(a.key));let n=h?t.expandedKeys.has(a.key):void 0,r=1,l=a.index;if(a.level>=0&&a?.parentKey!=null){let e=t.collection.getItem(a.parentKey);if(e){let n=function(e,t){let n=t.getChildren?.(e.key),a=n?Array.from(n):[],r=a.length>0?a[0]:null,l=[];for(;r;)l.push(r),r=null!=r.nextKey?t.getItem(r.nextKey):null;return l}(e,t.collection);r=[...n].filter(e=>"item"===e.type).length,l>0&&"item"!==n[0].type&&(l-=1)}}else r=[...t.collection].filter(e=>0===e.level&&"item"===e.type).length;f={"aria-expanded":n,"aria-level":a.level+1,"aria-posinset":l+1,"aria-setsize":r}}let{itemProps:g,...b}=(0,$.useSelectableItem)({selectionManager:t.selectionManager,key:a.key,ref:n,isVirtualized:l,shouldSelectOnPressUp:e.shouldSelectOnPressUp||u,onAction:i||a.props?.onAction?(0,_.chain)(a.props?.onAction,i?()=>i(a.key):void 0):void 0,focus:()=>{null===n.current||(null==p.current||a.key===p.current)&&(0,A.isFocusWithin)(n.current)||(0,O.focusSafely)(n.current)},linkBehavior:s}),y=(0,W.useSyntheticLinkProps)(a.props),v=b.hasAction?y:{},x=(0,N.mergeProps)(g,v,{role:"row",onKeyDownCapture:e=>{let r=(0,A.getActiveElement)();if(!(0,A.nodeContains)(e.currentTarget,(0,A.getEventTarget)(e))||!n.current||!r)return;let l=(0,B.getFocusableTreeWalker)(n.current);if(l.currentNode=r,"expandedKeys"in t&&r===n.current){if(e.key===G[o]&&t.selectionManager.focusedKey===a.key&&h&&!t.expandedKeys.has(a.key)){t.toggleKey(a.key),e.stopPropagation();return}else if(e.key===U[o]&&t.selectionManager.focusedKey===a.key){if(h&&t.expandedKeys.has(a.key)){t.toggleKey(a.key),e.stopPropagation();return}else if(!t.expandedKeys.has(a.key)&&a.parentKey){t.selectionManager.setFocusedKey(a.parentKey),e.stopPropagation();return}}}switch(e.key){case"ArrowLeft":if("arrow"===d){let t="rtl"===o?l.nextNode():l.previousNode();if(t)e.preventDefault(),e.stopPropagation(),(0,O.focusSafely)(t),(0,H.scrollIntoViewport)(t,{containingElement:(0,F.get
1ScrollParent)(n.current)});else if(e.preventDefault(),e.stopPropagation(),"rtl"===o)(0,O.focusSafely)(n.current),(0,H.scrollIntoViewport)(n.current,{containingElement:(0,F.getScrollParent)(n.current)});else{l.currentNode=n.current;let e=q(l);e&&((0,O.focusSafely)(e),(0,H.scrollIntoViewport)(e,{containingElement:(0,F.getScrollParent)(n.current)}))}}break;case"ArrowRight":if("arrow"===d){let t="rtl"===o?l.previousNode():l.nextNode();if(t)e.preventDefault(),e.stopPropagation(),(0,O.focusSafely)(t),(0,H.scrollIntoViewport)(t,{containingElement:(0,F.getScrollParent)(n.current)});else if(e.preventDefault(),e.stopPropagation(),"ltr"===o)(0,O.focusSafely)(n.current),(0,H.scrollIntoViewport)(n.current,{containingElement:(0,F.getScrollParent)(n.current)});else{l.currentNode=n.current;let e=q(l);e&&((0,O.focusSafely)(e),(0,H.scrollIntoViewport)(e,{containingElement:(0,F.getScrollParent)(n.current)}))}}break;case"ArrowUp":case"ArrowDown":!e.altKey&&(0,A.nodeContains)(n.current,(0,A.getEventTarget)(e))&&(e.stopPropagation(),e.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}},onKeyDown:e=>{let t=(0,A.getActiveElement)();if((0,A.nodeContains)(e.currentTarget,(0,A.getEventTarget)(e))&&n.current&&t&&"Tab"===e.key&&"tab"===d){let a=(0,B.getFocusableTreeWalker)(n.current,{tabbable:!0});a.currentNode=t,(e.shiftKey?a.previousNode():a.nextNode())&&e.stopPropagation()}},onFocus:e=>{if(p.current=a.key,(0,A.getEventTarget)(e)!==n.current){(0,K.isFocusVisible)()||t.selectionManager.setFocusedKey(a.key);return}},"aria-label":a["aria-label"]||a.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(a.key)?t.selectionManager.isSelected(a.key):void 0,"aria-disabled":t.selectionManager.isDisabled(a.key)||void 0,"aria-labelledby":c&&(a["aria-label"]||a.textValue)?`${k(t,a.key)} ${c}`:void 0,id:k(t,a.key)});
1if(l){let{collection:e}=t,n=[...e];x["aria-rowindex"]=n.find(e=>"section"===e.type)?[...e.getKeys()].filter(t=>e.getItem(t)?.type!=="section").findIndex(e=>e===a.key)+1:a.index+1}return{rowProps:{...(0,N.mergeProps)(x,f)},gridCellProps:{role:"gridcell","aria-colindex":1},descriptionProps:{id:c},...b}}(e,t,n),i=!0===o.rowProps["aria-expanded"],s=(0,ep.useLocalizedStringFormatter)((a=ec)&&a.__esModule?a.default:a,"@react-aria/tree"),d={onPress:()=>{o.isDisabled||(t.toggleKey(l.key),t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(l.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...(0,X.useLabels)({"aria-label":i?s.format("collapse"):s.format("expand"),"aria-labelledby":o.rowProps.id})};return{...o,expandButtonProps:d}}var eh=Z,em=e.i(199796),eg=e.i(707426),eb=e.i(381560);class ey extends eh.BaseCollection{withExpandedKeys(e,t){let n=this.clone();return n.expandedKeys=t,ey.cloneAncestorSections(t,e,n),ey.cloneAncestorSections(e,t,n),n.frozen=this.frozen,n}static cloneAncestorSections(e,t,n){for(let a of e)if(!t.has(a)){let e=a;for(;null!=e;){let t=n.getItem(e);if(t?.type==="section"){n.keyMap.set(e,t.clone());break}e=t?.parentKey??null}}}*[Symbol.iterator](){let e=this.getFirstKey(),t=null!=e?this.getItem(e):null;for(;t;)if(yield t,"section"===t.type)t=t.nextKey?this.getItem(t.nextKey):null;else{let e=this.getKeyAfter(t.key);t=e?this.getItem(e):null}}getLastKey(){let e=this.lastKey;if(null==e)return null;let t=this.getItem(e);for(;t?.lastChildKey!=null&&("item"!==t.type||this.expandedKeys.has(t.key));)t=this.getItem(t.lastChildKey);return t?.key}getKeyAfter(e){let t=this.getItem(e);if(!t)return null;if((this.expandedKeys.has(t.key)||"item"!==t.type)&&null!=t.firstChildKey)return t.firstChildKey;for(;t;){if(null!=t.nextKey)return t.nextKey;if(null!=t.parentKey)t=this.getItem(t.parentKey);else break}return null}getKeyBefore(e){let t=this.getItem(e);if(!t)return null;if(null!=t.prevKey){for(t=this.getItem(t.prevKey);t&&("item"!==t.type||this.expandedKeys.has(t.key))&&null!=t.lastChildKey;)t=this.getItem(t.lastChildKey);return t?.key??null}return t.parentKey}getChildren(e){let t=this;return{*[Symbol.iterator](){let n=t.getItem(e),a=n?.firstChildKey!=null?t.getItem(n.firstChildKey):null;if(n&&"section"===n.type&&a)for(;a&&a.key!==n.nextKey;){yield t.getItem(a.key);let e=t.getKeyAfter(a.key);a=null!=e?t.getItem(e):null}else for(;a;)yield a,a=null!=a.nextKey?t.getItem(a.nextKey):null}}}getTextValue(e){let t=this.getItem(e);return t?t.textValue:""}constructor(...e){super(...e),this.expandedKeys=new Set}}let ev=(0,r.createContext)(null),ex=(0,r.createContext)(null),eS=(0,r.forwardRef)(function(e,t){return[e,t]=(0,S.useContextProps)(e,t,ev),r.default.createElement(J.CollectionBuilder,{content:r.default.createElement(J.Collection,e),createCollection:()=>new ey},n=>r.default.createElement(ez,{props:e,collection:n,treeRef:t}))}),ew={ltr:"ArrowRight",rtl:"ArrowLeft"},eC={ltr:"ArrowLeft",rtl:"ArrowRight"};function ez({props:e,collection:t,treeRef:n}){let a,l,o,{dragAndDropHooks:i}=e,{direction:s}=(0,V.useLocale)(),d=(0,en.useCollator)({usage:"search",sensitivity:"base"}),u=!!i?.useDraggableCollectionState,c=!!i?.useDroppableCollectionState,p=(0,r.useRef)(u),f=(0,r.useRef)(c);(0,r.useEffect)(()=>{p.current!==u&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),f.current!==c&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[u,c]);let{selectionMode:h="none",expandedKeys:m,defaultExpandedKeys:g,onExpandedChange:b,disabledBehavior:y="all"}=e,{CollectionRoot:v,isVirtualized:x,layoutDelegate:z,dropTargetDelegate:P}=(0,r.useContext)(w.CollectionRendererContext),[k,_]=(0,eb.useControlledState)(m?new Set(m):void 0,g?new Set(g):new Set,b),[O,A]=(0,r.useState)(t),[F,K]=(0,r.useState)(k),[H,$]=(0,r.useState)(()=>t.withExpandedKeys(F,k));(!function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(F,k)||t!==O)&&($(t.withExpandedKeys(F,k)),A(t),K(k));let W=(0,em.useTreeState)({...e,selectionMode:h,expandedKeys:k,onExpandedChange:_,collection:H,children:void 0,disabledBehavior:y}),{gridProps:G}=function(e,t,n){let{gridProps:a}=function(e,t,n){let{isVirtualized:a,keyboardDelegate:r,layoutDelegate:l,onAction:o,disallowTypeAhead:i,linkBehavior:s="action",keyboardNavigationBehavior:d="arrow",escapeKeyBehavior:u="clearSelection",shouldSelectOnPressUp:c}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:p}
1=(0,j.useSelectableList)({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:n,keyboardDelegate:r,layoutDelegate:l,isVirtualized:a,selectOnFocus:"replace"===t.selectionManager.selectionBehavior,shouldFocusWrap:e.shouldFocusWrap,linkBehavior:s,disallowTypeAhead:i,autoFocus:e.autoFocus,escapeKeyBehavior:u}),f=(0,I.useId)(e.id);E.set(t,{id:f,onAction:o,linkBehavior:s,keyboardNavigationBehavior:d,shouldSelectOnPressUp:c});let h=(0,T.useHighlightSelectionDescription)({selectionManager:t.selectionManager,hasItemActions:!!o}),m=(0,L.useHasTabbableChild)(n,{isDisabled:0!==t.collection.size}),g=(0,M.filterDOMProps)(e,{labelable:!0}),b=(0,N.mergeProps)(g,{role:"grid",id:f,"aria-multiselectable":"multiple"===t.selectionManager.selectionMode?"true":void 0},0===t.collection.size?{tabIndex:m?-1:0}:p,h);return a&&(b["aria-rowcount"]=t.collection.size,b["aria-colcount"]=1),(0,D.useGridSelectionAnnouncement)({},t),{gridProps:b}}(e,t,n);return a.role="treegrid",{gridProps:a}}({...e,isVirtualized:x,layoutDelegate:z},W,n),U=!1,q=null,Y=(0,r.useRef)(null);if(u&&i){a=i.useDraggableCollectionState({collection:W.collection,selectionManager:W.selectionManager,preview:i.renderDragPreview?Y:void 0}),i.useDraggableCollection({},a,n);let e=i.DragPreview;q=i.renderDragPreview?r.default.createElement(e,{ref:Y},i.renderDragPreview):null}let[X]=(0,r.useState)(()=>new(0,eu.TreeDropTargetDelegate));if(c&&i){l=i.useDroppableCollectionState({collection:W.collection,selectionManager:W.selectionManager});let e=i.dropTargetDelegate||P||new i.ListDropTargetDelegate(W.collection,n,{direction:s});X.setup(e,W,s);let t=new(0,ee.ListKeyboardDelegate)({collection:W.collection,collator:d,ref:n,disabledKeys:W.selectionManager.disabledKeys,disabledBehavior:W.selectionManager.disabledBehavior,direction:s,layoutDelegate:z});o=i.useDroppableCollection({keyboardDelegate:t,dropTargetDelegate:X,onDropActivate:e=>{if("item"===e.target.type){let t=e.target.key,n=W.collection.getItem(t),a=k.has(t);n&&n.hasChildNodes&&(!a||i?.isVirtualDragging?.())&&W.toggleKey(t)}},onKeyDown:e=>{let t=l?.target;if(t&&"item"===t.type&&"on"===t.dropPosition){let n=W.collection.getItem(t.key);e.key===ew[s]&&n?.hasChildNodes&&!W.expandedKeys.has(t.key)?W.toggleKey(t.key):e.key===eC[s]&&n?.hasChildNodes&&W.expandedKeys.has(t.key)&&W.toggleKey(t.key)}}},l,n),U=l.isDropTarget({type:"root"})}let J=!!(u&&!a?.isDisabled),{focusProps:Z,isFocused:Q,isFocusVisible:et}=(0,ea.useFocusRing)(),er={isEmpty:0===W.collection.size,isFocused:Q,isFocusVisible:et,isDropTarget:U,selectionMode:W.selectionManager.selectionMode,allowsDragging:!!J,state:W},el=(0,S.useRenderProps)({...e,children:void 0,defaultClassName:"react-aria-Tree",values:er}),eo=null;if(0===W.collection.size&&e.renderEmptyState){let{isEmpty:t,...n}=er,a=e.renderEmptyState({...n});eo=r.default.createElement("div",{role:"row",style:{display:"contents"},"aria-level":1},r.default.createElement("div",{role:"gridcell",style:{display:"contents"}},a))}let ei=(0,M.filterDOMProps)(e,{global:!0});return r.default.createElement(r.default.Fragment,null,r.default.createElement(B.FocusScope,null,r.default.createElement(S.dom.div,{...(0,N.mergeProps)(ei,el,G,Z,o?.collectionProps),ref:n,slot:e.slot||void 0,"data-empty":0===W.collection.size||void 0,"data-focused":Q||void 0,"data-drop-target":U||void 0,"data-focus-visible":et||void 0,"data-selection-mode":"none"===W.selectionManager.selectionMode?void 0:W.selectionManager.selectionMode,"data-allows-dragging":!!J||void 0},r.default.createElement(S.Provider,{values:[[ex,W],[C.DragAndDropContext,{dragAndDropHooks:i,dragState:a,dropState:l}],[C.DropIndicatorContext,{render:eN}]]},c&&r.default.createElement(eL,null),r.default.createElement(R.SharedElementTransition,null,r.default.createElement(v,{collection:W.collection,persistedKeys:(0,C.useDndPersistedKeys)(W.selectionManager,i,l),scrollRef:n,renderDropIndicator:(0,C.useRenderDropIndicator)(i,l)}))),eo)),q)}class eP extends eh.CollectionNode{static{this.type="content"}}let eR=(0,J.createLeafComponent)(eP,function(e){let t=(0,r.useContext)(eM),n=(0,S.useRenderProps)({children:e.children,values:t});return r.default.createElement(w.CollectionRendererContext.Provider,{value:w.DefaultCollectionRenderer},n.children)}),eM=(0,r.createContext)(null);class eE extends eh.CollectionNode{static{this.type="item"}}let ek=(0,J.createBranchComponent)(eE,(e,t,n)=>{let a=(0,r.useContext)(ex);t=(0,el.useObjectRef)(t);let{dragAndDropHooks:l,dragState:o,dropState:i}=(0,r.useContext)(C.DragAndDropContext),{rowProps:s,gridCellProps:d,expandButtonProps:u,descriptionProps:c,...p}=ef({node:n,shouldSelectOnPressUp:!!o},a,t),f=!0===s["aria-expanded"],h=e.hasChildItems||[...a.collection.getChildren(n.key)].length>1,m=s["aria-level"]||1,{hoverProps:g,isHovered:b}=(0,er.useHover)({isDisabled:!p.allowsSelection&&!p.hasAction,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{isFocusVisible:y,focusProps:w}=(0,ea.useFocusRing)(),{isFocusVisible:z,focusProps:R}=(0,ea.useFocusRing)({within:!0}),{checkboxProps:E}=function(e,t){let{key:n}=e,{checkboxProps:a}=(0,Y.useGridSelectionCheckbox)(e,t);return{checkboxProps:{...a,"aria-labelledby":`${a.id} ${k(t,n)}`}}}({key:n.key},a),D=null;o&&l&&(D=l.useDraggableItem({key:n.key,hasDragButton:!0},o));let L=null,T=(0,r.useRef)(null),j=(0,r.useRef)(null),_=(0,r.useRef)(null),{visuallyHiddenProps:O}=(0,eo.useVisuallyHidden)();i&&l&&(L=l.useDropIndicator({target:{type:"item",key:n.key,dropPosition:"on"},activateButtonRef:_},i,j));let A=o&&o.isDragging(n.key),B=L?.isDropTarget,F=a.selectionManager.selectionMode,K=a.selectionManager.selectionBehavior,H=r.default.useMemo(()=>({...p,isHovered:b,isFocusVisible:y,isExpanded:f,hasChildItems:h,level:m,selectionMode:F,selectionBehavior:K,isFocusVisibleWithin:z,state:a,id:n.key,allowsDragging:!!o,isDragging:A,isDropTarget:B}),[p,b,y,f,h,m,z,a,n.key,o,A,B,K,F]),$=(0,S.useRenderProps)({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-TreeItem",defaultStyle:{"--tree-item-level":m},values:H});(0,r.useEffect)(()=>{},[n.textValue]),(0,r.useEffect)(()=>{},[]);let V=(0,r.useRef)(null);(0,r.useEffect)(()=>{},[]);let W=(0,eg.useCachedChildren)({items:a.collection.getChildren(n.key),children:e=>{switch(e.type){case"content":return e.render(e);case"loader":case"item":return r.default.createElement(r.default.Fragment,null);default:throw Error("Unsupported element type in TreeRow: "+e.type)}}}),G=(0,I.useId)(),U=(0,M.filterDOMProps)(e,{global:!0});return delete U.id,delete U.onClick,r.default.createElement(r.default.Fragment,null,L&&!L.isHidden&&r.default.createElement("div",{role:"row","aria-level":s["aria-level"],"aria-expanded":s["aria-expanded"],"aria-label":L.dropIndicatorProps["aria-label"]},r.default.createElement("div",{role:"gridcell","aria-colindex":1,style:{display:"contents"}},r.default.createElement("div",{role:"button",...O,...L.dropIndicatorProps,ref:j}),null!=s["aria-expanded"]?r.default.createElement("div",{role:"button",...O,id:G,"aria-label":u["aria-label"],"aria-labelledby":`${G} ${s.id}`,tabIndex:-1,ref:_}):null)),r.default.createElement(S.dom.div,{...(0,N.mergeProps)(U,s,w,g,R,D?.dragProps),...$,ref:t,"data-expanded":h&&f||void 0,"data-has-child-items":h||void 0,"data-level":m,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":y||void 0,"data-pressed":p.isPressed||void 0,"data-selection-mode":"none"===a.selectionManager.selectionMode?void 0:a.selectionManager.selectionMode,"data-allows-dragging":!!o||void 0,"data-dragging":A||void 0,"data-drop-target":B||void 0},r.default.createElement("div",{...d,style:{display:"contents"}},r.default.createElement(S.Provider,{values:[[x.CheckboxContext,{slots:{selection:E}}],[v.ButtonContext,{slots:{[S.DEFAULT_SLOT]:{},chevron:{...u,ref:T},drag:{...D?.dragButtonProps,ref:V,style:{pointerEvents:"none"}}}}],[eM,{...H}],[P.SelectionIndicatorContext,{isSelected:p.isSelected}]]},W))))});
1function eN(e,t){t=(0,el.useObjectRef)(t);let{dragAndDropHooks:n,dropState:a}=(0,r.useContext)(C.DragAndDropContext),l=(0,r.useRef)(null),{dropIndicatorProps:o,isHidden:i,isDropTarget:s}=n.useDropIndicator(e,a,l);if(i)return null;let d=a&&"item"===e.target.type?(a.collection.getItem(e.target.key)?.level||0)+1:1;return r.default.createElement(eD,{...e,dropIndicatorProps:o,isDropTarget:s,ref:t,buttonRef:l,level:d})}(0,J.createLeafComponent)(eh.LoaderNode,function(e,t,n){let{isVirtualized:a}=(0,r.useContext)(w.CollectionRendererContext),l=(0,r.useContext)(ex),{isLoading:o,onLoadMore:i,scrollOffset:s,...d}=e,u=(0,r.useRef)(null),c=(0,r.useMemo)(()=>({onLoadMore:i,collection:l?.collection,sentinelRef:u,scrollOffset:s}),[i,s,l?.collection]);(0,et.useLoadMoreSentinel)(c,u);let{rowProps:p,gridCellProps:f}=ef({node:n},l,t=(0,el.useObjectRef)(t)),h=p["aria-level"]||1,m={role:"row","aria-level":p["aria-level"]},g=(0,S.useRenderProps)({...d,id:void 0,children:n.rendered,defaultClassName:"react-aria-TreeLoader",values:{level:h}}),b={};return a&&(b={display:"contents"}),r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{style:{position:"relative",width:0,height:0},inert:(0,Q.inertValue)(!0)},r.default.createElement("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})),o&&g.children&&r.default.createElement(S.dom.div,{ref:t,...(0,N.mergeProps)((0,M.filterDOMProps)(e),m),...g,"data-level":h},r.default.createElement("div",{...f,style:b},g.children)))});let eD=(0,r.forwardRef)(function(e,t){let{dropIndicatorProps:n,isDropTarget:a,buttonRef:l,level:o,...i}=e,{visuallyHiddenProps:s}=(0,eo.useVisuallyHidden)(),d=(0,S.useRenderProps)({...i,defaultClassName:"react-aria-DropIndicator",defaultStyle:{position:"relative","--tree-item-level":o},values:{isDropTarget:a}});return r.default.createElement(S.dom.div,{...d,role:"row","aria-level":o,ref:t,"data-drop-target":a||void 0},r.default.createElement("div",{role:"gridcell"},r.default.createElement("div",{...s,role:"button",...n,ref:l}),d.children))});function eL(){let{dragAndDropHooks:e,dropState:t}=(0,r.useContext)(C.DragAndDropContext),n=(0,r.useRef)(null),{dropIndicatorProps:a}=e.useDropIndicator({target:{type:"root"}},t,n),l=t.isDropTarget({type:"root"}),{visuallyHiddenProps:o}=(0,eo.useVisuallyHidden)();return!l&&a["aria-hidden"]?null:r.default.createElement("div",{role:"row","aria-hidden":a["aria-hidden"],style:{position:"absolute"}},r.default.createElement("div",{role:"gridcell"},r.default.createElement("div",{role:"button",...o,...a,ref:n})))}let eT=(0,J.createBranchComponent)(eh.SectionNode,(e,t,n)=>{let a=(0,r.useContext)(ex),{CollectionBranch:l}=(0,r.useContext)(w.CollectionRendererContext),o=(0,r.useRef)(null);t=(0,el.useObjectRef)(t);let{rowHeaderProps:i,rowProps:s,rowGroupProps:d}=function(e){let{"aria-label":t}=e,n=(0,I.useSlotId)(),a=(0,X.useLabels)({"aria-label":t,"aria-labelledby":n});return{rowProps:{role:"row"},rowHeaderProps:{id:n,role:"rowheader"},rowGroupProps:{role:"rowgroup",...a}}}({"aria-label":e["aria-label"]??void 0}),u=(0,S.useRenderProps)({...e,id:void 0,children:void 0,defaultClassName:"react-aria-TreeSection",values:void 0}),c=(0,M.filterDOMProps)(e,{global:!0});return delete c.id,r.default.createElement(S.dom.div,{...(0,N.mergeProps)(c,u,d),ref:t},r.default.createElement(S.Provider,{values:[[ei,{...s,ref:o}],[es,{...i}]]},r.default.createElement(l,{collection:a.collection,parent:n})))}),eI=e=>r.default.createElement(ed,{className:"react-aria-TreeHeader",...e},e.children);var ej=e.i(571164),e_=e.i(138544),eO=e.i(648070),eA=e.i(513565);function eB({children:e,features:t,strict:n=!1}){let[,a]=(0,r.useState)(!eF(t)),l=(0,r.useRef)(void 0);if(!eF(t)){let{renderer:e,...n}=t;l.current=e,(0,eA.loadFeatures)(n)}return(0,r.useEffect)(()=>{eF(t)&&t().then(({renderer:e,...t})=>{(0,eA.loadFeatures)(t),l.current=e,a(!0)})},[]),(0,p.jsx)(eO.LazyContext.Provider,{value:{renderer:l.current,strict:n},children:e})}function eF(e){return"function"==typeof e}e.s(["LazyMotion",0,eB],444113);var eK=e.i(646816),eH=e.i(454292),e$=e.i(223070),eV=e.i(708149);let eW={renderer:e.i(154505).createDomVisualElement,...e$.animations,...eV.gestureAnimations};e.s(["domAnimation",0,eW],962607);let eG={...eW,...eK.drag,...eH.layout};var eU=e.i(231178),eq=e.i(947414),eY=e.i(674008),eX=e.i(821476),eJ=e.i(772846),eZ=r,eQ=e.i(737806);function e0(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class e1 extends eZ.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,eJ.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,eJ.isHTMLElement)(e)&&e.offsetWidth||0,a=(0,eJ.isHTMLElement)(e)&&e.offsetHeight||0,r=getComputedStyle(t),l=this.props.sizeRef.current;l.height=parseFloat(r.height),l.width=parseFloat(r.width),l.top=t.offsetTop,l.left=t.offsetLeft,l.right=n-l.width-l.left,l.bottom=a-l.he
1ight-l.top}return null}componentDidUpdate(){}render(){return this.props.children}}function e5({children:e,isPresent:t,anchorX:n,anchorY:a,root:l,pop:o}){let i=(0,eZ.useId)(),s=(0,eZ.useRef)(null),d=(0,eZ.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=(0,eZ.useContext)(eQ.MotionConfigContext),c=function(...e){return r.useCallback(function(...e){return t=>{let n=!1,a=e.map(e=>{let a=e0(e,t);return n||"function"!=typeof a||(n=!0),a});if(n)return()=>{for(let t=0;t<a.length;t++){let n=a[t];"function"==typeof n?n():e0(e[t],null)}}}}(...e),e)}(s,e.props?.ref??e?.ref);return(0,eZ.useInsertionEffect)(()=>{let{width:e,height:r,top:c,left:p,right:f,bottom:h}=d.current;if(t||!1===o||!s.current||!e||!r)return;let m="left"===n?`left: ${p}`:`right: ${f}`,g="bottom"===a?`bottom: ${h}`:`top: ${c}`;s.current.dataset.motionPopId=i;let b=document.createElement("style");u&&(b.nonce=u);let y=l??document.head;return y.appendChild(b),b.sheet&&b.sheet.insertRule(`
2          [data-motion-pop-id="${i}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${r}px !important;
6            ${m}px !important;
7            ${g}px !important;
8          }
9        `),()=>{s.current?.removeAttribute("data-motion-pop-id"),y.contains(b)&&y.removeChild(b)}},[t]),(0,p.jsx)(e1,{isPresent:t,childRef:s,sizeRef:d,pop:o,children:!1===o?e:eZ.cloneElement(e,{ref:c})})}let e3=({children:e,initial:t,isPresent:n,onExitComplete:a,custom:l,presenceAffectsLayout:o,mode:i,anchorX:s,anchorY:d,root:u})=>{let c=(0,eq.useConstant)(e2),f=(0,r.useId)(),h=!0,m=(0,r.useMemo)(()=>(h=!1,{id:f,initial:t,isPresent:n,custom:l,onExitComplete:e=>{for(let t of(c.set(e,!0),c.values()))if(!t)return;a&&a()},register:e=>(c.set(e,!1),()=>c.delete(e))}),[n,c,a]);return o&&h&&(m={...m}),(0,r.useMemo)(()=>{c.forEach((e,t)=>c.set(t,!1))},[n]),r.useEffect(()=>{n||c.size||!a||a()},[n]),e=(0,p.jsx)(e5,{pop:"popLayout"===i,isPresent:n,anchorX:s,anchorY:d,root:u,children:e}),(0,p.jsx)(eX.PresenceContext.Provider,{value:m,children:e})};function e2(){return new Map}var e6=e.i(259073);let e4=e=>e.key||"";function e7(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let e8=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:l=!0,mode:o="sync",propagate:i=!1,anchorX:s="left",anchorY:d="top",root:u})=>{let[c,f]=(0,e6.usePresence)(i),h=(0,r.useMemo)(()=>e7(e),[e]),m=i&&!c?[]:h.map(e4),g=(0,r.useRef)(!0),b=(0,r.useRef)(h),y=(0,eq.useConstant)(()=>new Map),v=(0,r.useRef)(new Set),[x,S]=(0,r.useState)(h),[w,C]=(0,r.useState)(h);(0,eY.useIsomorphicLayoutEffect)(()=>{g.current=!1,b.current=h;for(let e=0;e<w.length;e++){let t=e4(w[e]);m.includes(t)?(y.delete(t),v.current.delete(t)):!0!==y.get(t)&&y.set(t,!1)}},[w,m.length,m.join("-")]);let z=[];if(h!==x){let e=[...h];for(let t=0;t<w.length;t++){let n=w[t],a=e4(n);m.includes(a)||(e.splice(t,0,n),z.push(n))}return"wait"===o&&z.length&&(e=z),C(e7(e)),S(h),null}let{forceRender:P}=(0,r.useContext)(eU.LayoutGroupContext);return(0,p.jsx)(p.Fragment,{children:w.map(e=>{let r=e4(e),x=(!i||!!c)&&(h===w||m.includes(r));return(0,p.jsx)(e3,{isPresent:x,initial:(!g.current||!!n)&&void 0,custom:t,presenceAffectsLayout:l,mode:o,root:u,onExitComplete:x?void 0:()=>{if(v.current.has(r)||!y.has(r))return;v.current.add(r),y.set(r,!0);let e=!0;y.forEach(t=>{t||(e=!1)}),e&&(P?.(),C(b.current),i&&f?.(),a&&a())},anchorX:s,anchorY:d,children:e},r)})})};e.s(["AnimatePresence",0,e8],88653);var e9=e.i(936091);function te(e,t){return(0,e9.createMotionComponent)(e,t)}let tt=te("div"),tn=te("nav");e.s(["MotionDiv",0,tt,"MotionNav",0,tn],806928),e.s(["div",0,tt],642623);let ta={enter:{height:"auto",opacity:1,overflow:"hidden",transition:{height:{bounce:0,duration:.24,type:"spring"},opacity:{duration:.22,ease:[.16,1,.3,1]}},transitionEnd:{overflow:"visible"}},exit:{height:0,opacity:0,overflow:"hidden",transition:{height:{duration:.18,ease:[.4,0,1,1]},opacity:{duration:.1,ease:[.23,1,.32,1]}}}};function tr(e,t){return null==e||"boolean"==typeof e?null:(0,r.isValidElement)(e)?(0,r.cloneElement)(e,{key:t}):(0,p.jsx)(r.default.Fragment,{children:e},t)}function tl(e,t,n){return e?tr(e(t),n):null}function to(e,t){return Array.from(t?e.getChildren(t.key):e).filter(e=>"content"!==e.type&&e.parentKey===(t?.key??null))}function ti(e,t,n){return"item"===t.type?(0,p.jsx)(tu,{collection:e,node:t,renderDropIndicator:n},t.key):tr(t.render?.(t),t.key)}function ts({collection:e,parent:t,renderDropIndicator:n}){return to(e,t).map(t=>
9ti(e,t,n))}let td={CollectionBranch:({collection:e,parent:t,renderDropIndicator:n})=>(0,p.jsx)(ts,{collection:e,parent:t,renderDropIndicator:n}),CollectionRoot:({collection:e,renderDropIndicator:t})=>(0,p.jsx)(ts,{collection:e,renderDropIndicator:t})};function tu({collection:e,node:t,renderDropIndicator:n}){let a=t.render?.(t);if(null==a||"boolean"==typeof a)return null;let l=to(e,t),o=l.length>0&&null!=function(e,t){let n=e.getKeyAfter(t.key),a=null!=n?e.getItem(n):null;for(;a&&"content"===a.type;)a=null!=(n=e.getKeyAfter(a.key))?e.getItem(n):null;return a?.parentKey===t.key?a:null}(e,t),i=null==function(e,t){let n=null!=t.nextKey?e.getItem(t.nextKey):null;for(;n&&"item"!==n.type;)n=null!=n.nextKey?e.getItem(n.nextKey):null;return n}(e,t),s=tl(n,{dropPosition:"before",key:t.key,type:"item"},`${String(t.key)}-before`),d=i?tl(n,{dropPosition:"after",key:t.key,type:"item"},`${String(t.key)}-after`):null;return(0,p.jsxs)(r.default.Fragment,{children:[s,a,l.length>0?(0,p.jsx)(e8,{initial:!1,children:o?(0,p.jsx)(tc,{childNodes:l,collection:e,renderDropIndicator:n},`${String(t.key)}-children`):null}):null,d]},t.key)}function tc({childNodes:e,collection:t,renderDropIndicator:n}){let a=(0,e6.useIsPresent)();return(0,p.jsx)(tt,{animate:"enter","aria-hidden":!a||void 0,"data-tree-motion-section":"",exit:"exit",initial:"exit",role:"presentation",variants:ta,style:{pointerEvents:a?void 0:"none"},children:e.map(e=>ti(t,e,n))})}let tp=({children:e,reduceMotion:t=!1})=>{let n=(0,r.useContext)(w.CollectionRendererContext)??w.DefaultCollectionRenderer,a=function(){ej.hasReducedMotionListener.current||(0,e_.initPrefersReducedMotion)();let[e]=(0,r.useState)(ej.prefersReducedMotion.current);return e}(),l=!(t||a||n.isVirtualized),o=(0,r.useMemo)(()=>l?{...n,...td}:n,[n,l]);return(0,p.jsx)(w.CollectionRendererContext,{value:o,children:(0,p.jsx)(eB,{features:eG,children:e})})},tf=(0,e.i(393348).tv)({defaultVariants:{side:"left",variant:"sidebar"},slots:{base:"sidebar",content:"sidebar__content",footer:"sidebar__footer",group:"sidebar__group",groupLabel:"sidebar__group-label",header:"sidebar__header",main:"sidebar__main",menu:"sidebar__menu",menuAction:"sidebar__menu-action",menuActions:"sidebar__menu-actions",menuChip:"sidebar__menu-chip",menuHeader:"sidebar__menu-header",menuIcon:"sidebar__menu-icon",menuIndicator:"sidebar__menu-indicator",menuItem:"sidebar__menu-item",menuItemContent:"sidebar__menu-item-content",menuLabel:"sidebar__menu-label",menuLabelText:"sidebar__menu-label-text",menuSection:"sidebar__menu-section",menuTrigger:"sidebar__menu-trigger",mobile:"sidebar__mobile",provider:"sidebar__provider",rail:"sidebar__rail",separator:"sidebar__separator",tooltip:"sidebar__tooltip",trigger:"sidebar__trigger"},variants:{side:{left:{base:"sidebar--left"},right:{base:"sidebar--right"}},variant:{floating:{base:"sidebar--floating"},inset:{base:"sidebar--inset"},sidebar:{base:"sidebar--default"}}}}),th=(0,r.createContext)({collapsible:"icon",isMobile:!1,isMobileOpen:!1,isOpen:!0,reduceMotion:!1,setMobileOpen:()=>{},setOpen:()=>{},side:"left",toggleSidebar:()=>{},variant:"sidebar"}),tm=()=>(0,r.useContext)(th),tg=(0,r.createContext)(void 0),tb=({children:e,className:t,collapsible:n="icon",defaultOpen:a=!0,navigate:s,onOpenChange:d,open:u,reduceMotion:c=!1,side:f="left",toggleShortcut:h="mod+b",variant:m="sidebar",...g})=>{let b=void 0!==u,[y,v]=(0,r.useState)(a),x=u??y,S=(0,r.useCallback)(e=>{d&&d(e),b||(v(e),(0,o.setCookie)("sidebar_state",String(e)))},[d,b]),[w,C]=(0,r.useState)(!1),[z,P]=(0,r.useState)(!1),R=(0,r.useMemo)(()=>tf({side:f,variant:m}),[f,m]),M=(0,r.useCallback)(()=>{"none"!==n&&(w?P(e=>!e):S(!x))},[n,w,x,S]);(0,r.useEffect)(()=>{let e=window.matchMedia("(max-width: 768px)"),t=e=>{C(e.matches),e.matches&&P(!1)};return t(e),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,r.useEffect)(()=>{if(!h)return;let e=(0,i.parseToggleShortcut)(h);if(!e)return;let t=t=>{(0,i.matchesShortcut)(t,e)&&(t.preventDefault(),M())};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[h,M]);let E=(0,r.useMemo)(()=>({collapsible:n??"icon",isMobile:w,isMobileOpen:z,isOpen:x,navigate:s,reduceMotion:c,setMobileOpen:P,setOpen:S,side:f??"left",slots:R,toggleSidebar:M,variant:m??"sidebar"}),[n,w,z,x,s,c,P,S,f,R,M,m]);return(0,p.jsx)(th,{value:E,children:(0,p.jsx)("div",{className:(0,l.composeSlotClassName)(R?.provider,t),"data-sidebar":"provider","data-slot":"sidebar-provider","data-state":x?"expanded":"collapsed",...g,children:e})})},ty={false:"none",hover:"hover",true:"always"},tv=({children:e,className:t,...n})=>{let{slots:a}=tm();return(0,p.jsx)("span",{className:(0,l.composeSlotClassName)(a?.menuIcon,t),"data-slot":"sidebar-menu-icon",...n,children:e})},tx=({children:e})=>(0,p.jsx)(p.Fragment,{children:e}),tS=({children:e})=>(0,p.jsx)(p.Fragment,{children:e}),tw=({children:e})=>(0,p.jsx)(p.Fragment,{children:e}),tC=({children:e,closeDelay:t,content:n,delay:r,placement:l="right",...o})=>{let{isOpen:i}=tm();return i?(0,p.jsx)(p.Fragment,{children:e}):(0,p.jsxs)(a.Tooltip,{closeDelay:t,delay:r,children:[(0,p.jsx)(a.Tooltip.Trigger,{children:e}),(0,p.jsx)(a.Tooltip.Content,{placement:l,...o,children:n})]})};e.s(["SidebarContent",0,({children:e,className:t,...n})=>{let{slots:a}=tm();return(0,p.jsx)(y,{hideScrollBar:!0,className:(0,l.composeSlotClassName)(a?.content,t),"data-slot":"sidebar-content",...n,children:e})},"SidebarFooter",0,({children:e,className:t,...n})=>{let{slots:a}=tm();return(0,p.jsx)("div",{className:(0,l.composeSlotClassName)(a?.footer,t),"data-slot":"sidebar-footer",...n,children:e})},"SidebarGroup",0,({children:e,className:t,closeMobileOnAction:n,...a})=>{let{slots:r}=tm(),o=(0,p.jsx)("div",{className:(0,l.composeSlotClassName)(r?.group,t),"data-slot":"sidebar-group",...a,children:e});return void 0!==n?(0,p.jsx)(tg,{value:n,children:o}):o},"SidebarGroupLabel",0,({children:e,className:t,...n})=>{let{slots:a}=tm();return(0,p.jsx)("div",{className:(0,l.composeSlotClassName)(a?.groupLabel,t),"data-slot":"sidebar-group-label",...n,children:e})},"SidebarHeader",0,({children:e,className:t,...n})=>{let{slots:a}=tm();return(0,p.jsx)("div",{className:(0,l.composeSlotClassName)(a?.header,t),"data-slot":"sidebar-header",...n,children:e})},"SidebarMain",0,({children:e,className:t,...n})=>{let{slots:a}=tm();return(0,p.jsx)("main",{className:(0,l.composeSlotClassName)(a?.main,t),"data-slot":"sidebar-main",...n,children:e})},"SidebarMenu",0,({children:e,className:t,closeMobileOnAction:n,reduceMotion:a,showGuideLines:o=!0,...i})=>{let{reduceMotion:s,slots:d}=tm(),u=(0,r.useContext)(tg),c=n??u,f=ty[String(o)],h=(0,p.jsx)(tp,{reduceMotion:a??s,children:(0,p.jsx)(eS,{className:(0,l.composeTwRenderProps)(t,d?.menu()),"data-guide-lines":f,"data-sidebar":"menu","data-slot":"sidebar-menu",...i,children:e})});return void 0!==c?(0,p.jsx)(tg,{value:c,children:h}):h},"SidebarMenuAction",0,({children:e,className:t,...n})=>{let{slots:a}=tm();return(0,p.jsx)(v.Button,{className:(0,l.composeTwRenderProps)(t,a?.menuAction()),"data-slot":"sidebar-menu-action",...n,children:e})},"SidebarMenuActions",0,({children:e,className:t,...n})=>{let{slots:a}=tm();return(0,p.jsx)("div",{className:(0,l.composeSlotClassName)(a?.menuActions,t),"data-slot":"sidebar-menu-actions",...n,children:e})},"SidebarMenuChip",0,({children:e,className:t,...n})=>{let{slots:a}=tm();return(0,p.jsx)("span",{className:(0,l.composeSlotClassName)(a?.menuChip,t),"data-slot":"sidebar-menu-chip",...n,children:e})},"SidebarMenuHeader",0,({children:e,className:t,...n})=>{let{slots:a}=tm();return(0,p.jsx)(eI,{className:(0,l.composeSlotClassName)(a?.menuHeader,t),"data-slot":"sidebar-menu-header",...n,children:e})},"SidebarMenuIcon",0,tv,"SidebarMenuIndicator",0,({children:e,className:t,...n})=>{let{slots:a}=tm();return e&&r.default.isValidElement(e)?r.default.cloneElement(e,{...n,className:(0,l.composeSlotClassName)(a?.menuIndicator,t),"data-slot":"sidebar-menu-indicator"}):(0,p.jsx)(s.ChevronRight,{className:(0,l.composeSlotClassName)(a?.menuIndicator,t),"data-slot":"sidebar-menu-indicator",...n})},"SidebarMenuItem",0,({children:e,className:t,closeMobileOnAction:n,forceReload:o=!1,href:i,isCurrent:s=!1,render:d,textValue:u,tooltip:c,tooltipProps:f,...h})=>{let{collapsible:m,isMobile:g,isOpen:b,navigate:y,setMobileOpen:x,slots:S}=tm(),w=(0,r.useContext)(tg),C="icon"===m&&!g&&!b,z=[],P=[],R={};
9!function e(t,n,a,l){r.default.Children.forEach(t,t=>{if(r.default.isValidElement(t))if(t.type!==r.default.Fragment){if(t.type!==tw)return t.type===tx?(l&&(l.value=t.props),void e(t.props.children,n,a,l)):void n.push(t);a.push(...r.default.Children.toArray(t.props.children))}else e(t.props.children,n,a);else n.push(t)})}(e,P,z,R);let M=u??function e(t){return"string"==typeof t||"number"==typeof t?String(t):Array.isArray(t)?t.map(e).join(""):r.default.isValidElement(t)?e(t.props.children):""}(P),E=c??M,k=C?null:z,{children:N,className:D,...L}=R.value??{},T=P.map((e,t)=>{if(r.default.isValidElement(e)&&e.type===tS){let{children:n,className:a,...r}=e.props;return(0,p.jsx)(v.Button,{className:(0,l.composeTwRenderProps)(a,S?.menuTrigger()),"data-slot":"sidebar-menu-trigger",slot:"chevron",...r,children:n},e.key??t)}return C&&!f&&E&&r.default.isValidElement(e)&&e.type===tv?(0,p.jsx)(tC,{content:E,children:e},e.key??t):e}),I=(n??w??!0)&&g&&0===z.length,j=(0,r.useCallback)(()=>{i&&(I&&x(!1),/^https?:\/\//.test(i)?window.open(i,"_blank","noopener,noreferrer"):y&&!o?y(i):window.location.href=i)},[i,I,x,y,o]);return(0,p.jsxs)(ek,{"aria-current":s?"page":void 0,className:(0,l.composeTwRenderProps)(t,S?.menuItem()),"data-current":s?"true":void 0,"data-slot":"sidebar-menu-item",render:d,textValue:M,...h,...i?{onAction:j}:{},children:[(0,p.jsx)(eR,{children:f?(0,p.jsxs)(a.Tooltip,{closeDelay:f.closeDelay,delay:f.delay,children:[(0,p.jsx)(a.Tooltip.Trigger,{className:"w-full",children:(0,p.jsx)("div",{className:(0,l.composeSlotClassName)(S?.menuItemContent,D),"data-slot":"sidebar-menu-item-content",...L,children:T})}),(0,p.jsx)(a.Tooltip.Content,{className:f.className,placement:f.placement??"right",children:f.content})]}):(0,p.jsx)("div",{className:(0,l.composeSlotClassName)(S?.menuItemContent,D),"data-slot":"sidebar-menu-item-content",...L,children:T})}),k]})},"SidebarMenuItemContent",0,tx,"SidebarMenuLabel",0,({children:e,className:t,...n})=>{let{slots:a}=tm(),o=[],i=[];return r.default.Children.forEach(e,e=>{r.default.isValidElement(e)&&e.type===tS?i.push(e):o.push(e)}),(0,p.jsxs)("span",{className:(0,l.composeSlotClassName)(a?.menuLabel,t),"data-sidebar":"label","data-slot":"sidebar-menu-label",...n,children:[(0,p.jsx)("span",{className:a?.menuLabelText(),"data-slot":"sidebar-menu-label-text",children:o}),i]})},"SidebarMenuSection",0,({children:e,className:t,...n})=>{let{slots:a}=tm();return(0,p.jsx)(eT,{className:(0,l.composeSlotClassName)(a?.menuSection,t),"data-slot":"sidebar-menu-section",...n,children:e})},"SidebarMenuTrigger",0,tS,"SidebarMobile",0,({backdrop:e="blur",children:t,className:n,...a})=>{let{isMobile:r,isMobileOpen:o,setMobileOpen:i,side:s,slots:d}=tm();return r?(0,p.jsx)(u.Sheet,{isOpen:o,placement:s,onOpenChange:i,children:(0,p.jsx)(u.Sheet.Backdrop,{variant:e,children:(0,p.jsx)(u.Sheet.Content,{className:"sidebar__mobile-sheet",children:(0,p.jsx)(u.Sheet.Dialog,{className:"sidebar__mobile-dialog",children:(0,p.jsx)("div",{className:(0,l.composeSlotClassName)(d?.mobile,n),"data-slot":"sidebar-mobile",...a,children:t})})})})}):null},"SidebarProvider",0,tb,"SidebarRail",0,({className:e,...t})=>{let{slots:n,toggleSidebar:a}=tm();return(0,p.jsx)("button",{"aria-label":"Toggle sidebar",className:(0,l.composeSlotClassName)(n?.rail,e),"data-slot":"sidebar-rail",tabIndex:-1,type:"button",onClick:a,...t})},"SidebarRoot",0,({children:e,className:t,...n})=>{let{collapsible:a,isOpen:r,side:o,slots:i,variant:s}=tm(),d=r?"expanded":"collapsed",u=(0,p.jsx)("aside",{className:(0,l.composeSlotClassName)(i?.base,t),"data-collapsible":a,"data-side":o,"data-slot":"sidebar","data-state":d,"data-variant":s,...n,children:e});return"offcanvas"===a?(0,p.jsx)("div",{className:"sidebar__offcanvas-wrapper","data-side":o,"data-state":d,children:u}):u},"SidebarSeparator",0,({className:e,...t})=>{let{slots:n}=tm();return(0,p.jsx)(f.Separator,{className:(0,l.composeSlotClassName)(n?.separator,e),"data-slot":"sidebar-separator",...t})},"SidebarSubmenu",0,tw,"SidebarTooltip",0,tC,"SidebarTrigger",0,({children:e,className:t,...a})=>{let{toggleSidebar:r}=tm();return(0,p.jsx)(n.Button,{isIconOnly:!0,className:t,"data-slot":"sidebar-tr
9igger",size:"sm",variant:"ghost",onPress:r,...a,children:e??(0,p.jsx)(s.LayoutSideContentLeft,{className:"size-4"})})},"useSidebar",0,tm],313416);let tz=(0,r.createContext)(null),tP=e=>{let[t,n]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if("u"<typeof window)return;let t=window.matchMedia(e),a=e=>n(e.matches);return a(t),t.addEventListener("change",a),()=>t.removeEventListener("change",a)},[e]),t},tR=(e,t,n)=>t?(0,p.jsxs)(a.Tooltip,{closeDelay:n?.closeDelay,delay:n?.delay,isDisabled:n?.isDisabled,children:[(0,p.jsx)(a.Tooltip.Trigger,{children:e}),(0,p.jsxs)(a.Tooltip.Content,{className:n?.className,offset:n?.offset,placement:n?.placement??"bottom",showArrow:n?.showArrow,children:[n?.showArrow?(0,p.jsx)(a.Tooltip.Arrow,{}):null,t]})]}):e,tM=({})=>null,tE=({aside:e,asideDefaultSize:t,asideMaxSize:n,asideMinSize:a,asideResizable:l,bodySection:o,isAsideOpen:i,isSidebarOpen:s,resizableAutoSaveId:u,setAsideOpen:c,setSidebarOpen:f,sidebar:h,sidebarDefaultSize:m,sidebarMaxSize:g,sidebarMinSize:b,sidebarResizable:y,sidebarSide:v})=>{let x=(0,r.useRef)(null),S=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(!y)return;let e=x.current;e&&(s&&e.isCollapsed()?e.expand():s||e.isCollapsed()||e.collapse())},[s,y]),(0,r.useEffect)(()=>{if(!l)return;let e=S.current;e&&(i&&e.isCollapsed()?e.expand():i||e.isCollapsed()||e.collapse())},[i,l]);let w=h&&y?(0,p.jsx)(d.Resizable.Panel,{collapsible:!0,className:"app-layout__sidebar-panel",collapsedSize:0,defaultSize:m,handleRef:x,id:"app-layout-sidebar",maxSize:g,minSize:b,onCollapse:()=>f(!1),onExpand:()=>f(!0),children:h},"sidebar-panel"):null,C=h&&y?(0,p.jsx)(d.Resizable.Handle,{type:"line",variant:"primary"},"sidebar-handle"):null,z=e&&l?(0,p.jsx)(d.Resizable.Panel,{collapsible:!0,className:"app-layout__aside-panel",collapsedSize:0,defaultSize:t,handleRef:S,id:"app-layout-aside",maxSize:n,minSize:a,onCollapse:()=>c(!1),onExpand:()=>c(!0),children:e},"aside-panel"):null,P=e&&l?(0,p.jsx)(d.Resizable.Handle,{type:"line",variant:"primary"},"aside-handle"):null,R=h&&!y?h:null,M=e&&!l?(0,p.jsx)("aside",{className:"app-layout__aside","data-slot":"app-layout-aside","data-state":i?"open":"closed",children:e}):null,E=(0,p.jsx)(d.Resizable.Panel,{className:"app-layout__main-panel",id:"app-layout-main",minSize:30,children:o},"main-panel");return(0,p.jsxs)(p.Fragment,{children:[R,(0,p.jsx)(d.Resizable,{autoSaveId:u,className:"app-layout__resizable",orientation:"horizontal",children:"left"===v?[w,C,E,P,z]:[z,P,E,C,w]}),M]})};e.s(["AppLayoutAsideTrigger",0,({children:e,className:t,closedTooltip:a,openTooltip:o,tooltipProps:i,...d})=>{let u=(0,r.useContext)(tz),c=u?.isAsideOpen??!1;return tR((0,p.jsx)(n.Button,{isIconOnly:!0,"aria-expanded":c,"aria-label":"Toggle aside panel",className:(0,l.composeTwRenderProps)(t,u?.slots?.asideTrigger()),"data-slot":"app-layout-aside-trigger","data-state":c?"open":"closed",size:"sm",variant:"ghost",onPress:()=>u?.toggleAside(),...d,children:e??(0,p.jsx)(s.LayoutSideContentRight,{className:"size-4"})}),c?o:a,i)},"AppLayoutContext",0,tz,"AppLayoutMenuToggle",0,({children:e,className:t,tooltip:a,tooltipProps:o,...i})=>{let{setMobileOpen:d}=tm(),u=(0,r.useContext)(tz);return tR((0,p.jsx)(n.Button,{isIconOnly:!0,"aria-label":"Open navigation",className:(0,l.composeTwRenderProps)(t,u?.slots?.menuToggle()),"data-slot":"app-layout-menu-toggle",size:"sm",variant:"ghost",onPress:()=>d(!0),...i,children:e??(0,p.jsx)(s.Bars,{className:"size-4"})}),a,o)},"AppLayoutMobileAside",0,tM,"AppLayoutRoot",0,({aside:e,asideDefaultSize:n=20,asideMaxSize:a=40,asideMinSize:l=15,asideMobile:s="hidden",asideOpen:d,asideResizable:f=!1,asideToggleShortcut:h=null,children:m,className:g,defaultAsideOpen:b=!0,defaultSidebarOpen:y=!0,footer:v,navbar:x,navigate:S,onAsideOpenChange:w,onSidebarOpenChange:C,reduceMotion:z=!1,resizableAutoSaveId:P,scrollMode:R="page",sidebar:M,sidebarCollapsible:E="icon",sidebarDefaultSize:k=18,sidebarMaxSize:N=30,sidebarMinSize:D=12,sidebarOpen:L,sidebarResizable:T=!1,sidebarSide:I="left",sidebarVariant:j="sidebar",style:_,toggleShortcut:O,toolbar:A,...B})=>{let F=(0,r.useMemo)(()=>(0,c.appLayoutVariants)(),[]),K="content"===R,H=void 0!==L,[$,V]=(0,r.useState)(y),W=L??$,G=(0,r.useCallback)(e=>{C&&C(e),H||V(e)},[C,H]),U=void 0!==d,[q,Y]=(0,r.useState)(b),X=d??q,J=(0,r.useCallback)(e=>
9{w&&w(e),U||(Y(e),(0,o.setCookie)("aside_state",String(e)))},[w,U]),Z=(0,r.useCallback)(()=>J(!X),[X,J]);(0,r.useEffect)(()=>{if(!h||!e)return;let t=(0,i.parseToggleShortcut)(h);if(!t)return;let n=e=>{(0,i.matchesShortcut)(e,t)&&(e.preventDefault(),Z())};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[h,e,Z]);let Q=tP("(max-width: 1024px)"),ee=tP("(max-width: 768px)"),et=(T||f)&&!ee,{contentChildren:en,mobileAsideContent:ea}=(0,r.useMemo)(()=>{let e=null,t=[];return r.default.Children.forEach(m,n=>{r.default.isValidElement(n)&&n.type===tM?e=n.props.children:t.push(n)}),{contentChildren:t,mobileAsideContent:e}},[m]),er=null!=ea;void 0!==t.default&&t.default.env;let el=T&&"icon"!==E&&!ee,eo=f&&!Q,ei=(0,r.useMemo)(()=>({hasMobileAside:er,isAsideOpen:X,navigate:S,setAsideOpen:J,slots:F,toggleAside:Z}),[er,X,S,J,F,Z]),es=x?(0,p.jsx)("header",{className:F.header(),"data-slot":"app-layout-header",children:x}):null,ed=A?(0,p.jsx)("div",{className:F.toolbar(),"data-slot":"app-layout-toolbar",children:A}):null,eu=(0,p.jsx)("main",{"aria-label":K?"Scrollable main content":void 0,className:F.main(),"data-scroll-mode":R,"data-slot":"app-layout-main",tabIndex:K?0:void 0,children:en}),ec=v?(0,p.jsx)("div",{className:F.footer(),"data-slot":"app-layout-footer",children:v}):null,ep=(0,p.jsxs)("div",{className:F.body(),"data-slot":"app-layout-body",children:[es,ed,eu,ec]}),ef=e?(0,p.jsx)("aside",{className:F.aside(),"data-slot":"app-layout-aside","data-state":X?"open":"closed",children:e}):null,eh=e&&"sheet"===s&&Q?(0,p.jsx)(u.Sheet,{isOpen:X,placement:"right",onOpenChange:J,children:(0,p.jsx)(u.Sheet.Backdrop,{variant:"blur",children:(0,p.jsx)(u.Sheet.Content,{className:"app-layout__mobile-aside-sheet",children:(0,p.jsx)(u.Sheet.Dialog,{className:"app-layout__mobile-aside-dialog",children:(0,p.jsx)("div",{className:"app-layout__mobile-aside","data-slot":"app-layout-mobile-aside",children:ea??e})})})})}):null;return(0,p.jsx)(tz,et?{value:ei,children:(0,p.jsxs)(tb,{className:g,collapsible:E,"data-app-layout":"","data-resizable":"","data-scroll-mode":R,defaultOpen:y,navigate:S,open:W,reduceMotion:z,side:I,style:_,toggleShortcut:O,variant:j,onOpenChange:G,...B,children:[(0,p.jsx)(tE,{aside:e,asideDefaultSize:n,asideMaxSize:a,asideMinSize:l,asideResizable:eo,bodySection:ep,isAsideOpen:X,isSidebarOpen:W,resizableAutoSaveId:P,setAsideOpen:J,setSidebarOpen:G,sidebar:M,sidebarDefaultSize:k,sidebarMaxSize:N,sidebarMinSize:D,sidebarResizable:el,sidebarSide:I??"left"}),eh]})}:{value:ei,children:(0,p.jsxs)(tb,{className:g,collapsible:E,"data-app-layout":"","data-scroll-mode":R,defaultOpen:y,navigate:S,open:W,reduceMotion:z,side:I,style:_,toggleShortcut:O,variant:j,onOpenChange:G,...B,children:[M,ep,ef,eh]})})}],251264)}]);

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.