hackagent-webui 0.5.23.dev62__py3-none-any.whl → 0.5.26.dev65__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hackagent_webui/__init__.py +1 -1
- hackagent_webui/static/404.html +1 -1
- hackagent_webui/static/VERSION +1 -1
- hackagent_webui/static/_next/static/chunks/109-654aaa36bb44ad55.js +1 -0
- hackagent_webui/static/_next/static/chunks/168-a33d1f7eac818103.js +1 -0
- hackagent_webui/static/_next/static/chunks/210-86c6a66776f43b4f.js +1 -0
- hackagent_webui/static/_next/static/chunks/267-68673a68da8dc0ed.js +1 -0
- hackagent_webui/static/_next/static/chunks/352-9d98107ec1d2a19b.js +17 -0
- hackagent_webui/static/_next/static/chunks/452-93edd5e5c682593d.js +1 -0
- hackagent_webui/static/_next/static/chunks/592-cb13179874c3bab1.js +1 -0
- hackagent_webui/static/_next/static/chunks/630-d567a2d5c62c90f0.js +1 -0
- hackagent_webui/static/_next/static/chunks/704-e457c79de3cc7514.js +1 -0
- hackagent_webui/static/_next/static/chunks/{570-2cfb1925b42e0c87.js → 756-0acdfe10693b8afc.js} +1 -1
- hackagent_webui/static/_next/static/chunks/870-fd9b5a5e5bb99ffa.js +1 -0
- hackagent_webui/static/_next/static/chunks/877.8e1543796718ce2b.js +1 -0
- hackagent_webui/static/_next/static/chunks/918-f236042f5a6cc47e.js +1 -0
- hackagent_webui/static/_next/static/chunks/921-92a9ab4120f81d51.js +1 -0
- hackagent_webui/static/_next/static/chunks/924-5936172175b16f71.js +1 -0
- hackagent_webui/static/_next/static/chunks/app/agents/page-2ede712c1f31dd76.js +1 -0
- hackagent_webui/static/_next/static/chunks/app/api-keys/{page-c328dd1bd8b83c5d.js → page-1c219ac9dd1bcdd4.js} +1 -1
- hackagent_webui/static/_next/static/chunks/app/attacks/page-247041304bc4853c.js +1 -0
- hackagent_webui/static/_next/static/chunks/app/layout-88b65f1463c58138.js +1 -0
- hackagent_webui/static/_next/static/chunks/app/{page-1c03fd81f0ad4be8.js → page-67fe8c280f18e8a6.js} +1 -1
- hackagent_webui/static/_next/static/chunks/app/profile/{page-6a1a5ab06dd0f4f2.js → page-96240b9461a515e9.js} +1 -1
- hackagent_webui/static/_next/static/chunks/app/stats/page-457e2fc0286253b9.js +1 -0
- hackagent_webui/static/_next/static/chunks/{webpack-ecae86322f0a33a1.js → webpack-5f5c255a944acccf.js} +1 -1
- hackagent_webui/static/_next/static/css/99e7387e28657839.css +1 -0
- hackagent_webui/static/agents.html +1 -1
- hackagent_webui/static/agents.txt +5 -5
- hackagent_webui/static/api-keys.html +1 -1
- hackagent_webui/static/api-keys.txt +5 -5
- hackagent_webui/static/attacks.html +1 -1
- hackagent_webui/static/attacks.txt +5 -5
- hackagent_webui/static/campaign-export/runtime.js +64 -64
- hackagent_webui/static/campaign-export/styles.css +1 -1
- hackagent_webui/static/index.html +1 -1
- hackagent_webui/static/index.txt +5 -5
- hackagent_webui/static/profile.html +1 -1
- hackagent_webui/static/profile.txt +5 -5
- hackagent_webui/static/secrets.html +1 -1
- hackagent_webui/static/secrets.txt +5 -5
- hackagent_webui/static/stats.html +1 -1
- hackagent_webui/static/stats.txt +5 -5
- {hackagent_webui-0.5.23.dev62.dist-info → hackagent_webui-0.5.26.dev65.dist-info}/METADATA +1 -1
- hackagent_webui-0.5.26.dev65.dist-info/RECORD +75 -0
- hackagent_webui/static/_next/static/chunks/176-5cc7fc0b6b2515c7.js +0 -1
- hackagent_webui/static/_next/static/chunks/259-252d18d6e44b253a.js +0 -1
- hackagent_webui/static/_next/static/chunks/274-7bcbf1c829f21215.js +0 -1
- hackagent_webui/static/_next/static/chunks/343-a4d2eb0ec9b0ad08.js +0 -1
- hackagent_webui/static/_next/static/chunks/373-2cd9dd2f37667862.js +0 -1
- hackagent_webui/static/_next/static/chunks/41-19701c9e1d5392fe.js +0 -1
- hackagent_webui/static/_next/static/chunks/547-669ff4558f8f62ba.js +0 -1
- hackagent_webui/static/_next/static/chunks/576-18b5984bad944e1f.js +0 -1
- hackagent_webui/static/_next/static/chunks/602-e25fde26bccbeb75.js +0 -17
- hackagent_webui/static/_next/static/chunks/727-3d5d954e608613b1.js +0 -1
- hackagent_webui/static/_next/static/chunks/776-e05722d87e478223.js +0 -1
- hackagent_webui/static/_next/static/chunks/784-27c51ffcb299d644.js +0 -1
- hackagent_webui/static/_next/static/chunks/81-ac2b07fd6ed26676.js +0 -1
- hackagent_webui/static/_next/static/chunks/877.6c5ea5a15f1f6508.js +0 -1
- hackagent_webui/static/_next/static/chunks/924-4691ca4c204d197d.js +0 -1
- hackagent_webui/static/_next/static/chunks/app/agents/page-2e581fcca5116a94.js +0 -1
- hackagent_webui/static/_next/static/chunks/app/attacks/page-b2413be2a8ab61fc.js +0 -1
- hackagent_webui/static/_next/static/chunks/app/layout-9c1435d8710c346f.js +0 -1
- hackagent_webui/static/_next/static/chunks/app/stats/page-275a2b415a2f1e9b.js +0 -1
- hackagent_webui/static/_next/static/css/62a118f1cf702f73.css +0 -1
- hackagent_webui-0.5.23.dev62.dist-info/RECORD +0 -76
- /hackagent_webui/static/_next/static/{_tX_lqzSunwInD1lCGc5W → U7s5LqEUH8gEO4-nmwKZH}/_buildManifest.js +0 -0
- /hackagent_webui/static/_next/static/{_tX_lqzSunwInD1lCGc5W → U7s5LqEUH8gEO4-nmwKZH}/_ssgManifest.js +0 -0
- {hackagent_webui-0.5.23.dev62.dist-info → hackagent_webui-0.5.26.dev65.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[352],{5917:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},6191:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},12108:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},20063:(e,t,n)=>{var r=n(47260);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},24033:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},27937:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},34212:(e,t,n)=>{n.d(t,{q:()=>r});function r(e,[t,n]){return Math.min(n,Math.max(t,e))}},35646:(e,t,n)=>{n.d(t,{UC:()=>$,VY:()=>F,ZD:()=>D,ZL:()=>T,bL:()=>P,hE:()=>B,hJ:()=>I,l9:()=>L,rc:()=>M});var r=n(12115),o=n(3468),i=n(94446),l=n(88292),a=n(92556),s=n(32467),u=n(95155),c="AlertDialog",[d,f]=(0,o.A)(c,[l.Hs]),h=(0,l.Hs)(),p=e=>{let{__scopeAlertDialog:t,...n}=e,r=h(t);return(0,u.jsx)(l.bL,{...r,...n,modal:!0})};p.displayName=c;var m=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=h(n);return(0,u.jsx)(l.l9,{...o,...r,ref:t})});m.displayName="AlertDialogTrigger";var v=e=>{let{__scopeAlertDialog:t,...n}=e,r=h(t);return(0,u.jsx)(l.ZL,{...r,...n})};v.displayName="AlertDialogPortal";var g=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=h(n);return(0,u.jsx)(l.hJ,{...o,...r,ref:t})});g.displayName="AlertDialogOverlay";var y="AlertDialogContent",[b,w]=d(y),x=(0,s.Dc)("AlertDialogContent"),E=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:o,...s}=e,c=h(n),d=r.useRef(null),f=(0,i.s)(t,d),p=r.useRef(null);return(0,u.jsx)(l.G$,{contentName:y,titleName:S,docsSlug:"alert-dialog",children:(0,u.jsx)(b,{scope:n,cancelRef:p,children:(0,u.jsxs)(l.UC,{role:"alertdialog",...c,...s,ref:f,onOpenAutoFocus:(0,a.m)(s.onOpenAutoFocus,e=>{var t;e.preventDefault(),null==(t=p.current)||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,u.jsx)(x,{children:o}),(0,u.jsx)(R,{contentRef:d})]})})})});E.displayName=y;var S="AlertDialogTitle",C=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=h(n);return(0,u.jsx)(l.hE,{...o,...r,ref:t})});C.displayName=S;var O="AlertDialogDescription",N=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=h(n);return(0,u.jsx)(l.VY,{...o,...r,ref:t})});N.displayName=O;var A=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,o=h(n);return(0,u.jsx)(l.bm,{...o,...r,ref:t})});A.displayName="AlertDialogAction";var k="AlertDialogCancel",j=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=w(k,n),a=h(n),s=(0,i.s)(t,o);return(0,u.jsx)(l.bm,{...a,...r,ref:s})});j.displayName=k;var R=e=>{let{contentRef:t}=e,n="`".concat(y,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(y,"` by passing a `").concat(O,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(y,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return r.useEffect(()=>{var e;document.getElementById(null==(e=t.current)?void 0:e.getAttribute("aria-describedby"))||console.warn(n)},[n,t]),null},P=p,L=m,T=v,I=g,$=E,M=A,D=j,B=C,F=N},39867:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},52056:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},61362:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},61911:(e,t,n)=>{n.d(t,{_:()=>r});function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}},66218:(e,t,n)=>{n.d(t,{jH:()=>i});var r=n(12115);n(95155);var o=r.createContext(void 0);function i(e){let t=r.useContext(o);return e||t||"ltr"}},69023:(e,t,n)=>{n.d(t,{_:()=>o});var r=n(61911);function o(e,t,n){var o=(0,r._)(e,t,"set");if(o.set)o.set.call(e,n);else{if(!o.writable)throw TypeError("attempted to set read only private field");o.value=n}return n}},71360:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},75426:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},76412:(e,t,n)=>{n.d(t,{UC:()=>tT,In:()=>tP,q7:()=>t$,VF:()=>tD,p4:()=>tM,ZL:()=>tL,bL:()=>tk,wn:()=>tF,PP:()=>tB,l9:()=>tj,WT:()=>tR,LM:()=>tI});var r,o,i=n(12115),l=n(47650),a=n(34212),s=n(92556),u=n(97239),c=n(97999),d=n(69023),f=n(3468),h=n(94446),p=n(95155);function m(e){let t=function(e){let t=i.forwardRef((e,t)=>{var n,r,o;let l,a,{children:s,...u}=e,c=i.isValidElement(s)?(a=(l=null==(r=Object.getOwnPropertyDescriptor((n=s).props,"ref"))?void 0:r.get)&&"isReactWarning"in l&&l.isReactWarning)?n.ref:(a=(l=null==(o=Object.getOwnPropertyDescriptor(n,"ref"))?void 0:o.get)&&"isReactWarning"in l&&l.isReactWarning)?n.props.ref:n.props.ref||n.ref:void 0,d=(0,h.s)(c,t);if(i.isValidElement(s)){let e=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=i(...t);return o(...t),r}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(u,s.props);return s.type!==i.Fragment&&(e.ref=d),i.cloneElement(s,e)}return i.Children.count(s)>1?i.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}(e),n=i.forwardRef((e,n)=>{let{children:r,...o}=e,l=i.Children.toArray(r),a=l.find(g);if(a){let e=a.props.children,r=l.map(t=>t!==a?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,p.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,p.jsx)(t,{...o,ref:n,children:r})});return n.displayName="".concat(e,".Slot"),n}var v=Symbol("radix.slottable");function g(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===v}var y=new WeakMap;function b(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=w(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function w(e){return e!=e||0===e?0:Math.trunc(e)}r=new WeakMap,class e extends Map{set(e,t){return y.get(this)&&(this.has(e)?(0,u._)(this,r)[(0,u._)(this,r).indexOf(e)]=e:(0,u._)(this,r).push(e)),super.set(e,t),this}insert(e,t,n){let o,i=this.has(t),l=(0,u._)(this,r).length,a=w(e),s=a>=0?a:l+a,c=s<0||s>=l?-1:s;if(c===this.size||i&&c===this.size-1||-1===c)return this.set(t,n),this;let d=this.size+ +!i;a<0&&s++;let f=[...(0,u._)(this,r)],h=!1;for(let e=s;e<d;e++)if(s===e){let r=f[e];f[e]===t&&(r=f[e+1]),i&&this.delete(t),o=this.get(r),this.set(t,n)}else{h||f[e-1]!==t||(h=!0);let n=f[h?e:e-1],r=o;o=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=(0,u._)(this,r).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let o=(0,u._)(this,r).indexOf(e);return -1===o?this:this.insert(o,t,n)}after(e){let t=(0,u._)(this,r).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let o=(0,u._)(this,r).indexOf(e);return -1===o?this:this.insert(o+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return(0,d._)(this,r,[]),super.clear()}delete(e){let t=super.delete(e);return t&&(0,u._)(this,r).splice((0,u._)(this,r).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=b((0,u._)(this,r),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=b((0,u._)(this,r),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return(0,u._)(this,r).indexOf(e)}keyAt(e){return b((0,u._)(this,r),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=0,l=null!=o?o:this.at(0);for(let e of this)l=0===i&&1===t.length?e:Reflect.apply(r,this,[l,e,i,this]),i++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);i=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[i,n,e,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=[...this.entries()];return o.splice(...n),new e(o)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),(0,c._)(this,r,{writable:!0,value:void 0}),(0,d._)(this,r,[...super.keys()]),y.set(this,!0)}};var x=n(66218),E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=m(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),S=n(70222),C=n(59584),O="dismissableLayer.update",N=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),A=i.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,...m}=e,v=i.useContext(N),[g,y]=i.useState(null),b=null!=(r=null==g?void 0:g.ownerDocument)?r:null==(n=globalThis)?void 0:n.document,[,w]=i.useState({}),x=(0,h.s)(t,e=>y(e)),A=Array.from(v.layers),[R]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),P=A.indexOf(R),L=g?A.indexOf(g):-1,T=v.layersWithOutsidePointerEventsDisabled.size>0,I=L>=P,$=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,S.c)(e),o=i.useRef(!1),l=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){j("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...v.branches].some(e=>e.contains(t));I&&!n&&(null==u||u(e),null==d||d(e),e.defaultPrevented||null==f||f())},b),M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,S.c)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&j("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;![...v.branches].some(e=>e.contains(t))&&(null==c||c(e),null==d||d(e),e.defaultPrevented||null==f||f())},b);return(0,C.U)(e=>{L===v.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))},b),i.useEffect(()=>{if(g)return l&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(o=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(g)),v.layers.add(g),k(),()=>{l&&1===v.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=o)}},[g,b,l,v]),i.useEffect(()=>()=>{g&&(v.layers.delete(g),v.layersWithOutsidePointerEventsDisabled.delete(g),k())},[g,v]),i.useEffect(()=>{let e=()=>w({});return document.addEventListener(O,e),()=>document.removeEventListener(O,e)},[]),(0,p.jsx)(E.div,{...m,ref:x,style:{pointerEvents:T?I?"auto":"none":void 0,...e.style},onFocusCapture:(0,s.m)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,s.m)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,s.m)(e.onPointerDownCapture,$.onPointerDownCapture)})});function k(){let e=new CustomEvent(O);document.dispatchEvent(e)}function j(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&i.addEventListener(e,t,{once:!0}),o)i&&l.flushSync(()=>i.dispatchEvent(a));else i.dispatchEvent(a)}A.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(N),r=i.useRef(null),o=(0,h.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,p.jsx)(E.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var R=n(19526),P="focusScope.autoFocusOnMount",L="focusScope.autoFocusOnUnmount",T={bubbles:!1,cancelable:!0},I=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...a}=e,[s,u]=i.useState(null),c=(0,S.c)(o),d=(0,S.c)(l),f=i.useRef(null),m=(0,h.s)(t,e=>u(e)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(v.paused||!s)return;let t=e.target;s.contains(t)?f.current=t:D(f.current,{select:!0})},t=function(e){if(v.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||D(f.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&&D(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,v.paused]),i.useEffect(()=>{if(s){B.add(v);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(P,T);s.addEventListener(P,c),s.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(D(r,{select:t}),document.activeElement!==n)return}($(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&D(s))}return()=>{s.removeEventListener(P,c),setTimeout(()=>{let t=new CustomEvent(L,T);s.addEventListener(L,d),s.dispatchEvent(t),t.defaultPrevented||D(null!=e?e:document.body,{select:!0}),s.removeEventListener(L,d),B.remove(v)},0)}}},[s,c,d,v]);let g=i.useCallback(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=$(e);return[M(t,e),M(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&D(i,{select:!0})):(e.preventDefault(),n&&D(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,v.paused]);return(0,p.jsx)(E.div,{tabIndex:-1,...a,ref:m,onKeyDown:g})});function $(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 M(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 D(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()}}I.displayName="FocusScope";var B=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=F(e,t)).unshift(t)},remove(t){var n;null==(n=(e=F(e,t))[0])||n.resume()}}}();function F(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var _=n(68946),W=n(88334),K=n(58146),U=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,p.jsx)(E.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,p.jsx)("polygon",{points:"0,0 30,0 15,10"})})});U.displayName="Arrow";var z=n(4129),V=n(84288),H="Popper",[Y,J]=(0,f.A)(H),[q,X]=Y(H),Z=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return(0,p.jsx)(q,{scope:t,anchor:r,onAnchorChange:o,children:n})};Z.displayName=H;var Q="PopperAnchor",G=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,l=X(Q,n),a=i.useRef(null),s=(0,h.s)(t,a);return i.useEffect(()=>{l.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,p.jsx)(E.div,{...o,ref:s})});G.displayName=Q;var ee="PopperContent",[et,en]=Y(ee),er=i.forwardRef((e,t)=>{var n,r,o,l,a,s,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:m=0,align:v="center",alignOffset:g=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:C="partial",hideWhenDetached:O=!1,updatePositionStrategy:N="optimized",onPlaced:A,...k}=e,j=X(ee,d),[R,P]=i.useState(null),L=(0,h.s)(t,e=>P(e)),[T,I]=i.useState(null),$=(0,V.X)(T),M=null!=(u=null==$?void 0:$.width)?u:0,D=null!=(c=null==$?void 0:$.height)?c:0,B="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},F=Array.isArray(w)?w:[w],_=F.length>0,U={padding:B,boundary:F.filter(ea),altBoundary:_},{refs:H,floatingStyles:Y,placement:J,isPositioned:q,middlewareData:Z}=(0,W.we)({strategy:"fixed",placement:f+("center"!==v?"-"+v:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,K.ll)(...t,{animationFrame:"always"===N})},elements:{reference:j.anchor},middleware:[(0,W.cY)({mainAxis:m+D,alignmentAxis:g}),b&&(0,W.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?(0,W.ER)():void 0,...U}),b&&(0,W.UU)({...U}),(0,W.Ej)({...U,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),T&&(0,W.UE)({element:T,padding:y}),es({arrowWidth:M,arrowHeight:D}),O&&(0,W.jD)({strategy:"referenceHidden",...U})]}),[Q,G]=eu(J),en=(0,S.c)(A);(0,z.N)(()=>{q&&(null==en||en())},[q,en]);let er=null==(n=Z.arrow)?void 0:n.x,eo=null==(r=Z.arrow)?void 0:r.y,ei=(null==(o=Z.arrow)?void 0:o.centerOffset)!==0,[el,ec]=i.useState();return(0,z.N)(()=>{R&&ec(window.getComputedStyle(R).zIndex)},[R]),(0,p.jsx)("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:q?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:el,"--radix-popper-transform-origin":[null==(l=Z.transformOrigin)?void 0:l.x,null==(a=Z.transformOrigin)?void 0:a.y].join(" "),...(null==(s=Z.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,p.jsx)(et,{scope:d,placedSide:Q,onArrowChange:I,arrowX:er,arrowY:eo,shouldHideArrow:ei,children:(0,p.jsx)(E.div,{"data-side":Q,"data-align":G,...k,ref:L,style:{...k.style,animation:q?void 0:"none"}})})})});er.displayName=ee;var eo="PopperArrow",ei={top:"bottom",right:"left",bottom:"top",left:"right"},el=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=en(eo,n),i=ei[o.placedSide];return(0,p.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,p.jsx)(U,{...r,ref:t,style:{...r.style,display:"block"}})})});function ea(e){return null!==e}el.displayName=eo;var es=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:s,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=eu(a),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!=(i=null==(r=u.arrow)?void 0:r.x)?i:0)+d/2,g=(null!=(l=null==(o=u.arrow)?void 0:o.y)?l:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:"".concat(v,"px"),b="".concat(-f,"px")):"top"===h?(y=c?m:"".concat(v,"px"),b="".concat(s.floating.height+f,"px")):"right"===h?(y="".concat(-f,"px"),b=c?m:"".concat(g,"px")):"left"===h&&(y="".concat(s.floating.width+f,"px"),b=c?m:"".concat(g,"px")),{data:{x:y,y:b}}}});function eu(e){let[t,n="center"]=e.split("-");return[t,n]}var ec=i.forwardRef((e,t)=>{var n,r;let{container:o,...a}=e,[s,u]=i.useState(!1);(0,z.N)(()=>u(!0),[]);let c=o||s&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return c?l.createPortal((0,p.jsx)(E.div,{...a,ref:t}),c):null});ec.displayName="Portal";var ed=n(23558),ef=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});i.forwardRef((e,t)=>(0,p.jsx)(E.span,{...e,ref:t,style:{...ef,...e.style}})).displayName="VisuallyHidden";var eh=n(97745),ep=n(71450),em=n(60216),ev=n(78357),eg=(0,n(43711).f)(),ey=function(){},eb=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:ey,onWheelCapture:ey,onTouchMoveCapture:ey}),o=r[0],l=r[1],a=e.forwardProps,s=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,y=e.gapMode,b=(0,ep.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=(0,ev.S)([n,t]),x=(0,ep.Cl)((0,ep.Cl)({},b),o);return i.createElement(i.Fragment,null,d&&i.createElement(h,{sideCar:eg,removeScrollBar:c,shards:f,noIsolation:p,inert:m,setCallbacks:l,allowPinchZoom:!!v,lockRef:n,gapMode:y}),a?i.cloneElement(i.Children.only(s),(0,ep.Cl)((0,ep.Cl)({},x),{ref:w})):i.createElement(void 0===g?"div":g,(0,ep.Cl)({},x,{className:u,ref:w}),s))});eb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eb.classNames={fullWidth:em.pN,zeroRight:em.Mi};var ew=n(39615),ex=n(46810),eE=n(65841),eS=!1;if("undefined"!=typeof window)try{var eC=Object.defineProperty({},"passive",{get:function(){return eS=!0,!0}});window.addEventListener("test",eC,eC),window.removeEventListener("test",eC,eC)}catch(e){eS=!1}var eO=!!eS&&{passive:!1},eN=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])},eA=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ek(e,r)){var o=ej(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ek=function(e,t){return"v"===e?eN(t,"overflowY"):eN(t,"overflowX")},ej=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eR=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,s=n.target,u=t.contains(s),c=!1,d=a>0,f=0,h=0;do{var p=ej(e,s),m=p[0],v=p[1]-p[2]-l*m;(m||v)&&ek(e,s)&&(f+=v,h+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(h)||!o&&-a>h)&&(c=!0),c},eP=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eL=function(e){return[e.deltaX,e.deltaY]},eT=function(e){return e&&"current"in e?e.current:e},eI=0,e$=[];let eM=(0,ew.m)(eg,function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(eI++)[0],l=i.useState(eE.T0)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,ep.fX)([e.lockRef.current],(e.shards||[]).map(eT),!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 s=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=eP(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=eA(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=eA(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var h=r.current||o;return eR(h,t,e,"h"===h?s:u,!0)},[]),u=i.useCallback(function(e){if(e$.length&&e$[e$.length-1]===l){var n="deltaY"in e?eL(e):eP(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,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(eT).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=i.useCallback(function(e,n,r,o){var i={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(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=i.useCallback(function(e){n.current=eP(e),r.current=void 0},[]),f=i.useCallback(function(t){c(t.type,eL(t),t.target,s(t,e.lockRef.current))},[]),h=i.useCallback(function(t){c(t.type,eP(t),t.target,s(t,e.lockRef.current))},[]);i.useEffect(function(){return e$.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,eO),document.addEventListener("touchmove",u,eO),document.addEventListener("touchstart",d,eO),function(){e$=e$.filter(function(e){return e!==l}),document.removeEventListener("wheel",u,eO),document.removeEventListener("touchmove",u,eO),document.removeEventListener("touchstart",d,eO)}},[]);var p=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(l,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?i.createElement(ex.jp,{gapMode:e.gapMode}):null)});var eD=i.forwardRef(function(e,t){return i.createElement(eb,(0,ep.Cl)({},e,{ref:t,sideCar:eM}))});eD.classNames=eb.classNames;var eB=[" ","Enter","ArrowUp","ArrowDown"],eF=[" ","Enter"],e_="Select",[eW,eK,eU]=function(e){let t=e+"CollectionProvider",[n,r]=(0,f.A)(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,r=i.useRef(null),l=i.useRef(new Map).current;return(0,p.jsx)(o,{scope:t,itemMap:l,collectionRef:r,children:n})};a.displayName=t;let s=e+"CollectionSlot",u=m(s),c=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=l(s,n),i=(0,h.s)(t,o.collectionRef);return(0,p.jsx)(u,{ref:i,children:r})});c.displayName=s;let d=e+"CollectionItemSlot",v="data-radix-collection-item",g=m(d),y=i.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,a=i.useRef(null),s=(0,h.s)(t,a),u=l(d,n);return i.useEffect(()=>(u.itemMap.set(a,{ref:a,...o}),()=>void u.itemMap.delete(a))),(0,p.jsx)(g,{...{[v]:""},ref:s,children:r})});return y.displayName=d,[{Provider:a,Slot:c,ItemSlot:y},function(t){let n=l(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(e_),[ez,eV]=(0,f.A)(e_,[eU,J]),eH=J(),[eY,eJ]=ez(e_),[eq,eX]=ez(e_),eZ=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:l,value:a,defaultValue:s,onValueChange:u,dir:c,name:d,autoComplete:f,disabled:h,required:m,form:v}=e,g=eH(t),[y,b]=i.useState(null),[w,E]=i.useState(null),[S,C]=i.useState(!1),O=(0,x.jH)(c),[N,A]=(0,ed.i)({prop:r,defaultProp:null!=o&&o,onChange:l,caller:e_}),[k,j]=(0,ed.i)({prop:a,defaultProp:s,onChange:u,caller:e_}),R=i.useRef(null),P=!y||v||!!y.closest("form"),[L,T]=i.useState(new Set),I=Array.from(L).map(e=>e.props.value).join(";");return(0,p.jsx)(Z,{...g,children:(0,p.jsxs)(eY,{required:m,scope:t,trigger:y,onTriggerChange:b,valueNode:w,onValueNodeChange:E,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:(0,_.B)(),value:k,onValueChange:j,open:N,onOpenChange:A,dir:O,triggerPointerDownPosRef:R,disabled:h,children:[(0,p.jsx)(eW.Provider,{scope:t,children:(0,p.jsx)(eq,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(e=>{T(t=>new Set(t).add(e))},[]),onNativeOptionRemove:i.useCallback(e=>{T(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),P?(0,p.jsxs)(tC,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:k,onChange:e=>j(e.target.value),disabled:h,form:v,children:[void 0===k?(0,p.jsx)("option",{value:""}):null,Array.from(L)]},I):null]})})};eZ.displayName=e_;var eQ="SelectTrigger",eG=i.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...o}=e,l=eH(n),a=eJ(eQ,n),u=a.disabled||r,c=(0,h.s)(t,a.onTriggerChange),d=eK(n),f=i.useRef("touch"),[m,v,g]=tN(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=tA(t,e,n);void 0!==r&&a.onValueChange(r.value)}),y=e=>{u||(a.onOpenChange(!0),g()),e&&(a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,p.jsx)(G,{asChild:!0,...l,children:(0,p.jsx)(E.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":tO(a.value)?"":void 0,...o,ref:c,onClick:(0,s.m)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&y(e)}),onPointerDown:(0,s.m)(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:(0,s.m)(o.onKeyDown,e=>{let t=""!==m.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&eB.includes(e.key)&&(y(),e.preventDefault())})})})});eG.displayName=eQ;var e0="SelectValue",e1=i.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,s=eJ(e0,n),{onValueNodeHasChildrenChange:u}=s,c=void 0!==i,d=(0,h.s)(t,s.onValueNodeChange);return(0,z.N)(()=>{u(c)},[u,c]),(0,p.jsx)(E.span,{...a,ref:d,style:{pointerEvents:"none"},children:tO(s.value)?(0,p.jsx)(p.Fragment,{children:l}):i})});e1.displayName=e0;var e2=i.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,p.jsx)(E.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});e2.displayName="SelectIcon";var e9=e=>(0,p.jsx)(ec,{asChild:!0,...e});e9.displayName="SelectPortal";var e6="SelectContent",e4=i.forwardRef((e,t)=>{let n=eJ(e6,e.__scopeSelect),[r,o]=i.useState();return((0,z.N)(()=>{o(new DocumentFragment)},[]),n.open)?(0,p.jsx)(e3,{...e,ref:t}):r?l.createPortal((0,p.jsx)(e5,{scope:e.__scopeSelect,children:(0,p.jsx)(eW.Slot,{scope:e.__scopeSelect,children:(0,p.jsx)("div",{children:e.children})})}),r):null});e4.displayName=e6;var[e5,e7]=ez(e6),e8=m("SelectContent.RemoveScroll"),e3=i.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:l,onPointerDownOutside:a,side:u,sideOffset:c,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:v,collisionPadding:g,sticky:y,hideWhenDetached:b,avoidCollisions:w,...x}=e,E=eJ(e6,n),[S,C]=i.useState(null),[O,N]=i.useState(null),k=(0,h.s)(t,e=>C(e)),[j,P]=i.useState(null),[L,T]=i.useState(null),$=eK(n),[M,D]=i.useState(!1),B=i.useRef(!1);i.useEffect(()=>{if(S)return(0,eh.Eq)(S)},[S]),(0,R.Oh)();let F=i.useCallback(e=>{let[t,...n]=$().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&O&&(O.scrollTop=0),n===r&&O&&(O.scrollTop=O.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[$,O]),_=i.useCallback(()=>F([j,S]),[F,j,S]);i.useEffect(()=>{M&&_()},[M,_]);let{onOpenChange:W,triggerPointerDownPosRef:K}=E;i.useEffect(()=>{if(S){let e={x:0,y:0},t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!=(o=null==(n=K.current)?void 0:n.x)?o:0)),y:Math.abs(Math.round(t.pageY)-(null!=(i=null==(r=K.current)?void 0:r.y)?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():S.contains(n.target)||W(!1),document.removeEventListener("pointermove",t),K.current=null};return null!==K.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[S,W,K]),i.useEffect(()=>{let e=()=>W(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[W]);let[U,z]=tN(e=>{let t=$().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=tA(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),V=i.useCallback((e,t,n)=>{let r=!B.current&&!n;(void 0!==E.value&&E.value===t||r)&&(P(e),r&&(B.current=!0))},[E.value]),H=i.useCallback(()=>null==S?void 0:S.focus(),[S]),Y=i.useCallback((e,t,n)=>{let r=!B.current&&!n;(void 0!==E.value&&E.value===t||r)&&T(e)},[E.value]),J="popper"===r?tt:te,q=J===tt?{side:u,sideOffset:c,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:v,collisionPadding:g,sticky:y,hideWhenDetached:b,avoidCollisions:w}:{};return(0,p.jsx)(e5,{scope:n,content:S,viewport:O,onViewportChange:N,itemRefCallback:V,selectedItem:j,onItemLeave:H,itemTextRefCallback:Y,focusSelectedItem:_,selectedItemText:L,position:r,isPositioned:M,searchRef:U,children:(0,p.jsx)(eD,{as:e8,allowPinchZoom:!0,children:(0,p.jsx)(I,{asChild:!0,trapped:E.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,s.m)(o,e=>{var t;null==(t=E.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,p.jsx)(A,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:(0,p.jsx)(J,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:e=>e.preventDefault(),...x,...q,onPlaced:()=>D(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:(0,s.m)(x.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=$().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>F(t)),e.preventDefault()}})})})})})})});e3.displayName="SelectContentImpl";var te=i.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}=e,l=eJ(e6,n),s=e7(e6,n),[u,c]=i.useState(null),[d,f]=i.useState(null),m=(0,h.s)(t,e=>f(e)),v=eK(n),g=i.useRef(!1),y=i.useRef(!0),{viewport:b,selectedItem:w,selectedItemText:x,focusSelectedItem:S}=s,C=i.useCallback(()=>{if(l.trigger&&l.valueNode&&u&&d&&b&&w&&x){let e=l.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=l.valueNode.getBoundingClientRect(),o=x.getBoundingClientRect();if("rtl"!==l.dir){let r=o.left-t.left,i=n.left-r,l=e.left-i,s=e.width+l,c=Math.max(s,t.width),d=window.innerWidth-10,f=(0,a.q)(i,[10,Math.max(10,d-c)]);u.style.minWidth=s+"px",u.style.left=f+"px"}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,l=window.innerWidth-e.right-i,s=e.width+l,c=Math.max(s,t.width),d=window.innerWidth-10,f=(0,a.q)(i,[10,Math.max(10,d-c)]);u.style.minWidth=s+"px",u.style.right=f+"px"}let i=v(),s=window.innerHeight-20,c=b.scrollHeight,f=window.getComputedStyle(d),h=parseInt(f.borderTopWidth,10),p=parseInt(f.paddingTop,10),m=parseInt(f.borderBottomWidth,10),y=h+p+c+parseInt(f.paddingBottom,10)+m,E=Math.min(5*w.offsetHeight,y),S=window.getComputedStyle(b),C=parseInt(S.paddingTop,10),O=parseInt(S.paddingBottom,10),N=e.top+e.height/2-10,A=w.offsetHeight/2,k=h+p+(w.offsetTop+A);if(k<=N){let e=i.length>0&&w===i[i.length-1].ref.current;u.style.bottom="0px";let t=Math.max(s-N,A+(e?O:0)+(d.clientHeight-b.offsetTop-b.offsetHeight)+m);u.style.height=k+t+"px"}else{let e=i.length>0&&w===i[0].ref.current;u.style.top="0px";let t=Math.max(N,h+b.offsetTop+(e?C:0)+A);u.style.height=t+(y-k)+"px",b.scrollTop=k-N+b.offsetTop}u.style.margin="".concat(10,"px 0"),u.style.minHeight=E+"px",u.style.maxHeight=s+"px",null==r||r(),requestAnimationFrame(()=>g.current=!0)}},[v,l.trigger,l.valueNode,u,d,b,w,x,l.dir,r]);(0,z.N)(()=>C(),[C]);let[O,N]=i.useState();(0,z.N)(()=>{d&&N(window.getComputedStyle(d).zIndex)},[d]);let A=i.useCallback(e=>{e&&!0===y.current&&(C(),null==S||S(),y.current=!1)},[C,S]);return(0,p.jsx)(tn,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:g,onScrollButtonChange:A,children:(0,p.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:(0,p.jsx)(E.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});te.displayName="SelectItemAlignedPosition";var tt=i.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=eH(n);return(0,p.jsx)(er,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});tt.displayName="SelectPopperPosition";var[tn,tr]=ez(e6,{}),to="SelectViewport",ti=i.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...o}=e,l=e7(to,n),a=tr(to,n),u=(0,h.s)(t,l.onViewportChange),c=i.useRef(0);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,p.jsx)(eW.Slot,{scope:n,children:(0,p.jsx)(E.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,s.m)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if((null==r?void 0:r.current)&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,l=Math.min(r,i),a=i-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});ti.displayName=to;var tl="SelectGroup",[ta,ts]=ez(tl);i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=(0,_.B)();return(0,p.jsx)(ta,{scope:n,id:o,children:(0,p.jsx)(E.div,{role:"group","aria-labelledby":o,...r,ref:t})})}).displayName=tl;var tu="SelectLabel";i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=ts(tu,n);return(0,p.jsx)(E.div,{id:o.id,...r,ref:t})}).displayName=tu;var tc="SelectItem",[td,tf]=ez(tc),th=i.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:l,...a}=e,u=eJ(tc,n),c=e7(tc,n),d=u.value===r,[f,m]=i.useState(null!=l?l:""),[v,g]=i.useState(!1),y=(0,h.s)(t,e=>{var t;return null==(t=c.itemRefCallback)?void 0:t.call(c,e,r,o)}),b=(0,_.B)(),w=i.useRef("touch"),x=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(""===r)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,p.jsx)(td,{scope:n,value:r,disabled:o,textId:b,isSelected:d,onItemTextChange:i.useCallback(e=>{m(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,p.jsx)(eW.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:(0,p.jsx)(E.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":d&&v,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:y,onFocus:(0,s.m)(a.onFocus,()=>g(!0)),onBlur:(0,s.m)(a.onBlur,()=>g(!1)),onClick:(0,s.m)(a.onClick,()=>{"mouse"!==w.current&&x()}),onPointerUp:(0,s.m)(a.onPointerUp,()=>{"mouse"===w.current&&x()}),onPointerDown:(0,s.m)(a.onPointerDown,e=>{w.current=e.pointerType}),onPointerMove:(0,s.m)(a.onPointerMove,e=>{if(w.current=e.pointerType,o){var t;null==(t=c.onItemLeave)||t.call(c)}else"mouse"===w.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,s.m)(a.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=c.onItemLeave)||t.call(c)}}),onKeyDown:(0,s.m)(a.onKeyDown,e=>{var t;((null==(t=c.searchRef)?void 0:t.current)===""||" "!==e.key)&&(eF.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});th.displayName=tc;var tp="SelectItemText",tm=i.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,...a}=e,s=eJ(tp,n),u=e7(tp,n),c=tf(tp,n),d=eX(tp,n),[f,m]=i.useState(null),v=(0,h.s)(t,e=>m(e),c.onItemTextChange,e=>{var t;return null==(t=u.itemTextRefCallback)?void 0:t.call(u,e,c.value,c.disabled)}),g=null==f?void 0:f.textContent,y=i.useMemo(()=>(0,p.jsx)("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=d;return(0,z.N)(()=>(b(y),()=>w(y)),[b,w,y]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(E.span,{id:c.textId,...a,ref:v}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?l.createPortal(a.children,s.valueNode):null]})});tm.displayName=tp;var tv="SelectItemIndicator",tg=i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return tf(tv,n).isSelected?(0,p.jsx)(E.span,{"aria-hidden":!0,...r,ref:t}):null});tg.displayName=tv;var ty="SelectScrollUpButton",tb=i.forwardRef((e,t)=>{let n=e7(ty,e.__scopeSelect),r=tr(ty,e.__scopeSelect),[o,l]=i.useState(!1),a=(0,h.s)(t,r.onScrollButtonChange);return(0,z.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){l(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,p.jsx)(tE,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});tb.displayName=ty;var tw="SelectScrollDownButton",tx=i.forwardRef((e,t)=>{let n=e7(tw,e.__scopeSelect),r=tr(tw,e.__scopeSelect),[o,l]=i.useState(!1),a=(0,h.s)(t,r.onScrollButtonChange);return(0,z.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;l(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,p.jsx)(tE,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});tx.displayName=tw;var tE=i.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,l=e7("SelectScrollButton",n),a=i.useRef(null),u=eK(n),c=i.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return i.useEffect(()=>()=>c(),[c]),(0,z.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,p.jsx)(E.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,s.m)(o.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(r,50))}),onPointerMove:(0,s.m)(o.onPointerMove,()=>{var e;null==(e=l.onItemLeave)||e.call(l),null===a.current&&(a.current=window.setInterval(r,50))}),onPointerLeave:(0,s.m)(o.onPointerLeave,()=>{c()})})});i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,p.jsx)(E.div,{"aria-hidden":!0,...r,ref:t})}).displayName="SelectSeparator";var tS="SelectArrow";i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=eH(n),i=eJ(tS,n),l=e7(tS,n);return i.open&&"popper"===l.position?(0,p.jsx)(el,{...o,...r,ref:t}):null}).displayName=tS;var tC=i.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,...o}=e,l=i.useRef(null),a=(0,h.s)(t,l),s=function(e){let t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(r);return i.useEffect(()=>{let e=l.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[s,r]),(0,p.jsx)(E.select,{...o,style:{...ef,...o.style},ref:a,defaultValue:r})});function tO(e){return""===e||void 0===e}function tN(e){let t=(0,S.c)(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(e=>{let o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),l=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,l]}function tA(e,t,n){var r,o;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=n?e.indexOf(n):-1,a=(r=e,o=Math.max(l,0),r.map((e,t)=>r[(o+t)%r.length]));1===i.length&&(a=a.filter(e=>e!==n));let s=a.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return s!==n?s:void 0}tC.displayName="SelectBubbleInput";var tk=eZ,tj=eG,tR=e1,tP=e2,tL=e9,tT=e4,tI=ti,t$=th,tM=tm,tD=tg,tB=tb,tF=tx},78874:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},81408:(e,t,n)=>{let r;n.d(t,{As:()=>tu});let o=Symbol.for("yaml.alias"),i=Symbol.for("yaml.document"),l=Symbol.for("yaml.map"),a=Symbol.for("yaml.pair"),s=Symbol.for("yaml.scalar"),u=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),d=e=>!!e&&"object"==typeof e&&e[c]===o,f=e=>!!e&&"object"==typeof e&&e[c]===i,h=e=>!!e&&"object"==typeof e&&e[c]===l,p=e=>!!e&&"object"==typeof e&&e[c]===a,m=e=>!!e&&"object"==typeof e&&e[c]===s,v=e=>!!e&&"object"==typeof e&&e[c]===u;function g(e){if(e&&"object"==typeof e)switch(e[c]){case l:case u:return!0}return!1}function y(e){if(e&&"object"==typeof e)switch(e[c]){case o:case l:case s:case u:return!0}return!1}let b=e=>(m(e)||g(e))&&!!e.anchor,w=Symbol("break visit"),x=Symbol("skip children"),E=Symbol("remove node");function S(e,t){let n=A(t);f(e)?C(null,e.contents,n,Object.freeze([e]))===E&&(e.contents=null):C(null,e,n,Object.freeze([]))}function C(e,t,n,r){let o=k(e,t,n,r);if(y(o)||p(o))return j(e,r,o),C(e,o,n,r);if("symbol"!=typeof o){if(g(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let o=C(e,t.items[e],n,r);if("number"==typeof o)e=o-1;else{if(o===w)return w;o===E&&(t.items.splice(e,1),e-=1)}}}else if(p(t)){r=Object.freeze(r.concat(t));let e=C("key",t.key,n,r);if(e===w)return w;e===E&&(t.key=null);let o=C("value",t.value,n,r);if(o===w)return w;o===E&&(t.value=null)}}return o}async function O(e,t){let n=A(t);f(e)?await N(null,e.contents,n,Object.freeze([e]))===E&&(e.contents=null):await N(null,e,n,Object.freeze([]))}async function N(e,t,n,r){let o=await k(e,t,n,r);if(y(o)||p(o))return j(e,r,o),N(e,o,n,r);if("symbol"!=typeof o){if(g(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let o=await N(e,t.items[e],n,r);if("number"==typeof o)e=o-1;else{if(o===w)return w;o===E&&(t.items.splice(e,1),e-=1)}}}else if(p(t)){r=Object.freeze(r.concat(t));let e=await N("key",t.key,n,r);if(e===w)return w;e===E&&(t.key=null);let o=await N("value",t.value,n,r);if(o===w)return w;o===E&&(t.value=null)}}return o}function A(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function k(e,t,n,r){return"function"==typeof n?n(e,t,r):h(t)?n.Map?.(e,t,r):v(t)?n.Seq?.(e,t,r):p(t)?n.Pair?.(e,t,r):m(t)?n.Scalar?.(e,t,r):d(t)?n.Alias?.(e,t,r):void 0}function j(e,t,n){let r=t[t.length-1];if(g(r))r.items[e]=n;else if(p(r))"key"===e?r.key=n:r.value=n;else if(f(r))r.contents=n;else{let e=d(r)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}S.BREAK=w,S.SKIP=x,S.REMOVE=E,O.BREAK=w,O.SKIP=x,O.REMOVE=E;let R={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},P=e=>e.replace(/[!,[\]{}]/g,e=>R[e]);class L{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},L.defaultYaml,e),this.tags=Object.assign({},L.defaultTags,t)}clone(){let e=new L(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new L(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:L.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},L.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:L.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},L.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let o=this.tags[n];if(o)try{return o+decodeURIComponent(r)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+P(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t,n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);if(e&&r.length>0&&y(e.contents)){let n={};S(e.contents,(e,t)=>{y(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[o,i]of r)("!!"!==o||"tag:yaml.org,2002:"!==i)&&(!e||t.some(e=>e.startsWith(i)))&&n.push(`%TAG ${o} ${i}`);return n.join("\n")}}function T(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function I(e){let t=new Set;return S(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function $(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function M(e,t,n,r){if(r&&"object"==typeof r)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],o=M(e,r,String(t),n);void 0===o?delete r[t]:o!==n&&(r[t]=o)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),o=M(e,r,t,n);void 0===o?r.delete(t):o!==n&&r.set(t,o)}else if(r instanceof Set)for(let t of Array.from(r)){let n=M(e,r,t,t);void 0===n?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let o=M(e,r,t,n);void 0===o?delete r[t]:o!==n&&(r[t]=o)}return e.call(t,n,r)}function D(e,t,n){if(Array.isArray(e))return e.map((e,t)=>D(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!b(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return"bigint"!=typeof e||n?.keep?e:Number(e)}L.defaultYaml={explicit:!1,version:"1.2"},L.defaultTags={"!!":"tag:yaml.org,2002:"};class B{constructor(e){Object.defineProperty(this,c,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:o}={}){if(!f(e))throw TypeError("A document argument is required");let i={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},l=D(this,"",i);if("function"==typeof r)for(let{count:e,res:t}of i.anchors.values())r(t,e);return"function"==typeof o?M(o,{"":l},"",l):l}}class F extends B{constructor(e){super(o),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let n,r;if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let o of(t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],S(e,{Node:(e,t)=>{(d(t)||b(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n)),n)){if(o===this)break;o.anchor===this.source&&(r=o)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:o}=t,i=e.get(r);if(i||(D(r,null,t),i=e.get(r)),i?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=function e(t,n,r){if(d(n)){let e=n.resolve(t),o=r&&e&&r.get(e);return o?o.count*o.aliasCount:0}if(g(n)){let o=0;for(let i of n.items){let n=e(t,i,r);n>o&&(o=n)}return o}return p(n)?Math.max(e(t,n.key,r),e(t,n.value,r)):1}(n,r,e)),i.count*i.aliasCount>o))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);return t.anchors.get(n).res}toString(e,t,n){let r=`*${this.source}`;if(e){if(T(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${r} `}return r}}let _=e=>!e||"function"!=typeof e&&"object"!=typeof e;class W extends B{constructor(e){super(s),this.value=e}toJSON(e,t){return t?.keep?this.value:D(this.value,e,t)}toString(){return String(this.value)}}function K(e,t,n){let r;if(f(e)&&(e=e.contents),y(e))return e;if(p(e)){let t=n.schema[l].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:o,onAnchor:i,onTagObj:a,schema:s,sourceObjects:c}=n;if(o&&e&&"object"==typeof e){if(r=c.get(e))return r.anchor??(r.anchor=i(e)),new F(r.anchor);r={anchor:null,node:null},c.set(e,r)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let d=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,s.tags);if(!d){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new W(e);return r&&(r.node=t),t}d=e instanceof Map?s[l]:Symbol.iterator in Object(e)?s[u]:s[l]}a&&(a(d),delete n.onTagObj);let h=d?.createNode?d.createNode(n.schema,e,n):"function"==typeof d?.nodeClass?.from?d.nodeClass.from(n.schema,e,n):new W(e);return t?h.tag=t:d.default||(h.tag=d.tag),r&&(r.node=h),h}function U(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return K(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}W.BLOCK_FOLDED="BLOCK_FOLDED",W.BLOCK_LITERAL="BLOCK_LITERAL",W.PLAIN="PLAIN",W.QUOTE_DOUBLE="QUOTE_DOUBLE",W.QUOTE_SINGLE="QUOTE_SINGLE";let z=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class V extends B{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>y(t)||p(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(z(e))this.add(t);else{let[n,...r]=e,o=this.get(n,!0);if(g(o))o.addIn(r,t);else if(void 0===o&&this.schema)this.set(n,U(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let r=this.get(t,!0);if(g(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,o=this.get(n,!0);return 0===r.length?!t&&m(o)?o.value:o:g(o)?o.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!p(t))return!1;let n=t.value;return null==n||e&&m(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let r=this.get(t,!0);return!!g(r)&&r.hasIn(n)}setIn(e,t){let[n,...r]=e;if(0===r.length)this.set(n,t);else{let e=this.get(n,!0);if(g(e))e.setIn(r,t);else if(void 0===e&&this.schema)this.set(n,U(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}let H=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Y(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let J=(e,t,n)=>e.endsWith("\n")?Y(n,t):n.includes("\n")?"\n"+Y(n,t):(e.endsWith(" ")?"":" ")+n,q="flow",X="block",Z="quoted";function Q(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:l,onOverflow:a}={}){let s,u,c;if(!o||o<0)return e;o<i&&(i=0);let d=Math.max(1+i,1+o-t.length);if(e.length<=d)return e;let f=[],h={},p=o-t.length;"number"==typeof r&&(r>o-Math.max(2,i)?f.push(0):p=o-r);let m=!1,v=-1,g=-1,y=-1;for(n===X&&-1!==(v=G(e,v,t.length))&&(p=v+d);c=e[v+=1];){if(n===Z&&"\\"===c){switch(g=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}y=v}if("\n"===c)n===X&&(v=G(e,v,t.length)),p=v+t.length+d,s=void 0;else{if(" "===c&&u&&" "!==u&&"\n"!==u&&" "!==u){let t=e[v+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(s=v)}if(v>=p)if(s)f.push(s),p=s+d,s=void 0;else if(n===Z){for(;" "===u||" "===u;)u=c,c=e[v+=1],m=!0;let t=v>y+1?v-2:g-1;if(h[t])return e;f.push(t),h[t]=!0,p=t+d,s=void 0}else m=!0}u=c}if(m&&a&&a(),0===f.length)return e;l&&l();let b=e.slice(0,f[0]);for(let r=0;r<f.length;++r){let o=f[r],i=f[r+1]||e.length;0===o?b=`
|
|
2
|
+
${t}${e.slice(0,i)}`:(n===Z&&h[o]&&(b+=`${e[o]}\\`),b+=`
|
|
3
|
+
${t}${e.slice(o+1,i)}`)}return b}function G(e,t,n){let r=t,o=t+1,i=e[o];for(;" "===i||" "===i;)if(t<o+n)i=e[++t];else{do i=e[++t];while(i&&"\n"!==i);r=t,i=e[o=t+1]}return r}let ee=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),et=e=>/^(%|---|\.\.\.)/m.test(e);function en(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(et(e)?" ":""),l="",a=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(l+=n.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{l+=n.slice(a,e);let t=n.substr(e+2,4);switch(t){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:"00"===t.substr(0,2)?l+="\\x"+t.substr(2):l+=n.substr(e,6)}e+=5,a=e+1}break;case"n":if(r||'"'===n[e+2]||n.length<o)e+=1;else{for(l+=n.slice(a,e)+"\n\n";"\\"===n[e+2]&&"n"===n[e+3]&&'"'!==n[e+4];)l+="\n",e+=2;l+=i," "===n[e+2]&&(l+="\\"),e+=1,a=e+1}break;default:e+=1}return l=a?l+n.slice(a):n,r?l:Q(l,i,Z,ee(t,!1))}function er(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return en(e,t);let n=t.indent||(et(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
4
|
+
${n}`)+"'";return t.implicitKey?r:Q(r,n,q,ee(t,!1))}function eo(e,t){let n,{singleQuote:r}=t.options;if(!1===r)n=en;else{let t=e.includes('"'),o=e.includes("'");n=t&&!o?er:o&&!t?en:r?er:en}return n(e,t)}try{r=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{r=/\n+(?!\n|$)/g}function ei({comment:e,type:t,value:n},o,i,l){let a,s,u,{blockQuote:c,commentString:d,lineWidth:f}=o.options;if(!c||/\n[\t ]+$/.test(n))return eo(n,o);let h=o.indent||(o.forceBlockIndent||et(n)?" ":""),p="literal"===c||"folded"!==c&&t!==W.BLOCK_FOLDED&&(t===W.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;let r=t-n,o=e.length;if(o<=r)return!1;for(let t=0,n=0;t<o;++t)if("\n"===e[t]){if(t-n>r)return!0;if(o-(n=t+1)<=r)return!1}return!0}(n,f,h.length));if(!n)return p?"|\n":">\n";for(s=n.length;s>0;--s){let e=n[s-1];if("\n"!==e&&" "!==e&&" "!==e)break}let m=n.substring(s),v=m.indexOf("\n");-1===v?a="-":n===m||v!==m.length-1?(a="+",l&&l()):a="",m&&(n=n.slice(0,-m.length),"\n"===m[m.length-1]&&(m=m.slice(0,-1)),m=m.replace(r,`$&${h}`));let g=!1,y=-1;for(u=0;u<n.length;++u){let e=n[u];if(" "===e)g=!0;else if("\n"===e)y=u;else break}let b=n.substring(0,y<u?y+1:u);b&&(n=n.substring(b.length),b=b.replace(/\n+/g,`$&${h}`));let w=h?"2":"1",x=(g?w:"")+a;if(e&&(x+=" "+d(e.replace(/ ?[\r\n]+/g," ")),i&&i()),!p){let e=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${h}`),r=!1,i=ee(o,!0);"folded"!==c&&t!==W.BLOCK_FOLDED&&(i.onOverflow=()=>{r=!0});let l=Q(`${b}${e}${m}`,h,X,i);if(!r)return`>${x}
|
|
5
|
+
${h}${l}`}return n=n.replace(/\n+/g,`$&${h}`),`|${x}
|
|
6
|
+
${h}${b}${n}${m}`}function el(e,t,n,r){let{implicitKey:o,inFlow:i}=t,l="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:a}=e;a!==W.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(l.value)&&(a=W.QUOTE_DOUBLE);let s=e=>{switch(e){case W.BLOCK_FOLDED:case W.BLOCK_LITERAL:return o||i?eo(l.value,t):ei(l,t,n,r);case W.QUOTE_DOUBLE:return en(l.value,t);case W.QUOTE_SINGLE:return er(l.value,t);case W.PLAIN:return function(e,t,n,r){let{type:o,value:i}=e,{actualString:l,implicitKey:a,indent:s,indentStep:u,inFlow:c}=t;if(a&&i.includes("\n")||c&&/[[\]{},]/.test(i))return eo(i,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||c||!i.includes("\n")?eo(i,t):ei(e,t,n,r);if(!a&&!c&&o!==W.PLAIN&&i.includes("\n"))return ei(e,t,n,r);if(et(i)){if(""===s)return t.forceBlockIndent=!0,ei(e,t,n,r);else if(a&&s===u)return eo(i,t)}let d=i.replace(/\n+/g,`$&
|
|
7
|
+
${s}`);if(l){let e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return eo(i,t)}return a?d:Q(d,s,q,ee(t,!1))}(l,t,n,r);default:return null}},u=s(a);if(null===u){let{defaultKeyType:e,defaultStringType:n}=t.options,r=o&&e||n;if(null===(u=s(r)))throw Error(`Unsupported default string type ${r}`)}return u}function ea(e,t){let n,r=Object.assign({blockQuote:!0,commentString:H,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof r.indent?" ".repeat(r.indent):" ",inFlow:n,options:r}}function es(e,t,n,r){let o;if(p(e))return e.toString(t,n,r);if(d(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i=y(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});o??(o=function(e,t){let n,r;if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}if(m(t)){n=t.value;let o=e.filter(e=>e.identify?.(n));if(o.length>1){let e=o.filter(e=>e.test);e.length>0&&(o=e)}r=o.find(e=>e.format===t.format)??o.find(e=>!e.format)}else n=t,r=e.find(e=>e.nodeClass&&n instanceof e.nodeClass);if(!r){let e=n?.constructor?.name??(null===n?"null":typeof n);throw Error(`Tag not resolved for ${e} value`)}return r}(t.doc.schema.tags,i));let l=function(e,t,{anchors:n,doc:r}){if(!r.directives)return"";let o=[],i=(m(e)||g(e))&&e.anchor;i&&T(i)&&(n.add(i),o.push(`&${i}`));let l=e.tag??(t.default?null:t.tag);return l&&o.push(r.directives.tagString(l)),o.join(" ")}(i,o,t);l.length>0&&(t.indentAtStart=(t.indentAtStart??0)+l.length+1);let a="function"==typeof o.stringify?o.stringify(i,t,n,r):m(i)?el(i,t,n,r):i.toString(t,n,r);return l?m(i)||"{"===a[0]||"["===a[0]?`${l} ${a}`:`${l}
|
|
8
|
+
${t.indent}${a}`:a}let eu={identify:e=>"<<"===e||"symbol"==typeof e&&"<<"===e.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new W(Symbol("<<")),{addToJSMap:ec}),stringify:()=>"<<"};function ec(e,t,n){let r=ef(e,n);if(v(r))for(let n of r.items)ed(e,t,n);else if(Array.isArray(r))for(let n of r)ed(e,t,n);else ed(e,t,r)}function ed(e,t,n){let r=ef(e,n);if(!h(r))throw Error("Merge sources must be maps or map aliases");for(let[n,o]of r.toJSON(null,e,Map))t instanceof Map?t.has(n)||t.set(n,o):t instanceof Set?t.add(n):Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function ef(e,t){return e&&d(t)?t.resolve(e.doc,e):t}function eh(e,t,{key:n,value:r}){if(y(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if((eu.identify(n)||m(n)&&(!n.type||n.type===W.PLAIN)&&eu.identify(n.value))&&e?.doc.schema.tags.some(e=>e.tag===eu.tag&&e.default))ec(e,t,r);else{let o=D(n,"",e);if(t instanceof Map)t.set(o,D(r,o,e));else if(t instanceof Set)t.add(o);else{let i=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(y(e)&&n?.doc){let t=ea(n.doc,{});for(let e of(t.anchors=new Set,n.anchors.keys()))t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let i=e.toString(t);if(!n.mapKeyWarned){var r,o;let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+'..."'),r=n.doc.options.logLevel,o=`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`,("debug"===r||"warn"===r)&&console.warn(o),n.mapKeyWarned=!0}return i}return JSON.stringify(t)}(n,o,e),l=D(r,i,e);i in t?Object.defineProperty(t,i,{value:l,writable:!0,enumerable:!0,configurable:!0}):t[i]=l}}return t}function ep(e,t,n){return new em(K(e,void 0,n),K(t,void 0,n))}class em{constructor(e,t=null){Object.defineProperty(this,c,{value:a}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return y(t)&&(t=t.clone(e)),y(n)&&(n=n.clone(e)),new em(t,n)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return eh(t,n,this)}toString(e,t,n){return e?.doc?function({key:e,value:t},n,r,o){let i,l,a,{allNullValues:s,doc:u,indent:c,indentStep:d,options:{commentString:f,indentSeq:h,simpleKeys:p}}=n,b=y(e)&&e.comment||null;if(p){if(b)throw Error("With simple keys, key nodes cannot have comments");if(g(e)||!y(e)&&"object"==typeof e)throw Error("With simple keys, collection cannot be used as a key value")}let w=!p&&(!e||b&&null==t&&!n.inFlow||g(e)||(m(e)?e.type===W.BLOCK_FOLDED||e.type===W.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!w&&(p||!s),indent:c+d});let x=!1,E=!1,S=es(e,n,()=>x=!0,()=>E=!0);if(!w&&!n.inFlow&&S.length>1024){if(p)throw Error("With simple keys, single line scalar must not span more than 1024 characters");w=!0}if(n.inFlow){if(s||null==t)return x&&r&&r(),""===S?"?":w?`? ${S}`:S}else if(s&&!p||null==t&&w)return S=`? ${S}`,b&&!x?S+=J(S,n.indent,f(b)):E&&o&&o(),S;x&&(b=null),w?(b&&(S+=J(S,n.indent,f(b))),S=`? ${S}
|
|
9
|
+
${c}:`):(S=`${S}:`,b&&(S+=J(S,n.indent,f(b)))),y(t)?(i=!!t.spaceBefore,l=t.commentBefore,a=t.comment):(i=!1,l=null,a=null,t&&"object"==typeof t&&(t=u.createNode(t))),n.implicitKey=!1,!w&&!b&&m(t)&&(n.indentAtStart=S.length+1),E=!1,!(!h&&d.length>=2&&!n.inFlow&&!w&&v(t))||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let C=!1,O=es(t,n,()=>C=!0,()=>E=!0),N=" ";if(b||i||l){if(N=i?"\n":"",l){let e=f(l);N+=`
|
|
10
|
+
${Y(e,n.indent)}`}""!==O||n.inFlow?N+=`
|
|
11
|
+
${n.indent}`:"\n"===N&&a&&(N="\n\n")}else if(!w&&g(t)){let e=O[0],r=O.indexOf("\n"),o=-1!==r,i=n.inFlow??t.flow??0===t.items.length;if(o||!i){let t=!1;if(o&&("&"===e||"!"===e)){let n=O.indexOf(" ");"&"===e&&-1!==n&&n<r&&"!"===O[n+1]&&(n=O.indexOf(" ",n+1)),(-1===n||r<n)&&(t=!0)}t||(N=`
|
|
12
|
+
${n.indent}`)}}else(""===O||"\n"===O[0])&&(N="");return S+=N+O,n.inFlow?C&&r&&r():a&&!C?S+=J(S,n.indent,f(a)):E&&o&&o(),S}(this,e,t,n):JSON.stringify(this)}}function ev(e,t,n){return(t.inFlow??e.flow?function({items:e},t,{flowChars:n,itemIndent:r}){let{indent:o,indentStep:i,flowCollectionPadding:l,options:{commentString:a}}=t,s=Object.assign({},t,{indent:r+=i,inFlow:!0,type:null}),u=!1,c=0,d=[];for(let n=0;n<e.length;++n){let o=e[n],i=null;if(y(o))o.spaceBefore&&d.push(""),eg(t,d,o.commentBefore,!1),o.comment&&(i=o.comment);else if(p(o)){let e=y(o.key)?o.key:null;e&&(e.spaceBefore&&d.push(""),eg(t,d,e.commentBefore,!1),e.comment&&(u=!0));let n=y(o.value)?o.value:null;n?(n.comment&&(i=n.comment),n.commentBefore&&(u=!0)):null==o.value&&e?.comment&&(i=e.comment)}i&&(u=!0);let l=es(o,s,()=>i=null);u||(u=d.length>c||l.includes("\n")),n<e.length-1?l+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(u||(u=d.reduce((e,t)=>e+t.length+2,2)+(l.length+2)>t.options.lineWidth)),u&&(l+=",")),i&&(l+=J(l,r,a(i))),d.push(l),c=d.length}let{start:f,end:h}=n;if(0===d.length)return f+h;if(!u){let e=d.reduce((e,t)=>e+t.length+2,2);u=t.options.lineWidth>0&&e>t.options.lineWidth}if(!u)return`${f}${l}${d.join(" ")}${l}${h}`;{let e=f;for(let t of d)e+=t?`
|
|
13
|
+
${i}${o}${t}`:"\n";return`${e}
|
|
14
|
+
${o}${h}`}}:function({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:i,onChompKeep:l,onComment:a}){let s,{indent:u,options:{commentString:c}}=n,d=Object.assign({},n,{indent:i,type:null}),f=!1,h=[];for(let e=0;e<t.length;++e){let o=t[e],l=null;if(y(o))!f&&o.spaceBefore&&h.push(""),eg(n,h,o.commentBefore,f),o.comment&&(l=o.comment);else if(p(o)){let e=y(o.key)?o.key:null;e&&(!f&&e.spaceBefore&&h.push(""),eg(n,h,e.commentBefore,f))}f=!1;let a=es(o,d,()=>l=null,()=>f=!0);l&&(a+=J(a,i,c(l))),f&&l&&(f=!1),h.push(r+a)}if(0===h.length)s=o.start+o.end;else{s=h[0];for(let e=1;e<h.length;++e){let t=h[e];s+=t?`
|
|
15
|
+
${u}${t}`:"\n"}}return e?(s+="\n"+Y(c(e),u),a&&a()):f&&l&&l(),s})(e,t,n)}function eg({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){let o=Y(t(r),e);n.push(o.trimStart())}}function ey(e,t){let n=m(t)?t.value:t;for(let r of e)if(p(r)&&(r.key===t||r.key===n||m(r.key)&&r.key.value===n))return r}class eb extends V{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(l,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:o}=n,i=new this(e),l=(e,l)=>{if("function"==typeof o)l=o.call(t,e,l);else if(Array.isArray(o)&&!o.includes(e))return;(void 0!==l||r)&&i.items.push(ep(e,l,n))};if(t instanceof Map)for(let[e,n]of t)l(e,n);else if(t&&"object"==typeof t)for(let e of Object.keys(t))l(e,t[e]);return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i}add(e,t){let n;n=p(e)?e:e&&"object"==typeof e&&"key"in e?new em(e.key,e.value):new em(e,e?.value);let r=ey(this.items,n.key),o=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);m(r.value)&&_(n.value)?r.value.value=n.value:r.value=n.value}else if(o){let e=this.items.findIndex(e=>0>o(n,e));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=ey(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=ey(this.items,e),r=n?.value;return(!t&&m(r)?r.value:r)??void 0}has(e){return!!ey(this.items,e)}set(e,t){this.add(new em(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(r),this.items))eh(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!p(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),ev(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}let ew={collection:"map",default:!0,nodeClass:eb,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(h(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>eb.from(e,t,n)};class ex extends V{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(u,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=eE(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let n=eE(e);if("number"!=typeof n)return;let r=this.items[n];return!t&&m(r)?r.value:r}has(e){let t=eE(e);return"number"==typeof t&&t<this.items.length}set(e,t){let n=eE(e);if("number"!=typeof n)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];m(r)&&_(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(D(e,String(r++),t));return n}toString(e,t,n){return e?ev(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,o=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let i of t){if("function"==typeof r){let n=t instanceof Set?i:String(e++);i=r.call(t,n,i)}o.items.push(K(i,void 0,n))}}return o}}function eE(e){let t=m(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}let eS={collection:"seq",default:!0,nodeClass:ex,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(v(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>ex.from(e,t,n)},eC={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>el(e,t=Object.assign({actualString:!0},t),n,r)},eO={identify:e=>null==e,createNode:()=>new W(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new W(null),stringify:({source:e},t)=>"string"==typeof e&&eO.test.test(e)?e:t.options.nullStr},eN={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new W("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&eN.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function eA({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);let o="number"==typeof r?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=Object.is(r,-0)?"-0":JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^-?\d/.test(i)&&!i.includes("e")){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i}let ek={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:eA},ej={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eA(e)}},eR={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new W(parseFloat(e)),n=e.indexOf(".");return -1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:eA},eP=e=>"bigint"==typeof e||Number.isInteger(e),eL=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function eT(e,t,n){let{value:r}=e;return eP(r)&&r>=0?n+r.toString(t):eA(e)}let eI={identify:e=>eP(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>eL(e,2,8,n),stringify:e=>eT(e,8,"0o")},e$={identify:eP,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>eL(e,0,10,n),stringify:eA},eM={identify:e=>eP(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>eL(e,2,16,n),stringify:e=>eT(e,16,"0x")},eD=[ew,eS,eC,eO,eN,eI,e$,eM,ek,ej,eR];function eB(e){return"bigint"==typeof e||Number.isInteger(e)}let eF=({value:e})=>JSON.stringify(e),e_=[ew,eS].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:eF},{identify:e=>null==e,createNode:()=>new W(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:eF},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:eF},{identify:eB,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>eB(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:eF}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),eW={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"!=typeof atob)return t("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}},stringify({comment:e,type:t,value:n},r,o,i){let l;if(!n)return"";if("function"==typeof btoa){let e="";for(let t=0;t<n.length;++t)e+=String.fromCharCode(n[t]);l=btoa(e)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=W.BLOCK_LITERAL),t!==W.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(l.length/e),o=Array(n);for(let t=0,r=0;t<n;++t,r+=e)o[t]=l.substr(r,e);l=o.join(t===W.BLOCK_LITERAL?"\n":" ")}return el({comment:e,type:t,value:l},r,o,i)}};function eK(e,t){if(v(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!p(r)){if(h(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");let e=r.items[0]||new em(new W(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}
|
|
16
|
+
${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}
|
|
17
|
+
${t.comment}`:r.comment}r=e}e.items[n]=p(r)?r:new em(r)}}else t("Expected a sequence for this tag");return e}function eU(e,t,n){let{replacer:r}=n,o=new ex(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let l,a;if("function"==typeof r&&(e=r.call(t,String(i++),e)),Array.isArray(e))if(2===e.length)l=e[0],a=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)a=e[l=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else l=e;o.items.push(ep(l,a,n))}return o}let ez={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:eK,createNode:eU};class eV extends ex{constructor(){super(),this.add=eb.prototype.add.bind(this),this.delete=eb.prototype.delete.bind(this),this.get=eb.prototype.get.bind(this),this.has=eb.prototype.has.bind(this),this.set=eb.prototype.set.bind(this),this.tag=eV.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;for(let e of(t?.onCreate&&t.onCreate(n),this.items)){let r,o;if(p(e)?(r=D(e.key,"",t),o=D(e.value,r,t)):r=D(e,"",t),n.has(r))throw Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}static from(e,t,n){let r=eU(e,t,n),o=new this;return o.items=r.items,o}}eV.tag="tag:yaml.org,2002:omap";let eH={collection:"seq",identify:e=>e instanceof Map,nodeClass:eV,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=eK(e,t),r=[];for(let{key:e}of n.items)m(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new eV,n)},createNode:(e,t,n)=>eV.from(e,t,n)};function eY({value:e,source:t},n){return t&&(e?eJ:eq).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let eJ={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new W(!0),stringify:eY},eq={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new W(!1),stringify:eY},eX=e=>"bigint"==typeof e||Number.isInteger(e);function eZ(e,t,n,{intAsBigInt:r}){let o=e[0];if(("-"===o||"+"===o)&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===o?BigInt(-1)*t:t}let i=parseInt(e,n);return"-"===o?-1*i:i}function eQ(e,t,n){let{value:r}=e;if(eX(r)){let e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return eA(e)}class eG extends eb{constructor(e){super(e),this.tag=eG.tag}add(e){let t;t=p(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new em(e.key,null):new em(e,null),ey(this.items,t.key)||this.items.push(t)}get(e,t){let n=ey(this.items,e);return!t&&p(n)?m(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=ey(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new em(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error("Set items must all have null values")}static from(e,t,n){let{replacer:r}=n,o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),o.items.push(ep(e,null,n));return o}}eG.tag="tag:yaml.org,2002:set";let e0={collection:"map",identify:e=>e instanceof Set,nodeClass:eG,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>eG.from(e,t,n),resolve(e,t){if(h(e))if(e.hasAllNullValues(!0))return Object.assign(new eG,e);else t("Set items must all have null values");else t("Expected a mapping for this tag");return e}};function e1(e,t){let n=e[0],r="-"===n||"+"===n?e.substring(1):e,o=e=>t?BigInt(e):Number(e),i=r.replace(/_/g,"").split(":").reduce((e,t)=>e*o(60)+o(t),o(0));return"-"===n?o(-1)*i:i}function e2(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return eA(e);let r="";t<0&&(r="-",t*=n(-1));let o=n(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),r+i.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let e9={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>e1(e,n),stringify:e2},e6={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>e1(e,!1),stringify:e2},e4={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(e4.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,r,o,i,l,a]=t.map(Number),s=Date.UTC(n,r-1,o,i||0,l||0,a||0,t[7]?Number((t[7]+"00").substr(1,3)):0),u=t[8];if(u&&"Z"!==u){let e=e1(u,!1);30>Math.abs(e)&&(e*=60),s-=6e4*e}return new Date(s)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},e5=[ew,eS,eC,eO,eJ,eq,{identify:eX,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>eZ(e,2,2,n),stringify:e=>eQ(e,2,"0b")},{identify:eX,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>eZ(e,1,8,n),stringify:e=>eQ(e,8,"0")},{identify:eX,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>eZ(e,0,10,n),stringify:eA},{identify:eX,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>eZ(e,2,16,n),stringify:e=>eQ(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:eA},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():eA(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new W(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){let r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:eA},eW,eu,eH,ez,e0,e9,e6,e4],e7=new Map([["core",eD],["failsafe",[ew,eS,eC]],["json",e_],["yaml11",e5],["yaml-1.1",e5]]),e8={binary:eW,bool:eN,float:eR,floatExp:ej,floatNaN:ek,floatTime:e6,int:e$,intHex:eM,intOct:eI,intTime:e9,map:ew,merge:eu,null:eO,omap:eH,pairs:ez,seq:eS,set:e0,timestamp:e4},e3={"tag:yaml.org,2002:binary":eW,"tag:yaml.org,2002:merge":eu,"tag:yaml.org,2002:omap":eH,"tag:yaml.org,2002:pairs":ez,"tag:yaml.org,2002:set":e0,"tag:yaml.org,2002:timestamp":e4};function te(e,t,n){let r=e7.get(t);if(r&&!e)return n&&!r.includes(eu)?r.concat(eu):r.slice();let o=r;if(!o)if(Array.isArray(e))o=[];else{let e=Array.from(e7.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)o=o.concat(t);else"function"==typeof e&&(o=e(o.slice()));return n&&(o=o.concat(eu)),o.reduce((e,t)=>{let n="string"==typeof t?e8[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(e8).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}let tt=(e,t)=>e.key<t.key?-1:+(e.key>t.key);class tn{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:o,sortMapEntries:i,toStringDefaults:a}){this.compat=Array.isArray(e)?te(e,"compat"):e?te(null,e):null,this.name="string"==typeof o&&o||"core",this.knownTags=r?e3:{},this.tags=te(t,this.name,n),this.toStringOptions=a??null,Object.defineProperty(this,l,{value:ew}),Object.defineProperty(this,s,{value:eC}),Object.defineProperty(this,u,{value:eS}),this.sortMapEntries="function"==typeof i?i:!0===i?tt:null}clone(){let e=Object.create(tn.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class tr{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,c,{value:i});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);let o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=o;let{version:l}=o;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(l=this.directives.yaml.version)):this.directives=new L({version:l}),this.setSchema(l,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){let e=Object.create(tr.prototype,{[c]:{value:i}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=y(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){to(this.contents)&&this.contents.add(e)}addIn(e,t){to(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=I(this);e.anchor=!t||n.has(t)?$(t||"a",n):t}return new F(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else void 0===n&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:o,anchorPrefix:i,flow:l,keepUndefined:a,onTagObj:s,tag:u}=n??{},{onAnchor:c,setAnchors:d,sourceObjects:f}=function(e,t){let n=[],r=new Map,o=null;return{onAnchor:r=>{n.push(r),o??(o=I(e));let i=$(t,o);return o.add(i),i},setAnchors:()=>{for(let e of n){let t=r.get(e);if("object"==typeof t&&t.anchor&&(m(t.node)||g(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:r}}(this,i||"a"),h={aliasDuplicateObjects:o??!0,keepUndefined:a??!1,onAnchor:c,onTagObj:s,replacer:r,schema:this.schema,sourceObjects:f},p=K(e,u,h);return l&&g(p)&&(p.flow=!0),d(),p}createPair(e,t,n={}){return new em(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return!!to(this.contents)&&this.contents.delete(e)}deleteIn(e){return z(e)?null!=this.contents&&(this.contents=null,!0):!!to(this.contents)&&this.contents.deleteIn(e)}get(e,t){return g(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return z(e)?!t&&m(this.contents)?this.contents.value:this.contents:g(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!g(this.contents)&&this.contents.has(e)}hasIn(e){return z(e)?void 0!==this.contents:!!g(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=U(this.schema,[e],t):to(this.contents)&&this.contents.set(e,t)}setIn(e,t){z(e)?this.contents=t:null==this.contents?this.contents=U(this.schema,Array.from(e),t):to(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new L({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new L({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new tn(Object.assign(n,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:i}={}){let l={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},a=D(this.contents,t??"",l);if("function"==typeof o)for(let{count:e,res:t}of l.anchors.values())o(t,e);return"function"==typeof i?M(i,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let n=[],r=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");let o=ea(e,t),{commentString:i}=o.options;if(e.commentBefore){1!==n.length&&n.unshift("");let t=i(e.commentBefore);n.unshift(Y(t,""))}let l=!1,a=null;if(e.contents){if(y(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){let t=i(e.contents.commentBefore);n.push(Y(t,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}let t=a?void 0:()=>l=!0,s=es(e.contents,o,()=>a=null,t);a&&(s+=J(s,"",i(a))),("|"===s[0]||">"===s[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${s}`:n.push(s)}else n.push(es(e.contents,o));if(e.directives?.docEnd)if(e.comment){let t=i(e.comment);t.includes("\n")?(n.push("..."),n.push(Y(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&l&&(t=t.replace(/^\n+/,"")),t&&((!l||a)&&""!==n[n.length-1]&&n.push(""),n.push(Y(i(t),"")))}return n.join("\n")+"\n"}(this,e)}}function to(e){if(g(e))return!0;throw Error("Expected a YAML collection as document contents")}let ti=Symbol("break visit"),tl=Symbol("skip children"),ta=Symbol("remove item");function ts(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,n,r){let o=r(n,t);if("symbol"==typeof o)return o;for(let i of["key","value"]){let l=n[i];if(l&&"items"in l){for(let n=0;n<l.items.length;++n){let o=e(Object.freeze(t.concat([[i,n]])),l.items[n],r);if("number"==typeof o)n=o-1;else{if(o===ti)return ti;o===ta&&(l.items.splice(n,1),n-=1)}}"function"==typeof o&&"key"===i&&(o=o(n,t))}}return"function"==typeof o?o(n,t):o}(Object.freeze([]),e,t)}function tu(e,t,n){let r=null;if("function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=n??t??{};if(!e)return}return f(e)&&!r?e.toString(n):new tr(e,r,n).toString(n)}ts.BREAK=ti,ts.SKIP=tl,ts.REMOVE=ta,ts.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},ts.parentCollection=(e,t)=>{let n=ts.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],o=n?.[r];if(o&&"items"in o)return o;throw Error("Parent collection not found")}},90067:(e,t,n)=>{n.d(t,{UC:()=>e0,ZL:()=>eG,bL:()=>eZ,l9:()=>eQ});var r,o=n(12115),i=n(92556),l=n(94446),a=n(3468),s=n(47650),u=n(95155);function c(e){let t=function(e){let t=o.forwardRef((e,t)=>{var n,r,i;let a,s,{children:u,...c}=e,d=o.isValidElement(u)?(s=(a=null==(r=Object.getOwnPropertyDescriptor((n=u).props,"ref"))?void 0:r.get)&&"isReactWarning"in a&&a.isReactWarning)?n.ref:(s=(a=null==(i=Object.getOwnPropertyDescriptor(n,"ref"))?void 0:i.get)&&"isReactWarning"in a&&a.isReactWarning)?n.props.ref:n.props.ref||n.ref:void 0,f=(0,l.s)(d,t);if(o.isValidElement(u)){let e=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=i(...t);return o(...t),r}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(c,u.props);return u.type!==o.Fragment&&(e.ref=f),o.cloneElement(u,e)}return o.Children.count(u)>1?o.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}(e),n=o.forwardRef((e,n)=>{let{children:r,...i}=e,l=o.Children.toArray(r),a=l.find(f);if(a){let e=a.props.children,r=l.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,u.jsx)(t,{...i,ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,r):null})}return(0,u.jsx)(t,{...i,ref:n,children:r})});return n.displayName="".concat(e,".Slot"),n}var d=Symbol("radix.slottable");function f(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=c(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),p=n(70222),m=n(59584),v="dismissableLayer.update",g=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),y=o.forwardRef((e,t)=>{var n,a;let{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:y,onDismiss:x,...E}=e,S=o.useContext(g),[C,O]=o.useState(null),N=null!=(a=null==C?void 0:C.ownerDocument)?a:null==(n=globalThis)?void 0:n.document,[,A]=o.useState({}),k=(0,l.s)(t,e=>O(e)),j=Array.from(S.layers),[R]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),P=j.indexOf(R),L=C?j.indexOf(C):-1,T=S.layersWithOutsidePointerEventsDisabled.size>0,I=L>=P,$=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,p.c)(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){w("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...S.branches].some(e=>e.contains(t));I&&!n&&(null==d||d(e),null==y||y(e),e.defaultPrevented||null==x||x())},N),M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,p.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&w("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...S.branches].some(e=>e.contains(t))&&(null==f||f(e),null==y||y(e),e.defaultPrevented||null==x||x())},N);return(0,m.U)(e=>{L===S.layers.size-1&&(null==c||c(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},N),o.useEffect(()=>{if(C)return s&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(r=N.body.style.pointerEvents,N.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(C)),S.layers.add(C),b(),()=>{s&&1===S.layersWithOutsidePointerEventsDisabled.size&&(N.body.style.pointerEvents=r)}},[C,N,s,S]),o.useEffect(()=>()=>{C&&(S.layers.delete(C),S.layersWithOutsidePointerEventsDisabled.delete(C),b())},[C,S]),o.useEffect(()=>{let e=()=>A({});return document.addEventListener(v,e),()=>document.removeEventListener(v,e)},[]),(0,u.jsx)(h.div,{...E,ref:k,style:{pointerEvents:T?I?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.m)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,i.m)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,i.m)(e.onPointerDownCapture,$.onPointerDownCapture)})});function b(){let e=new CustomEvent(v);document.dispatchEvent(e)}function w(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&i.addEventListener(e,t,{once:!0}),o)i&&s.flushSync(()=>i.dispatchEvent(l));else i.dispatchEvent(l)}y.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(g),r=o.useRef(null),i=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(h.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var x=n(19526),E="focusScope.autoFocusOnMount",S="focusScope.autoFocusOnUnmount",C={bubbles:!1,cancelable:!0},O=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[c,d]=o.useState(null),f=(0,p.c)(i),m=(0,p.c)(a),v=o.useRef(null),g=(0,l.s)(t,e=>d(e)),y=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(y.paused||!c)return;let t=e.target;c.contains(t)?v.current=t:k(v.current,{select:!0})},t=function(e){if(y.paused||!c)return;let t=e.relatedTarget;null!==t&&(c.contains(t)||k(v.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&&k(c)});return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,c,y.paused]),o.useEffect(()=>{if(c){j.add(y);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(E,C);c.addEventListener(E,f),c.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(k(r,{select:t}),document.activeElement!==n)return}(N(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&k(c))}return()=>{c.removeEventListener(E,f),setTimeout(()=>{let t=new CustomEvent(S,C);c.addEventListener(S,m),c.dispatchEvent(t),t.defaultPrevented||k(null!=e?e:document.body,{select:!0}),c.removeEventListener(S,m),j.remove(y)},0)}}},[c,f,m,y]);let b=o.useCallback(e=>{if(!n&&!r||y.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=N(e);return[A(t,e),A(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&k(i,{select:!0})):(e.preventDefault(),n&&k(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,y.paused]);return(0,u.jsx)(h.div,{tabIndex:-1,...s,ref:g,onKeyDown:b})});function N(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 A(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 k(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()}}O.displayName="FocusScope";var j=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=R(e,t)).unshift(t)},remove(t){var n;null==(n=(e=R(e,t))[0])||n.resume()}}}();function R(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var P=n(68946),L=n(88334),T=n(58146),I=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,u.jsx)(h.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,u.jsx)("polygon",{points:"0,0 30,0 15,10"})})});I.displayName="Arrow";var $=n(4129),M=n(84288),D="Popper",[B,F]=(0,a.A)(D),[_,W]=B(D),K=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,u.jsx)(_,{scope:t,anchor:r,onAnchorChange:i,children:n})};K.displayName=D;var U="PopperAnchor",z=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=W(U,n),s=o.useRef(null),c=(0,l.s)(t,s);return o.useEffect(()=>{a.onAnchorChange((null==r?void 0:r.current)||s.current)}),r?null:(0,u.jsx)(h.div,{...i,ref:c})});z.displayName=U;var V="PopperContent",[H,Y]=B(V),J=o.forwardRef((e,t)=>{var n,r,i,a,s,c,d,f;let{__scopePopper:m,side:v="bottom",sideOffset:g=0,align:y="center",alignOffset:b=0,arrowPadding:w=0,avoidCollisions:x=!0,collisionBoundary:E=[],collisionPadding:S=0,sticky:C="partial",hideWhenDetached:O=!1,updatePositionStrategy:N="optimized",onPlaced:A,...k}=e,j=W(V,m),[R,P]=o.useState(null),I=(0,l.s)(t,e=>P(e)),[D,B]=o.useState(null),F=(0,M.X)(D),_=null!=(d=null==F?void 0:F.width)?d:0,K=null!=(f=null==F?void 0:F.height)?f:0,U="number"==typeof S?S:{top:0,right:0,bottom:0,left:0,...S},z=Array.isArray(E)?E:[E],Y=z.length>0,J={padding:U,boundary:z.filter(Q),altBoundary:Y},{refs:q,floatingStyles:X,placement:Z,isPositioned:et,middlewareData:en}=(0,L.we)({strategy:"fixed",placement:v+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,T.ll)(...t,{animationFrame:"always"===N})},elements:{reference:j.anchor},middleware:[(0,L.cY)({mainAxis:g+K,alignmentAxis:b}),x&&(0,L.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?(0,L.ER)():void 0,...J}),x&&(0,L.UU)({...J}),(0,L.Ej)({...J,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),D&&(0,L.UE)({element:D,padding:w}),G({arrowWidth:_,arrowHeight:K}),O&&(0,L.jD)({strategy:"referenceHidden",...J})]}),[er,eo]=ee(Z),ei=(0,p.c)(A);(0,$.N)(()=>{et&&(null==ei||ei())},[et,ei]);let el=null==(n=en.arrow)?void 0:n.x,ea=null==(r=en.arrow)?void 0:r.y,es=(null==(i=en.arrow)?void 0:i.centerOffset)!==0,[eu,ec]=o.useState();return(0,$.N)(()=>{R&&ec(window.getComputedStyle(R).zIndex)},[R]),(0,u.jsx)("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:et?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null==(a=en.transformOrigin)?void 0:a.x,null==(s=en.transformOrigin)?void 0:s.y].join(" "),...(null==(c=en.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,u.jsx)(H,{scope:m,placedSide:er,onArrowChange:B,arrowX:el,arrowY:ea,shouldHideArrow:es,children:(0,u.jsx)(h.div,{"data-side":er,"data-align":eo,...k,ref:I,style:{...k.style,animation:et?void 0:"none"}})})})});J.displayName=V;var q="PopperArrow",X={top:"bottom",right:"left",bottom:"top",left:"right"},Z=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=Y(q,n),i=X[o.placedSide];return(0,u.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,u.jsx)(I,{...r,ref:t,style:{...r.style,display:"block"}})})});function Q(e){return null!==e}Z.displayName=q;var G=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:s,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=ee(a),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!=(i=null==(r=u.arrow)?void 0:r.x)?i:0)+d/2,g=(null!=(l=null==(o=u.arrow)?void 0:o.y)?l:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:"".concat(v,"px"),b="".concat(-f,"px")):"top"===h?(y=c?m:"".concat(v,"px"),b="".concat(s.floating.height+f,"px")):"right"===h?(y="".concat(-f,"px"),b=c?m:"".concat(g,"px")):"left"===h&&(y="".concat(s.floating.width+f,"px"),b=c?m:"".concat(g,"px")),{data:{x:y,y:b}}}});function ee(e){let[t,n="center"]=e.split("-");return[t,n]}var et=o.forwardRef((e,t)=>{var n,r;let{container:i,...l}=e,[a,c]=o.useState(!1);(0,$.N)(()=>c(!0),[]);let d=i||a&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return d?s.createPortal((0,u.jsx)(h.div,{...l,ref:t}),d):null});et.displayName="Portal";var en=n(76842),er=n(23558),eo=n(97745),ei=n(71450),el=n(60216),ea=n(78357),es=(0,n(43711).f)(),eu=function(){},ec=o.forwardRef(function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:eu,onWheelCapture:eu,onTouchMoveCapture:eu}),i=r[0],l=r[1],a=e.forwardProps,s=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,y=e.gapMode,b=(0,ei.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=(0,ea.S)([n,t]),x=(0,ei.Cl)((0,ei.Cl)({},b),i);return o.createElement(o.Fragment,null,d&&o.createElement(h,{sideCar:es,removeScrollBar:c,shards:f,noIsolation:p,inert:m,setCallbacks:l,allowPinchZoom:!!v,lockRef:n,gapMode:y}),a?o.cloneElement(o.Children.only(s),(0,ei.Cl)((0,ei.Cl)({},x),{ref:w})):o.createElement(void 0===g?"div":g,(0,ei.Cl)({},x,{className:u,ref:w}),s))});ec.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ec.classNames={fullWidth:el.pN,zeroRight:el.Mi};var ed=n(39615),ef=n(46810),eh=n(65841),ep=!1;if("undefined"!=typeof window)try{var em=Object.defineProperty({},"passive",{get:function(){return ep=!0,!0}});window.addEventListener("test",em,em),window.removeEventListener("test",em,em)}catch(e){ep=!1}var ev=!!ep&&{passive:!1},eg=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])},ey=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eb(e,r)){var o=ew(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eb=function(e,t){return"v"===e?eg(t,"overflowY"):eg(t,"overflowX")},ew=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ex=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,s=n.target,u=t.contains(s),c=!1,d=a>0,f=0,h=0;do{var p=ew(e,s),m=p[0],v=p[1]-p[2]-l*m;(m||v)&&eb(e,s)&&(f+=v,h+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(h)||!o&&-a>h)&&(c=!0),c},eE=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eS=function(e){return[e.deltaX,e.deltaY]},eC=function(e){return e&&"current"in e?e.current:e},eO=0,eN=[];let eA=(0,ed.m)(es,function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(eO++)[0],l=o.useState(eh.T0)[0],a=o.useRef(e);o.useEffect(function(){a.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,ei.fX)([e.lockRef.current],(e.shards||[]).map(eC),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=eE(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=ey(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=ey(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var h=r.current||o;return ex(h,t,e,"h"===h?s:u,!0)},[]),u=o.useCallback(function(e){if(eN.length&&eN[eN.length-1]===l){var n="deltaY"in e?eS(e):eE(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,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(eC).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=o.useCallback(function(e,n,r,o){var i={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(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=o.useCallback(function(e){n.current=eE(e),r.current=void 0},[]),f=o.useCallback(function(t){c(t.type,eS(t),t.target,s(t,e.lockRef.current))},[]),h=o.useCallback(function(t){c(t.type,eE(t),t.target,s(t,e.lockRef.current))},[]);o.useEffect(function(){return eN.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,ev),document.addEventListener("touchmove",u,ev),document.addEventListener("touchstart",d,ev),function(){eN=eN.filter(function(e){return e!==l}),document.removeEventListener("wheel",u,ev),document.removeEventListener("touchmove",u,ev),document.removeEventListener("touchstart",d,ev)}},[]);var p=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(l,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?o.createElement(ef.jp,{gapMode:e.gapMode}):null)});var ek=o.forwardRef(function(e,t){return o.createElement(ec,(0,ei.Cl)({},e,{ref:t,sideCar:eA}))});ek.classNames=ec.classNames;var ej="Popover",[eR,eP]=(0,a.A)(ej,[F]),eL=F(),[eT,eI]=eR(ej),e$=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:l,modal:a=!1}=e,s=eL(t),c=o.useRef(null),[d,f]=o.useState(!1),[h,p]=(0,er.i)({prop:r,defaultProp:null!=i&&i,onChange:l,caller:ej});return(0,u.jsx)(K,{...s,children:(0,u.jsx)(eT,{scope:t,contentId:(0,P.B)(),triggerRef:c,open:h,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:d,onCustomAnchorAdd:o.useCallback(()=>f(!0),[]),onCustomAnchorRemove:o.useCallback(()=>f(!1),[]),modal:a,children:n})})};e$.displayName=ej;var eM="PopoverAnchor";o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=eI(eM,n),l=eL(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=i;return o.useEffect(()=>(a(),()=>s()),[a,s]),(0,u.jsx)(z,{...l,...r,ref:t})}).displayName=eM;var eD="PopoverTrigger",eB=o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=eI(eD,n),a=eL(n),s=(0,l.s)(t,o.triggerRef),c=(0,u.jsx)(h.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":eX(o.open),...r,ref:s,onClick:(0,i.m)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:(0,u.jsx)(z,{asChild:!0,...a,children:c})});eB.displayName=eD;var eF="PopoverPortal",[e_,eW]=eR(eF,{forceMount:void 0}),eK=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=eI(eF,t);return(0,u.jsx)(e_,{scope:t,forceMount:n,children:(0,u.jsx)(en.C,{present:n||i.open,children:(0,u.jsx)(et,{asChild:!0,container:o,children:r})})})};eK.displayName=eF;var eU="PopoverContent",ez=o.forwardRef((e,t)=>{let n=eW(eU,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=eI(eU,e.__scopePopover);return(0,u.jsx)(en.C,{present:r||i.open,children:i.modal?(0,u.jsx)(eH,{...o,ref:t}):(0,u.jsx)(eY,{...o,ref:t})})});ez.displayName=eU;var eV=c("PopoverContent.RemoveScroll"),eH=o.forwardRef((e,t)=>{let n=eI(eU,e.__scopePopover),r=o.useRef(null),a=(0,l.s)(t,r),s=o.useRef(!1);return o.useEffect(()=>{let e=r.current;if(e)return(0,eo.Eq)(e)},[]),(0,u.jsx)(ek,{as:eV,allowPinchZoom:!0,children:(0,u.jsx)(eJ,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),s.current||null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;s.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),eY=o.forwardRef((e,t)=>{let n=eI(eU,e.__scopePopover),r=o.useRef(!1),i=o.useRef(!1);return(0,u.jsx)(eJ,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,l;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(r.current||null==(l=n.triggerRef.current)||l.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{var o,l;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let a=t.target;(null==(l=n.triggerRef.current)?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),eJ=o.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:d,...f}=e,h=eI(eU,n),p=eL(n);return(0,x.Oh)(),(0,u.jsx)(O,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,u.jsx)(y,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:(0,u.jsx)(J,{"data-state":eX(h.open),role:"dialog",id:h.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),eq="PopoverClose";function eX(e){return e?"open":"closed"}o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=eI(eq,n);return(0,u.jsx)(h.button,{type:"button",...r,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=eq,o.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=eL(n);return(0,u.jsx)(Z,{...o,...r,ref:t})}).displayName="PopoverArrow";var eZ=e$,eQ=eB,eG=eK,e0=ez},90368:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},97239:(e,t,n)=>{n.d(t,{_:()=>o});var r=n(61911);function o(e,t){var n=(0,r._)(e,t,"get");return n.get?n.get.call(e):n.value}},97999:(e,t,n)=>{n.d(t,{_:()=>r});function r(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[452],{11186:(e,t,a)=>{a.d(t,{bq:()=>c,eb:()=>f,gC:()=>p,l6:()=>u,yv:()=>d});var l=a(95155);a(12115);var s=a(76412),r=a(24033),n=a(5917),o=a(12108),i=a(64269);function u(e){let{...t}=e;return(0,l.jsx)(s.bL,{"data-slot":"select",...t})}function d(e){let{...t}=e;return(0,l.jsx)(s.WT,{"data-slot":"select-value",...t})}function c(e){let{className:t,size:a="default",children:n,...o}=e;return(0,l.jsxs)(s.l9,{"data-slot":"select-trigger","data-size":a,className:(0,i.cn)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...o,children:[n,(0,l.jsx)(s.In,{asChild:!0,children:(0,l.jsx)(r.A,{className:"size-4 opacity-50"})})]})}function p(e){let{className:t,children:a,position:r="popper",...n}=e;return(0,l.jsx)(s.ZL,{children:(0,l.jsxs)(s.UC,{"data-slot":"select-content",className:(0,i.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...n,children:[(0,l.jsx)(g,{}),(0,l.jsx)(s.LM,{className:(0,i.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:a}),(0,l.jsx)(m,{})]})})}function f(e){let{className:t,children:a,...r}=e;return(0,l.jsxs)(s.q7,{"data-slot":"select-item",className:(0,i.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...r,children:[(0,l.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,l.jsx)(s.VF,{children:(0,l.jsx)(n.A,{className:"size-4"})})}),(0,l.jsx)(s.p4,{children:a})]})}function g(e){let{className:t,...a}=e;return(0,l.jsx)(s.PP,{"data-slot":"select-scroll-up-button",className:(0,i.cn)("flex cursor-default items-center justify-center py-1",t),...a,children:(0,l.jsx)(o.A,{className:"size-4"})})}function m(e){let{className:t,...a}=e;return(0,l.jsx)(s.wn,{"data-slot":"select-scroll-down-button",className:(0,i.cn)("flex cursor-default items-center justify-center py-1",t),...a,children:(0,l.jsx)(r.A,{className:"size-4"})})}},26333:(e,t,a)=>{a.d(t,{AM:()=>n,Wv:()=>o,hl:()=>i});var l=a(95155);a(12115);var s=a(90067),r=a(64269);function n(e){let{...t}=e;return(0,l.jsx)(s.bL,{"data-slot":"popover",...t})}function o(e){let{...t}=e;return(0,l.jsx)(s.l9,{"data-slot":"popover-trigger",...t})}function i(e){let{className:t,align:a="center",sideOffset:n=4,...o}=e;return(0,l.jsx)(s.ZL,{children:(0,l.jsx)(s.UC,{"data-slot":"popover-content",align:a,sideOffset:n,className:(0,r.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...o})})}},27063:(e,t,a)=>{a.d(t,{cj:()=>o,h:()=>d,qp:()=>c});var l=a(95155);a(12115);var s=a(88292),r=a(65229),n=a(64269);function o(e){let{...t}=e;return(0,l.jsx)(s.bL,{"data-slot":"sheet",...t})}function i(e){let{...t}=e;return(0,l.jsx)(s.ZL,{"data-slot":"sheet-portal",...t})}function u(e){let{className:t,...a}=e;return(0,l.jsx)(s.hJ,{"data-slot":"sheet-overlay",className:(0,n.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function d(e){let{className:t,children:a,side:o="right",...d}=e;return(0,l.jsxs)(i,{children:[(0,l.jsx)(u,{}),(0,l.jsxs)(s.UC,{"data-slot":"sheet-content",className:(0,n.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===o&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===o&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===o&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===o&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...d,children:[a,(0,l.jsxs)(s.bm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,l.jsx)(r.A,{className:"size-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function c(e){let{className:t,...a}=e;return(0,l.jsx)(s.hE,{"data-slot":"sheet-title",className:(0,n.cn)("text-foreground font-semibold",t),...a})}},34015:(e,t,a)=>{a.d(t,{H:()=>d,v:()=>u});var l=a(95155);a(12115);var s=a(3998),r=a(11186),n=a(90368),o=a(27937),i=a(95757);let u=e=>{let{run:t,filter:a,count:r,onFilterChange:n}=e;return(0,l.jsx)("div",{className:"flex flex-wrap items-center gap-1.5 px-4 py-2.5 bg-muted/30 border-b",role:"group","aria-label":"Filter results by evaluation",children:i.Bt.map(e=>{var o;let i=e.value===a,u=i&&null!==r?r:null==(o=e.summaryCount)?void 0:o.call(e,t);return(0,l.jsxs)(s.$,{variant:i?"secondary":"ghost",size:"sm",className:"h-7 text-xs","aria-pressed":i,onClick:()=>n(e.value),children:[e.label,void 0!==u&&(0,l.jsx)("span",{className:"text-muted-foreground tabular-nums",children:u.toLocaleString()})]},e.value)})})},d=e=>{let{page:t,pageSize:a,count:u,isLoading:d,onPageChange:c,onPageSizeChange:p}=e,f=u?Math.ceil(u/a):0,g=u?(t-1)*a+1:0,m=u?Math.min(t*a,u):0;return(0,l.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-3 px-3 py-2 border-t text-xs text-muted-foreground",children:[p&&(0,l.jsxs)("div",{className:"flex items-center gap-2 mr-auto",children:[(0,l.jsx)("span",{className:"whitespace-nowrap",children:"Per page:"}),(0,l.jsxs)(r.l6,{value:a.toString(),onValueChange:e=>p(parseInt(e,10)),children:[(0,l.jsx)(r.bq,{className:"w-[70px] h-7 text-xs","aria-label":"Results per page",children:(0,l.jsx)(r.yv,{placeholder:a.toString()})}),(0,l.jsx)(r.gC,{children:i.LW.map(e=>(0,l.jsx)(r.eb,{value:e.toString(),children:e},e))})]})]}),(0,l.jsx)("span",{className:"tabular-nums whitespace-nowrap",children:null===u?"—":"".concat(g.toLocaleString(),"–").concat(m.toLocaleString()," of ").concat(u.toLocaleString())}),(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)(s.$,{variant:"ghost",size:"icon",className:"h-6 w-6","aria-label":"Previous page",onClick:()=>c(t-1),disabled:d||t<=1,children:(0,l.jsx)(n.A,{className:"h-3.5 w-3.5"})}),(0,l.jsx)(s.$,{variant:"ghost",size:"icon",className:"h-6 w-6","aria-label":"Next page",onClick:()=>c(t+1),disabled:d||t>=f,children:(0,l.jsx)(o.A,{className:"h-3.5 w-3.5"})})]})]})}},68448:(e,t,a)=>{a.d(t,{P:()=>r});var l=a(95155);a(12115);var s=a(81701);let r=e=>{let{content:t,className:a=""}=e,r=(0,s.Ae)(t);return 0===r.length?(0,l.jsx)("span",{className:"italic text-muted-foreground",children:"(empty)"}):(0,l.jsx)("div",{className:"space-y-2 ".concat(a),children:r.map((e,t)=>"text"===e.type?(0,l.jsx)("p",{className:"whitespace-pre-wrap break-words",children:e.text},t):(0,l.jsx)("img",{src:e.url,alt:"Image part ".concat(t+1),className:"max-h-48 rounded border object-contain"},t))})}},81701:(e,t,a)=>{a.d(t,{Ae:()=>d,HK:()=>s,Lo:()=>c,ME:()=>u,NN:()=>o,bR:()=>f,dW:()=>r,z:()=>g});let l=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),s=e=>l(e)&&1===e.v&&"string"==typeof e.node&&Array.isArray(e.path),r=e=>!!(null==e?void 0:e.some(e=>s(e.content))),n=e=>Array.isArray(e)&&e.every(e=>l(e)&&"string"==typeof e.role),o=e=>Array.isArray(e)?e.filter(l).map(e=>{let t=l(e.function)?e.function:e;return{id:"string"==typeof e.id?e.id:null,name:"string"==typeof t.name?t.name:"unknown tool",arguments:(e=>{if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return e}})(t.arguments)}}):[],i=e=>{var t,a,r,i;let u=e.content,d=String(e.sequence);if(s(u)){let e=Math.max(0,u.path.length-1),s=l(u.data)?u.data:{},r=null!=(t=u.label)?t:"";switch(u.node){case"phase":return{kind:"phase",key:d,depth:e,label:r,data:s};case"call":{let t="string"==typeof s.role?s.role:r||"call",{request:o,response:i}=s;return{kind:"call",key:d,depth:e,role:t,messages:n(o)?o:null,request:n(o)?null:o,response:i,verdict:((e,t)=>l(t)&&("score"in t||"success"in t)&&("panel"===e||"explanation"in t)?{score:"number"==typeof t.score?t.score:null,success:"boolean"==typeof t.success?t.success:null,explanation:"string"==typeof t.explanation?t.explanation:null}:null)(t,i),usage:l(s.usage)?s.usage:null,latencyS:"number"==typeof u.latency_s?u.latency_s:null,error:null!=(a=u.error)?a:null}}case"decision":{let{reason:t,...a}=s;return{kind:"decision",key:d,depth:e,label:r,reason:"string"==typeof t?t:"",data:a}}default:return{kind:"other",key:d,depth:e,node:u.node,label:r,data:u.data}}}if((e=>l(e)&&!("v"in e)&&(l(e.request)||l(e.response)))(u)){let e=l(u.response)?u.response:{},t=l(e.error)?null!=(i=e.error.message)?i:JSON.stringify(e.error):e.error;return{kind:"interaction",key:d,depth:0,messages:n(null==(r=u.request)?void 0:r.messages)?u.request.messages:[],text:"string"==typeof e.text?e.text:null,toolCalls:o(e.tool_calls),model:"string"==typeof e.model?e.model:null,finishReason:"string"==typeof e.finish_reason?e.finish_reason:null,usage:l(e.usage)?e.usage:null,error:"string"==typeof t?t:null}}return{kind:"other",key:d,depth:0,node:"trace",label:"",data:u}},u=e=>[...e].sort((e,t)=>e.sequence-t.sequence).map(i),d=e=>null==e?[]:"string"==typeof e?[{type:"text",text:e}]:Array.isArray(e)?e.flatMap(e=>{if("string"==typeof e)return[{type:"text",text:e}];if(l(e)&&"string"==typeof e.text)return[{type:"text",text:e.text}];if(l(e)&&void 0!==e.image_url){let t=l(e.image_url)?e.image_url.url:e.image_url;if("string"==typeof t)return[{type:"image",url:t}]}return[{type:"text",text:JSON.stringify(e)}]}):[{type:"text",text:JSON.stringify(e)}],c=e=>d(e).map(e=>"text"===e.type?e.text:"[image]").join("\n"),p={attacker:"Attacker",target:"Target",panel:"Judge panel",judge:"Judge",scorer:"Scorer"},f=e=>{if(p[e])return p[e];let t=e.replace(/[_-]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)},g=e=>{var t,a;let l=e.traces?u(e.traces).find(e=>"interaction"===e.kind):void 0,s=(null==l?void 0:l.kind)==="interaction"?l:null,r=e.requestPayload,o=n(null==r?void 0:r.messages)&&r.messages.length>0?r.messages:null!=(t=null==s?void 0:s.messages)?t:[];if(0===o.length)return null;let i=e.agentSpecificData;return{messages:o,reply:"string"==typeof(null==i?void 0:i.response)?i.response:null!=(a=null==s?void 0:s.text)?a:null}}},95757:(e,t,a)=>{a.d(t,{Bt:()=>u,KA:()=>i,LW:()=>o,No:()=>d});var l=a(12115),s=a(38775),r=a(7831);let n=(0,a(41444).h)("useRunResults"),o=[25,50,100],i=25,u=[{value:"all",label:"All",summaryCount:e=>e.totalResults},{value:s.v3H.SuccessfulJailbreak,label:"Jailbreak",summaryCount:e=>e.successfulJailbreaks},{value:s.v3H.FailedJailbreak,label:"Mitigated"},{value:s.v3H.ErrorAgentResponse,label:"Agent error"},{value:s.v3H.ErrorTestFramework,label:"Framework error"},{value:s.v3H.NotEvaluated,label:"Not evaluated",summaryCount:e=>e.notEvaluated}],d=e=>{var t,a,s,o,u,d;let c=null!=(t=null==e?void 0:e.id)?t:null,[p,f]=(0,l.useState)(1),[g,m]=(0,l.useState)(i),[x,h]=(0,l.useState)("all"),[v,b]=(0,l.useState)(null),[y,j]=(0,l.useState)(!1),[N,w]=(0,l.useState)(null),[k,S]=(0,l.useState)(0),[C,z]=(0,l.useState)(null),[A,_]=(0,l.useState)(null),[L,R]=(0,l.useState)(!1),[q,E]=(0,l.useState)(null),J=(0,l.useRef)(new Map),M=(0,l.useRef)(null),F=(0,l.useRef)(null),[I,H]=(0,l.useState)(c);c!==I&&(H(c),f(1),h("all"),b(null),w(null)),(0,l.useEffect)(()=>{J.current=new Map,F.current=null},[c]);let P=(0,l.useRef)(e),O=(0,l.useRef)(x);(0,l.useEffect)(()=>{P.current=e,O.current=x},[e,x]);let T=(0,l.useCallback)(e=>{E(null),M.current=e;let t=J.current.get(e);if(t){_(t),R(!1);return}_(null),R(!0);let a=J.current;r.ui.resultRetrieve({id:e}).then(t=>{a.set(t.id,t),M.current===e&&(_(t),R(!1))}).catch(t=>{M.current===e&&(n.error({err:t,resultId:e},"Failed to fetch result"),E((null==t?void 0:t.message)||"Failed to load this result."),R(!1))})},[]),W=(0,l.useCallback)((e,t,a)=>{let l=P.current;l&&(z({result:e,runId:l.id,attackId:l.attack,filter:O.current,position:t,total:a}),T(e.id))},[T]);(0,l.useEffect)(()=>{if(!c)return;let e=new AbortController,t={run:c,page:p,pageSize:g};return"all"!==x&&(t.evaluationStatus=x),j(!0),w(null),r.ui.resultList(t,{signal:e.signal}).then(t=>{var a;if(e.signal.aborted)return;let l=null!=(a=t.results)?a:[];b({results:l,count:t.count,page:p,pageSize:g}),j(!1);let s=F.current;F.current=null;let r=null===s?void 0:l[s-(p-1)*g];null!==s&&r&&W(r,s,t.count)}).catch(t=>{e.signal.aborted||(n.error({err:t,runId:c,page:p},"Failed to fetch results"),F.current=null,w((null==t?void 0:t.message)||"Failed to load results."),j(!1))}),()=>e.abort()},[c,p,g,x,k,W]);let U=(0,l.useCallback)(e=>{m(e),f(1)},[]),Z=(0,l.useCallback)(e=>{e!==x&&(h(e),f(1),b(null))},[x]),$=(0,l.useCallback)(()=>S(e=>e+1),[]),B=(0,l.useCallback)(e=>{if(!v)return;let t=v.results.findIndex(t=>t.id===e.id);t<0||W(e,(v.page-1)*v.pageSize+t,v.count)},[v,W]),K=(0,l.useCallback)(()=>{M.current=null,z(null),_(null),R(!1),E(null)},[]),V=(0,l.useCallback)(()=>{C&&T(C.result.id)},[C,T]),D=!!C&&C.runId===c&&C.filter===x,G=null!=(s=null!=(a=null==v?void 0:v.count)?a:null==C?void 0:C.total)?s:0,Q=D&&C.position>0,X=D&&C.position<G-1,Y=(0,l.useCallback)(e=>{if(!C)return;let t=C.position+e,a=Math.floor(t/g)+1;if(!y&&v&&v.page===a&&v.pageSize===g){let e=v.results[t-(a-1)*g];e&&W(e,t,v.count);return}F.current=t,a!==p?f(a):$()},[C,g,y,v,p,W,$]);return{page:p,pageSize:g,filter:x,results:null!=(o=null==v?void 0:v.results)?o:[],count:null!=(u=null==v?void 0:v.count)?u:null,firstResultNumber:v?v.count-(v.page-1)*v.pageSize:0,isLoading:!!c&&!N&&(y||!v),error:N,setPage:f,setPageSize:U,setFilter:Z,reload:$,selection:C,selectedResult:null!=(d=null!=A?A:null==C?void 0:C.result)?d:null,selectedResultNumber:C?C.total-C.position:void 0,isLoadingDetail:L,detailError:q,openResult:B,closeResult:K,retryDetail:V,hasPrevious:Q,hasNext:X,goToPrevious:()=>Y(-1),goToNext:()=>Y(1)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[592],{15870:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(71847).A)("settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},24595:(e,t,r)=>{r.d(t,{UC:()=>ro,q7:()=>rl,ZL:()=>rn,bL:()=>rt,wv:()=>ra,l9:()=>rr});var n,o,l=r(12115),a=r(92556),i=r(94446),u=r(3468),s=r(23558),c=r(47650),d=r(95155);function f(e){let t=function(e){let t=l.forwardRef((e,t)=>{var r,n,o;let a,u,{children:s,...c}=e,d=l.isValidElement(s)?(u=(a=null==(n=Object.getOwnPropertyDescriptor((r=s).props,"ref"))?void 0:n.get)&&"isReactWarning"in a&&a.isReactWarning)?r.ref:(u=(a=null==(o=Object.getOwnPropertyDescriptor(r,"ref"))?void 0:o.get)&&"isReactWarning"in a&&a.isReactWarning)?r.props.ref:r.props.ref||r.ref:void 0,f=(0,i.s)(d,t);if(l.isValidElement(s)){let e=function(e,t){let r={...t};for(let n in t){let o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=l(...t);return o(...t),n}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(c,s.props);return s.type!==l.Fragment&&(e.ref=f),l.cloneElement(s,e)}return l.Children.count(s)>1?l.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}(e),r=l.forwardRef((e,r)=>{let{children:n,...o}=e,a=l.Children.toArray(n),i=a.find(h);if(i){let e=i.props.children,n=a.map(t=>t!==i?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,d.jsx)(t,{...o,ref:r,children:l.isValidElement(e)?l.cloneElement(e,void 0,n):null})}return(0,d.jsx)(t,{...o,ref:r,children:n})});return r.displayName="".concat(e,".Slot"),r}var p=Symbol("radix.slottable");function h(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===p}var v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=f(`Primitive.${t}`),n=l.forwardRef((e,n)=>{let{asChild:o,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(o?r:t,{...l,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function m(e,t){e&&c.flushSync(()=>e.dispatchEvent(t))}var y=r(97239),w=r(97999),g=r(69023);function x(e){let t=e+"CollectionProvider",[r,n]=(0,u.A)(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,n=l.useRef(null),a=l.useRef(new Map).current;return(0,d.jsx)(o,{scope:t,itemMap:a,collectionRef:n,children:r})};s.displayName=t;let c=e+"CollectionSlot",p=f(c),h=l.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=a(c,r),l=(0,i.s)(t,o.collectionRef);return(0,d.jsx)(p,{ref:l,children:n})});h.displayName=c;let v=e+"CollectionItemSlot",m="data-radix-collection-item",y=f(v),w=l.forwardRef((e,t)=>{let{scope:r,children:n,...o}=e,u=l.useRef(null),s=(0,i.s)(t,u),c=a(v,r);return l.useEffect(()=>(c.itemMap.set(u,{ref:u,...o}),()=>void c.itemMap.delete(u))),(0,d.jsx)(y,{...{[m]:""},ref:s,children:n})});return w.displayName=v,[{Provider:s,Slot:h,ItemSlot:w},function(t){let r=a(e+"CollectionConsumer",t);return l.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var b=new WeakMap;function E(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=C(t),o=n>=0?n:r+n;return o<0||o>=r?-1:o}(e,t);return -1===r?void 0:e[r]}function C(e){return e!=e||0===e?0:Math.trunc(e)}n=new WeakMap,class e extends Map{set(e,t){return b.get(this)&&(this.has(e)?(0,y._)(this,n)[(0,y._)(this,n).indexOf(e)]=e:(0,y._)(this,n).push(e)),super.set(e,t),this}insert(e,t,r){let o,l=this.has(t),a=(0,y._)(this,n).length,i=C(e),u=i>=0?i:a+i,s=u<0||u>=a?-1:u;if(s===this.size||l&&s===this.size-1||-1===s)return this.set(t,r),this;let c=this.size+ +!l;i<0&&u++;let d=[...(0,y._)(this,n)],f=!1;for(let e=u;e<c;e++)if(u===e){let n=d[e];d[e]===t&&(n=d[e+1]),l&&this.delete(t),o=this.get(n),this.set(t,r)}else{f||d[e-1]!==t||(f=!0);let r=d[f?e:e-1],n=o;o=this.get(r),this.delete(r),this.set(r,n)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=(0,y._)(this,n).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let o=(0,y._)(this,n).indexOf(e);return -1===o?this:this.insert(o,t,r)}after(e){let t=(0,y._)(this,n).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let o=(0,y._)(this,n).indexOf(e);return -1===o?this:this.insert(o+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return(0,g._)(this,n,[]),super.clear()}delete(e){let t=super.delete(e);return t&&(0,y._)(this,n).splice((0,y._)(this,n).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=E((0,y._)(this,n),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=E((0,y._)(this,n),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return(0,y._)(this,n).indexOf(e)}keyAt(e){return E((0,y._)(this,n),e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,o]=t,l=0,a=null!=o?o:this.at(0);for(let e of this)a=0===l&&1===t.length?e:Reflect.apply(n,this,[a,e,l,this]),l++;return a}reduceRight(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,o]=t,l=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let r=this.at(e);l=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[l,r,e,this])}return l}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let o=[...this.entries()];return o.splice(...r),new e(o)}slice(t,r){let n=new e,o=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(o=r-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}constructor(e){super(e),(0,w._)(this,n,{writable:!0,value:void 0}),(0,g._)(this,n,[...super.keys()]),b.set(this,!0)}};var R=r(66218),M=r(70222),k=r(59584),j="dismissableLayer.update",D=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),P=l.forwardRef((e,t)=>{var r,n;let{disableOutsidePointerEvents:u=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:p,onDismiss:h,...m}=e,y=l.useContext(D),[w,g]=l.useState(null),x=null!=(n=null==w?void 0:w.ownerDocument)?n:null==(r=globalThis)?void 0:r.document,[,b]=l.useState({}),E=(0,i.s)(t,e=>g(e)),C=Array.from(y.layers),[R]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),P=C.indexOf(R),_=w?C.indexOf(w):-1,N=y.layersWithOutsidePointerEventsDisabled.size>0,L=_>=P,T=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,M.c)(e),o=l.useRef(!1),a=l.useRef(()=>{});return l.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){A("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",a.current),a.current=t,r.addEventListener("click",a.current,{once:!0})):t()}else r.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",a.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,r=[...y.branches].some(e=>e.contains(t));L&&!r&&(null==c||c(e),null==p||p(e),e.defaultPrevented||null==h||h())},x),O=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,M.c)(e),o=l.useRef(!1);return l.useEffect(()=>{let e=e=>{e.target&&!o.current&&A("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...y.branches].some(e=>e.contains(t))&&(null==f||f(e),null==p||p(e),e.defaultPrevented||null==h||h())},x);return(0,k.U)(e=>{_===y.layers.size-1&&(null==s||s(e),!e.defaultPrevented&&h&&(e.preventDefault(),h()))},x),l.useEffect(()=>{if(w)return u&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(o=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(w)),y.layers.add(w),S(),()=>{u&&1===y.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=o)}},[w,x,u,y]),l.useEffect(()=>()=>{w&&(y.layers.delete(w),y.layersWithOutsidePointerEventsDisabled.delete(w),S())},[w,y]),l.useEffect(()=>{let e=()=>b({});return document.addEventListener(j,e),()=>document.removeEventListener(j,e)},[]),(0,d.jsx)(v.div,{...m,ref:E,style:{pointerEvents:N?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.m)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,a.m)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,a.m)(e.onPointerDownCapture,T.onPointerDownCapture)})});function S(){let e=new CustomEvent(j);document.dispatchEvent(e)}function A(e,t,r,n){let{discrete:o}=n,l=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&l.addEventListener(e,t,{once:!0}),o?m(l,a):l.dispatchEvent(a)}P.displayName="DismissableLayer",l.forwardRef((e,t)=>{let r=l.useContext(D),n=l.useRef(null),o=(0,i.s)(t,n);return l.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,d.jsx)(v.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var _=r(19526),N="focusScope.autoFocusOnMount",L="focusScope.autoFocusOnUnmount",T={bubbles:!1,cancelable:!0},O=l.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...u}=e,[s,c]=l.useState(null),f=(0,M.c)(o),p=(0,M.c)(a),h=l.useRef(null),m=(0,i.s)(t,e=>c(e)),y=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let e=function(e){if(y.paused||!s)return;let t=e.target;s.contains(t)?h.current=t:K(h.current,{select:!0})},t=function(e){if(y.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||K(h.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&K(s)});return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,s,y.paused]),l.useEffect(()=>{if(s){z.add(y);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(N,T);s.addEventListener(N,f),s.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(K(n,{select:t}),document.activeElement!==r)return}(I(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&K(s))}return()=>{s.removeEventListener(N,f),setTimeout(()=>{let t=new CustomEvent(L,T);s.addEventListener(L,p),s.dispatchEvent(t),t.defaultPrevented||K(null!=e?e:document.body,{select:!0}),s.removeEventListener(L,p),z.remove(y)},0)}}},[s,f,p,y]);let w=l.useCallback(e=>{if(!r&&!n||y.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[n,l]=function(e){let t=I(e);return[F(t,e),F(t.reverse(),e)]}(t);n&&l?e.shiftKey||o!==l?e.shiftKey&&o===n&&(e.preventDefault(),r&&K(l,{select:!0})):(e.preventDefault(),r&&K(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,y.paused]);return(0,d.jsx)(v.div,{tabIndex:-1,...u,ref:m,onKeyDown:w})});function I(e){let t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t}function F(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function K(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}O.displayName="FocusScope";var z=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=B(e,t)).unshift(t)},remove(t){var r;null==(r=(e=B(e,t))[0])||r.resume()}}}();function B(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var W=r(68946),U=r(88334),X=r(58146),G=l.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...l}=e;return(0,d.jsx)(v.svg,{...l,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,d.jsx)("polygon",{points:"0,0 30,0 15,10"})})});G.displayName="Arrow";var V=r(4129),H=r(84288),Y="Popper",[Z,q]=(0,u.A)(Y),[$,J]=Z(Y),Q=e=>{let{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return(0,d.jsx)($,{scope:t,anchor:n,onAnchorChange:o,children:r})};Q.displayName=Y;var ee="PopperAnchor",et=l.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...o}=e,a=J(ee,r),u=l.useRef(null),s=(0,i.s)(t,u);return l.useEffect(()=>{a.onAnchorChange((null==n?void 0:n.current)||u.current)}),n?null:(0,d.jsx)(v.div,{...o,ref:s})});et.displayName=ee;var er="PopperContent",[en,eo]=Z(er),el=l.forwardRef((e,t)=>{var r,n,o,a,u,s,c,f;let{__scopePopper:p,side:h="bottom",sideOffset:m=0,align:y="center",alignOffset:w=0,arrowPadding:g=0,avoidCollisions:x=!0,collisionBoundary:b=[],collisionPadding:E=0,sticky:C="partial",hideWhenDetached:R=!1,updatePositionStrategy:k="optimized",onPlaced:j,...D}=e,P=J(er,p),[S,A]=l.useState(null),_=(0,i.s)(t,e=>A(e)),[N,L]=l.useState(null),T=(0,H.X)(N),O=null!=(c=null==T?void 0:T.width)?c:0,I=null!=(f=null==T?void 0:T.height)?f:0,F="number"==typeof E?E:{top:0,right:0,bottom:0,left:0,...E},K=Array.isArray(b)?b:[b],z=K.length>0,B={padding:F,boundary:K.filter(es),altBoundary:z},{refs:W,floatingStyles:G,placement:Y,isPositioned:Z,middlewareData:q}=(0,U.we)({strategy:"fixed",placement:h+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,X.ll)(...t,{animationFrame:"always"===k})},elements:{reference:P.anchor},middleware:[(0,U.cY)({mainAxis:m+I,alignmentAxis:w}),x&&(0,U.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?(0,U.ER)():void 0,...B}),x&&(0,U.UU)({...B}),(0,U.Ej)({...B,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:o}=e,{width:l,height:a}=r.reference,i=t.floating.style;i.setProperty("--radix-popper-available-width","".concat(n,"px")),i.setProperty("--radix-popper-available-height","".concat(o,"px")),i.setProperty("--radix-popper-anchor-width","".concat(l,"px")),i.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),N&&(0,U.UE)({element:N,padding:g}),ec({arrowWidth:O,arrowHeight:I}),R&&(0,U.jD)({strategy:"referenceHidden",...B})]}),[$,Q]=ed(Y),ee=(0,M.c)(j);(0,V.N)(()=>{Z&&(null==ee||ee())},[Z,ee]);let et=null==(r=q.arrow)?void 0:r.x,eo=null==(n=q.arrow)?void 0:n.y,el=(null==(o=q.arrow)?void 0:o.centerOffset)!==0,[ea,ei]=l.useState();return(0,V.N)(()=>{S&&ei(window.getComputedStyle(S).zIndex)},[S]),(0,d.jsx)("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:Z?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ea,"--radix-popper-transform-origin":[null==(a=q.transformOrigin)?void 0:a.x,null==(u=q.transformOrigin)?void 0:u.y].join(" "),...(null==(s=q.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,d.jsx)(en,{scope:p,placedSide:$,onArrowChange:L,arrowX:et,arrowY:eo,shouldHideArrow:el,children:(0,d.jsx)(v.div,{"data-side":$,"data-align":Q,...D,ref:_,style:{...D.style,animation:Z?void 0:"none"}})})})});el.displayName=er;var ea="PopperArrow",ei={top:"bottom",right:"left",bottom:"top",left:"right"},eu=l.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=eo(ea,r),l=ei[o.placedSide];return(0,d.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,d.jsx)(G,{...n,ref:t,style:{...n.style,display:"block"}})})});function es(e){return null!==e}eu.displayName=ea;var ec=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,l,a;let{placement:i,rects:u,middlewareData:s}=t,c=(null==(r=s.arrow)?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=ed(i),v={start:"0%",center:"50%",end:"100%"}[h],m=(null!=(l=null==(n=s.arrow)?void 0:n.x)?l:0)+d/2,y=(null!=(a=null==(o=s.arrow)?void 0:o.y)?a:0)+f/2,w="",g="";return"bottom"===p?(w=c?v:"".concat(m,"px"),g="".concat(-f,"px")):"top"===p?(w=c?v:"".concat(m,"px"),g="".concat(u.floating.height+f,"px")):"right"===p?(w="".concat(-f,"px"),g=c?v:"".concat(y,"px")):"left"===p&&(w="".concat(u.floating.width+f,"px"),g=c?v:"".concat(y,"px")),{data:{x:w,y:g}}}});function ed(e){let[t,r="center"]=e.split("-");return[t,r]}var ef=l.forwardRef((e,t)=>{var r,n;let{container:o,...a}=e,[i,u]=l.useState(!1);(0,V.N)(()=>u(!0),[]);let s=o||i&&(null==(n=globalThis)||null==(r=n.document)?void 0:r.body);return s?c.createPortal((0,d.jsx)(v.div,{...a,ref:t}),s):null});ef.displayName="Portal";var ep=r(76842),eh="rovingFocusGroup.onEntryFocus",ev={bubbles:!1,cancelable:!0},em="RovingFocusGroup",[ey,ew,eg]=x(em),[ex,eb]=(0,u.A)(em,[eg]),[eE,eC]=ex(em),eR=l.forwardRef((e,t)=>(0,d.jsx)(ey.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(ey.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(eM,{...e,ref:t})})}));eR.displayName=em;var eM=l.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:u,currentTabStopId:c,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:p,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...y}=e,w=l.useRef(null),g=(0,i.s)(t,w),x=(0,R.jH)(u),[b,E]=(0,s.i)({prop:c,defaultProp:null!=f?f:null,onChange:p,caller:em}),[C,k]=l.useState(!1),j=(0,M.c)(h),D=ew(r),P=l.useRef(!1),[S,A]=l.useState(0);return l.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(eh,j),()=>e.removeEventListener(eh,j)},[j]),(0,d.jsx)(eE,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:b,onItemFocus:l.useCallback(e=>E(e),[E]),onItemShiftTab:l.useCallback(()=>k(!0),[]),onFocusableItemAdd:l.useCallback(()=>A(e=>e+1),[]),onFocusableItemRemove:l.useCallback(()=>A(e=>e-1),[]),children:(0,d.jsx)(v.div,{tabIndex:C||0===S?-1:0,"data-orientation":n,...y,ref:g,style:{outline:"none",...e.style},onMouseDown:(0,a.m)(e.onMouseDown,()=>{P.current=!0}),onFocus:(0,a.m)(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(eh,ev);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>e.focusable);eP([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current),m)}}P.current=!1}),onBlur:(0,a.m)(e.onBlur,()=>k(!1))})})}),ek="RovingFocusGroupItem",ej=l.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,children:u,...s}=e,c=(0,W.B)(),f=i||c,p=eC(ek,r),h=p.currentTabStopId===f,m=ew(r),{onFocusableItemAdd:y,onFocusableItemRemove:w,currentTabStopId:g}=p;return l.useEffect(()=>{if(n)return y(),()=>w()},[n,y,w]),(0,d.jsx)(ey.ItemSlot,{scope:r,id:f,focusable:n,active:o,children:(0,d.jsx)(v.span,{tabIndex:h?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:(0,a.m)(e.onMouseDown,e=>{n?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,a.m)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,a.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return eD[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=p.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>eP(r))}}),children:"function"==typeof u?u({isCurrentTabStop:h,hasTabStop:null!=g}):u})})});ej.displayName=ek;var eD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function eP(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var eS=r(97745),eA=r(71450),e_=r(60216),eN=r(78357),eL=(0,r(43711).f)(),eT=function(){},eO=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:eT,onWheelCapture:eT,onTouchMoveCapture:eT}),o=n[0],a=n[1],i=e.forwardProps,u=e.children,s=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,v=e.noIsolation,m=e.inert,y=e.allowPinchZoom,w=e.as,g=e.gapMode,x=(0,eA.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=(0,eN.S)([r,t]),E=(0,eA.Cl)((0,eA.Cl)({},x),o);return l.createElement(l.Fragment,null,d&&l.createElement(p,{sideCar:eL,removeScrollBar:c,shards:f,noRelative:h,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!y,lockRef:r,gapMode:g}),i?l.cloneElement(l.Children.only(u),(0,eA.Cl)((0,eA.Cl)({},E),{ref:b})):l.createElement(void 0===w?"div":w,(0,eA.Cl)({},E,{className:s,ref:b}),u))});eO.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eO.classNames={fullWidth:e_.pN,zeroRight:e_.Mi};var eI=r(39615),eF=r(46810),eK=r(65841),ez=!1;if("undefined"!=typeof window)try{var eB=Object.defineProperty({},"passive",{get:function(){return ez=!0,!0}});window.addEventListener("test",eB,eB),window.removeEventListener("test",eB,eB)}catch(e){ez=!1}var eW=!!ez&&{passive:!1},eU=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},eX=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eG(e,n)){var o=eV(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},eG=function(e,t){return"v"===e?eU(t,"overflowY"):eU(t,"overflowX")},eV=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eH=function(e,t,r,n,o){var l,a=(l=window.getComputedStyle(t).direction,"h"===e&&"rtl"===l?-1:1),i=a*n,u=r.target,s=t.contains(u),c=!1,d=i>0,f=0,p=0;do{var h=eV(e,u),v=h[0],m=h[1]-h[2]-a*v;(v||m)&&eG(e,u)&&(f+=m,p+=v),u=u.parentNode.host||u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&i>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-i>p)&&(c=!0),c},eY=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eZ=function(e){return[e.deltaX,e.deltaY]},eq=function(e){return e&&"current"in e?e.current:e},e$=0,eJ=[];let eQ=(0,eI.m)(eL,function(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(e$++)[0],a=l.useState(eK.T0)[0],i=l.useRef(e);l.useEffect(function(){i.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,eA.fX)([e.lockRef.current],(e.shards||[]).map(eq),!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 u=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,l=eY(e),a=r.current,u="deltaX"in e?e.deltaX:a[0]-l[0],s="deltaY"in e?e.deltaY:a[1]-l[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=eX(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=eX(d,c)),!f)return!1;if(!n.current&&"changedTouches"in e&&(u||s)&&(n.current=o),!o)return!0;var p=n.current||o;return eH(p,t,e,"h"===p?u:s,!0)},[]),s=l.useCallback(function(e){if(eJ.length&&eJ[eJ.length-1]===a){var r="deltaY"in e?eZ(e):eY(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(i.current.shards||[]).map(eq).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=l.useCallback(function(e,r,n,o){var l={name:e,delta:r,target:n,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}(n)};t.current.push(l),setTimeout(function(){t.current=t.current.filter(function(e){return e!==l})},1)},[]),d=l.useCallback(function(e){r.current=eY(e),n.current=void 0},[]),f=l.useCallback(function(t){c(t.type,eZ(t),t.target,u(t,e.lockRef.current))},[]),p=l.useCallback(function(t){c(t.type,eY(t),t.target,u(t,e.lockRef.current))},[]);l.useEffect(function(){return eJ.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,eW),document.addEventListener("touchmove",s,eW),document.addEventListener("touchstart",d,eW),function(){eJ=eJ.filter(function(e){return e!==a}),document.removeEventListener("wheel",s,eW),document.removeEventListener("touchmove",s,eW),document.removeEventListener("touchstart",d,eW)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?l.createElement(eF.jp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)});var e0=l.forwardRef(function(e,t){return l.createElement(eO,(0,eA.Cl)({},e,{ref:t,sideCar:eQ}))});e0.classNames=eO.classNames;var e1=["Enter"," "],e2=["ArrowUp","PageDown","End"],e5=["ArrowDown","PageUp","Home",...e2],e3={ltr:[...e1,"ArrowRight"],rtl:[...e1,"ArrowLeft"]},e7={ltr:["ArrowLeft"],rtl:["ArrowRight"]},e4="Menu",[e8,e9,e6]=x(e4),[te,tt]=(0,u.A)(e4,[e6,q,eb]),tr=q(),tn=eb(),[to,tl]=te(e4),[ta,ti]=te(e4),tu=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:a,modal:i=!0}=e,u=tr(t),[s,c]=l.useState(null),f=l.useRef(!1),p=(0,M.c)(a),h=(0,R.jH)(o);return l.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,d.jsx)(Q,{...u,children:(0,d.jsx)(to,{scope:t,open:r,onOpenChange:p,content:s,onContentChange:c,children:(0,d.jsx)(ta,{scope:t,onClose:l.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:i,children:n})})})};tu.displayName=e4;var ts=l.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=tr(r);return(0,d.jsx)(et,{...o,...n,ref:t})});ts.displayName="MenuAnchor";var tc="MenuPortal",[td,tf]=te(tc,{forceMount:void 0}),tp=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,l=tl(tc,t);return(0,d.jsx)(td,{scope:t,forceMount:r,children:(0,d.jsx)(ep.C,{present:r||l.open,children:(0,d.jsx)(ef,{asChild:!0,container:o,children:n})})})};tp.displayName=tc;var th="MenuContent",[tv,tm]=te(th),ty=l.forwardRef((e,t)=>{let r=tf(th,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,l=tl(th,e.__scopeMenu),a=ti(th,e.__scopeMenu);return(0,d.jsx)(e8.Provider,{scope:e.__scopeMenu,children:(0,d.jsx)(ep.C,{present:n||l.open,children:(0,d.jsx)(e8.Slot,{scope:e.__scopeMenu,children:a.modal?(0,d.jsx)(tw,{...o,ref:t}):(0,d.jsx)(tg,{...o,ref:t})})})})}),tw=l.forwardRef((e,t)=>{let r=tl(th,e.__scopeMenu),n=l.useRef(null),o=(0,i.s)(t,n);return l.useEffect(()=>{let e=n.current;if(e)return(0,eS.Eq)(e)},[]),(0,d.jsx)(tb,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,a.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),tg=l.forwardRef((e,t)=>{let r=tl(th,e.__scopeMenu);return(0,d.jsx)(tb,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),tx=f("MenuContent.ScrollLock"),tb=l.forwardRef((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:v,onInteractOutside:m,onDismiss:y,disableOutsideScroll:w,...g}=e,x=tl(th,r),b=ti(th,r),E=tr(r),C=tn(r),R=e9(r),[M,k]=l.useState(null),j=l.useRef(null),D=(0,i.s)(t,j,x.onContentChange),S=l.useRef(0),A=l.useRef(""),N=l.useRef(0),L=l.useRef(null),T=l.useRef("right"),I=l.useRef(0),F=w?e0:l.Fragment;l.useEffect(()=>()=>window.clearTimeout(S.current),[]),(0,_.Oh)();let K=l.useCallback(e=>{var t,r;return T.current===(null==(t=L.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,l=t.length-1;e<t.length;l=e++){let a=t[e],i=t[l],u=a.x,s=a.y,c=i.x,d=i.y;s>n!=d>n&&r<(c-u)*(n-s)/(d-s)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(r=L.current)?void 0:r.area)},[]);return(0,d.jsx)(tv,{scope:r,searchRef:A,onItemEnter:l.useCallback(e=>{K(e)&&e.preventDefault()},[K]),onItemLeave:l.useCallback(e=>{var t;K(e)||(null==(t=j.current)||t.focus(),k(null))},[K]),onTriggerLeave:l.useCallback(e=>{K(e)&&e.preventDefault()},[K]),pointerGraceTimerRef:N,onPointerGraceIntentChange:l.useCallback(e=>{L.current=e},[]),children:(0,d.jsx)(F,{...w?{as:tx,allowPinchZoom:!0}:void 0,children:(0,d.jsx)(O,{asChild:!0,trapped:o,onMountAutoFocus:(0,a.m)(u,e=>{var t;e.preventDefault(),null==(t=j.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,d.jsx)(P,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:v,onInteractOutside:m,onDismiss:y,children:(0,d.jsx)(eR,{asChild:!0,...C,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:M,onCurrentTabStopIdChange:k,onEntryFocus:(0,a.m)(f,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,d.jsx)(el,{role:"menu","aria-orientation":"vertical","data-state":tH(x.open),"data-radix-menu-content":"",dir:b.dir,...E,...g,ref:D,style:{outline:"none",...g.style},onKeyDown:(0,a.m)(g.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&(e=>{var t,r;let n=A.current+e,o=R().filter(e=>!e.disabled),l=document.activeElement,a=null==(t=o.find(e=>e.ref.current===l))?void 0:t.textValue,i=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=r?e.indexOf(r):-1,a=(n=Math.max(l,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(a=a.filter(e=>e!==r));let i=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return i!==r?i:void 0}(o.map(e=>e.textValue),n,a),u=null==(r=o.find(e=>e.textValue===i))?void 0:r.ref.current;!function e(t){A.current=t,window.clearTimeout(S.current),""!==t&&(S.current=window.setTimeout(()=>e(""),1e3))}(n),u&&setTimeout(()=>u.focus())})(e.key));let o=j.current;if(e.target!==o||!e5.includes(e.key))return;e.preventDefault();let l=R().filter(e=>!e.disabled).map(e=>e.ref.current);e2.includes(e.key)&&l.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(l)}),onBlur:(0,a.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(S.current),A.current="")}),onPointerMove:(0,a.m)(e.onPointerMove,tq(e=>{let t=e.target,r=I.current!==e.clientX;e.currentTarget.contains(t)&&r&&(T.current=e.clientX>I.current?"right":"left",I.current=e.clientX)}))})})})})})})});ty.displayName=th;var tE=l.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,d.jsx)(v.div,{role:"group",...n,ref:t})});tE.displayName="MenuGroup";var tC=l.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,d.jsx)(v.div,{...n,ref:t})});tC.displayName="MenuLabel";var tR="MenuItem",tM="menu.itemSelect",tk=l.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:n,...o}=e,u=l.useRef(null),s=ti(tR,e.__scopeMenu),c=tm(tR,e.__scopeMenu),f=(0,i.s)(t,u),p=l.useRef(!1);return(0,d.jsx)(tj,{...o,ref:f,disabled:r,onClick:(0,a.m)(e.onClick,()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(tM,{bubbles:!0,cancelable:!0});e.addEventListener(tM,e=>null==n?void 0:n(e),{once:!0}),m(e,t),t.defaultPrevented?p.current=!1:s.onClose()}}),onPointerDown:t=>{var r;null==(r=e.onPointerDown)||r.call(e,t),p.current=!0},onPointerUp:(0,a.m)(e.onPointerUp,e=>{var t;p.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=""!==c.searchRef.current;r||t&&" "===e.key||e1.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tk.displayName=tR;var tj=l.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:o,...u}=e,s=tm(tR,r),c=tn(r),f=l.useRef(null),p=(0,i.s)(t,f),[h,m]=l.useState(!1),[y,w]=l.useState("");return l.useEffect(()=>{let e=f.current;if(e){var t;w((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,d.jsx)(e8.ItemSlot,{scope:r,disabled:n,textValue:null!=o?o:y,children:(0,d.jsx)(ej,{asChild:!0,...c,focusable:!n,children:(0,d.jsx)(v.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...u,ref:p,onPointerMove:(0,a.m)(e.onPointerMove,tq(e=>{n?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,a.m)(e.onPointerLeave,tq(e=>s.onItemLeave(e))),onFocus:(0,a.m)(e.onFocus,()=>m(!0)),onBlur:(0,a.m)(e.onBlur,()=>m(!1))})})})}),tD=l.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,d.jsx)(tO,{scope:e.__scopeMenu,checked:r,children:(0,d.jsx)(tk,{role:"menuitemcheckbox","aria-checked":tY(r)?"mixed":r,...o,ref:t,"data-state":tZ(r),onSelect:(0,a.m)(o.onSelect,()=>null==n?void 0:n(!!tY(r)||!r),{checkForDefaultPrevented:!1})})})});tD.displayName="MenuCheckboxItem";var tP="MenuRadioGroup",[tS,tA]=te(tP,{value:void 0,onValueChange:()=>{}}),t_=l.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,l=(0,M.c)(n);return(0,d.jsx)(tS,{scope:e.__scopeMenu,value:r,onValueChange:l,children:(0,d.jsx)(tE,{...o,ref:t})})});t_.displayName=tP;var tN="MenuRadioItem",tL=l.forwardRef((e,t)=>{let{value:r,...n}=e,o=tA(tN,e.__scopeMenu),l=r===o.value;return(0,d.jsx)(tO,{scope:e.__scopeMenu,checked:l,children:(0,d.jsx)(tk,{role:"menuitemradio","aria-checked":l,...n,ref:t,"data-state":tZ(l),onSelect:(0,a.m)(n.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,r)},{checkForDefaultPrevented:!1})})})});tL.displayName=tN;var tT="MenuItemIndicator",[tO,tI]=te(tT,{checked:!1}),tF=l.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,l=tI(tT,r);return(0,d.jsx)(ep.C,{present:n||tY(l.checked)||!0===l.checked,children:(0,d.jsx)(v.span,{...o,ref:t,"data-state":tZ(l.checked)})})});tF.displayName=tT;var tK=l.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,d.jsx)(v.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});tK.displayName="MenuSeparator";var tz=l.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=tr(r);return(0,d.jsx)(eu,{...o,...n,ref:t})});tz.displayName="MenuArrow";var[tB,tW]=te("MenuSub"),tU="MenuSubTrigger",tX=l.forwardRef((e,t)=>{let r=tl(tU,e.__scopeMenu),n=ti(tU,e.__scopeMenu),o=tW(tU,e.__scopeMenu),u=tm(tU,e.__scopeMenu),s=l.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=u,p={__scopeMenu:e.__scopeMenu},h=l.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return l.useEffect(()=>h,[h]),l.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),f(null)}},[c,f]),(0,d.jsx)(ts,{asChild:!0,...p,children:(0,d.jsx)(tj,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":tH(r.open),...e,ref:(0,i.t)(t,o.onTriggerChange),onClick:t=>{var n;null==(n=e.onClick)||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,a.m)(e.onPointerMove,tq(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),h()},100)))})),onPointerLeave:(0,a.m)(e.onPointerLeave,tq(e=>{var t,n;h();let o=null==(t=r.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(n=r.content)?void 0:n.dataset.side,l="right"===t,a=o[l?"left":"right"],i=o[l?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(l?-5:5),y:e.clientY},{x:a,y:o.top},{x:i,y:o.top},{x:i,y:o.bottom},{x:a,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,a.m)(e.onKeyDown,t=>{let o=""!==u.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&e3[n.dir].includes(t.key)){var l;r.onOpenChange(!0),null==(l=r.content)||l.focus(),t.preventDefault()}})})})});tX.displayName=tU;var tG="MenuSubContent",tV=l.forwardRef((e,t)=>{let r=tf(th,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,u=tl(th,e.__scopeMenu),s=ti(th,e.__scopeMenu),c=tW(tG,e.__scopeMenu),f=l.useRef(null),p=(0,i.s)(t,f);return(0,d.jsx)(e8.Provider,{scope:e.__scopeMenu,children:(0,d.jsx)(ep.C,{present:n||u.open,children:(0,d.jsx)(e8.Slot,{scope:e.__scopeMenu,children:(0,d.jsx)(tb,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:p,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null==(t=f.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.m)(e.onFocusOutside,e=>{e.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,a.m)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=e7[s.dir].includes(e.key);if(t&&r){var n;u.onOpenChange(!1),null==(n=c.trigger)||n.focus(),e.preventDefault()}})})})})})});function tH(e){return e?"open":"closed"}function tY(e){return"indeterminate"===e}function tZ(e){return tY(e)?"indeterminate":e?"checked":"unchecked"}function tq(e){return t=>"mouse"===t.pointerType?e(t):void 0}tV.displayName=tG;var t$="DropdownMenu",[tJ,tQ]=(0,u.A)(t$,[tt]),t0=tt(),[t1,t2]=tJ(t$),t5=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:i,modal:u=!0}=e,c=t0(t),f=l.useRef(null),[p,h]=(0,s.i)({prop:o,defaultProp:null!=a&&a,onChange:i,caller:t$});return(0,d.jsx)(t1,{scope:t,triggerId:(0,W.B)(),triggerRef:f,contentId:(0,W.B)(),open:p,onOpenChange:h,onOpenToggle:l.useCallback(()=>h(e=>!e),[h]),modal:u,children:(0,d.jsx)(tu,{...c,open:p,onOpenChange:h,dir:n,modal:u,children:r})})};t5.displayName=t$;var t3="DropdownMenuTrigger",t7=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,l=t2(t3,r),u=t0(r);return(0,d.jsx)(ts,{asChild:!0,...u,children:(0,d.jsx)(v.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:(0,i.t)(t,l.triggerRef),onPointerDown:(0,a.m)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});t7.displayName=t3;var t4=e=>{let{__scopeDropdownMenu:t,...r}=e,n=t0(t);return(0,d.jsx)(tp,{...n,...r})};t4.displayName="DropdownMenuPortal";var t8="DropdownMenuContent",t9=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t2(t8,r),i=t0(r),u=l.useRef(!1);return(0,d.jsx)(ty,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...n,ref:t,onCloseAutoFocus:(0,a.m)(e.onCloseAutoFocus,e=>{var t;u.current||null==(t=o.triggerRef.current)||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,a.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!o.modal||n)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});t9.displayName=t8,l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tE,{...o,...n,ref:t})}).displayName="DropdownMenuGroup",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tC,{...o,...n,ref:t})}).displayName="DropdownMenuLabel";var t6=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tk,{...o,...n,ref:t})});t6.displayName="DropdownMenuItem",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tD,{...o,...n,ref:t})}).displayName="DropdownMenuCheckboxItem",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(t_,{...o,...n,ref:t})}).displayName="DropdownMenuRadioGroup",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tL,{...o,...n,ref:t})}).displayName="DropdownMenuRadioItem",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tF,{...o,...n,ref:t})}).displayName="DropdownMenuItemIndicator";var re=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tK,{...o,...n,ref:t})});re.displayName="DropdownMenuSeparator",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tz,{...o,...n,ref:t})}).displayName="DropdownMenuArrow",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tX,{...o,...n,ref:t})}).displayName="DropdownMenuSubTrigger",l.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=t0(r);return(0,d.jsx)(tV,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var rt=t5,rr=t7,rn=t4,ro=t9,rl=t6,ra=re},37397:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(71847).A)("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"}]])},57268:(e,t,r)=>{r.d(t,{b:()=>s});var n=r(12115),o=r(88142),l=r(95155),a="horizontal",i=["horizontal","vertical"],u=n.forwardRef((e,t)=>{var r;let{decorative:n,orientation:u=a,...s}=e,c=(r=u,i.includes(r))?u:a;return(0,l.jsx)(o.sG.div,{"data-orientation":c,...n?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...s,ref:t})});u.displayName="Separator";var s=u},78192:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(71847).A)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])}}]);
|