From 547c4df7f77b41e29320999cac23b4d1ca38d14f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 27 Nov 2025 15:46:23 +0000 Subject: [PATCH 1/4] ui: uninstall 2.10.0 --- .../ui/2.10.0/assets/Analysis-BBHUYfhB.css | 1 - .../ui/2.10.0/assets/Analysis-rqxW0vwZ.js | 29 - .../ui/2.10.0/assets/Dashboard-DoexqeKQ.js | 35 - .../ui/2.10.0/assets/Gantt-6P23AHY7.js | 8 - .../ui/2.10.0/assets/Graph-BNXWiB3d.js | 125 --- .../ui/2.10.0/assets/Graph-BpCaD5tF.css | 1 - .../ui/2.10.0/assets/GraphNode-CjrYIu24.js | 9 - .../ui/2.10.0/assets/GraphiQL-BQoybdla.js | 147 ---- .../ui/2.10.0/assets/GraphiQL-CySnTfGq.css | 1 - .../ui/2.10.0/assets/Guide-CsdTh5zT.js | 1 - .../ui/2.10.0/assets/Guide-FJEWHFTU.css | 1 - .../ui/2.10.0/assets/Info-BNYm9LfD.css | 1 - .../ui/2.10.0/assets/Info-Bnwc7t5P.js | 88 -- .../uiserver/ui/2.10.0/assets/Log-D-VuRrd6.js | 29 - .../ui/2.10.0/assets/Log-DYjM4afR.css | 1 - .../ui/2.10.0/assets/NoAuth-BhWvN9C5.js | 1 - .../ui/2.10.0/assets/NotFound-Crwb4xQN.js | 1 - .../ui/2.10.0/assets/Range-CZNrBk8u.js | 1 - .../2.10.0/assets/SchemaReference-fncUnuK9.js | 1 - .../ui/2.10.0/assets/SimpleTree-6OiWYq-Q.css | 1 - .../ui/2.10.0/assets/SimpleTree-CdWCiCR2.js | 68 -- .../ui/2.10.0/assets/Table-C-CIIc28.js | 86 -- .../ui/2.10.0/assets/Tree-fhqABDLi.js | 111 --- .../ui/2.10.0/assets/UserProfile-Cp9mZ7cb.css | 1 - .../ui/2.10.0/assets/UserProfile-_WRrnS2k.js | 1 - .../ui/2.10.0/assets/VAlert-BDbtqfCV.css | 1 - .../ui/2.10.0/assets/VAlert-ChPOwrZJ.js | 1 - .../ui/2.10.0/assets/VCheckbox-CvH8ekHL.css | 1 - .../ui/2.10.0/assets/VCheckbox-nTlFk1Wv.js | 1 - .../ui/2.10.0/assets/VDataTable-BqaL5Tnv.js | 1 - .../ui/2.10.0/assets/VDataTable-vhjsbWIV.css | 1 - .../ui/2.10.0/assets/VEmptyState-CNsD7cYQ.js | 1 - .../ui/2.10.0/assets/VEmptyState-dYqF_qNr.css | 1 - .../ui/2.10.0/assets/VPagination-C84GdNtS.js | 1 - .../ui/2.10.0/assets/VPagination-CgkIFNCO.css | 1 - .../ui/2.10.0/assets/ViewToolbar-DknFoOU8.css | 1 - .../ui/2.10.0/assets/ViewToolbar-nG008anM.js | 1 - .../2.10.0/assets/WorkflowsTable-Cmwe-71s.js | 29 - .../ui/2.10.0/assets/Workspace-B5g3cLzs.js | 39 - .../ui/2.10.0/assets/Workspace-BzJcqxYF.css | 1 - .../ui/2.10.0/assets/brace-fold-D2mMF0kw.js | 1 - .../2.10.0/assets/closebrackets-DZg8XFBI.js | 2 - .../ui/2.10.0/assets/codemirror-CgvGFWt9.js | 1 - .../ui/2.10.0/assets/codemirror-HbUmq4EM.js | 24 - .../ui/2.10.0/assets/comment-CMJCd204.js | 2 - .../ui/2.10.0/assets/debounce-DL1CYJdn.js | 1 - .../ui/2.10.0/assets/dialog-BwC5n760.js | 1 - .../ui/2.10.0/assets/dialog-CLUkjEIt.js | 1 - .../ui/2.10.0/assets/filter-E7bBrTct.js | 1 - .../ui/2.10.0/assets/foldgutter-DUYQ7IB6.js | 1 - .../ui/2.10.0/assets/forEachState-DETpARGm.js | 1 - .../ui/2.10.0/assets/graphql-o3z6-itG.js | 1 - .../ui/2.10.0/assets/hint-C9DNkaPS.js | 1 - .../ui/2.10.0/assets/hint-CNi7Bqg4.js | 1 - .../ui/2.10.0/assets/index-jbzX_AXb.js | 479 ----------- .../ui/2.10.0/assets/index-sfKkx8nR.css | 5 - .../ui/2.10.0/assets/info-addon-BeEkom35.js | 1 - .../ui/2.10.0/assets/info-kVv3DfXI.js | 1 - .../2.10.0/assets/initialOptions-Ceh0265h.js | 1 - .../ui/2.10.0/assets/javascript-DR7Nv00w.js | 1 - .../ui/2.10.0/assets/jump-ta7ax8ey.js | 1 - .../ui/2.10.0/assets/jump-to-line-Df5wL-rR.js | 1 - .../ui/2.10.0/assets/lint-BEfL3IbB.js | 6 - .../ui/2.10.0/assets/lint-BOC45b3w.js | 1 - .../ui/2.10.0/assets/lint-KdYI32E0.js | 1 - .../2.10.0/assets/matchbrackets-CO3vsA4X.js | 1 - .../2.10.0/assets/matchbrackets-D7CjVzEn.js | 1 - .../ui/2.10.0/assets/mode-CRb6UwqV.js | 1 - .../ui/2.10.0/assets/mode-DIQZl251.js | 1 - .../ui/2.10.0/assets/mode-DMuRFeXX.js | 1 - .../ui/2.10.0/assets/mode-indent-Dvf_-b54.js | 1 - .../ui/2.10.0/assets/search-D-xcWigh.js | 2 - .../ui/2.10.0/assets/searchcursor-4aVNBPts.js | 1 - .../ui/2.10.0/assets/searchcursor-DThQw5sX.js | 7 - .../ui/2.10.0/assets/show-hint-BWIlB5BH.js | 1 - .../ui/2.10.0/assets/sublime-DT7RUNbp.js | 6 - .../2.10.0/assets/vue3-apexcharts-D5BQ-Lg0.js | 808 ------------------ cylc/uiserver/ui/2.10.0/favicon.png | Bin 4286 -> 0 bytes cylc/uiserver/ui/2.10.0/fonts.css | 124 --- .../ui/2.10.0/fonts/roboto-v20-latin-100.woff | Bin 20368 -> 0 bytes .../fonts/roboto-v20-latin-100italic.woff | Bin 21704 -> 0 bytes .../ui/2.10.0/fonts/roboto-v20-latin-300.woff | Bin 20348 -> 0 bytes .../fonts/roboto-v20-latin-300italic.woff | Bin 22204 -> 0 bytes .../ui/2.10.0/fonts/roboto-v20-latin-500.woff | Bin 20464 -> 0 bytes .../fonts/roboto-v20-latin-500italic.woff | Bin 22020 -> 0 bytes .../ui/2.10.0/fonts/roboto-v20-latin-700.woff | Bin 20356 -> 0 bytes .../fonts/roboto-v20-latin-700italic.woff | Bin 21588 -> 0 bytes .../ui/2.10.0/fonts/roboto-v20-latin-900.woff | Bin 20392 -> 0 bytes .../fonts/roboto-v20-latin-900italic.woff | Bin 22304 -> 0 bytes .../2.10.0/fonts/roboto-v20-latin-italic.woff | Bin 21952 -> 0 bytes .../fonts/roboto-v20-latin-regular.woff | Bin 20268 -> 0 bytes cylc/uiserver/ui/2.10.0/img/logo.svg | 19 - cylc/uiserver/ui/2.10.0/index.html | 36 - 93 files changed, 2377 deletions(-) delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Analysis-BBHUYfhB.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Analysis-rqxW0vwZ.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Dashboard-DoexqeKQ.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Gantt-6P23AHY7.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Graph-BNXWiB3d.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Graph-BpCaD5tF.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/GraphNode-CjrYIu24.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/GraphiQL-BQoybdla.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/GraphiQL-CySnTfGq.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Guide-CsdTh5zT.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Guide-FJEWHFTU.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Info-BNYm9LfD.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Info-Bnwc7t5P.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Log-D-VuRrd6.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Log-DYjM4afR.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/NoAuth-BhWvN9C5.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/NotFound-Crwb4xQN.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Range-CZNrBk8u.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/SchemaReference-fncUnuK9.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/SimpleTree-6OiWYq-Q.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/SimpleTree-CdWCiCR2.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Table-C-CIIc28.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Tree-fhqABDLi.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/UserProfile-Cp9mZ7cb.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/UserProfile-_WRrnS2k.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/VAlert-BDbtqfCV.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/VAlert-ChPOwrZJ.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/VCheckbox-CvH8ekHL.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/VCheckbox-nTlFk1Wv.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/VDataTable-BqaL5Tnv.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/VDataTable-vhjsbWIV.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/VEmptyState-CNsD7cYQ.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/VEmptyState-dYqF_qNr.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/VPagination-C84GdNtS.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/VPagination-CgkIFNCO.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/ViewToolbar-DknFoOU8.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/ViewToolbar-nG008anM.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/WorkflowsTable-Cmwe-71s.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Workspace-B5g3cLzs.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/Workspace-BzJcqxYF.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/brace-fold-D2mMF0kw.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/closebrackets-DZg8XFBI.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/codemirror-CgvGFWt9.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/codemirror-HbUmq4EM.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/comment-CMJCd204.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/debounce-DL1CYJdn.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/dialog-BwC5n760.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/dialog-CLUkjEIt.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/filter-E7bBrTct.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/foldgutter-DUYQ7IB6.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/forEachState-DETpARGm.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/graphql-o3z6-itG.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/hint-C9DNkaPS.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/hint-CNi7Bqg4.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/index-jbzX_AXb.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/index-sfKkx8nR.css delete mode 100644 cylc/uiserver/ui/2.10.0/assets/info-addon-BeEkom35.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/info-kVv3DfXI.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/initialOptions-Ceh0265h.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/javascript-DR7Nv00w.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/jump-ta7ax8ey.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/jump-to-line-Df5wL-rR.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/lint-BEfL3IbB.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/lint-BOC45b3w.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/lint-KdYI32E0.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/matchbrackets-CO3vsA4X.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/matchbrackets-D7CjVzEn.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/mode-CRb6UwqV.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/mode-DIQZl251.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/mode-DMuRFeXX.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/mode-indent-Dvf_-b54.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/search-D-xcWigh.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/searchcursor-4aVNBPts.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/searchcursor-DThQw5sX.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/show-hint-BWIlB5BH.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/sublime-DT7RUNbp.js delete mode 100644 cylc/uiserver/ui/2.10.0/assets/vue3-apexcharts-D5BQ-Lg0.js delete mode 100644 cylc/uiserver/ui/2.10.0/favicon.png delete mode 100644 cylc/uiserver/ui/2.10.0/fonts.css delete mode 100644 cylc/uiserver/ui/2.10.0/fonts/roboto-v20-latin-100.woff delete mode 100644 cylc/uiserver/ui/2.10.0/fonts/roboto-v20-latin-100italic.woff delete mode 100644 cylc/uiserver/ui/2.10.0/fonts/roboto-v20-latin-300.woff delete mode 100644 cylc/uiserver/ui/2.10.0/fonts/roboto-v20-latin-300italic.woff delete mode 100644 cylc/uiserver/ui/2.10.0/fonts/roboto-v20-latin-500.woff delete mode 100644 cylc/uiserver/ui/2.10.0/fonts/roboto-v20-latin-500italic.woff delete mode 100644 cylc/uiserver/ui/2.10.0/fonts/roboto-v20-latin-700.woff delete mode 100644 cylc/uiserver/ui/2.10.0/fonts/roboto-v20-latin-700italic.woff delete mode 100644 cylc/uiserver/ui/2.10.0/fonts/roboto-v20-latin-900.woff delete mode 100644 cylc/uiserver/ui/2.10.0/fonts/roboto-v20-latin-900italic.woff delete mode 100644 cylc/uiserver/ui/2.10.0/fonts/roboto-v20-latin-italic.woff delete mode 100644 cylc/uiserver/ui/2.10.0/fonts/roboto-v20-latin-regular.woff delete mode 100644 cylc/uiserver/ui/2.10.0/img/logo.svg delete mode 100644 cylc/uiserver/ui/2.10.0/index.html diff --git a/cylc/uiserver/ui/2.10.0/assets/Analysis-BBHUYfhB.css b/cylc/uiserver/ui/2.10.0/assets/Analysis-BBHUYfhB.css deleted file mode 100644 index f20129c1..00000000 --- a/cylc/uiserver/ui/2.10.0/assets/Analysis-BBHUYfhB.css +++ /dev/null @@ -1 +0,0 @@ -.apexcharts-text{font-size:.9rem} diff --git a/cylc/uiserver/ui/2.10.0/assets/Analysis-rqxW0vwZ.js b/cylc/uiserver/ui/2.10.0/assets/Analysis-rqxW0vwZ.js deleted file mode 100644 index e7aa8d88..00000000 --- a/cylc/uiserver/ui/2.10.0/assets/Analysis-rqxW0vwZ.js +++ /dev/null @@ -1,29 +0,0 @@ -import{S as Z,c as $,b as q,i as Q,a as F,d as R,s as U,_ as S,u as g,f as c,e as x,w as r,V as z,o as y,g as o,h as P,j as G,k as ne,r as le,l as k,t as re,m as me,n as de,p as L,q as ue,v as E,x as M,y as C,z as V,A as I,B as T,T as H,C as v,F as J,D as w,E as O,G as Y,H as ce,I as j,J as K,K as W,L as fe,M as pe,N as he,O as ge,P as ye,Q as ke,R as Te,U as be,W as we}from"./index-jbzX_AXb.js";import{g as Oe}from"./graphql-o3z6-itG.js";import{i as A,u as D,a as p}from"./initialOptions-Ceh0265h.js";import{V as xe,a as ve}from"./VDataTable-BqaL5Tnv.js";import{m as X}from"./vue3-apexcharts-D5BQ-Lg0.js";import{V as Ve}from"./VPagination-C84GdNtS.js";import{d as _}from"./debounce-DL1CYJdn.js";import{V as Pe}from"./VCheckbox-nTlFk1Wv.js";function Ce(){}function Se(t,e,i,s){for(var n=t.length,a=i+-1;++a-1}var Qe=200;function Ie(t,e,i,s){var n=-1,a=ee,m=!0,l=t.length,u=[],d=e.length;if(!l)return u;e.length>=Qe&&(a=$,m=!1,e=new Z(e));e:for(;++n=Be){var d=je(t);if(d)return U(d);m=!1,n=$,u=new Z}else u=l;e:for(;++s[o(P,{cols:"12",class:"mh-100 position-relative"},{default:r(()=>[o(G,{fluid:"",class:"pa-0"},{default:r(()=>[o(xe,{headers:a.shownHeaders,items:i.tasks,"sort-by":s.sortBy,"onUpdate:sortBy":e[0]||(e[0]=m=>s.sortBy=m),density:"compact",page:s.page,"onUpdate:page":e[1]||(e[1]=m=>s.page=m),"items-per-page":s.itemsPerPage,"onUpdate:itemsPerPage":e[2]||(e[2]=m=>s.itemsPerPage=m)},ne({bottom:r(()=>[o(ve,{itemsPerPageOptions:t.$options.itemsPerPageOptions},null,8,["itemsPerPageOptions"])]),_:2},[le(a.shownHeaders,m=>({name:`item.${m.key}`,fn:r(({item:l})=>[k(re(a.formatCell(l,m)),1)])}))]),1032,["headers","items","sort-by","page","items-per-page"])]),_:1})]),_:1})]),_:1})}const Fe=S($e,[["render",qe]]),Ue={name:"BoxPlot",components:{VueApexCharts:X},emits:[D],props:{tasks:{type:Array,required:!0},timingOption:{type:String,required:!0},initialOptions:A,itemsPerPage:{type:Number,default:20},animate:{type:Boolean,default:!0},sortInputTeleportTarget:{type:HTMLElement,default:null}},setup(t,{emit:e}){const i=p("sortBy",{props:t,emit:e},"name"),s=p("page",{props:t,emit:e},1),n=p("sortDesc",{props:t,emit:e},!1),a=L(),m=ue(()=>({chart:{defaultLocale:"en",locales:[{name:"en",options:{toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",menu:"Download"}}}],animations:{enabled:a.value?!1:t.animate,easing:"easeinout",speed:300,animateGradually:{enabled:!0,delay:150},dynamicAnimation:{enabled:!0,speed:350}},fontFamily:"inherit",toolbar:{tools:{download:``}}},tooltip:{custom({seriesIndex:l,dataPointIndex:u,w:d}){const f=c(d.globals.seriesCandleC[l][u],{allowZeros:!0}),h=c(d.globals.seriesCandleL[l][u],{allowZeros:!0}),b=c(d.globals.seriesCandleM[l][u],{allowZeros:!0}),ae=c(d.globals.seriesCandleH[l][u],{allowZeros:!0}),oe=c(d.globals.seriesCandleO[l][u],{allowZeros:!0});return` -
-
Maximum: ${f}
-
Q3: ${h}
-
Median: ${b}
-
Q1: ${ae}
-
Minimum: ${oe}
-
- `}},plotOptions:{bar:{horizontal:!0},boxPlot:{colors:{upper:"#6DD5C2",lower:"#6AA4F1"}}},xaxis:{title:{text:`${g(t.timingOption)} time`},labels:{formatter:l=>c(l,{allowZeros:!0})}}}));return{sortBy:i,page:s,sortDesc:n,chartOptions:m}},computed:{series(){const t=[...this.tasks].sort(this.compare),e=Math.max(0,this.itemsPerPage*(this.page-1)),i=Math.min(t.length,e+this.itemsPerPage),s=[];for(let n=e;ns.sortBy=l),label:"Sort by",style:{"max-width":"250px"}},null,8,["items","modelValue"]),o(T,{onClick:e[1]||(e[1]=l=>s.sortDesc=!s.sortDesc),icon:"",variant:"text",size:"small","data-cy":"box-plot-sort"},{default:r(()=>[o(w,{icon:s.sortDesc?t.$options.icons.sortDesc:t.$options.icons.sortAsc},null,8,["icon"]),o(O,null,{default:r(()=>[...e[3]||(e[3]=[k("Sort ascending/descending",-1)])]),_:1})]),_:1})])],8,["to"])):C("",!0),o(m,{type:"boxPlot",options:s.chartOptions,series:a.series,height:105+a.series[0].data.length*60,width:"95%",class:"d-flex justify-center"},null,8,["options","series","height"]),o(Ve,{modelValue:s.page,"onUpdate:modelValue":e[2]||(e[2]=l=>s.page=l),length:a.numPages,"total-visible":7,density:"comfortable"},null,8,["modelValue","length"])],64)}const Le=S(Ue,[["render",Ge]]),se=["name","id","platform","cyclePoint","totalTime","queueTime","runTime","startedTime"],Ee=j` -query analysisJobQuery ($workflows: [ID], $tasks: [ID]) { - jobs(live: false, workflows: $workflows, tasks: $tasks, states: ["succeeded"]) { - ${se.join(` -`)} - } -} -`,He=j` -query analysisTaskQuery ($workflows: [ID]) { - tasks(live: false, workflows: $workflows) { - name - } -} -`;class B extends K{constructor(e){super(),this.jobs=e}add(e){this.jobs.push(...e.jobs.map(i=>W(i,se)))}onAdded(e,i,s){this.add(e)}onUpdated(e,i,s){this.add(e)}}const Je={name:"TimeSeries",components:{VueApexCharts:X},emits:[D],props:{workflowIDs:{type:Array,required:!0},timingOption:{type:String,required:!0},initialOptions:A,platformOption:{type:[String,Number],required:!0},animate:{type:Boolean,default:!0},sortInputTeleportTarget:{type:HTMLElement,default:null}},setup(t,{emit:e}){const i=L(),s=p("displayedTasks",{props:t,emit:e},[]),n=p("showOrigin",{props:t,emit:e},!1);return{reducedAnimation:i,displayedTasks:s,showOrigin:n}},beforeMount(){this.taskNamesQuery()},mounted(){this.refreshData()},data(){const t=[];return{jobCallback:new B(t),jobs:t,taskNames:[],xRange:[void 0,void 0]}},watch:{displayedTasks(t,e){t.filter(s=>!e.includes(s)).length>0&&this.jobsQuery(t)}},computed:{cyclePoints(){return Ze(this.jobs.flatMap(e=>this.displayedTasks.includes(e.name)?e.cyclePoint:[])).sort()},series(){let t={},e;for(const i of this.displayedTasks){const s={};for(const n of this.cyclePoints)s[n]={x:n,y:null};t[i]={name:i,data:s}}for(const i of this.jobs)if(this.displayedTasks.includes(i.name)&&(this.platformOption===-1||i.platform===this.platformOption)){const s=t[i.name].data[i.cyclePoint].startedTime;(s===void 0||i.startedTime.localeCompare(s)===1)&&(e=i[`${this.timingOption}Time`],Object.assign(t[i.name].data[i.cyclePoint],{x:i.cyclePoint,y:e,platform:i.platform,startedTime:i.startedTime}))}t=Object.values(t);for(const i of t)i.data=Object.values(i.data);return t},chartOptions(){return{chart:{defaultLocale:"en",locales:[{name:"en",options:{toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",menu:"Download",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}}],animations:{enabled:this.animate&&!this.reducedAnimation,easing:"easeinout",speed:300,animateGradually:{enabled:!0,delay:150},dynamicAnimation:{enabled:!0,speed:350}},fontFamily:"inherit",toolbar:{autoSelected:"zoom",tools:{download:``,selection:!1,zoom:!0,zoomin:!1,zoomout:!1,pan:!1,reset:!0}},zoom:{type:"y"}},stroke:{width:2},markers:{size:4},tooltip:{y:{formatter:(t,{series:e,seriesIndex:i,dataPointIndex:s,w:n})=>{if(!t)return null;const a=c(t,{allowZeros:!0}),m=this.series[i].data[s].platform;return`${a} (${m})`}}},xaxis:{title:{text:"Cycle point"},categories:this.cyclePoints,min:this.xRange[0],max:this.xRange[1]},yaxis:{forceNiceScale:!0,min:this.showOrigin?0:void 0,title:{text:g(this.timingOption)+" time"},labels:{formatter:t=>c(t,{allowZeros:!0})}}}},miniChartOptions(){return{chart:{animations:{enabled:this.animate&&!this.reducedAnimation,easing:"easeinout",speed:300,animateGradually:{enabled:!0,delay:150},dynamicAnimation:{enabled:!0,speed:350}},selection:{enabled:!0,xaxis:{min:1,max:this.cyclePoints.length}},toolbar:{autoSelected:"selection",show:!0}},legend:{show:!1},markers:{size:3},stroke:{width:2},tooltip:{enabled:!1},xaxis:{categories:this.cyclePoints,tickAmount:4,labels:{rotate:0}},yaxis:{tickAmount:3,title:{text:g(this.timingOption)+" time"},labels:{formatter:t=>c(t,{allowZeros:!0})},min:this.showOrigin?0:void 0}}}},methods:{selectSearchResults:function(){const t=this.$refs.selectTasks.filteredItems.map(e=>e.value);this.displayedTasks=Ne(this.displayedTasks,t)},deselectSearchResults:function(){const t=this.$refs.selectTasks.filteredItems.map(e=>e.value);this.displayedTasks=_e(this.displayedTasks,t)},jobsQuery:_(async function(t){if(t.length>0){this.jobs=[],this.jobCallback=new B(this.jobs);const e=await this.$workflowService.query2(Ee,{workflows:this.workflowIDs,tasks:t});this.jobCallback.onAdded(e.data)}},200),taskNamesQuery:_(async function(){const t=await this.$workflowService.query2(He,{workflows:this.workflowIDs});this.taskNames=t.data.tasks.map(e=>e.name)},200),zoomMainChart:function(t,{xaxis:e}){this.xRange=[Math.ceil(e.min),Math.floor(e.max)]},refreshData:function(){this.taskNamesQuery(),this.jobsQuery(this.displayedTasks)}},icons:{mdiRefresh:Y}},Ye={class:"d-flex flex-grow-1 col-gap-1"},Ke={id:"mainTimeSeries"},We={id:"miniTimeSeries"};function Xe(t,e,i,s,n,a){const m=v("v-select-actions"),l=v("VueApexCharts");return y(),M(J,null,[i.sortInputTeleportTarget?(y(),x(H,{key:0,to:i.sortInputTeleportTarget},[V("div",Ye,[o(ce,{multiple:"",chips:"","closable-chips":"",clearable:"",placeholder:"Search",items:n.taskNames,modelValue:s.displayedTasks,"onUpdate:modelValue":e[0]||(e[0]=u=>s.displayedTasks=u),label:"Select tasks",ref:"selectTasks"},{"prepend-item":r(()=>[o(m,null,{default:r(()=>[o(T,{onClick:a.selectSearchResults},{default:r(()=>[...e[3]||(e[3]=[k(" Select all ",-1)])]),_:1},8,["onClick"]),o(T,{onClick:a.deselectSearchResults},{default:r(()=>[...e[4]||(e[4]=[k(" Deselect all ",-1)])]),_:1},8,["onClick"])]),_:1}),o(fe)]),_:1},8,["items","modelValue"]),o(T,{onClick:e[1]||(e[1]=u=>a.refreshData()),"data-cy":"analysis-jobs-refresh-btn",icon:"",variant:"text"},{default:r(()=>[o(w,{icon:t.$options.icons.mdiRefresh},null,8,["icon"]),o(O,null,{default:r(()=>[...e[5]||(e[5]=[k("Refresh data",-1)])]),_:1})]),_:1}),o(Pe,{class:"ma-0 pa-0",modelValue:s.showOrigin,"onUpdate:modelValue":e[2]||(e[2]=u=>s.showOrigin=u),label:"Show origin",density:"compact","hide-details":"true",style:{"min-width":"120px"}},null,8,["modelValue"])])],8,["to"])):C("",!0),V("div",Ke,[o(l,{type:"line",options:a.chartOptions,series:a.series,height:450,width:"95%",class:"d-flex justify-center"},null,8,["options","series"])]),V("div",We,[o(l,{type:"line",options:a.miniChartOptions,series:a.series,height:"120",width:"95%",onSelection:a.zoomMainChart,class:"d-flex justify-center"},null,8,["options","series","onSelection"])])],64)}const et=S(Je,[["render",Xe]]);function tt(t,e){let i=!1;return e.name?.length?i=e.name.some(s=>t.name===s):i=!0,e.platformOption.trim?.()&&(i&&=t.platform===e.platformOption),i}function st(t){const e=[{value:-1,title:"All"}],i=[];for(const s of t)i.includes(s.platform)||(i.push(s.platform),e.push({value:s.platform,title:s.platform}));return e}const ie=["name","platform","count","meanTotalTime","stdDevTotalTime","minTotalTime","totalQuartiles","maxTotalTime","meanRunTime","stdDevRunTime","minRunTime","runQuartiles","maxRunTime","meanQueueTime","stdDevQueueTime","minQueueTime","queueQuartiles","maxQueueTime"],it=j` -query analysisTaskQuery ($workflows: [ID]) { - tasks(live: false, workflows: $workflows) { - ${ie.join(` -`)} - } -} -`;class N extends K{constructor(e){super(),this.tasks=e}add(e){this.tasks.push(...e.tasks.map(i=>W(i,ie)))}onAdded(e,i,s){this.add(e)}onUpdated(e,i,s){this.add(e)}before(){}after(){}onPruned(){}commit(){}tearDown(){}}const at={name:"Analysis",mixins:[Oe],components:{AnalysisTable:Fe,BoxPlot:Le,TimeSeries:et},beforeMount(){this.tasksQuery()},emits:[D],props:{initialOptions:A},setup(t,{emit:e}){const i=p("tasksFilter",{props:t,emit:e},{name:[],timingOption:"totalTimes",platformOption:-1}),s=p("chartType",{props:t,emit:e},"table"),n=ke("toolbar"),a=p("dataTableOptions",{props:t,emit:e}),m=p("boxPlotOptions",{props:t,emit:e}),l=p("timeseriesPlotOptions",{props:t,emit:e});return{tasksFilter:i,chartType:s,toolbarRef:n,dataTableOptions:a,boxPlotOptions:m,timeseriesPlotOptions:l}},data(){const t=[];return{callback:new N(t),tasks:t}},computed:{workflowIDs(){return[this.workflowId]},filteredTasks(){return this.tasks.filter(t=>tt(t,this.tasksFilter))},platformOptions(){return st(this.tasks)},timingOption(){return this.tasksFilter.timingOption.replace(/Times/,"")}},methods:{tasksQuery:_(async function(){this.tasks=[],this.callback=new N(this.tasks);const t=await this.$workflowService.query2(it,{workflows:this.workflowIDs});this.callback.onAdded(t.data)},200)},icons:{mdiChartTimeline:ye,mdiChartTimelineVariant:ge,mdiRefresh:Y,mdiTable:he,mdiInformationOutline:pe},timingOptions:[{value:"totalTimes",title:"Total times"},{value:"runTimes",title:"Run times"},{value:"queueTimes",title:"Queue times"}]},ot={class:"c-analysis"},nt={ref:"toolbar",class:"d-flex align-center flex-wrap my-2 col-gap-2 row-gap-4"};function lt(t,e,i,s,n,a){const m=v("AnalysisTable"),l=v("BoxPlot"),u=v("TimeSeries");return y(),M("div",ot,[o(G,{fluid:"",class:"pa-2"},{default:r(()=>[o(z,{"no-gutters":""},{default:r(()=>[o(P,{cols:"12",md:"4",class:"pr-md-2 mb-2 mb-md-0"},{default:r(()=>[o(Te,{id:"c-analysis-filter-task-name",clearable:"",chips:"",multiple:"","closable-chips":"",placeholder:"Filter by task name",modelValue:s.tasksFilter.name,"onUpdate:modelValue":e[0]||(e[0]=d=>s.tasksFilter.name=d),ref:"filterNameInput",items:this.tasks.map(d=>d.name),disabled:s.chartType==="timeSeries"},null,8,["modelValue","items","disabled"])]),_:1}),o(P,{cols:"12",md:"4",class:"mb-2 mb-md-0"},{default:r(()=>[o(I,{id:"c-analysis-filter-task-timings",items:t.$options.timingOptions,prefix:"Displaying:",modelValue:s.tasksFilter.timingOption,"onUpdate:modelValue":e[1]||(e[1]=d=>s.tasksFilter.timingOption=d)},null,8,["items","modelValue"])]),_:1}),o(P,{cols:"12",md:"4",class:"pl-md-2 mb-2 mb-md-0"},{default:r(()=>[o(I,{id:"c-analysis-filter-task-platforms",items:a.platformOptions,prefix:"Platform:",modelValue:s.tasksFilter.platformOption,"onUpdate:modelValue":e[2]||(e[2]=d=>s.tasksFilter.platformOption=d)},null,8,["items","modelValue"])]),_:1})]),_:1}),V("div",nt,[o(be,{defaults:{VBtn:{icon:!0,variant:"text"}}},{default:r(()=>[o(we,{modelValue:s.chartType,"onUpdate:modelValue":e[3]||(e[3]=d=>s.chartType=d),mandatory:"",variant:"outlined",color:"primary"},{default:r(()=>[o(T,{value:"table","data-cy":"table-toggle"},{default:r(()=>[o(w,{icon:t.$options.icons.mdiTable},null,8,["icon"]),o(O,null,{default:r(()=>[...e[7]||(e[7]=[k("Table view",-1)])]),_:1})]),_:1}),o(T,{value:"box","data-cy":"box-plot-toggle"},{default:r(()=>[o(w,{icon:t.$options.icons.mdiChartTimeline},null,8,["icon"]),o(O,null,{default:r(()=>[...e[8]||(e[8]=[k("Box & whiskers view",-1)])]),_:1})]),_:1}),o(T,{value:"timeSeries","data-cy":"time-series-toggle"},{default:r(()=>[o(w,{icon:t.$options.icons.mdiChartTimelineVariant},null,8,["icon"]),o(O,null,{default:r(()=>[...e[9]||(e[9]=[k("Time series view",-1)])]),_:1})]),_:1})]),_:1},8,["modelValue"]),s.chartType==="table"||s.chartType==="box"?(y(),x(T,{key:0,onClick:a.tasksQuery,"data-cy":"analysis-refresh-btn"},{default:r(()=>[o(w,{icon:t.$options.icons.mdiRefresh},null,8,["icon"]),o(O,null,{default:r(()=>[...e[10]||(e[10]=[k("Refresh data",-1)])]),_:1})]),_:1},8,["onClick"])):C("",!0),o(T,null,{default:r(()=>[o(w,{icon:t.$options.icons.mdiInformationOutline},null,8,["icon"]),o(O,null,{default:r(()=>[...e[11]||(e[11]=[k(" The Analysis View shows data for all succeeded jobs in all cycles of the workflow. ",-1)])]),_:1})]),_:1})]),_:1})],512),s.chartType==="table"?(y(),x(m,{key:0,tasks:a.filteredTasks,"timing-option":a.timingOption,"initial-options":s.dataTableOptions,"onUpdate:initialOptions":e[4]||(e[4]=d=>s.dataTableOptions=d)},null,8,["tasks","timing-option","initial-options"])):s.chartType==="box"?(y(),x(l,{key:1,tasks:a.filteredTasks,"timing-option":a.timingOption,"sort-input-teleport-target":s.toolbarRef,"initial-options":s.boxPlotOptions,"onUpdate:initialOptions":e[5]||(e[5]=d=>s.boxPlotOptions=d)},null,8,["tasks","timing-option","sort-input-teleport-target","initial-options"])):s.chartType==="timeSeries"?(y(),x(u,{key:2,workflowIDs:a.workflowIDs,"platform-option":s.tasksFilter.platformOption,"timing-option":a.timingOption,"sort-input-teleport-target":s.toolbarRef,"initial-options":s.timeseriesPlotOptions,"onUpdate:initialOptions":e[6]||(e[6]=d=>s.timeseriesPlotOptions=d)},null,8,["workflowIDs","platform-option","timing-option","sort-input-teleport-target","initial-options"])):C("",!0)]),_:1})])}const gt=S(at,[["render",lt]]);export{gt as default}; diff --git a/cylc/uiserver/ui/2.10.0/assets/Dashboard-DoexqeKQ.js b/cylc/uiserver/ui/2.10.0/assets/Dashboard-DoexqeKQ.js deleted file mode 100644 index 3cc577ad..00000000 --- a/cylc/uiserver/ui/2.10.0/assets/Dashboard-DoexqeKQ.js +++ /dev/null @@ -1,35 +0,0 @@ -import{_ as C,X as x,Y as D,Z as U,$ as z,a0 as L,a1 as A,N as $,a2 as H,a3 as I,a4 as T,a5 as q,a6 as N,C as S,e as W,o as c,w as t,g as s,V as g,h as m,z as p,k as E,L as M,a7 as b,a8 as a,a9 as r,l as o,aa as n,D as i,t as d,E as k,j as B,ab as G,ac as h,ad as j,I as J}from"./index-jbzX_AXb.js";import{V as v}from"./VDataTable-BqaL5Tnv.js";import"./VPagination-C84GdNtS.js";const O='',Q='',Y={get svg(){return O+"Jupyter"+Q+this.path+R},path:"M7.157 22.201A1.784 1.799 0 0 1 5.374 24a1.784 1.799 0 0 1-1.784-1.799 1.784 1.799 0 0 1 1.784-1.799 1.784 1.799 0 0 1 1.783 1.799zM20.582 1.427a1.415 1.427 0 0 1-1.415 1.428 1.415 1.427 0 0 1-1.416-1.428A1.415 1.427 0 0 1 19.167 0a1.415 1.427 0 0 1 1.415 1.427zM4.992 3.336A1.047 1.056 0 0 1 3.946 4.39a1.047 1.056 0 0 1-1.047-1.055A1.047 1.056 0 0 1 3.946 2.28a1.047 1.056 0 0 1 1.046 1.056zm7.336 1.517c3.769 0 7.06 1.38 8.768 3.424a9.363 9.363 0 0 0-3.393-4.547 9.238 9.238 0 0 0-5.377-1.728A9.238 9.238 0 0 0 6.95 3.73a9.363 9.363 0 0 0-3.394 4.547c1.713-2.04 5.004-3.424 8.772-3.424zm.001 13.295c-3.768 0-7.06-1.381-8.768-3.425a9.363 9.363 0 0 0 3.394 4.547A9.238 9.238 0 0 0 12.33 21a9.238 9.238 0 0 0 5.377-1.729 9.363 9.363 0 0 0 3.393-4.547c-1.712 2.044-5.003 3.425-8.772 3.425Z"},Z=Y.svg.replace(/.*d="(.*)".*/,"$1"),P=J` -subscription App { - deltas { - id - added { - ...AddedDelta - } - updated (stripNull: true) { - ...UpdatedDelta - } - pruned { - workflow - } - } -} - -fragment AddedDelta on Added { - workflow { - ...WorkflowData - } -} - -fragment UpdatedDelta on Updated { - workflow { - ...WorkflowData - } -} - -fragment WorkflowData on Workflow { - # NOTE: do not request the "reloaded" event here - # (it would cause a race condition with the workflow subscription) - id - status -} -`,X={name:"Dashboard",mixins:[N],components:{EventChip:q},data(){return{query:new j(P,{},"root",[],!0,!0)}},computed:{...T("user",["user"]),...I("workflows",["getNodes"]),workflows(){return this.getNodes("workflow")},workflowsTable(){const l=Object.values(this.workflows).map(e=>e.node.status).reduce((e,u)=>(e[u]=(e[u]||0)+1,e),{});return G.enumValues.sort((e,u)=>h.get(e)-h.get(u)).map(e=>({text:e.name.charAt(0).toUpperCase()+e.name.slice(1),count:l[e.name]||0}))},multiUserMode(){return this.user.mode!=="single user"},events(){const l=[];for(const e of this.workflows){const u=e.node?.logRecords||[];for(const w of u)l.push({workflow:e.tokens.workflow,...w})}return l.reverse()}},workflowsHeader:[{value:"count"},{value:"text"}],eventsHeader:[{value:"level"},{value:"workflow"},{value:"message"}],hubUrl:H("/hub/home",!1,!0),icons:{table:$,settings:A,hub:L,quickstart:z,workflow:U,documentation:D,jupyterLogo:Z,mdiGraphql:x}};function F(l,e,u,w,K,f){const y=S("EventChip");return c(),W(B,{fluid:"","grid-list":"",class:"c-dashboard mt-4 py-0 px-6"},{default:t(()=>[s(g,{wrap:""},{default:t(()=>[s(m,{md:"4",lg:"3"},{default:t(()=>[e[2]||(e[2]=p("p",{class:"text-h4 mb-2"},"Workflows",-1)),s(v,{headers:l.$options.workflowsHeader,items:f.workflowsTable,loading:l.isLoading,id:"dashboard-workflows","items-per-page":"-1",style:{"font-size":"1rem"},density:"compact"},{headers:t(()=>[...e[0]||(e[0]=[])]),bottom:t(()=>[...e[1]||(e[1]=[])]),_:1},8,["headers","items","loading"])]),_:1}),s(m,{md:"8",lg:"9"},{default:t(()=>[e[4]||(e[4]=p("p",{class:"text-h4 mb-2"},"Events",-1)),s(v,{headers:l.$options.eventsHeader,items:f.events,"items-per-page":8,density:"compact","data-cy":"events-table"},E({headers:t(()=>[]),"no-data":t(()=>[e[3]||(e[3]=p("td",{class:"text-h6 text-disabled"},"No events",-1))]),"item.level":t(({item:V})=>[s(y,{level:V.level},null,8,["level"])]),_:2},[f.events.length?void 0:{name:"bottom",fn:t(()=>[]),key:"0"}]),1032,["headers","items"])]),_:1})]),_:1}),s(M),s(g,{wrap:""},{default:t(()=>[s(m,{md:"6",lg:"6"},{default:t(()=>[s(b,{lines:"three",class:"pa-0"},{default:t(()=>[s(a,{to:"/workflow-table","data-cy":"workflow-table-link"},{prepend:t(()=>[s(i,{size:"1.6em"},{default:t(()=>[o(d(l.$options.icons.table),1)]),_:1})]),default:t(()=>[s(r,{class:"text-h6 font-weight-light"},{default:t(()=>[...e[5]||(e[5]=[o(" Workflows Table ",-1)])]),_:1}),s(n,null,{default:t(()=>[...e[6]||(e[6]=[o(" View name, host, version, etc. of your workflows ",-1)])]),_:1})]),_:1}),s(a,{to:"/user-profile","data-cy":"user-settings-link"},{prepend:t(()=>[s(i,{size:"1.6em"},{default:t(()=>[o(d(l.$options.icons.settings),1)]),_:1})]),default:t(()=>[s(r,{class:"text-h6 font-weight-light"},{default:t(()=>[...e[7]||(e[7]=[o(" Settings ",-1)])]),_:1}),s(n,null,{default:t(()=>[...e[8]||(e[8]=[o(" View your Hub permissions, and alter user preferences ",-1)])]),_:1})]),_:1}),p("div",null,[s(a,{id:"cylc-hub-button",disabled:!f.multiUserMode,href:l.$options.hubUrl},{prepend:t(()=>[s(i,{size:"1.6em"},{default:t(()=>[o(d(l.$options.icons.hub),1)]),_:1})]),default:t(()=>[s(r,{class:"text-h6 font-weight-light"},{default:t(()=>[...e[9]||(e[9]=[o(" Cylc Hub ",-1)])]),_:1}),s(n,null,{default:t(()=>[...e[10]||(e[10]=[o(" Visit the Hub to manage your running UI Servers ",-1)])]),_:1})]),_:1},8,["disabled","href"]),s(k,{disabled:f.multiUserMode},{default:t(()=>[...e[11]||(e[11]=[o(" You are not running Cylc UI via Cylc Hub. ",-1)])]),_:1},8,["disabled"])]),p("div",null,[s(a,{id:"jupyter-lab-button",disabled:!l.user.extensions?.lab,href:l.user.extensions?.lab,target:"_blank"},{prepend:t(()=>[s(i,{size:"1.6em"},{default:t(()=>[o(d(l.$options.icons.jupyterLogo),1)]),_:1})]),default:t(()=>[s(r,{class:"text-h6 font-weight-light"},{default:t(()=>[...e[12]||(e[12]=[o(" Jupyter Lab ",-1)])]),_:1}),s(n,null,{default:t(()=>[...e[13]||(e[13]=[o(" Open Jupyter Lab in a new browser tab. ",-1)])]),_:1})]),_:1},8,["disabled","href"]),s(k,{disabled:l.user.extensions?.lab},{default:t(()=>[...e[14]||(e[14]=[o(" Jupyter Lab is not installed. ",-1)])]),_:1},8,["disabled"])])]),_:1})]),_:1}),s(m,{md:"6",lg:"6"},{default:t(()=>[s(b,{lines:"three",class:"pa-0"},{default:t(()=>[s(a,{to:"/guide","data-cy":"quickstart-link"},{prepend:t(()=>[s(i,{size:"1.6em"},{default:t(()=>[o(d(l.$options.icons.quickstart),1)]),_:1})]),default:t(()=>[s(r,{class:"text-h6 font-weight-light"},{default:t(()=>[...e[15]||(e[15]=[o(" Cylc UI Quickstart ",-1)])]),_:1}),s(n,null,{default:t(()=>[...e[16]||(e[16]=[o(" Learn how to use the Cylc UI ",-1)])]),_:1})]),_:1}),s(a,{href:"https://cylc.github.io/cylc-doc/stable/html/workflow-design-guide/index.html",target:"_blank"},{prepend:t(()=>[s(i,{size:"1.6em"},{default:t(()=>[o(d(l.$options.icons.workflow),1)]),_:1})]),default:t(()=>[s(r,{class:"text-h6 font-weight-light"},{default:t(()=>[...e[17]||(e[17]=[o(" Workflow Design Guide ",-1)])]),_:1}),s(n,null,{default:t(()=>[...e[18]||(e[18]=[o(" How to make complex Cylc workflows and Rose suites simpler and easier to maintain ",-1)])]),_:1})]),_:1}),s(a,{href:"https://cylc.github.io/cylc-doc/stable/html/index.html",target:"_blank"},{prepend:t(()=>[s(i,{size:"1.6em"},{default:t(()=>[o(d(l.$options.icons.documentation),1)]),_:1})]),default:t(()=>[s(r,{class:"text-h6 font-weight-light"},{default:t(()=>[...e[19]||(e[19]=[o(" Documentation ",-1)])]),_:1}),s(n,null,{default:t(()=>[...e[20]||(e[20]=[o(" The complete Cylc documentation ",-1)])]),_:1})]),_:1}),s(a,{to:"/graphiql"},{prepend:t(()=>[s(i,{size:"1.6em"},{default:t(()=>[o(d(l.$options.icons.mdiGraphql),1)]),_:1})]),default:t(()=>[s(r,{class:"text-h6 font-weight-light"},{default:t(()=>[...e[21]||(e[21]=[o(" GraphiQL ",-1)])]),_:1}),s(n,null,{default:t(()=>[...e[22]||(e[22]=[o(" Explore the Cylc GraphQL API ",-1)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const se=C(X,[["render",F]]);export{se as default}; diff --git a/cylc/uiserver/ui/2.10.0/assets/Gantt-6P23AHY7.js b/cylc/uiserver/ui/2.10.0/assets/Gantt-6P23AHY7.js deleted file mode 100644 index 5da039b9..00000000 --- a/cylc/uiserver/ui/2.10.0/assets/Gantt-6P23AHY7.js +++ /dev/null @@ -1,8 +0,0 @@ -import{_ as k,v as O,ae as p,p as y,x as j,g as l,C as w,F as T,o as d,J as V,e as f,w as m,j as P,I as v,af as x,V as C,h as c,H as F,A as u}from"./index-jbzX_AXb.js";import{g as D}from"./graphql-o3z6-itG.js";import{i as _,a as b}from"./initialOptions-Ceh0265h.js";import{m as A}from"./vue3-apexcharts-D5BQ-Lg0.js";import{V as S}from"./VPagination-C84GdNtS.js";import{d as G}from"./debounce-DL1CYJdn.js";const h=new Map([["total",{start:"submittedTime",end:"finishedTime"}],["run",{start:"startedTime",end:"finishedTime"}],["queue",{start:"submittedTime",end:"startedTime"}]]),g=["#008FFB","#00E396","#775DD0","#FEB019","#FF4560"],I={name:"GanttChart",watch:{tasksPerPage:function(){this.page=1}},components:{VueApexCharts:A},props:{jobs:{type:Object,required:!0},timingOption:{type:String,default:"total"},tasksPerPage:{type:Number,default:10},animate:{type:Boolean,default:!0}},setup(){return{reducedAnimation:y()}},data(){return{page:1,sortBy:"name",sortDesc:!1}},methods:{compare(o,e){const s=o[this.sortBy]t)},series(){let o=[];if(this.jobs.length!==0){const{start:e,end:s}=h.get(this.timingOption),t=new Map;let a=0;o=this.displayedJobs.map(n=>{const{cycle:r}=new p(n.id);let i=t.get(r);return i||(i=g[a++%g.length],t.set(r,i)),{x:n.name,y:[new Date(n[e]).getTime(),new Date(n[s]).getTime()],fillColor:i}})}return[{data:o}]},numPages(){return this.jobs.length!==0?Math.ceil(Object.keys(this.jobs).length/this.tasksPerPage):1},chartOptions(){const{displayedJobs:o}=this,{start:e,end:s}=h.get(this.timingOption);return{chart:{defaultLocale:"en",locales:[{name:"en",options:{toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",menu:"Download",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}}],animations:{enabled:this.animate&&!this.reducedAnimation,easing:"easeinout",speed:300,animateGradually:{enabled:!0,delay:150},dynamicAnimation:{enabled:!0,speed:350}},fontFamily:"inherit",toolbar:{tools:{download:``,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0}}},tooltip:{custom({dataPointIndex:t}){const a=o[t],{relativeID:n}=new p(a.id);return'
Job: '+n+'
Start: '+a[e]+'
Finish: '+a[s]+"
"}},plotOptions:{bar:{horizontal:!0}},xaxis:{labels:{formatter:function(t,a,n){return new Date(t).toUTCString().slice(17,-3)}},title:{text:"Time (UTC)"}},yaxis:{labels:{maxWidth:280,offsetX:-10}}}}}};function q(o,e,s,t,a,n){const r=w("VueApexCharts");return d(),j(T,null,[l(r,{type:"rangeBar",options:n.chartOptions,series:n.series,width:"100%",height:"auto",class:"d-flex justify-center"},null,8,["options","series"]),l(S,{modelValue:a.page,"onUpdate:modelValue":e[0]||(e[0]=i=>a.page=i),length:n.numPages,"total-visible":7,density:"comfortable"},null,8,["modelValue","length"])],64)}const B=k(I,[["render",q]]);function U(o,e){const{name:s,platformOption:t}=e;return Object.fromEntries(Object.entries(o).filter(([a,n])=>(!s.length||s.includes(a))&&(t===-1||n.some(({platform:r})=>r===t))))}function M(o){const e=[{value:-1,title:"All"}],s=[];for(const t of Object.values(o))for(let a=0;at.name)));const s=Object.fromEntries(this.uniqueTasks.map(t=>[t,[]]));for(let t=0;t[l(C,{"no-gutters":""},{default:m(()=>[l(c,{cols:"12",md:"4",class:"pr-md-2 mb-2"},{default:m(()=>[l(F,{id:"c-gantt-filter-job-name",multiple:"",chips:"","closable-chips":"",clearable:"",placeholder:"Search",items:a.callback.uniqueTasks,modelValue:t.jobsFilter.name,"onUpdate:modelValue":e[0]||(e[0]=i=>t.jobsFilter.name=i),label:"Select tasks",ref:"selectTasks"},null,8,["items","modelValue"])]),_:1}),l(c,{cols:"12",md:"4",class:"mb-2"},{default:m(()=>[l(u,{id:"c-gantt-filter-job-timings",items:a.timingOptions,prefix:"Displaying:",modelValue:t.jobsFilter.timingOption,"onUpdate:modelValue":e[1]||(e[1]=i=>t.jobsFilter.timingOption=i)},null,8,["items","modelValue"])]),_:1}),l(c,{cols:"12",md:"4",class:"pl-md-2 mb-2"},{default:m(()=>[l(u,{id:"c-gantt-filter-job-platforms",items:n.platformOptions,prefix:"Platform:",modelValue:t.jobsFilter.platformOption,"onUpdate:modelValue":e[2]||(e[2]=i=>t.jobsFilter.platformOption=i)},null,8,["items","modelValue"])]),_:1}),l(c,{cols:"12",md:"4",class:"pr-md-2 mb-2"},{default:m(()=>[l(u,{id:"c-gantt-tasks-per-page",items:o.$options.taskChoices,prefix:"Tasks Per Page",modelValue:t.tasksPerPage,"onUpdate:modelValue":e[3]||(e[3]=i=>t.tasksPerPage=i)},null,8,["items","modelValue"])]),_:1})]),_:1}),l(r,{jobs:n.filteredJobs,"timing-option":n.timingOption,"tasks-per-page":t.tasksPerPage},null,8,["jobs","timing-option","tasks-per-page"])]),_:1})):(d(),f(x,{key:0,type:"table",class:"align-content-start"}))])}const K=k(N,[["render",R]]);export{E as GanttCallback,K as default}; diff --git a/cylc/uiserver/ui/2.10.0/assets/Graph-BNXWiB3d.js b/cylc/uiserver/ui/2.10.0/assets/Graph-BNXWiB3d.js deleted file mode 100644 index fdae80d2..00000000 --- a/cylc/uiserver/ui/2.10.0/assets/Graph-BNXWiB3d.js +++ /dev/null @@ -1,125 +0,0 @@ -import{_ as er,x as wt,z as bt,t as ao,o as vt,ag as so,a3 as uo,a6 as lo,g as Te,C as ue,y as co,F as le,r as ce,G as ho,ar as po,as as fo,at as go,au as vo,av as mo,aw as wo,ad as yo,ax as bo,ay as xo,I as Eo,az as _o,e as Lo}from"./index-jbzX_AXb.js";import{g as Fo}from"./graphql-o3z6-itG.js";import{i as Xo,a as $t}from"./initialOptions-Ceh0265h.js";import{G as Oo}from"./GraphNode-CjrYIu24.js";import{V as Po}from"./ViewToolbar-nG008anM.js";const So={name:"GraphSubgraph",props:{subgraph:{type:Object,required:!0}},computed:{labelXPosition(){return parseInt(this.subgraph.x)+parseInt(this.subgraph.width)/2},labelYPosition(){return parseInt(this.subgraph.y)+90}}},Ro={class:"c-graph-subgraph"},Do=["width","height","x","y"],Mo=["x","y"];function Bo(l,a,i,s,h,d){return vt(),wt("g",Ro,[bt("rect",{width:i.subgraph.width,height:i.subgraph.height,x:i.subgraph.x,y:i.subgraph.y,rx:"50",ry:"50",fill:"none","stroke-width":"8px",stroke:"grey","stroke-dasharray":"50 50"},null,8,Do),bt("text",{x:d.labelXPosition,y:d.labelYPosition,"font-family":"Roboto","alignment-baseline":"middle","text-anchor":"middle","font-size":"60px",fill:"black","stroke-width":"5","paint-order":"stroke",stroke:"white"},ao(i.subgraph.label),9,Mo)])}const Io=er(So,[["render",Bo]]);function ko(l){const a=l.substring(2).split(" "),[i,s]=a.splice(0,2);return`${a.reduce((d,m)=>`${d} ${he(m)},`,`M${he(s)} C`)} L ${he(i)}`}function he(l){const[a,i]=l.split(",").map(parseFloat);return`${a} ${-i}`}function zo(l){let a=0,i,s;if(l.length===0)return a;for(i=0;il.length)&&(i=l.length);var s=new Q(i-a);return s.set(l.subarray(a,i)),s},Ut=function(l,a,i,s){if(Q.prototype.fill)return Q.prototype.fill.call(l,a,i,s);for((i==null||i<0)&&(i=0),(s==null||s>l.length)&&(s=l.length);il.length)&&(s=l.length);i2046MB)","invalid block type","FSE accuracy too high","match distance too far back","unexpected EOF"],K=function(l,a,i){var s=new Error(a||Ho[l]);if(s.code=l,Error.captureStackTrace&&Error.captureStackTrace(s,K),!i)throw s;return s},Qe=function(l,a,i){for(var s=0,h=0;s>>0},No=function(l,a){var i=l[0]|l[1]<<8|l[2]<<16;if(i==3126568&&l[3]==253){var s=l[4],h=s>>5&1,d=s>>2&1,m=s&3,w=s>>6;s&8&&K(0);var b=6-h,X=m==3?4:m,c=Qe(l,b,X);b+=X;var v=w?1<>3);S=P+(P>>3)*(l[5]&7)}S>2145386496&&K(1);var y=new Q((a==1?x||S:a?0:S)+12);return y[0]=1,y[4]=4,y[8]=8,{b:b+v,y:0,l:0,d:c,w:a&&a!=1?a:y.subarray(12),e:S,o:new At(y.buffer,0,3),u:x,c:d,m:Math.min(131072,S)}}else if((i>>4|l[3]<<20)==25481893)return Go(l,4)+8;K(0)},_t=function(l){for(var a=0;1<i&&K(3);for(var d=1<0;){var U=_t(m+1),E=s>>3,G=(1<>(s&7)&G,B=(1<B&&(T-=$)),x[++w]=--T,T==-1?(m+=T,F[--c]=w):m-=T,!T)do{var A=s>>3;b=(l[A]|l[A+1]<<8)>>(s&7)&3,s+=2,w+=b}while(b==3)}(w>255||m)&&K(0);for(var q=0,it=(d>>1)+(d>>3)+3,ot=d-1,et=0;et<=w;++et){var W=x[et];if(W<1){S[et]=-W;continue}for(X=0;X=c)}}for(q&&K(0),X=0;X>3,{b:h,s:F,n:I,t:P}]},Yo=function(l,a){var i=0,s=-1,h=new Q(292),d=l[a],m=h.subarray(0,256),w=h.subarray(256,268),b=new Vt(h.buffer,268);if(d<128){var X=Gt(l,a+1,6),c=X[0],v=X[1];a+=d;var x=c<<3,S=l[a];S||K(0);for(var P=0,y=0,F=v.b,I=F,U=(++a<<3)-8+_t(S);U-=F,!(U>3;if(P+=(l[E]|l[E+1]<<8)>>(U&7)&(1<>3,y+=(l[E]|l[E+1]<<8)>>(U&7)&(1<255&&K(0)}else{for(s=d-127;i>4,m[i+1]=G&15}++a}var T=0;for(i=0;i11&&K(0),T+=B&&1<0;--i){var et=b[i];Ut(ot,i,et,b[i-1]=et+w[i]*(1<<$-i))}for(b[0]!=rt&&K(0),i=0;iw&&v>3,S=(l[x]|l[x+1]<<8|l[x+2]<<16)>>(c&7);b=(b<>2,m=d<<1,w=d+m;Zt(l.subarray(s,s+=l[0]|l[1]<<8),a.subarray(0,d),i),Zt(l.subarray(s,s+=l[2]|l[3]<<8),a.subarray(d,m),i),Zt(l.subarray(s,s+=l[4]|l[5]<<8),a.subarray(m,w),i),Zt(l.subarray(s),a.subarray(w),i)},Ko=function(l,a,i){var s,h=a.b,d=l[h],m=d>>1&3;a.l=d&1;var w=d>>3|l[h+1]<<5|l[h+2]<<13,b=(h+=3)+w;if(m==1)return h>=l.length?void 0:(a.b=h+1,i?(Ut(i,l[h],a.y,a.y+=w),i):Ut(new Q(w),l[h]));if(!(b>l.length)){if(m==0)return a.b=b,i?(i.set(l.subarray(h,b),a.y),a.y+=w,i):pe(l,h,b);if(m==2){var X=l[h],c=X&3,v=X>>2&3,x=X>>4,S=0,P=0;c<2?v&1?x|=l[++h]<<4|(v&2&&l[++h]<<12):x=X>>3:(P=v,v<2?(x|=(l[++h]&63)<<4,S=l[h]>>6|l[++h]<<2):v==2?(x|=l[++h]<<4|(l[++h]&3)<<12,S=l[h]>>2|l[++h]<<6):(x|=l[++h]<<4|(l[++h]&63)<<12,S=l[h]>>6|l[++h]<<2|l[++h]<<10)),++h;var y=i?i.subarray(a.y,a.y+a.m):new Q(a.m),F=y.length-x;if(c==0)y.set(l.subarray(h,h+=x),F);else if(c==1)Ut(y,l[h++],F);else{var I=a.h;if(c==2){var U=Yo(l,h);S+=h-(h=U[0]),a.h=I=U[1]}else I||K(0);(P?qo:Zt)(l.subarray(h,h+=S),y.subarray(F),I)}var E=l[h++];if(E){E==255?E=(l[h++]|l[h++]<<8)+32512:E>127&&(E=E-128<<8|l[h++]);var G=l[h++];G&3&&K(0);for(var T=[jo,Jo,Wo],B=2;B>-1;--B){var $=G>>(B<<1)+2&3;if($==1){var rt=new Q([0,0,l[h++]]);T[B]={s:rt.subarray(2,3),n:rt.subarray(0,1),t:new Vt(rt.buffer,0,1),b:0}}else $==2?(s=Gt(l,h,9-(B&1)),h=s[0],T[B]=s[1]):$==3&&(a.t||K(0),T[B]=a.t[B])}var A=a.t=T,q=A[0],it=A[1],ot=A[2],et=l[b-1];et||K(0);var W=(b<<3)-8+_t(et)-ot.b,z=W>>3,tt=0,Lt=(l[z]|l[z+1]<<8)>>(W&7)&(1<>3;var Ft=(l[z]|l[z+1]<<8)>>(W&7)&(1<>3;var Xt=(l[z]|l[z+1]<<8)>>(W&7)&(1<>3;var jt=1<>>(W&7)&jt-1);z=(W-=be[L])>>3;var xt=Qo[L]+((l[z]|l[z+1]<<8|l[z+2]<<16)>>(W&7)&(1<>3;var Z=To[Bt]+((l[z]|l[z+1]<<8|l[z+2]<<16)>>(W&7)&(1<>3,Lt=ot.t[Lt]+((l[z]|l[z+1]<<8)>>(W&7)&(1<>3,Xt=q.t[Xt]+((l[z]|l[z+1]<<8)>>(W&7)&(1<>3,Ft=it.t[Ft]+((l[z]|l[z+1]<<8)>>(W&7)&(1<3)a.o[2]=a.o[1],a.o[1]=a.o[0],a.o[0]=dt-=3;else{var Ot=dt-(Z!=0);Ot?(dt=Ot==3?a.o[0]-1:a.o[Ot],Ot>1&&(a.o[2]=a.o[1]),a.o[1]=a.o[0],a.o[0]=dt):dt=a.o[0]}for(var B=0;Bxt&&(st=xt);for(var B=0;B{throw e},d,m,w=console.log.bind(console),b=console.error.bind(console),X,c=!1;function v(t,e){t||et(e)}var x=t=>t.startsWith("file://"),S,P,y,F,I,U,E,G,T,B=!1;function $(){var t=y.buffer;F=new Int8Array(t),U=new Int16Array(t),I=new Uint8Array(t),E=new Int32Array(t),G=new Uint32Array(t),T=new Float64Array(t)}function rt(){B=!0,Wt($r),!i.noFSInit&&!o.initialized&&o.init(),kt.B(),o.ignorePermissions=!1}var A=0,q=null;function it(t){A++}function ot(t){if(A--,A==0&&q){var e=q;q=null,e()}}function et(t){t="Aborted("+t+")",b(t),c=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw P?.(e),e}var W;let z=()=>"";function tt(t){if(t==W&&X)return new Uint8Array(X);throw"both async and sync fetching of the wasm failed"}async function Lt(t){if(!X)try{var e=await d(t);return new Uint8Array(e)}catch{}return tt(t)}async function Ft(t,e){try{var r=await Lt(t),n=await WebAssembly.instantiate(r,e);return n}catch(u){b(`failed to asynchronously prepare wasm: ${u}`),et(u)}}async function Xt(t,e,r){if(!t&&!x(e))try{var n=fetch(e,{credentials:"same-origin"}),u=await WebAssembly.instantiateStreaming(n,r);return u}catch(p){b(`wasm streaming compile failed: ${p}`),b("falling back to ArrayBuffer instantiation")}return Ft(e,r)}function Bt(){return{a:to}}async function Nt(){function t(p,f){return kt=p.exports,y=kt.A,$(),Ar(kt),ot(),kt}it();function e(p){return t(p.instance)}var r=Bt();W??=z();var n=await Xt(X,W,r),u=e(n);return u}var L,k;class Yt{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var Wt=t=>{for(;t.length>0;)t.shift()(i)};class jt{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){G[this.ptr+4>>2]=e}get_type(){return G[this.ptr+4>>2]}set_destructor(e){G[this.ptr+8>>2]=e}get_destructor(){return G[this.ptr+8>>2]}set_caught(e){e=e?1:0,F[this.ptr+12]=e}get_caught(){return F[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,F[this.ptr+13]=e}get_rethrown(){return F[this.ptr+13]!=0}init(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)}set_adjusted_ptr(e){G[this.ptr+16>>2]=e}get_adjusted_ptr(){return G[this.ptr+16>>2]}}var dt=0,xt=(t,e,r)=>{var n=new jt(t);throw n.init(e,r),dt=t,dt},Z={isAbs:t=>t.charAt(0)==="/",splitPath:t=>{var e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return e.exec(t).slice(1)},normalizeArray:(t,e)=>{for(var r=0,n=t.length-1;n>=0;n--){var u=t[n];u==="."?t.splice(n,1):u===".."?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r;r--)t.unshift("..");return t},normalize:t=>{var e=Z.isAbs(t),r=t.slice(-1)==="/";return t=Z.normalizeArray(t.split("/").filter(n=>!!n),!e).join("/"),!t&&!e&&(t="."),t&&r&&(t+="/"),(e?"/":"")+t},dirname:t=>{var e=Z.splitPath(t),r=e[0],n=e[1];return!r&&!n?".":(n&&(n=n.slice(0,-1)),r+n)},basename:t=>t&&t.match(/([^\/]+|\/)\/*$/)[1],join:(...t)=>Z.normalize(t.join("/")),join2:(t,e)=>Z.normalize(t+"/"+e)},Ot=()=>t=>crypto.getRandomValues(t),yt=t=>{(yt=Ot())(t)},st={resolve:(...t)=>{for(var e="",r=!1,n=t.length-1;n>=-1&&!r;n--){var u=n>=0?t[n]:o.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!u)return"";e=u+"/"+e,r=Z.isAbs(u)}return e=Z.normalizeArray(e.split("/").filter(p=>!!p),!r).join("/"),(r?"/":"")+e||"."},relative:(t,e)=>{t=st.resolve(t).slice(1),e=st.resolve(e).slice(1);function r(D){for(var N=0;N=0&&D[j]==="";j--);return N>j?[]:D.slice(N,j-N+1)}for(var n=r(t.split("/")),u=r(e.split("/")),p=Math.min(n.length,u.length),f=p,g=0;g{var u=e+r;if(n)return u;for(;t[e]&&!(e>=u);)++e;return e},Pt=(t,e=0,r,n)=>{var u=or(t,e,r,n);if(u-e>16&&t.buffer&&Jt)return Jt.decode(t.subarray(e,u));for(var p="";e>10,56320|D&1023)}}return p},te=[],ee=t=>{for(var e=0,r=0;r=55296&&n<=57343?(e+=4,++r):e+=3}return e},_e=(t,e,r,n)=>{if(!(n>0))return 0;for(var u=r,p=r+n-1,f=0;f=p)break;e[r++]=g}else if(g<=2047){if(r+1>=p)break;e[r++]=192|g>>6,e[r++]=128|g&63}else if(g<=65535){if(r+2>=p)break;e[r++]=224|g>>12,e[r++]=128|g>>6&63,e[r++]=128|g&63}else{if(r+3>=p)break;e[r++]=240|g>>18,e[r++]=128|g>>12&63,e[r++]=128|g>>6&63,e[r++]=128|g&63,f++}}return e[r]=0,r-u},Tt=(t,e,r)=>{var n=ee(t)+1,u=new Array(n),p=_e(t,u,0,u.length);return e&&(u.length=p),u},nr=()=>{if(!te.length){var t=null;if(!t)return null;te=Tt(t,!0)}return te.shift()},Et={ttys:[],init(){},shutdown(){},register(t,e){Et.ttys[t]={input:[],output:[],ops:e},o.registerDevice(t,Et.stream_ops)},stream_ops:{open(t){var e=Et.ttys[t.node.rdev];if(!e)throw new o.ErrnoError(43);t.tty=e,t.seekable=!1},close(t){t.tty.ops.fsync(t.tty)},fsync(t){t.tty.ops.fsync(t.tty)},read(t,e,r,n,u){if(!t.tty||!t.tty.ops.get_char)throw new o.ErrnoError(60);for(var p=0,f=0;f0&&(w(Pt(t.output)),t.output=[])},ioctl_tcgets(t){return{c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},ioctl_tcsets(t,e,r){return 0},ioctl_tiocgwinsz(t){return[24,80]}},default_tty1_ops:{put_char(t,e){e===null||e===10?(b(Pt(t.output)),t.output=[]):e!=0&&t.output.push(e)},fsync(t){t.output?.length>0&&(b(Pt(t.output)),t.output=[])}}},ir=(t,e)=>I.fill(0,t,t+e),re=(t,e)=>Math.ceil(t/e)*e,Le=t=>{t=re(t,65536);var e=Je(65536,t);return e&&ir(e,t),e},M={ops_table:null,mount(t){return M.createNode(null,"/",16895,0)},createNode(t,e,r,n){if(o.isBlkdev(r)||o.isFIFO(r))throw new o.ErrnoError(63);M.ops_table||={dir:{node:{getattr:M.node_ops.getattr,setattr:M.node_ops.setattr,lookup:M.node_ops.lookup,mknod:M.node_ops.mknod,rename:M.node_ops.rename,unlink:M.node_ops.unlink,rmdir:M.node_ops.rmdir,readdir:M.node_ops.readdir,symlink:M.node_ops.symlink},stream:{llseek:M.stream_ops.llseek}},file:{node:{getattr:M.node_ops.getattr,setattr:M.node_ops.setattr},stream:{llseek:M.stream_ops.llseek,read:M.stream_ops.read,write:M.stream_ops.write,mmap:M.stream_ops.mmap,msync:M.stream_ops.msync}},link:{node:{getattr:M.node_ops.getattr,setattr:M.node_ops.setattr,readlink:M.node_ops.readlink},stream:{}},chrdev:{node:{getattr:M.node_ops.getattr,setattr:M.node_ops.setattr},stream:o.chrdev_stream_ops}};var u=o.createNode(t,e,r,n);return o.isDir(u.mode)?(u.node_ops=M.ops_table.dir.node,u.stream_ops=M.ops_table.dir.stream,u.contents={}):o.isFile(u.mode)?(u.node_ops=M.ops_table.file.node,u.stream_ops=M.ops_table.file.stream,u.usedBytes=0,u.contents=null):o.isLink(u.mode)?(u.node_ops=M.ops_table.link.node,u.stream_ops=M.ops_table.link.stream):o.isChrdev(u.mode)&&(u.node_ops=M.ops_table.chrdev.node,u.stream_ops=M.ops_table.chrdev.stream),u.atime=u.mtime=u.ctime=Date.now(),t&&(t.contents[e]=u,t.atime=t.mtime=t.ctime=u.atime),u},getFileDataAsTypedArray(t){return t.contents?t.contents.subarray?t.contents.subarray(0,t.usedBytes):new Uint8Array(t.contents):new Uint8Array(0)},expandFileStorage(t,e){var r=t.contents?t.contents.length:0;if(!(r>=e)){var n=1048576;e=Math.max(e,r*(r>>0),r!=0&&(e=Math.max(e,256));var u=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(u.subarray(0,t.usedBytes),0)}},resizeFileStorage(t,e){if(t.usedBytes!=e)if(e==0)t.contents=null,t.usedBytes=0;else{var r=t.contents;t.contents=new Uint8Array(e),r&&t.contents.set(r.subarray(0,Math.min(e,t.usedBytes))),t.usedBytes=e}},node_ops:{getattr(t){var e={};return e.dev=o.isChrdev(t.mode)?t.id:1,e.ino=t.id,e.mode=t.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=t.rdev,o.isDir(t.mode)?e.size=4096:o.isFile(t.mode)?e.size=t.usedBytes:o.isLink(t.mode)?e.size=t.link.length:e.size=0,e.atime=new Date(t.atime),e.mtime=new Date(t.mtime),e.ctime=new Date(t.ctime),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr(t,e){for(let r of["mode","atime","mtime","ctime"])e[r]!=null&&(t[r]=e[r]);e.size!==void 0&&M.resizeFileStorage(t,e.size)},lookup(t,e){throw M.doesNotExistError||(M.doesNotExistError=new o.ErrnoError(44),M.doesNotExistError.stack=""),M.doesNotExistError},mknod(t,e,r,n){return M.createNode(t,e,r,n)},rename(t,e,r){var n;try{n=o.lookupNode(e,r)}catch{}if(n){if(o.isDir(t.mode))for(var u in n.contents)throw new o.ErrnoError(55);o.hashRemoveNode(n)}delete t.parent.contents[t.name],e.contents[r]=t,t.name=r,e.ctime=e.mtime=t.parent.ctime=t.parent.mtime=Date.now()},unlink(t,e){delete t.contents[e],t.ctime=t.mtime=Date.now()},rmdir(t,e){var r=o.lookupNode(t,e);for(var n in r.contents)throw new o.ErrnoError(55);delete t.contents[e],t.ctime=t.mtime=Date.now()},readdir(t){return[".","..",...Object.keys(t.contents)]},symlink(t,e,r){var n=M.createNode(t,e,41471,0);return n.link=r,n},readlink(t){if(!o.isLink(t.mode))throw new o.ErrnoError(28);return t.link}},stream_ops:{read(t,e,r,n,u){var p=t.node.contents;if(u>=t.node.usedBytes)return 0;var f=Math.min(t.node.usedBytes-u,n);if(f>8&&p.subarray)e.set(p.subarray(u,u+f),r);else for(var g=0;g0||r+e{var e=await d(t);return new Uint8Array(e)},sr=(...t)=>o.createDataFile(...t),ur=[],lr=(t,e,r,n)=>{typeof Browser<"u"&&Browser.init();var u=!1;return ur.forEach(p=>{u||p.canHandle(e)&&(p.handle(t,e,r,n),u=!0)}),u},cr=(t,e,r,n,u,p,f,g,_,D)=>{var N=e?st.resolve(Z.join2(t,e)):t;function j(C){function R(Y){D?.(),g||sr(t,e,Y,n,u,_),p?.(),ot()}lr(C,N,R,()=>{f?.(),ot()})||R(C)}it(),typeof r=="string"?ar(r).then(j,f):j(r)},hr=t=>{var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},r=e[t];if(typeof r>"u")throw new Error(`Unknown file open mode: ${t}`);return r},oe=(t,e)=>{var r=0;return t&&(r|=365),e&&(r|=146),r},o={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,filesystems:null,syncFSRequests:0,ErrnoError:class{name="ErrnoError";constructor(t){this.errno=t}},FSStream:class{shared={};get object(){return this.node}set object(t){this.node=t}get isRead(){return(this.flags&2097155)!==1}get isWrite(){return(this.flags&2097155)!==0}get isAppend(){return this.flags&1024}get flags(){return this.shared.flags}set flags(t){this.shared.flags=t}get position(){return this.shared.position}set position(t){this.shared.position=t}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(t,e,r,n){t||(t=this),this.parent=t,this.mount=t.mount,this.id=o.nextInode++,this.name=e,this.mode=r,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&this.readMode)===this.readMode}set read(t){t?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(t){t?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return o.isDir(this.mode)}get isDevice(){return o.isChrdev(this.mode)}},lookupPath(t,e={}){if(!t)throw new o.ErrnoError(44);e.follow_mount??=!0,Z.isAbs(t)||(t=o.cwd()+"/"+t);t:for(var r=0;r<40;r++){for(var n=t.split("/").filter(D=>!!D),u=o.root,p="/",f=0;f>>0)%o.nameTable.length},hashAddNode(t){var e=o.hashName(t.parent.id,t.name);t.name_next=o.nameTable[e],o.nameTable[e]=t},hashRemoveNode(t){var e=o.hashName(t.parent.id,t.name);if(o.nameTable[e]===t)o.nameTable[e]=t.name_next;else for(var r=o.nameTable[e];r;){if(r.name_next===t){r.name_next=t.name_next;break}r=r.name_next}},lookupNode(t,e){var r=o.mayLookup(t);if(r)throw new o.ErrnoError(r);for(var n=o.hashName(t.id,e),u=o.nameTable[n];u;u=u.name_next){var p=u.name;if(u.parent.id===t.id&&p===e)return u}return o.lookup(t,e)},createNode(t,e,r,n){var u=new o.FSNode(t,e,r,n);return o.hashAddNode(u),u},destroyNode(t){o.hashRemoveNode(t)},isRoot(t){return t===t.parent},isMountpoint(t){return!!t.mounted},isFile(t){return(t&61440)===32768},isDir(t){return(t&61440)===16384},isLink(t){return(t&61440)===40960},isChrdev(t){return(t&61440)===8192},isBlkdev(t){return(t&61440)===24576},isFIFO(t){return(t&61440)===4096},isSocket(t){return(t&49152)===49152},flagsToPermissionString(t){var e=["r","w","rw"][t&3];return t&512&&(e+="w"),e},nodePermissions(t,e){return o.ignorePermissions?0:e.includes("r")&&!(t.mode&292)||e.includes("w")&&!(t.mode&146)||e.includes("x")&&!(t.mode&73)?2:0},mayLookup(t){if(!o.isDir(t.mode))return 54;var e=o.nodePermissions(t,"x");return e||(t.node_ops.lookup?0:2)},mayCreate(t,e){if(!o.isDir(t.mode))return 54;try{var r=o.lookupNode(t,e);return 20}catch{}return o.nodePermissions(t,"wx")},mayDelete(t,e,r){var n;try{n=o.lookupNode(t,e)}catch(p){return p.errno}var u=o.nodePermissions(t,"wx");if(u)return u;if(r){if(!o.isDir(n.mode))return 54;if(o.isRoot(n)||o.getPath(n)===o.cwd())return 10}else if(o.isDir(n.mode))return 31;return 0},mayOpen(t,e){return t?o.isLink(t.mode)?32:o.isDir(t.mode)&&(o.flagsToPermissionString(e)!=="r"||e&576)?31:o.nodePermissions(t,o.flagsToPermissionString(e)):44},checkOpExists(t,e){if(!t)throw new o.ErrnoError(e);return t},MAX_OPEN_FDS:4096,nextfd(){for(var t=0;t<=o.MAX_OPEN_FDS;t++)if(!o.streams[t])return t;throw new o.ErrnoError(33)},getStreamChecked(t){var e=o.getStream(t);if(!e)throw new o.ErrnoError(8);return e},getStream:t=>o.streams[t],createStream(t,e=-1){return t=Object.assign(new o.FSStream,t),e==-1&&(e=o.nextfd()),t.fd=e,o.streams[e]=t,t},closeStream(t){o.streams[t]=null},dupStream(t,e=-1){var r=o.createStream(t,e);return r.stream_ops?.dup?.(r),r},doSetAttr(t,e,r){var n=t?.stream_ops.setattr,u=n?t:e;n??=e.node_ops.setattr,o.checkOpExists(n,63),n(u,r)},chrdev_stream_ops:{open(t){var e=o.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open?.(t)},llseek(){throw new o.ErrnoError(70)}},major:t=>t>>8,minor:t=>t&255,makedev:(t,e)=>t<<8|e,registerDevice(t,e){o.devices[t]={stream_ops:e}},getDevice:t=>o.devices[t],getMounts(t){for(var e=[],r=[t];r.length;){var n=r.pop();e.push(n),r.push(...n.mounts)}return e},syncfs(t,e){typeof t=="function"&&(e=t,t=!1),o.syncFSRequests++,o.syncFSRequests>1&&b(`warning: ${o.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var r=o.getMounts(o.root.mount),n=0;function u(f){return o.syncFSRequests--,e(f)}function p(f){if(f)return p.errored?void 0:(p.errored=!0,u(f));++n>=r.length&&u(null)}r.forEach(f=>{if(!f.type.syncfs)return p(null);f.type.syncfs(f,t,p)})},mount(t,e,r){var n=r==="/",u=!r,p;if(n&&o.root)throw new o.ErrnoError(10);if(!n&&!u){var f=o.lookupPath(r,{follow_mount:!1});if(r=f.path,p=f.node,o.isMountpoint(p))throw new o.ErrnoError(10);if(!o.isDir(p.mode))throw new o.ErrnoError(54)}var g={type:t,opts:e,mountpoint:r,mounts:[]},_=t.mount(g);return _.mount=g,g.root=_,n?o.root=_:p&&(p.mounted=g,p.mount&&p.mount.mounts.push(g)),_},unmount(t){var e=o.lookupPath(t,{follow_mount:!1});if(!o.isMountpoint(e.node))throw new o.ErrnoError(28);var r=e.node,n=r.mounted,u=o.getMounts(n);Object.keys(o.nameTable).forEach(f=>{for(var g=o.nameTable[f];g;){var _=g.name_next;u.includes(g.mount)&&o.destroyNode(g),g=_}}),r.mounted=null;var p=r.mount.mounts.indexOf(n);r.mount.mounts.splice(p,1)},lookup(t,e){return t.node_ops.lookup(t,e)},mknod(t,e,r){var n=o.lookupPath(t,{parent:!0}),u=n.node,p=Z.basename(t);if(!p)throw new o.ErrnoError(28);if(p==="."||p==="..")throw new o.ErrnoError(20);var f=o.mayCreate(u,p);if(f)throw new o.ErrnoError(f);if(!u.node_ops.mknod)throw new o.ErrnoError(63);return u.node_ops.mknod(u,p,e,r)},statfs(t){return o.statfsNode(o.lookupPath(t,{follow:!0}).node)},statfsStream(t){return o.statfsNode(t.node)},statfsNode(t){var e={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:o.nextInode,ffree:o.nextInode-1,fsid:42,flags:2,namelen:255};return t.node_ops.statfs&&Object.assign(e,t.node_ops.statfs(t.mount.opts.root)),e},create(t,e=438){return e&=4095,e|=32768,o.mknod(t,e,0)},mkdir(t,e=511){return e&=1023,e|=16384,o.mknod(t,e,0)},mkdirTree(t,e){var r=t.split("/"),n="";for(var u of r)if(u){(n||Z.isAbs(t))&&(n+="/"),n+=u;try{o.mkdir(n,e)}catch(p){if(p.errno!=20)throw p}}},mkdev(t,e,r){return typeof r>"u"&&(r=e,e=438),e|=8192,o.mknod(t,e,r)},symlink(t,e){if(!st.resolve(t))throw new o.ErrnoError(44);var r=o.lookupPath(e,{parent:!0}),n=r.node;if(!n)throw new o.ErrnoError(44);var u=Z.basename(e),p=o.mayCreate(n,u);if(p)throw new o.ErrnoError(p);if(!n.node_ops.symlink)throw new o.ErrnoError(63);return n.node_ops.symlink(n,u,t)},rename(t,e){var r=Z.dirname(t),n=Z.dirname(e),u=Z.basename(t),p=Z.basename(e),f,g,_;if(f=o.lookupPath(t,{parent:!0}),g=f.node,f=o.lookupPath(e,{parent:!0}),_=f.node,!g||!_)throw new o.ErrnoError(44);if(g.mount!==_.mount)throw new o.ErrnoError(75);var D=o.lookupNode(g,u),N=st.relative(t,n);if(N.charAt(0)!==".")throw new o.ErrnoError(28);if(N=st.relative(e,r),N.charAt(0)!==".")throw new o.ErrnoError(55);var j;try{j=o.lookupNode(_,p)}catch{}if(D!==j){var C=o.isDir(D.mode),R=o.mayDelete(g,u,C);if(R)throw new o.ErrnoError(R);if(R=j?o.mayDelete(_,p,C):o.mayCreate(_,p),R)throw new o.ErrnoError(R);if(!g.node_ops.rename)throw new o.ErrnoError(63);if(o.isMountpoint(D)||j&&o.isMountpoint(j))throw new o.ErrnoError(10);if(_!==g&&(R=o.nodePermissions(g,"w"),R))throw new o.ErrnoError(R);o.hashRemoveNode(D);try{g.node_ops.rename(D,_,p),D.parent=_}catch(Y){throw Y}finally{o.hashAddNode(D)}}},rmdir(t){var e=o.lookupPath(t,{parent:!0}),r=e.node,n=Z.basename(t),u=o.lookupNode(r,n),p=o.mayDelete(r,n,!0);if(p)throw new o.ErrnoError(p);if(!r.node_ops.rmdir)throw new o.ErrnoError(63);if(o.isMountpoint(u))throw new o.ErrnoError(10);r.node_ops.rmdir(r,n),o.destroyNode(u)},readdir(t){var e=o.lookupPath(t,{follow:!0}),r=e.node,n=o.checkOpExists(r.node_ops.readdir,54);return n(r)},unlink(t){var e=o.lookupPath(t,{parent:!0}),r=e.node;if(!r)throw new o.ErrnoError(44);var n=Z.basename(t),u=o.lookupNode(r,n),p=o.mayDelete(r,n,!1);if(p)throw new o.ErrnoError(p);if(!r.node_ops.unlink)throw new o.ErrnoError(63);if(o.isMountpoint(u))throw new o.ErrnoError(10);r.node_ops.unlink(r,n),o.destroyNode(u)},readlink(t){var e=o.lookupPath(t),r=e.node;if(!r)throw new o.ErrnoError(44);if(!r.node_ops.readlink)throw new o.ErrnoError(28);return r.node_ops.readlink(r)},stat(t,e){var r=o.lookupPath(t,{follow:!e}),n=r.node,u=o.checkOpExists(n.node_ops.getattr,63);return u(n)},fstat(t){var e=o.getStreamChecked(t),r=e.node,n=e.stream_ops.getattr,u=n?e:r;return n??=r.node_ops.getattr,o.checkOpExists(n,63),n(u)},lstat(t){return o.stat(t,!0)},doChmod(t,e,r,n){o.doSetAttr(t,e,{mode:r&4095|e.mode&-4096,ctime:Date.now(),dontFollow:n})},chmod(t,e,r){var n;if(typeof t=="string"){var u=o.lookupPath(t,{follow:!r});n=u.node}else n=t;o.doChmod(null,n,e,r)},lchmod(t,e){o.chmod(t,e,!0)},fchmod(t,e){var r=o.getStreamChecked(t);o.doChmod(r,r.node,e,!1)},doChown(t,e,r){o.doSetAttr(t,e,{timestamp:Date.now(),dontFollow:r})},chown(t,e,r,n){var u;if(typeof t=="string"){var p=o.lookupPath(t,{follow:!n});u=p.node}else u=t;o.doChown(null,u,n)},lchown(t,e,r){o.chown(t,e,r,!0)},fchown(t,e,r){var n=o.getStreamChecked(t);o.doChown(n,n.node,!1)},doTruncate(t,e,r){if(o.isDir(e.mode))throw new o.ErrnoError(31);if(!o.isFile(e.mode))throw new o.ErrnoError(28);var n=o.nodePermissions(e,"w");if(n)throw new o.ErrnoError(n);o.doSetAttr(t,e,{size:r,timestamp:Date.now()})},truncate(t,e){if(e<0)throw new o.ErrnoError(28);var r;if(typeof t=="string"){var n=o.lookupPath(t,{follow:!0});r=n.node}else r=t;o.doTruncate(null,r,e)},ftruncate(t,e){var r=o.getStreamChecked(t);if(e<0||(r.flags&2097155)===0)throw new o.ErrnoError(28);o.doTruncate(r,r.node,e)},utime(t,e,r){var n=o.lookupPath(t,{follow:!0}),u=n.node,p=o.checkOpExists(u.node_ops.setattr,63);p(u,{atime:e,mtime:r})},open(t,e,r=438){if(t==="")throw new o.ErrnoError(44);e=typeof e=="string"?hr(e):e,e&64?r=r&4095|32768:r=0;var n,u;if(typeof t=="object")n=t;else{u=t.endsWith("/");var p=o.lookupPath(t,{follow:!(e&131072),noent_okay:!0});n=p.node,t=p.path}var f=!1;if(e&64)if(n){if(e&128)throw new o.ErrnoError(20)}else{if(u)throw new o.ErrnoError(31);n=o.mknod(t,r|511,0),f=!0}if(!n)throw new o.ErrnoError(44);if(o.isChrdev(n.mode)&&(e&=-513),e&65536&&!o.isDir(n.mode))throw new o.ErrnoError(54);if(!f){var g=o.mayOpen(n,e);if(g)throw new o.ErrnoError(g)}e&512&&!f&&o.truncate(n,0),e&=-131713;var _=o.createStream({node:n,path:o.getPath(n),flags:e,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return _.stream_ops.open&&_.stream_ops.open(_),f&&o.chmod(n,r&511),_},close(t){if(o.isClosed(t))throw new o.ErrnoError(8);t.getdents&&(t.getdents=null);try{t.stream_ops.close&&t.stream_ops.close(t)}catch(e){throw e}finally{o.closeStream(t.fd)}t.fd=null},isClosed(t){return t.fd===null},llseek(t,e,r){if(o.isClosed(t))throw new o.ErrnoError(8);if(!t.seekable||!t.stream_ops.llseek)throw new o.ErrnoError(70);if(r!=0&&r!=1&&r!=2)throw new o.ErrnoError(28);return t.position=t.stream_ops.llseek(t,e,r),t.ungotten=[],t.position},read(t,e,r,n,u){if(n<0||u<0)throw new o.ErrnoError(28);if(o.isClosed(t))throw new o.ErrnoError(8);if((t.flags&2097155)===1)throw new o.ErrnoError(8);if(o.isDir(t.node.mode))throw new o.ErrnoError(31);if(!t.stream_ops.read)throw new o.ErrnoError(28);var p=typeof u<"u";if(!p)u=t.position;else if(!t.seekable)throw new o.ErrnoError(70);var f=t.stream_ops.read(t,e,r,n,u);return p||(t.position+=f),f},write(t,e,r,n,u,p){if(n<0||u<0)throw new o.ErrnoError(28);if(o.isClosed(t))throw new o.ErrnoError(8);if((t.flags&2097155)===0)throw new o.ErrnoError(8);if(o.isDir(t.node.mode))throw new o.ErrnoError(31);if(!t.stream_ops.write)throw new o.ErrnoError(28);t.seekable&&t.flags&1024&&o.llseek(t,0,2);var f=typeof u<"u";if(!f)u=t.position;else if(!t.seekable)throw new o.ErrnoError(70);var g=t.stream_ops.write(t,e,r,n,u,p);return f||(t.position+=g),g},mmap(t,e,r,n,u){if((n&2)!==0&&(u&2)===0&&(t.flags&2097155)!==2)throw new o.ErrnoError(2);if((t.flags&2097155)===1)throw new o.ErrnoError(2);if(!t.stream_ops.mmap)throw new o.ErrnoError(43);if(!e)throw new o.ErrnoError(28);return t.stream_ops.mmap(t,e,r,n,u)},msync(t,e,r,n,u){return t.stream_ops.msync?t.stream_ops.msync(t,e,r,n,u):0},ioctl(t,e,r){if(!t.stream_ops.ioctl)throw new o.ErrnoError(59);return t.stream_ops.ioctl(t,e,r)},readFile(t,e={}){if(e.flags=e.flags||0,e.encoding=e.encoding||"binary",e.encoding!=="utf8"&&e.encoding!=="binary")throw new Error(`Invalid encoding type "${e.encoding}"`);var r=o.open(t,e.flags),n=o.stat(t),u=n.size,p=new Uint8Array(u);return o.read(r,p,0,u,0),e.encoding==="utf8"&&(p=Pt(p)),o.close(r),p},writeFile(t,e,r={}){r.flags=r.flags||577;var n=o.open(t,r.flags,r.mode);if(typeof e=="string"&&(e=new Uint8Array(Tt(e,!0))),ArrayBuffer.isView(e))o.write(n,e,0,e.byteLength,void 0,r.canOwn);else throw new Error("Unsupported data type");o.close(n)},cwd:()=>o.currentPath,chdir(t){var e=o.lookupPath(t,{follow:!0});if(e.node===null)throw new o.ErrnoError(44);if(!o.isDir(e.node.mode))throw new o.ErrnoError(54);var r=o.nodePermissions(e.node,"x");if(r)throw new o.ErrnoError(r);o.currentPath=e.path},createDefaultDirectories(){o.mkdir("/tmp"),o.mkdir("/home"),o.mkdir("/home/web_user")},createDefaultDevices(){o.mkdir("/dev"),o.registerDevice(o.makedev(1,3),{read:()=>0,write:(n,u,p,f,g)=>f,llseek:()=>0}),o.mkdev("/dev/null",o.makedev(1,3)),Et.register(o.makedev(5,0),Et.default_tty_ops),Et.register(o.makedev(6,0),Et.default_tty1_ops),o.mkdev("/dev/tty",o.makedev(5,0)),o.mkdev("/dev/tty1",o.makedev(6,0));var t=new Uint8Array(1024),e=0,r=()=>(e===0&&(yt(t),e=t.byteLength),t[--e]);o.createDevice("/dev","random",r),o.createDevice("/dev","urandom",r),o.mkdir("/dev/shm"),o.mkdir("/dev/shm/tmp")},createSpecialDirectories(){o.mkdir("/proc");var t=o.mkdir("/proc/self");o.mkdir("/proc/self/fd"),o.mount({mount(){var e=o.createNode(t,"fd",16895,73);return e.stream_ops={llseek:M.stream_ops.llseek},e.node_ops={lookup(r,n){var u=+n,p=o.getStreamChecked(u),f={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>p.path},id:u+1};return f.parent=f,f},readdir(){return Array.from(o.streams.entries()).filter(([r,n])=>n).map(([r,n])=>r.toString())}},e}},{},"/proc/self/fd")},createStandardStreams(t,e,r){t?o.createDevice("/dev","stdin",t):o.symlink("/dev/tty","/dev/stdin"),e?o.createDevice("/dev","stdout",null,e):o.symlink("/dev/tty","/dev/stdout"),r?o.createDevice("/dev","stderr",null,r):o.symlink("/dev/tty1","/dev/stderr"),o.open("/dev/stdin",0),o.open("/dev/stdout",1),o.open("/dev/stderr",1)},staticInit(){o.nameTable=new Array(4096),o.mount(M,{},"/"),o.createDefaultDirectories(),o.createDefaultDevices(),o.createSpecialDirectories(),o.filesystems={MEMFS:M}},init(t,e,r){o.initialized=!0,o.createStandardStreams(t,e,r)},quit(){o.initialized=!1;for(var t of o.streams)t&&o.close(t)},findObject(t,e){var r=o.analyzePath(t,e);return r.exists?r.object:null},analyzePath(t,e){try{var r=o.lookupPath(t,{follow:!e});t=r.path}catch{}var n={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var r=o.lookupPath(t,{parent:!0});n.parentExists=!0,n.parentPath=r.path,n.parentObject=r.node,n.name=Z.basename(t),r=o.lookupPath(t,{follow:!e}),n.exists=!0,n.path=r.path,n.object=r.node,n.name=r.node.name,n.isRoot=r.path==="/"}catch(u){n.error=u.errno}return n},createPath(t,e,r,n){t=typeof t=="string"?t:o.getPath(t);for(var u=e.split("/").reverse();u.length;){var p=u.pop();if(p){var f=Z.join2(t,p);try{o.mkdir(f)}catch(g){if(g.errno!=20)throw g}t=f}}return f},createFile(t,e,r,n,u){var p=Z.join2(typeof t=="string"?t:o.getPath(t),e),f=oe(n,u);return o.create(p,f)},createDataFile(t,e,r,n,u,p){var f=e;t&&(t=typeof t=="string"?t:o.getPath(t),f=e?Z.join2(t,e):t);var g=oe(n,u),_=o.create(f,g);if(r){if(typeof r=="string"){for(var D=new Array(r.length),N=0,j=r.length;Nthis.length-1||R<0)){var Y=R%this.chunkSize,nt=R/this.chunkSize|0;return this.getter(nt)[Y]}}setDataGetter(R){this.getter=R}cacheLength(){var R=new XMLHttpRequest;if(R.open("HEAD",r,!1),R.send(null),!(R.status>=200&&R.status<300||R.status===304))throw new Error("Couldn't load "+r+". Status: "+R.status);var Y=Number(R.getResponseHeader("Content-length")),nt,ht=(nt=R.getResponseHeader("Accept-Ranges"))&&nt==="bytes",at=(nt=R.getResponseHeader("Content-Encoding"))&&nt==="gzip",pt=1024*1024;ht||(pt=Y);var ft=(gt,Dt)=>{if(gt>Dt)throw new Error("invalid range ("+gt+", "+Dt+") or no bytes requested!");if(Dt>Y-1)throw new Error("only "+Y+" bytes available! programmer error!");var V=new XMLHttpRequest;if(V.open("GET",r,!1),Y!==pt&&V.setRequestHeader("Range","bytes="+gt+"-"+Dt),V.responseType="arraybuffer",V.overrideMimeType&&V.overrideMimeType("text/plain; charset=x-user-defined"),V.send(null),!(V.status>=200&&V.status<300||V.status===304))throw new Error("Couldn't load "+r+". Status: "+V.status);return V.response!==void 0?new Uint8Array(V.response||[]):Tt(V.responseText||"",!0)},zt=this;zt.setDataGetter(gt=>{var Dt=gt*pt,V=(gt+1)*pt-1;if(V=Math.min(V,Y-1),typeof zt.chunks[gt]>"u"&&(zt.chunks[gt]=ft(Dt,V)),typeof zt.chunks[gt]>"u")throw new Error("doXHR failed!");return zt.chunks[gt]}),(at||!Y)&&(pt=Y=1,Y=this.getter(0).length,pt=Y,w("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Y,this._chunkSize=pt,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if(typeof XMLHttpRequest<"u"){throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var f,g}else var g={isDevice:!1,url:r};var _=o.createFile(t,e,g,n,u);g.contents?_.contents=g.contents:g.url&&(_.contents=null,_.url=g.url),Object.defineProperties(_,{usedBytes:{get:function(){return this.contents.length}}});var D={},N=Object.keys(_.stream_ops);N.forEach(C=>{var R=_.stream_ops[C];D[C]=(...Y)=>(o.forceLoadFile(_),R(...Y))});function j(C,R,Y,nt,ht){var at=C.node.contents;if(ht>=at.length)return 0;var pt=Math.min(at.length-ht,nt);if(at.slice)for(var ft=0;ft(o.forceLoadFile(_),j(C,R,Y,nt,ht)),D.mmap=(C,R,Y,nt,ht)=>{o.forceLoadFile(_);var at=Le(R);if(!at)throw new o.ErrnoError(48);return j(C,F,at,R,Y),{ptr:at,allocated:!0}},_.stream_ops=D,_}},ut=(t,e,r)=>t?Pt(I,t,e,r):"",J={DEFAULT_POLLMASK:5,calculateAt(t,e,r){if(Z.isAbs(e))return e;var n;if(t===-100)n=o.cwd();else{var u=J.getStreamFromFD(t);n=u.path}if(e.length==0){if(!r)throw new o.ErrnoError(44);return n}return n+"/"+e},writeStat(t,e){E[t>>2]=e.dev,E[t+4>>2]=e.mode,G[t+8>>2]=e.nlink,E[t+12>>2]=e.uid,E[t+16>>2]=e.gid,E[t+20>>2]=e.rdev,k=[e.size>>>0,(L=e.size,+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[t+24>>2]=k[0],E[t+28>>2]=k[1],E[t+32>>2]=4096,E[t+36>>2]=e.blocks;var r=e.atime.getTime(),n=e.mtime.getTime(),u=e.ctime.getTime();return k=[Math.floor(r/1e3)>>>0,(L=Math.floor(r/1e3),+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[t+40>>2]=k[0],E[t+44>>2]=k[1],G[t+48>>2]=r%1e3*1e3*1e3,k=[Math.floor(n/1e3)>>>0,(L=Math.floor(n/1e3),+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[t+56>>2]=k[0],E[t+60>>2]=k[1],G[t+64>>2]=n%1e3*1e3*1e3,k=[Math.floor(u/1e3)>>>0,(L=Math.floor(u/1e3),+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[t+72>>2]=k[0],E[t+76>>2]=k[1],G[t+80>>2]=u%1e3*1e3*1e3,k=[e.ino>>>0,(L=e.ino,+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[t+88>>2]=k[0],E[t+92>>2]=k[1],0},writeStatFs(t,e){E[t+4>>2]=e.bsize,E[t+60>>2]=e.bsize,k=[e.blocks>>>0,(L=e.blocks,+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[t+8>>2]=k[0],E[t+12>>2]=k[1],k=[e.bfree>>>0,(L=e.bfree,+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[t+16>>2]=k[0],E[t+20>>2]=k[1],k=[e.bavail>>>0,(L=e.bavail,+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[t+24>>2]=k[0],E[t+28>>2]=k[1],k=[e.files>>>0,(L=e.files,+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[t+32>>2]=k[0],E[t+36>>2]=k[1],k=[e.ffree>>>0,(L=e.ffree,+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[t+40>>2]=k[0],E[t+44>>2]=k[1],E[t+48>>2]=e.fsid,E[t+64>>2]=e.flags,E[t+56>>2]=e.namelen},doMsync(t,e,r,n,u){if(!o.isFile(e.node.mode))throw new o.ErrnoError(43);if(n&2)return 0;var p=I.slice(t,t+r);o.msync(e,p,u,r,n)},getStreamFromFD(t){var e=o.getStreamChecked(t);return e},varargs:void 0,getStr(t){var e=ut(t);return e}};function pr(t,e,r,n){try{if(e=J.getStr(e),e=J.calculateAt(t,e),r&-8)return-28;var u=o.lookupPath(e,{follow:!0}),p=u.node;if(!p)return-44;var f="";return r&4&&(f+="r"),r&2&&(f+="w"),r&1&&(f+="x"),f&&o.nodePermissions(p,f)?-2:0}catch(g){if(typeof o>"u"||g.name!=="ErrnoError")throw g;return-g.errno}}var Qt=()=>{var t=E[+J.varargs>>2];return J.varargs+=4,t},St=Qt;function fr(t,e,r){J.varargs=r;try{var n=J.getStreamFromFD(t);switch(e){case 0:{var u=Qt();if(u<0)return-28;for(;o.streams[u];)u++;var p;return p=o.dupStream(n,u),p.fd}case 1:case 2:return 0;case 3:return n.flags;case 4:{var u=Qt();return n.flags|=u,0}case 12:{var u=St(),f=0;return U[u+f>>1]=2,0}case 13:case 14:return 0}return-28}catch(g){if(typeof o>"u"||g.name!=="ErrnoError")throw g;return-g.errno}}function dr(t,e){try{return J.writeStat(e,o.fstat(t))}catch(r){if(typeof o>"u"||r.name!=="ErrnoError")throw r;return-r.errno}}function gr(t,e,r){J.varargs=r;try{var n=J.getStreamFromFD(t);switch(e){case 21509:return n.tty?0:-59;case 21505:{if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var u=n.tty.ops.ioctl_tcgets(n),p=St();E[p>>2]=u.c_iflag||0,E[p+4>>2]=u.c_oflag||0,E[p+8>>2]=u.c_cflag||0,E[p+12>>2]=u.c_lflag||0;for(var f=0;f<32;f++)F[p+f+17]=u.c_cc[f]||0;return 0}return 0}case 21510:case 21511:case 21512:return n.tty?0:-59;case 21506:case 21507:case 21508:{if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){for(var p=St(),g=E[p>>2],_=E[p+4>>2],D=E[p+8>>2],N=E[p+12>>2],j=[],f=0;f<32;f++)j.push(F[p+f+17]);return n.tty.ops.ioctl_tcsets(n.tty,e,{c_iflag:g,c_oflag:_,c_cflag:D,c_lflag:N,c_cc:j})}return 0}case 21519:{if(!n.tty)return-59;var p=St();return E[p>>2]=0,0}case 21520:return n.tty?-28:-59;case 21537:case 21531:{var p=St();return o.ioctl(n,e,p)}case 21523:{if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var C=n.tty.ops.ioctl_tiocgwinsz(n.tty),p=St();U[p>>1]=C[0],U[p+2>>1]=C[1]}return 0}case 21524:return n.tty?0:-59;case 21515:return n.tty?0:-59;default:return-28}}catch(R){if(typeof o>"u"||R.name!=="ErrnoError")throw R;return-R.errno}}function vr(t,e,r,n){try{e=J.getStr(e);var u=n&256,p=n&4096;return n=n&-6401,e=J.calculateAt(t,e,p),J.writeStat(r,u?o.lstat(e):o.stat(e))}catch(f){if(typeof o>"u"||f.name!=="ErrnoError")throw f;return-f.errno}}function mr(t,e,r,n){J.varargs=n;try{e=J.getStr(e),e=J.calculateAt(t,e);var u=n?Qt():0;return o.open(e,r,u).fd}catch(p){if(typeof o>"u"||p.name!=="ErrnoError")throw p;return-p.errno}}var Rt=(t,e,r)=>_e(t,I,e,r);function wr(t,e,r,n){try{if(e=J.getStr(e),e=J.calculateAt(t,e),n<=0)return-28;var u=o.readlink(e),p=Math.min(n,ee(u)),f=F[r+p];return Rt(u,r,n+1),F[r+p]=f,p}catch(g){if(typeof o>"u"||g.name!=="ErrnoError")throw g;return-g.errno}}function yr(t){try{return t=J.getStr(t),o.rmdir(t),0}catch(e){if(typeof o>"u"||e.name!=="ErrnoError")throw e;return-e.errno}}function br(t,e,r){try{if(e=J.getStr(e),e=J.calculateAt(t,e),!r)o.unlink(e);else if(r===512)o.rmdir(e);else return-28;return 0}catch(n){if(typeof o>"u"||n.name!=="ErrnoError")throw n;return-n.errno}}var xr=()=>et(""),Er=t=>t%4===0&&(t%100!==0||t%400===0),_r=[0,31,60,91,121,152,182,213,244,274,305,335],Lr=[0,31,59,90,120,151,181,212,243,273,304,334],Fr=t=>{var e=Er(t.getFullYear()),r=e?_r:Lr,n=r[t.getMonth()]+t.getDate()-1;return n},qt=(t,e)=>e+2097152>>>0<4194305-!!t?(t>>>0)+e*4294967296:NaN;function Xr(t,e,r){var n=qt(t,e),u=new Date(n*1e3);E[r>>2]=u.getSeconds(),E[r+4>>2]=u.getMinutes(),E[r+8>>2]=u.getHours(),E[r+12>>2]=u.getDate(),E[r+16>>2]=u.getMonth(),E[r+20>>2]=u.getFullYear()-1900,E[r+24>>2]=u.getDay();var p=Fr(u)|0;E[r+28>>2]=p,E[r+36>>2]=-(u.getTimezoneOffset()*60);var f=new Date(u.getFullYear(),0,1),g=new Date(u.getFullYear(),6,1).getTimezoneOffset(),_=f.getTimezoneOffset(),D=(g!=_&&u.getTimezoneOffset()==Math.min(_,g))|0;E[r+32>>2]=D}function Or(t,e,r,n,u,p,f,g){var _=qt(u,p);try{var D=J.getStreamFromFD(n),N=o.mmap(D,t,_,e,r),j=N.ptr;return E[f>>2]=N.allocated,G[g>>2]=j,0}catch(C){if(typeof o>"u"||C.name!=="ErrnoError")throw C;return-C.errno}}function Pr(t,e,r,n,u,p,f){var g=qt(p,f);try{var _=J.getStreamFromFD(u);r&2&&J.doMsync(t,_,e,n,g)}catch(D){if(typeof o>"u"||D.name!=="ErrnoError")throw D;return-D.errno}}var Sr=(t,e,r,n)=>{var u=new Date().getFullYear(),p=new Date(u,0,1),f=new Date(u,6,1),g=p.getTimezoneOffset(),_=f.getTimezoneOffset(),D=Math.max(g,_);G[t>>2]=D*60,E[e>>2]=+(g!=_);var N=R=>{var Y=R>=0?"-":"+",nt=Math.abs(R),ht=String(Math.floor(nt/60)).padStart(2,"0"),at=String(nt%60).padStart(2,"0");return`UTC${Y}${ht}${at}`},j=N(g),C=N(_);_performance.now(),Fe=()=>Date.now(),Dr=t=>t>=0&&t<=3;function Mr(t,e,r,n){if(!Dr(t))return 28;var u;t===0?u=Fe():u=Rr();var p=Math.round(u*1e3*1e3);return k=[p>>>0,(L=p,+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[n>>2]=k[0],E[n+4>>2]=k[1],0}var ne=[],Br=(t,e)=>{ne.length=0;for(var r;r=I[t++];){var n=r!=105;n&=r!=112,e+=n&&e%8?4:0,ne.push(r==112?G[e>>2]:r==105?E[e>>2]:T[e>>3]),e+=n?8:4}return ne},Ir=(t,e,r)=>{var n=Br(e,r);return Vr[t](...n)},kr=(t,e,r)=>Ir(t,e,r),zr=()=>2147483648,Cr=t=>{var e=y.buffer.byteLength,r=(t-e+65535)/65536|0;try{return y.grow(r),$(),1}catch{}},Zr=t=>{var e=I.length;t>>>=0;var r=zr();if(t>r)return!1;for(var n=1;n<=4;n*=2){var u=e*(1+.2/n);u=Math.min(u,t+100663296);var p=Math.min(r,re(Math.max(t,u),65536)),f=Cr(p);if(f)return!0}return!1},ie={},Ur=()=>s,It=()=>{if(!It.strings){var t=(typeof navigator=="object"&&navigator.language||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:t,_:Ur()};for(var r in ie)ie[r]===void 0?delete e[r]:e[r]=ie[r];var n=[];for(var r in e)n.push(`${r}=${e[r]}`);It.strings=n}return It.strings},Hr=(t,e)=>{var r=0,n=0;for(var u of It()){var p=e+r;G[t+n>>2]=p,r+=Rt(u,p,1/0)+1,n+=4}return 0},Gr=(t,e)=>{var r=It();G[t>>2]=r.length;var n=0;for(var u of r)n+=ee(u)+1;return G[e>>2]=n,0},Nr=t=>{h(t,new Yt(t))},Yr=(t,e)=>{Nr(t)},Wr=Yr;function jr(t){try{var e=J.getStreamFromFD(t);return o.close(e),0}catch(r){if(typeof o>"u"||r.name!=="ErrnoError")throw r;return r.errno}}var Jr=(t,e,r,n)=>{for(var u=0,p=0;p>2],g=G[e+4>>2];e+=8;var _=o.read(t,F,f,g,n);if(_<0)return-1;if(u+=_,_>2]=p,0}catch(f){if(typeof o>"u"||f.name!=="ErrnoError")throw f;return f.errno}}function Qr(t,e,r,n,u){var p=qt(e,r);try{if(isNaN(p))return 61;var f=J.getStreamFromFD(t);return o.llseek(f,p,n),k=[f.position>>>0,(L=f.position,+Math.abs(L)>=1?L>0?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],E[u>>2]=k[0],E[u+4>>2]=k[1],f.getdents&&p===0&&n===0&&(f.getdents=null),0}catch(g){if(typeof o>"u"||g.name!=="ErrnoError")throw g;return g.errno}}var qr=(t,e,r,n)=>{for(var u=0,p=0;p>2],g=G[e+4>>2];e+=8;var _=o.write(t,F,f,g,n);if(_<0)return-1;if(u+=_,_>2]=p,0}catch(f){if(typeof o>"u"||f.name!=="ErrnoError")throw f;return f.errno}}var $r=[];o.createPreloadedFile=cr,o.staticInit(),i.wasmBinary&&(X=i.wasmBinary),i.UTF8ToString=ut;var Vr={174040:(t,e)=>{var r=ut(t),n=ut(e);o.createPath("/",Z.dirname(r)),o.writeFile(Z.join("/",r),n)}},Xe,Oe,Pe,Se,Re,De,Me,Be,Ie,ke,ze,Ce,Ze,Ue,He,Ge,Ne,Ye,We,je,Je;function Ar(t){i._webidl_free=t.C,i._free=t.D,i._webidl_malloc=t.E,i._malloc=t.F,i._emscripten_bind_VoidPtr___destroy___0=Xe=t.G,i._emscripten_bind_Graphviz_Graphviz_2=Oe=t.H,i._emscripten_bind_Graphviz_version_0=Pe=t.I,i._emscripten_bind_Graphviz_lastError_0=Se=t.J,i._emscripten_bind_Graphviz_createFile_2=Re=t.K,i._emscripten_bind_Graphviz_layout_3=De=t.L,i._emscripten_bind_Graphviz_acyclic_3=Me=t.M,i._emscripten_bind_Graphviz_tred_3=Be=t.N,i._emscripten_bind_Graphviz_unflatten_4=Ie=t.O,i._emscripten_bind_Graphviz_get_layout_result_0=ke=t.P,i._emscripten_bind_Graphviz_set_layout_result_1=ze=t.Q,i._emscripten_bind_Graphviz_get_acyclic_outFile_0=Ce=t.R,i._emscripten_bind_Graphviz_set_acyclic_outFile_1=Ze=t.S,i._emscripten_bind_Graphviz_get_acyclic_num_rev_0=Ue=t.T,i._emscripten_bind_Graphviz_set_acyclic_num_rev_1=He=t.U,i._emscripten_bind_Graphviz_get_tred_out_0=Ge=t.V,i._emscripten_bind_Graphviz_set_tred_out_1=Ne=t.W,i._emscripten_bind_Graphviz_get_tred_err_0=Ye=t.X,i._emscripten_bind_Graphviz_set_tred_err_1=We=t.Y,i._emscripten_bind_Graphviz___destroy___0=je=t.Z,Je=t._,t.dynCall_jiji,t.dynCall_viijii,t.dynCall_iiiiij,t.dynCall_iiiiijj,t.dynCall_iiiiiijj,t.dynCall_viij,t.dynCall_iiij}var to={a:xt,i:pr,e:fr,y:dr,k:gr,x:vr,g:mr,r:wr,s:yr,t:br,j:xr,o:Xr,m:Or,n:Pr,u:Sr,l:Mr,z:kr,h:Fe,q:Zr,v:Hr,w:Gr,f:Wr,b:jr,d:Tr,p:Qr,c:Kr},kt=await Nt();function ae(){if(A>0){q=ae;return}if(A>0){q=ae;return}function t(){i.calledRun=!0,!c&&(rt(),S?.(i))}t()}ae();function lt(){}lt.prototype=Object.create(lt.prototype),lt.prototype.constructor=lt,lt.prototype.__class__=lt,lt.__cache__={},i.WrapperObject=lt;function Kt(t){return(t||lt).__cache__}i.getCache=Kt;function se(t,e){var r=Kt(e),n=r[t];return n||(n=Object.create((e||lt).prototype),n.ptr=t,r[t]=n)}i.wrapPointer=se;function eo(t,e){return se(t.ptr,e)}i.castObject=eo,i.NULL=se(0);function ro(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete Kt(t.__class__)[t.ptr]}i.destroy=ro;function oo(t,e){return t.ptr===e.ptr}i.compare=oo;function no(t){return t.ptr}i.getPointer=no;function io(t){return t.__class__}i.getClass=io;var H={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(H.needed){for(var t=0;t=H.size?(v(n>0),H.needed+=n,u=i._webidl_malloc(n),H.temps.push(u)):(u=H.buffer+H.pos,H.pos+=n),u},copy(t,e,r){r/=e.BYTES_PER_ELEMENT;for(var n=0;n{S=t,P=e}),a}var tn=Ao,en='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#$%&()*+,./:;<=>?@[]^_`{|}~"';function rn(l){let a=l.length,i=[],s=0,h=0,d=-1;for(let m=0;m88?13:14;do i.push(s&255),s>>=8,h-=8;while(h>7);d=-1}}return d>-1&&i.push((s|d<"sfx-wrapper nop"})),Ht}function an(){Ht&&(Ht=void 0)}function sn(l){return{path:l.path,data:` - -`}}function un(l){return l.map(sn)}function ln(l,a){let i={images:[],files:[],...a};[...i.files,...un(i.images)].forEach(s=>l.createFile(s.path,s.data))}var cn=class Mt{constructor(a){this._module=a}static load(){return nn().then(a=>new Mt(a))}static unload(){an()}version(){return this._module.Graphviz.prototype.version()}layout(a,i="svg",s="dot",h){if(!a)return"";let d=new this._module.Graphviz(h?.yInvert?1:0,h?.nop?h?.nop:0),m="",w="";try{ln(d,h);try{m=d.layout(a,i,s)}catch(b){w=b.message}w=d.lastError()||w}finally{this._module.destroy(d)}if(!m&&w)throw Mt.unload(),new Error(w);return m}acyclic(a,i=!1,s=!1){if(!a)return{acyclic:!1,num_rev:0,outFile:""};let h=new this._module.Graphviz,d=!1,m=0,w="",b="";try{try{d=h.acyclic(a,i,s),m=h.acyclic_num_rev,w=h.acyclic_outFile}catch(X){b=X.message}b=h.lastError()||b}finally{this._module.destroy(h)}if(b)throw Mt.unload(),new Error(b);return{acyclic:d,num_rev:m,outFile:w}}tred(a,i=!1,s=!1){if(!a)return{out:"",err:""};let h=new this._module.Graphviz,d="",m="",w="";try{try{h.tred(a,i,s),d=h.tred_out,m=h.tred_err}catch(b){w=b.message}w=h.lastError()||w}finally{this._module.destroy(h)}if(!d&&w)throw Mt.unload(),new Error(w);return{out:d,err:m}}unflatten(a,i=0,s=!1,h=0){if(!a)return"";let d=new this._module.Graphviz,m="",w="";try{try{m=d.unflatten(a,i,s,h)}catch(b){w=b.message}w=d.lastError()||w}finally{this._module.destroy(d)}if(!m&&w)throw Mt.unload(),new Error(w);return m}circo(a,i="svg",s){return this.layout(a,i,"circo",s)}dot(a,i="svg",s){return this.layout(a,i,"dot",s)}fdp(a,i="svg",s){return this.layout(a,i,"fdp",s)}sfdp(a,i="svg",s){return this.layout(a,i,"sfdp",s)}neato(a,i="svg",s){return this.layout(a,i,"neato",s)}osage(a,i="svg",s){return this.layout(a,i,"osage",s)}patchwork(a,i="svg",s){return this.layout(a,i,"patchwork",s)}twopi(a,i="svg",s){return this.layout(a,i,"twopi",s)}nop(a){return this.layout(a,"dot","nop")}nop2(a){return this.layout(a,"dot","nop2")}},de,qe;function hn(){return qe||(qe=1,de=function(){var l="",a,i,s,h=[],d={passive:!0},m={passive:!1};window.addEventListener?(a="addEventListener",i="removeEventListener"):(a="attachEvent",i="detachEvent",l="on"),s="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";function w(P,y){var F=function(I){!I&&(I=window.event);var U={originalEvent:I,target:I.target||I.srcElement,type:"wheel",deltaMode:I.type=="MozMousePixelScroll"?0:1,deltaX:0,delatZ:0,preventDefault:function(){I.preventDefault?I.preventDefault():I.returnValue=!1}};return s=="mousewheel"?(U.deltaY=-.025*I.wheelDelta,I.wheelDeltaX&&(U.deltaX=-.025*I.wheelDeltaX)):U.deltaY=I.detail,y(U)};return h.push({element:P,fn:F}),F}function b(P){for(var y=0;yi?(clearTimeout(b),b=null,X=v,w=a.apply(d,m),b||(d=m=null)):!b&&s.trailing!==!1&&(b=setTimeout(c,x)),w}},createRequestAnimationFrame:function(a){var i=null;return a!=="auto"&&a<60&&a>1&&(i=Math.floor(1e3/a)),i===null?window.requestAnimationFrame||l(33):l(i)}};function l(a){return function(i){window.setTimeout(i,a)}}return ge}var Ct,$e;function Ee(){if($e)return Ct;$e=1;var l=xe(),a="unknown";return document.documentMode&&(a="ie"),Ct={svgNS:"http://www.w3.org/2000/svg",xmlNS:"http://www.w3.org/XML/1998/namespace",xmlnsNS:"http://www.w3.org/2000/xmlns/",xlinkNS:"http://www.w3.org/1999/xlink",evNS:"http://www.w3.org/2001/xml-events",getBoundingClientRectNormalized:function(i){if(i.clientWidth&&i.clientHeight)return{width:i.clientWidth,height:i.clientHeight};if(i.getBoundingClientRect())return i.getBoundingClientRect();throw new Error("Cannot get BoundingClientRect for SVG.")},getOrCreateViewport:function(i,s){var h=null;if(l.isElement(s)?h=s:h=i.querySelector(s),!h){var d=Array.prototype.slice.call(i.childNodes||i.children).filter(function(c){return c.nodeName!=="defs"&&c.nodeName!=="#text"});d.length===1&&d[0].nodeName==="g"&&d[0].getAttribute("transform")===null&&(h=d[0])}if(!h){var m="viewport-"+new Date().toISOString().replace(/\D/g,"");h=document.createElementNS(this.svgNS,"g"),h.setAttribute("id",m);var w=i.childNodes||i.children;if(w&&w.length>0)for(var b=w.length;b>0;b--)w[w.length-b].nodeName!=="defs"&&h.appendChild(w[w.length-b]);i.appendChild(h)}var X=[];return h.getAttribute("class")&&(X=h.getAttribute("class").split(" ")),~X.indexOf("svg-pan-zoom_viewport")||(X.push("svg-pan-zoom_viewport"),h.setAttribute("class",X.join(" "))),h},setupSvgAttributes:function(i){if(i.setAttribute("xmlns",this.svgNS),i.setAttributeNS(this.xmlnsNS,"xmlns:xlink",this.xlinkNS),i.setAttributeNS(this.xmlnsNS,"xmlns:ev",this.evNS),i.parentNode!==null){var s=i.getAttribute("style")||"";s.toLowerCase().indexOf("overflow")===-1&&i.setAttribute("style","overflow: hidden; "+s)}},internetExplorerRedisplayInterval:300,refreshDefsGlobal:l.throttle(function(){for(var i=document.querySelectorAll("defs"),s=i.length,h=0;h=0;S--)this.eventListeners.hasOwnProperty(x[S])&&delete this.eventListeners[x[S]]}for(var P in this.eventListeners)(this.options.eventsListenerElement||this.svg).addEventListener(P,this.eventListeners[P],this.options.preventMouseEventsDefault?!1:w);this.options.mouseWheelZoomEnabled&&(this.options.mouseWheelZoomEnabled=!1,this.enableMouseWheelZoom())},d.prototype.enableMouseWheelZoom=function(){if(!this.options.mouseWheelZoomEnabled){var c=this;this.wheelListener=function(x){return c.handleMouseWheel(x)};var v=!this.options.preventMouseEventsDefault;l.on(this.options.eventsListenerElement||this.svg,this.wheelListener,v),this.options.mouseWheelZoomEnabled=!0}},d.prototype.disableMouseWheelZoom=function(){if(this.options.mouseWheelZoomEnabled){var c=!this.options.preventMouseEventsDefault;l.off(this.options.eventsListenerElement||this.svg,this.wheelListener,c),this.options.mouseWheelZoomEnabled=!1}},d.prototype.handleMouseWheel=function(c){if(!(!this.options.zoomEnabled||this.state!=="none")){this.options.preventMouseEventsDefault&&(c.preventDefault?c.preventDefault():c.returnValue=!1);var v=c.deltaY||1,x=Date.now()-this.lastMouseWheelEventTime,S=3+Math.max(0,30-x);this.lastMouseWheelEventTime=Date.now(),"deltaMode"in c&&c.deltaMode===0&&c.wheelDelta&&(v=c.deltaY===0?0:Math.abs(c.wheelDelta)/c.deltaY),v=-.30?1:-1)*Math.log(Math.abs(v)+10)/S;var P=this.svg.getScreenCTM().inverse(),y=s.getEventPoint(c,this.svg).matrixTransform(P),F=Math.pow(1+this.options.zoomScaleSensitivity,-1*v);this.zoomAtPoint(F,y)}},d.prototype.zoomAtPoint=function(c,v,x){var S=this.viewport.getOriginalState();x?(c=Math.max(this.options.minZoom*S.zoom,Math.min(this.options.maxZoom*S.zoom,c)),c=c/this.getZoom()):this.getZoom()*cthis.options.maxZoom*S.zoom&&(c=this.options.maxZoom*S.zoom/this.getZoom());var P=this.viewport.getCTM(),y=v.matrixTransform(P.inverse()),F=this.svg.createSVGMatrix().translate(y.x,y.y).scale(c).translate(-y.x,-y.y),I=P.multiply(F);I.a!==P.a&&this.viewport.setCTM(I)},d.prototype.zoom=function(c,v){this.zoomAtPoint(c,s.getSvgCenterPoint(this.svg,this.width,this.height),v)},d.prototype.publicZoom=function(c,v){v&&(c=this.computeFromRelativeZoom(c)),this.zoom(c,v)},d.prototype.publicZoomAtPoint=function(c,v,x){if(x&&(c=this.computeFromRelativeZoom(c)),i.getType(v)!=="SVGPoint")if("x"in v&&"y"in v)v=s.createSVGPoint(this.svg,v.x,v.y);else throw new Error("Given point is invalid");this.zoomAtPoint(c,v,x)},d.prototype.getZoom=function(){return this.viewport.getZoom()},d.prototype.getRelativeZoom=function(){return this.viewport.getRelativeZoom()},d.prototype.computeFromRelativeZoom=function(c){return c*this.viewport.getOriginalState().zoom},d.prototype.resetZoom=function(){var c=this.viewport.getOriginalState();this.zoom(c.zoom,!0)},d.prototype.resetPan=function(){this.pan(this.viewport.getOriginalState())},d.prototype.reset=function(){this.resetZoom(),this.resetPan()},d.prototype.handleDblClick=function(c){if(this.options.preventMouseEventsDefault&&(c.preventDefault?c.preventDefault():c.returnValue=!1),this.options.controlIconsEnabled){var v=c.target.getAttribute("class")||"";if(v.indexOf("svg-pan-zoom-control")>-1)return!1}var x;c.shiftKey?x=1/((1+this.options.zoomScaleSensitivity)*2):x=(1+this.options.zoomScaleSensitivity)*2;var S=s.getEventPoint(c,this.svg).matrixTransform(this.svg.getScreenCTM().inverse());this.zoomAtPoint(x,S)},d.prototype.handleMouseDown=function(c,v){this.options.preventMouseEventsDefault&&(c.preventDefault?c.preventDefault():c.returnValue=!1),i.mouseAndTouchNormalize(c,this.svg),this.options.dblClickZoomEnabled&&i.isDblClick(c,v)?this.handleDblClick(c):(this.state="pan",this.firstEventCTM=this.viewport.getCTM(),this.stateOrigin=s.getEventPoint(c,this.svg).matrixTransform(this.firstEventCTM.inverse()))},d.prototype.handleMouseMove=function(c){if(this.options.preventMouseEventsDefault&&(c.preventDefault?c.preventDefault():c.returnValue=!1),this.state==="pan"&&this.options.panEnabled){var v=s.getEventPoint(c,this.svg).matrixTransform(this.firstEventCTM.inverse()),x=this.firstEventCTM.translate(v.x-this.stateOrigin.x,v.y-this.stateOrigin.y);this.viewport.setCTM(x)}},d.prototype.handleMouseUp=function(c){this.options.preventMouseEventsDefault&&(c.preventDefault?c.preventDefault():c.returnValue=!1),this.state==="pan"&&(this.state="none")},d.prototype.fit=function(){var c=this.viewport.getViewBox(),v=Math.min(this.width/c.width,this.height/c.height);this.zoom(v,!0)},d.prototype.contain=function(){var c=this.viewport.getViewBox(),v=Math.max(this.width/c.width,this.height/c.height);this.zoom(v,!0)},d.prototype.center=function(){var c=this.viewport.getViewBox(),v=(this.width-(c.width+c.x*2)*this.getZoom())*.5,x=(this.height-(c.height+c.y*2)*this.getZoom())*.5;this.getPublicInstance().pan({x:v,y:x})},d.prototype.updateBBox=function(){this.viewport.simpleViewBoxCache()},d.prototype.pan=function(c){var v=this.viewport.getCTM();v.e=c.x,v.f=c.y,this.viewport.setCTM(v)},d.prototype.panBy=function(c){var v=this.viewport.getCTM();v.e+=c.x,v.f+=c.y,this.viewport.setCTM(v)},d.prototype.getPan=function(){var c=this.viewport.getState();return{x:c.x,y:c.y}},d.prototype.resize=function(){var c=s.getBoundingClientRectNormalized(this.svg);this.width=c.width,this.height=c.height;var v=this.viewport;v.options.width=this.width,v.options.height=this.height,v.processCTM(),this.options.controlIconsEnabled&&(this.getPublicInstance().disableControlIcons(),this.getPublicInstance().enableControlIcons())},d.prototype.destroy=function(){var c=this;this.beforeZoom=null,this.onZoom=null,this.beforePan=null,this.onPan=null,this.onUpdatedCTM=null,this.options.customEventsHandler!=null&&this.options.customEventsHandler.destroy({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()});for(var v in this.eventListeners)(this.options.eventsListenerElement||this.svg).removeEventListener(v,this.eventListeners[v],this.options.preventMouseEventsDefault?!1:w);this.disableMouseWheelZoom(),this.getPublicInstance().disableControlIcons(),this.reset(),b=b.filter(function(x){return x.svg!==c.svg}),delete this.options,delete this.viewport,delete this.publicInstance,delete this.pi,this.getPublicInstance=function(){return null}},d.prototype.getPublicInstance=function(){var c=this;return this.publicInstance||(this.publicInstance=this.pi={enablePan:function(){return c.options.panEnabled=!0,c.pi},disablePan:function(){return c.options.panEnabled=!1,c.pi},isPanEnabled:function(){return!!c.options.panEnabled},pan:function(v){return c.pan(v),c.pi},panBy:function(v){return c.panBy(v),c.pi},getPan:function(){return c.getPan()},setBeforePan:function(v){return c.options.beforePan=v===null?null:i.proxy(v,c.publicInstance),c.pi},setOnPan:function(v){return c.options.onPan=v===null?null:i.proxy(v,c.publicInstance),c.pi},enableZoom:function(){return c.options.zoomEnabled=!0,c.pi},disableZoom:function(){return c.options.zoomEnabled=!1,c.pi},isZoomEnabled:function(){return!!c.options.zoomEnabled},enableControlIcons:function(){return c.options.controlIconsEnabled||(c.options.controlIconsEnabled=!0,a.enable(c)),c.pi},disableControlIcons:function(){return c.options.controlIconsEnabled&&(c.options.controlIconsEnabled=!1,a.disable(c)),c.pi},isControlIconsEnabled:function(){return!!c.options.controlIconsEnabled},enableDblClickZoom:function(){return c.options.dblClickZoomEnabled=!0,c.pi},disableDblClickZoom:function(){return c.options.dblClickZoomEnabled=!1,c.pi},isDblClickZoomEnabled:function(){return!!c.options.dblClickZoomEnabled},enableMouseWheelZoom:function(){return c.enableMouseWheelZoom(),c.pi},disableMouseWheelZoom:function(){return c.disableMouseWheelZoom(),c.pi},isMouseWheelZoomEnabled:function(){return!!c.options.mouseWheelZoomEnabled},setZoomScaleSensitivity:function(v){return c.options.zoomScaleSensitivity=v,c.pi},setMinZoom:function(v){return c.options.minZoom=v,c.pi},setMaxZoom:function(v){return c.options.maxZoom=v,c.pi},setBeforeZoom:function(v){return c.options.beforeZoom=v===null?null:i.proxy(v,c.publicInstance),c.pi},setOnZoom:function(v){return c.options.onZoom=v===null?null:i.proxy(v,c.publicInstance),c.pi},zoom:function(v){return c.publicZoom(v,!0),c.pi},zoomBy:function(v){return c.publicZoom(v,!1),c.pi},zoomAtPoint:function(v,x){return c.publicZoomAtPoint(v,x,!0),c.pi},zoomAtPointBy:function(v,x){return c.publicZoomAtPoint(v,x,!1),c.pi},zoomIn:function(){return this.zoomBy(1+c.options.zoomScaleSensitivity),c.pi},zoomOut:function(){return this.zoomBy(1/(1+c.options.zoomScaleSensitivity)),c.pi},getZoom:function(){return c.getRelativeZoom()},setOnUpdatedCTM:function(v){return c.options.onUpdatedCTM=v===null?null:i.proxy(v,c.publicInstance),c.pi},resetZoom:function(){return c.resetZoom(),c.pi},resetPan:function(){return c.resetPan(),c.pi},reset:function(){return c.reset(),c.pi},fit:function(){return c.fit(),c.pi},contain:function(){return c.contain(),c.pi},center:function(){return c.center(),c.pi},updateBBox:function(){return c.updateBBox(),c.pi},resize:function(){return c.resize(),c.pi},getSizes:function(){return{width:c.width,height:c.height,realZoom:c.getZoom(),viewBox:c.viewport.getViewBox()}},destroy:function(){return c.destroy(),c.pi}}),this.publicInstance};var b=[],X=function(c,v){var x=i.getSvg(c);if(x===null)return null;for(var S=b.length-1;S>=0;S--)if(b[S].svg===x)return b[S].instance.getPublicInstance();return b.push({svg:x,instance:new d(x,v)}),b[b.length-1].instance.getPublicInstance()};return we=X,we}var gn=dn();const vn=so(gn),mn=Eo` -subscription Workflow ($workflowId: ID) { - deltas(workflows: [$workflowId]) { - added { - ...AddedDelta - } - updated (stripNull: true) { - ...UpdatedDelta - } - pruned { - ...PrunedDelta - } - } -} - -fragment WorkflowData on Workflow { - id - reloaded -} - -fragment EdgeData on Edge { - id - source - target -} - -fragment TaskProxyData on TaskProxy { - id - state - isHeld - isRunahead - isQueued - isRetry - isWallclock - isXtriggered - name - task { - meanElapsedTime - } - flowNums - runtime { - runMode - } -} - -fragment JobData on Job { - id - state - name - startedTime -} - -fragment AddedDelta on Added { - workflow { - ...WorkflowData - } - edges { - ...EdgeData - } - taskProxies { - ...TaskProxyData - } - jobs { - ...JobData - } -} - -fragment UpdatedDelta on Updated { - workflow { - ...WorkflowData - } - edges { - ...EdgeData - } - taskProxies { - ...TaskProxyData - } - jobs { - ...JobData - } -} - -fragment PrunedDelta on Pruned { - workflow - edges - taskProxies - jobs -} -`,wn={name:"Graph",mixins:[Fo,lo],components:{GraphNode:Oo,GraphSubgraph:Io,ViewToolbar:Po},props:{initialOptions:Xo},setup(l,{emit:a}){const i=$t("transpose",{props:l,emit:a},!1),s=$t("autoRefresh",{props:l,emit:a},!0),h=$t("spacing",{props:l,emit:a},1.5),d=$t("groupCycle",{props:l,emit:a},!1);return{jobTheme:xo(),transpose:i,autoRefresh:s,spacing:h,groupCycle:d,isFlowNone:bo}},data(){return{orientation:"TB",refreshTimer:null,graphNodes:[],graphEdges:[],subgraphs:{},nodeTransformations:{},graphID:null,panZoomWidget:null,updating:!1,initialLoad:!0}},mounted(){this.graphviz=cn.load(),this.$nextTick(()=>{this.refresh(),this.updateTimer()}),this.mountSVGPanZoom()},beforeUnmount(){clearInterval(this.refreshTimer)},computed:{...uo("workflows",["getNodes"]),query(){return new yo(mn,this.variables,"workflow",[],!0,!0)},workflowIDs(){return[this.workflowId]},workflows(){return this.getNodes("workflow",this.workflowIDs)},controlGroups(){return[{title:"Graph",controls:[{title:"Refresh",icon:ho,action:"callback",callback:this.refresh,disableIf:["autoRefresh"]},{title:"Auto Refresh",icon:po,action:"toggle",value:this.autoRefresh,key:"autoRefresh"},{title:"Transpose",icon:fo,action:"toggle",value:this.transpose,key:"transpose"},{title:"Centre",icon:go,action:"callback",callback:this.reset},{title:"Increase Spacing",icon:vo,action:"callback",callback:this.increaseSpacing},{title:"Decrease Spacing",icon:mo,action:"callback",callback:this.decreaseSpacing},{title:"Group by cycle point",icon:wo,action:"toggle",value:this.groupCycle,key:"groupCycle"}]}]}},methods:{mountSVGPanZoom(){const l=this.$refs.graph.children;l.length<2||!l[1].getBBox()||l[1].getBBox().width===0||(this.panZoomWidget=vn(this.$refs.graph,{viewportSelector:".svg-pan-zoom_viewport",panEnabled:!0,controlIconsEnabled:!1,zoomEnabled:!0,dblClickZoomEnabled:!0,mouseWheelZoomEnabled:!0,preventMouseEventsDefault:!0,zoomScaleSensitivity:.2,minZoom:.01,maxZoom:50,fit:!1,contain:!1,center:!0,refreshRate:"auto"}),this.reset())},setOption(l,a){this[l]=a},updateTimer(){this.autoRefresh||this.initialLoad?this.refreshTimer=setInterval(this.refresh,2e3):(clearInterval(this.refreshTimer),this.refreshTimer=null)},increaseSpacing(){this.spacing=this.spacing*1.1},decreaseSpacing(){this.spacing=this.spacing*(10/11)},getGraphNodes(){const l=[];for(const a of this.workflows)for(const i of a.children)for(const s of i.children)l.push(s);return l},getGraphEdges(){const l=[];for(const a of this.workflows)for(const i of a.$edges||[])l.push(i);return l},getNodeDimensions(l){const a={};let i;for(const s of l){if(i=this.$refs[s.id][0]?.getBBox(),!i)throw Error(`Node ${s.id} not rendered`);a[s.id]=i}return a},getCycles(l){if(this.groupCycle)return l.reduce((a,i)=>((a[i.tokens.cycle]||=[]).push(i),a),{})},getDotCode(l,a,i,s){const h=["digraph {"];let d=this.spacing;this.transpose&&(d=d*1.5),h.push(` rankdir=${this.transpose?"LR":"TB"}`,` nodesep=${d}`,` ranksep=${d*2}`,' node [shape="rect"]');for(const m of a){const w=l[m.id];h.push(` - "${m.id}" [ - label=< - - - - - - - - - - - -
icon${m.id}
- > - ] - `)}if(this.groupCycle&&Object.keys(s).forEach((m,w)=>{const b=s[m].map(X=>`"${X.id}"`);h.push(` - subgraph cluster_margin_${w} - { - margin=100.0 - label="margin" - subgraph cluster_${w} {${b}; - - label = "${m}"; - - fontsize = "70px" - style=dashed - margin=60.0 - } - }`)}),this.transpose)for(const m of i)h.push(` "${m.node.source}" -> "${m.node.target}":task`);else for(const m of i)h.push(` "${m.node.source}":out -> "${m.node.target}":in`);return h.push("}"),h.join(` -`)},hashGraph(l,a){return zo(l.map(i=>i.id).reduce((i,s)=>i+s)+(a||[]).map(i=>i.id).reduce((i,s)=>i+s,1))},reset(){this.panZoomTo(this.$refs.graph.getElementsByClassName("svg-pan-zoom_viewport")[0])},panZoomTo(l){if(!this.panZoomWidget)return;this.panZoomWidget.resize();const a=l.getBBox(),{width:i,height:s,realZoom:h}=this.panZoomWidget.getSizes();this.panZoomWidget.pan({x:-h*(a.x-i/(h*2)+a.width/2),y:-h*(a.y-s/(h*2)+a.height/2)});const d=this.panZoomWidget.getZoom(),m=50*Math.sqrt(a.width/25)*11*h;this.panZoomWidget.zoom(d*i/m)},async refresh(){if(this.updating)return;this.updating=!0;const l=await this.waitFor(()=>{const m=this.getGraphNodes();return m.length?m:!1}),a=this.getGraphEdges();if(!l||!l.length){this.graphID=null,this.updating=!1;return}const i=this.getCycles(l),s=this.hashGraph(l,a);if(this.graphID===s){this.updating=!1;return}this.graphEdges=[];const h=l.map(m=>m.id);for(const m in this.nodeTransformations)h.includes(m)||delete this.nodeTransformations[m];this.graphNodes=l;const d=await this.waitFor(()=>{try{return this.getNodeDimensions(l)}catch{return!1}});if(d)this.initialLoad&&(this.initialLoad=!1);else return;try{await this.layout(l,a,d,i)}catch(m){this.graphID=null,this.updating=!1,console.error(m);return}if(!this.graphID){const m=`edge-${a.length-1}`;await this.waitFor(()=>{const w=this.$refs[m];return w&&w[0]&&w[0].getBBox()}),this.reset()}this.graphID=s,this.updating=!1},async waitFor(l,a=10){for(let i=0;iko(w.pos))??[],this.panZoomWidget||this.mountSVGPanZoom()}},watch:{transpose(){this.graphID=null,this.refresh()},spacing(){this.graphID=null,this.refresh()},autoRefresh(){this.updateTimer()},initialLoad(){this.autoRefresh||this.updateTimer()},groupCycle(){this.graphID=null,this.refresh()}}},yn={class:"c-graph w-100 h-100"},bn={width:"100%",height:"100%",ref:"graph",class:"graph job_theme--default"},xn=["id"],En={class:"svg-pan-zoom_viewport job_theme--default"},_n=["id","transform"],Ln=["transform"],Fn=["d","marker-end"],Xn={key:0};function On(l,a,i,s,h,d){const m=ue("ViewToolbar"),w=ue("GraphNode"),b=ue("GraphSubgraph");return vt(),wt("div",yn,[Te(m,{groups:d.controlGroups,onSetOption:d.setOption},null,8,["groups","onSetOption"]),(vt(),wt("svg",bn,[bt("defs",null,[bt("marker",{id:`${l._uid}-arrow-end`,viewbox:"0 0 8 8",refX:"1",refY:"5",markerUnits:"strokeWidth",markerWidth:"8",markerHeight:"8",orient:"auto"},[...a[0]||(a[0]=[bt("path",{d:"M 0 0 L 8 4 L 0 8 z",fill:"rgb(90,90,90)"},null,-1)])],8,xn)]),bt("g",En,[(vt(!0),wt(le,null,ce(h.graphNodes,X=>(vt(),wt("g",{key:X.id,id:X.id,ref_for:!0,ref:X.id,transform:h.nodeTransformations[X.id],class:"graph-node-container"},[Te(w,{task:X,jobs:X.children,jobTheme:s.jobTheme,class:_o({"flow-none":s.isFlowNone(X.node.flowNums)})},null,8,["task","jobs","jobTheme","class"])],8,_n))),128)),bt("g",{class:"edges",transform:s.transpose?"translate(-25, -8)":"translate(0, -25)"},[(vt(!0),wt(le,null,ce(h.graphEdges,(X,c)=>(vt(),wt("g",{key:c,ref_for:!0,ref:`edge-${c}`},[bt("path",{d:X,stroke:"rgb(90,90,90)","stroke-width":"5",fill:"none","marker-end":`url(#${l._uid}-arrow-end)`},null,8,Fn)]))),128))],8,Ln),s.groupCycle?(vt(),wt("g",Xn,[(vt(!0),wt(le,null,ce(h.subgraphs,(X,c)=>(vt(),Lo(b,{key:c,subgraph:X},null,8,["subgraph"]))),128))])):co("",!0)])],512))])}const Bn=er(wn,[["render",On]]);export{Bn as default}; diff --git a/cylc/uiserver/ui/2.10.0/assets/Graph-BpCaD5tF.css b/cylc/uiserver/ui/2.10.0/assets/Graph-BpCaD5tF.css deleted file mode 100644 index b5bf668d..00000000 --- a/cylc/uiserver/ui/2.10.0/assets/Graph-BpCaD5tF.css +++ /dev/null @@ -1 +0,0 @@ -.c-graph{overflow:hidden}.c-graph .c-view-toolbar{position:fixed;background-color:#f0f0f0e6;border-radius:.75em;margin:.5em;padding:.4em} diff --git a/cylc/uiserver/ui/2.10.0/assets/GraphNode-CjrYIu24.js b/cylc/uiserver/ui/2.10.0/assets/GraphNode-CjrYIu24.js deleted file mode 100644 index 634e4a6f..00000000 --- a/cylc/uiserver/ui/2.10.0/assets/GraphNode-CjrYIu24.js +++ /dev/null @@ -1,9 +0,0 @@ -import{_ as f,b0 as b,bl as h,x as r,bm as m,z as s,bn as k,g as l,C as u,t as c,y as x,F as J,r as g,o}from"./index-jbzX_AXb.js";const v={name:"GraphNode",components:{SVGTask:h,Job:b},props:{task:{type:Object,required:!0},jobs:{type:Array,required:!0},maxJobs:{default:6,required:!1},mostRecentJobScale:{default:1.2,required:!1},jobTheme:{required:!0}},computed:{nodeID(){return`graph-node-${this.task.id}`},startTime(){return this.jobs?.[0]?.node?.startedTime},jobsForDisplay(){return this.jobs.slice(0,this.maxJobs)},numOverflowJobs(){return this.jobs.length>this.maxJobs?this.jobs.length-this.maxJobs:0},labelTransform(){return this.jobs.length?"":"translate(0, 20)"},previousJobOffset(){return this.mostRecentJobScale*100-100}}},y={class:"c-graph-node"},T=["transform"],j={x:"130",y:"25","font-size":"45"},p={x:"130",y:"65","font-size":"30"},S={transform:` - translate(130, 75) - scale(0.3, 0.3) - `},w=["transform"],D=["transform"],G={x:"25",y:"75","font-size":"80"};function O(V,q,e,z,B,t){const d=u("SVGTask"),_=u("Job"),i=k("command-menu");return o(),r("g",y,[m(l(d,{task:e.task.node,modifierSize:.5,startTime:t.startTime,viewBox:"-40 -40 140 140",x:"0",y:"0"},null,8,["task","startTime"]),[[i,e.task]]),s("g",{transform:t.labelTransform},[s("text",j,c(e.task.name),1),s("text",p,c(e.task.tokens.cycle),1)],8,T),s("g",S,[(o(!0),r(J,null,g(t.jobsForDisplay,(a,n)=>(o(),r("g",{class:"jobs",key:a.id,transform:` - translate(${n*100+(n===0?0:t.previousJobOffset)}, 0) - scale(${n===0?e.mostRecentJobScale:"1"}) - `},[m(l(_,{svg:!0,status:a.node.state,viewBox:"0 0 100 100"},null,8,["status"]),[[i,a]])],8,w))),128)),t.numOverflowJobs?(o(),r("g",{key:0,class:"job-overflow",transform:` - translate(${e.maxJobs*100+20}, 0) - `},[s("text",G," +"+c(t.numOverflowJobs),1)],8,D)):x("",!0)])])}const F=f(v,[["render",O]]);export{F as G}; diff --git a/cylc/uiserver/ui/2.10.0/assets/GraphiQL-BQoybdla.js b/cylc/uiserver/ui/2.10.0/assets/GraphiQL-BQoybdla.js deleted file mode 100644 index adf2b391..00000000 --- a/cylc/uiserver/ui/2.10.0/assets/GraphiQL-BQoybdla.js +++ /dev/null @@ -1,147 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./codemirror-CgvGFWt9.js","./index-jbzX_AXb.js","./index-sfKkx8nR.css","./codemirror-HbUmq4EM.js","./show-hint-BWIlB5BH.js","./matchbrackets-CO3vsA4X.js","./matchbrackets-D7CjVzEn.js","./closebrackets-DZg8XFBI.js","./brace-fold-D2mMF0kw.js","./foldgutter-DUYQ7IB6.js","./lint-KdYI32E0.js","./searchcursor-4aVNBPts.js","./searchcursor-DThQw5sX.js","./jump-to-line-Df5wL-rR.js","./dialog-BwC5n760.js","./dialog-CLUkjEIt.js","./sublime-DT7RUNbp.js","./javascript-DR7Nv00w.js","./comment-CMJCd204.js","./search-D-xcWigh.js","./hint-C9DNkaPS.js","./Range-CZNrBk8u.js","./lint-BEfL3IbB.js","./info-kVv3DfXI.js","./SchemaReference-fncUnuK9.js","./forEachState-DETpARGm.js","./info-addon-BeEkom35.js","./jump-ta7ax8ey.js","./mode-DMuRFeXX.js","./mode-indent-Dvf_-b54.js","./hint-CNi7Bqg4.js","./lint-BOC45b3w.js","./mode-DIQZl251.js","./mode-CRb6UwqV.js"])))=>i.map(i=>d[i]); -import{aA as U,aB as Me,aC as Pe,aD as qE,aE as GE,aF as gn,aG as ne,aH as It,aI as Wn,aJ as ae,aK as Hd,aL as ji,aM as Vh,aN as zE,aO as YE,aP as QE,aQ as Jn,aR as Nn,aS as KE,ag as yl,aT as Ae,aU as XE,aV as JE,aW as Bn,aX as t1,aY as ZE,aZ as ew,a_ as tw,_ as nw,x as rw,o as iw}from"./index-jbzX_AXb.js";const ow=5;function sw(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map(l=>`"${l}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const s=o.slice(0,ow),a=s.pop();return i+s.join(", ")+", or "+a+"?"}function jh(e){return e}function n1(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function ur(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function bl(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function aw(e,t){let n=0,r=0;for(;n0);let a=0;do++r,a=a*10+o-_u,o=t.charCodeAt(r);while(ia(o)&&a>0);if(sa)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}const _u=48,lw=57;function ia(e){return!isNaN(e)&&_u<=e&&e<=lw}function cw(e,t){const n=Object.create(null),r=new uw(e),i=Math.floor(e.length*.4)+1;for(const o of t){const s=r.measure(o,i);s!==void 0&&(n[o]=s)}return Object.keys(n).sort((o,s)=>{const a=n[o]-n[s];return a!==0?a:aw(o,s)})}class uw{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Bh(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;const r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=Bh(r),o=this._inputArray;if(i.lengthn)return;const l=this._rows;for(let u=0;u<=a;u++)l[0][u]=u;for(let u=1;u<=s;u++){const d=l[(u-1)%3],h=l[u%3];let f=h[0]=u;for(let p=1;p<=a;p++){const m=i[u-1]===o[p-1]?0:1;let v=Math.min(d[p]+1,h[p-1]+1,d[p-1]+m);if(u>1&&p>1&&i[u-1]===o[p-2]&&i[u-2]===o[p-1]){const g=l[(u-2)%3][p-2];v=Math.min(v,g+1)}vn)return}const c=l[s%3][a];return c<=n?c:void 0}}function Bh(e){const t=e.length,n=new Array(t);for(let r=0;rTu(n,t));case U.OBJECT:return ur(e.fields,n=>n.name.value,n=>Tu(n.value,t));case U.VARIABLE:return t?.[e.name.value]}}function en(e){if(e!=null||Me(!1,"Must provide name."),typeof e=="string"||Me(!1,"Expected name to be a string."),e.length===0)throw new Pe("Expected name to be a non-empty string.");for(let t=1;ts(Tu(a,l)),this.extensions=Wt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||Me(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ne(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||Me(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||Me(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class vn{constructor(t){var n;this.name=en(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=Wt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>l1(t),this._interfaces=()=>a1(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||Me(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ne(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:u1(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function a1(e){var t;const n=o1((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||Me(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function l1(e){const t=s1(e.fields);return Bi(t)||Me(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),bl(t,(n,r)=>{var i;Bi(n)||Me(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||Me(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${ne(n.resolve)}.`);const o=(i=n.args)!==null&&i!==void 0?i:{};return Bi(o)||Me(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:en(r),description:n.description,type:n.type,args:c1(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:Wt(n.extensions),astNode:n.astNode}})}function c1(e){return Object.entries(e).map(([t,n])=>({name:en(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Wt(n.extensions),astNode:n.astNode}))}function Bi(e){return Wn(e)&&!Array.isArray(e)}function u1(e){return bl(e,t=>({description:t.description,type:t.type,args:d1(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function d1(e){return ur(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function zd(e){return Ke(e.type)&&e.defaultValue===void 0}class Ui{constructor(t){var n;this.name=en(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Wt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=l1.bind(void 0,t),this._interfaces=a1.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Me(!1,`${this.name} must provide "resolveType" as a function, but got: ${ne(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:u1(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class f1{constructor(t){var n;this.name=en(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Wt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=gw.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Me(!1,`${this.name} must provide "resolveType" as a function, but got: ${ne(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function gw(e){const t=o1(e.types);return Array.isArray(t)||Me(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class so{constructor(t){var n;this.name=en(t.name),this.description=t.description,this.extensions=Wt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:Uh(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=Uh(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=n1(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));const n=this._valueLookup.get(t);if(n===void 0)throw new Pe(`Enum "${this.name}" cannot represent value: ${ne(t)}`);return n.name}parseValue(t){if(typeof t!="string"){const r=ne(t);throw new Pe(`Enum "${this.name}" cannot represent non-string value: ${r}.`+oa(this,r))}const n=this.getValue(t);if(n==null)throw new Pe(`Value "${t}" does not exist in "${this.name}" enum.`+oa(this,t));return n.value}parseLiteral(t,n){if(t.kind!==U.ENUM){const i=It(t);throw new Pe(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+oa(this,i),{nodes:t})}const r=this.getValue(t.value);if(r==null){const i=It(t);throw new Pe(`Value "${i}" does not exist in "${this.name}" enum.`+oa(this,i),{nodes:t})}return r.value}toConfig(){const t=ur(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function oa(e,t){const n=e.getValues().map(i=>i.name),r=cw(t,n);return sw("the enum value",r)}function Uh(e,t){return Bi(t)||Me(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Bi(r)||Me(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${ne(r)}.`),{name:dw(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:Wt(r.extensions),astNode:r.astNode}))}class Yd{constructor(t){var n,r;this.name=en(t.name),this.description=t.description,this.extensions=Wt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=vw.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const t=bl(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function vw(e){const t=s1(e.fields);return Bi(t)||Me(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),bl(t,(n,r)=>(!("resolve"in n)||Me(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:en(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Wt(n.extensions),astNode:n.astNode}))}function yw(e){return Ke(e.type)&&e.defaultValue===void 0}function Eu(e,t){return e===t?!0:Ke(e)&&Ke(t)||yt(e)&&yt(t)?Eu(e.ofType,t.ofType):!1}function Na(e,t,n){return t===n?!0:Ke(n)?Ke(t)?Na(e,t.ofType,n.ofType):!1:Ke(t)?Na(e,t.ofType,n):yt(n)?yt(t)?Na(e,t.ofType,n.ofType):!1:yt(t)?!1:xn(n)&&(Ve(t)||$e(t))&&e.isSubType(n,t)}function bw(e,t,n){return t===n?!0:xn(t)?xn(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):xn(n)?e.isSubType(n,t):!1}const mc=2147483647,gc=-2147483648,_w=new Pr({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=gs(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new Pe(`Int cannot represent non-integer value: ${ne(t)}`);if(n>mc||nmc||emc||t({description:{type:Xe,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new be(new Et(new be(Kt))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new be(Kt),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Kt,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Kt,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new be(new Et(new be(v1))),resolve:e=>e.getDirectives()}})}),v1=new vn({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. - -In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new be(Xe),resolve:e=>e.name},description:{type:Xe,resolve:e=>e.description},isRepeatable:{type:new be(it),resolve:e=>e.isRepeatable},locations:{type:new be(new Et(new be(y1))),resolve:e=>e.locations},args:{type:new be(new Et(new be(Tl))),args:{includeDeprecated:{type:it,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),y1=new so({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:ae.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:ae.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:ae.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:ae.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:ae.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:ae.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:ae.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:ae.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:ae.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:ae.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:ae.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:ae.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:ae.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:ae.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:ae.UNION,description:"Location adjacent to a union definition."},ENUM:{value:ae.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:ae.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:ae.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:ae.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Kt=new vn({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new be(T1),resolve(e){if(Zn(e))return De.SCALAR;if($e(e))return De.OBJECT;if(Ve(e))return De.INTERFACE;if(Bt(e))return De.UNION;if(Dt(e))return De.ENUM;if(st(e))return De.INPUT_OBJECT;if(yt(e))return De.LIST;if(Ke(e))return De.NON_NULL;Hd(!1,`Unexpected type: "${ne(e)}".`)}},name:{type:Xe,resolve:e=>"name"in e?e.name:void 0},description:{type:Xe,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Xe,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Et(new be(b1)),args:{includeDeprecated:{type:it,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if($e(e)||Ve(e)){const n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new Et(new be(Kt)),resolve(e){if($e(e)||Ve(e))return e.getInterfaces()}},possibleTypes:{type:new Et(new be(Kt)),resolve(e,t,n,{schema:r}){if(xn(e))return r.getPossibleTypes(e)}},enumValues:{type:new Et(new be(_1)),args:{includeDeprecated:{type:it,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Dt(e)){const n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new Et(new be(Tl)),args:{includeDeprecated:{type:it,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(st(e)){const n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Kt,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:it,resolve:e=>{if(st(e))return e.isOneOf}}})}),b1=new vn({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new be(Xe),resolve:e=>e.name},description:{type:Xe,resolve:e=>e.description},args:{type:new be(new Et(new be(Tl))),args:{includeDeprecated:{type:it,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new be(Kt),resolve:e=>e.type},isDeprecated:{type:new be(it),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Xe,resolve:e=>e.deprecationReason}})}),Tl=new vn({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new be(Xe),resolve:e=>e.name},description:{type:Xe,resolve:e=>e.description},type:{type:new be(Kt),resolve:e=>e.type},defaultValue:{type:Xe,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=Di(n,t);return r?It(r):null}},isDeprecated:{type:new be(it),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Xe,resolve:e=>e.deprecationReason}})}),_1=new vn({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new be(Xe),resolve:e=>e.name},description:{type:Xe,resolve:e=>e.description},isDeprecated:{type:new be(it),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Xe,resolve:e=>e.deprecationReason}})});var De;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(De||(De={}));const T1=new so({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:De.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:De.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:De.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:De.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:De.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:De.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:De.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:De.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Wo={name:"__schema",type:new be(Qd),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},qo={name:"__type",type:Kt,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new be(Xe),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Go={name:"__typename",type:new be(Xe),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},E1=Object.freeze([Qd,v1,y1,Kt,b1,Tl,_1,T1]);function Ow(e){return E1.some(({name:t})=>e.name===t)}function wu(e){return gn(e,w1)}function Pw(e){if(!wu(e))throw new Error(`Expected ${ne(e)} to be a GraphQL schema.`);return e}class w1{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,Wn(t)||Me(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||Me(!1,`"types" must be Array if provided but got: ${ne(t.types)}.`),!t.directives||Array.isArray(t.directives)||Me(!1,`"directives" must be Array if provided but got: ${ne(t.directives)}.`),this.description=t.description,this.extensions=Wt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:Aw;const i=new Set(t.types);if(t.types!=null)for(const o of t.types)i.delete(o),zt(o,i);this._queryType!=null&&zt(this._queryType,i),this._mutationType!=null&&zt(this._mutationType,i),this._subscriptionType!=null&&zt(this._subscriptionType,i);for(const o of this._directives)if(m1(o))for(const s of o.args)zt(s.type,i);zt(Qd,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const o of i){if(o==null)continue;const s=o.name;if(s||Me(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[s]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${s}".`);if(this._typeMap[s]=o,Ve(o)){for(const a of o.getInterfaces())if(Ve(a)){let l=this._implementationsMap[a.name];l===void 0&&(l=this._implementationsMap[a.name]={objects:[],interfaces:[]}),l.interfaces.push(o)}}else if($e(o)){for(const a of o.getInterfaces())if(Ve(a)){let l=this._implementationsMap[a.name];l===void 0&&(l=this._implementationsMap[a.name]={objects:[],interfaces:[]}),l.objects.push(o)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case ji.QUERY:return this.getQueryType();case ji.MUTATION:return this.getMutationType();case ji.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return Bt(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){const n=this._implementationsMap[t.name];return n??{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),Bt(t))for(const i of t.getTypes())r[i.name]=!0;else{const i=this.getImplementations(t);for(const o of i.objects)r[o.name]=!0;for(const o of i.interfaces)r[o.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}function zt(e,t){const n=pt(e);if(!t.has(n)){if(t.add(n),Bt(n))for(const r of n.getTypes())zt(r,t);else if($e(n)||Ve(n)){for(const r of n.getInterfaces())zt(r,t);for(const r of Object.values(n.getFields())){zt(r.type,t);for(const i of r.args)zt(i.type,t)}}else if(st(n))for(const r of Object.values(n.getFields()))zt(r.type,t)}return t}function S1(e){if(Pw(e),e.__validationErrors)return e.__validationErrors;const t=new Iw(e);Dw(t),Rw(t),Mw(t);const n=t.getErrors();return e.__validationErrors=n,n}function M9(e){const t=S1(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` - -`))}class Iw{constructor(t){this._errors=[],this.schema=t}reportError(t,n){const r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new Pe(t,{nodes:r}))}getErrors(){return this._errors}}function Dw(e){const t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!$e(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${ne(n)}.`,(r=vc(t,ji.QUERY))!==null&&r!==void 0?r:n.astNode)}const i=t.getMutationType();if(i&&!$e(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${ne(i)}.`,(o=vc(t,ji.MUTATION))!==null&&o!==void 0?o:i.astNode)}const s=t.getSubscriptionType();if(s&&!$e(s)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${ne(s)}.`,(a=vc(t,ji.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode)}}function vc(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r?.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function Rw(e){for(const n of e.schema.getDirectives()){if(!m1(n)){e.reportError(`Expected directive but got: ${ne(n)}.`,n?.astNode);continue}Er(e,n),n.locations.length===0&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const r of n.args)if(Er(e,r),$t(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${ne(r.type)}.`,r.astNode),zd(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[Kd(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Er(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Mw(e){const t=Bw(e),n=e.schema.getTypeMap();for(const r of Object.values(n)){if(!Gd(r)){e.reportError(`Expected GraphQL named type but got: ${ne(r)}.`,r.astNode);continue}Ow(r)||Er(e,r),$e(r)||Ve(r)?(Wh(e,r),qh(e,r)):Bt(r)?$w(e,r):Dt(r)?Fw(e,r):st(r)&&(Vw(e,r),t(r))}}function Wh(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){if(Er(e,s),!vr(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${ne(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}for(const a of s.args){const l=a.name;if(Er(e,a),!$t(a.type)){var i;e.reportError(`The type of ${t.name}.${s.name}(${l}:) must be Input Type but got: ${ne(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if(zd(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${s.name}(${l}:) cannot be deprecated.`,[Kd(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type])}}}}function qh(e,t){const n=Object.create(null);for(const r of t.getInterfaces()){if(!Ve(r)){e.reportError(`Type ${ne(t)} must only implement Interface types, it cannot implement ${ne(r)}.`,Do(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Do(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Do(t,r));continue}n[r.name]=!0,kw(e,t,r),Lw(e,t,r)}}function Lw(e,t,n){const r=t.getFields();for(const l of Object.values(n.getFields())){const c=l.name,u=r[c];if(!u){e.reportError(`Interface field ${n.name}.${c} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!Na(e.schema,u.type,l.type)){var i,o;e.reportError(`Interface field ${n.name}.${c} expects type ${ne(l.type)} but ${t.name}.${c} is type ${ne(u.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(o=u.astNode)===null||o===void 0?void 0:o.type])}for(const d of l.args){const h=d.name,f=u.args.find(p=>p.name===h);if(!f){e.reportError(`Interface field argument ${n.name}.${c}(${h}:) expected but ${t.name}.${c} does not provide it.`,[d.astNode,u.astNode]);continue}if(!Eu(d.type,f.type)){var s,a;e.reportError(`Interface field argument ${n.name}.${c}(${h}:) expects type ${ne(d.type)} but ${t.name}.${c}(${h}:) is type ${ne(f.type)}.`,[(s=d.astNode)===null||s===void 0?void 0:s.type,(a=f.astNode)===null||a===void 0?void 0:a.type])}}for(const d of u.args){const h=d.name;!l.args.find(p=>p.name===h)&&zd(d)&&e.reportError(`Object field ${t.name}.${c} includes required argument ${h} that is missing from the Interface field ${n.name}.${c}.`,[d.astNode,l.astNode])}}}function kw(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...Do(n,i),...Do(t,n)])}function $w(e,t){const n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,Gh(t,i.name));continue}r[i.name]=!0,$e(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${ne(i)}.`,Gh(t,String(i)))}}function Fw(e,t){const n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const r of n)Er(e,r)}function Vw(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){if(Er(e,o),!$t(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${ne(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}if(yw(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[Kd(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&jw(t,o,e)}}function jw(e,t,n){if(Ke(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function Bw(e){const t=Object.create(null),n=[],r=Object.create(null);return i;function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const s=Object.values(o.getFields());for(const a of s)if(Ke(a.type)&&st(a.type.ofType)){const l=a.type.ofType,c=r[l.name];if(n.push(a),c===void 0)i(l);else{const u=n.slice(c),d=u.map(h=>h.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${d}".`,u.map(h=>h.astNode))}n.pop()}r[o.name]=void 0}}function Do(e,t){const{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var s;return(s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t.name)}function Gh(e,t){const{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var s;return(s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t)}function Kd(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===g1.name)}function zo(e,t){switch(t.kind){case U.LIST_TYPE:{const n=zo(e,t.type);return n&&new Et(n)}case U.NON_NULL_TYPE:{const n=zo(e,t.type);return n&&new be(n)}case U.NAMED_TYPE:return e.getType(t.name.value)}}class x1{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r??Uw,n&&($t(n)&&this._inputTypeStack.push(n),qn(n)&&this._parentTypeStack.push(n),vr(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){const n=this._schema;switch(t.kind){case U.SELECTION_SET:{const i=pt(this.getType());this._parentTypeStack.push(qn(i)?i:void 0);break}case U.FIELD:{const i=this.getParentType();let o,s;i&&(o=this._getFieldDef(n,i,t),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push(vr(s)?s:void 0);break}case U.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case U.OPERATION_DEFINITION:{const i=n.getRootType(t.operation);this._typeStack.push($e(i)?i:void 0);break}case U.INLINE_FRAGMENT:case U.FRAGMENT_DEFINITION:{const i=t.typeCondition,o=i?zo(n,i):pt(this.getType());this._typeStack.push(vr(o)?o:void 0);break}case U.VARIABLE_DEFINITION:{const i=zo(n,t.type);this._inputTypeStack.push($t(i)?i:void 0);break}case U.ARGUMENT:{var r;let i,o;const s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();s&&(i=s.args.find(a=>a.name===t.name.value),i&&(o=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push($t(o)?o:void 0);break}case U.LIST:{const i=i1(this.getInputType()),o=yt(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push($t(o)?o:void 0);break}case U.OBJECT_FIELD:{const i=pt(this.getInputType());let o,s;st(i)&&(s=i.getFields()[t.name.value],s&&(o=s.type)),this._defaultValueStack.push(s?s.defaultValue:void 0),this._inputTypeStack.push($t(o)?o:void 0);break}case U.ENUM:{const i=pt(this.getInputType());let o;Dt(i)&&(o=i.getValue(t.value)),this._enumValue=o;break}}}leave(t){switch(t.kind){case U.SELECTION_SET:this._parentTypeStack.pop();break;case U.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case U.DIRECTIVE:this._directive=null;break;case U.OPERATION_DEFINITION:case U.INLINE_FRAGMENT:case U.FRAGMENT_DEFINITION:this._typeStack.pop();break;case U.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case U.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case U.LIST:case U.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case U.ENUM:this._enumValue=null;break}}}function Uw(e,t,n){const r=n.name.value;if(r===Wo.name&&e.getQueryType()===t)return Wo;if(r===qo.name&&e.getQueryType()===t)return qo;if(r===Go.name&&qn(t))return Go;if($e(t)||Ve(t))return t.getFields()[r]}function Hw(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=Vh(t,r.kind).enter;if(i){const o=i.apply(t,n);return o!==void 0&&(e.leave(r),zE(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=Vh(t,r.kind).leave;let o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}function Co(e,t,n){if(e){if(e.kind===U.VARIABLE){const r=e.name.value;if(n==null||n[r]===void 0)return;const i=n[r];return i===null&&Ke(t)?void 0:i}if(Ke(t))return e.kind===U.NULL?void 0:Co(e,t.ofType,n);if(e.kind===U.NULL)return null;if(yt(t)){const r=t.ofType;if(e.kind===U.LIST){const o=[];for(const s of e.values)if(zh(s,n)){if(Ke(r))return;o.push(null)}else{const a=Co(s,r,n);if(a===void 0)return;o.push(a)}return o}const i=Co(e,r,n);return i===void 0?void 0:[i]}if(st(t)){if(e.kind!==U.OBJECT)return;const r=Object.create(null),i=n1(e.fields,o=>o.name.value);for(const o of Object.values(t.getFields())){const s=i[o.name];if(!s||zh(s.value,n)){if(o.defaultValue!==void 0)r[o.name]=o.defaultValue;else if(Ke(o.type))return;continue}const a=Co(s.value,o.type,n);if(a===void 0)return;r[o.name]=a}if(t.isOneOf){const o=Object.keys(r);if(o.length!==1||r[o[0]]===null)return}return r}if(_l(t)){let r;try{r=t.parseLiteral(e,n)}catch{return}return r===void 0?void 0:r}Hd(!1,"Unexpected input type: "+ne(t))}}function zh(e,t){return e.kind===U.VARIABLE&&(t==null||t[e.name.value]===void 0)}function Ww(e,t){Wn(e)&&Wn(e.__schema)||Me(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ne(e)}.`);const n=e.__schema,r=ur(n.types,w=>w.name,w=>h(w));for(const w of[...Tw,...E1])r[w.name]&&(r[w.name]=w);const i=n.queryType?u(n.queryType):null,o=n.mutationType?u(n.mutationType):null,s=n.subscriptionType?u(n.subscriptionType):null,a=n.directives?n.directives.map(x):[];return new w1({description:n.description,query:i,mutation:o,subscription:s,types:Object.values(r),directives:a,assumeValid:void 0});function l(w){if(w.kind===De.LIST){const N=w.ofType;if(!N)throw new Error("Decorated type deeper than introspection query.");return new Et(l(N))}if(w.kind===De.NON_NULL){const N=w.ofType;if(!N)throw new Error("Decorated type deeper than introspection query.");const P=l(N);return new be(mw(P))}return c(w)}function c(w){const N=w.name;if(!N)throw new Error(`Unknown type reference: ${ne(w)}.`);const P=r[N];if(!P)throw new Error(`Invalid or incomplete schema, unknown type: ${N}. Ensure that a full introspection query is used in order to build a client schema.`);return P}function u(w){return fw(c(w))}function d(w){return hw(c(w))}function h(w){if(w!=null&&w.name!=null&&w.kind!=null)switch(w.kind){case De.SCALAR:return f(w);case De.OBJECT:return m(w);case De.INTERFACE:return v(w);case De.UNION:return g(w);case De.ENUM:return _(w);case De.INPUT_OBJECT:return b(w)}const N=ne(w);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${N}.`)}function f(w){return new Pr({name:w.name,description:w.description,specifiedByURL:w.specifiedByURL})}function p(w){if(w.interfaces===null&&w.kind===De.INTERFACE)return[];if(!w.interfaces){const N=ne(w);throw new Error(`Introspection result missing interfaces: ${N}.`)}return w.interfaces.map(d)}function m(w){return new vn({name:w.name,description:w.description,interfaces:()=>p(w),fields:()=>T(w)})}function v(w){return new Ui({name:w.name,description:w.description,interfaces:()=>p(w),fields:()=>T(w)})}function g(w){if(!w.possibleTypes){const N=ne(w);throw new Error(`Introspection result missing possibleTypes: ${N}.`)}return new f1({name:w.name,description:w.description,types:()=>w.possibleTypes.map(u)})}function _(w){if(!w.enumValues){const N=ne(w);throw new Error(`Introspection result missing enumValues: ${N}.`)}return new so({name:w.name,description:w.description,values:ur(w.enumValues,N=>N.name,N=>({description:N.description,deprecationReason:N.deprecationReason}))})}function b(w){if(!w.inputFields){const N=ne(w);throw new Error(`Introspection result missing inputFields: ${N}.`)}return new Yd({name:w.name,description:w.description,fields:()=>S(w.inputFields),isOneOf:w.isOneOf})}function T(w){if(!w.fields)throw new Error(`Introspection result missing fields: ${ne(w)}.`);return ur(w.fields,N=>N.name,E)}function E(w){const N=l(w.type);if(!vr(N)){const P=ne(N);throw new Error(`Introspection must provide output type for fields, but received: ${P}.`)}if(!w.args){const P=ne(w);throw new Error(`Introspection result missing field args: ${P}.`)}return{description:w.description,deprecationReason:w.deprecationReason,type:N,args:S(w.args)}}function S(w){return ur(w,N=>N.name,C)}function C(w){const N=l(w.type);if(!$t(N)){const D=ne(N);throw new Error(`Introspection must provide input type for arguments, but received: ${D}.`)}const P=w.defaultValue!=null?Co(YE(w.defaultValue),N):void 0;return{description:w.description,type:N,defaultValue:P,deprecationReason:w.deprecationReason}}function x(w){if(!w.args){const N=ne(w);throw new Error(`Introspection result missing directive args: ${N}.`)}if(!w.locations){const N=ne(w);throw new Error(`Introspection result missing directive locations: ${N}.`)}return new Ir({name:w.name,description:w.description,isRepeatable:w.isRepeatable,locations:w.locations.slice(),args:S(w.args)})}}var vs,ge,C1,lr,Yh,A1,N1,O1,Xd,Su,xu,P1,Yo={},I1=[],qw=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ys=Array.isArray;function sn(e,t){for(var n in t)e[n]=t[n];return e}function Jd(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function R(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?vs.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Ro(e,s,r,i,null)}function Ro(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++C1,__i:-1,__u:0};return i==null&&ge.vnode!=null&&ge.vnode(o),o}function D1(){return{current:null}}function me(e){return e.children}function Ft(e,t){this.props=e,this.context=t}function Qi(e,t){if(t==null)return e.__?Qi(e.__,e.__i+1):null;for(var n;ta&&lr.sort(N1),e=lr.shift(),a=lr.length,e.__d&&(n=void 0,i=(r=(t=e).__v).__e,o=[],s=[],t.__P&&((n=sn({},r)).__v=r.__v+1,ge.vnode&&ge.vnode(n),Zd(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,o,i??Qi(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,k1(o,n,s),n.__e!=i&&R1(n)));ja.__r=0}function M1(e,t,n,r,i,o,s,a,l,c,u){var d,h,f,p,m,v,g=r&&r.__k||I1,_=t.length;for(l=Gw(n,t,g,l,_),d=0;d<_;d++)(f=n.__k[d])!=null&&(h=f.__i==-1?Yo:g[f.__i]||Yo,f.__i=d,v=Zd(e,f,h,i,o,s,a,l,c,u),p=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&ef(h.ref,null,f),u.push(f.ref,f.__c||p,f)),m==null&&p!=null&&(m=p),4&f.__u||h.__k===f.__k?l=L1(f,l,e):typeof f.type=="function"&&v!==void 0?l=v:p&&(l=p.nextSibling),f.__u&=-7);return n.__e=m,l}function Gw(e,t,n,r,i){var o,s,a,l,c,u=n.length,d=u,h=0;for(e.__k=new Array(i),o=0;o0?Ro(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(c=s.__i=zw(s,n,l,d))!=-1&&(d--,(a=n[c])&&(a.__u|=2)),a==null||a.__v==null?(c==-1&&(i>u?h--:il?h--:h++,s.__u|=4))):e.__k[o]=null;if(d)for(o=0;o(u?1:0)){for(i=n-1,o=n+1;i>=0||o=0?i--:o++])!=null&&(2&c.__u)==0&&a==c.key&&l==c.type)return s}return-1}function Qh(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||qw.test(t)?n:n+"px"}function sa(e,t,n,r,i){var o,s;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Qh(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Qh(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(O1,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Xd,e.addEventListener(t,o?xu:Su,o)):e.removeEventListener(t,o?xu:Su,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Kh(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Xd++;else if(t.t0?e:ys(e)?e.map($1):sn({},e)}function Yw(e,t,n,r,i,o,s,a,l){var c,u,d,h,f,p,m,v=n.props,g=t.props,_=t.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c2&&(a.children=arguments.length>3?vs.call(arguments,2):n),Ro(e.type,a,r||e.key,i||e.ref,null)}function Ne(e){function t(n){var r,i;return this.getChildContext||(r=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&r.forEach(function(s){s.__e=!0,Cu(s)})},this.sub=function(o){r.add(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){r&&r.delete(o),s&&s.call(o)}}),n.children}return t.__c="__cC"+P1++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}vs=I1.slice,ge={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},C1=0,Ft.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=sn({},this.state),typeof e=="function"&&(e=e(sn({},n),this.props)),e&&sn(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Cu(this))},Ft.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Cu(this))},Ft.prototype.render=me,lr=[],A1=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,N1=function(e,t){return e.__v.__b-t.__v.__b},ja.__r=0,O1=/(PointerCapture)$|Capture$/i,Xd=0,Su=Kh(!1),xu=Kh(!0),P1=0;var On,Re,yc,Xh,Ki=0,j1=[],Be=ge,Jh=Be.__b,Zh=Be.__r,ep=Be.diffed,tp=Be.__c,np=Be.unmount,rp=Be.__;function Dr(e,t){Be.__h&&Be.__h(Re,e,Ki||t),Ki=0;var n=Re.__H||(Re.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function z(e){return Ki=1,Rr(B1,e)}function Rr(e,t,n){var r=Dr(On++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):B1(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=Re,!Re.__f)){var i=function(a,l,c){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(h){return!!h.__c});if(u.every(function(h){return!h.__N}))return!o||o.call(this,a,l,c);var d=r.__c.props!==a;return u.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(d=!0)}}),o&&o.call(this,a,l,c)||d};Re.__f=!0;var o=Re.shouldComponentUpdate,s=Re.componentWillUpdate;Re.componentWillUpdate=function(a,l,c){if(this.__e){var u=o;o=void 0,i(a,l,c),o=u}s&&s.call(this,a,l,c)},Re.shouldComponentUpdate=i}return r.__N||r.__}function B(e,t){var n=Dr(On++,3);!Be.__s&&rf(n.__H,t)&&(n.__=e,n.u=t,Re.__H.__h.push(n))}function St(e,t){var n=Dr(On++,4);!Be.__s&&rf(n.__H,t)&&(n.__=e,n.u=t,Re.__h.push(n))}function F(e){return Ki=5,re(function(){return{current:e}},[])}function tf(e,t,n){Ki=6,St(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function re(e,t){var n=Dr(On++,7);return rf(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Y(e,t){return Ki=8,re(function(){return e},t)}function fe(e){var t=Re.context[e.__c],n=Dr(On++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Re)),t.props.value):e.__}function nf(e,t){Be.useDebugValue&&Be.useDebugValue(t?t(e):e)}function Xw(e){var t=Dr(On++,10),n=z();return t.__=e,Re.componentDidCatch||(Re.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function qt(){var e=Dr(On++,11);if(!e.__){for(var t=Re.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Jw(){for(var e;e=j1.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Oa),e.__H.__h.forEach(Nu),e.__H.__h=[]}catch(t){e.__H.__h=[],Be.__e(t,e.__v)}}Be.__b=function(e){Re=null,Jh&&Jh(e)},Be.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),rp&&rp(e,t)},Be.__r=function(e){Zh&&Zh(e),On=0;var t=(Re=e.__c).__H;t&&(yc===Re?(t.__h=[],Re.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Oa),t.__h.forEach(Nu),t.__h=[],On=0)),yc=Re},Be.diffed=function(e){ep&&ep(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(j1.push(t)!==1&&Xh===Be.requestAnimationFrame||((Xh=Be.requestAnimationFrame)||Zw)(Jw)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),yc=Re=null},Be.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Oa),n.__h=n.__h.filter(function(r){return!r.__||Nu(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Be.__e(r,n.__v)}}),tp&&tp(e,t)},Be.unmount=function(e){np&&np(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Oa(r)}catch(i){t=i}}),n.__H=void 0,t&&Be.__e(t,n.__v))};var ip=typeof requestAnimationFrame=="function";function Zw(e){var t,n=function(){clearTimeout(r),ip&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);ip&&(t=requestAnimationFrame(n))}function Oa(e){var t=Re,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Re=t}function Nu(e){var t=Re;e.__c=e.__(),Re=t}function rf(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function B1(e,t){return typeof t=="function"?t(e):t}function U1(e,t){for(var n in t)e[n]=t[n];return e}function Ou(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function El(e,t){var n=t(),r=z({t:{__:n,u:t}}),i=r[0].t,o=r[1];return St(function(){i.__=n,i.u=t,bc(i)&&o({t:i})},[e,n,t]),B(function(){return bc(i)&&o({t:i}),e(function(){bc(i)&&o({t:i})})},[e]),n}function bc(e){var t,n,r=e.u,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function of(e){e()}function sf(e){return e}function af(){return[!1,of]}var wl=St;function Ba(e,t){this.props=e,this.context=t}function H1(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:Ou(this.props,i)}function r(i){return this.shouldComponentUpdate=n,R(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ba.prototype=new Ft).isPureReactComponent=!0,Ba.prototype.shouldComponentUpdate=function(e,t){return Ou(this.props,e)||Ou(this.state,t)};var op=ge.__b;ge.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),op&&op(e)};var e2=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Q(e){function t(n){var r=U1({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=e2,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var sp=function(e,t){return e==null?null:Cn(Cn(e).map(t))},Xt={map:sp,forEach:sp,count:function(e){return e?Cn(e).length:0},only:function(e){var t=Cn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Cn},t2=ge.__e;ge.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}t2(e,t,n,r)};var ap=ge.unmount;function W1(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=U1({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return W1(r,t,n)})),e}function q1(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return q1(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Mo(){this.__u=0,this.o=null,this.__b=null}function G1(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function z1(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return R(n,o)}return i.displayName="Lazy",i.__f=!0,i}function Ri(){this.i=null,this.l=null}ge.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ap&&ap(e)},(Mo.prototype=new Ft).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=G1(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=q1(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.o.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Mo.prototype.componentWillUnmount=function(){this.o=[]},Mo.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=W1(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&R(me,null,e.fallback);return i&&(i.__u&=-33),[R(me,null,t.__a?null:e.children),i]};var lp=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.h.removeChild(i)}}}Qo(R(n2,{context:t.context},e.__v),t.v)}function Sl(e,t){var n=R(r2,{__v:e,h:t});return n.containerInfo=t,n}(Ri.prototype=new Ft).__a=function(e){var t=this,n=G1(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),lp(t,e,r)):i()};n?n(o):o()}},Ri.prototype.render=function(e){this.i=null,this.l=new Map;var t=Cn(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Ri.prototype.componentDidUpdate=Ri.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){lp(e,n,t)})};var Y1=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,i2=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,o2=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,s2=/[A-Z0-9]/g,a2=typeof document<"u",l2=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function xl(e,t,n){return t.__k==null&&(t.textContent=""),Qo(e,t),typeof n=="function"&&n(),e?e.__c:null}function Q1(e,t,n){return V1(e,t),typeof n=="function"&&n(),e?e.__c:null}Ft.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ft.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var cp=ge.event;function c2(){}function u2(){return this.cancelBubble}function d2(){return this.defaultPrevented}ge.event=function(e){return cp&&(e=cp(e)),e.persist=c2,e.isPropagationStopped=u2,e.isDefaultPrevented=d2,e.nativeEvent=e};var lf,f2={enumerable:!1,configurable:!0,get:function(){return this.class}},up=ge.vnode;ge.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||a2&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||l2(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":o2.test(s)&&(s=l):l=s="oninput":o&&i2.test(s)?s=s.replace(s2,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[s=l]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Cn(n.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Cn(n.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",f2)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Y1,up&&up(e)};var dp=ge.__r;ge.__r=function(e){dp&&dp(e),lf=e.__c};var fp=ge.diffed;ge.diffed=function(e){fp&&fp(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),lf=null};var K1={ReactCurrentDispatcher:{current:{readContext:function(e){return lf.__n[e.__c].props.value},useCallback:Y,useContext:fe,useDebugValue:nf,useDeferredValue:sf,useEffect:B,useId:qt,useImperativeHandle:tf,useInsertionEffect:wl,useLayoutEffect:St,useMemo:re,useReducer:Rr,useRef:F,useState:z,useSyncExternalStore:El,useTransition:af}}},h2="18.3.1";function X1(e){return R.bind(null,e)}function Jt(e){return!!e&&e.$$typeof===Y1}function J1(e){return Jt(e)&&e.type===me}function Z1(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function er(e){return Jt(e)?Kw.apply(null,arguments):e}function cf(e){return!!e.__k&&(Qo(null,e),!0)}function ey(e){return e&&(e.base||e.nodeType===1&&e)||null}var ty=function(e,t){return e(t)},mt=function(e,t){return e(t)},ny=me,ry=Jt,pe={useState:z,useId:qt,useReducer:Rr,useEffect:B,useLayoutEffect:St,useInsertionEffect:wl,useTransition:af,useDeferredValue:sf,useSyncExternalStore:El,startTransition:of,useRef:F,useImperativeHandle:tf,useMemo:re,useCallback:Y,useContext:fe,useDebugValue:nf,version:"18.3.1",Children:Xt,render:xl,hydrate:Q1,unmountComponentAtNode:cf,createPortal:Sl,createElement:R,createContext:Ne,createFactory:X1,cloneElement:er,createRef:D1,Fragment:me,isValidElement:Jt,isElement:ry,isFragment:J1,isMemo:Z1,findDOMNode:ey,Component:Ft,PureComponent:Ba,memo:H1,forwardRef:Q,flushSync:mt,unstable_batchedUpdates:ty,StrictMode:ny,Suspense:Mo,SuspenseList:Ri,lazy:z1,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:K1};const bs=Object.freeze(Object.defineProperty({__proto__:null,Children:Xt,Component:Ft,Fragment:me,PureComponent:Ba,StrictMode:ny,Suspense:Mo,SuspenseList:Ri,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:K1,cloneElement:er,createContext:Ne,createElement:R,createFactory:X1,createPortal:Sl,createRef:D1,default:pe,findDOMNode:ey,flushSync:mt,forwardRef:Q,hydrate:Q1,isElement:ry,isFragment:J1,isMemo:Z1,isValidElement:Jt,lazy:z1,memo:H1,render:xl,startTransition:of,unmountComponentAtNode:cf,unstable_batchedUpdates:ty,useCallback:Y,useContext:fe,useDebugValue:nf,useDeferredValue:sf,useEffect:B,useErrorBoundary:Xw,useId:qt,useImperativeHandle:tf,useInsertionEffect:wl,useLayoutEffect:St,useMemo:re,useReducer:Rr,useRef:F,useState:z,useSyncExternalStore:El,useTransition:af,version:h2},Symbol.toStringTag,{value:"Module"}));var p2=0;function y(e,t,n,r,i,o){t||(t={});var s,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?s=t[a]:l[a]=t[a];var c={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--p2,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return ge.vnode&&ge.vnode(c),c}const iy=QE(bs);/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @lightSyntaxTransform - * @noflow - * @nolint - * @preventMunge - * @preserve-invariant-messages - */var _c,hp;function m2(){if(hp)return _c;hp=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(O,A)=>{for(var W in A)t(O,W,{get:A[W],enumerable:!0})},a=(O,A,W,J)=>{if(A&&typeof A=="object"||typeof A=="function")for(let se of r(A))!o.call(O,se)&&se!==W&&t(O,se,{get:()=>A[se],enumerable:!(J=n(A,se))||J.enumerable});return O},l=(O,A,W)=>(W=O!=null?e(i(O)):{},a(!O||!O.__esModule?t(W,"default",{value:O,enumerable:!0}):W,O)),c=O=>a(t({},"__esModule",{value:!0}),O),u={};s(u,{$dispatcherGuard:()=>x,$makeReadOnly:()=>N,$reset:()=>w,$structuralCheck:()=>k,c:()=>b,clearRenderCounterRegistry:()=>D,renderCounterRegistry:()=>P,useRenderCounter:()=>M}),_c=c(u);var d=l(iy),{useRef:h,useEffect:f,isValidElement:p}=d,m,v=(m=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)!=null?m:d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,g=Symbol.for("react.memo_cache_sentinel"),_,b=typeof((_=d.__COMPILER_RUNTIME)==null?void 0:_.c)=="function"?d.__COMPILER_RUNTIME.c:function(A){return d.useMemo(()=>{const W=new Array(A);for(let J=0;J{T[O]=()=>{throw new Error(`[React] Unexpected React hook call (${O}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var E=null;T.useMemoCache=O=>{if(E==null)throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");return E.useMemoCache(O)};function S(O){return v.ReactCurrentDispatcher.current=O,v.ReactCurrentDispatcher.current}var C=[];function x(O){const A=v.ReactCurrentDispatcher.current;if(O===0){if(C.push(A),C.length===1&&(E=A),A===T)throw new Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");S(T)}else if(O===1){const W=C.pop();if(W==null)throw new Error("React Compiler internal error: unexpected null in guard stack");C.length===0&&(E=null),S(W)}else if(O===2)C.push(A),S(E);else if(O===3){const W=C.pop();if(W==null)throw new Error("React Compiler internal error: unexpected null in guard stack");S(W)}else throw new Error("React Compiler internal error: unreachable block"+O)}function w(O){for(let A=0;A{A.count=0})}function j(O,A){let W=P.get(O);W==null&&(W=new Set,P.set(O,W)),W.add(A)}function $(O,A){const W=P.get(O);W?.delete(A)}function M(O){const A=h(null);A.current!=null&&(A.current.count+=1),f(()=>{if(A.current==null){const W={count:0};j(O,W),A.current=W}return()=>{A.current!==null&&$(O,A.current)}})}var L=new Set;function k(O,A,W,J,se,te){function V(q,H,X,Z){const Ce=`${J}:${te} [${se}] ${W}${X} changed from ${q} to ${H} at depth ${Z}`;L.has(Ce)||(L.add(Ce),console.error(Ce))}const ie=2;function ee(q,H,X,Z){if(!(Z>ie)){if(q===H)return;if(typeof q!=typeof H)V(`type ${typeof q}`,`type ${typeof H}`,X,Z);else if(typeof q=="object"){const Ce=Array.isArray(q),Ue=Array.isArray(H);if(q===null&&H!==null)V("null",`type ${typeof H}`,X,Z);else if(H===null)V(`type ${typeof q}`,"null",X,Z);else if(q instanceof Map)if(!(H instanceof Map))V("Map instance","other value",X,Z);else if(q.size!==H.size)V(`Map instance with size ${q.size}`,`Map instance with size ${H.size}`,X,Z);else for(const[le,nt]of q)H.has(le)?ee(nt,H.get(le),`${X}.get(${le})`,Z+1):V(`Map instance with key ${le}`,`Map instance without key ${le}`,X,Z);else if(H instanceof Map)V("other value","Map instance",X,Z);else if(q instanceof Set)if(!(H instanceof Set))V("Set instance","other value",X,Z);else if(q.size!==H.size)V(`Set instance with size ${q.size}`,`Set instance with size ${H.size}`,X,Z);else for(const le of H)q.has(le)||V(`Set instance without element ${le}`,`Set instance with element ${le}`,X,Z);else if(H instanceof Set)V("other value","Set instance",X,Z);else if(Ce||Ue)if(Ce!==Ue)V(`type ${Ce?"array":"object"}`,`type ${Ue?"array":"object"}`,X,Z);else if(q.length!==H.length)V(`array with length ${q.length}`,`array with length ${H.length}`,X,Z);else for(let le=0;let in e?g2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xi=(e,t)=>{for(var n in t||(t={}))b2.call(t,n)&&mp(e,n,t[n]);if(pp)for(var n of pp(t))_2.call(t,n)&&mp(e,n,t[n]);return e},Ua=(e,t)=>v2(e,y2(t));function gp(e){return typeof e=="object"&&e!==null&&typeof e.then=="function"}function T2(e){return new Promise((t,n)=>{const r=e.subscribe({next(i){t(i),r.unsubscribe()},error:n,complete(){n(new Error("no value resolved"))}})})}function oy(e){return typeof e=="object"&&e!==null&&"subscribe"in e&&typeof e.subscribe=="function"}function sy(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}async function E2(e){var t;const n=(t=("return"in e?e:e[Symbol.asyncIterator]()).return)==null?void 0:t.bind(e),r=await("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return n?.(),r.value}async function vp(e){const t=await e;return sy(t)?E2(t):oy(t)?T2(t):t}function Pu(e){return JSON.stringify(e,null,2)}function w2(e){return Ua(Xi({},e),{message:e.message,stack:e.stack})}function yp(e){return e instanceof Error?w2(e):e}function Ha(e){return Array.isArray(e)?Pu({errors:e.map(t=>yp(t))}):Pu({errors:[yp(e)]})}function Iu(e){return Pu(e)}function S2(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=Jn(t)}catch{return{insertions:r,result:t}}const o=n||x2,s=new x1(e);return Nn(i,{leave(a){s.leave(a)},enter(a){if(s.enter(a),a.kind==="Field"&&!a.selectionSet){const l=s.getType(),c=ay(N2(l),o);if(c&&a.loc){const u=A2(t,a.loc.start);r.push({index:a.loc.end,string:" "+It(c).replaceAll(` -`,` -`+u)})}}}}),{insertions:r,result:C2(t,r)}}function x2(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];for(const r of Object.keys(t))_l(t[r].type)&&n.push(r);return n}function ay(e,t){const n=pt(e);if(!e||_l(e))return;const r=t(n);if(!(!Array.isArray(r)||r.length===0||!("getFields"in n)))return{kind:U.SELECTION_SET,selections:r.map(i=>{const o=n.getFields()[i],s=o?o.type:null;return{kind:U.FIELD,name:{kind:U.NAME,value:i},selectionSet:ay(s,t)}})}}function C2(e,t){if(t.length===0)return e;let n="",r=0;for(const{index:i,string:o}of t)n+=e.slice(r,i)+o,r=i;return n+=e.slice(r),n}function A2(e,t){let n=t,r=t;for(;n;){const i=e.charCodeAt(n-1);if(i===10||i===13||i===8232||i===8233)break;n--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(r=n)}return e.slice(n,r)}function N2(e){if(e)return e}function O2(e,t){var n;const r=new Map,i=[];for(const o of e)if(o.kind==="Field"){const s=t(o),a=r.get(s);if((n=o.directives)!=null&&n.length){const l=Xi({},o);i.push(l)}else if(a!=null&&a.selectionSet&&o.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...o.selectionSet.selections];else if(!a){const l=Xi({},o);r.set(s,l),i.push(l)}}else i.push(o);return i}function ly(e,t,n){var r;const i=n?pt(n).name:null,o=[],s=[];for(let a of t){if(a.kind==="FragmentSpread"){const l=a.name.value;if(!a.directives||a.directives.length===0){if(s.includes(l))continue;s.push(l)}const c=e[a.name.value];if(c){const{typeCondition:u,directives:d,selectionSet:h}=c;a={kind:U.INLINE_FRAGMENT,typeCondition:u,directives:d,selectionSet:h}}}if(a.kind===U.INLINE_FRAGMENT&&(!a.directives||((r=a.directives)==null?void 0:r.length)===0)){const l=a.typeCondition?a.typeCondition.name.value:null;if(!l||l===i){o.push(...ly(e,a.selectionSet.selections,n));continue}}o.push(a)}return o}function P2(e,t){const n=t?new x1(t):null,r=Object.create(null);for(const s of e.definitions)s.kind===U.FRAGMENT_DEFINITION&&(r[s.name.value]=s);const i={SelectionSet(s){const a=n?n.getParentType():null;let{selections:l}=s;return l=ly(r,l,a),Ua(Xi({},s),{selections:l})},FragmentDefinition(){return null}},o=Nn(e,n?Hw(n,i):i);return Nn(o,{SelectionSet(s){let{selections:a}=s;return a=O2(a,l=>l.alias?l.alias.value:l.name.value),Ua(Xi({},s),{selections:a})},FragmentDefinition(){return null}})}function I2(e,t,n){if(!n||n.length<1)return;const r=n.map(i=>{var o;return(o=i.name)==null?void 0:o.value});if(t&&r.includes(t))return t;if(t&&e){const i=e.map(o=>{var s;return(s=o.name)==null?void 0:s.value}).indexOf(t);if(i!==-1&&i"u"?this.storage=null:this.storage={getItem:localStorage.getItem.bind(localStorage),setItem:localStorage.setItem.bind(localStorage),removeItem:localStorage.removeItem.bind(localStorage),get length(){let n=0;for(const r in localStorage)r.indexOf(`${aa}:`)===0&&(n+=1);return n},clear(){for(const n in localStorage)n.indexOf(`${aa}:`)===0&&localStorage.removeItem(n)}}}get(t){if(!this.storage)return null;const n=`${aa}:${t}`,r=this.storage.getItem(n);return r==="null"||r==="undefined"?(this.storage.removeItem(n),null):r||null}set(t,n){let r=!1,i=null;if(this.storage){const o=`${aa}:${t}`;if(n)try{this.storage.setItem(o,n)}catch(s){i=s instanceof Error?s:new Error(`${s}`),r=D2(this.storage,s)}else this.storage.removeItem(o)}return{isQuotaError:r,error:i}}clear(){this.storage&&this.storage.clear()}}const aa="graphiql";class bp{constructor(t,n,r=null){this.key=t,this.storage=n,this.maxSize=r,this.items=this.fetchAll()}get length(){return this.items.length}contains(t){return this.items.some(n=>n.query===t.query&&n.variables===t.variables&&n.headers===t.headers&&n.operationName===t.operationName)}edit(t,n){if(typeof n=="number"&&this.items[n]){const i=this.items[n];if(i.query===t.query&&i.variables===t.variables&&i.headers===t.headers&&i.operationName===t.operationName){this.items.splice(n,1,t),this.save();return}}const r=this.items.findIndex(i=>i.query===t.query&&i.variables===t.variables&&i.headers===t.headers&&i.operationName===t.operationName);r!==-1&&(this.items.splice(r,1,t),this.save())}delete(t){const n=this.items.findIndex(r=>r.query===t.query&&r.variables===t.variables&&r.headers===t.headers&&r.operationName===t.operationName);n!==-1&&(this.items.splice(n,1),this.save())}fetchRecent(){return this.items.at(-1)}fetchAll(){const t=this.storage.get(this.key);return t?JSON.parse(t)[this.key]:[]}push(t){const n=[...this.items,t];this.maxSize&&n.length>this.maxSize&&n.shift();for(let r=0;r<5;r++){const i=this.storage.set(this.key,JSON.stringify({[this.key]:n}));if(!(i!=null&&i.error))this.items=n;else if(i.isQuotaError&&this.maxSize)n.shift();else return}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}const M2=1e5;class L2{constructor(t,n){this.storage=t,this.maxHistoryLength=n,this.updateHistory=({query:r,variables:i,headers:o,operationName:s})=>{if(!this.shouldSaveQuery(r,i,o,this.history.fetchRecent()))return;this.history.push({query:r,variables:i,headers:o,operationName:s});const a=this.history.items,l=this.favorite.items;this.queries=a.concat(l)},this.deleteHistory=({query:r,variables:i,headers:o,operationName:s,favorite:a},l=!1)=>{function c(u){const d=u.items.find(h=>h.query===r&&h.variables===i&&h.headers===o&&h.operationName===s);d&&u.delete(d)}(a||l)&&c(this.favorite),(!a||l)&&c(this.history),this.queries=[...this.history.items,...this.favorite.items]},this.history=new bp("queries",this.storage,this.maxHistoryLength),this.favorite=new bp("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(t,n,r,i){if(!t)return!1;try{Jn(t)}catch{return!1}return t.length>M2?!1:i?!(JSON.stringify(t)===JSON.stringify(i.query)&&(JSON.stringify(n)===JSON.stringify(i.variables)&&(JSON.stringify(r)===JSON.stringify(i.headers)||r&&!i.headers)||n&&!i.variables)):!0}toggleFavorite({query:t,variables:n,headers:r,operationName:i,label:o,favorite:s}){const a={query:t,variables:n,headers:r,operationName:i,label:o};s?(a.favorite=!1,this.favorite.delete(a),this.history.push(a)):(a.favorite=!0,this.favorite.push(a),this.history.delete(a)),this.queries=[...this.history.items,...this.favorite.items]}editLabel({query:t,variables:n,headers:r,operationName:i,label:o,favorite:s},a){const l={query:t,variables:n,headers:r,operationName:i,label:o};s?this.favorite.edit(Ua(Xi({},l),{favorite:s}),a):this.history.edit(l,a),this.queries=[...this.history.items,...this.favorite.items]}}function wr(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i!r.isDeprecated);const n=e.map(r=>({proximity:$2(cy(r.label),t),entry:r}));return Tc(Tc(n,r=>r.proximity<=2),r=>!r.entry.isDeprecated).sort((r,i)=>(r.entry.isDeprecated?1:0)-(i.entry.isDeprecated?1:0)||r.proximity-i.proximity||r.entry.label.length-i.entry.label.length).map(r=>r.entry)}function Tc(e,t){const n=e.filter(t);return n.length===0?e:n}function cy(e){return e.toLowerCase().replaceAll(/\W/g,"")}function $2(e,t){let n=F2(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}function F2(e,t){let n,r;const i=[],o=e.length,s=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=s;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=s;r++){const a=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+a),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+a))}return i[o][s]}const V2=e=>` { - $1 -}`,Wa=(e,t,n)=>{if(!t)return n??e;const r=pt(t);return $e(r)||st(r)||yt(r)||xn(r)?e+V2():n??e},_p=(e,t,n)=>{if(yt(t)){const r=pt(t.ofType);return e+`[${Wa("",r,"$1")}]`}return Wa(e,t,n)},j2=e=>{const t=e.args.filter(n=>n.type.toString().endsWith("!"));if(t.length)return e.name+`(${t.map((n,r)=>`${n.name}: $${r+1}`)}) ${Wa("",e.type,` -`)}`};var Tp;(function(e){function t(n){return typeof n=="string"}e.is=t})(Tp||(Tp={}));var Du;(function(e){function t(n){return typeof n=="string"}e.is=t})(Du||(Du={}));var Ep;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Ep||(Ep={}));var qa;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(qa||(qa={}));var Yt;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=qa.MAX_VALUE),i===Number.MAX_VALUE&&(i=qa.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return I.objectLiteral(i)&&I.uinteger(i.line)&&I.uinteger(i.character)}e.is=n})(Yt||(Yt={}));var Je;(function(e){function t(r,i,o,s){if(I.uinteger(r)&&I.uinteger(i)&&I.uinteger(o)&&I.uinteger(s))return{start:Yt.create(r,i),end:Yt.create(o,s)};if(Yt.is(r)&&Yt.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${s}]`)}e.create=t;function n(r){let i=r;return I.objectLiteral(i)&&Yt.is(i.start)&&Yt.is(i.end)}e.is=n})(Je||(Je={}));var Ga;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return I.objectLiteral(i)&&Je.is(i.range)&&(I.string(i.uri)||I.undefined(i.uri))}e.is=n})(Ga||(Ga={}));var wp;(function(e){function t(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(r){let i=r;return I.objectLiteral(i)&&Je.is(i.targetRange)&&I.string(i.targetUri)&&Je.is(i.targetSelectionRange)&&(Je.is(i.originSelectionRange)||I.undefined(i.originSelectionRange))}e.is=n})(wp||(wp={}));var Ru;(function(e){function t(r,i,o,s){return{red:r,green:i,blue:o,alpha:s}}e.create=t;function n(r){const i=r;return I.objectLiteral(i)&&I.numberRange(i.red,0,1)&&I.numberRange(i.green,0,1)&&I.numberRange(i.blue,0,1)&&I.numberRange(i.alpha,0,1)}e.is=n})(Ru||(Ru={}));var Sp;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){const i=r;return I.objectLiteral(i)&&Je.is(i.range)&&Ru.is(i.color)}e.is=n})(Sp||(Sp={}));var xp;(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){const i=r;return I.objectLiteral(i)&&I.string(i.label)&&(I.undefined(i.textEdit)||Zi.is(i))&&(I.undefined(i.additionalTextEdits)||I.typedArray(i.additionalTextEdits,Zi.is))}e.is=n})(xp||(xp={}));var Cp;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Cp||(Cp={}));var Ap;(function(e){function t(r,i,o,s,a,l){const c={startLine:r,endLine:i};return I.defined(o)&&(c.startCharacter=o),I.defined(s)&&(c.endCharacter=s),I.defined(a)&&(c.kind=a),I.defined(l)&&(c.collapsedText=l),c}e.create=t;function n(r){const i=r;return I.objectLiteral(i)&&I.uinteger(i.startLine)&&I.uinteger(i.startLine)&&(I.undefined(i.startCharacter)||I.uinteger(i.startCharacter))&&(I.undefined(i.endCharacter)||I.uinteger(i.endCharacter))&&(I.undefined(i.kind)||I.string(i.kind))}e.is=n})(Ap||(Ap={}));var Mu;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return I.defined(i)&&Ga.is(i.location)&&I.string(i.message)}e.is=n})(Mu||(Mu={}));var Np;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Np||(Np={}));var Op;(function(e){e.Unnecessary=1,e.Deprecated=2})(Op||(Op={}));var Pp;(function(e){function t(n){const r=n;return I.objectLiteral(r)&&I.string(r.href)}e.is=t})(Pp||(Pp={}));var za;(function(e){function t(r,i,o,s,a,l){let c={range:r,message:i};return I.defined(o)&&(c.severity=o),I.defined(s)&&(c.code=s),I.defined(a)&&(c.source=a),I.defined(l)&&(c.relatedInformation=l),c}e.create=t;function n(r){var i;let o=r;return I.defined(o)&&Je.is(o.range)&&I.string(o.message)&&(I.number(o.severity)||I.undefined(o.severity))&&(I.integer(o.code)||I.string(o.code)||I.undefined(o.code))&&(I.undefined(o.codeDescription)||I.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(I.string(o.source)||I.undefined(o.source))&&(I.undefined(o.relatedInformation)||I.typedArray(o.relatedInformation,Mu.is))}e.is=n})(za||(za={}));var Ji;(function(e){function t(r,i,...o){let s={title:r,command:i};return I.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function n(r){let i=r;return I.defined(i)&&I.string(i.title)&&I.string(i.command)}e.is=n})(Ji||(Ji={}));var Zi;(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){const s=o;return I.objectLiteral(s)&&I.string(s.newText)&&Je.is(s.range)}e.is=i})(Zi||(Zi={}));var Lu;(function(e){function t(r,i,o){const s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function n(r){const i=r;return I.objectLiteral(i)&&I.string(i.label)&&(I.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(I.string(i.description)||i.description===void 0)}e.is=n})(Lu||(Lu={}));var eo;(function(e){function t(n){const r=n;return I.string(r)}e.is=t})(eo||(eo={}));var Ip;(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function i(o){const s=o;return Zi.is(s)&&(Lu.is(s.annotationId)||eo.is(s.annotationId))}e.is=i})(Ip||(Ip={}));var ku;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return I.defined(i)&&Bu.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(ku||(ku={}));var $u;(function(e){function t(r,i,o){let s={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&I.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||I.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||I.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||eo.is(i.annotationId))}e.is=n})($u||($u={}));var Fu;(function(e){function t(r,i,o,s){let a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&I.string(i.oldUri)&&I.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||I.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||I.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||eo.is(i.annotationId))}e.is=n})(Fu||(Fu={}));var Vu;(function(e){function t(r,i,o){let s={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&I.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||I.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||I.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||eo.is(i.annotationId))}e.is=n})(Vu||(Vu={}));var ju;(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>I.string(i.kind)?$u.is(i)||Fu.is(i)||Vu.is(i):ku.is(i)))}e.is=t})(ju||(ju={}));var Dp;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return I.defined(i)&&I.string(i.uri)}e.is=n})(Dp||(Dp={}));var Rp;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return I.defined(i)&&I.string(i.uri)&&I.integer(i.version)}e.is=n})(Rp||(Rp={}));var Bu;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return I.defined(i)&&I.string(i.uri)&&(i.version===null||I.integer(i.version))}e.is=n})(Bu||(Bu={}));var Mp;(function(e){function t(r,i,o,s){return{uri:r,languageId:i,version:o,text:s}}e.create=t;function n(r){let i=r;return I.defined(i)&&I.string(i.uri)&&I.string(i.languageId)&&I.integer(i.version)&&I.string(i.text)}e.is=n})(Mp||(Mp={}));var Uu;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(Uu||(Uu={}));var Ko;(function(e){function t(n){const r=n;return I.objectLiteral(n)&&Uu.is(r.kind)&&I.string(r.value)}e.is=t})(Ko||(Ko={}));var Lp;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Lp||(Lp={}));var Hi;(function(e){e.PlainText=1,e.Snippet=2})(Hi||(Hi={}));var kp;(function(e){e.Deprecated=1})(kp||(kp={}));var $p;(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){const i=r;return i&&I.string(i.newText)&&Je.is(i.insert)&&Je.is(i.replace)}e.is=n})($p||($p={}));var dr;(function(e){e.asIs=1,e.adjustIndentation=2})(dr||(dr={}));var Fp;(function(e){function t(n){const r=n;return r&&(I.string(r.detail)||r.detail===void 0)&&(I.string(r.description)||r.description===void 0)}e.is=t})(Fp||(Fp={}));var Vp;(function(e){function t(n){return{label:n}}e.create=t})(Vp||(Vp={}));var jp;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(jp||(jp={}));var Ya;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){const i=r;return I.string(i)||I.objectLiteral(i)&&I.string(i.language)&&I.string(i.value)}e.is=n})(Ya||(Ya={}));var Bp;(function(e){function t(n){let r=n;return!!r&&I.objectLiteral(r)&&(Ko.is(r.contents)||Ya.is(r.contents)||I.typedArray(r.contents,Ya.is))&&(n.range===void 0||Je.is(n.range))}e.is=t})(Bp||(Bp={}));var Up;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Up||(Up={}));var Hp;(function(e){function t(n,r,...i){let o={label:n};return I.defined(r)&&(o.documentation=r),I.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(Hp||(Hp={}));var Wp;(function(e){e.Text=1,e.Read=2,e.Write=3})(Wp||(Wp={}));var qp;(function(e){function t(n,r){let i={range:n};return I.number(r)&&(i.kind=r),i}e.create=t})(qp||(qp={}));var Gp;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Gp||(Gp={}));var zp;(function(e){e.Deprecated=1})(zp||(zp={}));var Yp;(function(e){function t(n,r,i,o,s){let a={name:n,kind:r,location:{uri:o,range:i}};return s&&(a.containerName=s),a}e.create=t})(Yp||(Yp={}));var Qp;(function(e){function t(n,r,i,o){return o!==void 0?{name:n,kind:r,location:{uri:i,range:o}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(Qp||(Qp={}));var Kp;(function(e){function t(r,i,o,s,a,l){let c={name:r,detail:i,kind:o,range:s,selectionRange:a};return l!==void 0&&(c.children=l),c}e.create=t;function n(r){let i=r;return i&&I.string(i.name)&&I.number(i.kind)&&Je.is(i.range)&&Je.is(i.selectionRange)&&(i.detail===void 0||I.string(i.detail))&&(i.deprecated===void 0||I.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(Kp||(Kp={}));var Xp;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Xp||(Xp={}));var Qa;(function(e){e.Invoked=1,e.Automatic=2})(Qa||(Qa={}));var Jp;(function(e){function t(r,i,o){let s={diagnostics:r};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}e.create=t;function n(r){let i=r;return I.defined(i)&&I.typedArray(i.diagnostics,za.is)&&(i.only===void 0||I.typedArray(i.only,I.string))&&(i.triggerKind===void 0||i.triggerKind===Qa.Invoked||i.triggerKind===Qa.Automatic)}e.is=n})(Jp||(Jp={}));var Zp;(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):Ji.is(i)?s.command=i:s.edit=i,a&&o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return i&&I.string(i.title)&&(i.diagnostics===void 0||I.typedArray(i.diagnostics,za.is))&&(i.kind===void 0||I.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Ji.is(i.command))&&(i.isPreferred===void 0||I.boolean(i.isPreferred))&&(i.edit===void 0||ju.is(i.edit))}e.is=n})(Zp||(Zp={}));var em;(function(e){function t(r,i){let o={range:r};return I.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return I.defined(i)&&Je.is(i.range)&&(I.undefined(i.command)||Ji.is(i.command))}e.is=n})(em||(em={}));var tm;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return I.defined(i)&&I.uinteger(i.tabSize)&&I.boolean(i.insertSpaces)}e.is=n})(tm||(tm={}));var nm;(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return I.defined(i)&&Je.is(i.range)&&(I.undefined(i.target)||I.string(i.target))}e.is=n})(nm||(nm={}));var rm;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return I.objectLiteral(i)&&Je.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(rm||(rm={}));var im;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(im||(im={}));var om;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(om||(om={}));var sm;(function(e){function t(n){const r=n;return I.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(sm||(sm={}));var am;(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){const i=r;return i!=null&&Je.is(i.range)&&I.string(i.text)}e.is=n})(am||(am={}));var lm;(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}e.create=t;function n(r){const i=r;return i!=null&&Je.is(i.range)&&I.boolean(i.caseSensitiveLookup)&&(I.string(i.variableName)||i.variableName===void 0)}e.is=n})(lm||(lm={}));var cm;(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){const i=r;return i!=null&&Je.is(i.range)&&(I.string(i.expression)||i.expression===void 0)}e.is=n})(cm||(cm={}));var um;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){const i=r;return I.defined(i)&&Je.is(r.stoppedLocation)}e.is=n})(um||(um={}));var Hu;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(Hu||(Hu={}));var Wu;(function(e){function t(r){return{value:r}}e.create=t;function n(r){const i=r;return I.objectLiteral(i)&&(i.tooltip===void 0||I.string(i.tooltip)||Ko.is(i.tooltip))&&(i.location===void 0||Ga.is(i.location))&&(i.command===void 0||Ji.is(i.command))}e.is=n})(Wu||(Wu={}));var dm;(function(e){function t(r,i,o){const s={position:r,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function n(r){const i=r;return I.objectLiteral(i)&&Yt.is(i.position)&&(I.string(i.label)||I.typedArray(i.label,Wu.is))&&(i.kind===void 0||Hu.is(i.kind))&&i.textEdits===void 0||I.typedArray(i.textEdits,Zi.is)&&(i.tooltip===void 0||I.string(i.tooltip)||Ko.is(i.tooltip))&&(i.paddingLeft===void 0||I.boolean(i.paddingLeft))&&(i.paddingRight===void 0||I.boolean(i.paddingRight))}e.is=n})(dm||(dm={}));var fm;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(fm||(fm={}));var hm;(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(hm||(hm={}));var pm;(function(e){function t(n){return{items:n}}e.create=t})(pm||(pm={}));var mm;(function(e){e.Invoked=0,e.Automatic=1})(mm||(mm={}));var gm;(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(gm||(gm={}));var vm;(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(vm||(vm={}));var ym;(function(e){function t(n){const r=n;return I.objectLiteral(r)&&Du.is(r.uri)&&I.string(r.name)}e.is=t})(ym||(ym={}));var bm;(function(e){function t(o,s,a,l){return new B2(o,s,a,l)}e.create=t;function n(o){let s=o;return!!(I.defined(s)&&I.string(s.uri)&&(I.undefined(s.languageId)||I.string(s.languageId))&&I.uinteger(s.lineCount)&&I.func(s.getText)&&I.func(s.positionAt)&&I.func(s.offsetAt))}e.is=n;function r(o,s){let a=o.getText(),l=i(s,(u,d)=>{let h=u.range.start.line-d.range.start.line;return h===0?u.range.start.character-d.range.start.character:h}),c=a.length;for(let u=l.length-1;u>=0;u--){let d=l[u],h=o.offsetAt(d.range.start),f=o.offsetAt(d.range.end);if(f<=c)a=a.substring(0,h)+d.newText+a.substring(f,a.length);else throw new Error("Overlapping edit");c=h}return a}e.applyEdits=r;function i(o,s){if(o.length<=1)return o;const a=o.length/2|0,l=o.slice(0,a),c=o.slice(a);i(l,s),i(c,s);let u=0,d=0,h=0;for(;u0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Yt.create(0,t);for(;rt?i=s:r=s+1}let o=r-1;return Yt.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1"u"}e.undefined=r;function i(f){return f===!0||f===!1}e.boolean=i;function o(f){return t.call(f)==="[object String]"}e.string=o;function s(f){return t.call(f)==="[object Number]"}e.number=s;function a(f,p,m){return t.call(f)==="[object Number]"&&p<=f&&f<=m}e.numberRange=a;function l(f){return t.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}e.integer=l;function c(f){return t.call(f)==="[object Number]"&&0<=f&&f<=2147483647}e.uinteger=c;function u(f){return t.call(f)==="[object Function]"}e.func=u;function d(f){return f!==null&&typeof f=="object"}e.objectLiteral=d;function h(f,p){return Array.isArray(f)&&f.every(p)}e.typedArray=h})(I||(I={}));class _m{constructor(t){this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const n=this._sourceText.charAt(this._pos);return this._pos++,n},this.eat=n=>{if(this._testNextCharacter(n))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=n=>{let r=this._testNextCharacter(n),i=!1;for(r&&(i=r,this._start=this._pos);r;)this._pos++,r=this._testNextCharacter(n),i=!0;return i},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=n=>{this._pos=n},this.match=(n,r=!0,i=!1)=>{let o=null,s=null;return typeof n=="string"?(s=new RegExp(n,i?"i":"g").test(this._sourceText.slice(this._pos,this._pos+n.length)),o=n):n instanceof RegExp&&(s=this._sourceText.slice(this._pos).match(n),o=s?.[0]),s!=null&&(typeof n=="string"||s instanceof Array&&this._sourceText.startsWith(s[0],this._pos))?(r&&(this._start=this._pos,o&&o.length&&(this._pos+=o.length)),s):!1},this.backUp=n=>{this._pos-=n},this.column=()=>this._pos,this.indentation=()=>{const n=this._sourceText.match(/\s*/);let r=0;if(n&&n.length!==0){const i=n[0];let o=0;for(;i.length>o;)i.charCodeAt(o)===9?r+=2:r++,o++}return r},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=t}_testNextCharacter(t){const n=this._sourceText.charAt(this._pos);let r=!1;return typeof t=="string"?r=n===t:r=t instanceof RegExp?t.test(n):t(n),r}}function Ye(e){return{ofRule:e}}function Se(e,t){return{ofRule:e,isList:!0,separator:t}}function U2(e,t){const n=e.match;return e.match=r=>{let i=!1;return n&&(i=n(r)),i&&t.every(o=>o.match&&!o.match(r))},e}function Ec(e,t){return{style:t,match:n=>n.kind===e}}function he(e,t){return{style:t||"punctuation",match:n=>n.kind==="Punctuation"&&n.value===e}}const H2=e=>e===" "||e===" "||e===","||e===` -`||e==="\r"||e==="\uFEFF"||e===" ",W2={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},q2={Document:[Se("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return U.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[at("query"),Ye(Le("def")),Ye("VariableDefinitions"),Se("Directive"),"SelectionSet"],Mutation:[at("mutation"),Ye(Le("def")),Ye("VariableDefinitions"),Se("Directive"),"SelectionSet"],Subscription:[at("subscription"),Ye(Le("def")),Ye("VariableDefinitions"),Se("Directive"),"SelectionSet"],VariableDefinitions:[he("("),Se("VariableDefinition"),he(")")],VariableDefinition:["Variable",he(":"),"Type",Ye("DefaultValue")],Variable:[he("$","variable"),Le("variable")],DefaultValue:[he("="),"Value"],SelectionSet:[he("{"),Se("Selection"),he("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[Le("property"),he(":"),Le("qualifier"),Ye("Arguments"),Se("Directive"),Ye("SelectionSet")],Field:[Le("property"),Ye("Arguments"),Se("Directive"),Ye("SelectionSet")],Arguments:[he("("),Se("Argument"),he(")")],Argument:[Le("attribute"),he(":"),"Value"],FragmentSpread:[he("..."),Le("def"),Se("Directive")],InlineFragment:[he("..."),Ye("TypeCondition"),Se("Directive"),"SelectionSet"],FragmentDefinition:[at("fragment"),Ye(U2(Le("def"),[at("on")])),"TypeCondition",Se("Directive"),"SelectionSet"],TypeCondition:[at("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return e.value==="null"?"NullValue":"EnumValue"}},NumberValue:[Ec("Number","number")],StringValue:[{style:"string",match:e=>e.kind==="String",update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Ec("Name","builtin")],NullValue:[Ec("Name","keyword")],EnumValue:[Le("string-2")],ListValue:[he("["),Se("Value"),he("]")],ObjectValue:[he("{"),Se("ObjectField"),he("}")],ObjectField:[Le("attribute"),he(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[he("["),"Type",he("]"),Ye(he("!"))],NonNullType:["NamedType",Ye(he("!"))],NamedType:[G2("atom")],Directive:[he("@","meta"),Le("meta"),Ye("Arguments")],DirectiveDef:[at("directive"),he("@","meta"),Le("meta"),Ye("ArgumentsDef"),at("on"),Se("DirectiveLocation",he("|"))],InterfaceDef:[at("interface"),Le("atom"),Ye("Implements"),Se("Directive"),he("{"),Se("FieldDef"),he("}")],Implements:[at("implements"),Se("NamedType",he("&"))],DirectiveLocation:[Le("string-2")],SchemaDef:[at("schema"),Se("Directive"),he("{"),Se("OperationTypeDef"),he("}")],OperationTypeDef:[Le("keyword"),he(":"),Le("atom")],ScalarDef:[at("scalar"),Le("atom"),Se("Directive")],ObjectTypeDef:[at("type"),Le("atom"),Ye("Implements"),Se("Directive"),he("{"),Se("FieldDef"),he("}")],FieldDef:[Le("property"),Ye("ArgumentsDef"),he(":"),"Type",Se("Directive")],ArgumentsDef:[he("("),Se("InputValueDef"),he(")")],InputValueDef:[Le("attribute"),he(":"),"Type",Ye("DefaultValue"),Se("Directive")],UnionDef:[at("union"),Le("atom"),Se("Directive"),he("="),Se("UnionMember",he("|"))],UnionMember:["NamedType"],EnumDef:[at("enum"),Le("atom"),Se("Directive"),he("{"),Se("EnumValueDef"),he("}")],EnumValueDef:[Le("string-2"),Se("Directive")],InputDef:[at("input"),Le("atom"),Se("Directive"),he("{"),Se("InputValueDef"),he("}")],ExtendDef:[at("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return U.SCHEMA_EXTENSION;case"scalar":return U.SCALAR_TYPE_EXTENSION;case"type":return U.OBJECT_TYPE_EXTENSION;case"interface":return U.INTERFACE_TYPE_EXTENSION;case"union":return U.UNION_TYPE_EXTENSION;case"enum":return U.ENUM_TYPE_EXTENSION;case"input":return U.INPUT_OBJECT_TYPE_EXTENSION}},[U.SCHEMA_EXTENSION]:["SchemaDef"],[U.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[U.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[U.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[U.UNION_TYPE_EXTENSION]:["UnionDef"],[U.ENUM_TYPE_EXTENSION]:["EnumDef"],[U.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function at(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function Le(e){return{style:e,match:t=>t.kind==="Name",update(t,n){t.name=n.value}}}function G2(e){return{style:e,match:t=>t.kind==="Name",update(t,n){var r;!((r=t.prevState)===null||r===void 0)&&r.prevState&&(t.name=n.value,t.prevState.prevState.type=n.value)}}}function z2(e={eatWhitespace:t=>t.eatWhile(H2),lexRules:W2,parseRules:q2,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Ao(e.parseRules,t,U.DOCUMENT),t},token(t,n){return Y2(t,n,e)}}}function Y2(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:i,parseRules:o,eatWhitespace:s,editorConfig:a}=n;if(t.rule&&t.rule.length===0?uf(t):t.needsAdvance&&(t.needsAdvance=!1,qu(t,!0)),e.sol()){const u=a?.tabSize||2;t.indentLevel=Math.floor(e.indentation()/u)}if(s(e))return"ws";const l=K2(i,e);if(!l)return e.match(/\S+/)||e.match(/\s/),Ao(wc,t,"Invalid"),"invalidchar";if(l.kind==="Comment")return Ao(wc,t,"Comment"),"comment";const c=Tm({},t);if(l.kind==="Punctuation"){if(/^[{([]/.test(l.value))t.indentLevel!==void 0&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(l.value)){const u=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&u.length>0&&u.at(-1){let t=An.UNKNOWN;if(e)try{Nn(Jn(e),{enter(n){if(n.kind==="Document"){t=An.EXECUTABLE;return}return X2.includes(n.kind)?(t=An.TYPE_SYSTEM,KE):!1}})}catch{return t}return t};function Z2(e,t){return t?.endsWith(".graphqls")?An.TYPE_SYSTEM:J2(e)}function eS(e,t,n=0){let r=null,i=null,o=null;const s=Cl(e,(a,l,c,u)=>{if(!(u!==t.line||a.getCurrentPosition()+n=0;i--)t(n[i])}function nS(e){let t;return uy(e,n=>{switch(n.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=n;break}}),t}function rS(e,t){let n,r,i,o,s,a,l,c,u,d,h;return uy(t,f=>{var p;switch(f.kind){case G.QUERY:case"ShortQuery":d=e.getQueryType();break;case G.MUTATION:d=e.getMutationType();break;case G.SUBSCRIPTION:d=e.getSubscriptionType();break;case G.INLINE_FRAGMENT:case G.FRAGMENT_DEFINITION:f.type&&(d=e.getType(f.type));break;case G.FIELD:case G.ALIASED_FIELD:{!d||!f.name?s=null:(s=u?wm(e,u,f.name):null,d=s?s.type:null);break}case G.SELECTION_SET:u=pt(d);break;case G.DIRECTIVE:i=f.name?e.getDirective(f.name):null;break;case G.INTERFACE_DEF:f.name&&(l=null,h=new Ui({name:f.name,interfaces:[],fields:{}}));break;case G.OBJECT_TYPE_DEF:f.name&&(h=null,l=new vn({name:f.name,interfaces:[],fields:{}}));break;case G.ARGUMENTS:{if(f.prevState)switch(f.prevState.kind){case G.FIELD:r=s&&s.args;break;case G.DIRECTIVE:r=i&&i.args;break;case G.ALIASED_FIELD:{const b=(p=f.prevState)===null||p===void 0?void 0:p.name;if(!b){r=null;break}const T=u?wm(e,u,b):null;if(!T){r=null;break}r=T.args;break}default:r=null;break}else r=null;break}case G.ARGUMENT:if(r){for(let b=0;bb.value===f.name):null;break;case G.LIST_VALUE:const v=i1(a);a=v instanceof Et?v.ofType:null;break;case G.OBJECT_VALUE:const g=pt(a);c=g instanceof Yd?g.getFields():null;break;case G.OBJECT_FIELD:const _=f.name&&c?c[f.name]:null;a=_?.type,s=_,d=s?s.type:null;break;case G.NAMED_TYPE:f.name&&(d=e.getType(f.name));break}}),{argDef:n,argDefs:r,directiveDef:i,enumValue:o,fieldDef:s,inputType:a,objectFieldDefs:c,parentType:u,type:d,interfaceDef:h,objectTypeDef:l}}const iS={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type",VARIABLE:"Variable"},G=Object.assign(Object.assign({},U),iS);var ye;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(ye||(ye={}));const Gu={command:"editor.action.triggerSuggest",title:"Suggestions"},oS=e=>{const t=[];if(e)try{Nn(Jn(e),{FragmentDefinition(n){t.push(n)}})}catch{return[]}return t};function L9(e,t,n,r,i,o){var s;const a=Object.assign(Object.assign({},o),{schema:e}),l=tS(t,n,e,r,o);if(!l)return[];const{state:c,typeInfo:u,mode:d,token:h}=l,{kind:f,step:p,prevState:m}=c;if(f===G.DOCUMENT)return d===An.TYPE_SYSTEM?sS(h):d===An.EXECUTABLE?aS(h):lS(h);if(f===G.EXTEND_DEF)return cS(h);if(((s=m?.prevState)===null||s===void 0?void 0:s.kind)===G.EXTENSION_DEFINITION&&c.name)return ke(h,[]);if(m?.kind===U.SCALAR_TYPE_EXTENSION)return ke(h,Object.values(e.getTypeMap()).filter(Zn).map(g=>({label:g.name,kind:ye.Function})));if(m?.kind===U.OBJECT_TYPE_EXTENSION)return ke(h,Object.values(e.getTypeMap()).filter(g=>$e(g)&&!g.name.startsWith("__")).map(g=>({label:g.name,kind:ye.Function})));if(m?.kind===U.INTERFACE_TYPE_EXTENSION)return ke(h,Object.values(e.getTypeMap()).filter(Ve).map(g=>({label:g.name,kind:ye.Function})));if(m?.kind===U.UNION_TYPE_EXTENSION)return ke(h,Object.values(e.getTypeMap()).filter(Bt).map(g=>({label:g.name,kind:ye.Function})));if(m?.kind===U.ENUM_TYPE_EXTENSION)return ke(h,Object.values(e.getTypeMap()).filter(g=>Dt(g)&&!g.name.startsWith("__")).map(g=>({label:g.name,kind:ye.Function})));if(m?.kind===U.INPUT_OBJECT_TYPE_EXTENSION)return ke(h,Object.values(e.getTypeMap()).filter(st).map(g=>({label:g.name,kind:ye.Function})));if(f===G.IMPLEMENTS||f===G.NAMED_TYPE&&m?.kind===G.IMPLEMENTS)return fS(h,c,e,t,u);if(f===G.SELECTION_SET||f===G.FIELD||f===G.ALIASED_FIELD)return uS(h,u,a);if(f===G.ARGUMENTS||f===G.ARGUMENT&&p===0){const{argDefs:g}=u;if(g)return ke(h,g.map(_=>{var b;return{label:_.name,insertText:_p(_.name+": ",_.type),insertTextMode:dr.adjustIndentation,insertTextFormat:Hi.Snippet,command:Gu,labelDetails:{detail:" "+String(_.type)},documentation:(b=_.description)!==null&&b!==void 0?b:void 0,kind:ye.Variable,type:_.type}}))}if((f===G.OBJECT_VALUE||f===G.OBJECT_FIELD&&p===0)&&u.objectFieldDefs){const g=wr(u.objectFieldDefs),_=f===G.OBJECT_VALUE?ye.Value:ye.Field;return ke(h,g.map(b=>{var T;return{label:b.name,detail:String(b.type),documentation:(T=b?.description)!==null&&T!==void 0?T:void 0,kind:_,type:b.type,insertText:_p(b.name+": ",b.type),insertTextMode:dr.adjustIndentation,insertTextFormat:Hi.Snippet,command:Gu}}))}if(f===G.ENUM_VALUE||f===G.LIST_VALUE&&p===1||f===G.OBJECT_FIELD&&p===2||f===G.ARGUMENT&&p===2)return dS(h,u,t,e);if(f===G.VARIABLE&&p===1){const g=pt(u.inputType),_=fy(t,e,h);return ke(h,_.filter(b=>b.detail===g?.name))}if(f===G.TYPE_CONDITION&&p===1||f===G.NAMED_TYPE&&m!=null&&m.kind===G.TYPE_CONDITION)return hS(h,u,e);if(f===G.FRAGMENT_SPREAD&&p===1)return pS(h,u,e,t,Array.isArray(i)?i:oS(i));const v=hy(c);return v.kind===G.FIELD_DEF?ke(h,Object.values(e.getTypeMap()).filter(g=>vr(g)&&!g.name.startsWith("__")).map(g=>({label:g.name,kind:ye.Function,insertText:o?.fillLeafsOnComplete?g.name+` -`:g.name,insertTextMode:dr.adjustIndentation}))):v.kind===G.INPUT_VALUE_DEF&&p===2?ke(h,Object.values(e.getTypeMap()).filter(g=>$t(g)&&!g.name.startsWith("__")).map(g=>({label:g.name,kind:ye.Function,insertText:o?.fillLeafsOnComplete?g.name+` -$1`:g.name,insertTextMode:dr.adjustIndentation,insertTextFormat:Hi.Snippet}))):f===G.VARIABLE_DEFINITION&&p===2||f===G.LIST_TYPE&&p===1||f===G.NAMED_TYPE&&m&&(m.kind===G.VARIABLE_DEFINITION||m.kind===G.LIST_TYPE||m.kind===G.NON_NULL_TYPE)?vS(h,e):f===G.DIRECTIVE?yS(h,c,e):f===G.DIRECTIVE_DEF?bS(h,c,e):[]}const df=[{label:"type",kind:ye.Function},{label:"interface",kind:ye.Function},{label:"union",kind:ye.Function},{label:"input",kind:ye.Function},{label:"scalar",kind:ye.Function},{label:"schema",kind:ye.Function}],dy=[{label:"query",kind:ye.Function},{label:"mutation",kind:ye.Function},{label:"subscription",kind:ye.Function},{label:"fragment",kind:ye.Function},{label:"{",kind:ye.Constructor}];function sS(e){return ke(e,[{label:"extend",kind:ye.Function},...df])}function aS(e){return ke(e,dy)}function lS(e){return ke(e,[{label:"extend",kind:ye.Function},...dy,...df])}function cS(e){return ke(e,df)}function uS(e,t,n){var r;if(t.parentType){const{parentType:i}=t;let o=[];return"getFields"in i&&(o=wr(i.getFields())),qn(i)&&o.push(Go),i===((r=n?.schema)===null||r===void 0?void 0:r.getQueryType())&&o.push(Wo,qo),ke(e,o.map((s,a)=>{var l;const c={sortText:String(a)+s.name,label:s.name,detail:String(s.type),documentation:(l=s.description)!==null&&l!==void 0?l:void 0,deprecated:!!s.deprecationReason,isDeprecated:!!s.deprecationReason,deprecationReason:s.deprecationReason,kind:ye.Field,labelDetails:{detail:" "+s.type.toString()},type:s.type};return n?.fillLeafsOnComplete&&(c.insertText=j2(s),c.insertText||(c.insertText=Wa(s.name,s.type,s.name+(e.state.needsAdvance?"":` -`))),c.insertText&&(c.insertTextFormat=Hi.Snippet,c.insertTextMode=dr.adjustIndentation,c.command=Gu)),c}))}return[]}function dS(e,t,n,r){const i=pt(t.inputType),o=fy(n,r,e).filter(s=>s.detail===i?.name);if(i instanceof so){const s=i.getValues();return ke(e,s.map(a=>{var l;return{label:a.name,detail:String(i),documentation:(l=a.description)!==null&&l!==void 0?l:void 0,deprecated:!!a.deprecationReason,isDeprecated:!!a.deprecationReason,deprecationReason:a.deprecationReason,kind:ye.EnumMember,type:i}}).concat(o))}return i===it?ke(e,o.concat([{label:"true",detail:String(it),documentation:"Not false.",kind:ye.Variable,type:it},{label:"false",detail:String(it),documentation:"Not true.",kind:ye.Variable,type:it}])):o}function fS(e,t,n,r,i){if(t.needsSeparator)return[];const o=n.getTypeMap(),s=wr(o).filter(Ve),a=s.map(({name:f})=>f),l=new Set;Cl(r,(f,p)=>{var m,v,g,_,b;if(p.name&&(p.kind===G.INTERFACE_DEF&&!a.includes(p.name)&&l.add(p.name),p.kind===G.NAMED_TYPE&&((m=p.prevState)===null||m===void 0?void 0:m.kind)===G.IMPLEMENTS)){if(i.interfaceDef){if((v=i.interfaceDef)===null||v===void 0?void 0:v.getInterfaces().find(({name:C})=>C===p.name))return;const E=n.getType(p.name),S=(g=i.interfaceDef)===null||g===void 0?void 0:g.toConfig();i.interfaceDef=new Ui(Object.assign(Object.assign({},S),{interfaces:[...S.interfaces,E||new Ui({name:p.name,fields:{}})]}))}else if(i.objectTypeDef){if((_=i.objectTypeDef)===null||_===void 0?void 0:_.getInterfaces().find(({name:C})=>C===p.name))return;const E=n.getType(p.name),S=(b=i.objectTypeDef)===null||b===void 0?void 0:b.toConfig();i.objectTypeDef=new vn(Object.assign(Object.assign({},S),{interfaces:[...S.interfaces,E||new Ui({name:p.name,fields:{}})]}))}}});const c=i.interfaceDef||i.objectTypeDef,d=(c?.getInterfaces()||[]).map(({name:f})=>f),h=s.concat([...l].map(f=>({name:f}))).filter(({name:f})=>f!==c?.name&&!d.includes(f));return ke(e,h.map(f=>{const p={label:f.name,kind:ye.Interface,type:f};return f?.description&&(p.documentation=f.description),p}))}function hS(e,t,n,r){let i;if(t.parentType)if(xn(t.parentType)){const o=pw(t.parentType),s=n.getPossibleTypes(o),a=Object.create(null);for(const l of s)for(const c of l.getInterfaces())a[c.name]=c;i=s.concat(wr(a))}else i=[t.parentType];else{const o=n.getTypeMap();i=wr(o).filter(s=>qn(s)&&!s.name.startsWith("__"))}return ke(e,i.map(o=>{const s=pt(o);return{label:String(o),documentation:s?.description||"",kind:ye.Field}}))}function pS(e,t,n,r,i){if(!r)return[];const o=n.getTypeMap(),s=nS(e.state),a=gS(r);i&&i.length>0&&a.push(...i);const l=a.filter(c=>o[c.typeCondition.name.value]&&!(s&&s.kind===G.FRAGMENT_DEFINITION&&s.name===c.name.value)&&qn(t.parentType)&&qn(o[c.typeCondition.name.value])&&bw(n,t.parentType,o[c.typeCondition.name.value]));return ke(e,l.map(c=>({label:c.name.value,detail:String(o[c.typeCondition.name.value]),documentation:`fragment ${c.name.value} on ${c.typeCondition.name.value}`,labelDetails:{detail:`fragment ${c.name.value} on ${c.typeCondition.name.value}`},kind:ye.Field,type:o[c.typeCondition.name.value]})))}const mS=(e,t)=>{var n,r,i,o,s,a,l,c,u,d;if(((n=e.prevState)===null||n===void 0?void 0:n.kind)===t)return e.prevState;if(((i=(r=e.prevState)===null||r===void 0?void 0:r.prevState)===null||i===void 0?void 0:i.kind)===t)return e.prevState.prevState;if(((a=(s=(o=e.prevState)===null||o===void 0?void 0:o.prevState)===null||s===void 0?void 0:s.prevState)===null||a===void 0?void 0:a.kind)===t)return e.prevState.prevState.prevState;if(((d=(u=(c=(l=e.prevState)===null||l===void 0?void 0:l.prevState)===null||c===void 0?void 0:c.prevState)===null||u===void 0?void 0:u.prevState)===null||d===void 0?void 0:d.kind)===t)return e.prevState.prevState.prevState.prevState};function fy(e,t,n){let r=null,i;const o=Object.create({});return Cl(e,(s,a)=>{var l;if(a?.kind===G.VARIABLE&&a.name&&(r=a.name),a?.kind===G.NAMED_TYPE&&r){const c=mS(a,G.TYPE);c?.type&&(i=t.getType(c?.type))}if(r&&i&&!o[r]){const c=n.string==="$"||((l=n?.state)===null||l===void 0?void 0:l.kind)==="Variable"?r:"$"+r;o[r]={detail:i.toString(),insertText:c,label:"$"+r,rawInsert:c,type:i,kind:ye.Variable},r=null,i=null}}),wr(o)}function gS(e){const t=[];return Cl(e,(n,r)=>{r.kind===G.FRAGMENT_DEFINITION&&r.name&&r.type&&t.push({kind:G.FRAGMENT_DEFINITION,name:{kind:U.NAME,value:r.name},selectionSet:{kind:G.SELECTION_SET,selections:[]},typeCondition:{kind:G.NAMED_TYPE,name:{kind:U.NAME,value:r.type}}})}),t}function vS(e,t,n){const r=t.getTypeMap(),i=wr(r).filter($t);return ke(e,i.map(o=>({label:o.name,documentation:o?.description||"",kind:ye.Variable})))}function yS(e,t,n,r){var i;if(!((i=t.prevState)===null||i===void 0)&&i.kind){const o=n.getDirectives().filter(s=>_S(t.prevState,s));return ke(e,o.map(s=>({label:s.name,documentation:s?.description||"",kind:ye.Function})))}return[]}function bS(e,t,n,r){const i=n.getDirectives().find(o=>o.name===t.name);return ke(e,i?.args.map(o=>({label:o.name,documentation:o.description||"",kind:ye.Field}))||[])}function _S(e,t){if(!e?.kind)return!1;const{kind:n,prevState:r}=e,{locations:i}=t;switch(n){case G.QUERY:return i.includes(ae.QUERY);case G.MUTATION:return i.includes(ae.MUTATION);case G.SUBSCRIPTION:return i.includes(ae.SUBSCRIPTION);case G.FIELD:case G.ALIASED_FIELD:return i.includes(ae.FIELD);case G.FRAGMENT_DEFINITION:return i.includes(ae.FRAGMENT_DEFINITION);case G.FRAGMENT_SPREAD:return i.includes(ae.FRAGMENT_SPREAD);case G.INLINE_FRAGMENT:return i.includes(ae.INLINE_FRAGMENT);case G.SCHEMA_DEF:return i.includes(ae.SCHEMA);case G.SCALAR_DEF:return i.includes(ae.SCALAR);case G.OBJECT_TYPE_DEF:return i.includes(ae.OBJECT);case G.FIELD_DEF:return i.includes(ae.FIELD_DEFINITION);case G.INTERFACE_DEF:return i.includes(ae.INTERFACE);case G.UNION_DEF:return i.includes(ae.UNION);case G.ENUM_DEF:return i.includes(ae.ENUM);case G.ENUM_VALUE:return i.includes(ae.ENUM_VALUE);case G.INPUT_DEF:return i.includes(ae.INPUT_OBJECT);case G.INPUT_VALUE_DEF:switch(r?.kind){case G.ARGUMENTS_DEF:return i.includes(ae.ARGUMENT_DEFINITION);case G.INPUT_DEF:return i.includes(ae.INPUT_FIELD_DEFINITION)}}return!1}function hy(e){return e.prevState&&e.kind&&[G.NAMED_TYPE,G.LIST_TYPE,G.TYPE,G.NON_NULL_TYPE].includes(e.kind)?hy(e.prevState):e}var To={exports:{}},Sm;function TS(){if(Sm)return To.exports;Sm=1;function e(t,n){if(t!=null)return t;var r=new Error(n!==void 0?n:"Got unexpected "+t);throw r.framesToPop=1,r}return To.exports=e,To.exports.default=e,Object.defineProperty(To.exports,"__esModule",{value:!0}),To.exports}var ES=TS();const xm=yl(ES),wS=(e,t)=>{if(!t)return[];const n=new Map,r=new Set;Nn(e,{FragmentDefinition(s){n.set(s.name.value,!0)},FragmentSpread(s){r.has(s.name.value)||r.add(s.name.value)}});const i=new Set;for(const s of r)!n.has(s)&&t.has(s)&&i.add(xm(t.get(s)));const o=[];for(const s of i)Nn(s,{FragmentSpread(a){!r.has(a.name.value)&&t.get(a.name.value)&&(i.add(xm(t.get(a.name.value))),r.add(a.name.value))}}),n.has(s.name.value)||o.push(s);return o};function SS(e,t){const n=Object.create(null);for(const r of t.definitions)if(r.kind==="OperationDefinition"){const{variableDefinitions:i}=r;if(i)for(const{variable:o,type:s}of i){const a=zo(e,s);a?n[o.name.value]=a:s.kind===U.NAMED_TYPE&&s.name.value==="Float"&&(n[o.name.value]=h1)}}return n}function xS(e,t){const n=t?SS(t,e):void 0,r=[];return Nn(e,{OperationDefinition(i){r.push(i)}}),{variableToType:n,operations:r}}function CS(e,t){if(t)try{const n=Jn(t);return Object.assign(Object.assign({},xS(n,e)),{documentAST:n})}catch{return}}/*! - * is-primitive - * - * Copyright (c) 2014-present, Jon Schlinkert. - * Released under the MIT License. - */var Sc,Cm;function AS(){return Cm||(Cm=1,Sc=function(t){return typeof t=="object"?t===null:typeof t!="function"}),Sc}/*! - * isobject - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var xc,Am;function py(){return Am||(Am=1,xc=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}),xc}/*! - * is-plain-object - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var Cc,Nm;function NS(){if(Nm)return Cc;Nm=1;var e=py();function t(n){return e(n)===!0&&Object.prototype.toString.call(n)==="[object Object]"}return Cc=function(r){var i,o;return!(t(r)===!1||(i=r.constructor,typeof i!="function")||(o=i.prototype,t(o)===!1)||o.hasOwnProperty("isPrototypeOf")===!1)},Cc}/*! - * set-value - * - * Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert). - * Released under the MIT License. - */var Ac,Om;function OS(){if(Om)return Ac;Om=1;const{deleteProperty:e}=Reflect,t=AS(),n=NS(),r=f=>typeof f=="object"&&f!==null||typeof f=="function",i=f=>f==="__proto__"||f==="constructor"||f==="prototype",o=f=>{if(!t(f))throw new TypeError("Object keys must be strings or symbols");if(i(f))throw new Error(`Cannot set unsafe key: "${f}"`)},s=f=>Array.isArray(f)?f.flat().map(String).join(","):f,a=(f,p)=>{if(typeof f!="string"||!p)return f;let m=f+";";return p.arrays!==void 0&&(m+=`arrays=${p.arrays};`),p.separator!==void 0&&(m+=`separator=${p.separator};`),p.split!==void 0&&(m+=`split=${p.split};`),p.merge!==void 0&&(m+=`merge=${p.merge};`),p.preservePaths!==void 0&&(m+=`preservePaths=${p.preservePaths};`),m},l=(f,p,m)=>{const v=s(p?a(f,p):f);o(v);const g=h.cache.get(v)||m();return h.cache.set(v,g),g},c=(f,p={})=>{const m=p.separator||".",v=m==="/"?!1:p.preservePaths;if(typeof f=="string"&&v!==!1&&/\//.test(f))return[f];const g=[];let _="";const b=T=>{let E;T.trim()!==""&&Number.isInteger(E=Number(T))?g.push(E):g.push(T)};for(let T=0;Tp&&typeof p.split=="function"?p.split(f):typeof f=="symbol"?[f]:Array.isArray(f)?f:l(f,p,()=>c(f,p)),d=(f,p,m,v)=>{if(o(p),m===void 0)e(f,p);else if(v&&v.merge){const g=v.merge==="function"?v.merge:Object.assign;g&&n(f[p])&&n(m)?f[p]=g(f[p],m):f[p]=m}else f[p]=m;return f},h=(f,p,m,v)=>{if(!p||!r(f))return f;const g=u(p,v);let _=f;for(let b=0;b{h.cache=new Map},Ac=h,Ac}var PS=OS();const Nc=yl(PS);/*! - * get-value - * - * Copyright (c) 2014-2018, Jon Schlinkert. - * Released under the MIT License. - */var Oc,Pm;function IS(){if(Pm)return Oc;Pm=1;const e=py();Oc=function(o,s,a){if(e(a)||(a={default:a}),!i(o))return typeof a.default<"u"?a.default:o;typeof s=="number"&&(s=String(s));const l=Array.isArray(s),c=typeof s=="string",u=a.separator||".",d=a.joinChar||(typeof u=="string"?u:".");if(!c&&!l)return o;if(c&&s in o)return r(s,o,a)?o[s]:a.default;let h=l?s:n(s,u,a),f=h.length,p=0;do{let m=h[p];for(typeof m=="number"&&(m=String(m));m&&m.slice(-1)==="\\";)m=t([m.slice(0,-1),h[++p]||""],d,a);if(m in o){if(!r(m,o,a))return a.default;o=o[m]}else{let v=!1,g=p+1;for(;g{let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const h=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(f=>f(t,h))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(r,i,a);return a},_s=e=>e?Im(e):Im,MS=e=>e;function LS(e,t=MS){const n=pe.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return pe.useDebugValue(n),n}const Ts=e=>t=>LS(e,t),ao=_s(()=>({storage:null})),kS=e=>{const t=K.c(3),{storage:n,children:r}=e,i=vy($S);let o,s;return t[0]!==n?(o=()=>{ao.setState({storage:new R2(n)})},s=[n],t[0]=n,t[1]=o,t[2]=s):(o=t[1],s=t[2]),B(o,s),i?r:null},vy=Ts(ao),lo=()=>vy(FS);function $S(e){return!!e.storage}function FS(e){return e.storage}const ff=typeof navigator<"u"&&navigator.userAgent.includes("Mac"),Al="graphiql",Nl="sublime",Ol={[ff?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function Es(e,t){const n=await Ae(()=>import("./codemirror-CgvGFWt9.js").then(r=>r.c),__vite__mapDeps([0,1,2,3]),import.meta.url).then(r=>typeof r=="function"?r:r.default);return await Promise.all(t?.useCommonAddons===!1?e:[Ae(()=>import("./show-hint-BWIlB5BH.js").then(r=>r.s),__vite__mapDeps([4,1,2,3]),import.meta.url),Ae(()=>import("./matchbrackets-CO3vsA4X.js").then(r=>r.m),__vite__mapDeps([5,1,2,6,3]),import.meta.url),Ae(()=>import("./closebrackets-DZg8XFBI.js").then(r=>r.c),__vite__mapDeps([7,1,2,3]),import.meta.url),Ae(()=>import("./brace-fold-D2mMF0kw.js").then(r=>r.b),__vite__mapDeps([8,1,2,3]),import.meta.url),Ae(()=>import("./foldgutter-DUYQ7IB6.js").then(r=>r.f),__vite__mapDeps([9,1,2,3]),import.meta.url),Ae(()=>import("./lint-KdYI32E0.js").then(r=>r.l),__vite__mapDeps([10,1,2,3]),import.meta.url),Ae(()=>import("./searchcursor-4aVNBPts.js").then(r=>r.s),__vite__mapDeps([11,1,2,12,3]),import.meta.url),Ae(()=>import("./jump-to-line-Df5wL-rR.js").then(r=>r.j),__vite__mapDeps([13,1,2,3,14]),import.meta.url),Ae(()=>import("./dialog-CLUkjEIt.js").then(r=>r.d),__vite__mapDeps([15,1,2,14,3]),import.meta.url),Ae(()=>import("./sublime-DT7RUNbp.js").then(r=>r.s),__vite__mapDeps([16,1,2,3,12,6]),import.meta.url),...e]),n}var Pc,Dm;function VS(){return Dm||(Dm=1,Pc=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=t[s.format]||t.default;window.clipboardData.setData(v,o)}else m.clipboardData.clearData(),m.clipboardData.setData(s.format,o);s.onCopy&&(m.preventDefault(),s.onCopy(m.clipboardData))}),document.body.appendChild(h),u.selectNodeContents(h),d.addRange(u);var p=document.execCommand("copy");if(!p)throw new Error("copy command was unsuccessful");f=!0}catch(m){a&&console.error("unable to copy using execCommand: ",m),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",o),s.onCopy&&s.onCopy(window.clipboardData),f=!0}catch(v){a&&console.error("unable to copy using clipboardData: ",v),a&&console.error("falling back to prompt"),l=r("message"in s?s.message:n),window.prompt(l,o)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(u):d.removeAllRanges()),h&&document.body.removeChild(h),c()}return f}return Ic=i,Ic}var BS=jS();const US=yl(BS),zu=_s((e,t)=>({plugins:[],visiblePlugin:null,referencePlugin:void 0,setVisiblePlugin(n){const{plugins:r,onTogglePluginVisibility:i}=t(),o=typeof n=="string",s=n&&r.find(a=>(o?a.title:a)===n)||null;e(({visiblePlugin:a})=>s===a?{visiblePlugin:a}:(i?.(s),{visiblePlugin:s}))}})),HS=e=>{const t=K.c(8),{onTogglePluginVisibility:n,children:r,visiblePlugin:i,plugins:o,referencePlugin:s}=e;let a;t[0]!==o?(a=o===void 0?[]:o,t[0]=o,t[1]=a):a=t[1];const l=a;let c,u;return t[2]!==n||t[3]!==l||t[4]!==s||t[5]!==i?(c=()=>{const d=new Set;for(const{title:h}of l){if(typeof h!="string"||!h)throw new Error("All GraphiQL plugins must have a unique title");if(d.has(h))throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${h}'`);d.add(h)}zu.setState({plugins:l,onTogglePluginVisibility:n,referencePlugin:s}),zu.getState().setVisiblePlugin(i??null)},u=[l,n,s,i],t[2]=n,t[3]=l,t[4]=s,t[5]=i,t[6]=c,t[7]=u):(c=t[6],u=t[7]),B(c,u),r},Pl=Ts(zu),Lo=_s((e,t)=>({inputValueDeprecation:null,introspectionQueryName:null,schemaDescription:null,fetcher:null,onSchemaChange:void 0,fetchError:null,isFetching:!1,schema:null,validationErrors:[],schemaReference:null,setSchemaReference(n){e({schemaReference:n})},requestCounter:0,shouldIntrospect:!0,async introspect(){const{requestCounter:n,fetcher:r,onSchemaChange:i,shouldIntrospect:o,headerEditor:s,...a}=t();if(!o)return;const l=n+1;e({requestCounter:l});try{const c=s?.getValue(),u=qS(c);if(!u.isValidJSON){e({fetchError:"Introspection failed as headers are invalid."});return}const d=u.headers?{headers:u.headers}:{},{introspectionQuery:h,introspectionQueryName:f,introspectionQuerySansSubscriptions:p}=WS(a),m=vp(r({query:h,operationName:f},d));if(!gp(m)){e({fetchError:"Fetcher did not return a Promise for introspection."});return}e({isFetching:!0,fetchError:null});let v=await m;if(typeof v!="object"||v===null||!("data"in v)){const b=vp(r({query:p,operationName:f},d));if(!gp(b))throw new Error("Fetcher did not return a Promise for introspection.");v=await b}e({isFetching:!1});let g;if(v?.data&&"__schema"in v.data)g=v.data;else{const b=typeof v=="string"?v:Iu(v);e({fetchError:b})}if(l!==t().requestCounter||!g)return;const _=Ww(g);e({schema:_}),i?.(_)}catch(c){if(l!==t().requestCounter)return;e({fetchError:Ha(c),isFetching:!1})}}})),yy=e=>{const t=K.c(14),{fetcher:n,onSchemaChange:r,dangerouslyAssumeSchemaIsValid:i,children:o,schema:s,inputValueDeprecation:a,introspectionQueryName:l,schemaDescription:c}=e,u=i===void 0?!1:i,d=a===void 0?!1:a,h=l===void 0?"IntrospectionQuery":l,f=c===void 0?!1:c;if(!n)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={nonNull:!0,caller:yy},t[0]=p):p=t[0];const{headerEditor:m}=ut(p);let v,g;t[1]!==m?(v=()=>{m&&Lo.setState({headerEditor:m})},g=[m],t[1]=m,t[2]=v,t[3]=g):(v=t[2],g=t[3]),B(v,g);let _,b;t[4]!==u||t[5]!==n||t[6]!==d||t[7]!==h||t[8]!==r||t[9]!==s||t[10]!==f?(_=()=>{const E=wu(s)||s==null?s:void 0,S=!E||u?[]:S1(E);Lo.setState(C=>{const{requestCounter:x}=C;return{fetcher:n,onSchemaChange:r,schema:E,shouldIntrospect:!wu(s)&&s!==null,inputValueDeprecation:d,introspectionQueryName:h,schemaDescription:f,validationErrors:S,requestCounter:x+1}}),Lo.getState().introspect()},b=[s,u,r,n,d,h,f],t[4]=u,t[5]=n,t[6]=d,t[7]=h,t[8]=r,t[9]=s,t[10]=f,t[11]=_,t[12]=b):(_=t[11],b=t[12]),B(_,b);let T;return t[13]===Symbol.for("react.memo_cache_sentinel")?(T=[],t[13]=T):T=t[13],B(GS,T),o},yn=Ts(Lo);function WS({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){const r=XE({inputValueDeprecation:e,schemaDescription:n}),i=t==="IntrospectionQuery"?r:r.replace("query IntrospectionQuery",`query ${t}`),o=r.replace("subscriptionType { name }","");return{introspectionQueryName:t,introspectionQuery:i,introspectionQuerySansSubscriptions:o}}function qS(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch{n=!1}return{headers:t,isValidJSON:n}}function GS(){const e=function(n){n.ctrlKey&&n.key==="R"&&Lo.getState().introspect()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}const Ka=new JE({breaks:!1,linkify:!0});function zS(e,t,{schema:n,setSchemaReference:r},i,o){Es([],{useCommonAddons:!1}).then(a=>{let l,c,u,d,h,f,p,m,v;a.on(t,"select",(g,_)=>{if(!l){const b=_.parentNode;l=document.createElement("div"),l.className="CodeMirror-hint-information",b.append(l);const T=document.createElement("header");T.className="CodeMirror-hint-information-header",l.append(T),c=document.createElement("span"),c.className="CodeMirror-hint-information-field-name",T.append(c),u=document.createElement("span"),u.className="CodeMirror-hint-information-type-name-pill",T.append(u),d=document.createElement("span"),u.append(d),h=document.createElement("a"),h.className="CodeMirror-hint-information-type-name",h.href="javascript:void 0",h.addEventListener("click",s),u.append(h),f=document.createElement("span"),u.append(f),p=document.createElement("div"),p.className="CodeMirror-hint-information-description",l.append(p),m=document.createElement("div"),m.className="CodeMirror-hint-information-deprecation",l.append(m);const E=document.createElement("span");E.className="CodeMirror-hint-information-deprecation-label",E.textContent="Deprecated",m.append(E),v=document.createElement("div"),v.className="CodeMirror-hint-information-deprecation-reason",m.append(v);const S=parseInt(window.getComputedStyle(l).paddingBottom.replace(/px$/,""),10)||0,C=parseInt(window.getComputedStyle(l).maxHeight.replace(/px$/,""),10)||0,x=()=>{l&&(l.style.paddingTop=b.scrollTop+S+"px",l.style.maxHeight=b.scrollTop+C+"px")};b.addEventListener("scroll",x);let w;b.addEventListener("DOMNodeRemoved",w=N=>{N.target===b&&(b.removeEventListener("scroll",x),b.removeEventListener("DOMNodeRemoved",w),l?.removeEventListener("click",s),l=null,c=null,u=null,d=null,h=null,f=null,p=null,m=null,v=null,w=null)})}if(c&&(c.textContent=g.text),u&&d&&h&&f)if(g.type){u.style.display="inline";const b=T=>{Ke(T)?(f.textContent="!"+f.textContent,b(T.ofType)):yt(T)?(d.textContent+="[",f.textContent="]"+f.textContent,b(T.ofType)):h.textContent=T.name};d.textContent="",f.textContent="",b(g.type)}else d.textContent="",h.textContent="",f.textContent="",u.style.display="none";p&&(g.description?(p.style.display="block",p.innerHTML=Ka.render(g.description)):(p.style.display="none",p.innerHTML="")),m&&v&&(g.deprecationReason?(m.style.display="block",v.innerHTML=Ka.render(g.deprecationReason)):(m.style.display="none",v.innerHTML=""))})});function s(a){const l=i?.referencePlugin;if(!n||!l||!(a.currentTarget instanceof HTMLElement))return;const c=a.currentTarget.textContent||"",u=n.getType(c);u&&(i.setVisiblePlugin(l),r({kind:"Type",type:u}),o?.(u))}}function to(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...r)},e)}}function la(e,t){const n=K.c(4);let r,i;n[0]!==e||n[1]!==t?(r=()=>{e&&typeof t=="string"&&t!==e.getValue()&&e.setValue(t)},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),B(r,i)}function Il(e,t,n){const r=K.c(5);let i,o;r[0]!==e||r[1]!==t||r[2]!==n?(i=()=>{e?.setOption(t,n)},o=[e,t,n],r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=o):(i=r[3],o=r[4]),B(i,o)}function by(e,t,n,r,i){const o=K.c(9);let s;o[0]!==i?(s={nonNull:!0,caller:i},o[0]=i,o[1]=s):s=o[1];const{updateActiveTabValues:a}=ut(s);let l,c;o[2]!==t||o[3]!==e||o[4]!==n||o[5]!==r||o[6]!==a?(l=()=>{if(!e)return;const{storage:u}=ao.getState(),d=to(500,p=>{n!==null&&u.set(n,p)}),h=to(100,p=>{a({[r]:p})}),f=(p,m)=>{if(!m)return;const v=p.getValue();d(v),h(v),t?.(v)};return e.on("change",f),()=>e.off("change",f)},c=[t,e,n,r,a],o[2]=t,o[3]=e,o[4]=n,o[5]=r,o[6]=a,o[7]=l,o[8]=c):(l=o[7],c=o[8]),B(l,c)}function _y(e,t){const n=K.c(7),{schema:r,setSchemaReference:i}=yn(),o=Pl();let s,a;n[0]!==t||n[1]!==e||n[2]!==o||n[3]!==r||n[4]!==i?(s=()=>{if(!e)return;const l=(c,u)=>{zS(c,u,{schema:r,setSchemaReference:i},o,h=>{t?.({kind:"Type",type:h,schema:r||void 0})})};return e.on("hasCompletion",l),()=>e.off("hasCompletion",l)},a=[t,e,o,r,i],n[0]=t,n[1]=e,n[2]=o,n[3]=r,n[4]=i,n[5]=s,n[6]=a):(s=n[5],a=n[6]),B(s,a)}function an(e,t,n){const r=K.c(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(e){for(const s of t)e.removeKeyMap(s);if(n){const s={};for(const a of t)s[a]=()=>n();e.addKeyMap(s)}}},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),B(i,o)}const YS=hf,QS=ws,KS=Ss,XS=Ty;function hf(e){const t=K.c(7);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r,onCopyQuery:i}=n,o=r||YS;let s;t[2]!==o?(s={nonNull:!0,caller:o},t[2]=o,t[3]=s):s=t[3];const{queryEditor:a}=ut(s);let l;return t[4]!==i||t[5]!==a?(l=()=>{if(!a)return;const c=a.getValue();US(c),i?.(c)},t[4]=i,t[5]=a,t[6]=l):l=t[6],l}function ws(e){const t=K.c(7);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r}=n,i=r||QS;let o;t[2]!==i?(o={nonNull:!0,caller:i},t[2]=i,t[3]=o):o=t[3];const{queryEditor:s}=ut(o),{schema:a}=yn();let l;return t[4]!==s||t[5]!==a?(l=()=>{const c=s?.documentAST,u=s?.getValue();!c||!u||s.setValue(It(P2(c,a)))},t[4]=s,t[5]=a,t[6]=l):l=t[6],l}function JS(e){return It(Jn(e))}function Ss(e){const t=K.c(9);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r,onPrettifyQuery:i}=n,o=i===void 0?JS:i,s=r||KS;let a;t[2]!==s?(a={nonNull:!0,caller:s},t[2]=s,t[3]=a):a=t[3];const{queryEditor:l,headerEditor:c,variableEditor:u}=ut(a);let d;return t[4]!==c||t[5]!==o||t[6]!==l||t[7]!==u?(d=async()=>{if(u){const h=u.getValue();try{const f=JSON.stringify(JSON.parse(h),null,2);f!==h&&u.setValue(f)}catch{}}if(c){const h=c.getValue();try{const f=JSON.stringify(JSON.parse(h),null,2);f!==h&&c.setValue(f)}catch{}}if(l){const h=l.getValue();try{const f=await o(h);f!==h&&l.setValue(f)}catch{}}},t[4]=c,t[5]=o,t[6]=l,t[7]=u,t[8]=d):d=t[8],d}function Ty(e){const t=K.c(8);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{getDefaultFieldNames:r,caller:i}=n,{schema:o}=yn(),s=i||XS;let a;t[2]!==s?(a={nonNull:!0,caller:s},t[2]=s,t[3]=a):a=t[3];const{queryEditor:l}=ut(a);let c;return t[4]!==r||t[5]!==l||t[6]!==o?(c=()=>{if(!l)return;const u=l.getValue(),{insertions:d,result:h}=S2(o,u,r);return d&&d.length>0&&l.operation(()=>{const f=l.getCursor(),p=l.indexFromPos(f);l.setValue(h||"");let m;m=0;const v=d.map(_=>{const{index:b,string:T}=_;return m=m+T.length,l.markText(l.posFromIndex(b+m),l.posFromIndex(b+m),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(()=>{for(const _ of v)_.clear()},7e3);let g=p;for(const{index:_,string:b}of d)_import("./javascript-DR7Nv00w.js").then(e=>e.j),__vite__mapDeps([17,1,2,3]),import.meta.url)])}const ca=Ey;function Ey(e,t){const n=K.c(17);let r;n[0]!==e?(r=e===void 0?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:i,keyMap:o,onEdit:s,readOnly:a}=r,l=i===void 0?Al:i,c=o===void 0?Nl:o,u=a===void 0?!1:a,d=t||ca;let h;n[2]!==d?(h={nonNull:!0,caller:d},n[2]=d,n[3]=h):h=n[3];const{initialHeaders:f,headerEditor:p,setHeaderEditor:m,shouldPersistHeaders:v}=ut(h),g=co(),_=t||ca;let b;n[4]!==_?(b={caller:_},n[4]=_,n[5]=b):b=n[5];const T=ws(b),E=t||ca;let S;n[6]!==E?(S={caller:E},n[6]=E,n[7]=S):S=n[7];const C=Ss(S),x=F(null);let w,N;n[8]!==l||n[9]!==f||n[10]!==u||n[11]!==m?(w=()=>{let $;return $=!0,ZS().then(M=>{if(!$)return;const L=x.current;if(!L)return;const k=M(L,{value:f,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:l,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:u?"nocursor":!1,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Ol});k.addKeyMap({"Cmd-Space"(){k.showHint({completeSingle:!1,container:L})},"Ctrl-Space"(){k.showHint({completeSingle:!1,container:L})},"Alt-Space"(){k.showHint({completeSingle:!1,container:L})},"Shift-Space"(){k.showHint({completeSingle:!1,container:L})}}),k.on("keyup",ex),m(k)}),()=>{$=!1}},N=[l,f,u,m],n[8]=l,n[9]=f,n[10]=u,n[11]=m,n[12]=w,n[13]=N):(w=n[12],N=n[13]),B(w,N),Il(p,"keyMap",c),by(p,s,v?Pa:null,"headers",ca);let P;n[14]===Symbol.for("react.memo_cache_sentinel")?(P=["Cmd-Enter","Ctrl-Enter"],n[14]=P):P=n[14],an(p,P,g?.run);let D;n[15]===Symbol.for("react.memo_cache_sentinel")?(D=["Shift-Ctrl-P"],n[15]=D):D=n[15],an(p,D,C);let j;return n[16]===Symbol.for("react.memo_cache_sentinel")?(j=["Shift-Ctrl-M"],n[16]=j):j=n[16],an(p,j,T),x}function ex(e,t){const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),s=!i&&n.startsWith("Digit");(o||s||r==="_"||r==='"')&&e.execCommand("autocomplete")}const Pa="headers",tx=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]),nx=new RegExp("["+tx.join("")+"]","g");function rx(e){return e.replace(nx," ")}function ix(){return Es([Ae(()=>import("./comment-CMJCd204.js").then(e=>e.c),__vite__mapDeps([18,1,2,3]),import.meta.url),Ae(()=>import("./search-D-xcWigh.js").then(e=>e.s),__vite__mapDeps([19,1,2,3,12,14]),import.meta.url),Ae(()=>import("./hint-C9DNkaPS.js"),__vite__mapDeps([20,0,1,2,3,4,21]),import.meta.url),Ae(()=>import("./lint-BEfL3IbB.js"),__vite__mapDeps([22,0,1,2,3,21]),import.meta.url),Ae(()=>import("./info-kVv3DfXI.js"),__vite__mapDeps([23,0,1,2,3,24,25,26]),import.meta.url),Ae(()=>import("./jump-ta7ax8ey.js"),__vite__mapDeps([27,0,1,2,3,24,25]),import.meta.url),Ae(()=>import("./mode-DMuRFeXX.js"),__vite__mapDeps([28,0,1,2,3,29]),import.meta.url)])}const ua=wy;function ox(e,t){e.state.lint.linterOptions.variableToType=t?.variableToType,e.options.lint.variableToType=t?.variableToType,e.options.hintOptions.variableToType=t?.variableToType}function sx(e,t){e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t}function ax(e,t){e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t}function lx(e,t){e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t}function wy(e,t){const n=K.c(40);let r;n[0]!==e?(r=e===void 0?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:i,keyMap:o,onClickReference:s,onCopyQuery:a,onEdit:l,onPrettifyQuery:c,readOnly:u}=r,d=i===void 0?Al:i,h=o===void 0?Nl:o,f=u===void 0?!1:u,{schema:p,setSchemaReference:m}=yn(),v=t||ua;let g;n[2]!==v?(g={nonNull:!0,caller:v},n[2]=v,n[3]=g):g=n[3];const{externalFragments:_,initialQuery:b,queryEditor:T,setOperationName:E,setQueryEditor:S,validationRules:C,variableEditor:x,updateActiveTabValues:w}=ut(g),N=co(),P=lo(),D=Pl(),j=t||ua;let $;n[4]!==a||n[5]!==j?($={caller:j,onCopyQuery:a},n[4]=a,n[5]=j,n[6]=$):$=n[6];const M=hf($),L=t||ua;let k;n[7]!==L?(k={caller:L},n[7]=L,n[8]=k):k=n[8];const O=ws(k),A=t||ua;let W;n[9]!==c||n[10]!==A?(W={caller:A,onPrettifyQuery:c},n[9]=c,n[10]=A,n[11]=W):W=n[11];const J=Ss(W),se=F(null),te=F(void 0),V=F(fx);let ie,ee;n[12]!==s||n[13]!==D||n[14]!==m?(ie=()=>{V.current=oe=>{const _e=D?.referencePlugin;_e&&(D.setVisiblePlugin(_e),m(oe),s?.(oe))}},ee=[s,D,m],n[12]=s,n[13]=D,n[14]=m,n[15]=ie,n[16]=ee):(ie=n[15],ee=n[16]),B(ie,ee);let q,H;n[17]!==d||n[18]!==b||n[19]!==f||n[20]!==S?(q=()=>{let oe;return oe=!0,ix().then(_e=>{if(!oe)return;te.current=_e;const ue=se.current;if(!ue)return;const ve=_e(ue,{value:b,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:d,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:f?"nocursor":!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:ue,externalFragments:void 0,autocompleteOptions:{mode:An.EXECUTABLE}},info:{schema:void 0,renderDescription:dx,onClick(At){V.current(At)}},jump:{schema:void 0,onClick(At){V.current(At)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...Ol,"Cmd-S"(){},"Ctrl-S"(){}}}),He=function(){ve.showHint({completeSingle:!0,container:ue})};ve.addKeyMap({"Cmd-Space":He,"Ctrl-Space":He,"Alt-Space":He,"Shift-Space":He,"Shift-Alt-Space":He}),ve.on("keyup",ux);let xe;xe=!1,ve.on("startCompletion",()=>{xe=!0}),ve.on("endCompletion",()=>{xe=!1}),ve.on("keydown",(At,En)=>{En.key==="Escape"&&xe&&En.stopPropagation()}),ve.on("beforeChange",cx),ve.documentAST=null,ve.operationName=null,ve.operations=null,ve.variableToType=null,S(ve)}),()=>{oe=!1}},H=[d,b,f,S],n[17]=d,n[18]=b,n[19]=f,n[20]=S,n[21]=q,n[22]=H):(q=n[21],H=n[22]),B(q,H),Il(T,"keyMap",h);let X,Z;n[23]!==l||n[24]!==T||n[25]!==p||n[26]!==E||n[27]!==P||n[28]!==w||n[29]!==x?(X=()=>{if(!T)return;const oe=function(ve){var He;const xe=CS(p,ve.getValue()),At=I2(ve.operations??void 0,ve.operationName??void 0,xe?.operations);return ve.documentAST=xe?.documentAST??null,ve.operationName=At??null,ve.operations=xe?.operations??null,x&&(ox(x,xe),(He=te.current)==null||He.signal(x,"change",x)),xe?{...xe,operationName:At}:null},_e=to(100,ue=>{const ve=ue.getValue();P.set(Sy,ve);const He=ue.operationName,xe=oe(ue);xe?.operationName!==void 0&&P.set(vx,xe.operationName),l?.(ve,xe?.documentAST),xe?.operationName&&He!==xe.operationName&&E(xe.operationName),w({query:ve,operationName:xe?.operationName??null})});return oe(T),T.on("change",_e),()=>T.off("change",_e)},Z=[l,T,p,E,P,x,w],n[23]=l,n[24]=T,n[25]=p,n[26]=E,n[27]=P,n[28]=w,n[29]=x,n[30]=X,n[31]=Z):(X=n[30],Z=n[31]),B(X,Z),hx(T,p??null,te),px(T,C??null,te),mx(T,_,te),_y(T,s);const Ce=N?.run;let Ue;n[32]!==T||n[33]!==Ce||n[34]!==E?(Ue=()=>{var oe;if(!Ce||!T||!T.operations||!T.hasFocus()){Ce?.();return}const _e=T.indexFromPos(T.getCursor());let ue;for(const ve of T.operations)ve.loc&&ve.loc.start<=_e&&ve.loc.end>=_e&&(ue=(oe=ve.name)==null?void 0:oe.value);ue&&ue!==T.operationName&&E(ue),Ce()},n[32]=T,n[33]=Ce,n[34]=E,n[35]=Ue):Ue=n[35];const le=Ue;let nt;n[36]===Symbol.for("react.memo_cache_sentinel")?(nt=["Cmd-Enter","Ctrl-Enter"],n[36]=nt):nt=n[36],an(T,nt,le);let xt;n[37]===Symbol.for("react.memo_cache_sentinel")?(xt=["Shift-Ctrl-C"],n[37]=xt):xt=n[37],an(T,xt,M);let Ct;n[38]===Symbol.for("react.memo_cache_sentinel")?(Ct=["Shift-Ctrl-P","Shift-Ctrl-F"],n[38]=Ct):Ct=n[38],an(T,Ct,J);let _t;return n[39]===Symbol.for("react.memo_cache_sentinel")?(_t=["Shift-Ctrl-M"],n[39]=_t):_t=n[39],an(T,_t,O),se}function cx(e,t){var n;if(t.origin==="paste"){const r=t.text.map(rx);(n=t.update)==null||n.call(t,t.from,t.to,r)}}function ux(e,t){gx.test(t.key)&&e.execCommand("autocomplete")}function dx(e){return Ka.render(e)}function fx(){}function hx(e,t,n){const r=K.c(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;const s=e.options.lint.schema!==t;sx(e,t),s&&n.current&&n.current.signal(e,"change",e)},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),B(i,o)}function px(e,t,n){const r=K.c(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;const s=e.options.lint.validationRules!==t;ax(e,t),s&&n.current&&n.current.signal(e,"change",e)},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),B(i,o)}function mx(e,t,n){const r=K.c(7);let i;r[0]!==t?(i=[...t.values()],r[0]=t,r[1]=i):i=r[1];const o=i;let s,a;r[2]!==n||r[3]!==e||r[4]!==o?(s=()=>{if(!e)return;const l=e.options.lint.externalFragments!==o;lx(e,o),l&&n.current&&n.current.signal(e,"change",e)},a=[e,o,n],r[2]=n,r[3]=e,r[4]=o,r[5]=s,r[6]=a):(s=r[5],a=r[6]),B(s,a)}const gx=/^[a-zA-Z0-9_@(]$/,Sy="query",vx="operationName";function yx({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:o,shouldPersistHeaders:s}){const{storage:a}=ao.getState(),l=a.get(Xo);try{if(!l)throw new Error("Storage for tabs is empty");const c=JSON.parse(l),u=s?n:void 0;if(bx(c)){const d=Xa({query:i,variables:o,headers:u});let h=-1;for(let f=0;f=0)c.activeTabIndex=h;else{const f=i?pf(i):null;c.tabs.push({id:Ny(),hash:d,title:f||mf,query:i,variables:o,headers:n,operationName:f,response:null}),c.activeTabIndex=c.tabs.length-1}return c}throw new Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:(r||[{query:i??e,variables:o,headers:n??t}]).map(Cy)}}}function bx(e){return e&&typeof e=="object"&&!Array.isArray(e)&&Tx(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(_x)}function _x(e){return e&&typeof e=="object"&&!Array.isArray(e)&&Mm(e,"id")&&Mm(e,"title")&&Eo(e,"query")&&Eo(e,"variables")&&Eo(e,"headers")&&Eo(e,"operationName")&&Eo(e,"response")}function Tx(e,t){return t in e&&typeof e[t]=="number"}function Mm(e,t){return t in e&&typeof e[t]=="string"}function Eo(e,t){return t in e&&(typeof e[t]=="string"||e[t]===null)}function Ex({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return Y(i=>{const o=e?.getValue()??null,s=t?.getValue()??null,a=n?.getValue()??null,l=e?.operationName??null,c=r?.getValue()??null;return Ay(i,{query:o,variables:s,headers:a,response:c,operationName:l})},[e,t,n,r])}function xy(e,t=!1){return JSON.stringify(e,(n,r)=>n==="hash"||n==="response"||!t&&n==="headers"?null:r)}function wx({shouldPersistHeaders:e}){return Y(t=>{const{storage:n}=ao.getState();to(500,i=>{n.set(Xo,i)})(xy(t,e))},[e])}function Sx({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r,defaultHeaders:i}){return Y(({query:o,variables:s,headers:a,response:l})=>{e?.setValue(o??""),t?.setValue(s??""),n?.setValue(a??i??""),r?.setValue(l??"")},[n,e,r,t,i])}function Cy({query:e=null,variables:t=null,headers:n=null}={}){const r=e?pf(e):null;return{id:Ny(),hash:Xa({query:e,variables:t,headers:n}),title:r||mf,query:e,variables:t,headers:n,operationName:r,response:null}}function Ay(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i={...n,...t};return{...i,hash:Xa(i),title:i.operationName||(i.query?pf(i.query):void 0)||mf}})}}function Ny(){const e=()=>Math.floor((1+Math.random())*65536).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function Xa(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}function pf(e){const n=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return n?.[2]??null}function xx(){const{storage:e}=ao.getState(),t=e.get(Xo);if(t){const n=JSON.parse(t);e.set(Xo,JSON.stringify(n,(r,i)=>r==="headers"?null:i))}}const mf="",Xo="tabState";function Cx(){return Es([Ae(()=>import("./hint-CNi7Bqg4.js"),__vite__mapDeps([30,0,1,2,3,25]),import.meta.url),Ae(()=>import("./lint-BOC45b3w.js"),__vite__mapDeps([31,0,1,2,3]),import.meta.url),Ae(()=>import("./mode-DIQZl251.js"),__vite__mapDeps([32,0,1,2,3,29]),import.meta.url)])}const da=Oy;function Oy(e,t){const n=K.c(17);let r;n[0]!==e?(r=e===void 0?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:i,keyMap:o,onClickReference:s,onEdit:a,readOnly:l}=r,c=i===void 0?Al:i,u=o===void 0?Nl:o,d=l===void 0?!1:l,h=t||da;let f;n[2]!==h?(f={nonNull:!0,caller:h},n[2]=h,n[3]=f):f=n[3];const{initialVariables:p,variableEditor:m,setVariableEditor:v}=ut(f),g=co(),_=t||da;let b;n[4]!==_?(b={caller:_},n[4]=_,n[5]=b):b=n[5];const T=ws(b),E=t||da;let S;n[6]!==E?(S={caller:E},n[6]=E,n[7]=S):S=n[7];const C=Ss(S),x=F(null);let w,N;n[8]!==c||n[9]!==p||n[10]!==d||n[11]!==v?(w=()=>{let $;return $=!0,Cx().then(M=>{if(!$)return;const L=x.current;if(!L)return;const k=M(L,{value:p,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:c,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:d?"nocursor":!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:L,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Ol});k.addKeyMap({"Cmd-Space"(){k.showHint({completeSingle:!1,container:L})},"Ctrl-Space"(){k.showHint({completeSingle:!1,container:L})},"Alt-Space"(){k.showHint({completeSingle:!1,container:L})},"Shift-Space"(){k.showHint({completeSingle:!1,container:L})}}),k.on("keyup",Ax),v(k)}),()=>{$=!1}},N=[c,p,d,v],n[8]=c,n[9]=p,n[10]=d,n[11]=v,n[12]=w,n[13]=N):(w=n[12],N=n[13]),B(w,N),Il(m,"keyMap",u),by(m,a,Py,"variables",da),_y(m,s);let P;n[14]===Symbol.for("react.memo_cache_sentinel")?(P=["Cmd-Enter","Ctrl-Enter"],n[14]=P):P=n[14],an(m,P,g?.run);let D;n[15]===Symbol.for("react.memo_cache_sentinel")?(D=["Shift-Ctrl-P"],n[15]=D):D=n[15],an(m,D,C);let j;return n[16]===Symbol.for("react.memo_cache_sentinel")?(j=["Shift-Ctrl-M"],n[16]=j):j=n[16],an(m,j,T),x}function Ax(e,t){const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),s=!i&&n.startsWith("Digit");(o||s||r==="_"||r==='"')&&e.execCommand("autocomplete")}const Py="variables",Lm=`# Welcome to GraphiQL -# -# GraphiQL is an in-browser tool for writing, validating, and -# testing GraphQL queries. -# -# Type queries into this side of the screen, and you will see intelligent -# typeaheads aware of the current GraphQL type schema and live syntax and -# validation errors highlighted within the text. -# -# GraphQL queries typically start with a "{" character. Lines that start -# with a # are ignored. -# -# An example GraphQL query might look like: -# -# { -# field(arg: "value") { -# subField -# } -# } -# -# Keyboard shortcuts: -# -# Prettify query: Shift-Ctrl-P (or press the prettify button) -# -# Merge fragments: Shift-Ctrl-M (or press the merge button) -# -# Run Query: Ctrl-Enter (or press the play button) -# -# Auto Complete: Ctrl-Space (or just start typing) -# - -`,Iy=my("EditorContext"),Nx=e=>{const t=K.c(88),n=lo(),[r,i]=z(null),[o,s]=z(null),[a,l]=z(null),[c,u]=z(null);let d;t[0]!==e.shouldPersistHeaders||t[1]!==n?(d=()=>{const oe=n.get(Dc)!==null;return e.shouldPersistHeaders!==!1&&oe?n.get(Dc)==="true":!!e.shouldPersistHeaders},t[0]=e.shouldPersistHeaders,t[1]=n,t[2]=d):d=t[2];const[h,f]=z(d);la(r,e.headers),la(o,e.query),la(a,e.response),la(c,e.variables);let p;t[3]!==h?(p={shouldPersistHeaders:h},t[3]=h,t[4]=p):p=t[4];const m=wx(p);let v;t[5]!==e.defaultHeaders||t[6]!==e.defaultQuery||t[7]!==e.defaultTabs||t[8]!==e.headers||t[9]!==e.query||t[10]!==e.response||t[11]!==e.variables||t[12]!==h||t[13]!==n||t[14]!==m?(v=()=>{const oe=e.query??n.get(Sy)??null,_e=e.variables??n.get(Py)??null,ue=e.headers??n.get(Pa)??null,ve=e.response??"",He=yx({query:oe,variables:_e,headers:ue,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||Lm,defaultHeaders:e.defaultHeaders,shouldPersistHeaders:h});return m(He),{query:oe??(He.activeTabIndex===0?He.tabs[0].query:null)??"",variables:_e??"",headers:ue??e.defaultHeaders??"",response:ve,tabState:He}},t[5]=e.defaultHeaders,t[6]=e.defaultQuery,t[7]=e.defaultTabs,t[8]=e.headers,t[9]=e.query,t[10]=e.response,t[11]=e.variables,t[12]=h,t[13]=n,t[14]=m,t[15]=v):v=t[15];const[g]=z(v),[_,b]=z(g.tabState);let T;t[16]!==r||t[17]!==n||t[18]!==_?(T=oe=>{if(oe){n.set(Pa,r?.getValue()??"");const _e=xy(_,!0);n.set(Xo,_e)}else n.set(Pa,""),xx();f(oe),n.set(Dc,oe.toString())},t[16]=r,t[17]=n,t[18]=_,t[19]=T):T=t[19];const E=T,S=F(void 0);let C,x;t[20]!==e.shouldPersistHeaders||t[21]!==E?(C=()=>{const oe=!!e.shouldPersistHeaders;S?.current!==oe&&(E(oe),S.current=oe)},x=[e.shouldPersistHeaders,E],t[20]=e.shouldPersistHeaders,t[21]=E,t[22]=C,t[23]=x):(C=t[22],x=t[23]),B(C,x);let w;t[24]!==r||t[25]!==o||t[26]!==a||t[27]!==c?(w={queryEditor:o,variableEditor:c,headerEditor:r,responseEditor:a},t[24]=r,t[25]=o,t[26]=a,t[27]=c,t[28]=w):w=t[28];const N=Ex(w),{onTabChange:P,defaultHeaders:D,defaultQuery:j,children:$}=e;let M;t[29]!==D||t[30]!==r||t[31]!==o||t[32]!==a||t[33]!==c?(M={queryEditor:o,variableEditor:c,headerEditor:r,responseEditor:a,defaultHeaders:D},t[29]=D,t[30]=r,t[31]=o,t[32]=a,t[33]=c,t[34]=M):M=t[34];const L=Sx(M);let k;t[35]!==D||t[36]!==j||t[37]!==P||t[38]!==L||t[39]!==m||t[40]!==N?(k=()=>{b(oe=>{const _e=N(oe),ue={tabs:[..._e.tabs,Cy({headers:D,query:j??Lm})],activeTabIndex:_e.tabs.length};return m(ue),L(ue.tabs[ue.activeTabIndex]),P?.(ue),ue})},t[35]=D,t[36]=j,t[37]=P,t[38]=L,t[39]=m,t[40]=N,t[41]=k):k=t[41];const O=k;let A;t[42]!==P||t[43]!==L||t[44]!==m?(A=oe=>{b(_e=>{const ue={..._e,activeTabIndex:oe};return m(ue),L(ue.tabs[ue.activeTabIndex]),P?.(ue),ue})},t[42]=P,t[43]=L,t[44]=m,t[45]=A):A=t[45];const W=A;let J;t[46]!==P||t[47]!==L||t[48]!==m?(J=oe=>{b(_e=>{const ue=_e.tabs[_e.activeTabIndex],ve={tabs:oe,activeTabIndex:oe.indexOf(ue)};return m(ve),L(ve.tabs[ve.activeTabIndex]),P?.(ve),ve})},t[46]=P,t[47]=L,t[48]=m,t[49]=J):J=t[49];const se=J;let te;t[50]!==P||t[51]!==L||t[52]!==m?(te=oe=>{b(_e=>{const ue={tabs:_e.tabs.filter((ve,He)=>oe!==He),activeTabIndex:Math.max(_e.activeTabIndex-1,0)};return m(ue),L(ue.tabs[ue.activeTabIndex]),P?.(ue),ue})},t[50]=P,t[51]=L,t[52]=m,t[53]=te):te=t[53];const V=te;let ie;t[54]!==P||t[55]!==m?(ie=oe=>{b(_e=>{const ue=Ay(_e,oe);return m(ue),P?.(ue),ue})},t[54]=P,t[55]=m,t[56]=ie):ie=t[56];const ee=ie,{onEditOperationName:q}=e;let H;t[57]!==q||t[58]!==o||t[59]!==ee?(H=oe=>{o&&(Ox(o,oe),ee({operationName:oe}),q?.(oe))},t[57]=q,t[58]=o,t[59]=ee,t[60]=H):H=t[60];const X=H;let Z,Ce;if(t[61]!==e.externalFragments){if(Ce=new Map,Array.isArray(e.externalFragments))for(const oe of e.externalFragments)Ce.set(oe.name.value,oe);else if(typeof e.externalFragments=="string")Nn(Jn(e.externalFragments,{}),{FragmentDefinition(oe){Ce.set(oe.name.value,oe)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");t[61]=e.externalFragments,t[62]=Ce}else Ce=t[62];Z=Ce;const Ue=Z;let le;t[63]!==e.validationRules?(le=e.validationRules||[],t[63]=e.validationRules,t[64]=le):le=t[64];const nt=le;let xt;t[65]!==O||t[66]!==W||t[67]!==V||t[68]!==Ue||t[69]!==r||t[70]!==g.headers||t[71]!==g.query||t[72]!==g.response||t[73]!==g.variables||t[74]!==se||t[75]!==o||t[76]!==a||t[77]!==X||t[78]!==E||t[79]!==h||t[80]!==_||t[81]!==ee||t[82]!==nt||t[83]!==c?(xt={..._,addTab:O,changeTab:W,moveTab:se,closeTab:V,updateActiveTabValues:ee,headerEditor:r,queryEditor:o,responseEditor:a,variableEditor:c,setHeaderEditor:i,setQueryEditor:s,setResponseEditor:l,setVariableEditor:u,setOperationName:X,initialQuery:g.query,initialVariables:g.variables,initialHeaders:g.headers,initialResponse:g.response,externalFragments:Ue,validationRules:nt,shouldPersistHeaders:h,setShouldPersistHeaders:E},t[65]=O,t[66]=W,t[67]=V,t[68]=Ue,t[69]=r,t[70]=g.headers,t[71]=g.query,t[72]=g.response,t[73]=g.variables,t[74]=se,t[75]=o,t[76]=a,t[77]=X,t[78]=E,t[79]=h,t[80]=_,t[81]=ee,t[82]=nt,t[83]=c,t[84]=xt):xt=t[84];const Ct=xt;let _t;return t[85]!==$||t[86]!==Ct?(_t=y(Iy.Provider,{value:Ct,children:$}),t[85]=$,t[86]=Ct,t[87]=_t):_t=t[87],_t};function Ox(e,t){e.operationName=t}const ut=gy(Iy),Dc="shouldPersistHeaders",Dy=my("ExecutionContext"),Yu=e=>{const t=K.c(26),{fetcher:n,getDefaultFieldNames:r,children:i,operationName:o}=e;if(typeof n!="function")throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={nonNull:!0,caller:Yu},t[0]=s):s=t[0];const{externalFragments:a,headerEditor:l,queryEditor:c,responseEditor:u,variableEditor:d,updateActiveTabValues:h}=ut(s);let f;t[1]!==r?(f={getDefaultFieldNames:r,caller:Yu},t[1]=r,t[2]=f):f=t[2];const p=Ty(f),[m,v]=z(!1),[g,_]=z(null),b=F(0);let T;t[3]!==g?(T=()=>{g?.unsubscribe(),v(!1),_(null)},t[3]=g,t[4]=T):T=t[4];const E=T;let S;t[5]!==p||t[6]!==a||t[7]!==n||t[8]!==l||t[9]!==o||t[10]!==c||t[11]!==u||t[12]!==E||t[13]!==g||t[14]!==h||t[15]!==d?(S=async()=>{if(!c||!u)return;if(g){E();return}const j=te=>{u.setValue(te),h({response:te})};b.current=b.current+1;const $=b.current;let M=p()||c.getValue();const L=d?.getValue();let k;try{k=km({json:L,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(te){const V=te;j(V instanceof Error?V.message:`${V}`);return}const O=l?.getValue();let A;try{A=km({json:O,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(te){const V=te;j(V instanceof Error?V.message:`${V}`);return}if(a){const te=c.documentAST?wS(c.documentAST,a):[];te.length>0&&(M=M+(` -`+te.map(Ix).join(` -`)))}j(""),v(!0);const W=o??c.operationName??void 0,J=A??void 0,se=c.documentAST??void 0;try{const te={},V=q=>{if($!==b.current)return;let H=Array.isArray(q)?q:!1;if(!H&&typeof q=="object"&&q!==null&&"hasNext"in q&&(H=[q]),H){for(const X of H)Ry(te,X);v(!1),j(Iu(te))}else{const X=Iu(q);v(!1),j(X)}},ee=await n({query:M,variables:k,operationName:W},{headers:J,documentAST:se});oy(ee)?_(ee.subscribe({next(q){V(q)},error(q){v(!1),q&&j(Ha(q)),_(null)},complete(){v(!1),_(null)}})):sy(ee)?(_({unsubscribe:()=>{var q,H;return(H=(q=ee[Symbol.asyncIterator]()).return)==null?void 0:H.call(q)}}),await Px(V,ee),v(!1),_(null)):V(ee)}catch(te){const V=te;v(!1),j(Ha(V)),_(null)}},t[5]=p,t[6]=a,t[7]=n,t[8]=l,t[9]=o,t[10]=c,t[11]=u,t[12]=E,t[13]=g,t[14]=h,t[15]=d,t[16]=S):S=t[16];const C=S,x=!!g,w=o??null;let N;t[17]!==m||t[18]!==C||t[19]!==E||t[20]!==x||t[21]!==w?(N={isFetching:m,isSubscribed:x,operationName:w,run:C,stop:E},t[17]=m,t[18]=C,t[19]=E,t[20]=x,t[21]=w,t[22]=N):N=t[22];const P=N;let D;return t[23]!==i||t[24]!==P?(D=y(Dy.Provider,{value:P,children:i}),t[23]=i,t[24]=P,t[25]=D):D=t[25],D};async function Px(e,t){for await(const n of t)e(n)}const co=gy(Dy);function km({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&e.trim()!==""?JSON.parse(e):void 0}catch(o){throw new Error(`${t}: ${o instanceof Error?o.message:o}.`)}const i=typeof r=="object"&&r!==null&&!Array.isArray(r);if(r!==void 0&&!i)throw new Error(n);return r}const wo=new WeakMap;function Ry(e,t){var n,r,i;let o=["data",...t.path??[]];for(const l of[e,t])if(l.pending){let c=wo.get(e);c===void 0&&(c=new Map,wo.set(e,c));for(const{id:u,path:d}of l.pending)c.set(u,["data",...d])}const{items:s}=t;if(s){const{id:l}=t;if(l){if(o=(n=wo.get(e))==null?void 0:n.get(l),o===void 0)throw new Error("Invalid incremental delivery format.");RS(e,o.join(".")).push(...s)}else{o=["data",...t.path??[]];for(const c of s)Nc(e,o.join("."),c),o[o.length-1]++}}const{data:a}=t;if(a){const{id:l}=t;if(l){if(o=(r=wo.get(e))==null?void 0:r.get(l),o===void 0)throw new Error("Invalid incremental delivery format.");const{subPath:c}=t;c!==void 0&&(o=[...o,...c])}Nc(e,o.join("."),a,{merge:!0})}if(t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&Nc(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(const l of t.incremental)Ry(e,l);if(t.completed)for(const{id:l,errors:c}of t.completed)(i=wo.get(e))==null||i.delete(l),c&&(e.errors||(e.errors=[]),e.errors.push(...c))}function Ix(e){return It(e)}const Dx=e=>{const t=K.c(45),{children:n,dangerouslyAssumeSchemaIsValid:r,defaultQuery:i,defaultHeaders:o,defaultTabs:s,externalFragments:a,fetcher:l,getDefaultFieldNames:c,headers:u,inputValueDeprecation:d,introspectionQueryName:h,onEditOperationName:f,onSchemaChange:p,onTabChange:m,onTogglePluginVisibility:v,operationName:g,plugins:_,referencePlugin:b,query:T,response:E,schema:S,schemaDescription:C,shouldPersistHeaders:x,storage:w,validationRules:N,variables:P,visiblePlugin:D}=e;let j;t[0]!==o||t[1]!==i||t[2]!==s||t[3]!==a||t[4]!==u||t[5]!==f||t[6]!==m||t[7]!==T||t[8]!==E||t[9]!==x||t[10]!==N||t[11]!==P?(j={defaultQuery:i,defaultHeaders:o,defaultTabs:s,externalFragments:a,headers:u,onEditOperationName:f,onTabChange:m,query:T,response:E,shouldPersistHeaders:x,validationRules:N,variables:P},t[0]=o,t[1]=i,t[2]=s,t[3]=a,t[4]=u,t[5]=f,t[6]=m,t[7]=T,t[8]=E,t[9]=x,t[10]=N,t[11]=P,t[12]=j):j=t[12];const $=j;let M;t[13]!==r||t[14]!==l||t[15]!==d||t[16]!==h||t[17]!==p||t[18]!==S||t[19]!==C?(M={dangerouslyAssumeSchemaIsValid:r,fetcher:l,inputValueDeprecation:d,introspectionQueryName:h,onSchemaChange:p,schema:S,schemaDescription:C},t[13]=r,t[14]=l,t[15]=d,t[16]=h,t[17]=p,t[18]=S,t[19]=C,t[20]=M):M=t[20];const L=M;let k;t[21]!==l||t[22]!==c||t[23]!==g?(k={getDefaultFieldNames:c,fetcher:l,operationName:g},t[21]=l,t[22]=c,t[23]=g,t[24]=k):k=t[24];const O=k;let A;t[25]!==v||t[26]!==_||t[27]!==b||t[28]!==D?(A={onTogglePluginVisibility:v,plugins:_,visiblePlugin:D,referencePlugin:b},t[25]=v,t[26]=_,t[27]=b,t[28]=D,t[29]=A):A=t[29];const W=A;let J;t[30]!==n||t[31]!==W?(J=y(HS,{...W,children:n}),t[30]=n,t[31]=W,t[32]=J):J=t[32];let se;t[33]!==O||t[34]!==J?(se=y(Yu,{...O,children:J}),t[33]=O,t[34]=J,t[35]=se):se=t[35];let te;t[36]!==L||t[37]!==se?(te=y(yy,{...L,children:se}),t[36]=L,t[37]=se,t[38]=te):te=t[38];let V;t[39]!==$||t[40]!==te?(V=y(Nx,{...$,children:te}),t[39]=$,t[40]=te,t[41]=V):V=t[41];let ie;return t[42]!==w||t[43]!==V?(ie=y(kS,{storage:w,children:V}),t[42]=w,t[43]=V,t[44]=ie):ie=t[44],ie};function Rx(e){const t=K.c(11),n=e===void 0?null:e,r=lo();let i;t[0]!==n||t[1]!==r?(i=()=>{const h=r.get(Rc);switch(h){case"light":return"light";case"dark":return"dark";default:return typeof h=="string"&&r.set(Rc,""),n}},t[0]=n,t[1]=r,t[2]=i):i=t[2];const[o,s]=z(i);let a,l;t[3]!==o?(a=()=>{document.body.classList.remove("graphiql-light","graphiql-dark"),o&&document.body.classList.add(`graphiql-${o}`)},l=[o],t[3]=o,t[4]=a,t[5]=l):(a=t[4],l=t[5]),B(a,l);let c;t[6]!==r?(c=h=>{r.set(Rc,h||""),s(h)},t[6]=r,t[7]=c):c=t[7];const u=c;let d;return t[8]!==u||t[9]!==o?(d={theme:o,setTheme:u},t[8]=u,t[9]=o,t[10]=d):d=t[10],d}const Rc="theme",Mx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),R("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})),Lx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})),kx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})),$x=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})),Fx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 14 14",stroke:"currentColor",strokeWidth:3,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M1 1L12.9998 12.9997"}),R("path",{d:"M13 1L1.00079 13.0003"})),Vx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),R("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})),jx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),R("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),R("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})),Bx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),R("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),R("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),Ux=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),R("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),R("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})),Hx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),R("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"})),Wx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),R("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),R("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"})),qx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),R("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})),Gx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),R("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),zx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),R("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),Yx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),R("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),R("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5})),Qx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5 6 6)"}),R("circle",{cx:6,cy:6,r:1,fill:"currentColor"})),Kx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),R("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),R("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),R("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),R("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),Xx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),R("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})),Jx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),R("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),R("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),R("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})),Zx=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),R("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),R("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})),eC=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"})),tC=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z"})),nC=({title:e,titleId:t,...n})=>R("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),R("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),R("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),R("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),R("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"})),rC=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),R("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),R("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),R("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1})),iC=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),R("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2})),oC=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"})),sC=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"})),aC=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5})),lC=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("rect",{width:16,height:16,rx:2,fill:"currentColor"})),cC=({title:e,titleId:t,...n})=>R("svg",{width:"1em",height:"5em",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 23 23",style:{height:"1.5em"},clipRule:"evenodd","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("path",{d:"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z",fill:"currentColor",strokeWidth:.25,stroke:"currentColor"})),uC=({title:e,titleId:t,...n})=>R("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R("title",{id:t},e):null,R("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),R("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),dC=Oe(Mx),fC=Oe(Lx),hC=Oe(kx),pC=Oe($x),gf=Oe(Fx),mC=Oe(Vx),gC=Oe(jx),vC=Oe(Bx),yC=Oe(Ux),bC=Oe(Hx),_C=Oe(Wx),TC=Oe(qx),EC=Oe(Gx),wC=Oe(zx),SC=Oe(Yx),xC=Oe(Qx),CC=Oe(Kx),AC=Oe(Xx),NC=Oe(Jx),OC=Oe(Zx),PC=Oe(eC),IC=Oe(tC),DC=Oe(nC),RC=Oe(rC),MC=Oe(iC),LC=Oe(oC),kC=Oe(sC),$C=Oe(aC),FC=Oe(lC),VC=Oe(cC),fa=Oe(uC);function Oe(e){const t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon",n=r=>{const i=K.c(2);let o;return i[0]!==r?(o=y(e,{title:t,...r}),i[0]=r,i[1]=o):o=i[1],o};return n.displayName=e.name,n}function My(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{const t=K.c(13);let n,r;t[0]!==e?({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:Qu},t[3]=i):i=t[3];const{headerEditor:o}=ut(i),s=Ey(n,Qu);let a,l;t[4]!==o||t[5]!==r?(a=()=>{r||o?.refresh()},l=[o,r],t[4]=o,t[5]=r,t[6]=a,t[7]=l):(a=t[6],l=t[7]),B(a,l);const c=r&&"hidden";let u;t[8]!==c?(u=Ie("graphiql-editor",c),t[8]=c,t[9]=u):u=t[9];let d;return t[10]!==s||t[11]!==u?(d=y("div",{className:u,ref:s}),t[10]=s,t[11]=u,t[12]=d):d=t[12],d},jC=e=>{var t;const n=K.c(14);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r={width:null,height:null},n[0]=r):r=n[0];const[i,o]=z(r),[s,a]=z(null),l=F(null),c=(t=Ly(e.token))==null?void 0:t.href;let u,d;n[1]!==c?(u=()=>{if(l.current){if(!c){o({width:null,height:null}),a(null);return}fetch(c,{method:"HEAD"}).then(g=>{a(g.headers.get("Content-Type"))}).catch(()=>{a(null)})}},d=[c],n[1]=c,n[2]=u,n[3]=d):(u=n[2],d=n[3]),B(u,d);let h;n[4]!==i.height||n[5]!==i.width||n[6]!==s?(h=i.width!==null&&i.height!==null?y("div",{children:[i.width,"x",i.height,s===null?null:" "+s]}):null,n[4]=i.height,n[5]=i.width,n[6]=s,n[7]=h):h=n[7];const f=h;let p;n[8]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{var g,_;o({width:((g=l.current)==null?void 0:g.naturalWidth)??null,height:((_=l.current)==null?void 0:_.naturalHeight)??null})},n[8]=p):p=n[8];let m;n[9]!==c?(m=y("img",{onLoad:p,ref:l,src:c}),n[9]=c,n[10]=m):m=n[10];let v;return n[11]!==f||n[12]!==m?(v=y("div",{children:[m,f]}),n[11]=f,n[12]=m,n[13]=v):v=n[13],v},$m=Object.assign(jC,{shouldRender(e){const t=Ly(e);return t?BC(t):!1}});function Ly(e){if(e.type!=="string")return;const t=e.string.slice(1).slice(0,-1).trim();try{return new URL(t,location.protocol+"//"+location.host)}catch{}}function BC(e){return/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(e.pathname)}const ky=e=>{const t=K.c(2),n=wy(e,ky);let r;return t[0]!==n?(r=y("div",{className:"graphiql-editor",ref:n}),t[0]=n,t[1]=r):r=t[1],r};function UC(e){return{render:function(t){xl(t,e)},unmount:function(){cf(e)}}}function HC(){return Es([Ae(()=>import("./foldgutter-DUYQ7IB6.js").then(e=>e.f),__vite__mapDeps([9,1,2,3]),import.meta.url),Ae(()=>import("./brace-fold-D2mMF0kw.js").then(e=>e.b),__vite__mapDeps([8,1,2,3]),import.meta.url),Ae(()=>import("./dialog-CLUkjEIt.js").then(e=>e.d),__vite__mapDeps([15,1,2,14,3]),import.meta.url),Ae(()=>import("./search-D-xcWigh.js").then(e=>e.s),__vite__mapDeps([19,1,2,3,12,14]),import.meta.url),Ae(()=>import("./searchcursor-4aVNBPts.js").then(e=>e.s),__vite__mapDeps([11,1,2,12,3]),import.meta.url),Ae(()=>import("./jump-to-line-Df5wL-rR.js").then(e=>e.j),__vite__mapDeps([13,1,2,3,14]),import.meta.url),Ae(()=>import("./sublime-DT7RUNbp.js").then(e=>e.s),__vite__mapDeps([16,1,2,3,12,6]),import.meta.url),Ae(()=>import("./mode-CRb6UwqV.js"),__vite__mapDeps([33,0,1,2,3,29]),import.meta.url),Ae(()=>import("./info-addon-BeEkom35.js"),__vite__mapDeps([26,0,1,2,3]),import.meta.url)],{useCommonAddons:!1})}const WC=$y;function $y(e,t){const n=K.c(17);let r;n[0]!==e?(r=e===void 0?{}:e,n[0]=e,n[1]=r):r=n[1];const{responseTooltip:i,editorTheme:o,keyMap:s}=r,a=o===void 0?Al:o,l=s===void 0?Nl:s,{fetchError:c,validationErrors:u}=yn(),d=t||WC;let h;n[2]!==d?(h={nonNull:!0,caller:d},n[2]=d,n[3]=h):h=n[3];const{initialResponse:f,responseEditor:p,setResponseEditor:m}=ut(h),v=F(null),g=F(i);let _,b;n[4]!==i?(_=()=>{g.current=i},b=[i],n[4]=i,n[5]=_,n[6]=b):(_=n[5],b=n[6]),B(_,b);let T,E;n[7]!==a||n[8]!==f||n[9]!==m?(T=()=>{let x;return x=!0,HC().then(w=>{if(!x)return;const N=document.createElement("div"),P=UC(N);w.registerHelper("info","graphql-results",($,M,L,k)=>{const O=g.current,A=[O&&y(O,{pos:k,token:$}),$m.shouldRender($)&&y($m,{token:$},"image-preview")].filter(qC);if(A.length)return P.render(A),N;P.unmount()});const D=v.current;if(!D)return;const j=w(D,{value:f,lineWrapping:!0,readOnly:!0,theme:a,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:Ol});m(j)}),()=>{x=!1}},E=[a,f,m],n[7]=a,n[8]=f,n[9]=m,n[10]=T,n[11]=E):(T=n[10],E=n[11]),B(T,E),Il(p,"keyMap",l);let S,C;return n[12]!==c||n[13]!==p||n[14]!==u?(S=()=>{c&&p?.setValue(c),u.length&&p?.setValue(Ha(u))},C=[p,c,u],n[12]=c,n[13]=p,n[14]=u,n[15]=S,n[16]=C):(S=n[15],C=n[16]),B(S,C),v}function qC(e){return!!e}const Fy=e=>{const t=K.c(2),n=$y(e,Fy);let r;return t[0]!==n?(r=y("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:n}),t[0]=n,t[1]=r):r=t[1],r},Ku=e=>{const t=K.c(13);let n,r;t[0]!==e?({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:Ku},t[3]=i):i=t[3];const{variableEditor:o}=ut(i),s=Oy(n,Ku);let a,l;t[4]!==r||t[5]!==o?(a=()=>{r||o?.refresh()},l=[o,r],t[4]=r,t[5]=o,t[6]=a,t[7]=l):(a=t[6],l=t[7]),B(a,l);const c=r&&"hidden";let u;t[8]!==c?(u=Ie("graphiql-editor",c),t[8]=c,t[9]=u):u=t[9];let d;return t[10]!==s||t[11]!==u?(d=y("div",{className:u,ref:s}),t[10]=s,t[11]=u,t[12]=d):d=t[12],d};function Mc(e){const t=K.c(31),{defaultSizeRelation:n,direction:r,initiallyHidden:i,onHiddenElementChange:o,sizeThresholdFirst:s,sizeThresholdSecond:a,storageKey:l}=e,c=n===void 0?1:n,u=s===void 0?100:s,d=a===void 0?100:a,h=lo();let f;t[0]!==h||t[1]!==l?(f=to(500,M=>{l&&h.set(l,M)}),t[0]=h,t[1]=l,t[2]=f):f=t[2];const p=f;let m;t[3]!==i||t[4]!==h||t[5]!==l?(m=()=>{const M=l&&h.get(l);return M===ha||i==="first"?"first":M===pa||i==="second"?"second":null},t[3]=i,t[4]=h,t[5]=l,t[6]=m):m=t[6];const[v,g]=z(m);let _;t[7]!==v||t[8]!==o?(_=M=>{M!==v&&(g(M),o?.(M))},t[7]=v,t[8]=o,t[9]=_):_=t[9];const b=_,T=F(null),E=F(null),S=F(null),C=F(`${c}`);let x;t[10]!==h||t[11]!==l?(x=()=>{const M=l&&h.get(l)||C.current;T.current&&(T.current.style.flex=M===ha||M===pa?C.current:M),S.current&&(S.current.style.flex="1")},t[10]=h,t[11]=l,t[12]=x):x=t[12];let w;t[13]!==r||t[14]!==h||t[15]!==l?(w=[r,h,l],t[13]=r,t[14]=h,t[15]=l,t[16]=w):w=t[16],B(x,w);let N,P;t[17]!==v||t[18]!==h||t[19]!==l?(P=()=>{const M=k=>{const O=k==="first"?T.current:S.current;if(O&&(O.style.left="-1000px",O.style.position="absolute",O.style.opacity="0",O.style.height="500px",O.style.width="500px",T.current)){const A=parseFloat(T.current.style.flex);(!Number.isFinite(A)||A<1)&&(T.current.style.flex="1")}},L=k=>{const O=k==="first"?T.current:S.current;if(O&&(O.style.width="",O.style.height="",O.style.opacity="",O.style.position="",O.style.left="",l)){const A=h.get(l);T.current&&A!==ha&&A!==pa&&(T.current.style.flex=A||C.current)}};v==="first"?M("first"):L("first"),v==="second"?M("second"):L("second")},N=[v,h,l],t[17]=v,t[18]=h,t[19]=l,t[20]=N,t[21]=P):(N=t[20],P=t[21]),B(P,N);let D,j;t[22]!==r||t[23]!==b||t[24]!==u||t[25]!==d||t[26]!==p?(D=()=>{if(!E.current||!T.current||!S.current)return;const M=E.current,L=T.current,k=L.parentElement,O=r==="horizontal"?"clientX":"clientY",A=r==="horizontal"?"left":"top",W=r==="horizontal"?"right":"bottom",J=r==="horizontal"?"clientWidth":"clientHeight",se=function(ie){if(!(ie.target===ie.currentTarget))return;ie.preventDefault();const q=ie[O]-M.getBoundingClientRect()[A],H=function(Ce){if(Ce.buttons===0)return X();const Ue=Ce[O]-k.getBoundingClientRect()[A]-q,le=k.getBoundingClientRect()[W]-Ce[O]+q-M[J];if(Ue{M.removeEventListener("mousedown",se),M.removeEventListener("dblclick",te)}},j=[r,b,u,d,p],t[22]=r,t[23]=b,t[24]=u,t[25]=d,t[26]=p,t[27]=D,t[28]=j):(D=t[27],j=t[28]),B(D,j);let $;return t[29]!==v?($={dragBarRef:E,hiddenElement:v,firstRef:T,setHiddenElement:g,secondRef:S},t[29]=v,t[30]=$):$=t[30],$}const ha="hide-first",pa="hide-second",tt=Q((e,t)=>{const n=K.c(6);let r;n[0]!==e.className?(r=Ie("graphiql-un-styled",e.className),n[0]=e.className,n[1]=r):r=n[1];let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=y("button",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});tt.displayName="UnStyledButton";const Qt=Q((e,t)=>{const n=K.c(7);let r;n[0]!==e.className||n[1]!==e.state?(r=Ie("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=r):r=n[2];let i;return n[3]!==e||n[4]!==t||n[5]!==r?(i=y("button",{...e,ref:t,className:r}),n[3]=e,n[4]=t,n[5]=r,n[6]=i):i=n[6],i});Qt.displayName="Button";const Xu=Q((e,t)=>{const n=K.c(6);let r;n[0]!==e.className?(r=Ie("graphiql-button-group",e.className),n[0]=e.className,n[1]=r):r=n[1];let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=y("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Xu.displayName="ButtonGroup";function de(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)}}function Fm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vf(...e){return t=>{let n=!1;const r=e.map(i=>{const o=Fm(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i{const{children:s,...a}=o,l=re(()=>a,Object.values(a));return y(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function i(o){const s=fe(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function Mr(e,t=[]){let n=[];function r(o,s){const a=Ne(s),l=n.length;n=[...n,s];const c=d=>{const{scope:h,children:f,...p}=d,m=h?.[e]?.[l]||a,v=re(()=>p,Object.values(p));return y(m.Provider,{value:v,children:f})};c.displayName=o+"Provider";function u(d,h){const f=h?.[e]?.[l]||a,p=fe(f);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[c,u]}const i=()=>{const o=n.map(s=>Ne(s));return function(a){const l=a?.[e]||o;return re(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,zC(i,...t)]}function zC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:l,scopeName:c})=>{const d=l(o)[`__scope${c}`];return{...a,...d}},{});return re(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Gn=globalThis?.document?St:()=>{},YC=bs[" useId ".trim().toString()]||(()=>{}),QC=0;function yr(e){const[t,n]=z(YC());return Gn(()=>{n(r=>r??String(QC++))},[e]),e||(t?`radix-${t}`:"")}var KC=bs[" useInsertionEffect ".trim().toString()]||Gn;function Dl({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,s]=XC({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const u=F(e!==void 0);B(()=>{const d=u.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,r])}const c=Y(u=>{if(a){const d=JC(u)?u(e):u;d!==e&&s.current?.(d)}else o(u)},[a,e,o,s]);return[l,c]}function XC({defaultProp:e,onChange:t}){const[n,r]=z(e),i=F(n),o=F(t);return KC(()=>{o.current=t},[t]),B(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,r,o]}function JC(e){return typeof e=="function"}function Jo(e){const t=ZC(e),n=Q((r,i)=>{const{children:o,...s}=r,a=Xt.toArray(o),l=a.find(t3);if(l){const c=l.props.children,u=a.map(d=>d===l?Xt.count(c)>1?Xt.only(null):Jt(c)?c.props.children:null:d);return y(t,{...s,ref:i,children:Jt(c)?er(c,void 0,u):null})}return y(t,{...s,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function ZC(e){const t=Q((n,r)=>{const{children:i,...o}=n,s=Jt(i)?r3(i):void 0,a=et(s,r);if(Jt(i)){const l=n3(o,i.props);return i.type!==me&&(l.ref=a),er(i,l)}return Xt.count(i)>1?Xt.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vy=Symbol("radix.slottable");function e3(e){const t=({children:n})=>y(me,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Vy,t}function t3(e){return Jt(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vy}function n3(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const l=o(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function r3(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var i3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ze=i3.reduce((e,t)=>{const n=Jo(`Primitive.${t}`),r=Q((i,o)=>{const{asChild:s,...a}=i,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function jy(e,t){e&&mt(()=>e.dispatchEvent(t))}function Pn(e){const t=F(e);return B(()=>{t.current=e}),re(()=>(...n)=>t.current?.(...n),[])}function o3(e,t=globalThis?.document){const n=Pn(e);B(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var s3="DismissableLayer",Ju="dismissableLayer.update",a3="dismissableLayer.pointerDownOutside",l3="dismissableLayer.focusOutside",Vm,By=Ne({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rl=Q((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,c=fe(By),[u,d]=z(null),h=u?.ownerDocument??globalThis?.document,[,f]=z({}),p=et(t,C=>d(C)),m=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(v),_=u?m.indexOf(u):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,T=_>=g,E=d3(C=>{const x=C.target,w=[...c.branches].some(N=>N.contains(x));!T||w||(i?.(C),s?.(C),C.defaultPrevented||a?.())},h),S=f3(C=>{const x=C.target;[...c.branches].some(N=>N.contains(x))||(o?.(C),s?.(C),C.defaultPrevented||a?.())},h);return o3(C=>{_===c.layers.size-1&&(r?.(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},h),B(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Vm=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),jm(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Vm)}},[u,h,n,c]),B(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),jm())},[u,c]),B(()=>{const C=()=>f({});return document.addEventListener(Ju,C),()=>document.removeEventListener(Ju,C)},[]),y(ze.div,{...l,ref:p,style:{pointerEvents:b?T?"auto":"none":void 0,...e.style},onFocusCapture:de(e.onFocusCapture,S.onFocusCapture),onBlurCapture:de(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:de(e.onPointerDownCapture,E.onPointerDownCapture)})});Rl.displayName=s3;var c3="DismissableLayerBranch",u3=Q((e,t)=>{const n=fe(By),r=F(null),i=et(t,r);return B(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),y(ze.div,{...e,ref:i})});u3.displayName=c3;function d3(e,t=globalThis?.document){const n=Pn(e),r=F(!1),i=F(()=>{});return B(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){Uy(a3,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function f3(e,t=globalThis?.document){const n=Pn(e),r=F(!1);return B(()=>{const i=o=>{o.target&&!r.current&&Uy(l3,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function jm(){const e=new CustomEvent(Ju);document.dispatchEvent(e)}function Uy(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?jy(i,o):i.dispatchEvent(o)}var Lc="focusScope.autoFocusOnMount",kc="focusScope.autoFocusOnUnmount",Bm={bubbles:!1,cancelable:!0},h3="FocusScope",yf=Q((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,l]=z(null),c=Pn(i),u=Pn(o),d=F(null),h=et(t,m=>l(m)),f=F({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;B(()=>{if(r){let m=function(b){if(f.paused||!a)return;const T=b.target;a.contains(T)?d.current=T:Vn(d.current,{select:!0})},v=function(b){if(f.paused||!a)return;const T=b.relatedTarget;T!==null&&(a.contains(T)||Vn(d.current,{select:!0}))},g=function(b){if(document.activeElement===document.body)for(const E of b)E.removedNodes.length>0&&Vn(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",v);const _=new MutationObserver(g);return a&&_.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",v),_.disconnect()}}},[r,a,f.paused]),B(()=>{if(a){Hm.add(f);const m=document.activeElement;if(!a.contains(m)){const g=new CustomEvent(Lc,Bm);a.addEventListener(Lc,c),a.dispatchEvent(g),g.defaultPrevented||(p3(b3(Hy(a)),{select:!0}),document.activeElement===m&&Vn(a))}return()=>{a.removeEventListener(Lc,c),setTimeout(()=>{const g=new CustomEvent(kc,Bm);a.addEventListener(kc,u),a.dispatchEvent(g),g.defaultPrevented||Vn(m??document.body,{select:!0}),a.removeEventListener(kc,u),Hm.remove(f)},0)}}},[a,c,u,f]);const p=Y(m=>{if(!n&&!r||f.paused)return;const v=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,g=document.activeElement;if(v&&g){const _=m.currentTarget,[b,T]=m3(_);b&&T?!m.shiftKey&&g===T?(m.preventDefault(),n&&Vn(b,{select:!0})):m.shiftKey&&g===b&&(m.preventDefault(),n&&Vn(T,{select:!0})):g===_&&m.preventDefault()}},[n,r,f.paused]);return y(ze.div,{tabIndex:-1,...s,ref:h,onKeyDown:p})});yf.displayName=h3;function p3(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Vn(r,{select:t}),document.activeElement!==n)return}function m3(e){const t=Hy(e),n=Um(t,e),r=Um(t.reverse(),e);return[n,r]}function Hy(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Um(e,t){for(const n of e)if(!g3(n,{upTo:t}))return n}function g3(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function v3(e){return e instanceof HTMLInputElement&&"select"in e}function Vn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&v3(e)&&t&&e.select()}}var Hm=y3();function y3(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Wm(e,t),e.unshift(t)},remove(t){e=Wm(e,t),e[0]?.resume()}}}function Wm(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function b3(e){return e.filter(t=>t.tagName!=="A")}var _3="Portal",Ml=Q((e,t)=>{const{container:n,...r}=e,[i,o]=z(!1);Gn(()=>o(!0),[]);const s=n||i&&globalThis?.document?.body;return s?pe.createPortal(y(ze.div,{...r,ref:t}),s):null});Ml.displayName=_3;function T3(e,t){return Rr((n,r)=>t[n][r]??n,e)}var bn=e=>{const{present:t,children:n}=e,r=E3(t),i=typeof n=="function"?n({present:r.isPresent}):Xt.only(n),o=et(r.ref,w3(i));return typeof n=="function"||r.isPresent?er(i,{ref:o}):null};bn.displayName="Presence";function E3(e){const[t,n]=z(),r=F(null),i=F(e),o=F("none"),s=e?"mounted":"unmounted",[a,l]=T3(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return B(()=>{const c=ma(r.current);o.current=a==="mounted"?c:"none"},[a]),Gn(()=>{const c=r.current,u=i.current;if(u!==e){const h=o.current,f=ma(c);e?l("MOUNT"):f==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&h!==f?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Gn(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=f=>{const m=ma(r.current).includes(f.animationName);if(f.target===t&&m&&(l("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=f=>{f.target===t&&(o.current=ma(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:Y(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function ma(e){return e?.animationName||"none"}function w3(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $c=0;function Wy(){B(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??qm()),document.body.insertAdjacentElement("beforeend",e[1]??qm()),$c++,()=>{$c===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$c--}},[])}function qm(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ia="right-scroll-bar-position",Da="width-before-scroll-bar",S3="with-scroll-bars-hidden",x3="--removed-body-scroll-bar-size";function Fc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function C3(e,t){var n=z(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var A3=typeof window<"u"?St:B,Gm=new WeakMap;function N3(e,t){var n=C3(null,function(r){return e.forEach(function(i){return Fc(i,r)})});return A3(function(){var r=Gm.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(a){o.has(a)||Fc(a,null)}),o.forEach(function(a){i.has(a)||Fc(a,s)})}Gm.set(n,e)},[e]),n}function O3(e){return e}function P3(e,t){t===void 0&&(t=O3);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var u=s;s=[],u.forEach(o)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),n}}}};return i}function I3(e){e===void 0&&(e={});var t=P3(null);return t.options=Bn({async:!0,ssr:!1},e),t}var qy=function(e){var t=e.sideCar,n=t1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return R(r,Bn({},n))};qy.isSideCarExport=!0;function D3(e,t){return e.useMedium(t),qy}var Gy=I3(),Vc=function(){},Ll=Q(function(e,t){var n=F(null),r=z({onScrollCapture:Vc,onWheelCapture:Vc,onTouchMoveCapture:Vc}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,f=e.noRelative,p=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,_=g===void 0?"div":g,b=e.gapMode,T=t1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,S=N3([n,t]),C=Bn(Bn({},T),i);return R(me,null,u&&R(E,{sideCar:Gy,removeScrollBar:c,shards:d,noRelative:f,noIsolation:p,inert:m,setCallbacks:o,allowPinchZoom:!!v,lockRef:n,gapMode:b}),s?er(Xt.only(a),Bn(Bn({},C),{ref:S})):R(_,Bn({},C,{className:l,ref:S}),a))});Ll.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ll.classNames={fullWidth:Da,zeroRight:Ia};var R3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function M3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=R3();return t&&e.setAttribute("nonce",t),e}function L3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function k3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $3=function(){var e=0,t=null;return{add:function(n){e==0&&(t=M3())&&(L3(t,n),k3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},F3=function(){var e=$3();return function(t,n){B(function(){return e.add(t),function(){e.remove()}},[t&&n])}},zy=function(){var e=F3(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},V3={left:0,top:0,right:0,gap:0},jc=function(e){return parseInt(e||"",10)||0},j3=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[jc(n),jc(r),jc(i)]},B3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return V3;var t=j3(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},U3=zy(),Wi="data-scroll-locked",H3=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` - .`.concat(S3,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(a,"px ").concat(r,`; - } - body[`).concat(Wi,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(i,`px; - padding-top: `).concat(o,`px; - padding-right: `).concat(s,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(a,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(Ia,` { - right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(Da,` { - margin-right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(Ia," .").concat(Ia,` { - right: 0 `).concat(r,`; - } - - .`).concat(Da," .").concat(Da,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(Wi,`] { - `).concat(x3,": ").concat(a,`px; - } -`)},zm=function(){var e=parseInt(document.body.getAttribute(Wi)||"0",10);return isFinite(e)?e:0},W3=function(){B(function(){return document.body.setAttribute(Wi,(zm()+1).toString()),function(){var e=zm()-1;e<=0?document.body.removeAttribute(Wi):document.body.setAttribute(Wi,e.toString())}},[])},q3=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;W3();var o=re(function(){return B3(i)},[i]);return R(U3,{styles:H3(o,!t,i,n?"":"!important")})},Zu=!1;if(typeof window<"u")try{var ga=Object.defineProperty({},"passive",{get:function(){return Zu=!0,!0}});window.addEventListener("test",ga,ga),window.removeEventListener("test",ga,ga)}catch{Zu=!1}var Ci=Zu?{passive:!1}:!1,G3=function(e){return e.tagName==="TEXTAREA"},Yy=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!G3(e)&&n[t]==="visible")},z3=function(e){return Yy(e,"overflowY")},Y3=function(e){return Yy(e,"overflowX")},Ym=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Qy(e,r);if(i){var o=Ky(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Q3=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},K3=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Qy=function(e,t){return e==="v"?z3(t):Y3(t)},Ky=function(e,t){return e==="v"?Q3(t):K3(t)},X3=function(e,t){return e==="h"&&t==="rtl"?-1:1},J3=function(e,t,n,r,i){var o=X3(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,l=t.contains(a),c=!1,u=s>0,d=0,h=0;do{if(!a)break;var f=Ky(e,a),p=f[0],m=f[1],v=f[2],g=m-v-o*p;(p||g)&&Qy(e,a)&&(d+=g,h+=p);var _=a.parentNode;a=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(h)<1)&&(c=!0),c},va=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qm=function(e){return[e.deltaX,e.deltaY]},Km=function(e){return e&&"current"in e?e.current:e},Z3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},e5=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},t5=0,Ai=[];function n5(e){var t=F([]),n=F([0,0]),r=F(),i=z(t5++)[0],o=z(zy)[0],s=F(e);B(function(){s.current=e},[e]),B(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=ZE([e.lockRef.current],(e.shards||[]).map(Km),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=Y(function(m,v){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var g=va(m),_=n.current,b="deltaX"in m?m.deltaX:_[0]-g[0],T="deltaY"in m?m.deltaY:_[1]-g[1],E,S=m.target,C=Math.abs(b)>Math.abs(T)?"h":"v";if("touches"in m&&C==="h"&&S.type==="range")return!1;var x=Ym(C,S);if(!x)return!0;if(x?E=C:(E=C==="v"?"h":"v",x=Ym(C,S)),!x)return!1;if(!r.current&&"changedTouches"in m&&(b||T)&&(r.current=E),!E)return!0;var w=r.current||E;return J3(w,v,m,w==="h"?b:T)},[]),l=Y(function(m){var v=m;if(!(!Ai.length||Ai[Ai.length-1]!==o)){var g="deltaY"in v?Qm(v):va(v),_=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&Z3(E.delta,g)})[0];if(_&&_.should){v.cancelable&&v.preventDefault();return}if(!_){var b=(s.current.shards||[]).map(Km).filter(Boolean).filter(function(E){return E.contains(v.target)}),T=b.length>0?a(v,b[0]):!s.current.noIsolation;T&&v.cancelable&&v.preventDefault()}}},[]),c=Y(function(m,v,g,_){var b={name:m,delta:v,target:g,should:_,shadowParent:r5(g)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(T){return T!==b})},1)},[]),u=Y(function(m){n.current=va(m),r.current=void 0},[]),d=Y(function(m){c(m.type,Qm(m),m.target,a(m,e.lockRef.current))},[]),h=Y(function(m){c(m.type,va(m),m.target,a(m,e.lockRef.current))},[]);B(function(){return Ai.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Ci),document.addEventListener("touchmove",l,Ci),document.addEventListener("touchstart",u,Ci),function(){Ai=Ai.filter(function(m){return m!==o}),document.removeEventListener("wheel",l,Ci),document.removeEventListener("touchmove",l,Ci),document.removeEventListener("touchstart",u,Ci)}},[]);var f=e.removeScrollBar,p=e.inert;return R(me,null,p?R(o,{styles:e5(i)}):null,f?R(q3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function r5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const i5=D3(Gy,n5);var bf=Q(function(e,t){return R(Ll,Bn({},e,{ref:t,sideCar:i5}))});bf.classNames=Ll.classNames;var o5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ni=new WeakMap,ya=new WeakMap,ba={},Bc=0,Xy=function(e){return e&&(e.host||Xy(e.parentNode))},s5=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Xy(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},a5=function(e,t,n,r){var i=s5(t,Array.isArray(e)?e:[e]);ba[n]||(ba[n]=new WeakMap);var o=ba[n],s=[],a=new Set,l=new Set(i),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};i.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else try{var f=h.getAttribute(r),p=f!==null&&f!=="false",m=(Ni.get(h)||0)+1,v=(o.get(h)||0)+1;Ni.set(h,m),o.set(h,v),s.push(h),m===1&&p&&ya.set(h,!0),v===1&&h.setAttribute(n,"true"),p||h.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",h,g)}})};return u(t),a.clear(),Bc++,function(){s.forEach(function(d){var h=Ni.get(d)-1,f=o.get(d)-1;Ni.set(d,h),o.set(d,f),h||(ya.has(d)||d.removeAttribute(r),ya.delete(d)),f||d.removeAttribute(n)}),Bc--,Bc||(Ni=new WeakMap,Ni=new WeakMap,ya=new WeakMap,ba={})}},Jy=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=o5(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),a5(r,i,n,"aria-hidden")):function(){return null}},kl="Dialog",[Zy,k9]=Mr(kl),[l5,tn]=Zy(kl),e0=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=F(null),l=F(null),[c,u]=Dl({prop:r,defaultProp:i??!1,onChange:o,caller:kl});return y(l5,{scope:t,triggerRef:a,contentRef:l,contentId:yr(),titleId:yr(),descriptionId:yr(),open:c,onOpenChange:u,onOpenToggle:Y(()=>u(d=>!d),[u]),modal:s,children:n})};e0.displayName=kl;var t0="DialogTrigger",n0=Q((e,t)=>{const{__scopeDialog:n,...r}=e,i=tn(t0,n),o=et(t,i.triggerRef);return y(ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Ef(i.open),...r,ref:o,onClick:de(e.onClick,i.onOpenToggle)})});n0.displayName=t0;var _f="DialogPortal",[c5,r0]=Zy(_f,{forceMount:void 0}),i0=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=tn(_f,t);return y(c5,{scope:t,forceMount:n,children:Xt.map(r,s=>y(bn,{present:n||o.open,children:y(Ml,{asChild:!0,container:i,children:s})}))})};i0.displayName=_f;var Ja="DialogOverlay",o0=Q((e,t)=>{const n=r0(Ja,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=tn(Ja,e.__scopeDialog);return o.modal?y(bn,{present:r||o.open,children:y(d5,{...i,ref:t})}):null});o0.displayName=Ja;var u5=Jo("DialogOverlay.RemoveScroll"),d5=Q((e,t)=>{const{__scopeDialog:n,...r}=e,i=tn(Ja,n);return y(bf,{as:u5,allowPinchZoom:!0,shards:[i.contentRef],children:y(ze.div,{"data-state":Ef(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Sr="DialogContent",s0=Q((e,t)=>{const n=r0(Sr,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=tn(Sr,e.__scopeDialog);return y(bn,{present:r||o.open,children:o.modal?y(f5,{...i,ref:t}):y(h5,{...i,ref:t})})});s0.displayName=Sr;var f5=Q((e,t)=>{const n=tn(Sr,e.__scopeDialog),r=F(null),i=et(t,n.contentRef,r);return B(()=>{const o=r.current;if(o)return Jy(o)},[]),y(a0,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:de(e.onCloseAutoFocus,o=>{o.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:de(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:de(e.onFocusOutside,o=>o.preventDefault())})}),h5=Q((e,t)=>{const n=tn(Sr,e.__scopeDialog),r=F(!1),i=F(!1);return y(a0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(r.current||n.triggerRef.current?.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=o.target;n.triggerRef.current?.contains(s)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),a0=Q((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,a=tn(Sr,n),l=F(null),c=et(t,l);return Wy(),y(me,{children:[y(yf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:y(Rl,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ef(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),y(me,{children:[y(p5,{titleId:a.titleId}),y(g5,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Tf="DialogTitle",l0=Q((e,t)=>{const{__scopeDialog:n,...r}=e,i=tn(Tf,n);return y(ze.h2,{id:i.titleId,...r,ref:t})});l0.displayName=Tf;var c0="DialogDescription",u0=Q((e,t)=>{const{__scopeDialog:n,...r}=e,i=tn(c0,n);return y(ze.p,{id:i.descriptionId,...r,ref:t})});u0.displayName=c0;var d0="DialogClose",f0=Q((e,t)=>{const{__scopeDialog:n,...r}=e,i=tn(d0,n);return y(ze.button,{type:"button",...r,ref:t,onClick:de(e.onClick,()=>i.onOpenChange(!1))})});f0.displayName=d0;function Ef(e){return e?"open":"closed"}var h0="DialogTitleWarning",[$9,p0]=GC(h0,{contentName:Sr,titleName:Tf,docsSlug:"dialog"}),p5=({titleId:e})=>{const t=p0(h0),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return B(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},m5="DialogDescriptionWarning",g5=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${p0(m5).contentName}}.`;return B(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},v5=e0,y5=n0,b5=i0,_5=o0,T5=s0,E5=l0,w5=u0,S5=f0,x5=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"}),C5="VisuallyHidden",m0=Q((e,t)=>y(ze.span,{...e,ref:t,style:{...x5,...e.style}}));m0.displayName=C5;var g0=m0;const v0=Q((e,t)=>{const n=K.c(8);let r;n[0]!==e.className?(r=Ie("graphiql-dialog-close",e.className),n[0]=e.className,n[1]=r):r=n[1];let i,o;n[2]===Symbol.for("react.memo_cache_sentinel")?(i=y(g0,{children:"Close dialog"}),o=y(gf,{}),n[2]=i,n[3]=o):(i=n[2],o=n[3]);let s;return n[4]!==e||n[5]!==t||n[6]!==r?(s=y(S5,{asChild:!0,children:y(tt,{...e,ref:t,type:"button",className:r,children:[i,o]})}),n[4]=e,n[5]=t,n[6]=r,n[7]=s):s=n[7],s});v0.displayName="Dialog.Close";const A5=e=>{const t=K.c(9);let n,r;t[0]!==e?({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=y(_5,{className:"graphiql-dialog-overlay"}),t[3]=i):i=t[3];let o;t[4]!==n?(o=y(b5,{children:[i,y(T5,{className:"graphiql-dialog",children:n})]}),t[4]=n,t[5]=o):o=t[5];let s;return t[6]!==r||t[7]!==o?(s=y(v5,{...r,children:o}),t[6]=r,t[7]=o,t[8]=s):s=t[8],s},Oi=Object.assign(A5,{Close:v0,Title:E5,Trigger:y5,Description:w5});function y0(e){const t=e+"CollectionProvider",[n,r]=Mr(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:v,children:g}=m,_=pe.useRef(null),b=pe.useRef(new Map).current;return y(i,{scope:v,itemMap:b,collectionRef:_,children:g})};s.displayName=t;const a=e+"CollectionSlot",l=Jo(a),c=pe.forwardRef((m,v)=>{const{scope:g,children:_}=m,b=o(a,g),T=et(v,b.collectionRef);return y(l,{ref:T,children:_})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=Jo(u),f=pe.forwardRef((m,v)=>{const{scope:g,children:_,...b}=m,T=pe.useRef(null),E=et(v,T),S=o(u,g);return pe.useEffect(()=>(S.itemMap.set(T,{ref:T,...b}),()=>void S.itemMap.delete(T))),y(h,{[d]:"",ref:E,children:_})});f.displayName=u;function p(m){const v=o(e+"CollectionConsumer",m);return pe.useCallback(()=>{const _=v.collectionRef.current;if(!_)return[];const b=Array.from(_.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((S,C)=>b.indexOf(S.ref.current)-b.indexOf(C.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:c,ItemSlot:f},p,r]}var N5=Ne(void 0);function b0(e){const t=fe(N5);return e||t||"ltr"}const O5=["top","right","bottom","left"],Zo=Math.min,or=Math.max,P5={left:"right",right:"left",bottom:"top",top:"bottom"},I5={start:"end",end:"start"};function ed(e,t,n){return or(e,Zo(t,n))}function In(e,t){return typeof e=="function"?e(t):e}function Dn(e){return e.split("-")[0]}function uo(e){return e.split("-")[1]}function wf(e){return e==="x"?"y":"x"}function Sf(e){return e==="y"?"height":"width"}function fo(e){return["top","bottom"].includes(Dn(e))?"y":"x"}function xf(e){return wf(fo(e))}function D5(e,t,n){n===void 0&&(n=!1);const r=uo(e),i=xf(e),o=Sf(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Za(s)),[s,Za(s)]}function R5(e){const t=Za(e);return[td(e),t,td(t)]}function td(e){return e.replace(/start|end/g,t=>I5[t])}function M5(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function L5(e,t,n,r){const i=uo(e);let o=M5(Dn(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(td)))),o}function Za(e){return e.replace(/left|right|bottom|top/g,t=>P5[t])}function k5(e){return{top:0,right:0,bottom:0,left:0,...e}}function _0(e){return typeof e!="number"?k5(e):{top:e,right:e,bottom:e,left:e}}function el(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Xm(e,t,n){let{reference:r,floating:i}=e;const o=fo(t),s=xf(t),a=Sf(s),l=Dn(t),c=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let f;switch(l){case"top":f={x:u,y:r.y-i.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(uo(t)){case"start":f[s]-=h*(n&&c?-1:1);break;case"end":f[s]+=h*(n&&c?-1:1);break}return f}const $5=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Xm(c,r,l),h=r,f={},p=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=In(e,t)||{};if(c==null)return{};const d=_0(u),h={x:n,y:r},f=xf(i),p=Sf(f),m=await s.getDimensions(c),v=f==="y",g=v?"top":"left",_=v?"bottom":"right",b=v?"clientHeight":"clientWidth",T=o.reference[p]+o.reference[f]-h[f]-o.floating[p],E=h[f]-o.reference[f],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let C=S?S[b]:0;(!C||!await(s.isElement==null?void 0:s.isElement(S)))&&(C=a.floating[b]||o.floating[p]);const x=T/2-E/2,w=C/2-m[p]/2-1,N=Zo(d[g],w),P=Zo(d[_],w),D=N,j=C-m[p]-P,$=C/2-m[p]/2+x,M=ed(D,$,j),L=!l.arrow&&uo(i)!=null&&$!==M&&o.reference[p]/2-($D<=0)){var w,N;const D=(((w=o.flip)==null?void 0:w.index)||0)+1,j=E[D];if(j)return{data:{index:D,overflows:x},reset:{placement:j}};let $=(N=x.filter(M=>M.overflows[0]<=0).sort((M,L)=>M.overflows[1]-L.overflows[1])[0])==null?void 0:N.placement;if(!$)switch(f){case"bestFit":{var P;const M=(P=x.map(L=>[L.placement,L.overflows.filter(k=>k>0).reduce((k,O)=>k+O,0)]).sort((L,k)=>L[1]-k[1])[0])==null?void 0:P[0];M&&($=M);break}case"initialPlacement":$=a;break}if(i!==$)return{reset:{placement:$}}}return{}}}};function Jm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zm(e){return O5.some(t=>e[t]>=0)}const j5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=In(e,t);switch(r){case"referenceHidden":{const o=await es(t,{...i,elementContext:"reference"}),s=Jm(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Zm(s)}}}case"escaped":{const o=await es(t,{...i,altBoundary:!0}),s=Jm(o,n.floating);return{data:{escapedOffsets:s,escaped:Zm(s)}}}default:return{}}}}};async function B5(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Dn(n),a=uo(n),l=fo(n)==="y",c=["left","top"].includes(s)?-1:1,u=o&&l?-1:1,d=In(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(f=a==="end"?p*-1:p),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}const U5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await B5(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},H5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:g,y:_}=v;return{x:g,y:_}}},...l}=In(e,t),c={x:n,y:r},u=await es(t,l),d=fo(Dn(i)),h=wf(d);let f=c[h],p=c[d];if(o){const v=h==="y"?"top":"left",g=h==="y"?"bottom":"right",_=f+u[v],b=f-u[g];f=ed(_,f,b)}if(s){const v=d==="y"?"top":"left",g=d==="y"?"bottom":"right",_=p+u[v],b=p-u[g];p=ed(_,p,b)}const m=a.fn({...t,[h]:f,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},W5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=In(e,t),u={x:n,y:r},d=fo(i),h=wf(d);let f=u[h],p=u[d];const m=In(a,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const b=h==="y"?"height":"width",T=o.reference[h]-o.floating[b]+v.mainAxis,E=o.reference[h]+o.reference[b]-v.mainAxis;fE&&(f=E)}if(c){var g,_;const b=h==="y"?"width":"height",T=["top","left"].includes(Dn(i)),E=o.reference[d]-o.floating[b]+(T&&((g=s.offset)==null?void 0:g[d])||0)+(T?0:v.crossAxis),S=o.reference[d]+o.reference[b]+(T?0:((_=s.offset)==null?void 0:_[d])||0)-(T?v.crossAxis:0);pS&&(p=S)}return{[h]:f,[d]:p}}}},q5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:s=()=>{},...a}=In(e,t),l=await es(t,a),c=Dn(n),u=uo(n),d=fo(n)==="y",{width:h,height:f}=r.floating;let p,m;c==="top"||c==="bottom"?(p=c,m=u===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(m=c,p=u==="end"?"top":"bottom");const v=f-l[p],g=h-l[m],_=!t.middlewareData.shift;let b=v,T=g;if(d){const S=h-l.left-l.right;T=u||_?Zo(g,S):S}else{const S=f-l.top-l.bottom;b=u||_?Zo(v,S):S}if(_&&!u){const S=or(l.left,0),C=or(l.right,0),x=or(l.top,0),w=or(l.bottom,0);d?T=h-2*(S!==0||C!==0?S+C:or(l.left,l.right)):b=f-2*(x!==0||w!==0?x+w:or(l.top,l.bottom))}await s({...t,availableWidth:T,availableHeight:b});const E=await i.getDimensions(o.floating);return h!==E.width||f!==E.height?{reset:{rects:!0}}:{}}}},nd=Math.min,qi=Math.max,tl=Math.round,_a=Math.floor,zn=e=>({x:e,y:e});function Yn(e){return T0(e)?(e.nodeName||"").toLowerCase():"#document"}function Ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $n(e){var t;return(t=(T0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function T0(e){return e instanceof Node||e instanceof Ot(e).Node}function Rn(e){return e instanceof Element||e instanceof Ot(e).Element}function fn(e){return e instanceof HTMLElement||e instanceof Ot(e).HTMLElement}function eg(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ot(e).ShadowRoot}function xs(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function G5(e){return["table","td","th"].includes(Yn(e))}function Cf(e){const t=Af(),n=Ut(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function E0(e){let t=no(e);for(;fn(t)&&!$l(t);){if(Cf(t))return t;t=no(t)}return null}function Af(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $l(e){return["html","body","#document"].includes(Yn(e))}function Ut(e){return Ot(e).getComputedStyle(e)}function Fl(e){return Rn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function no(e){if(Yn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||eg(e)&&e.host||$n(e);return eg(t)?t.host:t}function w0(e){const t=no(e);return $l(t)?e.ownerDocument?e.ownerDocument.body:e.body:fn(t)&&xs(t)?t:w0(t)}function ts(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=w0(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Ot(i);return o?t.concat(s,s.visualViewport||[],xs(i)?i:[],s.frameElement&&n?ts(s.frameElement):[]):t.concat(i,ts(i,[],n))}function S0(e){const t=Ut(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=fn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=tl(n)!==o||tl(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Nf(e){return Rn(e)?e:e.contextElement}function Gi(e){const t=Nf(e);if(!fn(t))return zn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=S0(t);let s=(o?tl(n.width):n.width)/r,a=(o?tl(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const z5=zn(0);function x0(e){const t=Ot(e);return!Af()||!t.visualViewport?z5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Y5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ot(e)?!1:t}function xr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Nf(e);let s=zn(1);t&&(r?Rn(r)&&(s=Gi(r)):s=Gi(e));const a=Y5(o,n,r)?x0(o):zn(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const h=Ot(o),f=r&&Rn(r)?Ot(r):r;let p=h.frameElement;for(;p&&r&&f!==h;){const m=Gi(p),v=p.getBoundingClientRect(),g=Ut(p),_=v.left+(p.clientLeft+parseFloat(g.paddingLeft))*m.x,b=v.top+(p.clientTop+parseFloat(g.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,d*=m.y,l+=_,c+=b,p=Ot(p).frameElement}}return el({width:u,height:d,x:l,y:c})}const Q5=[":popover-open",":modal"];function C0(e){let t=!1,n=0,r=0;function i(o){try{t=t||e.matches(o)}catch{}}if(Q5.forEach(o=>{i(o)}),t){const o=E0(e);if(o){const s=o.getBoundingClientRect();n=s.x,r=s.y}}return[t,n,r]}function K5(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=$n(r),[s]=t?C0(t.floating):[!1];if(r===o||s)return n;let a={scrollLeft:0,scrollTop:0},l=zn(1);const c=zn(0),u=fn(r);if((u||!u&&i!=="fixed")&&((Yn(r)!=="body"||xs(o))&&(a=Fl(r)),fn(r))){const d=xr(r);l=Gi(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+c.x,y:n.y*l.y-a.scrollTop*l.y+c.y}}function X5(e){return Array.from(e.getClientRects())}function A0(e){return xr($n(e)).left+Fl(e).scrollLeft}function J5(e){const t=$n(e),n=Fl(e),r=e.ownerDocument.body,i=qi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=qi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+A0(e);const a=-n.scrollTop;return Ut(r).direction==="rtl"&&(s+=qi(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Z5(e,t){const n=Ot(e),r=$n(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const c=Af();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function eA(e,t){const n=xr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=fn(e)?Gi(e):zn(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function tg(e,t,n){let r;if(t==="viewport")r=Z5(e,n);else if(t==="document")r=J5($n(e));else if(Rn(t))r=eA(t,n);else{const i=x0(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return el(r)}function N0(e,t){const n=no(e);return n===t||!Rn(n)||$l(n)?!1:Ut(n).position==="fixed"||N0(n,t)}function tA(e,t){const n=t.get(e);if(n)return n;let r=ts(e,[],!1).filter(a=>Rn(a)&&Yn(a)!=="body"),i=null;const o=Ut(e).position==="fixed";let s=o?no(e):e;for(;Rn(s)&&!$l(s);){const a=Ut(s),l=Cf(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||xs(s)&&!l&&N0(e,s))?r=r.filter(u=>u!==s):i=a,s=no(s)}return t.set(e,r),r}function nA(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?tA(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const d=tg(t,u,i);return c.top=qi(d.top,c.top),c.right=nd(d.right,c.right),c.bottom=nd(d.bottom,c.bottom),c.left=qi(d.left,c.left),c},tg(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function rA(e){const{width:t,height:n}=S0(e);return{width:t,height:n}}function iA(e,t,n,r){const i=fn(t),o=$n(t),s=n==="fixed",a=xr(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=zn(0);if(i||!i&&!s)if((Yn(t)!=="body"||xs(o))&&(l=Fl(t)),i){const m=xr(t,!0,s,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&(c.x=A0(o));let u=a.left+l.scrollLeft-c.x,d=a.top+l.scrollTop-c.y;const[h,f,p]=C0(r);return h&&(u+=f,d+=p,i&&(u+=t.clientLeft,d+=t.clientTop)),{x:u,y:d,width:a.width,height:a.height}}function ng(e,t){return!fn(e)||Ut(e).position==="fixed"?null:t?t(e):e.offsetParent}function O0(e,t){const n=Ot(e);if(!fn(e))return n;let r=ng(e,t);for(;r&&G5(r)&&Ut(r).position==="static";)r=ng(r,t);return r&&(Yn(r)==="html"||Yn(r)==="body"&&Ut(r).position==="static"&&!Cf(r))?n:r||E0(e)||n}const oA=async function(e){const t=this.getOffsetParent||O0,n=this.getDimensions;return{reference:iA(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function sA(e){return Ut(e).direction==="rtl"}const aA={convertOffsetParentRelativeRectToViewportRelativeRect:K5,getDocumentElement:$n,getClippingRect:nA,getOffsetParent:O0,getElementRects:oA,getClientRects:X5,getDimensions:rA,getScale:Gi,isElement:Rn,isRTL:sA};function lA(e,t){let n=null,r;const i=$n(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const{left:c,top:u,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const f=_a(u),p=_a(i.clientWidth-(c+d)),m=_a(i.clientHeight-(u+h)),v=_a(c),_={rootMargin:-f+"px "+-p+"px "+-m+"px "+-v+"px",threshold:qi(0,nd(1,l))||1};let b=!0;function T(E){const S=E[0].intersectionRatio;if(S!==l){if(!b)return s();S?s(!1,S):r=setTimeout(()=>{s(!1,1e-7)},100)}b=!1}try{n=new IntersectionObserver(T,{..._,root:i.ownerDocument})}catch{n=new IntersectionObserver(T,_)}n.observe(e)}return s(!0),o}function cA(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Nf(e),u=i||o?[...c?ts(c):[],...ts(t)]:[];u.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),o&&g.addEventListener("resize",n)});const d=c&&a?lA(c,n):null;let h=-1,f=null;s&&(f=new ResizeObserver(g=>{let[_]=g;_&&_.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let p,m=l?xr(e):null;l&&v();function v(){const g=xr(e);m&&(g.x!==m.x||g.y!==m.y||g.width!==m.width||g.height!==m.height)&&n(),m=g,p=requestAnimationFrame(v)}return n(),()=>{var g;u.forEach(_=>{i&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),d?.(),(g=f)==null||g.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const uA=H5,dA=V5,fA=q5,hA=j5,rg=F5,pA=W5,mA=(e,t,n)=>{const r=new Map,i={platform:aA,...n},o={...i.platform,_c:r};return $5(e,t,{...i,platform:o})},gA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?rg({element:r.current,padding:i}).fn(n):{}:r?rg({element:r,padding:i}).fn(n):{}}}};var Ra=typeof document<"u"?St:B;function nl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!nl(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!nl(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function P0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ig(e,t){const n=P0(e);return Math.round(t*n)/n}function og(e){const t=F(e);return Ra(()=>{t.current=e}),t}function vA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=z({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=z(r);nl(h,r)||f(r);const[p,m]=z(null),[v,g]=z(null),_=Y(k=>{k!==S.current&&(S.current=k,m(k))},[]),b=Y(k=>{k!==C.current&&(C.current=k,g(k))},[]),T=o||p,E=s||v,S=F(null),C=F(null),x=F(u),w=l!=null,N=og(l),P=og(i),D=Y(()=>{if(!S.current||!C.current)return;const k={placement:t,strategy:n,middleware:h};P.current&&(k.platform=P.current),mA(S.current,C.current,k).then(O=>{const A={...O,isPositioned:!0};j.current&&!nl(x.current,A)&&(x.current=A,mt(()=>{d(A)}))})},[h,t,n,P]);Ra(()=>{c===!1&&x.current.isPositioned&&(x.current.isPositioned=!1,d(k=>({...k,isPositioned:!1})))},[c]);const j=F(!1);Ra(()=>(j.current=!0,()=>{j.current=!1}),[]),Ra(()=>{if(T&&(S.current=T),E&&(C.current=E),T&&E){if(N.current)return N.current(T,E,D);D()}},[T,E,D,N,w]);const $=re(()=>({reference:S,floating:C,setReference:_,setFloating:b}),[_,b]),M=re(()=>({reference:T,floating:E}),[T,E]),L=re(()=>{const k={position:n,left:0,top:0};if(!M.floating)return k;const O=ig(M.floating,u.x),A=ig(M.floating,u.y);return a?{...k,transform:"translate("+O+"px, "+A+"px)",...P0(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:A}},[n,a,M.floating,u.x,u.y]);return re(()=>({...u,update:D,refs:$,elements:M,floatingStyles:L}),[u,D,$,M,L])}var yA="Arrow",I0=Q((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return y(ze.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y("polygon",{points:"0,0 30,0 15,10"})})});I0.displayName=yA;var bA=I0;function _A(e){const[t,n]=z(void 0);return Gn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Of="Popper",[D0,Vl]=Mr(Of),[TA,R0]=D0(Of),M0=e=>{const{__scopePopper:t,children:n}=e,[r,i]=z(null);return y(TA,{scope:t,anchor:r,onAnchorChange:i,children:n})};M0.displayName=Of;var L0="PopperAnchor",k0=Q((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=R0(L0,n),s=F(null),a=et(t,s);return B(()=>{o.onAnchorChange(r?.current||s.current)}),r?null:y(ze.div,{...i,ref:a})});k0.displayName=L0;var Pf="PopperContent",[EA,wA]=D0(Pf),$0=Q((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:f="optimized",onPlaced:p,...m}=e,v=R0(Pf,n),[g,_]=z(null),b=et(t,q=>_(q)),[T,E]=z(null),S=_A(T),C=S?.width??0,x=S?.height??0,w=r+(o!=="center"?"-"+o:""),N=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},P=Array.isArray(c)?c:[c],D=P.length>0,j={padding:N,boundary:P.filter(xA),altBoundary:D},{refs:$,floatingStyles:M,placement:L,isPositioned:k,middlewareData:O}=vA({strategy:"fixed",placement:w,whileElementsMounted:(...q)=>cA(...q,{animationFrame:f==="always"}),elements:{reference:v.anchor},middleware:[U5({mainAxis:i+x,alignmentAxis:s}),l&&uA({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?pA():void 0,...j}),l&&dA({...j}),fA({...j,apply:({elements:q,rects:H,availableWidth:X,availableHeight:Z})=>{const{width:Ce,height:Ue}=H.reference,le=q.floating.style;le.setProperty("--radix-popper-available-width",`${X}px`),le.setProperty("--radix-popper-available-height",`${Z}px`),le.setProperty("--radix-popper-anchor-width",`${Ce}px`),le.setProperty("--radix-popper-anchor-height",`${Ue}px`)}}),T&&gA({element:T,padding:a}),CA({arrowWidth:C,arrowHeight:x}),h&&hA({strategy:"referenceHidden",...j})]}),[A,W]=j0(L),J=Pn(p);Gn(()=>{k&&J?.()},[k,J]);const se=O.arrow?.x,te=O.arrow?.y,V=O.arrow?.centerOffset!==0,[ie,ee]=z();return Gn(()=>{g&&ee(window.getComputedStyle(g).zIndex)},[g]),y("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:k?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y(EA,{scope:n,placedSide:A,onArrowChange:E,arrowX:se,arrowY:te,shouldHideArrow:V,children:y(ze.div,{"data-side":A,"data-align":W,...m,ref:b,style:{...m.style,animation:k?void 0:"none"}})})})});$0.displayName=Pf;var F0="PopperArrow",SA={top:"bottom",right:"left",bottom:"top",left:"right"},V0=Q(function(t,n){const{__scopePopper:r,...i}=t,o=wA(F0,r),s=SA[o.placedSide];return y("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]: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:y(bA,{...i,ref:n,style:{...i.style,display:"block"}})})});V0.displayName=F0;function xA(e){return e!==null}var CA=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,s=i.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,u]=j0(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(i.arrow?.x??0)+a/2,f=(i.arrow?.y??0)+l/2;let p="",m="";return c==="bottom"?(p=s?d:`${h}px`,m=`${-l}px`):c==="top"?(p=s?d:`${h}px`,m=`${r.floating.height+l}px`):c==="right"?(p=`${-l}px`,m=s?d:`${f}px`):c==="left"&&(p=`${r.floating.width+l}px`,m=s?d:`${f}px`),{data:{x:p,y:m}}}});function j0(e){const[t,n="center"]=e.split("-");return[t,n]}var B0=M0,U0=k0,H0=$0,W0=V0,Uc="rovingFocusGroup.onEntryFocus",AA={bubbles:!1,cancelable:!0},Cs="RovingFocusGroup",[rd,q0,NA]=y0(Cs),[OA,G0]=Mr(Cs,[NA]),[PA,IA]=OA(Cs),z0=Q((e,t)=>y(rd.Provider,{scope:e.__scopeRovingFocusGroup,children:y(rd.Slot,{scope:e.__scopeRovingFocusGroup,children:y(DA,{...e,ref:t})})}));z0.displayName=Cs;var DA=Q((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,h=F(null),f=et(t,h),p=b0(o),[m,v]=Dl({prop:s,defaultProp:a??null,onChange:l,caller:Cs}),[g,_]=z(!1),b=Pn(c),T=q0(n),E=F(!1),[S,C]=z(0);return B(()=>{const x=h.current;if(x)return x.addEventListener(Uc,b),()=>x.removeEventListener(Uc,b)},[b]),y(PA,{scope:n,orientation:r,dir:p,loop:i,currentTabStopId:m,onItemFocus:Y(x=>v(x),[v]),onItemShiftTab:Y(()=>_(!0),[]),onFocusableItemAdd:Y(()=>C(x=>x+1),[]),onFocusableItemRemove:Y(()=>C(x=>x-1),[]),children:y(ze.div,{tabIndex:g||S===0?-1:0,"data-orientation":r,...d,ref:f,style:{outline:"none",...e.style},onMouseDown:de(e.onMouseDown,()=>{E.current=!0}),onFocus:de(e.onFocus,x=>{const w=!E.current;if(x.target===x.currentTarget&&w&&!g){const N=new CustomEvent(Uc,AA);if(x.currentTarget.dispatchEvent(N),!N.defaultPrevented){const P=T().filter(L=>L.focusable),D=P.find(L=>L.active),j=P.find(L=>L.id===m),M=[D,j,...P].filter(Boolean).map(L=>L.ref.current);K0(M,u)}}E.current=!1}),onBlur:de(e.onBlur,()=>_(!1))})})}),Y0="RovingFocusGroupItem",Q0=Q((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,children:s,...a}=e,l=yr(),c=o||l,u=IA(Y0,n),d=u.currentTabStopId===c,h=q0(n),{onFocusableItemAdd:f,onFocusableItemRemove:p,currentTabStopId:m}=u;return B(()=>{if(r)return f(),()=>p()},[r,f,p]),y(rd.ItemSlot,{scope:n,id:c,focusable:r,active:i,children:y(ze.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...a,ref:t,onMouseDown:de(e.onMouseDown,v=>{r?u.onItemFocus(c):v.preventDefault()}),onFocus:de(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:de(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){u.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const g=LA(v,u.orientation,u.dir);if(g!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let b=h().filter(T=>T.focusable).map(T=>T.ref.current);if(g==="last")b.reverse();else if(g==="prev"||g==="next"){g==="prev"&&b.reverse();const T=b.indexOf(v.currentTarget);b=u.loop?kA(b,T+1):b.slice(T+1)}setTimeout(()=>K0(b))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:m!=null}):s})})});Q0.displayName=Y0;var RA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function MA(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function LA(e,t,n){const r=MA(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return RA[r]}function K0(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function kA(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var $A=z0,FA=Q0,id=["Enter"," "],VA=["ArrowDown","PageUp","Home"],X0=["ArrowUp","PageDown","End"],jA=[...VA,...X0],BA={ltr:[...id,"ArrowRight"],rtl:[...id,"ArrowLeft"]},UA={ltr:["ArrowLeft"],rtl:["ArrowRight"]},As="Menu",[ns,HA,WA]=y0(As),[Lr,J0]=Mr(As,[WA,Vl,G0]),jl=Vl(),Z0=G0(),[qA,kr]=Lr(As),[GA,Ns]=Lr(As),eb=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:s=!0}=e,a=jl(t),[l,c]=z(null),u=F(!1),d=Pn(o),h=b0(i);return B(()=>{const f=()=>{u.current=!0,document.addEventListener("pointerdown",p,{capture:!0,once:!0}),document.addEventListener("pointermove",p,{capture:!0,once:!0})},p=()=>u.current=!1;return document.addEventListener("keydown",f,{capture:!0}),()=>{document.removeEventListener("keydown",f,{capture:!0}),document.removeEventListener("pointerdown",p,{capture:!0}),document.removeEventListener("pointermove",p,{capture:!0})}},[]),y(B0,{...a,children:y(qA,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c,children:y(GA,{scope:t,onClose:Y(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:h,modal:s,children:r})})})};eb.displayName=As;var zA="MenuAnchor",If=Q((e,t)=>{const{__scopeMenu:n,...r}=e,i=jl(n);return y(U0,{...i,...r,ref:t})});If.displayName=zA;var Df="MenuPortal",[YA,tb]=Lr(Df,{forceMount:void 0}),nb=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=kr(Df,t);return y(YA,{scope:t,forceMount:n,children:y(bn,{present:n||o.open,children:y(Ml,{asChild:!0,container:i,children:r})})})};nb.displayName=Df;var Vt="MenuContent",[QA,Rf]=Lr(Vt),rb=Q((e,t)=>{const n=tb(Vt,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=kr(Vt,e.__scopeMenu),s=Ns(Vt,e.__scopeMenu);return y(ns.Provider,{scope:e.__scopeMenu,children:y(bn,{present:r||o.open,children:y(ns.Slot,{scope:e.__scopeMenu,children:s.modal?y(KA,{...i,ref:t}):y(XA,{...i,ref:t})})})})}),KA=Q((e,t)=>{const n=kr(Vt,e.__scopeMenu),r=F(null),i=et(t,r);return B(()=>{const o=r.current;if(o)return Jy(o)},[]),y(Mf,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:de(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),XA=Q((e,t)=>{const n=kr(Vt,e.__scopeMenu);return y(Mf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),JA=Jo("MenuContent.ScrollLock"),Mf=Q((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:f,disableOutsideScroll:p,...m}=e,v=kr(Vt,n),g=Ns(Vt,n),_=jl(n),b=Z0(n),T=HA(n),[E,S]=z(null),C=F(null),x=et(t,C,v.onContentChange),w=F(0),N=F(""),P=F(0),D=F(null),j=F("right"),$=F(0),M=p?bf:me,L=p?{as:JA,allowPinchZoom:!0}:void 0,k=A=>{const W=N.current+A,J=T().filter(q=>!q.disabled),se=document.activeElement,te=J.find(q=>q.ref.current===se)?.textValue,V=J.map(q=>q.textValue),ie=uN(V,W,te),ee=J.find(q=>q.textValue===ie)?.ref.current;(function q(H){N.current=H,window.clearTimeout(w.current),H!==""&&(w.current=window.setTimeout(()=>q(""),1e3))})(W),ee&&setTimeout(()=>ee.focus())};B(()=>()=>window.clearTimeout(w.current),[]),Wy();const O=Y(A=>j.current===D.current?.side&&fN(A,D.current?.area),[]);return y(QA,{scope:n,searchRef:N,onItemEnter:Y(A=>{O(A)&&A.preventDefault()},[O]),onItemLeave:Y(A=>{O(A)||(C.current?.focus(),S(null))},[O]),onTriggerLeave:Y(A=>{O(A)&&A.preventDefault()},[O]),pointerGraceTimerRef:P,onPointerGraceIntentChange:Y(A=>{D.current=A},[]),children:y(M,{...L,children:y(yf,{asChild:!0,trapped:i,onMountAutoFocus:de(o,A=>{A.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:y(Rl,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:f,children:y($A,{asChild:!0,...b,dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:S,onEntryFocus:de(l,A=>{g.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:y(H0,{role:"menu","aria-orientation":"vertical","data-state":bb(v.open),"data-radix-menu-content":"",dir:g.dir,..._,...m,ref:x,style:{outline:"none",...m.style},onKeyDown:de(m.onKeyDown,A=>{const J=A.target.closest("[data-radix-menu-content]")===A.currentTarget,se=A.ctrlKey||A.altKey||A.metaKey,te=A.key.length===1;J&&(A.key==="Tab"&&A.preventDefault(),!se&&te&&k(A.key));const V=C.current;if(A.target!==V||!jA.includes(A.key))return;A.preventDefault();const ee=T().filter(q=>!q.disabled).map(q=>q.ref.current);X0.includes(A.key)&&ee.reverse(),lN(ee)}),onBlur:de(e.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(w.current),N.current="")}),onPointerMove:de(e.onPointerMove,rs(A=>{const W=A.target,J=$.current!==A.clientX;if(A.currentTarget.contains(W)&&J){const se=A.clientX>$.current?"right":"left";j.current=se,$.current=A.clientX}}))})})})})})})});rb.displayName=Vt;var ZA="MenuGroup",Lf=Q((e,t)=>{const{__scopeMenu:n,...r}=e;return y(ze.div,{role:"group",...r,ref:t})});Lf.displayName=ZA;var eN="MenuLabel",ib=Q((e,t)=>{const{__scopeMenu:n,...r}=e;return y(ze.div,{...r,ref:t})});ib.displayName=eN;var rl="MenuItem",sg="menu.itemSelect",Bl=Q((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,o=F(null),s=Ns(rl,e.__scopeMenu),a=Rf(rl,e.__scopeMenu),l=et(t,o),c=F(!1),u=()=>{const d=o.current;if(!n&&d){const h=new CustomEvent(sg,{bubbles:!0,cancelable:!0});d.addEventListener(sg,f=>r?.(f),{once:!0}),jy(d,h),h.defaultPrevented?c.current=!1:s.onClose()}};return y(ob,{...i,ref:l,disabled:n,onClick:de(e.onClick,u),onPointerDown:d=>{e.onPointerDown?.(d),c.current=!0},onPointerUp:de(e.onPointerUp,d=>{c.current||d.currentTarget?.click()}),onKeyDown:de(e.onKeyDown,d=>{const h=a.searchRef.current!=="";n||h&&d.key===" "||id.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Bl.displayName=rl;var ob=Q((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,s=Rf(rl,n),a=Z0(n),l=F(null),c=et(t,l),[u,d]=z(!1),[h,f]=z("");return B(()=>{const p=l.current;p&&f((p.textContent??"").trim())},[o.children]),y(ns.ItemSlot,{scope:n,disabled:r,textValue:i??h,children:y(FA,{asChild:!0,...a,focusable:!r,children:y(ze.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...o,ref:c,onPointerMove:de(e.onPointerMove,rs(p=>{r?s.onItemLeave(p):(s.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:de(e.onPointerLeave,rs(p=>s.onItemLeave(p))),onFocus:de(e.onFocus,()=>d(!0)),onBlur:de(e.onBlur,()=>d(!1))})})})}),tN="MenuCheckboxItem",sb=Q((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return y(db,{scope:e.__scopeMenu,checked:n,children:y(Bl,{role:"menuitemcheckbox","aria-checked":il(n)?"mixed":n,...i,ref:t,"data-state":$f(n),onSelect:de(i.onSelect,()=>r?.(il(n)?!0:!n),{checkForDefaultPrevented:!1})})})});sb.displayName=tN;var ab="MenuRadioGroup",[nN,rN]=Lr(ab,{value:void 0,onValueChange:()=>{}}),lb=Q((e,t)=>{const{value:n,onValueChange:r,...i}=e,o=Pn(r);return y(nN,{scope:e.__scopeMenu,value:n,onValueChange:o,children:y(Lf,{...i,ref:t})})});lb.displayName=ab;var cb="MenuRadioItem",ub=Q((e,t)=>{const{value:n,...r}=e,i=rN(cb,e.__scopeMenu),o=n===i.value;return y(db,{scope:e.__scopeMenu,checked:o,children:y(Bl,{role:"menuitemradio","aria-checked":o,...r,ref:t,"data-state":$f(o),onSelect:de(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ub.displayName=cb;var kf="MenuItemIndicator",[db,iN]=Lr(kf,{checked:!1}),fb=Q((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,o=iN(kf,n);return y(bn,{present:r||il(o.checked)||o.checked===!0,children:y(ze.span,{...i,ref:t,"data-state":$f(o.checked)})})});fb.displayName=kf;var oN="MenuSeparator",hb=Q((e,t)=>{const{__scopeMenu:n,...r}=e;return y(ze.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});hb.displayName=oN;var sN="MenuArrow",pb=Q((e,t)=>{const{__scopeMenu:n,...r}=e,i=jl(n);return y(W0,{...i,...r,ref:t})});pb.displayName=sN;var aN="MenuSub",[F9,mb]=Lr(aN),No="MenuSubTrigger",gb=Q((e,t)=>{const n=kr(No,e.__scopeMenu),r=Ns(No,e.__scopeMenu),i=mb(No,e.__scopeMenu),o=Rf(No,e.__scopeMenu),s=F(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=o,c={__scopeMenu:e.__scopeMenu},u=Y(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return B(()=>u,[u]),B(()=>{const d=a.current;return()=>{window.clearTimeout(d),l(null)}},[a,l]),y(If,{asChild:!0,...c,children:y(ob,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":bb(n.open),...e,ref:vf(t,i.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:de(e.onPointerMove,rs(d=>{o.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:de(e.onPointerLeave,rs(d=>{u();const h=n.content?.getBoundingClientRect();if(h){const f=n.content?.dataset.side,p=f==="right",m=p?-5:5,v=h[p?"left":"right"],g=h[p?"right":"left"];o.onPointerGraceIntentChange({area:[{x:d.clientX+m,y:d.clientY},{x:v,y:h.top},{x:g,y:h.top},{x:g,y:h.bottom},{x:v,y:h.bottom}],side:f}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(d),d.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:de(e.onKeyDown,d=>{const h=o.searchRef.current!=="";e.disabled||h&&d.key===" "||BA[r.dir].includes(d.key)&&(n.onOpenChange(!0),n.content?.focus(),d.preventDefault())})})})});gb.displayName=No;var vb="MenuSubContent",yb=Q((e,t)=>{const n=tb(Vt,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=kr(Vt,e.__scopeMenu),s=Ns(Vt,e.__scopeMenu),a=mb(vb,e.__scopeMenu),l=F(null),c=et(t,l);return y(ns.Provider,{scope:e.__scopeMenu,children:y(bn,{present:r||o.open,children:y(ns.Slot,{scope:e.__scopeMenu,children:y(Mf,{id:a.contentId,"aria-labelledby":a.triggerId,...i,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{s.isUsingKeyboardRef.current&&l.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:de(e.onFocusOutside,u=>{u.target!==a.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:de(e.onEscapeKeyDown,u=>{s.onClose(),u.preventDefault()}),onKeyDown:de(e.onKeyDown,u=>{const d=u.currentTarget.contains(u.target),h=UA[s.dir].includes(u.key);d&&h&&(o.onOpenChange(!1),a.trigger?.focus(),u.preventDefault())})})})})})});yb.displayName=vb;function bb(e){return e?"open":"closed"}function il(e){return e==="indeterminate"}function $f(e){return il(e)?"indeterminate":e?"checked":"unchecked"}function lN(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function cN(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function uN(e,t,n){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let s=cN(e,Math.max(o,0));i.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function dN(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,s=t.length-1;or!=h>r&&n<(d-c)*(r-u)/(h-u)+c&&(i=!i)}return i}function fN(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return dN(n,t)}function rs(e){return t=>t.pointerType==="mouse"?e(t):void 0}var hN=eb,pN=If,mN=nb,gN=rb,vN=Lf,yN=ib,bN=Bl,_N=sb,TN=lb,EN=ub,wN=fb,SN=hb,xN=pb,CN=gb,AN=yb,Ul="DropdownMenu",[NN,V9]=Mr(Ul,[J0]),bt=J0(),[ON,_b]=NN(Ul),Tb=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,l=bt(t),c=F(null),[u,d]=Dl({prop:i,defaultProp:o??!1,onChange:s,caller:Ul});return y(ON,{scope:t,triggerId:yr(),triggerRef:c,contentId:yr(),open:u,onOpenChange:d,onOpenToggle:Y(()=>d(h=>!h),[d]),modal:a,children:y(hN,{...l,open:u,onOpenChange:d,dir:r,modal:a,children:n})})};Tb.displayName=Ul;var Eb="DropdownMenuTrigger",wb=Q((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=_b(Eb,n),s=bt(n);return y(pN,{asChild:!0,...s,children:y(ze.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:vf(t,o.triggerRef),onPointerDown:de(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(o.onOpenToggle(),o.open||a.preventDefault())}),onKeyDown:de(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&o.onOpenToggle(),a.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});wb.displayName=Eb;var PN="DropdownMenuPortal",Sb=e=>{const{__scopeDropdownMenu:t,...n}=e,r=bt(t);return y(mN,{...r,...n})};Sb.displayName=PN;var xb="DropdownMenuContent",Cb=Q((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=_b(xb,n),o=bt(n),s=F(!1);return y(gN,{id:i.contentId,"aria-labelledby":i.triggerId,...o,...r,ref:t,onCloseAutoFocus:de(e.onCloseAutoFocus,a=>{s.current||i.triggerRef.current?.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:de(e.onInteractOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!i.modal||u)&&(s.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)"}})});Cb.displayName=xb;var IN="DropdownMenuGroup",DN=Q((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bt(n);return y(vN,{...i,...r,ref:t})});DN.displayName=IN;var RN="DropdownMenuLabel",MN=Q((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bt(n);return y(yN,{...i,...r,ref:t})});MN.displayName=RN;var LN="DropdownMenuItem",Ab=Q((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bt(n);return y(bN,{...i,...r,ref:t})});Ab.displayName=LN;var kN="DropdownMenuCheckboxItem",$N=Q((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bt(n);return y(_N,{...i,...r,ref:t})});$N.displayName=kN;var FN="DropdownMenuRadioGroup",VN=Q((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bt(n);return y(TN,{...i,...r,ref:t})});VN.displayName=FN;var jN="DropdownMenuRadioItem",BN=Q((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bt(n);return y(EN,{...i,...r,ref:t})});BN.displayName=jN;var UN="DropdownMenuItemIndicator",HN=Q((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bt(n);return y(wN,{...i,...r,ref:t})});HN.displayName=UN;var WN="DropdownMenuSeparator",qN=Q((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bt(n);return y(SN,{...i,...r,ref:t})});qN.displayName=WN;var GN="DropdownMenuArrow",zN=Q((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bt(n);return y(xN,{...i,...r,ref:t})});zN.displayName=GN;var YN="DropdownMenuSubTrigger",QN=Q((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bt(n);return y(CN,{...i,...r,ref:t})});QN.displayName=YN;var KN="DropdownMenuSubContent",XN=Q((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bt(n);return y(AN,{...i,...r,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)"}})});XN.displayName=KN;var JN=Tb,ZN=wb,eO=Sb,tO=Cb,nO=Ab;const Nb=Q((e,t)=>{const n=K.c(6);let r;n[0]!==e.className?(r=Ie("graphiql-un-styled",e.className),n[0]=e.className,n[1]=r):r=n[1];let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=y(ZN,{asChild:!0,children:y("button",{...e,ref:t,className:r})}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Nb.displayName="DropdownMenuButton";const rO=e=>{const t=K.c(14);let n,r,i,o,s;t[0]!==e?({children:n,align:o,sideOffset:s,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s):(n=t[1],r=t[2],i=t[3],o=t[4],s=t[5]);const a=o===void 0?"start":o,l=s===void 0?5:s;let c;t[6]!==r?(c=Ie("graphiql-dropdown-content",r),t[6]=r,t[7]=c):c=t[7];let u;return t[8]!==a||t[9]!==n||t[10]!==i||t[11]!==l||t[12]!==c?(u=y(eO,{children:y(tO,{align:a,sideOffset:l,className:c,...i,children:n})}),t[8]=a,t[9]=n,t[10]=i,t[11]=l,t[12]=c,t[13]=u):u=t[13],u},iO=e=>{const t=K.c(10);let n,r,i;t[0]!==e?({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);let o;t[4]!==r?(o=Ie("graphiql-dropdown-item",r),t[4]=r,t[5]=o):o=t[5];let s;return t[6]!==n||t[7]!==i||t[8]!==o?(s=y(nO,{className:o,...i,children:n}),t[6]=n,t[7]=i,t[8]=o,t[9]=s):s=t[9],s},Ta=Object.assign(JN,{Button:Nb,Item:iO,Content:rO}),hn=Q((e,t)=>{const n=K.c(18);let r,i,o,s;n[0]!==e?({children:r,onlyShowFirstChild:i,type:s,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=o,n[4]=s):(r=n[1],i=n[2],o=n[3],s=n[4]);const a=`graphiql-markdown-${s}`,l=i&&"graphiql-markdown-preview";let c;n[5]!==o.className||n[6]!==a||n[7]!==l?(c=Ie(a,l,o.className),n[5]=o.className,n[6]=a,n[7]=l,n[8]=c):c=n[8];let u;n[9]!==r?(u=Ka.render(r),n[9]=r,n[10]=u):u=n[10];let d;n[11]!==u?(d={__html:u},n[11]=u,n[12]=d):d=n[12];let h;return n[13]!==o||n[14]!==t||n[15]!==c||n[16]!==d?(h=y("div",{...o,ref:t,className:c,dangerouslySetInnerHTML:d}),n[13]=o,n[14]=t,n[15]=c,n[16]=d,n[17]=h):h=n[17],h});hn.displayName="MarkdownContent";const Ff=Q((e,t)=>{const n=K.c(6);let r;n[0]!==e.className?(r=Ie("graphiql-spinner",e.className),n[0]=e.className,n[1]=r):r=n[1];let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=y("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Ff.displayName="Spinner";const Ob=Ne({});function Os(e){const t=F(null);return t.current===null&&(t.current=e()),t.current}const Vf=typeof window<"u",Pb=Vf?St:B,jf=Ne(null);function Bf(e,t){e.indexOf(t)===-1&&e.push(t)}function Uf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function oO([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&rn>t?t:n{};const Ln={},Ib=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Db(e){return typeof e=="object"&&e!==null}const Rb=e=>/^0[^.\s]+$/u.test(e);function Wf(e){let t;return()=>(t===void 0&&(t=e()),t)}const jt=e=>e,sO=(e,t)=>n=>t(e(n)),Ps=(...e)=>e.reduce(sO),is=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class qf{constructor(){this.subscriptions=[]}add(t){return Bf(this.subscriptions,t),()=>Uf(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;oe*1e3,cn=e=>e/1e3;function Mb(e,t){return t?e*(1e3/t):0}const Lb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,aO=1e-7,lO=12;function cO(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Lb(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>aO&&++acO(o,0,1,e,n);return o=>o===0||o===1?o:Lb(i(o),t,r)}const kb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$b=e=>t=>1-e(1-t),Fb=Is(.33,1.53,.69,.99),Gf=$b(Fb),Vb=kb(Gf),jb=e=>(e*=2)<1?.5*Gf(e):.5*(2-Math.pow(2,-10*(e-1))),zf=e=>1-Math.sin(Math.acos(e)),Bb=$b(zf),Ub=kb(zf),uO=Is(.42,0,1,1),dO=Is(0,0,.58,1),Hb=Is(.42,0,.58,1),fO=e=>Array.isArray(e)&&typeof e[0]!="number",Wb=e=>Array.isArray(e)&&typeof e[0]=="number",hO={linear:jt,easeIn:uO,easeInOut:Hb,easeOut:dO,circIn:zf,circInOut:Ub,circOut:Bb,backIn:Gf,backInOut:Vb,backOut:Fb,anticipate:jb},pO=e=>typeof e=="string",ag=e=>{if(Wb(e)){Hf(e.length===4);const[t,n,r,i]=e;return Is(t,n,r,i)}else if(pO(e))return hO[e];return e},Ea=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function mO(e,t){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,h=!1)=>{const p=h&&i?n:r;return d&&s.add(u),p.has(u)||p.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,c.process(u))}};return c}const gO=40;function qb(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Ea.reduce((b,T)=>(b[T]=mO(o),b),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:f,postRender:p}=s,m=()=>{const b=Ln.useManualTiming?i.timestamp:performance.now();n=!1,Ln.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,gO),1)),i.timestamp=b,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),d.process(i),h.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},v=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:Ea.reduce((b,T)=>{const E=s[T];return b[T]=(S,C=!1,x=!1)=>(n||v(),E.schedule(S,C,x)),b},{}),cancel:b=>{for(let T=0;T(Ma===void 0&&wt.set(lt.isProcessing||Ln.useManualTiming?lt.timestamp:performance.now()),Ma),set:e=>{Ma=e,queueMicrotask(vO)}},Gb=e=>t=>typeof t=="string"&&t.startsWith(e),Yf=Gb("--"),yO=Gb("var(--"),Qf=e=>yO(e)?bO.test(e.split("/*")[0].trim()):!1,bO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ho={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},os={...ho,transform:e=>Mn(0,1,e)},wa={...ho,default:1},ko=e=>Math.round(e*1e5)/1e5,Kf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _O(e){return e==null}const TO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xf=(e,t)=>n=>!!(typeof n=="string"&&TO.test(n)&&n.startsWith(e)||t&&!_O(n)&&Object.prototype.hasOwnProperty.call(n,t)),zb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(Kf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},EO=e=>Mn(0,255,e),Wc={...ho,transform:e=>Math.round(EO(e))},fr={test:Xf("rgb","red"),parse:zb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Wc.transform(e)+", "+Wc.transform(t)+", "+Wc.transform(n)+", "+ko(os.transform(r))+")"};function wO(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const od={test:Xf("#"),parse:wO,transform:fr.transform},Ds=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),jn=Ds("deg"),un=Ds("%"),ce=Ds("px"),SO=Ds("vh"),xO=Ds("vw"),lg={...un,parse:e=>un.parse(e)/100,transform:e=>un.transform(e*100)},Mi={test:Xf("hsl","hue"),parse:zb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+un.transform(ko(t))+", "+un.transform(ko(n))+", "+ko(os.transform(r))+")"},Ze={test:e=>fr.test(e)||od.test(e)||Mi.test(e),parse:e=>fr.test(e)?fr.parse(e):Mi.test(e)?Mi.parse(e):od.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?fr.transform(e):Mi.transform(e),getAnimatableNone:e=>{const t=Ze.parse(e);return t.alpha=0,Ze.transform(t)}},CO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function AO(e){return isNaN(e)&&typeof e=="string"&&(e.match(Kf)?.length||0)+(e.match(CO)?.length||0)>0}const Yb="number",Qb="color",NO="var",OO="var(",cg="${}",PO=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ss(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(PO,l=>(Ze.test(l)?(r.color.push(o),i.push(Qb),n.push(Ze.parse(l))):l.startsWith(OO)?(r.var.push(o),i.push(NO),n.push(l)):(r.number.push(o),i.push(Yb),n.push(parseFloat(l))),++o,cg)).split(cg);return{values:n,split:a,indexes:r,types:i}}function Kb(e){return ss(e).values}function Xb(e){const{split:t,types:n}=ss(e),r=t.length;return i=>{let o="";for(let s=0;stypeof e=="number"?0:Ze.test(e)?Ze.getAnimatableNone(e):e;function DO(e){const t=Kb(e);return Xb(e)(t.map(IO))}const Qn={test:AO,parse:Kb,createTransformer:Xb,getAnimatableNone:DO};function qc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function RO({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=qc(l,a,e+1/3),o=qc(l,a,e),s=qc(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function ol(e,t){return n=>n>0?t:e}const Fe=(e,t,n)=>e+(t-e)*n,Gc=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},MO=[od,fr,Mi],LO=e=>MO.find(t=>t.test(e));function ug(e){const t=LO(e);if(!t)return!1;let n=t.parse(e);return t===Mi&&(n=RO(n)),n}const dg=(e,t)=>{const n=ug(e),r=ug(t);if(!n||!r)return ol(e,t);const i={...n};return o=>(i.red=Gc(n.red,r.red,o),i.green=Gc(n.green,r.green,o),i.blue=Gc(n.blue,r.blue,o),i.alpha=Fe(n.alpha,r.alpha,o),fr.transform(i))},sd=new Set(["none","hidden"]);function kO(e,t){return sd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $O(e,t){return n=>Fe(e,t,n)}function Jf(e){return typeof e=="number"?$O:typeof e=="string"?Qf(e)?ol:Ze.test(e)?dg:jO:Array.isArray(e)?Jb:typeof e=="object"?Ze.test(e)?dg:FO:ol}function Jb(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Jf(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in r)n[o]=r[o](i);return n}}function VO(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Qn.createTransformer(t),r=ss(e),i=ss(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?sd.has(e)&&!i.values.length||sd.has(t)&&!r.values.length?kO(e,t):Ps(Jb(VO(r,i),i.values),n):ol(e,t)};function Zb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Fe(e,t,n):Jf(e)(e,t)}const BO=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>je.update(t,n),stop:()=>kn(t),now:()=>lt.isProcessing?lt.timestamp:wt.now()}},e_=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o=sl?1/0:t}function UO(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Zf(r),sl);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:cn(i)}}const HO=5;function t_(e,t,n){const r=Math.max(t-HO,0);return Mb(n-e(r),t-r)}const qe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},zc=.001;function WO({duration:e=qe.duration,bounce:t=qe.bounce,velocity:n=qe.velocity,mass:r=qe.mass}){let i,o,s=1-t;s=Mn(qe.minDamping,qe.maxDamping,s),e=Mn(qe.minDuration,qe.maxDuration,cn(e)),s<1?(i=c=>{const u=c*s,d=u*e,h=u-n,f=ad(c,s),p=Math.exp(-d);return zc-h/f*p},o=c=>{const d=c*s*e,h=d*n+n,f=Math.pow(s,2)*Math.pow(c,2)*e,p=Math.exp(-d),m=ad(Math.pow(c,2),s);return(-i(c)+zc>0?-1:1)*((h-f)*p)/m}):(i=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-zc+u*d},o=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=GO(i,o,a);if(e=ln(e),isNaN(l))return{stiffness:qe.stiffness,damping:qe.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const qO=12;function GO(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function QO(e){let t={velocity:qe.velocity,stiffness:qe.stiffness,damping:qe.damping,mass:qe.mass,isResolvedFromDuration:!1,...e};if(!fg(e,YO)&&fg(e,zO))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Mn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:qe.mass,stiffness:i,damping:o}}else{const n=WO(e);t={...t,...n,mass:qe.mass},t.isResolvedFromDuration=!0}return t}function al(e=qe.visualDuration,t=qe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:f}=QO({...n,velocity:-cn(n.velocity||0)}),p=h||0,m=c/(2*Math.sqrt(l*u)),v=s-o,g=cn(Math.sqrt(l/u)),_=Math.abs(v)<5;r||(r=_?qe.restSpeed.granular:qe.restSpeed.default),i||(i=_?qe.restDelta.granular:qe.restDelta.default);let b;if(m<1){const E=ad(g,m);b=S=>{const C=Math.exp(-m*g*S);return s-C*((p+m*g*v)/E*Math.sin(E*S)+v*Math.cos(E*S))}}else if(m===1)b=E=>s-Math.exp(-g*E)*(v+(p+g*v)*E);else{const E=g*Math.sqrt(m*m-1);b=S=>{const C=Math.exp(-m*g*S),x=Math.min(E*S,300);return s-C*((p+m*g*v)*Math.sinh(x)+E*v*Math.cosh(x))/E}}const T={calculatedDuration:f&&d||null,next:E=>{const S=b(E);if(f)a.done=E>=d;else{let C=E===0?p:0;m<1&&(C=E===0?ln(p):t_(b,E,S));const x=Math.abs(C)<=r,w=Math.abs(s-S)<=i;a.done=x&&w}return a.value=a.done?s:S,a},toString:()=>{const E=Math.min(Zf(T),sl),S=e_(C=>T.next(E*C).value,E,30);return E+"ms "+S},toTransition:()=>{}};return T}al.applyToOptions=e=>{const t=UO(e,100,al);return e.ease=t.ease,e.duration=ln(t.duration),e.type="keyframes",e};function ld({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},f=x=>a!==void 0&&xl,p=x=>a===void 0?l:l===void 0||Math.abs(a-x)-m*Math.exp(-x/r),b=x=>g+_(x),T=x=>{const w=_(x),N=b(x);h.done=Math.abs(w)<=c,h.value=h.done?g:N};let E,S;const C=x=>{f(h.value)&&(E=x,S=al({keyframes:[h.value,p(h.value)],velocity:t_(b,x,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:x=>{let w=!1;return!S&&E===void 0&&(w=!0,T(x),C(x)),E!==void 0&&x>=E?S.next(x-E):(!w&&T(x),h)}}}function KO(e,t,n){const r=[],i=n||Ln.mix||Zb,o=e.length-1;for(let s=0;st[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=KO(t,r,i),l=a.length,c=u=>{if(s&&u1)for(;dc(Mn(e[0],e[o-1],u)):c}function XO(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=is(0,t,r);e.push(Fe(n,1,i))}}function JO(e){const t=[0];return XO(t,e.length-1),t}function ZO(e,t){return e.map(n=>n*t)}function e4(e,t){return e.map(()=>t||Hb).splice(0,e.length-1)}function $o({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=fO(r)?r.map(ag):ag(r),o={done:!1,value:t[0]},s=ZO(n&&n.length===t.length?n:JO(t),e),a=n_(s,t,{ease:Array.isArray(i)?i:e4(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const t4=e=>e!==null;function eh(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(t4),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const n4={decay:ld,inertia:ld,tween:$o,keyframes:$o,spring:al};function r_(e){typeof e.type=="string"&&(e.type=n4[e.type])}class th{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const r4=e=>e/100;class nh extends th{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==wt.now()&&this.tick(wt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;r_(t);const{type:n=$o,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=t;let{keyframes:a}=t;const l=n||$o;l!==$o&&typeof a[0]!="number"&&(this.mixKeyframes=Ps(r4,Zb(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Zf(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let b=this.currentTime,T=r;if(d){const x=Math.min(this.currentTime,i)/a;let w=Math.floor(x),N=x%1;!N&&x>=1&&(N=1),N===1&&w--,w=Math.min(w,d+1),!!(w%2)&&(h==="reverse"?(N=1-N,f&&(N-=f/a)):h==="mirror"&&(T=s)),b=Mn(0,1,N)*a}const E=_?{done:!1,value:u[0]}:T.next(b);o&&(E.value=o(E.value));let{done:S}=E;!_&&l!==null&&(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return C&&p!==ld&&(E.value=eh(u,this.options,v,this.speed)),m&&m(E.value),C&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return cn(this.calculatedDuration)}get time(){return cn(this.currentTime)}set time(t){t=ln(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(wt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=cn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=BO,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(wt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function i4(e){for(let t=1;te*180/Math.PI,cd=e=>{const t=hr(Math.atan2(e[1],e[0]));return ud(t)},o4={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:cd,rotateZ:cd,skewX:e=>hr(Math.atan(e[1])),skewY:e=>hr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ud=e=>(e=e%360,e<0&&(e+=360),e),hg=cd,pg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),mg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),s4={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:pg,scaleY:mg,scale:e=>(pg(e)+mg(e))/2,rotateX:e=>ud(hr(Math.atan2(e[6],e[5]))),rotateY:e=>ud(hr(Math.atan2(-e[2],e[0]))),rotateZ:hg,rotate:hg,skewX:e=>hr(Math.atan(e[4])),skewY:e=>hr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function dd(e){return e.includes("scale")?1:0}function fd(e,t){if(!e||e==="none")return dd(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=s4,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=o4,i=a}if(!i)return dd(t);const o=r[t],s=i[1].split(",").map(l4);return typeof o=="function"?o(s):s[o]}const a4=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return fd(n,t)};function l4(e){return parseFloat(e.trim())}const po=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],mo=new Set(po),gg=e=>e===ho||e===ce,c4=new Set(["x","y","z"]),u4=po.filter(e=>!c4.has(e));function d4(e){const t=[];return u4.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const br={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>fd(t,"x"),y:(e,{transform:t})=>fd(t,"y")};br.translateX=br.x;br.translateY=br.y;const _r=new Set;let hd=!1,pd=!1,md=!1;function i_(){if(pd){const e=Array.from(_r).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=d4(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{r.getValue(o)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}pd=!1,hd=!1,_r.forEach(e=>e.complete(md)),_r.clear()}function o_(){_r.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(pd=!0)})}function f4(){md=!0,o_(),i_(),md=!1}class rh{constructor(t,n,r,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(_r.add(this),hd||(hd=!0,je.read(o_),je.resolveKeyframes(i_))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i?.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),i&&o===void 0&&i.set(t[0])}i4(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),_r.delete(this)}cancel(){this.state==="scheduled"&&(_r.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const h4=e=>e.startsWith("--");function p4(e,t,n){h4(t)?e.style.setProperty(t,n):e.style[t]=n}const m4=Wf(()=>window.ScrollTimeline!==void 0),g4={};function v4(e,t){const n=Wf(e);return()=>g4[t]??n()}const s_=v4(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Oo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,vg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Oo([0,.65,.55,1]),circOut:Oo([.55,0,1,.45]),backIn:Oo([.31,.01,.66,-.59]),backOut:Oo([.33,1.53,.69,.99])};function a_(e,t){if(e)return typeof e=="function"?s_()?e_(e,t):"ease-out":Wb(e)?Oo(e):Array.isArray(e)?e.map(n=>a_(n,t)||vg.easeOut):vg[e]}function y4(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=a_(a,i);Array.isArray(d)&&(u.easing=d);const h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(u,h)}function l_(e){return typeof e=="function"&&"applyToOptions"in e}function b4({type:e,...t}){return l_(e)&&s_()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class _4 extends th{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,Hf(typeof t.type!="string");const c=b4(t);this.animation=y4(n,r,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=eh(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):p4(n,r,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return cn(Number(t))}get time(){return cn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ln(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&m4()?(this.animation.timeline=t,jt):n(this)}}const c_={anticipate:jb,backInOut:Vb,circInOut:Ub};function T4(e){return e in c_}function E4(e){typeof e.ease=="string"&&T4(e.ease)&&(e.ease=c_[e.ease])}const yg=10;class w4 extends _4{constructor(t){E4(t),r_(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new nh({...s,autoplay:!1}),l=ln(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-yg).value,a.sample(l).value,yg),a.stop()}}const bg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qn.test(e)||e==="0")&&!e.startsWith("url("));function S4(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function N4(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=e;if(!u_(t?.owner?.current))return!1;const{onUpdate:a,transformTemplate:l}=t.owner.getProps();return A4()&&n&&C4.has(n)&&(n!=="transform"||!l)&&!a&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const O4=40;class P4 extends th{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=wt.now();const h={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:l,motionValue:c,element:u,...d},f=u?.KeyframeResolver||rh;this.keyframeResolver=new f(a,(p,m,v)=>this.onKeyframesResolved(p,m,h,!v),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=wt.now(),x4(t,o,s,a)||((Ln.instantAnimations||!l)&&u?.(eh(t,r,n)),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>O4?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},f=!c&&N4(h)?new w4({...h,element:h.motionValue.owner.current}):new nh(h);f.finished.then(()=>this.notifyFinished()).catch(jt),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),f4()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const I4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function D4(e){const t=I4.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function d_(e,t,n=1){const[r,i]=D4(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Ib(s)?parseFloat(s):s}return Qf(i)?d_(i,t,n+1):i}function ih(e,t){return e?.[t]??e?.default??e}const f_=new Set(["width","height","top","left","right","bottom",...po]),R4={test:e=>e==="auto",parse:e=>e},h_=e=>t=>t.test(e),p_=[ho,ce,un,jn,xO,SO,R4],_g=e=>p_.find(h_(e));function M4(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Rb(e):!0}const L4=new Set(["brightness","contrast","saturate","opacity"]);function k4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Kf)||[];if(!r)return e;const i=n.replace(r,"");let o=L4.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const $4=/\b([a-z-]*)\(.*?\)/gu,gd={...Qn,getAnimatableNone:e=>{const t=e.match($4);return t?t.map(k4).join(" "):e}},Tg={...ho,transform:Math.round},F4={rotate:jn,rotateX:jn,rotateY:jn,rotateZ:jn,scale:wa,scaleX:wa,scaleY:wa,scaleZ:wa,skew:jn,skewX:jn,skewY:jn,distance:ce,translateX:ce,translateY:ce,translateZ:ce,x:ce,y:ce,z:ce,perspective:ce,transformPerspective:ce,opacity:os,originX:lg,originY:lg,originZ:ce},oh={borderWidth:ce,borderTopWidth:ce,borderRightWidth:ce,borderBottomWidth:ce,borderLeftWidth:ce,borderRadius:ce,radius:ce,borderTopLeftRadius:ce,borderTopRightRadius:ce,borderBottomRightRadius:ce,borderBottomLeftRadius:ce,width:ce,maxWidth:ce,height:ce,maxHeight:ce,top:ce,right:ce,bottom:ce,left:ce,padding:ce,paddingTop:ce,paddingRight:ce,paddingBottom:ce,paddingLeft:ce,margin:ce,marginTop:ce,marginRight:ce,marginBottom:ce,marginLeft:ce,backgroundPositionX:ce,backgroundPositionY:ce,...F4,zIndex:Tg,fillOpacity:os,strokeOpacity:os,numOctaves:Tg},V4={...oh,color:Ze,backgroundColor:Ze,outlineColor:Ze,fill:Ze,stroke:Ze,borderColor:Ze,borderTopColor:Ze,borderRightColor:Ze,borderBottomColor:Ze,borderLeftColor:Ze,filter:gd,WebkitFilter:gd},m_=e=>V4[e];function g_(e,t){let n=m_(e);return n!==gd&&(n=Qn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const j4=new Set(["auto","none","0"]);function B4(e,t,n){let r=0,i;for(;r{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function H4(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const v_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Eg=30,W4=e=>!isNaN(parseFloat(e)),Fo={current:void 0};class q4{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=wt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty();i&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=wt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=W4(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new qf);const r=this.events[t].add(n);return t==="change"?()=>{r(),je.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Fo.current&&Fo.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=wt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Eg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Eg);return Mb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Cr(e,t){return new q4(e,t)}const{schedule:sh}=qb(queueMicrotask,!1),Gt={x:!1,y:!1};function y_(){return Gt.x||Gt.y}function G4(e){return e==="x"||e==="y"?Gt[e]?null:(Gt[e]=!0,()=>{Gt[e]=!1}):Gt.x||Gt.y?null:(Gt.x=Gt.y=!0,()=>{Gt.x=Gt.y=!1})}function b_(e,t){const n=H4(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function wg(e){return!(e.pointerType==="touch"||y_())}function z4(e,t,n={}){const[r,i,o]=b_(e,n),s=a=>{if(!wg(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{wg(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const __=(e,t)=>t?e===t?!0:__(e,t.parentElement):!1,ah=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Y4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Q4(e){return Y4.has(e.tagName)||e.tabIndex!==-1}const La=new WeakSet;function Sg(e){return t=>{t.key==="Enter"&&e(t)}}function Yc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const K4=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Sg(()=>{if(La.has(n))return;Yc(n,"down");const i=Sg(()=>{Yc(n,"up")}),o=()=>Yc(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function xg(e){return ah(e)&&!y_()}function X4(e,t,n={}){const[r,i,o]=b_(e,n),s=a=>{const l=a.currentTarget;if(!xg(a))return;La.add(l);const c=t(l,a),u=(f,p)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),La.has(l)&&La.delete(l),xg(f)&&typeof c=="function"&&c(f,{success:p})},d=f=>{u(f,l===window||l===document||n.useGlobalTarget||__(l,f.target))},h=f=>{u(f,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",h,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),u_(a)&&(a.addEventListener("focus",c=>K4(c,i)),!Q4(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function T_(e){return Db(e)&&"ownerSVGElement"in e}function J4(e){return T_(e)&&e.tagName==="svg"}function Z4(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],s=e[3+n],a=n_(i,o,s);return t?a(r):a}const ct=e=>!!(e&&e.getVelocity),eP=[...p_,Ze,Qn],tP=e=>eP.find(h_(e)),lh=Ne({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function nP(e=!0){const t=fe(jf);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=qt();B(()=>{if(e)return i(o)},[e]);const s=Y(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const E_=Ne({strict:!1}),Cg={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ro={};for(const e in Cg)ro[e]={isEnabled:t=>Cg[e].some(n=>!!t[n])};function rP(e){for(const t in e)ro[t]={...ro[t],...e[t]}}const iP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ll(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iP.has(e)}let w_=e=>!ll(e);function oP(e){typeof e=="function"&&(w_=t=>t.startsWith("on")?!ll(t):e(t))}try{oP(require("@emotion/is-prop-valid").default)}catch{}function sP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(w_(i)||n===!0&&ll(i)||!t&&!ll(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function aP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Hl=Ne({});function Wl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function as(e){return typeof e=="string"||Array.isArray(e)}const ch=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uh=["initial",...ch];function ql(e){return Wl(e.animate)||uh.some(t=>as(e[t]))}function S_(e){return!!(ql(e)||e.variants)}function lP(e,t){if(ql(e)){const{initial:n,animate:r}=e;return{initial:n===!1||as(n)?n:void 0,animate:as(r)?r:void 0}}return e.inherit!==!1?t:{}}function cP(e){const{initial:t,animate:n}=lP(e,fe(Hl));return re(()=>({initial:t,animate:n}),[Ag(t),Ag(n)])}function Ag(e){return Array.isArray(e)?e.join(" "):e}const uP=Symbol.for("motionComponentSymbol");function Li(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function dP(e,t,n){return Y(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Li(n)&&(n.current=r))},[t])}const dh=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),fP="framerAppearId",x_="data-"+dh(fP),C_=Ne({});function hP(e,t,n,r,i){const{visualElement:o}=fe(Hl),s=fe(E_),a=fe(jf),l=fe(lh).reducedMotion,c=F(null);r=r||s.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,d=fe(C_);u&&!u.projection&&i&&(u.type==="html"||u.type==="svg")&&pP(c.current,n,i,d);const h=F(!1);wl(()=>{u&&h.current&&u.update(n,a)});const f=n[x_],p=F(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return Pb(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),sh.render(u.render),p.current&&u.animationState&&u.animationState.animateChanges())}),B(()=>{u&&(!p.current&&u.animationState&&u.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),p.current=!1))}),u}function pP(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:A_(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&Li(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}function A_(e){if(e)return e.options.allowProjection!==!1?e.projection:A_(e.parent)}function mP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&rP(e);function o(a,l){let c;const u={...fe(lh),...a,layoutId:gP(a)},{isStatic:d}=u,h=cP(a),f=r(a,d);if(!d&&Vf){vP();const p=yP(u);c=p.MeasureLayout,h.visualElement=hP(i,f,u,t,p.ProjectionNode)}return y(Hl.Provider,{value:h,children:[c&&h.visualElement?y(c,{visualElement:h.visualElement,...u}):null,n(i,a,dP(f,h.visualElement,l),f,d,h.visualElement)]})}o.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const s=Q(o);return s[uP]=i,s}function gP({layoutId:e}){const t=fe(Ob).id;return t&&e!==void 0?t+"-"+e:e}function vP(e,t){fe(E_).strict}function yP(e){const{drag:t,layout:n}=ro;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const ls={};function bP(e){for(const t in e)ls[t]=e[t],Yf(t)&&(ls[t].isCSSVariable=!0)}function N_(e,{layout:t,layoutId:n}){return mo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ls[e]||e==="opacity")}const _P={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},TP=po.length;function EP(e,t,n){let r="",i=!0;for(let o=0;o({style:{},transform:{},transformOrigin:{},vars:{}});function O_(e,t,n){for(const r in t)!ct(t[r])&&!N_(r,n)&&(e[r]=t[r])}function wP({transformTemplate:e},t){return re(()=>{const n=hh();return fh(n,t,e),Object.assign({},n.vars,n.style)},[t])}function SP(e,t){const n=e.style||{},r={};return O_(r,n,e),Object.assign(r,wP(e,t)),r}function xP(e,t){const n={},r=SP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const CP={offset:"stroke-dashoffset",array:"stroke-dasharray"},AP={offset:"strokeDashoffset",array:"strokeDasharray"};function NP(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?CP:AP;e[o.offset]=ce.transform(-r);const s=ce.transform(t),a=ce.transform(n);e[o.array]=`${s} ${a}`}function P_(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,c,u){if(fh(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&NP(d,i,o,s,!1)}const I_=()=>({...hh(),attrs:{}}),D_=e=>typeof e=="string"&&e.toLowerCase()==="svg";function OP(e,t,n,r){const i=re(()=>{const o=I_();return P_(o,t,D_(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};O_(o,e.style,e),i.style={...o,...i.style}}return i}const PP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ph(e){return typeof e!="string"||e.includes("-")?!1:!!(PP.indexOf(e)>-1||/[A-Z]/u.test(e))}function IP(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(ph(n)?OP:xP)(r,o,s,n),c=sP(r,typeof n=="string",e),u=n!==me?{...c,...l,ref:i}:{},{children:d}=r,h=re(()=>ct(d)?d.get():d,[d]);return R(n,{...u,children:h})}}function Ng(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function mh(e,t,n,r){if(typeof t=="function"){const[i,o]=Ng(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Ng(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function ka(e){return ct(e)?e.get():e}function DP({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:RP(n,r,i,e),renderState:t()}}const R_=e=>(t,n)=>{const r=fe(Hl),i=fe(jf),o=()=>DP(e,t,r,i);return n?o():Os(o)};function RP(e,t,n,r){const i={},o=r(e,{});for(const h in o)i[h]=ka(o[h]);let{initial:s,animate:a}=e;const l=ql(e),c=S_(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!Wl(d)){const h=Array.isArray(d)?d:[d];for(let f=0;fArray.isArray(e);function $P(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Cr(n))}function FP(e){return vd(e)?e[e.length-1]||0:e}function VP(e,t){const n=cs(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=FP(o[s]);$P(e,s,a)}}function jP(e){return!!(ct(e)&&e.add)}function yd(e,t){const n=e.getValue("willChange");if(jP(n))return n.add(t);if(!n&&Ln.WillChange){const r=new Ln.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function L_(e){return e.props[x_]}const BP=e=>e!==null;function UP(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(BP),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}const HP={type:"spring",stiffness:500,damping:25,restSpeed:10},WP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),qP={type:"keyframes",duration:.8},GP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zP=(e,{keyframes:t})=>t.length>2?qP:mo.has(e)?e.startsWith("scale")?WP(t[1]):HP:GP;function YP({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const vh=(e,t,n,r={},i,o)=>s=>{const a=ih(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-ln(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};YP(a)||Object.assign(u,zP(e,u)),u.duration&&(u.duration=ln(u.duration)),u.repeatDelay&&(u.repeatDelay=ln(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),(Ln.instantAnimations||Ln.skipAnimations)&&(d=!0,u.duration=0,u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!o&&t.get()!==void 0){const h=UP(u.keyframes,a);if(h!==void 0){je.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new nh(u):new P4(u)};function QP({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function k_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(o=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const u in a){const d=e.getValue(u,e.latestValues[u]??null),h=a[u];if(h===void 0||c&&QP(c,u))continue;const f={delay:n,...ih(o||{},u)},p=d.get();if(p!==void 0&&!d.isAnimating&&!Array.isArray(h)&&h===p&&!f.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const g=L_(e);if(g){const _=window.MotionHandoffAnimation(g,u,je);_!==null&&(f.startTime=_,m=!0)}}yd(e,u),d.start(vh(u,d,h,e.shouldReduceMotion&&f_.has(u)?{type:!1}:f,e,m));const v=d.animation;v&&l.push(v)}return s&&Promise.all(l).then(()=>{je.update(()=>{s&&VP(e,s)})}),l}function bd(e,t,n={}){const r=cs(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(k_(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=i;return KP(e,t,c+l,u,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function KP(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(XP).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(bd(c,t,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function XP(e,t){return e.sortNodePosition(t)}function JP(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>bd(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=bd(e,t,n);else{const i=typeof t=="function"?cs(e,t,n.custom):t;r=Promise.all(k_(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function $_(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>JP(e,n,r)))}function rI(e){let t=nI(e),n=Og(),r=!0;const i=l=>(c,u)=>{const d=cs(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:h,transitionEnd:f,...p}=d;c={...c,...p,...f}}return c};function o(l){t=l(e)}function s(l){const{props:c}=e,u=F_(e.parent)||{},d=[],h=new Set;let f={},p=1/0;for(let v=0;vp&&T,w=!1;const N=Array.isArray(b)?b:[b];let P=N.reduce(i(g),{});E===!1&&(P={});const{prevResolvedValues:D={}}=_,j={...D,...P},$=k=>{x=!0,h.has(k)&&(w=!0,h.delete(k)),_.needsAnimating[k]=!0;const O=e.getValue(k);O&&(O.liveStyle=!1)};for(const k in j){const O=P[k],A=D[k];if(f.hasOwnProperty(k))continue;let W=!1;vd(O)&&vd(A)?W=!$_(O,A):W=O!==A,W?O!=null?$(k):h.add(k):O!==void 0&&h.has(k)?$(k):_.protectedKeys[k]=!0}_.prevProp=b,_.prevResolvedValues=P,_.isActive&&(f={...f,...P}),r&&e.blockInitialAnimation&&(x=!1),x&&(!(S&&C)||w)&&d.push(...N.map(k=>({animation:k,options:{type:g}})))}if(h.size){const v={};if(typeof c.initial!="boolean"){const g=cs(e,Array.isArray(c.initial)?c.initial[0]:c.initial);g&&g.transition&&(v.transition=g.transition)}h.forEach(g=>{const _=e.getBaseTarget(g),b=e.getValue(g);b&&(b.liveStyle=!0),v[g]=_??null}),d.push({animation:v})}let m=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,c)),n[l].isActive=c;const u=s(l);for(const d in n)n[d].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Og(),r=!0}}}function iI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$_(t,e):!1}function ir(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Og(){return{animate:ir(!0),whileInView:ir(),whileHover:ir(),whileTap:ir(),whileDrag:ir(),whileFocus:ir(),exit:ir()}}class tr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class oI extends tr{constructor(t){super(t),t.animationState||(t.animationState=rI(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Wl(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let sI=0;class aI extends tr{constructor(){super(...arguments),this.id=sI++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const lI={animation:{Feature:oI},exit:{Feature:aI}};function us(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Rs(e){return{point:{x:e.pageX,y:e.pageY}}}const cI=e=>t=>ah(t)&&e(t,Rs(t));function Vo(e,t,n,r){return us(e,t,cI(n),r)}function V_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function uI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function dI(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const j_=1e-4,fI=1-j_,hI=1+j_,B_=.01,pI=0-B_,mI=0+B_;function gt(e){return e.max-e.min}function gI(e,t,n){return Math.abs(e-t)<=n}function Pg(e,t,n,r=.5){e.origin=r,e.originPoint=Fe(t.min,t.max,e.origin),e.scale=gt(n)/gt(t),e.translate=Fe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=fI&&e.scale<=hI||isNaN(e.scale))&&(e.scale=1),(e.translate>=pI&&e.translate<=mI||isNaN(e.translate))&&(e.translate=0)}function jo(e,t,n,r){Pg(e.x,t.x,n.x,r?r.originX:void 0),Pg(e.y,t.y,n.y,r?r.originY:void 0)}function Ig(e,t,n){e.min=n.min+t.min,e.max=e.min+gt(t)}function vI(e,t,n){Ig(e.x,t.x,n.x),Ig(e.y,t.y,n.y)}function Dg(e,t,n){e.min=t.min-n.min,e.max=e.min+gt(t)}function Bo(e,t,n){Dg(e.x,t.x,n.x),Dg(e.y,t.y,n.y)}const Rg=()=>({translate:0,scale:1,origin:0,originPoint:0}),ki=()=>({x:Rg(),y:Rg()}),Mg=()=>({min:0,max:0}),Qe=()=>({x:Mg(),y:Mg()});function kt(e){return[e("x"),e("y")]}function Qc(e){return e===void 0||e===1}function _d({scale:e,scaleX:t,scaleY:n}){return!Qc(e)||!Qc(t)||!Qc(n)}function sr(e){return _d(e)||U_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function U_(e){return Lg(e.x)||Lg(e.y)}function Lg(e){return e&&e!=="0%"}function cl(e,t,n){const r=e-n,i=t*r;return n+i}function kg(e,t,n,r,i){return i!==void 0&&(e=cl(e,i,r)),cl(e,n,r)+t}function Td(e,t=0,n=1,r,i){e.min=kg(e.min,t,n,r,i),e.max=kg(e.max,t,n,r,i)}function H_(e,{x:t,y:n}){Td(e.x,t.translate,t.scale,t.originPoint),Td(e.y,n.translate,n.scale,n.originPoint)}const $g=.999999999999,Fg=1.0000000000001;function yI(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a$g&&(t.x=1),t.y$g&&(t.y=1)}function $i(e,t){e.min=e.min+t,e.max=e.max+t}function Vg(e,t,n,r,i=.5){const o=Fe(e.min,e.max,i);Td(e,t,n,o,r)}function Fi(e,t){Vg(e.x,t.x,t.scaleX,t.scale,t.originX),Vg(e.y,t.y,t.scaleY,t.scale,t.originY)}function W_(e,t){return V_(dI(e.getBoundingClientRect(),t))}function bI(e,t,n){const r=W_(e,n),{scroll:i}=t;return i&&($i(r.x,i.offset.x),$i(r.y,i.offset.y)),r}const q_=({current:e})=>e?e.ownerDocument.defaultView:null,jg=(e,t)=>Math.abs(e-t);function _I(e,t){const n=jg(e.x,t.x),r=jg(e.y,t.y);return Math.sqrt(n**2+r**2)}class G_{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Xc(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,f=_I(d.offset,{x:0,y:0})>=3;if(!h&&!f)return;const{point:p}=d,{timestamp:m}=lt;this.history.push({...p,timestamp:m});const{onStart:v,onMove:g}=this.handlers;h||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Kc(h,this.transformPagePoint),je.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:f,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Xc(d.type==="pointercancel"?this.lastMoveEventInfo:Kc(h,this.transformPagePoint),this.history);this.startEvent&&f&&f(d,v),p&&p(d,v)},!ah(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Rs(t),a=Kc(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=lt;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,Xc(a,this.history)),this.removeListeners=Ps(Vo(this.contextWindow,"pointermove",this.handlePointerMove),Vo(this.contextWindow,"pointerup",this.handlePointerUp),Vo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),kn(this.updatePoint)}}function Kc(e,t){return t?{point:t(e.point)}:e}function Bg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xc({point:e},t){return{point:e,delta:Bg(e,z_(t)),offset:Bg(e,TI(t)),velocity:EI(t,.1)}}function TI(e){return e[0]}function z_(e){return e[e.length-1]}function EI(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=z_(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ln(t)));)n--;if(!r)return{x:0,y:0};const o=cn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function wI(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Fe(n,e,r.max):Math.min(e,n)),e}function Ug(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function SI(e,{top:t,left:n,bottom:r,right:i}){return{x:Ug(e.x,n,i),y:Ug(e.y,t,r)}}function Hg(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=is(t.min,t.max-r,e.min):r>i&&(n=is(e.min,e.max-i,t.min)),Mn(0,1,n)}function AI(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ed=.35;function NI(e=Ed){return e===!1?e=0:e===!0&&(e=Ed),{x:Wg(e,"left","right"),y:Wg(e,"top","bottom")}}function Wg(e,t,n){return{min:qg(e,t),max:qg(e,n)}}function qg(e,t){return typeof e=="number"?e:e[t]||0}const OI=new WeakMap;class PI{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Qe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Rs(u).point)},o=(u,d)=>{const{drag:h,dragPropagation:f,onDragStart:p}=this.getProps();if(h&&!f&&(this.openDragLock&&this.openDragLock(),this.openDragLock=G4(h),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),kt(v=>{let g=this.getAxisMotionValue(v).get()||0;if(un.test(g)){const{projection:_}=this.visualElement;if(_&&_.layout){const b=_.layout.layoutBox[v];b&&(g=gt(b)*(parseFloat(g)/100))}}this.originPoint[v]=g}),p&&je.postRender(()=>p(u,d)),yd(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},s=(u,d)=>{const{dragPropagation:h,dragDirectionLock:f,onDirectionLock:p,onDrag:m}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=d;if(f&&this.currentDirection===null){this.currentDirection=II(v),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),m&&m(u,d)},a=(u,d)=>this.stop(u,d),l=()=>kt(u=>this.getAnimationState(u)==="paused"&&this.getAxisMotionValue(u).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new G_(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:q_(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&je.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Sa(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=wI(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Li(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=SI(r.layoutBox,t):this.constraints=!1,this.elastic=NI(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&kt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=AI(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Li(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=bI(r,i.root,this.visualElement.getTransformPagePoint());let s=xI(i.layout.layoutBox,o);if(n){const a=n(uI(s));this.hasMutatedConstraints=!!a,a&&(s=V_(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=kt(u=>{if(!Sa(u,n,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const h=i?200:1e6,f=i?40:1e7,p={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return yd(this.visualElement,t),r.start(vh(t,r,0,n,this.visualElement,!1))}stopAnimation(){kt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){kt(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){kt(n=>{const{drag:r}=this.getProps();if(!Sa(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-Fe(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Li(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};kt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=CI({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),kt(s=>{if(!Sa(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(Fe(l,c,i[s]))})}addListeners(){if(!this.visualElement.current)return;OI.set(this.visualElement,this);const t=this.visualElement.current,n=Vo(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Li(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),je.read(r);const s=us(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(kt(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Ed,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Sa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function II(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class DI extends tr{constructor(t){super(t),this.removeGroupControls=jt,this.removeListeners=jt,this.controls=new PI(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||jt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Gg=e=>(t,n)=>{e&&je.postRender(()=>e(t,n))};class RI extends tr{constructor(){super(...arguments),this.removePointerDownListener=jt}onPointerDown(t){this.session=new G_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:q_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Gg(t),onStart:Gg(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&je.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=Vo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const $a={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const So={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ce.test(e))e=parseFloat(e);else return e;const n=zg(e,t.target.x),r=zg(e,t.target.y);return`${n}% ${r}%`}},MI={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Qn.parse(e);if(i.length>5)return r;const o=Qn.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const c=Fe(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),o(i)}};class LI extends Ft{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;bP(kI),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),$a.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||je.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),sh.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Y_(e){const[t,n]=nP(),r=fe(Ob);return y(LI,{...e,layoutGroup:r,switchLayoutGroup:fe(C_),isPresent:t,safeToRemove:n})}const kI={borderRadius:{...So,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:So,borderTopRightRadius:So,borderBottomLeftRadius:So,borderBottomRightRadius:So,boxShadow:MI};function $I(e,t,n){const r=ct(e)?e:Cr(e);return r.start(vh("",r,t,n)),r.animation}const FI=(e,t)=>e.depth-t.depth;class VI{constructor(){this.children=[],this.isDirty=!1}add(t){Bf(this.children,t),this.isDirty=!0}remove(t){Uf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(FI),this.isDirty=!1,this.children.forEach(t)}}function jI(e,t){const n=wt.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(kn(r),e(o-t))};return je.setup(r,!0),()=>kn(r)}const Q_=["TopLeft","TopRight","BottomLeft","BottomRight"],BI=Q_.length,Yg=e=>typeof e=="string"?parseFloat(e):e,Qg=e=>typeof e=="number"||ce.test(e);function UI(e,t,n,r,i,o){i?(e.opacity=Fe(0,n.opacity??1,HI(r)),e.opacityExit=Fe(t.opacity??1,0,WI(r))):o&&(e.opacity=Fe(t.opacity??1,n.opacity??1,r));for(let s=0;srt?1:n(is(e,t,r))}function Xg(e,t){e.min=t.min,e.max=t.max}function Mt(e,t){Xg(e.x,t.x),Xg(e.y,t.y)}function Jg(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Zg(e,t,n,r,i){return e-=t,e=cl(e,1/n,r),i!==void 0&&(e=cl(e,1/i,r)),e}function qI(e,t=0,n=1,r=.5,i,o=e,s=e){if(un.test(t)&&(t=parseFloat(t),t=Fe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Fe(o.min,o.max,r);e===o&&(a-=t),e.min=Zg(e.min,t,n,a,i),e.max=Zg(e.max,t,n,a,i)}function ev(e,t,[n,r,i],o,s){qI(e,t[n],t[r],t[i],t.scale,o,s)}const GI=["x","scaleX","originX"],zI=["y","scaleY","originY"];function tv(e,t,n,r){ev(e.x,t,GI,n?n.x:void 0,r?r.x:void 0),ev(e.y,t,zI,n?n.y:void 0,r?r.y:void 0)}function nv(e){return e.translate===0&&e.scale===1}function X_(e){return nv(e.x)&&nv(e.y)}function rv(e,t){return e.min===t.min&&e.max===t.max}function YI(e,t){return rv(e.x,t.x)&&rv(e.y,t.y)}function iv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function J_(e,t){return iv(e.x,t.x)&&iv(e.y,t.y)}function ov(e){return gt(e.x)/gt(e.y)}function sv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class QI{constructor(){this.members=[]}add(t){Bf(this.members,t),t.scheduleRender()}remove(t){if(Uf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function KI(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:h,skewX:f,skewY:p}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),f&&(r+=`skewX(${f}deg) `),p&&(r+=`skewY(${p}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Jc=["","X","Y","Z"],XI={visibility:"hidden"},JI=1e3;let ZI=0;function Zc(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Z_(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=L_(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",je,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Z_(r)}function eT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t?.()){this.id=ZI++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(nD),this.nodes.forEach(aD),this.nodes.forEach(lD),this.nodes.forEach(rD)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=jI(d,250),$a.hasAnimatedSinceResize&&($a.hasAnimatedSinceResize=!1,this.nodes.forEach(lv))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||hD,{onLayoutAnimationStart:m,onLayoutAnimationComplete:v}=c.getProps(),g=!this.targetLayout||!J_(this.targetLayout,f),_=!d&&h;if(this.options.layoutRoot||this.resumeFrom||_||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...ih(p,"layout"),onPlay:m,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(u,_)}else d||lv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),kn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(cD),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Z_(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!gt(this.snapshot.measuredBox.x)&&!gt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const E=T/1e3;cv(d.x,s.x,E),cv(d.y,s.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bo(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dD(this.relativeTarget,this.relativeTargetOrigin,h,E),b&&YI(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Qe()),Mt(b,this.relativeTarget)),m&&(this.animationValues=u,UI(u,c,this.latestValues,E,_,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(kn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=je.update(()=>{$a.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Cr(0)),this.currentAnimation=$I(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(JI),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&tT(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Qe();const d=gt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const h=gt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}Mt(a,l),Fi(a,u),jo(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new QI),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Zc("z",s,c,this.animationValues);for(let u=0;us.currentAnimation?.stop()),this.root.nodes.forEach(av),this.root.sharedNodes.clear()}}}function eD(e){e.updateLayout()}function tD(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;i==="size"?kt(u=>{const d=o?t.measuredBox[u]:t.layoutBox[u],h=gt(d);d.min=n[u].min,d.max=d.min+h}):tT(i,t.layoutBox,n)&&kt(u=>{const d=o?t.measuredBox[u]:t.layoutBox[u],h=gt(n[u]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const s=ki();jo(s,n,t.layoutBox);const a=ki();o?jo(a,e.applyTransform(r,!0),t.measuredBox):jo(a,n,t.layoutBox);const l=!X_(s);let c=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:h}=u;if(d&&h){const f=Qe();Bo(f,t.layoutBox,d.layoutBox);const p=Qe();Bo(p,n,h.layoutBox),J_(f,p)||(c=!0),u.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=f,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function nD(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iD(e){e.clearSnapshot()}function av(e){e.clearMeasurements()}function oD(e){e.isLayoutDirty=!1}function sD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function lv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aD(e){e.resolveTargetDelta()}function lD(e){e.calcProjection()}function cD(e){e.resetSkewAndRotation()}function uD(e){e.removeLeadSnapshot()}function cv(e,t,n){e.translate=Fe(t.translate,0,n),e.scale=Fe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function uv(e,t,n,r){e.min=Fe(t.min,n.min,r),e.max=Fe(t.max,n.max,r)}function dD(e,t,n,r){uv(e.x,t.x,n.x,r),uv(e.y,t.y,n.y,r)}function fD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hD={duration:.45,ease:[.4,0,.1,1]},dv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),fv=dv("applewebkit/")&&!dv("chrome/")?Math.round:jt;function hv(e){e.min=fv(e.min),e.max=fv(e.max)}function pD(e){hv(e.x),hv(e.y)}function tT(e,t,n){return e==="position"||e==="preserve-aspect"&&!gI(ov(t),ov(n),.2)}function mD(e){return e!==e.root&&e.scroll?.wasRoot}const gD=eT({attachResizeListener:(e,t)=>us(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eu={current:void 0},nT=eT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!eu.current){const e=new gD({});e.mount(window),e.setOptions({layoutScroll:!0}),eu.current=e}return eu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),vD={pan:{Feature:RI},drag:{Feature:DI,ProjectionNode:nT,MeasureLayout:Y_}};function pv(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&je.postRender(()=>o(t,Rs(t)))}class yD extends tr{mount(){const{current:t}=this.node;t&&(this.unmount=z4(t,(n,r)=>(pv(this.node,r,"Start"),i=>pv(this.node,i,"End"))))}unmount(){}}class bD extends tr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ps(us(this.node.current,"focus",()=>this.onFocus()),us(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function mv(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&je.postRender(()=>o(t,Rs(t)))}class _D extends tr{mount(){const{current:t}=this.node;t&&(this.unmount=X4(t,(n,r)=>(mv(this.node,r,"Start"),(i,{success:o})=>mv(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const wd=new WeakMap,tu=new WeakMap,TD=e=>{const t=wd.get(e.target);t&&t(e)},ED=e=>{e.forEach(TD)};function wD({root:e,...t}){const n=e||document;tu.has(n)||tu.set(n,{});const r=tu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ED,{root:e,...t})),r[i]}function SD(e,t,n){const r=wD(t);return wd.set(e,n),r.observe(e),()=>{wd.delete(e),r.unobserve(e)}}const xD={some:0,all:1};class CD extends tr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:xD[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};return SD(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(AD(t,n))&&this.startObserver()}unmount(){}}function AD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ND={inView:{Feature:CD},tap:{Feature:_D},focus:{Feature:bD},hover:{Feature:yD}},OD={layout:{ProjectionNode:nT,MeasureLayout:Y_}},Sd={current:null},rT={current:!1};function PD(){if(rT.current=!0,!!Vf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Sd.current=e.matches;e.addListener(t),t()}else Sd.current=!1}const ID=new WeakMap;function DD(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ct(i))e.addValue(r,i);else if(ct(o))e.addValue(r,Cr(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Cr(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const gv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class RD{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=rh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=wt.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),rT.current||PD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Sd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),kn(this.notifyUpdate),kn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=mo.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&je.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ro){const n=ro[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Qe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Cr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Ib(r)||Rb(r))?r=parseFloat(r):!tP(r)&&Qn.test(n)&&(r=g_(t,n)),this.setBaseTarget(t,ct(r)?r.get():r)),ct(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=mh(this.props,n,this.presenceContext?.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ct(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new qf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class iT extends RD{constructor(){super(...arguments),this.KeyframeResolver=U4}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ct(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function oT(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}function MD(e){return window.getComputedStyle(e)}class LD extends iT{constructor(){super(...arguments),this.type="html",this.renderInstance=oT}readValueFromInstance(t,n){if(mo.has(n))return this.projection?.isProjecting?dd(n):a4(t,n);{const r=MD(t),i=(Yf(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return W_(t,n)}build(t,n,r){fh(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return gh(t,n,r)}}const sT=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function kD(e,t,n,r){oT(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(sT.has(i)?i:dh(i),t.attrs[i])}class $D extends iT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Qe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(mo.has(n)){const r=m_(n);return r&&r.default||0}return n=sT.has(n)?n:dh(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return M_(t,n,r)}build(t,n,r){P_(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){kD(t,n,r,i)}mount(t){this.isSVGTag=D_(t.tagName),super.mount(t)}}const FD=(e,t)=>ph(e)?new $D(t):new LD(t,{allowProjection:e!==me}),VD=kP({...lI,...ND,...vD,...OD},FD),aT=aP(VD);function lT(e){const t=Os(()=>Cr(e)),{isStatic:n}=fe(lh);if(n){const[,r]=z(e);B(()=>t.on("change",r),[])}return t}function cT(e,t){const n=lT(t()),r=()=>n.set(t());return r(),Pb(()=>{const i=()=>je.preRender(r,!1,!0),o=e.map(s=>s.on("change",i));return()=>{o.forEach(s=>s()),kn(r)}}),n}function jD(e){Fo.current=[],e();const t=cT(Fo.current,e);return Fo.current=void 0,t}function BD(e,t,n,r){if(typeof e=="function")return jD(e);const i=typeof t=="function"?t:Z4(t,n,r);return Array.isArray(e)?vv(e,i):vv([e],([o])=>i(o))}function vv(e,t){const n=Os(()=>[]);return cT(e,()=>{n.length=0;const r=e.length;for(let i=0;iu.value===t);if(i===-1)return e;const o=r>0?1:-1,s=e[i+o];if(!s)return e;const a=e[i],l=s.layout,c=Fe(l.min,l.max,.5);return o===1&&a.layout.max+n>c||o===-1&&a.layout.min+naT[t]),l=[],c=F(!1),u={axis:n,registerItem:(d,h)=>{const f=l.findIndex(p=>d===p.value);f!==-1?l[f].layout=h[n]:l.push({value:d,layout:h[n]}),l.sort(GD)},updateOrder:(d,h,f)=>{if(c.current)return;const p=UD(l,d,h,f);l!==p&&(c.current=!0,r(p.map(qD).filter(m=>i.indexOf(m)!==-1)))}};return B(()=>{c.current=!1}),y(a,{...o,ref:s,ignoreStrict:!0,children:y(uT.Provider,{value:u,children:e})})}const WD=Q(HD);function qD(e){return e.value}function GD(e,t){return e.layout.min-t.layout.min}function yv(e,t=0){return ct(e)?e:lT(t)}function zD({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...s},a){const l=Os(()=>aT[r]),c=fe(uT),u={x:yv(t.x),y:yv(t.y)},d=BD([u.x,u.y],([m,v])=>m||v?1:"unset"),{axis:h,registerItem:f,updateOrder:p}=c;return y(l,{drag:h,...s,dragSnapToOrigin:!0,style:{...t,x:u.x,y:u.y,zIndex:d},layout:o,onDrag:(m,v)=>{const{velocity:g}=v;g[h]&&p(n,u[h].get(),g[h]),i&&i(m,v)},onLayoutMeasure:m=>f(n,m),ref:a,ignoreStrict:!0,children:e})}const YD=Q(zD),dT=Q((e,t)=>{const n=K.c(16);let r,i,o,s,a;n[0]!==e?({isActive:o,value:a,children:r,className:i,...s}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=o,n[4]=s,n[5]=a):(r=n[1],i=n[2],o=n[3],s=n[4],a=n[5]);const l=o&&"graphiql-tab-active";let c;n[6]!==i||n[7]!==l?(c=Ie("graphiql-tab",l,i),n[6]=i,n[7]=l,n[8]=c):c=n[8];let u;return n[9]!==r||n[10]!==o||n[11]!==s||n[12]!==t||n[13]!==c||n[14]!==a?(u=y(YD,{...s,ref:t,value:a,"aria-selected":o,role:"tab",className:c,children:r}),n[9]=r,n[10]=o,n[11]=s,n[12]=t,n[13]=c,n[14]=a,n[15]=u):u=n[15],u});dT.displayName="Tab";const fT=Q((e,t)=>{const n=K.c(11);let r,i,o;n[0]!==e?({children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=o):(r=n[1],i=n[2],o=n[3]);let s;n[4]!==i?(s=Ie("graphiql-tab-button",i),n[4]=i,n[5]=s):s=n[5];let a;return n[6]!==r||n[7]!==o||n[8]!==t||n[9]!==s?(a=y(tt,{...o,ref:t,type:"button",className:s,children:r}),n[6]=r,n[7]=o,n[8]=t,n[9]=s,n[10]=a):a=n[10],a});fT.displayName="Tab.Button";const hT=Q((e,t)=>{const n=K.c(7);let r;n[0]!==e.className?(r=Ie("graphiql-tab-close",e.className),n[0]=e.className,n[1]=r):r=n[1];let i;n[2]===Symbol.for("react.memo_cache_sentinel")?(i=y(gf,{}),n[2]=i):i=n[2];let o;return n[3]!==e||n[4]!==t||n[5]!==r?(o=y(tt,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:r,children:i}),n[3]=e,n[4]=t,n[5]=r,n[6]=o):o=n[6],o});hT.displayName="Tab.Close";const nu=Object.assign(dT,{Button:fT,Close:hT}),pT=Q((e,t)=>{const n=K.c(15);let r,i,o,s,a;n[0]!==e?({values:a,onReorder:o,children:r,className:i,...s}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=o,n[4]=s,n[5]=a):(r=n[1],i=n[2],o=n[3],s=n[4],a=n[5]);let l;n[6]!==i?(l=Ie("graphiql-tabs",i),n[6]=i,n[7]=l):l=n[7];let c;return n[8]!==r||n[9]!==o||n[10]!==s||n[11]!==t||n[12]!==l||n[13]!==a?(c=y(WD,{...s,ref:t,values:a,onReorder:o,axis:"x",role:"tablist",className:l,children:r}),n[8]=r,n[9]=o,n[10]=s,n[11]=t,n[12]=l,n[13]=a,n[14]=c):c=n[14],c});pT.displayName="Tabs";var[Gl,B9]=Mr("Tooltip",[Vl]),zl=Vl(),mT="TooltipProvider",QD=700,xd="tooltip.open",[KD,yh]=Gl(mT),gT=e=>{const{__scopeTooltip:t,delayDuration:n=QD,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,s=F(!0),a=F(!1),l=F(0);return B(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),y(KD,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:Y(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:Y(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:Y(c=>{a.current=c},[]),disableHoverableContent:i,children:o})};gT.displayName=mT;var ds="Tooltip",[XD,Ms]=Gl(ds),vT=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:o,disableHoverableContent:s,delayDuration:a}=e,l=yh(ds,e.__scopeTooltip),c=zl(t),[u,d]=z(null),h=yr(),f=F(0),p=s??l.disableHoverableContent,m=a??l.delayDuration,v=F(!1),[g,_]=Dl({prop:r,defaultProp:i??!1,onChange:C=>{C?(l.onOpen(),document.dispatchEvent(new CustomEvent(xd))):l.onClose(),o?.(C)},caller:ds}),b=re(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),T=Y(()=>{window.clearTimeout(f.current),f.current=0,v.current=!1,_(!0)},[_]),E=Y(()=>{window.clearTimeout(f.current),f.current=0,_(!1)},[_]),S=Y(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{v.current=!0,_(!0),f.current=0},m)},[m,_]);return B(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),y(B0,{...c,children:y(XD,{scope:t,contentId:h,open:g,stateAttribute:b,trigger:u,onTriggerChange:d,onTriggerEnter:Y(()=>{l.isOpenDelayedRef.current?S():T()},[l.isOpenDelayedRef,S,T]),onTriggerLeave:Y(()=>{p?E():(window.clearTimeout(f.current),f.current=0)},[E,p]),onOpen:T,onClose:E,disableHoverableContent:p,children:n})})};vT.displayName=ds;var Cd="TooltipTrigger",yT=Q((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Ms(Cd,n),o=yh(Cd,n),s=zl(n),a=F(null),l=et(t,a,i.onTriggerChange),c=F(!1),u=F(!1),d=Y(()=>c.current=!1,[]);return B(()=>()=>document.removeEventListener("pointerup",d),[d]),y(U0,{asChild:!0,...s,children:y(ze.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:de(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:de(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:de(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:de(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:de(e.onBlur,i.onClose),onClick:de(e.onClick,i.onClose)})})});yT.displayName=Cd;var bh="TooltipPortal",[JD,ZD]=Gl(bh,{forceMount:void 0}),bT=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=Ms(bh,t);return y(JD,{scope:t,forceMount:n,children:y(bn,{present:n||o.open,children:y(Ml,{asChild:!0,container:i,children:r})})})};bT.displayName=bh;var io="TooltipContent",_T=Q((e,t)=>{const n=ZD(io,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,s=Ms(io,e.__scopeTooltip);return y(bn,{present:r||s.open,children:s.disableHoverableContent?y(TT,{side:i,...o,ref:t}):y(eR,{side:i,...o,ref:t})})}),eR=Q((e,t)=>{const n=Ms(io,e.__scopeTooltip),r=yh(io,e.__scopeTooltip),i=F(null),o=et(t,i),[s,a]=z(null),{trigger:l,onClose:c}=n,u=i.current,{onPointerInTransitChange:d}=r,h=Y(()=>{a(null),d(!1)},[d]),f=Y((p,m)=>{const v=p.currentTarget,g={x:p.clientX,y:p.clientY},_=oR(g,v.getBoundingClientRect()),b=sR(g,_),T=aR(m.getBoundingClientRect()),E=cR([...b,...T]);a(E),d(!0)},[d]);return B(()=>()=>h(),[h]),B(()=>{if(l&&u){const p=v=>f(v,u),m=v=>f(v,l);return l.addEventListener("pointerleave",p),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",p),u.removeEventListener("pointerleave",m)}}},[l,u,f,h]),B(()=>{if(s){const p=m=>{const v=m.target,g={x:m.clientX,y:m.clientY},_=l?.contains(v)||u?.contains(v),b=!lR(g,s);_?h():b&&(h(),c())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,u,s,c,h]),y(TT,{...e,ref:o})}),[tR,nR]=Gl(ds,{isInside:!1}),rR=e3("TooltipContent"),TT=Q((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:s,...a}=e,l=Ms(io,n),c=zl(n),{onClose:u}=l;return B(()=>(document.addEventListener(xd,u),()=>document.removeEventListener(xd,u)),[u]),B(()=>{if(l.trigger){const d=h=>{h.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),y(Rl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:y(H0,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y(rR,{children:r}),y(tR,{scope:n,isInside:!0,children:y(g0,{id:l.contentId,role:"tooltip",children:i||r})})]})})});_T.displayName=io;var ET="TooltipArrow",iR=Q((e,t)=>{const{__scopeTooltip:n,...r}=e,i=zl(n);return nR(ET,n).isInside?null:y(W0,{...i,...r,ref:t})});iR.displayName=ET;function oR(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function sR(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function aR(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function lR(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,s=t.length-1;or!=h>r&&n<(d-c)*(r-u)/(h-u)+c&&(i=!i)}return i}function cR(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),uR(t)}function uR(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const o=t[t.length-1],s=t[t.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],s=n[n.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var dR=gT,fR=vT,hR=yT,pR=bT,mR=_T;const gR=e=>{const t=K.c(10),{children:n,align:r,side:i,sideOffset:o,label:s}=e,a=r===void 0?"start":r,l=i===void 0?"bottom":i,c=o===void 0?5:o;let u;t[0]!==n?(u=y(hR,{asChild:!0,children:n}),t[0]=n,t[1]=u):u=t[1];let d;t[2]!==a||t[3]!==s||t[4]!==l||t[5]!==c?(d=y(pR,{children:y(mR,{className:"graphiql-tooltip",align:a,side:l,sideOffset:c,children:s})}),t[2]=a,t[3]=s,t[4]=l,t[5]=c,t[6]=d):d=t[6];let h;return t[7]!==u||t[8]!==d?(h=y(fR,{children:[u,d]}),t[7]=u,t[8]=d,t[9]=h):h=t[9],h},Tt=Object.assign(gR,{Provider:dR}),Fa=Q((e,t)=>{const n=K.c(19);let r,i,o;n[0]!==e?({label:r,onClick:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=o):(r=n[1],i=n[2],o=n[3]);const[s,a]=z(null);let l;n[4]!==i?(l=v=>{try{i&&i(v),a(null)}catch(g){const _=g;a(_ instanceof Error?_:new Error(`Toolbar button click failed: ${_}`))}},n[4]=i,n[5]=l):l=n[5];const c=l,u=s&&"error";let d;n[6]!==o.className||n[7]!==u?(d=Ie("graphiql-toolbar-button",u,o.className),n[6]=o.className,n[7]=u,n[8]=d):d=n[8];const h=s?s.message:r,f=s?"true":o["aria-invalid"];let p;n[9]!==c||n[10]!==o||n[11]!==t||n[12]!==d||n[13]!==h||n[14]!==f?(p=y(tt,{...o,ref:t,type:"button",className:d,onClick:c,"aria-label":h,"aria-invalid":f}),n[9]=c,n[10]=o,n[11]=t,n[12]=d,n[13]=h,n[14]=f,n[15]=p):p=n[15];let m;return n[16]!==r||n[17]!==p?(m=y(Tt,{label:r,children:p}),n[16]=r,n[17]=p,n[18]=m):m=n[18],m});Fa.displayName="ToolbarButton";const Ad=()=>{const e=K.c(19);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={nonNull:!0,caller:Ad},e[0]=t):t=e[0];const{queryEditor:n,setOperationName:r}=ut(t);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:Ad},e[1]=i):i=e[1];const{isFetching:o,isSubscribed:s,operationName:a,run:l,stop:c}=co(i);let u;e[2]!==n?.operations?(u=n?.operations||[],e[2]=n?.operations,e[3]=u):u=e[3];const d=u,h=d.length>1&&typeof a!="string",f=o||s,p=`${f?"Stop":"Execute"} query (Ctrl-Enter)`;let m;e[4]!==f?(m=f?y(FC,{}):y(PC,{}),e[4]=f,e[5]=m):m=e[5];let v;e[6]!==p||e[7]!==m?(v={type:"button",className:"graphiql-execute-button",children:m,"aria-label":p},e[6]=p,e[7]=m,e[8]=v):v=e[8];const g=v;let _;return e[9]!==g||e[10]!==h||e[11]!==f||e[12]!==p||e[13]!==d||e[14]!==n||e[15]!==l||e[16]!==r||e[17]!==c?(_=h&&!f?y(Ta,{children:[y(Tt,{label:p,children:y(Ta.Button,{...g})}),y(Ta.Content,{children:d.map((b,T)=>{const E=b.name?b.name.value:``;return y(Ta.Item,{onSelect:()=>{var S;const C=(S=b.name)==null?void 0:S.value;n&&C&&C!==n.operationName&&r(C),l()},children:E},`${E}-${T}`)})})]}):y(Tt,{label:p,children:y("button",{...g,onClick:()=>{f?c():l()}})}),e[9]=g,e[10]=h,e[11]=f,e[12]=p,e[13]=d,e[14]=n,e[15]=l,e[16]=r,e[17]=c,e[18]=_):_=e[18],_},Nd=_s((e,t)=>({historyStorage:null,actions:{addToHistory(n){const{historyStorage:r}=t();r.updateHistory(n),e({})},editLabel(n,r){const{historyStorage:i}=t();i.editLabel(n,r),e({})},toggleFavorite(n){const{historyStorage:r}=t();r.toggleFavorite(n),e({})},setActive:n=>n,deleteFromHistory(n,r){const{historyStorage:i}=t();i.deleteHistory(n,r),e({})}}})),vR=e=>{const t=K.c(12),{maxHistoryLength:n,children:r}=e,i=n===void 0?20:n;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={nonNull:!0},t[0]=o):o=t[0];const{isFetching:s}=co(o);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={nonNull:!0},t[1]=a):a=t[1];const{tabs:l,activeTabIndex:c}=ut(a),u=l[c],d=lo();let h;t[2]!==i||t[3]!==d?(h=new L2(d,i),t[2]=i,t[3]=d,t[4]=h):h=t[4];const f=h;let p,m;t[5]!==f?(p=()=>{Nd.setState({historyStorage:f})},m=[f],t[5]=f,t[6]=p,t[7]=m):(p=t[6],m=t[7]),B(p,m);let v,g;return t[8]!==u||t[9]!==s?(v=()=>{if(!s)return;const{addToHistory:_}=Nd.getState().actions;_({query:u.query??void 0,variables:u.variables??void 0,headers:u.headers??void 0,operationName:u.operationName??void 0})},g=[s,u],t[8]=u,t[9]=s,t[10]=v,t[11]=g):(v=t[10],g=t[11]),B(v,g),r},wT=Ts(Nd),yR=()=>wT(bR),ST=()=>wT(_R);function bR(e){return e.historyStorage.queries}function _R(e){return e.actions}function TR(e,t){for(const n of e)t(n,!0)}const ER=()=>{const e=K.c(13),t=yR(),{deleteFromHistory:n}=ST();let r;r=t.slice().map(SR).reverse();const i=r.filter(xR);i.length&&(r=r.filter(CR));const[o,s]=z(null);let a,l;e[0]!==o?(a=()=>{o&&setTimeout(()=>{s(null)},2e3)},l=[o],e[0]=o,e[1]=a,e[2]=l):(a=e[1],l=e[2]),B(a,l);const c=()=>{try{TR(r,n),s("success")}catch{s("error")}},u=!!i.length,d=!!r.length,h="History",f="graphiql-history",p=(o||d)&&y(Qt,{type:"button",state:o||void 0,disabled:!r.length,onClick:c,children:{success:"Cleared",error:"Failed to Clear"}[o]||"Clear"});let m;e[3]!==p?(m=y("div",{className:"graphiql-history-header",children:["History",p]}),e[3]=p,e[4]=m):m=e[4];const v=u&&y("ul",{className:"graphiql-history-items",children:i.map(AR)});let g;e[5]!==u||e[6]!==d?(g=u&&d&&y("div",{className:"graphiql-history-item-spacer"}),e[5]=u,e[6]=d,e[7]=g):g=e[7];const _=d&&y("ul",{className:"graphiql-history-items",children:r.map(NR)});let b;return e[8]!==m||e[9]!==v||e[10]!==g||e[11]!==_?(b=y("section",{"aria-label":h,className:f,children:[m,v,g,_]}),e[8]=m,e[9]=v,e[10]=g,e[11]=_,e[12]=b):b=e[12],b},_h=e=>{const t=K.c(39),{editLabel:n,toggleFavorite:r,deleteFromHistory:i,setActive:o}=ST();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={nonNull:!0,caller:_h},t[0]=s):s=t[0];const{headerEditor:a,queryEditor:l,variableEditor:c}=ut(s),u=F(null),d=F(null),[h,f]=z(!1);let p,m;t[1]!==h?(p=()=>{var O;h&&((O=u.current)==null||O.focus())},m=[h],t[1]=h,t[2]=p,t[3]=m):(p=t[2],m=t[3]),B(p,m);let v;t[4]!==e.item.label||t[5]!==e.item.operationName||t[6]!==e.item.query?(v=e.item.label||e.item.operationName||wR(e.item.query),t[4]=e.item.label,t[5]=e.item.operationName,t[6]=e.item.query,t[7]=v):v=t[7];const g=v;let _;t[8]!==n||t[9]!==e.item?(_=()=>{var O;f(!1);const{index:A,...W}=e.item;n({...W,label:(O=u.current)==null?void 0:O.value},A)},t[8]=n,t[9]=e.item,t[10]=_):_=t[10];const b=_;let T;t[11]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{f(!1)},t[11]=T):T=t[11];const E=T;let S;t[12]===Symbol.for("react.memo_cache_sentinel")?(S=O=>{O.stopPropagation(),f(!0)},t[12]=S):S=t[12];const C=S;let x;t[13]!==a||t[14]!==e.item||t[15]!==l||t[16]!==o||t[17]!==c?(x=()=>{const{query:O,variables:A,headers:W}=e.item;l?.setValue(O??""),c?.setValue(A??""),a?.setValue(W??""),o(e.item)},t[13]=a,t[14]=e.item,t[15]=l,t[16]=o,t[17]=c,t[18]=x):x=t[18];const w=x;let N;t[19]!==i||t[20]!==e.item?(N=O=>{O.stopPropagation(),i(e.item)},t[19]=i,t[20]=e.item,t[21]=N):N=t[21];const P=N;let D;t[22]!==e.item||t[23]!==r?(D=O=>{O.stopPropagation(),r(e.item)},t[22]=e.item,t[23]=r,t[24]=D):D=t[24];const j=D,$=h&&"editable";let M;t[25]!==$?(M=Ie("graphiql-history-item",$),t[25]=$,t[26]=M):M=t[26];let L;t[27]!==g||t[28]!==n||t[29]!==P||t[30]!==w||t[31]!==b||t[32]!==j||t[33]!==h||t[34]!==e.item?(L=h?y(me,{children:[y("input",{type:"text",defaultValue:e.item.label,ref:u,onKeyDown:O=>{O.key==="Esc"?f(!1):O.key==="Enter"&&(f(!1),n({...e.item,label:O.currentTarget.value}))},placeholder:"Type a label"}),y(tt,{type:"button",ref:d,onClick:b,children:"Save"}),y(tt,{type:"button",ref:d,onClick:E,children:y(gf,{})})]}):y(me,{children:[y(Tt,{label:"Set active",children:y(tt,{type:"button",className:"graphiql-history-item-label",onClick:w,"aria-label":"Set active",children:g})}),y(Tt,{label:"Edit label",children:y(tt,{type:"button",className:"graphiql-history-item-action",onClick:C,"aria-label":"Edit label",children:y(OC,{"aria-hidden":"true"})})}),y(Tt,{label:e.item.favorite?"Remove favorite":"Add favorite",children:y(tt,{type:"button",className:"graphiql-history-item-action",onClick:j,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?y(kC,{"aria-hidden":"true"}):y($C,{"aria-hidden":"true"})})}),y(Tt,{label:"Delete from history",children:y(tt,{type:"button",className:"graphiql-history-item-action",onClick:P,"aria-label":"Delete from history",children:y(VC,{"aria-hidden":"true"})})})]}),t[27]=g,t[28]=n,t[29]=P,t[30]=w,t[31]=b,t[32]=j,t[33]=h,t[34]=e.item,t[35]=L):L=t[35];let k;return t[36]!==M||t[37]!==L?(k=y("li",{className:M,children:L}),t[36]=M,t[37]=L,t[38]=k):k=t[38],k};function wR(e){return e?.split(` -`).map(t=>t.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")}function SR(e,t){return{...e,index:t}}function xR(e){return e.favorite}function CR(e){return!e.favorite}function AR(e){return y(_h,{item:e},e.index)}function NR(e){return y(_h,{item:e},e.index)}const OR={title:"History",icon:SC,content:ER},xa=[{name:"Docs"}],Od=_s((e,t)=>({explorerNavStack:xa,actions:{push(n){e(r=>{const i=r.explorerNavStack;return{explorerNavStack:i.at(-1).def===n.def?i:[...i,n]}})},pop(){e(n=>{const r=n.explorerNavStack;return{explorerNavStack:r.length>1?r.slice(0,-1):r}})},reset(){e(n=>{const r=n.explorerNavStack;return{explorerNavStack:r.length===1?r:xa}})},resolveSchemaReferenceToNavItem(n){if(!n)return;const{push:r}=t().actions;switch(n.kind){case"Type":{r({name:n.type.name,def:n.type});break}case"Field":{r({name:n.field.name,def:n.field});break}case"Argument":{n.field&&r({name:n.field.name,def:n.field});break}case"EnumValue":{n.type&&r({name:n.type.name,def:n.type});break}}},rebuildNavStackWithSchema(n){e(r=>{const i=r.explorerNavStack;if(i.length===1)return r;const o=[...xa];let s=null;for(const a of i)if(a!==xa[0])if(a.def)if(Gd(a.def)){const l=n.getType(a.def.name);if(l)o.push({name:a.name,def:l}),s=l;else break}else{if(s===null)break;if($e(s)||st(s)){const l=s.getFields()[a.name];if(l)o.push({name:a.name,def:l});else break}else{if(Zn(s)||Dt(s)||Ve(s)||Bt(s))break;{const l=s;if(l.args.some(c=>c.name===a.name))o.push({name:a.name,def:l});else break}}}else s=null,o.push(a);return{explorerNavStack:o}})}}})),PR=e=>{const t=K.c(7),{children:n}=e,{schema:r,validationErrors:i,schemaReference:o}=yn();let s,a;t[0]!==o?(s=()=>{const{resolveSchemaReferenceToNavItem:u}=Od.getState().actions;u(o)},a=[o],t[0]=o,t[1]=s,t[2]=a):(s=t[1],a=t[2]),B(s,a);let l,c;return t[3]!==r||t[4]!==i?(l=()=>{const{reset:u,rebuildNavStackWithSchema:d}=Od.getState().actions;r==null||i.length>0?u():d(r)},c=[r,i],t[3]=r,t[4]=i,t[5]=l,t[6]=c):(l=t[5],c=t[6]),B(l,c),n},xT=Ts(Od),Th=()=>xT(IR),Yl=()=>xT(DR);function IR(e){return e.explorerNavStack}function DR(e){return e.actions}const RR=e=>e?It(e):"",CT=e=>{const t=K.c(12),{field:n}=e;if(!("defaultValue"in n)||n.defaultValue===void 0)return null;const r=n.defaultValue,i=n.type;let o,s,a,l;if(t[0]!==n.defaultValue||t[1]!==n.type){l=Symbol.for("react.early_return_sentinel");e:{const d=Di(r,i);if(!d){l=null;break e}a=" = ",o="graphiql-doc-explorer-default-value",s=RR(d)}t[0]=n.defaultValue,t[1]=n.type,t[2]=o,t[3]=s,t[4]=a,t[5]=l}else o=t[2],s=t[3],a=t[4],l=t[5];if(l!==Symbol.for("react.early_return_sentinel"))return l;let c;t[6]!==o||t[7]!==s?(c=y("span",{className:o,children:s}),t[6]=o,t[7]=s,t[8]=c):c=t[8];let u;return t[9]!==a||t[10]!==c?(u=y(me,{children:[a,c]}),t[9]=a,t[10]=c,t[11]=u):u=t[11],u};function ul(e,t){return Ke(e)?y(me,{children:[ul(e.ofType,t),"!"]}):yt(e)?y(me,{children:["[",ul(e.ofType,t),"]"]}):t(e)}const Sn=e=>{const t=K.c(5),{type:n}=e,{push:r}=Yl();if(!n)return null;let i;t[0]!==r?(i=s=>y("a",{className:"graphiql-doc-explorer-type-name",onClick:a=>{a.preventDefault(),r({name:s.name,def:s})},href:"#",children:s.name}),t[0]=r,t[1]=i):i=t[1];let o;return t[2]!==i||t[3]!==n?(o=ul(n,i),t[2]=i,t[3]=n,t[4]=o):o=t[4],o},dl=e=>{const t=K.c(19),{arg:n,showDefaultValue:r,inline:i}=e;let o;t[0]!==n.name?(o=y("span",{className:"graphiql-doc-explorer-argument-name",children:n.name}),t[0]=n.name,t[1]=o):o=t[1];let s;t[2]!==n.type?(s=y(Sn,{type:n.type}),t[2]=n.type,t[3]=s):s=t[3];let a;t[4]!==n||t[5]!==r?(a=r!==!1&&y(CT,{field:n}),t[4]=n,t[5]=r,t[6]=a):a=t[6];let l;t[7]!==o||t[8]!==s||t[9]!==a?(l=y("span",{children:[o,": ",s,a]}),t[7]=o,t[8]=s,t[9]=a,t[10]=l):l=t[10];const c=l;if(i)return c;let u;t[11]!==n.description?(u=n.description?y(hn,{type:"description",children:n.description}):null,t[11]=n.description,t[12]=u):u=t[12];let d;t[13]!==n.deprecationReason?(d=n.deprecationReason?y("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[y("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),y(hn,{type:"deprecation",children:n.deprecationReason})]}):null,t[13]=n.deprecationReason,t[14]=d):d=t[14];let h;return t[15]!==c||t[16]!==u||t[17]!==d?(h=y("div",{className:"graphiql-doc-explorer-argument",children:[c,u,d]}),t[15]=c,t[16]=u,t[17]=d,t[18]=h):h=t[18],h},AT=e=>{const t=K.c(3);let n;return t[0]!==e.children||t[1]!==e.preview?(n=e.children?y("div",{className:"graphiql-doc-explorer-deprecation",children:[y("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),y(hn,{type:"deprecation",onlyShowFirstChild:e.preview??!0,children:e.children})]}):null,t[0]=e.children,t[1]=e.preview,t[2]=n):n=t[2],n},MR=e=>{const t=K.c(2),{directive:n}=e;let r;return t[0]!==n.name.value?(r=y("span",{className:"graphiql-doc-explorer-directive",children:["@",n.name.value]}),t[0]=n.name.value,t[1]=r):r=t[1],r},Ht=e=>{const t=K.c(10),{title:n,children:r}=e,i=LR[n];let o;t[0]!==i?(o=y(i,{}),t[0]=i,t[1]=o):o=t[1];let s;t[2]!==o||t[3]!==n?(s=y("div",{className:"graphiql-doc-explorer-section-title",children:[o,n]}),t[2]=o,t[3]=n,t[4]=s):s=t[4];let a;t[5]!==r?(a=y("div",{className:"graphiql-doc-explorer-section-content",children:r}),t[5]=r,t[6]=a):a=t[6];let l;return t[7]!==s||t[8]!==a?(l=y("div",{children:[s,a]}),t[7]=s,t[8]=a,t[9]=l):l=t[9],l},LR={Arguments:dC,"Deprecated Arguments":gC,"Deprecated Enum Values":vC,"Deprecated Fields":yC,Directives:bC,"Enum Values":EC,Fields:wC,Implements:xC,Implementations:fa,"Possible Types":fa,"Root Types":MC,Type:fa,"All Schema Types":fa},kR=e=>{const t=K.c(15),{field:n}=e;let r;t[0]!==n.description?(r=n.description?y(hn,{type:"description",children:n.description}):null,t[0]=n.description,t[1]=r):r=t[1];let i;t[2]!==n.deprecationReason?(i=y(AT,{preview:!1,children:n.deprecationReason}),t[2]=n.deprecationReason,t[3]=i):i=t[3];let o;t[4]!==n.type?(o=y(Ht,{title:"Type",children:y(Sn,{type:n.type})}),t[4]=n.type,t[5]=o):o=t[5];let s,a;t[6]!==n?(s=y($R,{field:n}),a=y(FR,{field:n}),t[6]=n,t[7]=s,t[8]=a):(s=t[7],a=t[8]);let l;return t[9]!==r||t[10]!==i||t[11]!==o||t[12]!==s||t[13]!==a?(l=y(me,{children:[r,i,o,s,a]}),t[9]=r,t[10]=i,t[11]=o,t[12]=s,t[13]=a,t[14]=l):l=t[14],l},$R=e=>{const t=K.c(12),{field:n}=e,[r,i]=z(!1);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{i(!0)},t[0]=o):o=t[0];const s=o;if(!("args"in n))return null;let a,l,c;if(t[1]!==n.args){a=[],l=[];for(const h of n.args)h.deprecationReason?l.push(h):a.push(h);c=a.length>0?y(Ht,{title:"Arguments",children:a.map(VR)}):null,t[1]=n.args,t[2]=a,t[3]=l,t[4]=c}else a=t[2],l=t[3],c=t[4];let u;t[5]!==a.length||t[6]!==l||t[7]!==r?(u=l.length>0?r||a.length===0?y(Ht,{title:"Deprecated Arguments",children:l.map(jR)}):y(Qt,{type:"button",onClick:s,children:"Show Deprecated Arguments"}):null,t[5]=a.length,t[6]=l,t[7]=r,t[8]=u):u=t[8];let d;return t[9]!==c||t[10]!==u?(d=y(me,{children:[c,u]}),t[9]=c,t[10]=u,t[11]=d):d=t[11],d},FR=e=>{var t;const n=K.c(4),{field:r}=e,i=(t=r.astNode)==null?void 0:t.directives;if(!i?.length)return null;let o;n[0]!==i?(o=i.map(BR),n[0]=i,n[1]=o):o=n[1];let s;return n[2]!==o?(s=y(Ht,{title:"Directives",children:o}),n[2]=o,n[3]=s):s=n[3],s};function VR(e){return y(dl,{arg:e},e.name)}function jR(e){return y(dl,{arg:e},e.name)}function BR(e){return y("div",{children:y(MR,{directive:e})},e.name.value)}const UR=e=>{var t,n;const r=K.c(39),{schema:i}=e;let o;r[0]!==i?(o=i.getQueryType(),r[0]=i,r[1]=o):o=r[1];const s=o;let a;r[2]!==i?(a=(t=i.getMutationType)==null?void 0:t.call(i),r[2]=i,r[3]=a):a=r[3];const l=a;let c;r[4]!==i?(c=(n=i.getSubscriptionType)==null?void 0:n.call(i),r[4]=i,r[5]=c):c=r[5];const u=c;let d,h,f,p,m;if(r[6]!==l||r[7]!==s||r[8]!==i||r[9]!==u){const _=i.getTypeMap(),b=s?.name,T=l?.name,E=u?.name;let S;r[15]!==E||r[16]!==b||r[17]!==T?(S=[b,T,E],r[15]=E,r[16]=b,r[17]=T,r[18]=S):S=r[18];const C=S,x=i.description||"A GraphQL schema provides a root type for each kind of operation.";r[19]!==x?(p=y(hn,{type:"description",children:x}),r[19]=x,r[20]=p):p=r[20];let w;r[21]!==s?(w=s?y("div",{children:[y("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",y(Sn,{type:s})]}):null,r[21]=s,r[22]=w):w=r[22];let N;r[23]!==l?(N=l&&y("div",{children:[y("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",y(Sn,{type:l})]}),r[23]=l,r[24]=N):N=r[24];let P;r[25]!==u?(P=u&&y("div",{children:[y("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",y(Sn,{type:u})]}),r[25]=u,r[26]=P):P=r[26],r[27]!==w||r[28]!==N||r[29]!==P?(m=y(Ht,{title:"Root Types",children:[w,N,P]}),r[27]=w,r[28]=N,r[29]=P,r[30]=m):m=r[30],d=Ht,h="All Schema Types",f=_&&y("div",{children:Object.values(_).map(D=>C.includes(D.name)||D.name.startsWith("__")?null:y("div",{children:y(Sn,{type:D})},D.name))}),r[6]=l,r[7]=s,r[8]=i,r[9]=u,r[10]=d,r[11]=h,r[12]=f,r[13]=p,r[14]=m}else d=r[10],h=r[11],f=r[12],p=r[13],m=r[14];let v;r[31]!==d||r[32]!==h||r[33]!==f?(v=y(d,{title:h,children:f}),r[31]=d,r[32]=h,r[33]=f,r[34]=v):v=r[34];let g;return r[35]!==p||r[36]!==m||r[37]!==v?(g=y(me,{children:[p,m,v]}),r[35]=p,r[36]=m,r[37]=v,r[38]=g):g=r[38],g},NT=typeof document<"u"?pe.useLayoutEffect:()=>{};function HR(e){const t=F(null);return NT(()=>{t.current=e},[e]),Y((...n)=>{const r=t.current;return r?.(...n)},[])}const nr=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},pr=e=>e&&"window"in e&&e.window===e?e:nr(e).defaultView||window;function WR(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function qR(e){return WR(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let GR=!1;function Eh(){return GR}function OT(e,t){if(!Eh())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:qR(n)?n=n.host:n=n.parentNode}return!1}const Pd=(e=document)=>{var t;if(!Eh())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function PT(e){return Eh()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function zR(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function YR(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function IT(e){let t=null;return()=>(t==null&&(t=e()),t)}const QR=IT(function(){return YR(/^Mac/i)}),KR=IT(function(){return zR(/Android/i)});function DT(){let e=F(new Map),t=Y((i,o,s,a)=>{let l=a?.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:o,eventTarget:i,fn:l,options:a}),i.addEventListener(o,l,a)},[]),n=Y((i,o,s,a)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(o,c,a),e.current.delete(s)},[]),r=Y(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return B(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function XR(e){return e.mozInputSource===0&&e.isTrusted?!0:KR()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function RT(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function JR(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function MT(e){let t=F({isFocused:!1,observer:null});NT(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=HR(r=>{e?.(r)});return Y(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{if(t.current.isFocused=!1,i.disabled){let a=RT(s);n(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let ZR=!1,Ls=null,Id=new Set,Uo=new Map,Ar=!1,Dd=!1;const eM={Tab:!0,Escape:!0};function wh(e,t){for(let n of Id)n(e,t)}function tM(e){return!(e.metaKey||!QR()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function fl(e){Ar=!0,tM(e)&&(Ls="keyboard",wh("keyboard",e))}function zi(e){Ls="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ar=!0,wh("pointer",e))}function LT(e){XR(e)&&(Ar=!0,Ls="virtual")}function kT(e){e.target===window||e.target===document||ZR||!e.isTrusted||(!Ar&&!Dd&&(Ls="virtual",wh("virtual",e)),Ar=!1,Dd=!1)}function $T(){Ar=!1,Dd=!0}function Rd(e){if(typeof window>"u"||Uo.get(pr(e)))return;const t=pr(e),n=nr(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ar=!0,r.apply(this,arguments)},n.addEventListener("keydown",fl,!0),n.addEventListener("keyup",fl,!0),n.addEventListener("click",LT,!0),t.addEventListener("focus",kT,!0),t.addEventListener("blur",$T,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",zi,!0),n.addEventListener("pointermove",zi,!0),n.addEventListener("pointerup",zi,!0)),t.addEventListener("beforeunload",()=>{FT(e)},{once:!0}),Uo.set(t,{focus:r})}const FT=(e,t)=>{const n=pr(e),r=nr(e);t&&r.removeEventListener("DOMContentLoaded",t),Uo.has(n)&&(n.HTMLElement.prototype.focus=Uo.get(n).focus,r.removeEventListener("keydown",fl,!0),r.removeEventListener("keyup",fl,!0),r.removeEventListener("click",LT,!0),n.removeEventListener("focus",kT,!0),n.removeEventListener("blur",$T,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",zi,!0),r.removeEventListener("pointermove",zi,!0),r.removeEventListener("pointerup",zi,!0)),Uo.delete(n))};function nM(e){const t=nr(e);let n;return t.readyState!=="loading"?Rd(e):(n=()=>{Rd(e)},t.addEventListener("DOMContentLoaded",n)),()=>FT(e,n)}typeof document<"u"&&nM();function VT(){return Ls!=="pointer"}const rM=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function iM(e,t,n){let r=nr(n?.target);const i=typeof window<"u"?pr(n?.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?pr(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?pr(n?.target).HTMLElement:HTMLElement,a=typeof window<"u"?pr(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof i&&!rM.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof s&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!eM[n.key])}function oM(e,t,n){Rd(),B(()=>{let r=(i,o)=>{iM(!!n?.isTextInput,i,o)&&e(VT())};return Id.add(r),()=>{Id.delete(r)}},t)}function sM(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=Y(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=MT(o),a=Y(l=>{const c=nr(l.target),u=c?Pd(c):Pd();l.target===l.currentTarget&&u===PT(l.nativeEvent)&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?o:void 0}}}function aM(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=F({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=DT(),l=Y(d=>{d.currentTarget.contains(d.target)&&o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(d),i&&i(!1))},[n,i,o,a]),c=MT(l),u=Y(d=>{if(!d.currentTarget.contains(d.target))return;const h=nr(d.target),f=Pd(h);if(!o.current.isFocusWithin&&f===PT(d.nativeEvent)){r&&r(d),i&&i(!0),o.current.isFocusWithin=!0,c(d);let p=d.currentTarget;s(h,"focus",m=>{if(o.current.isFocusWithin&&!OT(p,m.target)){let v=new h.defaultView.FocusEvent("blur",{relatedTarget:m.target});JR(v,p);let g=RT(v);l(g)}},{capture:!0})}},[r,i,c,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let Md=!1,ru=0;function lM(){Md=!0,setTimeout(()=>{Md=!1},50)}function bv(e){e.pointerType==="touch"&&lM()}function cM(){if(!(typeof document>"u"))return typeof PointerEvent<"u"&&document.addEventListener("pointerup",bv),ru++,()=>{ru--,!(ru>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",bv)}}function jT(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=z(!1),a=F({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;B(cM,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=DT(),{hoverProps:u,triggerHoverEnd:d}=re(()=>{let h=(m,v)=>{if(a.pointerType=v,i||v==="touch"||a.isHovered||!m.currentTarget.contains(m.target))return;a.isHovered=!0;let g=m.currentTarget;a.target=g,l(nr(m.target),"pointerover",_=>{a.isHovered&&a.target&&!OT(a.target,_.target)&&f(_,_.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:g,pointerType:v}),n&&n(!0),s(!0)},f=(m,v)=>{let g=a.target;a.pointerType="",a.target=null,!(v==="touch"||!a.isHovered||!g)&&(a.isHovered=!1,c(),r&&r({type:"hoverend",target:g,pointerType:v}),n&&n(!1),s(!1))},p={};return typeof PointerEvent<"u"&&(p.onPointerEnter=m=>{Md&&m.pointerType==="mouse"||h(m,m.pointerType)},p.onPointerLeave=m=>{!i&&m.currentTarget.contains(m.target)&&f(m,m.pointerType)}),{hoverProps:p,triggerHoverEnd:f}},[t,n,r,i,a,l,c]);return B(()=>{i&&d({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:u,isHovered:o}}function BT(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=F({isFocused:!1,isFocusVisible:t||VT()}),[o,s]=z(!1),[a,l]=z(()=>i.current.isFocused&&i.current.isFocusVisible),c=Y(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),u=Y(f=>{i.current.isFocused=f,s(f),c()},[c]);oM(f=>{i.current.isFocusVisible=f,c()},[],{isTextInput:n});let{focusProps:d}=sM({isDisabled:r,onFocusChange:u}),{focusWithinProps:h}=aM({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:a,focusProps:r?h:d}}var uM=Object.defineProperty,dM=(e,t,n)=>t in e?uM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iu=(e,t,n)=>(dM(e,typeof t!="symbol"?t+"":t,n),n);let fM=class{constructor(){iu(this,"current",this.detect()),iu(this,"handoffState","pending"),iu(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Tr=new fM;function ks(e){var t,n;return Tr.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?(n=(t=e.current)==null?void 0:t.ownerDocument)!=null?n:document:null:document}function UT(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function _n(){let e=[],t={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),t.add(()=>n.removeEventListener(r,i,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return UT(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=_n();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function $s(){let[e]=z(_n);return B(()=>()=>e.dispose(),[e]),e}let Ge=(e,t)=>{Tr.isServer?B(e,t):St(e,t)};function $r(e){let t=F(e);return Ge(()=>{t.current=e},[e]),t}let Ee=function(e){let t=$r(e);return pe.useCallback((...n)=>t.current(...n),[t])};function hM(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function pM(e,t){return!(!e||!t||e.rightt.right||e.bottomt.bottom)}function mM({disabled:e=!1}={}){let t=F(null),[n,r]=z(!1),i=$s(),o=Ee(()=>{t.current=null,r(!1),i.dispose()}),s=Ee(a=>{if(i.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=ks(a.currentTarget);i.addEventListener(l,"pointerup",o,!1),i.addEventListener(l,"pointermove",c=>{if(t.current){let u=hM(c);r(pM(u,t.current.getBoundingClientRect()))}},!1),i.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}let gM=Ne(void 0);function Sh(){return fe(gM)}function _v(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function pn(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,pn),r}var Ld=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Ld||{}),vM=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(vM||{});function nn(){let e=bM();return Y(t=>yM({mergeRefs:e,...t}),[e])}function yM({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??_M;let l=HT(t,e);if(o)return Ca(l,n,r,s,a);let c=i??0;if(c&2){let{static:u=!1,...d}=l;if(u)return Ca(d,n,r,s,a)}if(c&1){let{unmount:u=!0,...d}=l;return pn(u?0:1,{0(){return null},1(){return Ca({...d,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return Ca(l,n,r,s,a)}function Ca(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...l}=ou(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},u=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let h=!1,f=[];for(let[p,m]of Object.entries(t))typeof m=="boolean"&&(h=!0),m===!0&&f.push(p.replace(/([A-Z])/g,v=>`-${v.toLowerCase()}`));if(h){d["data-headlessui-state"]=f.join(" ");for(let p of f)d[`data-${p}`]=""}}if(o===me&&(Object.keys(ar(l)).length>0||Object.keys(ar(d)).length>0))if(!Jt(u)||Array.isArray(u)&&u.length>1){if(Object.keys(ar(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ar(l)).concat(Object.keys(ar(d))).map(h=>` - ${h}`).join(` -`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(` -`)].join(` -`))}else{let h=u.props,f=h?.className,p=typeof f=="function"?(...g)=>_v(f(...g),l.className):_v(f,l.className),m=p?{className:p}:{},v=HT(u.props,ar(ou(l,["ref"])));for(let g in d)g in v&&delete d[g];return er(u,Object.assign({},v,d,c,{ref:i(TM(u),c.ref)},m))}return R(o,Object.assign({},ou(l,["ref"]),o!==me&&c,o!==me&&d),u)}function bM(){let e=F([]),t=Y(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function _M(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function HT(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var o;return(o=i?.preventDefault)==null?void 0:o.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...o){let s=n[r];for(let a of s){if((i instanceof Event||i?.nativeEvent instanceof Event)&&i.defaultPrevented)return;a(i,...o)}}});return t}function xh(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];for(let r in n)Object.assign(t,{[r](...i){let o=n[r];for(let s of o)s?.(...i)}});return t}function rn(e){var t;return Object.assign(Q(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ar(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function ou(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function TM(e){return pe.version.split(".")[0]>="19"?e.props.ref:e.ref}function EM(e,t,n){let[r,i]=z(n),o=e!==void 0,s=F(o),a=F(!1),l=F(!1);return o&&!s.current&&!a.current?(a.current=!0,s.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&s.current&&!l.current&&(l.current=!0,s.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:r,Ee(c=>(o||i(c),t?.(c)))]}function wM(e){let[t]=z(e);return t}function WT(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))GT(n,qT(t,r),i);return n}function qT(e,t){return e?e+"["+t+"]":t}function GT(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())GT(e,qT(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):WT(n,t,e)}let SM="span";var Ch=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ch||{});function xM(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return nn()({ourProps:o,theirProps:i,slot:{},defaultTag:SM,name:"Hidden"})}let zT=rn(xM),CM=Ne(null);function AM({children:e}){let t=fe(CM);if(!t)return pe.createElement(pe.Fragment,null,e);let{target:n}=t;return n?Sl(pe.createElement(pe.Fragment,null,e),n):null}function NM({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=z(null),a=$s();return B(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),pe.createElement(AM,null,pe.createElement(OM,{setForm:s,formId:t}),WT(e).map(([l,c])=>pe.createElement(zT,{features:Ch.Hidden,...ar({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:c,...i})})))}function OM({setForm:e,formId:t}){return B(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:pe.createElement(zT,{features:Ch.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let PM=Ne(void 0);function YT(){return fe(PM)}function Ah(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function Ql(e){return Ah(e)&&"tagName"in e}function rr(e){return Ql(e)&&"accessKey"in e}function mr(e){return Ql(e)&&"tabIndex"in e}function IM(e){return Ql(e)&&"style"in e}function DM(e){return rr(e)&&e.nodeName==="IFRAME"}function hl(e){return rr(e)&&e.nodeName==="INPUT"}function Tv(e){return rr(e)&&e.nodeName==="LABEL"}function RM(e){return rr(e)&&e.nodeName==="FIELDSET"}function QT(e){return rr(e)&&e.nodeName==="LEGEND"}function MM(e){return Ql(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function LM(e){let t=e.parentElement,n=null;for(;t&&!RM(t);)QT(t)&&(n=t),t=t.parentElement;let r=t?.getAttribute("disabled")==="";return r&&kM(n)?!1:r}function kM(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(QT(t))return!1;t=t.previousElementSibling}return!0}let KT=Symbol();function $M(e,t=!0){return Object.assign(e,{[KT]:t})}function Fn(...e){let t=F(e);B(()=>{t.current=e},[e]);let n=Ee(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||r?.[KT])?void 0:n}let Nh=Ne(null);Nh.displayName="DescriptionContext";function XT(){let e=fe(Nh);if(e===null){let t=new Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,XT),t}return e}function FM(){var e,t;return(t=(e=fe(Nh))==null?void 0:e.value)!=null?t:void 0}let VM="p";function jM(e,t){let n=qt(),r=Sh(),{id:i=`headlessui-description-${n}`,...o}=e,s=XT(),a=Fn(t);Ge(()=>s.register(i),[i,s.register]);let l=r||!1,c=re(()=>({...s.slot,disabled:l}),[s.slot,l]),u={ref:a,...s.props,id:i};return nn()({ourProps:u,theirProps:o,slot:c,defaultTag:VM,name:s.name||"Description"})}let BM=rn(jM);Object.assign(BM,{});var ht=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ht||{});let Kl=Ne(null);Kl.displayName="LabelContext";function JT(){let e=fe(Kl);if(e===null){let t=new Error("You used a