1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[806],{61524:function(e,t,n){n.d(t,{Z:function(){return r}});/** 2 * @license lucide-react v0.321.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let r=(0,n(87461).Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},18025:function(e,t,n){n.d(t,{Z:function(){return r}});/** 7 * @license lucide-react v0.321.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */let r=(0,n(87461).Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},59496:function(e,t,n){n.d(t,{Z:function(){return r}});/** 12 * @license lucide-react v0.321.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let r=(0,n(87461).Z)("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]])},85438:function(e,t,n){n.d(t,{Z:function(){return r}});/** 17 * @license lucide-react v0.321.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let r=(0,n(87461).Z)("BookA",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"m8 13 4-7 4 7",key:"4rari8"}],["path",{d:"M9.1 11h5.7",key:"1gkovt"}]])},14562:function(e,t,n){n.d(t,{Z:function(){return r}});/** 22 * @license lucide-react v0.321.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */let r=(0,n(87461).Z)("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]])},65199:function(e,t,n){n.d(t,{Z:function(){return r}});/** 27 * @license lucide-react v0.321.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */let r=(0,n(87461).Z)("CheckSquare",[["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}],["path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11",key:"1jnkn4"}]])},23441:function(e,t,n){n.d(t,{Z:function(){return r}});/** 32 * @license lucide-react v0.321.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */let r=(0,n(87461).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},26490:function(e,t,n){n.d(t,{Z:function(){return r}});/** 37 * @license lucide-react v0.321.0 - ISC 38 * 39 * This source code is licensed under the ISC license. 40 * See the LICENSE file in the root directory of this source tree. 41 */let r=(0,n(87461).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},39263:function(e,t,n){n.d(t,{Z:function(){return r}});/** 42 * @license lucide-react v0.321.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */let r=(0,n(87461).Z)("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]])},79744:function(e,t,n){n.d(t,{Z:function(){return r}});/** 47 * @license lucide-react v0.321.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */let r=(0,n(87461).Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},72891:function(e,t,n){n.d(t,{Z:function(){return r}});/** 52 * @license lucide-react v0.321.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree.
56 */let r=(0,n(87461).Z)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]])},81280:function(e,t,n){n.d(t,{Z:function(){return r}});/** 57 * @license lucide-react v0.321.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */let r=(0,n(87461).Z)("ScrollText",[["path",{d:"M8 21h12a2 2 0 0 0 2-2v-2H10v2a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v3h4",key:"13a6an"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M15 12h-5",key:"r7krc0"}]])},28670:function(e,t,n){n.d(t,{Z:function(){return r}});/** 62 * @license lucide-react v0.321.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */let r=(0,n(87461).Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},65:function(e,t,n){n.d(t,{Z:function(){return r}});/** 67 * @license lucide-react v0.321.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */let r=(0,n(87461).Z)("ShieldAlert",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]])},77326:function(e,t,n){n.d(t,{Z:function(){return r}});/** 72 * @license lucide-react v0.321.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */let r=(0,n(87461).Z)("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]])},31047:function(e,t,n){n.d(t,{Z:function(){return r}});/** 77 * @license lucide-react v0.321.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */let r=(0,n(87461).Z)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},57974:function(e,t,n){n.d(t,{Z:function(){return r}});/** 82 * @license lucide-react v0.321.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */let r=(0,n(87461).Z)("Swords",[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]])},62244:function(e,t,n){n.d(t,{Z:function(){return r}});/** 87 * @license lucide-react v0.321.0 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */let r=(0,n(87461).Z)("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]])},7913:function(e,t,n){n.d(t,{Z:function(){return r}});/** 92 * @license lucide-react v0.321.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */let r=(0,n(87461).Z)("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]])},52235:function(e,t,n){n.d(t,{Z:function(){return r}});/** 97 * @license lucide-react v0.321.0 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree.
101 */let r=(0,n(87461).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},47907:function(e,t,n){var r=n(15313);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}})},8206:function(e,t,n){let r;n.d(t,{mY:function(){return tR}});var o,u,i,l,a,c,s,d,f=/[\\\/_+.#"@\[\(\{&]/,h=/[\\\/_+.#"@\[\(\{&]/g,p=/[\s-]/,v=/[\s-]/g;function m(e){return e.toLowerCase().replace(v," ")}var g=n(64090),y=n.t(g,2);function E(e,t){let{checkForDefaultPrevented:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function b(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function A(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{let n=!1,r=t.map(t=>{let r=b(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<r.length;e++){let n=r[e];"function"==typeof n?n():b(t[e],null)}}}}function C(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return g.useCallback(A(...t),t)}window.document&&window.document.createElement;var w=n(3827),x=(null===(o=globalThis)||void 0===o?void 0:o.document)?g.useLayoutEffect:()=>{},k=y[" useId ".trim().toString()]||(()=>void 0),M=0;function D(e){let[t,n]=g.useState(k());return x(()=>{e||n(e=>null!=e?e:String(M++))},[e]),e||(t?"radix-".concat(t):"")}var S=y[" useInsertionEffect ".trim().toString()]||x;Symbol("RADIX:SYNC_STATE");var R=n(89542);function F(e){let t=function(e){let t=g.forwardRef((e,t)=>{let{children:n,...r}=e;if(g.isValidElement(n)){var o,u;let e,i;let l=(e=null===(o=Object.getOwnPropertyDescriptor(n.props,"ref"))||void 0===o?void 0:o.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=null===(u=Object.getOwnPropertyDescriptor(n,"ref"))||void 0===u?void 0:u.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,a=function(e,t){let n={...t};for(let r in t){let o=e[r],u=t[r];/^on[A-Z]/.test(r)?o&&u?n[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=u(...t);return o(...t),r}:o&&(n[r]=o):"style"===r?n[r]={...o,...u}:"className"===r&&(n[r]=[o,u].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==g.Fragment&&(a.ref=t?A(t,l):l),g.cloneElement(n,a)}return g.Children.count(n)>1?g.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}(e),n=g.forwardRef((e,n)=>{let{children:r,...o}=e,u=g.Children.toArray(r),i=u.find(N);if(i){let e=i.props.children,r=u.map(t=>t!==i?t:g.Children.count(e)>1?g.Children.only(null):g.isValidElement(e)?e.props.children:null);return(0,w.jsx)(t,{...o,ref:n,children:g.isValidElement(e)?g.cloneElement(e,void 0,r):null})}return(0,w.jsx)(t,{...o,ref:n,children:r})});return n.displayName="".concat(e,".Slot"),n}var I=Symbol("radix.slottable");function N(e){return g.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===I}var B=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=F("Primitive.".concat(t)),r=g.forwardRef((e,r)=>{let{asChild:o,...u}=e,i=o?n:t;return window[Symbol.for("radix-ui")]=!0,(0,w.jsx)(i,{...u,ref:r})});return r.displayName="Primitive.".concat(t),{...e,[t]:r}},{});function O(e){let t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>function(){for(var e,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call(t,...r)},[])}var L="dismissableLayer.update",P=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_=g.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:a,onInteractOutside:c,onDismiss:s,...d}=e,f=g.useContext(P),[h,p]=g.useState(null),v=null!==(r=null==h?void 0:h.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,m]=g.useState({}),y=C(t,e=>p(e)),b=Array.from(f.layers),[A]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(A),k=h?b.indexOf(h):-1,M=f.layersWithOutsidePointerEventsDisabled.size>0,D=k>=x,S=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=O(e),o=g.useRef(!1),u=g.useRef(()=>{});return g.useEffect(()=>{let e=e=>
101{if(e.target&&!o.current){let t=function(){T("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",u.current),u.current=t,n.addEventListener("click",u.current,{once:!0})):t()}else n.removeEventListener("click",u.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",u.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...f.branches].some(e=>e.contains(t));!D||n||(null==l||l(e),null==c||c(e),e.defaultPrevented||null==s||s())},v),R=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=O(e),o=g.useRef(!1);return g.useEffect(()=>{let e=e=>{e.target&&!o.current&&T("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...f.branches].some(e=>e.contains(t))||(null==a||a(e),null==c||c(e),e.defaultPrevented||null==s||s())},v);return!function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=O(e);g.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{k!==f.layers.size-1||(null==i||i(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},v),g.useEffect(()=>{if(h)return o&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(u=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(h)),f.layers.add(h),j(),()=>{o&&1===f.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=u)}},[h,v,o,f]),g.useEffect(()=>()=>{h&&(f.layers.delete(h),f.layersWithOutsidePointerEventsDisabled.delete(h),j())},[h,f]),g.useEffect(()=>{let e=()=>m({});return document.addEventListener(L,e),()=>document.removeEventListener(L,e)},[]),(0,w.jsx)(B.div,{...d,ref:y,style:{pointerEvents:M?D?"auto":"none":void 0,...e.style},onFocusCapture:E(e.onFocusCapture,R.onFocusCapture),onBlurCapture:E(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:E(e.onPointerDownCapture,S.onPointerDownCapture)})});function j(){let e=new CustomEvent(L);document.dispatchEvent(e)}function T(e,t,n,r){let{discrete:o}=r,u=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&u.addEventListener(e,t,{once:!0}),o)?u&&R.flushSync(()=>u.dispatchEvent(i)):u.dispatchEvent(i)}_.displayName="DismissableLayer",g.forwardRef((e,t)=>{let n=g.useContext(P),r=g.useRef(null),o=C(t,r);return g.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,w.jsx)(B.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var Z="focusScope.autoFocusOnMount",W="focusScope.autoFocusOnUnmount",z={bubbles:!1,cancelable:!0},$=g.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...i}=e,[l,a]=g.useState(null),c=O(o),s=O(u),d=g.useRef(null),f=C(t,e=>a(e)),h=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let e=function(e){if(h.paused||!l)return;let t=e.target;l.contains(t)?d.current=t:V(d.current,{select:!0})},t=function(e){if(h.paused||!l)return;let t=e.relatedTarget;null===t||l.contains(t)||V(d.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&V(l)});return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,l,h.paused]),g.useEffect(()=>{if(l){U.add(h);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(Z,z);l.addEventListener(Z,c),l.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(V(r,{select:t}),document.activeElement!==n)return}(q(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&V(l))}return()=>{l.removeEventListener(Z,c),setTimeout(()=>{let t=new CustomEvent(W,z);l.addEventListener(W,s),l.dispatchEvent(t),t.defaultPrevented||V(null!=e?e:document.body,{select:!0}),l.removeEventListener(W,s),U.remove(h)}
101,0)}}},[l,c,s,h]);let p=g.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,u]=function(e){let t=q(e);return[K(t,e),K(t.reverse(),e)]}(t);r&&u?e.shiftKey||o!==u?e.shiftKey&&o===r&&(e.preventDefault(),n&&V(u,{select:!0})):(e.preventDefault(),n&&V(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,w.jsx)(B.div,{tabIndex:-1,...i,ref:f,onKeyDown:p})});function q(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function K(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function V(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}$.displayName="FocusScope";var U=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=H(r,e)).unshift(e)},remove(e){var t;null===(t=(r=H(r,e))[0])||void 0===t||t.resume()}});function H(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var X=g.forwardRef((e,t)=>{var n,r;let{container:o,...u}=e,[i,l]=g.useState(!1);x(()=>l(!0),[]);let a=o||i&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return a?R.createPortal((0,w.jsx)(B.div,{...u,ref:t}),a):null});X.displayName="Portal";var Y=e=>{var t,n;let r,o;let{present:u,children:i}=e,l=function(e){var t,n;let[r,o]=g.useState(),u=g.useRef(null),i=g.useRef(e),l=g.useRef("none"),[a,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},g.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return g.useEffect(()=>{let e=J(u.current);l.current="mounted"===a?e:"none"},[a]),x(()=>{let t=u.current,n=i.current;if(n!==e){let r=l.current,o=J(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),i.current=e}},[e,c]),x(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=J(u.current).includes(CSS.escape(e.animationName));if(e.target===r&&o&&(c("ANIMATION_END"),!i.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},a=e=>{e.target===r&&(l.current=J(u.current))};return r.addEventListener("animationstart",a),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",a),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(e=>{u.current=e?getComputedStyle(e):null,o(e)},[])}}(u),a="function"==typeof i?i({present:l.isPresent}):g.Children.only(i),c=C(l.ref,(r=null===(t=Object.getOwnPropertyDescriptor(a.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning?a.ref:(r=null===(n=Object.getOwnPropertyDescriptor(a,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning?a.props.ref:a.props.ref||a.ref);return"function"==typeof i||l.isPresent?g.cloneElement(a,{ref:c}):null};function J(e){return(null==e?void 0:e.animationName)||"none"}Y.displayName="Presence";var G=0;function Q(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ee=function(){return(ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function et(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var en="right-scroll-bar-position",er="width-before-scroll-bar";function eo(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var eu=g.useLayoutEffect,ei=new WeakMap,el=(void 0===l&&(l={}),(void 0===a&&(a=function(e){return e}),c=[],s=!1,d={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return c.length?c[c.length-1]:null},useMedium:function(e){var t=a(e,s);return c.push(t),function(){c=c.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;c.length;){var t=c;c=[],t.forEach(e)}c={push:function(t){return e(t)},filter:function(){return c}}},assignMedium:function(e){s=!0;var t=[];if(c.length){var n=c;
101c=[],n.forEach(e),t=c}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),c={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),c}}}}).options=ee({async:!0,ssr:!1},l),d),ea=function(){},ec=g.forwardRef(function(e,t){var n,r,o,u,i=g.useRef(null),l=g.useState({onScrollCapture:ea,onWheelCapture:ea,onTouchMoveCapture:ea}),a=l[0],c=l[1],s=e.forwardProps,d=e.children,f=e.className,h=e.removeScrollBar,p=e.enabled,v=e.shards,m=e.sideCar,y=e.noRelative,E=e.noIsolation,b=e.inert,A=e.allowPinchZoom,C=e.as,w=e.gapMode,x=et(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(n=[i,t],r=function(e){return n.forEach(function(t){return eo(t,e)})},(o=(0,g.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,u=o.facade,eu(function(){var e=ei.get(u);if(e){var t=new Set(e),r=new Set(n),o=u.current;t.forEach(function(e){r.has(e)||eo(e,null)}),r.forEach(function(e){t.has(e)||eo(e,o)})}ei.set(u,n)},[n]),u),M=ee(ee({},x),a);return g.createElement(g.Fragment,null,p&&g.createElement(m,{sideCar:el,removeScrollBar:h,shards:v,noRelative:y,noIsolation:E,inert:b,setCallbacks:c,allowPinchZoom:!!A,lockRef:i,gapMode:w}),s?g.cloneElement(g.Children.only(d),ee(ee({},M),{ref:k})):g.createElement(void 0===C?"div":C,ee({},M,{className:f,ref:k}),d))});ec.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ec.classNames={fullWidth:er,zeroRight:en};var es=function(e){var t=e.sideCar,n=et(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return g.createElement(r,ee({},n))};es.isSideCarExport=!0;var ed=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,u;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),u=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(u)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ef=function(){var e=ed();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},eh=function(){var e=ef();return function(t){return e(t.styles,t.dynamic),null}},ep=function(e){return parseInt(e||"",10)||0},ev=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ep(n),ep(r),ep(o)]},em=function(e){void 0===e&&(e="margin");var t=ev(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eg=eh(),ey="data-scroll-locked",eE=function(e,t,n,r){var o=e.left,u=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(ey,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(u,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(en," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(er," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(en," .").concat(en," {\n right: 0 ").concat(r,";\n }\n \n .").concat(er," .").concat(er," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(ey,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},eb=function(){var e=parseInt(document.body.getAttribute(ey)||"0",10);return isFinite(e)?e:0},eA=function(){g.useEffect(function(){return document.body.setAttribute(ey,(eb()+1).toString()),function(){var e=eb()-1;e<=0?document.body.removeAttribute(ey):document.body.setAttribute(ey,e.toString())}},[])},eC=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;eA();var u=g.useMemo(function(){return em(o)}
101,[o]);return g.createElement(eg,{styles:eE(u,!t,o,n?"":"!important")})},ew=!1;try{var ex=Object.defineProperty({},"passive",{get:function(){return ew=!0,!0}});window.addEventListener("test",ex,ex),window.removeEventListener("test",ex,ex)}catch(e){ew=!1}var ek=!!ew&&{passive:!1},eM=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},eD=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eS(e,r)){var o=eR(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eS=function(e,t){return"v"===e?eM(t,"overflowY"):eM(t,"overflowX")},eR=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eF=function(e,t,n,r,o){var u,i=(u=window.getComputedStyle(t).direction,"h"===e&&"rtl"===u?-1:1),l=i*r,a=n.target,c=t.contains(a),s=!1,d=l>0,f=0,h=0;do{if(!a)break;var p=eR(e,a),v=p[0],m=p[1]-p[2]-i*v;(v||m)&&eS(e,a)&&(f+=m,h+=v);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return d&&(o&&1>Math.abs(f)||!o&&l>f)?s=!0:!d&&(o&&1>Math.abs(h)||!o&&-l>h)&&(s=!0),s},eI=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eN=function(e){return[e.deltaX,e.deltaY]},eB=function(e){return e&&"current"in e?e.current:e},eO=0,eL=[],eP=(el.useMedium(function(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(eO++)[0],u=g.useState(eh)[0],i=g.useRef(e);g.useEffect(function(){i.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,u=t.length;o<u;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(eB),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=g.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,u=eI(e),l=n.current,a="deltaX"in e?e.deltaX:l[0]-u[0],c="deltaY"in e?e.deltaY:l[1]-u[1],s=e.target,d=Math.abs(a)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=window.getSelection(),h=f&&f.anchorNode;if(h&&(h===s||h.contains(s)))return!1;var p=eD(d,s);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=eD(d,s)),!p)return!1;if(!r.current&&"changedTouches"in e&&(a||c)&&(r.current=o),!o)return!0;var v=r.current||o;return eF(v,t,e,"h"===v?a:c,!0)},[]),a=g.useCallback(function(e){if(eL.length&&eL[eL.length-1]===u){var n="deltaY"in e?eN(e):eI(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(eB).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=g.useCallback(function(e,n,r,o){var u={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(u),setTimeout(function(){t.current=t.current.filter(function(e){return e!==u})},1)},[]),s=g.useCallback(function(e){n.current=eI(e),r.current=void 0},[]),d=g.useCallback(function(t){c(t.type,eN(t),t.target,l(t,e.lockRef.current))},[]),f=g.useCallback(function(t){c(t.type,eI(t),t.target,l(t,e.lockRef.current))},[]);g.useEffect(function(){return eL.push(u),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",a,ek),document.addEventListener("touchmove",a,ek),document.addEventListener("touchstart",s,ek),function(){eL=eL.filter(function(e){return e!==u}),document.removeEventListener("wheel",a,ek),document.removeEventListener("touchmove",a,ek),document.removeEventListener("touchstart",s,ek)}},[]);var h=e.removeScrollBar,p=e.inert;return g.createElement(g.Fragment,null,p?g.createElement(u,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?g.createElement(eC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}),es),e_=g.forwardRef(function(e,t){return g.createElement(ec,ee({},e,{ref:t,sideCar:eP}))});e_.classNames=ec.classNames;var ej=new WeakMap,eT=new WeakMap,eZ={},eW=0,ez=function(e){return e&&(e.host||ez(e.parentNode))},e$=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=ez(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eZ[n]||(eZ[n]=new WeakMap);var u=eZ[n],i=[],l=new Set,a=new Set(o),c=function(e){!e||l.has(e)||(l.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||a.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,a=(ej.get(e)||0)+1,c=(u.get(e)||0)+1;ej.set(e,a),u.set(e,c),i.push(e),1===a&&o&&eT.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};
101return s(t),l.clear(),eW++,function(){i.forEach(function(e){var t=ej.get(e)-1,o=u.get(e)-1;ej.set(e,t),u.set(e,o),t||(eT.has(e)||e.removeAttribute(r),eT.delete(e)),o||e.removeAttribute(n)}),--eW||(ej=new WeakMap,ej=new WeakMap,eT=new WeakMap,eZ={})}},eq=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),e$(r,o,n,"aria-hidden")):function(){return null}},eK="Dialog",[eV,eU]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=()=>{let t=n.map(e=>g.createContext(e));return function(n){let r=(null==n?void 0:n[e])||t;return g.useMemo(()=>({["__scope".concat(e)]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=g.createContext(r),u=n.length;n=[...n,r];let i=t=>{var n;let{scope:r,children:i,...l}=t,a=(null==r?void 0:null===(n=r[e])||void 0===n?void 0:n[u])||o,c=g.useMemo(()=>l,Object.values(l));return(0,w.jsx)(a.Provider,{value:c,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var l;let a=(null==i?void 0:null===(l=i[e])||void 0===l?void 0:l[u])||o,c=g.useContext(a);if(c)return c;if(void 0!==r)return r;throw Error("`".concat(n,"` must be used within `").concat(t,"`"))}]},function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=t[0];if(1===t.length)return r;let o=()=>{let e=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){let n=e.reduce((e,n)=>{let{useScope:r,scopeName:o}=n,u=r(t)["__scope".concat(o)];return{...e,...u}},{});return g.useMemo(()=>({["__scope".concat(r.scopeName)]:n}),[n])}};return o.scopeName=r.scopeName,o}(r,...t)]}(eK),[eH,eX]=eV(eK),eY=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:u,modal:i=!0}=e,l=g.useRef(null),a=g.useRef(null),[c,s]=function(e){let{prop:t,defaultProp:n,onChange:r=()=>{},caller:o}=e,[u,i,l]=function(e){let{defaultProp:t,onChange:n}=e,[r,o]=g.useState(t),u=g.useRef(r),i=g.useRef(n);return S(()=>{i.current=n},[n]),g.useEffect(()=>{if(u.current!==r){var e;null===(e=i.current)||void 0===e||e.call(i,r),u.current=r}},[r,u]),[r,o,i]}({defaultProp:n,onChange:r}),a=void 0!==t,c=a?t:u;{let e=g.useRef(void 0!==t);g.useEffect(()=>{let t=e.current;if(t!==a){let e=a?"controlled":"uncontrolled";console.warn("".concat(o," is changing from ").concat(t?"controlled":"uncontrolled"," to ").concat(e,". Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component."))}e.current=a},[a,o])}return[c,g.useCallback(e=>{if(a){let r="function"==typeof e?e(t):e;if(r!==t){var n;null===(n=l.current)||void 0===n||n.call(l,r)}}else i(e)},[a,t,i,l])]}({prop:r,defaultProp:null!=o&&o,onChange:u,caller:eK});return(0,w.jsx)(eH,{scope:t,triggerRef:l,contentRef:a,contentId:D(),titleId:D(),descriptionId:D(),open:c,onOpenChange:s,onOpenToggle:g.useCallback(()=>s(e=>!e),[s]),modal:i,children:n})};eY.displayName=eK;var eJ="DialogTrigger";g.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eX(eJ,n),u=C(t,o.triggerRef);return(0,w.jsx)(B.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":to(o.open),...r,ref:u,onClick:E(e.onClick,o.onOpenToggle)})}).displayName=eJ;var eG="DialogPortal",[eQ,e0]=eV(eG,{forceMount:void 0}),e1=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,u=eX(eG,t);return(0,w.jsx)(eQ,{scope:t,forceMount:n,children:g.Children.map(r,e=>(0,w.jsx)(Y,{present:n||u.open,children:(0,w.jsx)(X,{asChild:!0,container:o,children:e})}))})};e1.displayName=eG;var e2="DialogOverlay",e4=g.forwardRef((e,t)=>{let n=e0(e2,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,u=eX(e2,e.__scopeDialog);return u.modal?(0,w.jsx)(Y,{present:r||u.open,children:(0,w.jsx)(e6,{...o,ref:t})}):null});e4.displayName=e2;var e3=F("DialogOverlay.RemoveScroll"),e6=g.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eX(e2,n);return(0,w.jsx)(e_,{as:e3,allowPinchZoom:!0,shards:[o.contentRef],children:(0,w.jsx)(B.div,{"data-state":to(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),e7="DialogContent",e8=g.forwardRef((e,t)=>
101{let n=e0(e7,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,u=eX(e7,e.__scopeDialog);return(0,w.jsx)(Y,{present:r||u.open,children:u.modal?(0,w.jsx)(e9,{...o,ref:t}):(0,w.jsx)(e5,{...o,ref:t})})});e8.displayName=e7;var e9=g.forwardRef((e,t)=>{let n=eX(e7,e.__scopeDialog),r=g.useRef(null),o=C(t,n.contentRef,r);return g.useEffect(()=>{let e=r.current;if(e)return eq(e)},[]),(0,w.jsx)(te,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:E(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:E(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:E(e.onFocusOutside,e=>e.preventDefault())})}),e5=g.forwardRef((e,t)=>{let n=eX(e7,e.__scopeDialog),r=g.useRef(!1),o=g.useRef(!1);return(0,w.jsx)(te,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var u,i;null===(u=e.onCloseAutoFocus)||void 0===u||u.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var u,i;null===(u=e.onInteractOutside)||void 0===u||u.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),te=g.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:u,...i}=e,l=eX(e7,n),a=g.useRef(null),c=C(t,a);return g.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Q()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Q()),G++,()=>{1===G&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),G--}},[]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)($,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:u,children:(0,w.jsx)(_,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":to(l.open),...i,ref:c,onDismiss:()=>l.onOpenChange(!1)})}),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(ta,{titleId:l.titleId}),(0,w.jsx)(tc,{contentRef:a,descriptionId:l.descriptionId})]})]})}),tt="DialogTitle";g.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eX(tt,n);return(0,w.jsx)(B.h2,{id:o.titleId,...r,ref:t})}).displayName=tt;var tn="DialogDescription";g.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eX(tn,n);return(0,w.jsx)(B.p,{id:o.descriptionId,...r,ref:t})}).displayName=tn;var tr="DialogClose";function to(e){return e?"open":"closed"}g.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eX(tr,n);return(0,w.jsx)(B.button,{type:"button",...r,ref:t,onClick:E(e.onClick,()=>o.onOpenChange(!1))})}).displayName=tr;var tu="DialogTitleWarning",[ti,tl]=function(e,t){let n=g.createContext(t),r=e=>{let{children:t,...r}=e,o=g.useMemo(()=>r,Object.values(r));return(0,w.jsx)(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){let o=g.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error("`".concat(r,"` must be used within `").concat(e,"`"))}]}(tu,{contentName:e7,titleName:tt,docsSlug:"dialog"}),ta=e=>{let{titleId:t}=e,n=tl(tu),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return g.useEffect(()=>{t&&!document.getElementById(t)&&console.error(r)},[r,t]),null},tc=e=>{let{contentRef:t,descriptionId:n}=e,r=tl("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return g.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(o)},[o,t,n]),null},ts='[cmdk-group=""]',td='[cmdk-group-items=""]',tf='[cmdk-item=""]',th="".concat(tf,':not([aria-disabled="true"])'),tp="cmdk-item-select",tv="data-value",tm=(e,t,n
101)=>{var r;return r=e,function e(t,n,r,o,u,i,l){if(i===n.length)return u===t.length?1:.99;var a="".concat(u,",").concat(i);if(void 0!==l[a])return l[a];for(var c,s,d,m,g=o.charAt(i),y=r.indexOf(g,u),E=0;y>=0;)(c=e(t,n,r,o,y+1,i+1,l))>E&&(y===u?c*=1:f.test(t.charAt(y-1))?(c*=.8,(d=t.slice(u,y-1).match(h))&&u>0&&(c*=Math.pow(.999,d.length))):p.test(t.charAt(y-1))?(c*=.9,(m=t.slice(u,y-1).match(v))&&u>0&&(c*=Math.pow(.999,m.length))):(c*=.17,u>0&&(c*=Math.pow(.999,y-u))),t.charAt(y)!==n.charAt(i)&&(c*=.9999)),(c<.1&&r.charAt(y-1)===o.charAt(i+1)||o.charAt(i+1)===o.charAt(i)&&r.charAt(y-1)!==o.charAt(i))&&.1*(s=e(t,n,r,o,y+1,i+2,l))>c&&(c=.1*s),c>E&&(E=c),y=r.indexOf(g,y+1);return l[a]=E,E}(r=n&&n.length>0?"".concat(r+" "+n.join(" ")):r,t,m(r),m(t),0,0,{})},tg=g.createContext(void 0),ty=()=>g.useContext(tg),tE=g.createContext(void 0),tb=()=>g.useContext(tE),tA=g.createContext(void 0),tC=g.forwardRef((e,t)=>{let n=tN(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=tN(()=>new Set),o=tN(()=>new Map),u=tN(()=>new Map),i=tN(()=>new Set),l=tF(e),{label:a,children:c,value:s,onValueChange:d,filter:f,shouldFilter:h,loop:p,disablePointerSelection:v=!1,vimBindings:m=!0,...y}=e,E=D(),b=D(),A=D(),C=g.useRef(null),w=tL();tI(()=>{if(void 0!==s){let e=s.trim();n.current.value=e,x.emit()}},[s]),tI(()=>{w(6,I)},[]);let x=g.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,u,i,a;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)F(),S(),w(1,R);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(A);e?e.focus():null==(o=document.getElementById(E))||o.focus()}if(w(7,()=>{var e;n.current.selectedItemId=null==(e=N())?void 0:e.id,x.emit()}),r||w(5,I),(null==(u=l.current)?void 0:u.value)!==void 0){null==(a=(i=l.current).onValueChange)||a.call(i,null!=t?t:"");return}}x.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),k=g.useMemo(()=>({value:(e,t,r)=>{var o;t!==(null==(o=u.current.get(e))?void 0:o.value)&&(u.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,M(t,r)),w(2,()=>{S(),x.emit()}))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),w(3,()=>{F(),S(),n.current.value||R(),x.emit()}),()=>{u.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=N();w(4,()=>{F(),(null==t?void 0:t.getAttribute("id"))===e&&R(),x.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{u.current.delete(e),o.current.delete(e)}),filter:()=>l.current.shouldFilter,label:a||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:E,inputId:A,labelId:b,listInnerRef:C}),[]);function M(e,t){var r,o;let u=null!=(o=null==(r=l.current)?void 0:r.filter)?o:tm;return e?u(e,n.current.search,t):0}function S(){if(!n.current.search||!1===l.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=o.current.get(n),u=0;r.forEach(t=>{u=Math.max(e.get(t),u)}),t.push([n,u])});let r=C.current;O().sort((t,n)=>{var r,o;let u=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(o=e.get(u))?o:0)}).forEach(e=>{let t=e.closest(td);t?t.appendChild(e.parentElement===t?e:e.closest("".concat(td," > *"))):r.appendChild(e.parentElement===r?e:e.closest("".concat(td," > *")))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=C.current)?void 0:t.querySelector("".concat(ts,"[").concat(tv,'="').concat(encodeURIComponent(e[0]),'"]'));null==n||n.parentElement.appendChild(n)})}function R(){let e=O().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(tv);x.setState("value",t||void 0)}function F(){var e,t,i,a;if(!n.current.search||!1===l.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let c=0;for(let o of r.current){let r=M(null!=(t=null==(e=u.current.get(o))?void 0:e.value)?t:"",null!=(a=null==(i=u.current.get(o))?void 0:i.keywords)?a:[]);n.current.filtered.items.set(o,r),r>0&&c++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function I(){var e,t,n;let r=N();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(ts))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function N(){var e;return null==(e=C.current)?void 0:e.querySelector("".concat(tf,'[aria-selected="true"]'))}function O(){var e;return Array.from((null==(e=C.current)?void 0:e.querySelectorAll(th))||[])}
101function L(e){let t=O()[e];t&&x.setState("value",t.getAttribute(tv))}function P(e){var t;let n=N(),r=O(),o=r.findIndex(e=>e===n),u=r[o+e];null!=(t=l.current)&&t.loop&&(u=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),u&&x.setState("value",u.getAttribute(tv))}function _(e){let t=N(),n=null==t?void 0:t.closest(ts),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,ts):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,ts))?void 0:n.querySelector(th);r?x.setState("value",r.getAttribute(tv)):P(e)}let j=()=>L(O().length-1),T=e=>{e.preventDefault(),e.metaKey?j():e.altKey?_(1):P(1)},Z=e=>{e.preventDefault(),e.metaKey?L(0):e.altKey?_(-1):P(-1)};return g.createElement(B.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=y.onKeyDown)||t.call(y,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||n))switch(e.key){case"n":case"j":m&&e.ctrlKey&&T(e);break;case"ArrowDown":T(e);break;case"p":case"k":m&&e.ctrlKey&&Z(e);break;case"ArrowUp":Z(e);break;case"Home":e.preventDefault(),L(0);break;case"End":e.preventDefault(),j();break;case"Enter":{e.preventDefault();let t=N();if(t){let e=new Event(tp);t.dispatchEvent(e)}}}}},g.createElement("label",{"cmdk-label":"",htmlFor:k.inputId,id:k.labelId,style:t_},a),tP(e,e=>g.createElement(tE.Provider,{value:x},g.createElement(tg.Provider,{value:k},e))))}),tw=g.forwardRef((e,t)=>{var n,r;let o=D(),u=g.useRef(null),i=g.useContext(tA),l=ty(),a=tF(e),c=null!=(r=null==(n=a.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;tI(()=>{if(!c)return l.item(o,null==i?void 0:i.id)},[c]);let s=tO(o,u,[e.value,e.children,u],e.keywords),d=tb(),f=tB(e=>e.value&&e.value===s.current),h=tB(e=>!!c||!1===l.filter()||!e.search||e.filtered.items.get(o)>0);function p(){var e,t;v(),null==(t=(e=a.current).onSelect)||t.call(e,s.current)}function v(){d.setState("value",s.current,!0)}if(g.useEffect(()=>{let t=u.current;if(!(!t||e.disabled))return t.addEventListener(tp,p),()=>t.removeEventListener(tp,p)},[h,e.onSelect,e.disabled]),!h)return null;let{disabled:m,value:y,onSelect:E,forceMount:b,keywords:C,...w}=e;return g.createElement(B.div,{ref:A(u,t),...w,id:o,"cmdk-item":"",role:"option","aria-disabled":!!m,"aria-selected":!!f,"data-disabled":!!m,"data-selected":!!f,onPointerMove:m||l.getDisablePointerSelection()?void 0:v,onClick:m?void 0:p},e.children)}),tx=g.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...u}=e,i=D(),l=g.useRef(null),a=g.useRef(null),c=D(),s=ty(),d=tB(e=>!!o||!1===s.filter()||!e.search||e.filtered.groups.has(i));tI(()=>s.group(i),[]),tO(i,l,[e.value,e.heading,a]);let f=g.useMemo(()=>({id:i,forceMount:o}),[o]);return g.createElement(B.div,{ref:A(l,t),...u,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&g.createElement("div",{ref:a,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),tP(e,e=>g.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},g.createElement(tA.Provider,{value:f},e))))}),tk=g.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=g.useRef(null),u=tB(e=>!e.search);return n||u?g.createElement(B.div,{ref:A(o,t),...r,"cmdk-separator":"",role:"separator"}):null}),tM=g.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,u=tb(),i=tB(e=>e.search),l=tB(e=>e.selectedItemId),a=ty();return g.useEffect(()=>{null!=e.value&&u.setState("search",e.value)},[e.value]),g.createElement(B.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":a.listId,"aria-labelledby":a.labelId,"aria-activedescendant":l,id:a.inputId,type:"text",value:o?e.value:i,onChange:e=>{o||u.setState("search",e.target.value),null==n||n(e.target.value)}})}),tD=g.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,u=g.useRef(null),i=g.useRef(null),l=tB(e=>e.selectedItemId),a=ty();return g.useEffect(()=>{if(i.current&&u.current){let e=i.current,t=u.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),g.createElement(B.div,{ref:A(u,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":r,id:a.listId},tP(e,e=>g.createElement("div",{ref:A(i,a.listInnerRef),"cmdk-list-sizer":""},e)))}),tS=g.forwardRef((e,t)=>
101{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:u,container:i,...l}=e;return g.createElement(eY,{open:n,onOpenChange:r},g.createElement(e1,{container:i},g.createElement(e4,{"cmdk-overlay":"",className:o}),g.createElement(e8,{"aria-label":e.label,"cmdk-dialog":"",className:u},g.createElement(tC,{ref:t,...l}))))}),tR=Object.assign(tC,{List:tD,Item:tw,Input:tM,Group:tx,Separator:tk,Dialog:tS,Empty:g.forwardRef((e,t)=>tB(e=>0===e.filtered.count)?g.createElement(B.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:g.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...u}=e;return g.createElement(B.div,{ref:t,...u,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},tP(e,e=>g.createElement("div",{"aria-hidden":!0},e)))})});function tF(e){let t=g.useRef(e);return tI(()=>{t.current=e}),t}var tI=g.useLayoutEffect;function tN(e){let t=g.useRef();return void 0===t.current&&(t.current=e()),t}function tB(e){let t=tb(),n=()=>e(t.snapshot());return g.useSyncExternalStore(t.subscribe,n,n)}function tO(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=g.useRef(),u=ty();return tI(()=>{var i;let l=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),a=r.map(e=>e.trim());u.value(e,l,a),null==(i=t.current)||i.setAttribute(tv,l),o.current=l}),o}var tL=()=>{let[e,t]=g.useState(),n=tN(()=>new Map);return tI(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function tP(e,t){let n,{asChild:r,children:o}=e;return r&&g.isValidElement(o)?g.cloneElement("function"==typeof(n=o.type)?n(o.props):"render"in n?n.render(o.props):o,{ref:o.ref},t(o.props.children)):t(o)}var t_={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},28745:function(e,t,n){n.d(t,{M:function(){return g}});var r=n(3827),o=n(64090),u=n(53856),i=n(72435),l=n(24561),a=n(93449);class c extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function s(e){let{children:t,isPresent:n}=e,u=(0,o.useId)(),i=(0,o.useRef)(null),l=(0,o.useRef)({width:0,height:0,top:0,left:0}),{nonce:s}=(0,o.useContext)(a._);return(0,o.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:o}=l.current;if(n||!i.current||!e||!t)return;i.current.dataset.motionPopId=u;let a=document.createElement("style");return s&&(a.nonce=s),document.head.appendChild(a),a.sheet&&a.sheet.insertRule('\n [data-motion-pop-id="'.concat(u,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n top: ").concat(r,"px !important;\n left: ").concat(o,"px !important;\n }\n ")),()=>{document.head.removeChild(a)}},[n]),(0,r.jsx)(c,{isPresent:n,childRef:i,sizeRef:l,children:o.cloneElement(t,{ref:i})})}let d=e=>{let{children:t,initial:n,isPresent:u,onExitComplete:a,custom:c,presenceAffectsLayout:d,mode:h}=e,p=(0,i.h)(f),v=(0,o.useId)(),m=(0,o.useCallback)(e=>{for(let t of(p.set(e,!0),p.values()))if(!t)return;a&&a()},[p,a]),g=(0,o.useMemo)(()=>({id:v,initial:n,isPresent:u,custom:c,onExitComplete:m,register:e=>(p.set(e,!1),()=>p.delete(e))}),d?[Math.random(),m]:[u,m]);return(0,o.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[u]),o.useEffect(()=>{u||p.size||!a||a()},[u]),"popLayout"===h&&(t=(0,r.jsx)(s,{isPresent:u,children:t})),(0,r.jsx)(l.O.Provider,{value:g,children:t})};function f(){return new Map}var h=n(53177);let p=e=>e.key||"";function v(e){let t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}var m=n(45526);let g=e=>{let{children:t,custom:n,initial:l=!0,onExitComplete:a,presenceAffectsLayout:c=!0,mode:s="sync",propagate:f=!1}=e,[g,y]=(0,h.oO)(f),E=(0,o.useMemo)(()=>v(t),[t]),b=f&&!g?[]:E.map(p),A=(0,o.useRef)(!0),C=(0,o.useRef)(E),w=(0,i.h)(()=>new Map),[x,k]=(0,o.useState)(E),[M,D]=(0,o.useState)(E);(0,m.L)(()=>{A.current=!1,C.current=E;for(let e=0;e<M.length;e++){let t=p(M[e]);b.includes(t)?w.delete(t):!0!==w.get(t)&&w.set(t,!1)}},[M,b.length,b.join("-")]);let S=[];if(E!==x){let e=[...E];for(let t=0;t<M.length;t++){let n=M[t],r=p(n);b.includes(r)||(e.splice(t,0,n),S.push(n))}"wait"===s&&S.length&&(e=S),D(v(e)),k(E);return}let{forceRender:R}=(0,o.useContext)(u.p);return(0,r.jsx)(r.Fragment,{children:M.map(e=>{let t=p(e),o=(!f||!!g)&&(E===M||b.includes(t));return(0,r.jsx)(d,{isPresent:o,initial:(!A.current||!!l)&&void 0,custom:o?void 0:n,presenceAffectsLayout:c,mode:s,onExitComplete:o?void 0:()=>
101{if(!w.has(t))return;w.set(t,!0);let e=!0;w.forEach(t=>{t||(e=!1)}),e&&(null==R||R(),D(C.current),f&&(null==y||y()),a&&a())},children:e},t)})})}},10684:function(e,t,n){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===s(e)}n.d(t,{Z:function(){return Q}});let o=1/0;function u(e){return"string"==typeof e}function i(e){return"number"==typeof e}function l(e){return"object"==typeof e}function a(e){return null!=e}function c(e){return!e.trim().length}function s(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let d=e=>"Invalid value for key ".concat(e),f=e=>"Pattern length exceeds max of ".concat(e,"."),h=e=>"Missing ".concat(e," property in key"),p=e=>"Property 'weight' in key '".concat(e,"' must be a positive integer"),v=Object.prototype.hasOwnProperty;class m{get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=g(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}}function g(e){let t=null,n=null,o=null,i=1,l=null;if(u(e)||r(e))o=e,t=y(e),n=E(e);else{if(!v.call(e,"name"))throw Error(h("name"));let r=e.name;if(o=r,v.call(e,"weight")&&(i=e.weight)<=0)throw Error(p(r));t=y(r),n=E(r),l=e.getFn}return{path:t,id:n,weight:i,src:o,getFn:l}}function y(e){return r(e)?e:e.split(".")}function E(e){return r(e)?e.join("."):e}var b={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,t){let n=[],c=!1,d=(e,t,f)=>{if(a(e)){if(t[f]){var h,p;let v=e[t[f]];if(a(v)){if(f===t.length-1&&(u(v)||i(v)||!0===(h=v)||!1===h||l(p=h)&&null!==p&&"[object Boolean]"==s(h)))n.push(null==v?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-o?"-0":t}(v));else if(r(v)){c=!0;for(let e=0,n=v.length;e<n;e+=1)d(v[e],t,f+1)}else t.length&&d(v,t,f+1)}}else n.push(e)}};return d(e,u(t)?t.split("."):t,0),c?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};let A=/[^ ]+/g;class C{setSources(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}setIndexRecords(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}setKeys(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,u(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();u(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!a(e)||c(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach((t,o)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(a(i)){if(r(i)){let e=[],t=[{nestedArrIndex:-1,value:i}];for(;t.length;){let{nestedArrIndex:n,value:o}=t.pop();if(a(o)){if(u(o)&&!c(o)){let t={v:o,i:n,n:this.norm.get(o)};e.push(t)}else r(o)&&o.forEach((e,n)=>{t.push({nestedArrIndex:n,value:e})})}}n.$[o]=e}else if(u(i)&&!c(i)){let e={v:i,n:this.norm.get(i)};n.$[o]=e}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}constructor({getFn:e=b.getFn,fieldNormWeight:t=b.fieldNormWeight}={}){this.norm=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=new Map,r=Math.pow(10,t);return{get(t){let o=t.match(A).length;if(n.has(o))return n.get(o);let u=parseFloat(Math.round(1/Math.pow(o,.5*e)*r)/r);return n.set(o,u),u},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}}function w(e,t){let{getFn:n=b.getFn,fieldNormWeight:r=b.fieldNormWeight}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=new C({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(g)),o.setSources(t),o.create(),o}function x(e){let{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=b.distance,ignoreLocation:u=b.ignoreLocation}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t/e.length;if(u)return i;let l=Math.abs(r-n);return o?i+l/o:l?1:i}let k=String.prototype.normalize?e=>
101e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class M{searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?k(e):e,this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:o,distance:u,threshold:i,findAllMatches:l,minMatchCharLength:a,ignoreLocation:c}=this.options,s=[],d=0,h=!1;this.chunks.forEach(t=>{let{pattern:n,alphabet:p,startIndex:v}=t,{isMatch:m,score:g,indices:y}=function(e,t,n){let r,{location:o=b.location,distance:u=b.distance,threshold:i=b.threshold,findAllMatches:l=b.findAllMatches,minMatchCharLength:a=b.minMatchCharLength,includeMatches:c=b.includeMatches,ignoreLocation:s=b.ignoreLocation}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t.length>32)throw Error(f(32));let d=t.length,h=e.length,p=Math.max(0,Math.min(o,h)),v=i,m=p,g=a>1||c,y=g?Array(h):[];for(;(r=e.indexOf(t,m))>-1;)if(v=Math.min(x(t,{currentLocation:r,expectedLocation:p,distance:u,ignoreLocation:s}),v),m=r+d,g){let e=0;for(;e<d;)y[r+e]=1,e+=1}m=-1;let E=[],A=1,C=d+h,w=1<<d-1;for(let r=0;r<d;r+=1){let o=0,i=C;for(;o<i;)x(t,{errors:r,currentLocation:p+i,expectedLocation:p,distance:u,ignoreLocation:s})<=v?o=i:C=i,i=Math.floor((C-o)/2+o);C=i;let a=Math.max(1,p-i+1),c=l?h:Math.min(p+i,h)+d,f=Array(c+2);f[c+1]=(1<<r)-1;for(let o=c;o>=a;o-=1){let i=o-1,l=n[e.charAt(i)];if(g&&(y[i]=+!!l),f[o]=(f[o+1]<<1|1)&l,r&&(f[o]|=(E[o+1]|E[o])<<1|1|E[o+1]),f[o]&w&&(A=x(t,{errors:r,currentLocation:i,expectedLocation:p,distance:u,ignoreLocation:s}))<=v){if(v=A,(m=i)<=p)break;a=Math.max(1,2*p-m)}}if(x(t,{errors:r+1,currentLocation:p,expectedLocation:p,distance:u,ignoreLocation:s})>v)break;E=f}let k={isMatch:m>=0,score:Math.max(.001,A)};if(g){let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.minMatchCharLength,n=[],r=-1,o=-1,u=0;for(let i=e.length;u<i;u+=1){let i=e[u];i&&-1===r?r=u:i||-1===r||((o=u-1)-r+1>=t&&n.push([r,o]),r=-1)}return e[u-1]&&u-r>=t&&n.push([r,u-1]),n}(y,a);e.length?c&&(k.indices=e):k.isMatch=!1}return k}(e,n,p,{location:o+v,distance:u,threshold:i,findAllMatches:l,minMatchCharLength:a,includeMatches:r,ignoreLocation:c});m&&(h=!0),d+=g,m&&y&&(s=[...s,...y])});let p={isMatch:h,score:h?d/this.chunks.length:1};return h&&r&&(p.indices=s),p}constructor(e,{location:t=b.location,threshold:n=b.threshold,distance:r=b.distance,includeMatches:o=b.includeMatches,findAllMatches:u=b.findAllMatches,minMatchCharLength:i=b.minMatchCharLength,isCaseSensitive:l=b.isCaseSensitive,ignoreDiacritics:a=b.ignoreDiacritics,ignoreLocation:c=b.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:u,minMatchCharLength:i,isCaseSensitive:l,ignoreDiacritics:a,ignoreLocation:c},e=l?e:e.toLowerCase(),e=a?k(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let s=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0,t=d%32,n=d-t;
101for(;e<n;)s(this.pattern.substr(e,32),e),e+=32;if(t){let e=d-32;s(this.pattern.substr(e),e)}}else s(this.pattern,0)}}class D{static isMultiMatch(e){return S(e,this.multiRegex)}static isSingleMatch(e){return S(e,this.singleRegex)}search(){}constructor(e){this.pattern=e}}function S(e,t){let n=e.match(t);return n?n[1]:null}class R extends D{static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}constructor(e){super(e)}}class F extends D{static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}constructor(e){super(e)}}class I extends D{static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}constructor(e){super(e)}}class N extends D{static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}constructor(e){super(e)}}class B extends D{static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}constructor(e){super(e)}}class O extends D{static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}constructor(e){super(e)}}class L extends D{static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}constructor(e,{location:t=b.location,threshold:n=b.threshold,distance:r=b.distance,includeMatches:o=b.includeMatches,findAllMatches:u=b.findAllMatches,minMatchCharLength:i=b.minMatchCharLength,isCaseSensitive:l=b.isCaseSensitive,ignoreDiacritics:a=b.ignoreDiacritics,ignoreLocation:c=b.ignoreLocation}={}){super(e),this._bitapSearch=new M(e,{location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:u,minMatchCharLength:i,isCaseSensitive:l,ignoreDiacritics:a,ignoreLocation:c})}}class P extends D{static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0,r=[],o=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+o,r.push([t,n-1]);let u=!!r.length;return{isMatch:u,score:u?0:1,indices:r}}constructor(e){super(e)}}let _=[R,P,I,N,O,B,F,L],j=_.length,T=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Z=new Set([L.type,P.type]);class W{static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:o}=this.options;e=r?e:e.toLowerCase(),e=o?k(e):e;let u=0,i=[],l=0;for(let r=0,o=t.length;r<o;r+=1){let o=t[r];i.length=0,u=0;for(let t=0,r=o.length;t<r;t+=1){let r=o[t],{isMatch:a,indices:c,score:s}=r.search(e);if(a){if(u+=1,l+=s,n){let e=r.constructor.type;Z.has(e)?i=[...i,...c]:i.push(c)}}else{l=0,u=0,i.length=0;break}}if(u){let e={isMatch:!0,score:l/u};return n&&(e.indices=i),e}}return{isMatch:!1,score:1}}constructor(e,{isCaseSensitive:t=b.isCaseSensitive,ignoreDiacritics:n=b.ignoreDiacritics,includeMatches:r=b.includeMatches,minMatchCharLength:o=b.minMatchCharLength,ignoreLocation:u=b.ignoreLocation,findAllMatches:i=b.findAllMatches,location:l=b.location,threshold:a=b.threshold,distance:c=b.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:o,findAllMatches:i,ignoreLocation:u,location:l,threshold:a,distance:c},e=t?e:e.toLowerCase(),e=n?k(e):e,this.pattern=e,this.query=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map(e=>{let n=e.trim().split(T).filter(e=>e&&!!e.trim()),r=[];for(let e=0,o=n.length;e<o;e+=1){let o=n[e],u=!1,i=-1;for(;!u&&++i<j;){let e=_[i],n=e.isMultiMatch(o);n&&(r.push(new e(n,t)),u=!0)}if(!u)for(i=-1;++i<j;){let e=_[i],n=e.isSingleMatch(o);if(n){r.push(new e(n,t));break}}}return r})}(this.pattern,this.options)}}let z=[];function $(e,t){for(let n=0,r=z.length;n<r;n+=1){let r=z[n];if(r.condition(e,t))return new r(e,t)}return new M(e,t)}let q={AND:"$and",OR:"$or"},K={PATH:"$path",PATTERN:"$val"},V=e=>!!(e[q.AND]||e[q.OR]),U=e=>!!e[K.PATH],H=e=>!r(e)&&l(e)&&!V(e),X=e=>({[q.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Y(e,t){let{auto:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e=>{let i=Object.keys(e),l=U(e);if(!l&&i.length>1&&!V(e))return o(X(e));if(H(e)){let r=l?e[K.PATH]:i[0],o=l?e[K.PATTERN]:e[r];if(!u(o))throw Error(d(r));let a={keyId:E(r),pattern:o};return n&&(a.searcher=$(o,t)),a}let a={children:[],operator:i[0]};
101return i.forEach(t=>{let n=e[t];r(n)&&n.forEach(e=>{a.children.push(o(e))})}),a};return V(e)||(e=X(e)),o(e)}function J(e,t){let n=e.matches;t.matches=[],a(n)&&n.forEach(e=>{if(!a(e.indices)||!e.indices.length)return;let{indices:n,value:r}=e,o={indices:n,value:r};e.key&&(o.key=e.key.src),e.idx>-1&&(o.refIndex=e.idx),t.matches.push(o)})}function G(e,t){t.score=e.score}class Q{setCollection(e,t){if(this._docs=e,t&&!(t instanceof C))throw Error("Incorrect 'index' type");this._myIndex=t||w(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){a(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>!1,t=[];for(let n=0,r=this._docs.length;n<r;n+=1){let o=this._docs[n];e(o,n)&&(this.removeAt(n),n-=1,r-=1,t.push(o))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e){let{limit:t=-1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{includeMatches:n,includeScore:r,shouldSort:o,sortFn:l,ignoreFieldNorm:a}=this.options,c=u(e)?u(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return!function(e,t){let{ignoreFieldNorm:n=b.ignoreFieldNorm}=t;e.forEach(e=>{let t=1;e.matches.forEach(e=>{let{key:r,norm:o,score:u}=e,i=r?r.weight:null;t*=Math.pow(0===u&&i?Number.EPSILON:u,(i||1)*(n?1:o))}),e.score=t})}(c,{ignoreFieldNorm:a}),o&&c.sort(l),i(t)&&t>-1&&(c=c.slice(0,t)),function(e,t){let{includeMatches:n=b.includeMatches,includeScore:r=b.includeScore}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[];return n&&o.push(J),r&&o.push(G),e.map(e=>{let{idx:n}=e,r={item:t[n],refIndex:n};return o.length&&o.forEach(t=>{t(e,r)}),r})}(c,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){let t=$(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach(e=>{let{v:n,i:o,n:u}=e;if(!a(n))return;let{isMatch:i,score:l,indices:c}=t.searchIn(n);i&&r.push({item:n,idx:o,matches:[{score:l,value:n,norm:u,indices:c}]})}),r}_searchLogical(e){let t=Y(e,this.options),n=(e,t,r)=>{if(!e.children){let{keyId:n,searcher:o}=e,u=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:o});return u&&u.length?[{idx:r,item:t,matches:u}]:[]}let o=[];for(let u=0,i=e.children.length;u<i;u+=1){let i=n(e.children[u],t,r);if(i.length)o.push(...i);else if(e.operator===q.AND)return[]}return o},r=this._myIndex.records,o={},u=[];return r.forEach(e=>{let{$:r,i:i}=e;if(a(r)){let e=n(t,r,i);e.length&&(o[i]||(o[i]={idx:i,item:r,matches:[]},u.push(o[i])),e.forEach(e=>{let{matches:t}=e;o[i].matches.push(...t)}))}}),u}_searchObjectList(e){let t=$(e,this.options),{keys:n,records:r}=this._myIndex,o=[];return r.forEach(e=>{let{$:r,i:u}=e;if(!a(r))return;let i=[];n.forEach((e,n)=>{i.push(...this._findMatches({key:e,value:r[n],searcher:t}))}),i.length&&o.push({idx:u,item:r,matches:i})}),o}_findMatches(e){let{key:t,value:n,searcher:o}=e;if(!a(n))return[];let u=[];if(r(n))n.forEach(e=>{let{v:n,i:r,n:i}=e;if(!a(n))return;let{isMatch:l,score:c,indices:s}=o.searchIn(n);l&&u.push({score:c,key:t,value:n,idx:r,norm:i,indices:s})});else{let{v:e,n:r}=n,{isMatch:i,score:l,indices:a}=o.searchIn(e);i&&u.push({score:l,key:t,value:e,norm:r,indices:a})}return u}constructor(e,t={},n){this.options={...b,...t},this.options.useExtendedSearch,this._keyStore=new m(this.options.keys),this.setCollection(e,n)}}Q.version="7.1.0",Q.createIndex=w,Q.parseIndex=function(e){let{getFn:t=b.getFn,fieldNormWeight:n=b.fieldNormWeight}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{keys:r,records:o}=e,u=new C({getFn:t,fieldNormWeight:n});return u.setKeys(r),u.setIndexRecords(o),u},Q.config=b,Q.parseQuery=Y,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];z.push(...t)}(W)}}]);
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.