1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4517],{5601:function(e,t,r){r.d(t,{$j:function(){return eC},BG:function(){return el},Fg:function(){return useTheme},J5:function(){return eA},JB:function(){return e_},Kt:function(){return er},LA:function(){return HeaderEditor},OK:function(){return eL},Q5:function(){return eR},Rn:function(){return Y},TI:function(){return W},Vq:function(){return ef},WK:function(){return QueryEditor},Xd:function(){return useCopyQuery},Xx:function(){return useDragResize},_8:function(){return ExecuteButton},_i:function(){return e3},bN:function(){return R},ew:function(){return ei},fE:function(){return usePrettifyEditors},fY:function(){return J},g8:function(){return I},gp:function(){return eZ},hE:function(){return eh},hF:function(){return VariableEditor},iB:function(){return ResponseEditor},j$:function(){return GraphiQLProvider},mQ:function(){return eS},pO:function(){return et},pQ:function(){return useMergeQuery},u:function(){return eb},v0:function(){return ed},v4:function(){return q},wC:function(){return te},zx:function(){return em}});var l=r(85893),n=r(50562),i=r(67294),o=r(30009),a=r(37655),s=r(85427),c=r(4054),u=r(97950),d=r(73982),m=r(2411),h=r(67423),p=r(70899),f=r(27636),g=r(93685),y=r(17568),x=r(89707),v=r.n(x),C=r(43200),b=r.n(C),E=r(20640),w=r.n(E),j=r(98332),L=r(40911),S=r(37171),N=r(27199),k=r(27517),M=r(73359),T=r(49361),_=r(73935);function createNullableContext(e){let t=(0,i.createContext)(null);return t.displayName=e,t}function createContextHook(e){function useGivenContext(t){var r;let l=(0,i.useContext)(e);if(null===l&&(null==t?void 0:t.nonNull))throw Error(`Tried to use \`${(null==(r=t.caller)?void 0:r.name)||"a component"}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return l}return Object.defineProperty(useGivenContext,"name",{value:`use${e.displayName}`}),useGivenContext}let P=createNullableContext("StorageContext");function StorageContextProvider(e){let t,r,o,a;let s=(0,n.c)(8),c=(0,i.useRef)(!0);s[0]!==e.storage?(t=()=>new g.StorageAPI(e.storage),s[0]=e.storage,s[1]=t):t=s[1];let[u,d]=(0,i.useState)(t);return s[2]!==e.storage?(r=()=>{c.current?c.current=!1:d(new g.StorageAPI(e.storage))},o=[e.storage],s[2]=e.storage,s[3]=r,s[4]=o):(r=s[3],o=s[4]),(0,i.useEffect)(r,o),s[5]!==e.children||s[6]!==u?(a=(0,l.jsx)(P.Provider,{value:u,children:e.children}),s[5]=e.children,s[6]=u,s[7]=a):a=s[7],a}let R=createContextHook(P),V=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("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}),i.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"}))),q=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5}))),H=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75}))),I=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5}))),A=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 14 14",stroke:"currentColor",strokeWidth:3,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("path",{d:"M1 1L12.9998 12.9997"}),i.createElement("path",{d:"M13 1L1.00079 13.0003"}))),W=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("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}),i.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5}))),F=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("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}),i.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),i.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2}))),D=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),i.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),i.createElement("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"}))),O=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),i.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),i.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}))),$=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),i.createElement("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"}))),B=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("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}),i.createElement("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",
1stroke:"currentColor",strokeWidth:1.5}),i.createElement("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"}))),Q=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("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}),i.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5}))),Z=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),i.createElement("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"}))),z=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),i.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"}))),K=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),i.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),i.createElement("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}))),G=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5)","transform-origin":"center"}),i.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"}))),J=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("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"}),i.createElement("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"}),i.createElement("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"}),i.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("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"}))),U=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),i.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3}))),Y=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("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}),i.createElement("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}),i.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),i.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5}))),X=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("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.89
1003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),i.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}))),ee=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("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"}))),et=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("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"}))),er=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),i.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),i.createElement("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}),i.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),i.createElement("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"}))),el=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),i.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),i.createElement("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}),i.createElement("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}))),en=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),i.createElement("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}))),ei=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("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.8254
16 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"}))),eo=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("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"}))),ea=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("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}))),es=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"}))),ec=generateIcon(({title:e,titleId:t,...r})=>i.createElement("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,...r},e?i.createElement("title",{id:t},e):null,i.createElement("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:"
1currentColor",strokeWidth:.25,stroke:"currentColor"}))),eu=generateIcon(({title:e,titleId:t,...r})=>i.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?i.createElement("title",{id:t},e):null,i.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),i.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})));function generateIcon(e){let t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon";function IconComponent(r){let i;let o=(0,n.c)(2);return o[0]!==r?(i=(0,l.jsx)(e,{title:t,...r}),o[0]=r,o[1]=i):i=o[1],i}return IconComponent.displayName=e.name,IconComponent}let ed=(0,i.forwardRef)((e,t)=>{let r,i;let a=(0,n.c)(6);return a[0]!==e.className?(r=(0,o.W)("graphiql-un-styled",e.className),a[0]=e.className,a[1]=r):r=a[1],a[2]!==e||a[3]!==t||a[4]!==r?(i=(0,l.jsx)("button",{...e,ref:t,className:r}),a[2]=e,a[3]=t,a[4]=r,a[5]=i):i=a[5],i});ed.displayName="UnStyledButton";let em=(0,i.forwardRef)((e,t)=>{let r,i;let a=(0,n.c)(7);return a[0]!==e.className||a[1]!==e.state?(r=(0,o.W)("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className),a[0]=e.className,a[1]=e.state,a[2]=r):r=a[2],a[3]!==e||a[4]!==t||a[5]!==r?(i=(0,l.jsx)("button",{...e,ref:t,className:r}),a[3]=e,a[4]=t,a[5]=r,a[6]=i):i=a[6],i});em.displayName="Button";let eh=(0,i.forwardRef)((e,t)=>{let r,i;let a=(0,n.c)(6);return a[0]!==e.className?(r=(0,o.W)("graphiql-button-group",e.className),a[0]=e.className,a[1]=r):r=a[1],a[2]!==e||a[3]!==t||a[4]!==r?(i=(0,l.jsx)("div",{...e,ref:t,className:r}),a[2]=e,a[3]=t,a[4]=r,a[5]=i):i=a[5],i});eh.displayName="ButtonGroup";let createComponentGroup=(e,t)=>Object.entries(t).reduce((e,[t,r])=>(e[t]=r,e),e),ep=(0,i.forwardRef)((e,t)=>{let r,i,a,s;let c=(0,n.c)(8);return c[0]!==e.className?(r=(0,o.W)("graphiql-dialog-close",e.className),c[0]=e.className,c[1]=r):r=c[1],c[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(L.fC,{children:"Close dialog"}),a=(0,l.jsx)(A,{}),c[2]=i,c[3]=a):(i=c[2],a=c[3]),c[4]!==e||c[5]!==t||c[6]!==r?(s=(0,l.jsx)(j.x8,{asChild:!0,children:(0,l.jsxs)(ed,{...e,ref:t,type:"button",className:r,children:[i,a]})}),c[4]=e,c[5]=t,c[6]=r,c[7]=s):s=c[7],s});ep.displayName="Dialog.Close";let ef=createComponentGroup(function(e){let t,r,i,o,a;let s=(0,n.c)(9);return s[0]!==e?({children:t,...r}=e,s[0]=e,s[1]=t,s[2]=r):(t=s[1],r=s[2]),s[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(j.aV,{className:"graphiql-dialog-overlay"}),s[3]=i):i=s[3],s[4]!==t?(o=(0,l.jsxs)(j.h_,{children:[i,(0,l.jsx)(j.VY,{className:"graphiql-dialog",children:t})]}),s[4]=t,s[5]=o):o=s[5],s[6]!==r||s[7]!==o?(a=(0,l.jsx)(j.fC,{...r,children:o}),s[6]=r,s[7]=o,s[8]=a):a=s[8],a},{Close:ep,Title:j.Dx,Trigger:j.xz,Description:j.dk}),eg=(0,i.forwardRef)((e,t)=>{let r,i;let a=(0,n.c)(6);return a[0]!==e.className?(r=(0,o.W)("graphiql-un-styled",e.className),a[0]=e.className,a[1]=r):r=a[1],a[2]!==e||a[3]!==t||a[4]!==r?(i=(0,l.jsx)(S.xz,{asChild:!0,children:(0,l.jsx)("button",{...e,ref:t,className:r})}),a[2]=e,a[3]=t,a[4]=r,a[5]=i):i=a[5],i});eg.displayName="DropdownMenuButton";let ey=createComponentGroup(S.fC,{Button:eg,Item:({className:e,children:t,...r})=>(0,l.jsx)(S.ck,{className:(0,o.W)("graphiql-dropdown-item",e),...r,children:t}),Content:function(e){let t,r,i,a,s,c,u;let d=(0,n.c)(14);d[0]!==e?({children:t,align:a,sideOffset:s,className:r,...i}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=i,d[4]=a,d[5]=s):(t=d[1],r=d[2],i=d[3],a=d[4],s=d[5]);let m=void 0===a?"start":a,h=void 0===s?5:s;return d[6]!==r?(c=(0,o.W)("graphiql-dropdown-content",r),d[6]=r,d[7]=c):c=d[7],d[8]!==m||d[9]!==t||d[10]!==i||d[11]!==h||d[12]!==c?(u=(0,l.jsx)(S.Uv,{children:(0,l.jsx)(S.VY,{align:m,sideOffset:h,className:c,...i,children:t})}),d[8]=m,d[9]=t,d[10]=i,d[11]=h,d[12]=c,d[13]=u):u=d[13],u}}),ex=new N.Z({breaks:!0,linkify:!0}),ev=(0,i.forwardRef)((e,t)=>{let r,i,a,s,c,u,d,m;let h=(0,n.c)(18);h[0]!==e?({children:r,onlyShowFirstChild:i,type:s,...a}=e,h[0]=e,h[1]=r,h[2]=i,h[3]=a,h[4]=s):(r=h[1],i=h[2],a=h[3],s=h[4]);let p=`graphiql-markdown-${s}`,f=i&&"graphiql-markdown-preview";return h[5]!==a.className||h[6]!==p||h[7]!==f?(c=(0,o.W)(p,f,a.className),h[5]=a.className,h[6]=p,h[7]=f,h[8]=c):c=h[8],h[9]!==r?(u=ex.render(r),h[9]=r,h[10]=u):u=h[10],h[11]!==u?(d={__html:u},h[11]=u,h[12]=d):d=h[12],h[13]!==a||h[14]!==t||h[15]!==c||h[16]!==d?(m=(0,l.jsx)("div",{...a,ref:t,className:c,dangerouslySetInnerHTML:d}),h[13]=a,h[14]=t,h[15]=c,h[16]=d,h[17]=m):m=h[17],m});ev.displayName="MarkdownContent";let eC=(0,i.forwardRef)((e,t)=>{let r,i;let a=(0,n.c)(6);return a[0]!==e.className?(r=(0,o.W)("graphiql-spinner",e.className),a[0]=e.className,a[1]=r):r=a[1],a[2]!==e||a[3]!==t||a[4]!==r?(i=(0,l.jsx)("div",{...e,ref:t,className:r}),a[2]=e,a[3]=t,a[4]=r,a[5]=i):i=a[5],i});eC.displayName="Spinner";let eb=createComponentGroup(function(e){let t,r,i;let o=(0,n.c)(10),{children:a,align:s,side:c,sideOffset:u,label:d}
1=e,m=void 0===s?"start":s,h=void 0===c?"bottom":c,p=void 0===u?5:u;return o[0]!==a?(t=(0,l.jsx)(M.xz,{asChild:!0,children:a}),o[0]=a,o[1]=t):t=o[1],o[2]!==m||o[3]!==d||o[4]!==h||o[5]!==p?(r=(0,l.jsx)(M.h_,{children:(0,l.jsx)(M.VY,{className:"graphiql-tooltip",align:m,side:h,sideOffset:p,children:d})}),o[2]=m,o[3]=d,o[4]=h,o[5]=p,o[6]=r):r=o[6],o[7]!==t||o[8]!==r?(i=(0,l.jsxs)(M.fC,{children:[t,r]}),o[7]=t,o[8]=r,o[9]=i):i=o[9],i},{Provider:M.zt}),eE=(0,i.forwardRef)((e,t)=>{let r,i,a,s,c,u,d;let m=(0,n.c)(16);m[0]!==e?({isActive:a,value:c,children:r,className:i,...s}=e,m[0]=e,m[1]=r,m[2]=i,m[3]=a,m[4]=s,m[5]=c):(r=m[1],i=m[2],a=m[3],s=m[4],c=m[5]);let h=a?"true":void 0,p=a&&"graphiql-tab-active";return m[6]!==i||m[7]!==p?(u=(0,o.W)("graphiql-tab",p,i),m[6]=i,m[7]=p,m[8]=u):u=m[8],m[9]!==r||m[10]!==s||m[11]!==t||m[12]!==h||m[13]!==u||m[14]!==c?(d=(0,l.jsx)(k.t.Item,{...s,ref:t,value:c,"aria-selected":h,role:"tab",className:u,children:r}),m[9]=r,m[10]=s,m[11]=t,m[12]=h,m[13]=u,m[14]=c,m[15]=d):d=m[15],d});eE.displayName="Tab";let ew=(0,i.forwardRef)((e,t)=>{let r,i;let a=(0,n.c)(6);return a[0]!==e.className?(r=(0,o.W)("graphiql-tab-button",e.className),a[0]=e.className,a[1]=r):r=a[1],a[2]!==e||a[3]!==t||a[4]!==r?(i=(0,l.jsx)(ed,{...e,ref:t,type:"button",className:r,children:e.children}),a[2]=e,a[3]=t,a[4]=r,a[5]=i):i=a[5],i});ew.displayName="Tab.Button";let ej=(0,i.forwardRef)((e,t)=>{let r,i,a;let s=(0,n.c)(7);return s[0]!==e.className?(r=(0,o.W)("graphiql-tab-close",e.className),s[0]=e.className,s[1]=r):r=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(A,{}),s[2]=i):i=s[2],s[3]!==e||s[4]!==t||s[5]!==r?(a=(0,l.jsx)(eb,{label:"Close Tab",children:(0,l.jsx)(ed,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:r,children:i})}),s[3]=e,s[4]=t,s[5]=r,s[6]=a):a=s[6],a});ej.displayName="Tab.Close";let eL=createComponentGroup(eE,{Button:ew,Close:ej}),eS=(0,i.forwardRef)((e,t)=>{let r,i,a,s,c,u,d;let m=(0,n.c)(15);return m[0]!==e?({values:c,onReorder:a,children:r,className:i,...s}=e,m[0]=e,m[1]=r,m[2]=i,m[3]=a,m[4]=s,m[5]=c):(r=m[1],i=m[2],a=m[3],s=m[4],c=m[5]),m[6]!==i?(u=(0,o.W)("graphiql-tabs",i),m[6]=i,m[7]=u):u=m[7],m[8]!==r||m[9]!==a||m[10]!==s||m[11]!==t||m[12]!==u||m[13]!==c?(d=(0,l.jsx)(k.t.Group,{...s,ref:t,values:c,onReorder:a,axis:"x",role:"tablist",className:u,children:r}),m[8]=r,m[9]=a,m[10]=s,m[11]=t,m[12]=u,m[13]=c,m[14]=d):d=m[14],d});eS.displayName="Tabs";let eN=createNullableContext("HistoryContext");function HistoryContextProvider(e){let t,r,o,a;let s=(0,n.c)(11),{maxHistoryLength:c,children:u}=e,d=void 0===c?eM:c,m=R();s[0]!==d||s[1]!==m?(t=()=>new g.HistoryStore(m||new g.StorageAPI(null),d),s[0]=d,s[1]=m,s[2]=t):t=s[2];let[h]=(0,i.useState)(t);s[3]!==h.queries?(r=()=>h.queries||[],s[3]=h.queries,s[4]=r):r=s[4];let[p,f]=(0,i.useState)(r);s[5]!==h||s[6]!==p?(o={addToHistory(e){h.updateHistory(e),f(h.queries)},editLabel(e,t){h.editLabel(e,t),f(h.queries)},items:p,toggleFavorite(e){h.toggleFavorite(e),f(h.queries)},setActive:_temp$8,deleteFromHistory(e,t){h.deleteHistory(e,t),f(h.queries)}},s[5]=h,s[6]=p,s[7]=o):o=s[7];let y=o;return s[8]!==u||s[9]!==y?(a=(0,l.jsx)(eN.Provider,{value:y,children:u}),s[8]=u,s[9]=y,s[10]=a):a=s[10],a}function _temp$8(e){return e}let ek=createContextHook(eN),eM=20;function HistoryItem(e){var t;let r,a,s,c,u,d,m,h,p,f,g,y,x,v;let C=(0,n.c)(40);C[0]===Symbol.for("react.memo_cache_sentinel")?(r={nonNull:!0,caller:HistoryItem},C[0]=r):r=C[0];let{editLabel:b,toggleFavorite:E,deleteFromHistory:w,setActive:j}=ek(r);C[1]===Symbol.for("react.memo_cache_sentinel")?(a={nonNull:!0,caller:HistoryItem},C[1]=a):a=C[1];let{headerEditor:L,queryEditor:S,variableEditor:N}=e3(a),k=(0,i.useRef)(null),M=(0,i.useRef)(null),[T,_]=(0,i.useState)(!1);C[2]!==T?(s=()=>{var e;T&&(null==(e=k.current)||e.focus())},c=[T],C[2]=T,C[3]=s,C[4]=c):(s=C[3],c=C[4]),(0,i.useEffect)(s,c),C[5]!==e.item.label||C[6]!==e.item.operationName||C[7]!==e.item.query?(u=e.item.label||e.item.operationName||(null==(t=e.item.query)?void 0:t.split("\n").map(e=>e.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")),C[5]=e.item.label,C[6]=e.item.operationName,C[7]=e.item.query,C[8]=u):u=C[8];let P=u;C[9]!==b||C[10]!==e.item?(d=()=>{var t;_(!1);let{index:r,...l}=e.item;b({...l,label:null==(t=k.current)?void 0:t.value},r)},C[9]=b,C[10]=e.item,C[11]=d):d=C[11];let R=d;C[12]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{_(!1)},C[12]=m):m=C[12];let V=m;C[13]===Symbol.for("react.memo_cache_sentinel")?(h=e=>{e.stopPropagation(),_(!0)},C[13]=h):h=C[13];let q=h;C[14]!==L||C[15]!==e.item||C[16]!==S||C[17]!==j||C[18]!==N?(p=()=>{let{query:t,variables:r,headers:l}=e.item;null==S||S.setValue(t??""),null==N||N.setValue(r??""),null==L||L.setValue(l??""),j(e.item)},C[14]=L,C[15]=e.item,C[16]=S,C[17]=j,C[18]=N,C[19]=p):p=C[19];let H=p;C[20]!==w||C[21]!==e.item?(f=t=>{t.stopPropagation(),w(e.item)},C[20]=w,C[21]=e.item,C[22]=f):f=C[22];let I=f;C[23]!==e.item||C[24]!==E?(g=t=>{t.stopPropagation(),E(e.item)},C[23]=e.item,C[24]=E,C[25]=g):g=C[25];let W=g,F=T&&"editable";return C[26]!==F?(y=(0,o.W)("graphiql-history-item",F),C[26]=F,C[27]=y):y=C[27],C[28]!==P||C[29]!==b||C[30]!==I||C[31]!==H||C[32]!==R||C[33]!==W||C[34]!==T||C[35]!==e.item?(x=T?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("input",{type:"text",defaultValue:e.item.label,ref:k,onKeyDown:t=>{"Esc"===t.key?_(!1):"Enter"===t.key&&(_(!1),b({...e.item,label:t.currentTarget.value}))},placeholder:"Type a label"}),(0,l.jsx)(ed,{type:"button",ref:M,onClick:R,children:"Save"}),(0,l.jsx)(ed,{type:"button",ref:M,onClick:V,children:(0,l.jsx)(A,{})})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(eb,{label:"Set active",children:(0,l.jsx)(ed,{type:"button",className:"graphiql-history-item-label",onClick:H,"aria-label":"Set active",children:P})}),(0,l.jsx)(eb,{label:"Edit label",children:(0,l.jsx)(ed,{type:"button",className:"graphiql-history-item-action",onClick:q,"aria-label":"Edit label",children:(0,l.jsx)(X,{"aria-hidden":"true"})})}),(0,l.jsx)(eb,{label:e.item.favorite?"Remove favorite":"Add favorite",children:(0,l.jsx)(ed,{type:"button",className:"graphiql-history-item-action",onClick:W,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?(0,l.jsx)(eo,{"aria-hidden":"true"}):(0,l.jsx)(ea,{"aria-hidden":"true"})})}),(0,l.jsx)(eb,{label:"Delete from history",children:(0,l.jsx)(ed,{type:"button",className:"graphiql-history-item-action",onClick:I,"aria-label":"Delete from history",children:(0,l.jsx)(ec,{"aria-hidden":"true"})})})]}),C[28]=P,C[29]=b,C[30]=I,C[31]=H,C[32]=R,C[33]=W,C[34]=T,C[35]=e.item,C[36]=x):x=C[36],C[37]!==y||C[38]!==x?(v=(0,l.jsx)("li",{className:y,children:x}),C[37]=y,C[38]=x,C[39]=v):v=C[39],v}let eT=createNullableContext("ExecutionContext");function ExecutionContextProvider(e){let t,r,o,a,s,c;let u=(0,n.c)(27),{fetcher:d,getDefaultFieldNames:m,children:h,operationName:p}=e;if(!d)throw TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");u[0]===Symbol.for("react.memo_cache_sentinel")?(t={nonNull:!0,caller:ExecutionContextProvider},u[0]=t):t=u[0];let{externalFragments:f,headerEditor:x,queryEditor:C,responseEditor:E,variableEditor:w,updateActiveTabValues:j}=e3(t),L=ek();u[1]!==m?(r={getDefaultFieldNames:m,caller:ExecutionContextProvider},u[1]=m,u[2]=r):r=u[2];let S=function useAutoCompleteLeafs(e){let t,r,l,i;let o=(0,n.c)(10);o[0]!==e?(t=void 0===e?{}:e,o[0]=e,o[1]=t):t=o[1];let{getDefaultFieldNames:a,caller:s}=t,c=s||useAutoCompleteLeafs;o[2]!==c?(r={nonNull:!0,caller:c},o[2]=c,o[3]=r):r=o[3];let{schema:u}=eA(r),d=s||useAutoCompleteLeafs;o[4]!==d?(l={nonNull:!0,caller:d},o[4]=d,o[5]=l):l=o[5];let{queryEditor:m}=e3(l);return o[6]!==a||o[7]!==m||o[8]!==u?(i=()=>
1{if(!m)return;let e=m.getValue(),{insertions:t,result:r}=(0,g.fillLeafs)(u,e,a);return t&&t.length>0&&m.operation(()=>{let e;let l=m.getCursor(),n=m.indexFromPos(l);m.setValue(r||""),e=0;let i=t.map(t=>{let{index:r,string:l}=t;return e+=l.length,m.markText(m.posFromIndex(r+e),m.posFromIndex(r+e),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(()=>{for(let e of i)e.clear()},7e3);let o=n;for(let{index:e,string:r}of t)e<n&&(o+=r.length);m.setCursor(m.posFromIndex(o))}),r},o[6]=a,o[7]=m,o[8]=u,o[9]=i):i=o[9],i}(r),[N,k]=(0,i.useState)(!1),[M,T]=(0,i.useState)(null),_=(0,i.useRef)(0);u[3]!==M?(o=()=>{null==M||M.unsubscribe(),k(!1),T(null)},u[3]=M,u[4]=o):o=u[4];let P=o;u[5]!==S||u[6]!==f||u[7]!==d||u[8]!==x||u[9]!==L||u[10]!==p||u[11]!==C||u[12]!==E||u[13]!==P||u[14]!==M||u[15]!==j||u[16]!==w?(a=async()=>{let e,t;if(!C||!E)return;if(M){P();return}let setResponse=e=>{E.setValue(e),j({response:e})};_.current=_.current+1;let r=_.current,l=S()||C.getValue(),n=null==w?void 0:w.getValue();try{e=tryParseJsonObject({json:n,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(e){setResponse(e instanceof Error?e.message:`${e}`);return}let i=null==x?void 0:x.getValue();try{t=tryParseJsonObject({json:i,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(e){setResponse(e instanceof Error?e.message:`${e}`);return}if(f){let e=C.documentAST?(0,y.hw)(C.documentAST,f):[];e.length>0&&(l=l+"\n"+e.map(_temp$7).join("\n"))}setResponse(""),k(!0);let o=p??C.operationName??void 0;null==L||L.addToHistory({query:l,variables:n,headers:i,operationName:o});let a=t??void 0,s=C.documentAST??void 0;try{let t={},handleResponse=e=>{if(r!==_.current)return;let l=!!Array.isArray(e)&&e;if(!l&&"object"==typeof e&&null!==e&&"hasNext"in e&&(l=[e]),l){for(let e of l)(function mergeIncrementalResult(e,t){var r,l,n;let i=["data",...t.path??[]];for(let r of[e,t])if(r.pending){let t=eP.get(e);for(let{id:l,path:n}of(void 0===t&&(t=new Map,eP.set(e,t)),r.pending))t.set(l,["data",...n])}let{items:o}=t;if(o){let{id:l}=t;if(l){if(void 0===(i=null==(r=eP.get(e))?void 0:r.get(l)))throw Error("Invalid incremental delivery format.");let t=b()(e,i.join("."));t.push(...o)}else for(let r of(i=["data",...t.path??[]],o))v()(e,i.join("."),r),i[i.length-1]++}let{data:a}=t;if(a){let{id:r}=t;if(r){if(void 0===(i=null==(l=eP.get(e))?void 0:l.get(r)))throw Error("Invalid incremental delivery format.");let{subPath:n}=t;void 0!==n&&(i=[...i,...n])}v()(e,i.join("."),a,{merge:!0})}if(t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&v()(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(let r of t.incremental)mergeIncrementalResult(e,r);if(t.completed)for(let{id:r,errors:l}of t.completed)null==(n=eP.get(e))||n.delete(r),l&&(e.errors||(e.errors=[]),e.errors.push(...l))})(t,e);k(!1),setResponse((0,g.formatResult)(t))}else{let t=(0,g.formatResult)(e);k(!1),setResponse(t)}},n=d({query:l,variables:e,operationName:o},{headers:a,documentAST:s}),i=await Promise.resolve(n);(0,g.isObservable)(i)?T(i.subscribe({next(e){handleResponse(e)},error(e){k(!1),e&&setResponse((0,g.formatError)(e)),T(null)},complete(){k(!1),T(null)}})):(0,g.isAsyncIterable)(i)?(T({unsubscribe:()=>{var e,t;return null==(t=(e=i[Symbol.asyncIterator]()).return)?void 0:t.call(e)}}),await handleAsyncResults(handleResponse,i),k(!1),T(null)):handleResponse(i)}catch(e){k(!1),setResponse((0,g.formatError)(e)),T(null)}},u[5]=S,u[6]=f,u[7]=d,u[8]=x,u[9]=L,u[10]=p,u[11]=C,u[12]=E,u[13]=P,u[14]=M,u[15]=j,u[16]=w,u[17]=a):a=u[17];let R=a,V=!!M,q=p??null;u[18]!==N||u[19]!==V||u[20]!==R||u[21]!==P||u[22]!==q?(s={isFetching:N,isSubscribed:V,operationName:q,run:R,stop:P},u[18]=N,u[19]=V,u[20]=R,u[21]=P,u[22]=q,u[23]=s):s=u[23];let H=s;return u[24]!==h||u[25]!==H?(c=(0,l.jsx)(eT.Provider,{value:H,children:h}),u[24]=h,u[25]=H,u[26]=c):c=u[26],c}function _temp$7(e){return(0,a.S)(e)}async function handleAsyncResults(e,t){for await(let r of t)e(r)}let e_=createContextHook(eT);function tryParseJsonObject({json:e,errorMessageParse:t,errorMessageType:r}){let l;try{l=e&&""!==e.trim()?JSON.parse(e):void 0}catch(e){throw Error(`${t}: ${e instanceof Error?e.message:e}.`)}let n="object"==typeof l&&null!==l&&!Array.isArray(l);if(void 0!==l&&!n)throw Error(r);return l}let eP=new WeakMap,eR="undefined"!=typeof navigator&&navigator.userAgent.includes("Mac"),eV="graphiql",eq="sublime",eH={[eR?"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 importCodeMirror(e,t){let l=await r.e(3126).then(r.t.bind(r,4631,23)).then(e=>"function"==typeof e?e:e.default);return await Promise.all((null==t?void 0:t.useCommonAddons)===!1?e:[Promise.all([r.e(3126),r.e(1707)]).then(r.t.bind(r,71707,23)),Promise.all([r.e(3126),r.e(4328)]).then(r.t.bind(r,4328,23)),Promise.all([r.e(3126),r.e(2801)]).then(r.t.bind(r,82801,23)),Promise.all([r.e(3126),r.e(5688)]).then(r.t.bind(r,35688,23)),Promise.all([r.e(3126),r.e(9700)]).then(r.t.bind(r,89700,23)),Promise.all([r.e(3126),r.e(3256)]).then(r.t.bind(r,3256,23)),Promise.all([r.e(3126),r.e(2095)]).then(r.t.bind(r,32095,23)),Promise.all([r.e(3126),r.e(4568)]).then(r.t.bind(r,14568,23)),Promise.all([r.e(3126),r.e(5292)]).then(r.t.bind(r,5
15292,23)),Promise.all([r.e(3126),r.e(3412)]).then(r.t.bind(r,23412,23)),...e]),l}let printDefault=e=>e?(0,a.S)(e):"";function DefaultValue(e){let t,r,i,o,a,c;let u=(0,n.c)(12),{field:d}=e;if(!("defaultValue"in d)||void 0===d.defaultValue)return null;let m=d.defaultValue,h=d.type;if(u[0]!==d.defaultValue||u[1]!==d.type){o=Symbol.for("react.early_return_sentinel");e:{let e=(0,s.J)(m,h);if(!e){o=null;break e}i=" = ",t="graphiql-doc-explorer-default-value",r=printDefault(e)}u[0]=d.defaultValue,u[1]=d.type,u[2]=t,u[3]=r,u[4]=i,u[5]=o}else t=u[2],r=u[3],i=u[4],o=u[5];return o!==Symbol.for("react.early_return_sentinel")?o:(u[6]!==t||u[7]!==r?(a=(0,l.jsx)("span",{className:t,children:r}),u[6]=t,u[7]=r,u[8]=a):a=u[8],u[9]!==i||u[10]!==a?(c=(0,l.jsxs)(l.Fragment,{children:[i,a]}),u[9]=i,u[10]=a,u[11]=c):c=u[11],c)}let eI=createNullableContext("SchemaContext");function SchemaContextProvider(e){let t,r,o,a,s,h,p,f,y,x,v,C,b,E,w;let j=(0,n.c)(38);if(j[0]!==e?({fetcher:t,onSchemaChange:r,...o}=e,j[0]=e,j[1]=t,j[2]=r,j[3]=o):(t=j[1],r=j[2],o=j[3]),!t)throw TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");j[4]===Symbol.for("react.memo_cache_sentinel")?(a={nonNull:!0,caller:SchemaContextProvider},j[4]=a):a=j[4];let{initialHeaders:L,headerEditor:S}=e3(a),[N,k]=(0,i.useState)(),[M,T]=(0,i.useState)(!1),[_,P]=(0,i.useState)(null),R=(0,i.useRef)(0);j[5]!==o.schema?(s=()=>{k((0,c.nN)(o.schema)||null==o.schema?o.schema:void 0),R.current=R.current+1},h=[o.schema],j[5]=o.schema,j[6]=s,j[7]=h):(s=j[6],h=j[7]),(0,i.useEffect)(s,h);let V=(0,i.useRef)(L);j[8]!==S?(p=()=>{S&&(V.current=S.getValue())},j[8]=S,j[9]=p):p=j[9],(0,i.useEffect)(p),j[10]!==o.inputValueDeprecation||j[11]!==o.introspectionQueryName||j[12]!==o.schemaDescription?(f={inputValueDeprecation:o.inputValueDeprecation,introspectionQueryName:o.introspectionQueryName,schemaDescription:o.schemaDescription},j[10]=o.inputValueDeprecation,j[11]=o.introspectionQueryName,j[12]=o.schemaDescription,j[13]=f):f=j[13];let{introspectionQuery:q,introspectionQueryName:H,introspectionQuerySansSubscriptions:I}=function({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:r}){let l=t||"IntrospectionQuery",n=(0,m.K)({inputValueDeprecation:e,schemaDescription:r});t&&(n=n.replace("query IntrospectionQuery",`query ${l}`));let i=n.replace("subscriptionType { name }","");return{introspectionQueryName:l,introspectionQuery:n,introspectionQuerySansSubscriptions:i}}(f);j[14]!==t||j[15]!==q||j[16]!==H||j[17]!==I||j[18]!==r||j[19]!==o.schema?(y=()=>{if((0,c.nN)(o.schema)||null===o.schema)return;let e=R.current=R.current+1,l=o.schema,fetchIntrospectionData=async function(){if(l)return l;let e=function(e){let t=null,r=!0;try{e&&(t=JSON.parse(e))}catch{r=!1}return{headers:t,isValidJSON:r}}(V.current);if(!e.isValidJSON){P("Introspection failed as headers are invalid.");return}let r=e.headers?{headers:e.headers}:{},n=(0,g.fetcherReturnToPromise)(t({query:q,operationName:H},r));if(!(0,g.isPromise)(n)){P("Fetcher did not return a Promise for introspection.");return}T(!0),P(null);let i=await n;if("object"!=typeof i||null===i||!("data"in i)){let e=(0,g.fetcherReturnToPromise)(t({query:I,operationName:H},r));if(!(0,g.isPromise)(e))throw Error("Fetcher did not return a Promise for introspection.");i=await e}if(T(!1),(null==i?void 0:i.data)&&"__schema"in i.data)return i.data;let o="string"==typeof i?i:(0,g.formatResult)(i);P(o)};fetchIntrospectionData().then(t=>{if(e===R.current&&t)try{let e=(0,u.Z)(t);k(e),r&&r(e)}catch(e){P((0,g.formatError)(e))}}).catch(t=>{e===R.current&&(P((0,g.formatError)(t)),T(!1))})},j[14]=t,j[15]=q,j[16]=H,j[17]=I,j[18]=r,j[19]=o.schema,j[20]=y):y=j[20];let A=y;j[21]!==A?(x=()=>{A()},v=[A],j[21]=A,j[22]=x,j[23]=v):(x=j[22],v=j[23]),(0,i.useEffect)(x,v),j[24]!==A?(C=()=>{let triggerIntrospection=function(e){e.ctrlKey&&"R"===e.key&&A()};return window.addEventListener("keydown",triggerIntrospection),()=>{window.removeEventListener("keydown",triggerIntrospection)}},j[24]=A,j[25]=C):C=j[25],(0,i.useEffect)(C),j[26]!==o.dangerouslyAssumeSchemaIsValid||j[27]!==N?(b=!N||o.dangerouslyAssumeSchemaIsValid?[]:(0,d.F)(N),j[26]=o.dangerouslyAssumeSchemaIsValid,j[27]=N,j[28]=b):b=j[28];let W=b;j[29]!==_||j[30]!==A||j[31]!==M||j[32]!==N||j[33]!==W?(E={fetchError:_,introspect:A,isFetching:M,schema:N,validationErrors:W},j[29]=_,j[30]=A,j[31]=M,j[32]=N,j[33]=W,j[34]=E):E=j[34];let F=E;return j[35]!==o.children||j[36]!==F?(w=(0,l.jsx)(eI.Provider,{value:F,children:o.children}),j[35]=o.children,j[36]=F,j[37]=w):w=j[37],w}let eA=createContextHook(eI),eW={name:"Docs"},eF=createNullableContext("ExplorerContext");function ExplorerContextProvider(e){let t,r,o,a,s,c,u,d,m;let p=(0,n.c)(14);p[0]===Symbol.for("react.memo_cache_sentinel")?(t={nonNull:!0,caller:ExplorerContextProvider},p[0]=t):t=p[0];let{schema:f,validationErrors:g}=eA(t);p[1]===Symbol.for("react.memo_cache_sentinel")?(r=[eW],p[1]=r):r=p[1];let[y,x]=(0,i.useState)(r);p[2]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{x(t=>{let r=t.at(-1);return r.def===e.def?t:[...t,e]})},p[2]=o):o=p[2];let v=o;p[3]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{x(_temp$6)},p[3]=a):a=p[3];let C=a;p[4]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{x(_temp2$3)},p[4]=s):s=p[4];let b=s;p[5]!==f||p[6]!==g?(c=()=>{null==f||g.length>0?b():x(e=>{if(1===e.length)return e;let t=[eW],r=null;for(let l of e)if(l!==eW){if(l.def){if((0,h.Zs)(l.def)){let e=f.getType(l.def.name);if(e)t.push({name:l.name,def:e}),r=e;else break}else{if(null===r)break;
1if((0,h.lp)(r)||(0,h.hL)(r)){let e=r.getFields()[l.name];if(e)t.push({name:l.name,def:e});else break}else{if((0,h.KA)(r)||(0,h.EM)(r)||(0,h.oT)(r)||(0,h.EN)(r))break;{let e=r,n=e.args.find(e=>e.name===l.name);if(n)t.push({name:l.name,def:e});else break}}}}else r=null,t.push(l)}return t})},u=[f,g],p[5]=f,p[6]=g,p[7]=c,p[8]=u):(c=p[7],u=p[8]),(0,i.useEffect)(c,u),p[9]!==y?(d={explorerNavStack:y,push:v,pop:C,reset:b},p[9]=y,p[10]=d):d=p[10];let E=d;return p[11]!==e.children||p[12]!==E?(m=(0,l.jsx)(eF.Provider,{value:E,children:e.children}),p[11]=e.children,p[12]=E,p[13]=m):m=p[13],m}function _temp2$3(e){return 1===e.length?e:[eW]}function _temp$6(e){return e.length>1?e.slice(0,-1):e}let eD=createContextHook(eF);function renderType(e,t){return(0,h.zM)(e)?(0,l.jsxs)(l.Fragment,{children:[renderType(e.ofType,t),"!"]}):(0,h.HG)(e)?(0,l.jsxs)(l.Fragment,{children:["[",renderType(e.ofType,t),"]"]}):t(e)}function TypeLink(e){let t,r,i;let o=(0,n.c)(6);o[0]===Symbol.for("react.memo_cache_sentinel")?(t={nonNull:!0,caller:TypeLink},o[0]=t):t=o[0];let{push:a}=eD(t);return e.type?(o[1]!==a?(r=e=>(0,l.jsx)("a",{className:"graphiql-doc-explorer-type-name",onClick:t=>{t.preventDefault(),a({name:e.name,def:e})},href:"#",children:e.name}),o[1]=a,o[2]=r):r=o[2],o[3]!==e.type||o[4]!==r?(i=renderType(e.type,r),o[3]=e.type,o[4]=r,o[5]=i):i=o[5],i):null}function Argument(e){let t,r,i,o,a,s,c;let u=(0,n.c)(19),{arg:d,showDefaultValue:m,inline:h}=e;u[0]!==d.name?(t=(0,l.jsx)("span",{className:"graphiql-doc-explorer-argument-name",children:d.name}),u[0]=d.name,u[1]=t):t=u[1],u[2]!==d.type?(r=(0,l.jsx)(TypeLink,{type:d.type}),u[2]=d.type,u[3]=r):r=u[3],u[4]!==d||u[5]!==m?(i=!1!==m&&(0,l.jsx)(DefaultValue,{field:d}),u[4]=d,u[5]=m,u[6]=i):i=u[6],u[7]!==t||u[8]!==r||u[9]!==i?(o=(0,l.jsxs)("span",{children:[t,": ",r,i]}),u[7]=t,u[8]=r,u[9]=i,u[10]=o):o=u[10];let p=o;return h?p:(u[11]!==d.description?(a=d.description?(0,l.jsx)(ev,{type:"description",children:d.description}):null,u[11]=d.description,u[12]=a):a=u[12],u[13]!==d.deprecationReason?(s=d.deprecationReason?(0,l.jsxs)("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[(0,l.jsx)("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),(0,l.jsx)(ev,{type:"deprecation",children:d.deprecationReason})]}):null,u[13]=d.deprecationReason,u[14]=s):s=u[14],u[15]!==p||u[16]!==a||u[17]!==s?(c=(0,l.jsxs)("div",{className:"graphiql-doc-explorer-argument",children:[p,a,s]}),u[15]=p,u[16]=a,u[17]=s,u[18]=c):c=u[18],c)}function DeprecationReason(e){let t;let r=(0,n.c)(3);return r[0]!==e.children||r[1]!==e.preview?(t=e.children?(0,l.jsxs)("div",{className:"graphiql-doc-explorer-deprecation",children:[(0,l.jsx)("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),(0,l.jsx)(ev,{type:"deprecation",onlyShowFirstChild:e.preview??!0,children:e.children})]}):null,r[0]=e.children,r[1]=e.preview,r[2]=t):t=r[2],t}function Directive(e){let t;let r=(0,n.c)(2),{directive:i}=e;return r[0]!==i.name.value?(t=(0,l.jsxs)("span",{className:"graphiql-doc-explorer-directive",children:["@",i.name.value]}),r[0]=i.name.value,r[1]=t):t=r[1],t}function ExplorerSection(e){let t,r,i,o;let a=(0,n.c)(10),s=eO[e.title];return a[0]!==s?(t=(0,l.jsx)(s,{}),a[0]=s,a[1]=t):t=a[1],a[2]!==e.title||a[3]!==t?(r=(0,l.jsxs)("div",{className:"graphiql-doc-explorer-section-title",children:[t,e.title]}),a[2]=e.title,a[3]=t,a[4]=r):r=a[4],a[5]!==e.children?(i=(0,l.jsx)("div",{className:"graphiql-doc-explorer-section-content",children:e.children}),a[5]=e.children,a[6]=i):i=a[6],a[7]!==r||a[8]!==i?(o=(0,l.jsxs)("div",{children:[r,i]}),a[7]=r,a[8]=i,a[9]=o):o=a[9],o}let eO={Arguments:V,"Deprecated Arguments":F,"Deprecated Enum Values":D,"Deprecated Fields":O,Directives:$,"Enum Values":Z,Fields:z,Implements:G,Implementations:eu,"Possible Types":eu,"Root Types":en,Type:eu,"All Schema Types":eu};function FieldDocumentation(e){let t,r,i,o,a,s;let c=(0,n.c)(15);return c[0]!==e.field.description?(t=e.field.description?(0,l.jsx)(ev,{type:"description",children:e.field.description}):null,c[0]=e.field.description,c[1]=t):t=c[1],c[2]!==e.field.deprecationReason?(r=(0,l.jsx)(DeprecationReason,{preview:!1,children:e.field.deprecationReason}
1),c[2]=e.field.deprecationReason,c[3]=r):r=c[3],c[4]!==e.field.type?(i=(0,l.jsx)(ExplorerSection,{title:"Type",children:(0,l.jsx)(TypeLink,{type:e.field.type})}),c[4]=e.field.type,c[5]=i):i=c[5],c[6]!==e.field?(o=(0,l.jsx)(Arguments,{field:e.field}),a=(0,l.jsx)(Directives,{field:e.field}),c[6]=e.field,c[7]=o,c[8]=a):(o=c[7],a=c[8]),c[9]!==t||c[10]!==r||c[11]!==i||c[12]!==o||c[13]!==a?(s=(0,l.jsxs)(l.Fragment,{children:[t,r,i,o,a]}),c[9]=t,c[10]=r,c[11]=i,c[12]=o,c[13]=a,c[14]=s):s=c[14],s}function Arguments(e){let t,r,o,a,s,c;let u=(0,n.c)(12),{field:d}=e,[m,h]=(0,i.useState)(!1);u[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{h(!0)},u[0]=t):t=u[0];let p=t;if(!("args"in d))return null;if(u[1]!==d.args){for(let e of(r=[],o=[],d.args))e.deprecationReason?o.push(e):r.push(e);a=r.length>0?(0,l.jsx)(ExplorerSection,{title:"Arguments",children:r.map(_temp$5)}):null,u[1]=d.args,u[2]=r,u[3]=o,u[4]=a}else r=u[2],o=u[3],a=u[4];return u[5]!==r.length||u[6]!==o||u[7]!==m?(s=o.length>0?m||0===r.length?(0,l.jsx)(ExplorerSection,{title:"Deprecated Arguments",children:o.map(_temp2$2)}):(0,l.jsx)(em,{type:"button",onClick:p,children:"Show Deprecated Arguments"}):null,u[5]=r.length,u[6]=o,u[7]=m,u[8]=s):s=u[8],u[9]!==a||u[10]!==s?(c=(0,l.jsxs)(l.Fragment,{children:[a,s]}),u[9]=a,u[10]=s,u[11]=c):c=u[11],c}function _temp2$2(e){return(0,l.jsx)(Argument,{arg:e},e.name)}function _temp$5(e){return(0,l.jsx)(Argument,{arg:e},e.name)}function Directives(e){var t,r,i;let o,a,s;let c=(0,n.c)(6),{field:u}=e;c[0]!==(null==(t=u.astNode)?void 0:t.directives)?(o=(null==(r=u.astNode)?void 0:r.directives)||[],c[0]=null==(i=u.astNode)?void 0:i.directives,c[1]=o):o=c[1];let d=o;return d&&0!==d.length?(c[2]!==d?(a=d.map(_temp3$2),c[2]=d,c[3]=a):a=c[3],c[4]!==a?(s=(0,l.jsx)(ExplorerSection,{title:"Directives",children:a}),c[4]=a,c[5]=s):s=c[5],s):null}function _temp3$2(e){return(0,l.jsx)("div",{children:(0,l.jsx)(Directive,{directive:e})},e.name.value)}function SchemaDocumentation(e){var t,r,i,o;let a,s,c,u,d,m,h,p,f,g;let y=(0,n.c)(39);y[0]!==e.schema?(a=e.schema.getQueryType(),y[0]=e.schema,y[1]=a):a=y[1];let x=a;y[2]!==e.schema?(s=null==(r=(t=e.schema).getMutationType)?void 0:r.call(t),y[2]=e.schema,y[3]=s):s=y[3];let v=s;y[4]!==e.schema?(c=null==(o=(i=e.schema).getSubscriptionType)?void 0:o.call(i),y[4]=e.schema,y[5]=c):c=y[5];let C=c;if(y[6]!==v||y[7]!==e.schema||y[8]!==x||y[9]!==C){let t,r,n,i;let o=e.schema.getTypeMap(),a=null==x?void 0:x.name,s=null==v?void 0:v.name,c=null==C?void 0:C.name;y[15]!==a||y[16]!==s||y[17]!==c?(t=[a,s,c],y[15]=a,y[16]=s,y[17]=c,y[18]=t):t=y[18];let f=t,g=e.schema.description||"A GraphQL schema provides a root type for each kind of operation.";y[19]!==g?(h=(0,l.jsx)(ev,{type:"description",children:g}),y[19]=g,y[20]=h):h=y[20],y[21]!==x?(r=x?(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",(0,l.jsx)(TypeLink,{type:x})]}):null,y[21]=x,y[22]=r):r=y[22],y[23]!==v?(n=v&&(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",(0,l.jsx)(TypeLink,{type:v})]}),y[23]=v,y[24]=n):n=y[24],y[25]!==C?(i=C&&(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",(0,l.jsx)(TypeLink,{type:C})]}),y[25]=C,y[26]=i):i=y[26],y[27]!==r||y[28]!==n||y[29]!==i?(p=(0,l.jsxs)(ExplorerSection,{title:"Root Types",children:[r,n,i]}),y[27]=r,y[28]=n,y[29]=i,y[30]=p):p=y[30],u=ExplorerSection,d="All Schema Types",m=o&&(0,l.jsx)("div",{children:Object.values(o).map(e=>f.includes(e.name)||e.name.startsWith("__")?null:(0,l.jsx)("div",{children:(0,l.jsx)(TypeLink,{type:e})},e.name))}),y[6]=v,y[7]=e.schema,y[8]=x,y[9]=C,y[10]=u,y[11]=d,y[12]=m,y[13]=h,y[14]=p}else u=y[10],d=y[11],m=y[12],h=y[13],p=y[14];return y[31]!==u||y[32]!==d||y[33]!==m?(f=(0,l.jsx)(u,{title:d,children:m}),y[31]=u,y[32]=d,y[33]=m,y[34]=f):f=y[34],y[35]!==h||y[36]!==p||y[37]!==f?(g=(0,l.jsxs)(l.Fragment,{children:[h,p,f]}),y[35]=h,y[36]=p,y[37]=f,y[38]=g):g=y[38],g}function debounce(e,t){let r;return function(...l){r&&window.clearTimeout(r),r=window.setTimeout(()=>{r=null,t(...l)},e)}}function Search(){let{explorerNavStack:e,push:t}=eD({nonNull:!0,caller:Search}),r=(0,i.useRef)(null),o=function useSearchResults(e){let t,r,l,i;let o=(0,n.c)(9),a=e||useSearchResults;o[0]!==a?(t={nonNull:!0,caller:a},o[0]=a,o[1]=t):t=o[1];let{explorerNavStack:s}=eD(t),c=e||useSearchResults;o[2]!==c?(r={nonNull:!0,caller:c},o[2]=c,o[3]=r):r=o[3];let{schema:u}=eA(r);o[4]!==s?(l=s.at(-1),o[4]=s,o[5]=l):l=o[5];let d=l;return o[6]!==d||o[7]!==u?(i=e=>{let t={within:[],types:[],fields:[]};if(!u)return t;let r=d.def,l=u.getTypeMap(),n=Object.keys(l);for(let i of(r&&(n=n.filter(e=>e!==r.name)).unshift(r.name),n)){if(t.within.length+t.types.length+t.fields.length>=100)break;let n=l[i];if(r!==n&&isMatch(i,e)&&t.types.push({type:n}),!(0,h.lp)(n)&&!(0,h.oT)(n)&&!(0,h.hL)(n))continue;let o=n.getFields();for(let l in o){let i;let a=o[l];(isMatch(l,e)||"args"in a&&0!==(i=a.args.filter(t=>isMatch(t.name,e))).length)&&t[r===n?"within":"fields"].push(...i?i.map(e=>({type:n,field:a,argument:e}
1)):[{type:n,field:a}])}}return t},o[6]=d,o[7]=u,o[8]=i):i=o[8],i}(),[a,s]=(0,i.useState)(""),[c,u]=(0,i.useState)(o(a)),d=(0,i.useMemo)(()=>debounce(200,e=>{u(o(e))}),[o]);(0,i.useEffect)(()=>{d(a)},[d,a]),(0,i.useEffect)(()=>{function handleKeyDown(e){var t;e.metaKey&&"k"===e.key&&(null==(t=r.current)||t.focus())}return window.addEventListener("keydown",handleKeyDown),()=>window.removeEventListener("keydown",handleKeyDown)},[]);let m=e.at(-1),p=(0,i.useCallback)(e=>{t("field"in e?{name:e.field.name,def:e.field}:{name:e.type.name,def:e.type})},[t]),f=(0,i.useRef)(!1),g=(0,i.useCallback)(e=>{f.current="focus"===e.type},[]),y=1===e.length||(0,h.lp)(m.def)||(0,h.oT)(m.def)||(0,h.hL)(m.def);return y?(0,l.jsxs)(T.h,{as:"div",className:"graphiql-doc-explorer-search",onChange:p,"data-state":f?void 0:"idle","aria-label":`Search ${m.name}...`,children:[(0,l.jsxs)("div",{className:"graphiql-doc-explorer-search-input",onClick:()=>{var e;null==(e=r.current)||e.focus()},children:[(0,l.jsx)(U,{}),(0,l.jsx)(T.h.Input,{autoComplete:"off",onFocus:g,onBlur:g,onChange:e=>s(e.target.value),placeholder:`${eR?"â":"Ctrl"} K`,ref:r,value:a,"data-cy":"doc-explorer-input"})]}),f.current&&(0,l.jsxs)(T.h.Options,{"data-cy":"doc-explorer-list",children:[c.within.length+c.types.length+c.fields.length===0?(0,l.jsx)("li",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):c.within.map((e,t)=>(0,l.jsx)(T.h.Option,{value:e,"data-cy":"doc-explorer-option",children:(0,l.jsx)(Field$1,{field:e.field,argument:e.argument})},`within-${t}`)),c.within.length>0&&c.types.length+c.fields.length>0?(0,l.jsx)("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,c.types.map((e,t)=>(0,l.jsx)(T.h.Option,{value:e,"data-cy":"doc-explorer-option",children:(0,l.jsx)(Type,{type:e.type})},`type-${t}`)),c.fields.map((e,t)=>(0,l.jsxs)(T.h.Option,{value:e,"data-cy":"doc-explorer-option",children:[(0,l.jsx)(Type,{type:e.type}),".",(0,l.jsx)(Field$1,{field:e.field,argument:e.argument})]},`field-${t}`))]})]}):null}function isMatch(e,t){try{let r=t.replaceAll(/[^_0-9A-Za-z]/g,e=>"\\"+e);return -1!==e.search(RegExp(r,"i"))}catch{return e.toLowerCase().includes(t.toLowerCase())}}function Type(e){let t;let r=(0,n.c)(2);return r[0]!==e.type.name?(t=(0,l.jsx)("span",{className:"graphiql-doc-explorer-search-type",children:e.type.name}),r[0]=e.type.name,r[1]=t):t=r[1],t}function Field$1(e){let t,r,i;let o=(0,n.c)(7),{field:a,argument:s}=e;return o[0]!==a.name?(t=(0,l.jsx)("span",{className:"graphiql-doc-explorer-search-field",children:a.name}),o[0]=a.name,o[1]=t):t=o[1],o[2]!==s?(r=s?(0,l.jsxs)(l.Fragment,{children:["(",(0,l.jsx)("span",{className:"graphiql-doc-explorer-search-argument",children:s.name}),":"," ",renderType(s.type,_temp$4),")"]}):null,o[2]=s,o[3]=r):r=o[3],o[4]!==t||o[5]!==r?(i=(0,l.jsxs)(l.Fragment,{children:[t,r]}),o[4]=t,o[5]=r,o[6]=i):i=o[6],i}function _temp$4(e){return(0,l.jsx)(Type,{type:e})}function FieldLink(e){let t,r,i;let o=(0,n.c)(7);o[0]===Symbol.for("react.memo_cache_sentinel")?(t={nonNull:!0},o[0]=t):t=o[0];let{push:a}=eD(t);return o[1]!==e.field||o[2]!==a?(r=t=>{t.preventDefault(),a({name:e.field.name,def:e.field})},o[1]=e.field,o[2]=a,o[3]=r):r=o[3],o[4]!==e.field.name||o[5]!==r?(i=(0,l.jsx)("a",{className:"graphiql-doc-explorer-field-name",onClick:r,href:"#",children:e.field.name}),o[4]=e.field.name,o[5]=r,o[6]=i):i=o[6],i}function TypeDocumentation(e){let t;let r=(0,n.c)(2);return r[0]!==e.type?(t=(0,h.Zs)(e.type)?(0,l.jsxs)(l.Fragment,{children:[e.type.description?(0,l.jsx)(ev,{type:"description",children:e.type.description}):null,(0,l.jsx)(ImplementsInterfaces,{type:e.type}),(0,l.jsx)(Fields,{type:e.type}),(0,l.jsx)(EnumValues,{type:e.type}),(0,l.jsx)(PossibleTypes,{type:e.type})]}):null,r[0]=e.type,r[1]=t):t=r[1],t}function ImplementsInterfaces(e){let t,r;let i=(0,n.c)(5),{type:o}=e;if(!(0,h.lp)(o))return null;i[0]!==o?(t=o.getInterfaces(),i[0]=o,i[1]=t):t=i[1];let a=t;return i[2]!==a.length||i[3]!==o?(r=a.length>0?(0,l.jsx)(ExplorerSection,{title:"Implements",children:o.getInterfaces().map(_temp$3)}):null,i[2]=a.length,i[3]=o,i[4]=r):r=i[4],r}function _temp$3(e){return(0,l.jsx)("div",{children:(0,l.jsx)(TypeLink,{type:e})},e.name)}function Fields(e){let t,r,o,a,s,c;let u=(0,n.c)(12),{type:d}=e,[m,p]=(0,i.useState)(!1);u[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{p(!0)},u[0]=t):t=u[0];let f=t;if(!(0,h.lp)(d)&&!(0,h.oT)(d)&&!(0,h.hL)(d))return null;if(u[1]!==d){let e=d.getFields();for(let t of(o=[],r=[],Object.keys(e).map(t=>e[t])))t.deprecationReason?r.push(t):o.push(t);a=o.length>0?(0,l.jsx)(ExplorerSection,{title:"Fields",children:o.map(_temp2$1)}):null,u[1]=d,u[2]=r,u[3]=o,u[4]=a}else r=u[2],o=u[3],a=u[4];return u[5]!==r||u[6]!==o.length||u[7]!==m?(s=r.length>0?m||0===o.length?(0,l.jsx)(ExplorerSection,{title:"Deprecated Fields",children:r.map(_temp3$1)}):(0,l.jsx)(em,{type:"button",onClick:f,children:"Show Deprecated Fields"}):null,u[5]=r,u[6]=o.length,u[7]=m,u[8]=s):s=u[8],u[9]!==a||u[10]!==s?(c=(0,l.jsxs)(l.Fragment,{children:[a,s]}),u[9]=a,u[10]=s,u[11]=c):c=u[11],c}function _temp3$1(e){return(0,l.jsx)(Field,{field:e},e.name)}function _temp2$1(e){return(0,l.jsx)(Field,{field:e},e.name)}function Field(e){let t,r,i,o,a,s,c,u,d;let m=(0,n.c)(22),{field:h}=e;if(m[0]!==h){let e="args"in h?h.args.filter(_temp4$1):[];i="graphiql-doc-explorer-item",t=(0,l.jsx)(FieldLink,{field:h}),r=e.length>0?(0,l.jsxs)(l.Fragment,{children:["(",(0,l.jsx)("span",{children:e.map(t=>1===e.length?(0,l.jsx)(Argument,{arg:t,inline:!0},t.name):(0,l.jsx)("div",{className:"graphiql-doc-explorer-argument-multiple",children:(0,l.jsx)(Argument,{arg:t,inline:!0})},t.name))}),")"]}):null,m[0]=h,m[1]=t,m[2]=r,m[3]=i}else t=m[1],r=m[2],i=m[3];return m[4]!==h.type?(o=(0,l.jsx)(TypeLink,{type:h.type}),m[4]=h.type,m[5]=o):o=m[5],m[6]!==h?(a=(0,l.jsx)(DefaultValue,{field:h}),m[6]=h,m[7]=a):a=m[7],m[8]!==t||m[9]!==r||m[10]!==o||m[11]!==a?(s=(0,l.jsxs)("div",{children:[t,r,": ",o,a]}),m[8]=t,m[9]=r,m[10]=o,m[11]=a,m[12]=s):s=m[12],m[13]!==h.description?(c=h.description?(0,l.jsx)(ev,{type:"description",onlyShowFirstChild:!0,children:h.description}):null,m[13]=h.description,m[14]=c):c=m[14],m[15]!==h.deprecationReason?(u=(0,l.jsx)(DeprecationReason,{children:h.deprecationReason}),m[15]=h.deprecationReason,m[16]=u):u=m[16],m[17]!==i||m[18]!==s||m[19]!==c||m[20]!==u?(d=(0,l.jsxs)("div",{className:i,children:[s,c,u]}),m[17]=i,m[18]=s,m[19]=c,m[20]=u,m[21]=d):d=m[21],d}function _temp4$1(e){return!e.deprecationReason}function EnumValues(e){let t,r,o,a,s,c;let u=(0,n.c)(12),{type:d}=e,[m,p]=(0,i.useState)(!1);u[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{p(!0)},u[0]=t):t=u[0];let f=t;if(!(0,h.EM)(d))return null;if(u[1]!==d){for(let e of(a=[],r=[],d.getValues()))e.deprecationReason?r.push(e):a.push(e);o=a.length>0?(0,l.jsx)(ExplorerSection,{title:"Enum Values",children:a.map(_temp5)}):null,u[1]=d,u[2]=r,u[3]=o,u[4]=a}else r=u[2],o=u[3],a=u[4];return u[5]!==r||u[6]!==m||u[7]!==a.length?(s=r.length>0?m||0===a.length?(0,l.jsx)(ExplorerSection,{title:"Deprecated Enum Values",children:r.map(_temp6)}):(0,l.jsx)(em,{type:"button",onClick:f,children:"Show Deprecated Values"}):null,u[5]=r,u[6]=m,u[7]=a.length,u[8]=s):s=u[8],u[9]!==o||u[10]!==s?(c=(0,l.jsxs)(l.Fragment,{children:[o,s]}),u[9]=o,u[10]=s,u[11]=c):c=u[11],c}function _temp6(e){return(0,l.jsx)(EnumValue,{value:e},e.name)}function _temp5(e){return(0,l.jsx)(EnumValue,{value:e},e.name)}function EnumValue(e){let t,r,i,o;let a=(0,n.c)(10),{value:s}=e;return a[0]!==s.name?(t=(0,l.jsx)("div",{className:"graphiql-doc-explorer-enum-value",children:s.name}),a[0]=s.name,a[1]=t):t=a[1],a[2]!==s.description?(r=s.description?(0,l.jsx)(ev,{type:"description",children:s.description}):null,a[2]=s.description,a[3]=r):r=a[3],a[4]!==s.deprecationReason?(i=s.deprecationReason?(0,l.jsx)(ev,{type:"deprecation",children:s.deprecationReason}):null,a[4]=s.deprecationReason,a[5]=i):i=a[5],a[6]!==t||a[7]!==r||a[8]!==i?(o=(0,l.jsxs)("div",{className:"graphiql-doc-explorer-item",children:[t,r,i]}),a[6]=t,a[7]=r,a[8]=i,a[9]=o):o=a[9],o}function PossibleTypes(e){let t,r,i;let o=(0,n.c)(7),{type:a}=e;o[0]===Symbol.for("react.memo_cache_sentinel")?(t={nonNull:!0},o[0]=t):t=o[0];let{schema:s}=eA(t);if(!s||!(0,h.m0)(a))return null;
1let c=(0,h.oT)(a)?"Implementations":"Possible Types";return o[1]!==s||o[2]!==a?(r=s.getPossibleTypes(a).map(_temp7),o[1]=s,o[2]=a,o[3]=r):r=o[3],o[4]!==c||o[5]!==r?(i=(0,l.jsx)(ExplorerSection,{title:c,children:r}),o[4]=c,o[5]=r,o[6]=i):i=o[6],i}function _temp7(e){return(0,l.jsx)("div",{children:(0,l.jsx)(TypeLink,{type:e})},e.name)}let e$={title:"Documentation Explorer",icon:function(){let e=eZ();return(null==e?void 0:e.visiblePlugin)===e$?(0,l.jsx)(B,{}):(0,l.jsx)(Q,{})},content:function DocExplorer(){let e,t,r,i,o,a,s,c,u,d,m,p;let f=(0,n.c)(40);f[0]===Symbol.for("react.memo_cache_sentinel")?(e={nonNull:!0,caller:DocExplorer},f[0]=e):e=f[0];let{fetchError:g,isFetching:y,schema:x,validationErrors:v}=eA(e);f[1]===Symbol.for("react.memo_cache_sentinel")?(t={nonNull:!0,caller:DocExplorer},f[1]=t):t=f[1];let{explorerNavStack:C,pop:b}=eD(t);if(f[2]!==C||f[3]!==g||f[4]!==y||f[5]!==x||f[6]!==v){if(i=C.at(-1),r=null,g){let e;f[9]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}),f[9]=e):e=f[9],r=e}else if(v.length>0){let e;let t=v[0];f[10]!==t.message?(e=(0,l.jsxs)("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",t.message]}),f[10]=t.message,f[11]=e):e=f[11],r=e}else if(y){let e;f[12]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)(eC,{}),f[12]=e):e=f[12],r=e}else if(x){if(1===C.length){let e;f[14]!==x?(e=(0,l.jsx)(SchemaDocumentation,{schema:x}),f[14]=x,f[15]=e):e=f[15],r=e}else if((0,h.P9)(i.def)){let e;f[16]!==i.def?(e=(0,l.jsx)(TypeDocumentation,{type:i.def}),f[16]=i.def,f[17]=e):e=f[17],r=e}else if(i.def){let e;f[18]!==i.def?(e=(0,l.jsx)(FieldDocumentation,{field:i.def}),f[18]=i.def,f[19]=e):e=f[19],r=e}}else{let e;f[13]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),f[13]=e):e=f[13],r=e}f[2]=C,f[3]=g,f[4]=y,f[5]=x,f[6]=v,f[7]=r,f[8]=i}else r=f[7],i=f[8];if(C.length>1){let e;f[20]!==C?(e=C.at(-2),f[20]=C,f[21]=e):e=f[21],o=e.name}return f[22]!==b||f[23]!==o?(a=o&&(0,l.jsxs)("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:e=>{e.preventDefault(),b()},"aria-label":`Go back to ${o}`,children:[(0,l.jsx)(H,{}),o]}),f[22]=b,f[23]=o,f[24]=a):a=f[24],f[25]!==i.name?(s=(0,l.jsx)("div",{className:"graphiql-doc-explorer-title",children:i.name}),f[25]=i.name,f[26]=s):s=f[26],f[27]!==a||f[28]!==s?(c=(0,l.jsxs)("div",{className:"graphiql-doc-explorer-header-content",children:[a,s]}),f[27]=a,f[28]=s,f[29]=c):c=f[29],f[30]!==i.name?(u=(0,l.jsx)(Search,{},i.name),f[30]=i.name,f[31]=u):u=f[31],f[32]!==c||f[33]!==u?(d=(0,l.jsxs)("div",{className:"graphiql-doc-explorer-header",children:[c,u]}),f[32]=c,f[33]=u,f[34]=d):d=f[34],f[35]!==r?(m=(0,l.jsx)("div",{className:"graphiql-doc-explorer-content",children:r}),f[35]=r,f[36]=m):m=f[36],f[37]!==d||f[38]!==m?(p=(0,l.jsxs)("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[d,m]}),f[37]=d,f[38]=m,f[39]=p):p=f[39],p}},eB={title:"History",icon:K,content:function(){let{items:e,deleteFromHistory:t}=ek({nonNull:!0}),r=e.slice().map((e,t)=>({...e,index:t})).reverse(),n=r.filter(e=>e.favorite);n.length&&(r=r.filter(e=>!e.favorite));let[o,a]=(0,i.useState)(null);return(0,i.useEffect)(()=>{o&&setTimeout(()=>{a(null)},2e3)},[o]),(0,l.jsxs)("section",{"aria-label":"History",className:"graphiql-history",children:[(0,l.jsxs)("div",{className:"graphiql-history-header",children:["History",(o||r.length>0)&&(0,l.jsx)(em,{type:"button",state:o||void 0,disabled:!r.length,onClick:()=>{try{for(let e of r)t(e,!0);a("success")}catch{a("error")}},children:{success:"Cleared",error:"Failed to Clear"}[o]||"Clear"})]}),!!n.length&&(0,l.jsx)("ul",{className:"graphiql-history-items",children:n.map(e=>(0,l.jsx)(HistoryItem,{item:e},e.index))}),!!n.length&&!!r.length&&(0,l.jsx)("div",{className:"graphiql-history-item-spacer"}),!!r.length&&(0,l.jsx)("ul",{className:"graphiql-history-items",children:r.map(e=>(0,l.jsx)(HistoryItem,{item:e},e.index))})]})}},eQ=createNullableContext("PluginContext");function PluginContextProvider(e){let t,r,o,a,s,c,u,d;let m=(0,n.c)(27),h=R(),p=eD(),f=ek(),g=!!p,y=!!f;if(m[0]!==g||m[1]!==y||m[2]!==e.plugins){let t;r=[];let l={};for(let n of(g&&(r.push(e$),l[e$.title]=!0),y&&(r.push(eB),l[eB.title]=!0),m[4]!==e.plugins?(t=e.plugins||[],m[4]=e.plugins,m[5]=t):t=m[5],t)){if("string"!=typeof n.title||!n.title)throw Error("All GraphiQL plugins must have a unique title");if(l[n.title])throw Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${n.title}'`);r.push(n),l[n.title]=!0}m[0]=g,m[1]=y,m[2]=e.plugins,m[3]=r}else r=m[3];t=r,m[6]!==t||m[7]!==e.visiblePlugin||m[8]!==h?(o=()=>{let r=null==h?void 0:h.get(ez),l=t.find(e=>e.title===r);return l||(r&&(null==h||h.set(ez,"")),e.visiblePlugin&&t.find(t=>("string"==typeof e.visiblePlugin?t.title:t)===e.visiblePlugin)||null)},m[6]=t,m[7]=e.visiblePlugin,m[8]=h,m[9]=o):o=m[9];let[x,v]=(0,i.useState)(o),{onTogglePluginVisibility:C,children:b}=e;m[10]!==C||m[11]!==t?(a=e=>{let r=e&&t.find(t=>("string"==typeof e?t.title:t)===e)||null;v(e=>r===e?e:(null==C||C(r),r))}
1,m[10]=C,m[11]=t,m[12]=a):a=m[12];let E=a;m[13]!==e.visiblePlugin||m[14]!==E?(s=()=>{e.visiblePlugin&&E(e.visiblePlugin)},m[13]=e.visiblePlugin,m[14]=E,m[15]=s):s=m[15],m[16]!==t||m[17]!==e.visiblePlugin||m[18]!==E?(c=[t,e.visiblePlugin,E],m[16]=t,m[17]=e.visiblePlugin,m[18]=E,m[19]=c):c=m[19],(0,i.useEffect)(s,c),m[20]!==t||m[21]!==E||m[22]!==x?(u={plugins:t,setVisiblePlugin:E,visiblePlugin:x},m[20]=t,m[21]=E,m[22]=x,m[23]=u):u=m[23];let w=u;return m[24]!==b||m[25]!==w?(d=(0,l.jsx)(eQ.Provider,{value:w,children:b}),m[24]=b,m[25]=w,m[26]=d):d=m[26],d}let eZ=createContextHook(eQ),ez="visiblePlugin";function useSynchronizeValue(e,t){let r,l;let o=(0,n.c)(4);o[0]!==e||o[1]!==t?(r=()=>{e&&"string"==typeof t&&t!==e.getValue()&&e.setValue(t)},l=[e,t],o[0]=e,o[1]=t,o[2]=r,o[3]=l):(r=o[2],l=o[3]),(0,i.useEffect)(r,l)}function useSynchronizeOption(e,t,r){let l,o;let a=(0,n.c)(5);a[0]!==e||a[1]!==t||a[2]!==r?(l=()=>{e&&e.setOption(t,r)},o=[e,t,r],a[0]=e,a[1]=t,a[2]=r,a[3]=l,a[4]=o):(l=a[3],o=a[4]),(0,i.useEffect)(l,o)}function useChangeHandler(e,t,r,l,o){let a,s,c;let u=(0,n.c)(10);u[0]!==o?(a={nonNull:!0,caller:o},u[0]=o,u[1]=a):a=u[1];let{updateActiveTabValues:d}=e3(a),m=R();u[2]!==t||u[3]!==e||u[4]!==m||u[5]!==r||u[6]!==l||u[7]!==d?(s=()=>{if(!e)return;let n=debounce(500,e=>{m&&null!==r&&m.set(r,e)}),i=debounce(100,e=>{d({[l]:e})}),handleChange=(e,r)=>{if(!r)return;let l=e.getValue();n(l),i(l),null==t||t(l)};return e.on("change",handleChange),()=>e.off("change",handleChange)},c=[t,e,m,r,l,d],u[2]=t,u[3]=e,u[4]=m,u[5]=r,u[6]=l,u[7]=d,u[8]=s,u[9]=c):(s=u[8],c=u[9]),(0,i.useEffect)(s,c)}function useCompletion(e,t,r){let l,o,a;let s=(0,n.c)(9);s[0]!==r?(l={nonNull:!0,caller:r},s[0]=r,s[1]=l):l=s[1];let{schema:c}=eA(l),u=eD(),d=eZ();s[2]!==t||s[3]!==e||s[4]!==u||s[5]!==d||s[6]!==c?(o=()=>{if(!e)return;let handleCompletion=(e,r)=>{!function(e,t,r,l,n,i){importCodeMirror([],{useCommonAddons:!1}).then(e=>{let r,l,n,i,o,a,s,c,u;e.on(t,"select",(e,t)=>{if(!r){let e;let d=t.parentNode;(r=document.createElement("div")).className="CodeMirror-hint-information",d.append(r);let m=document.createElement("header");m.className="CodeMirror-hint-information-header",r.append(m),(l=document.createElement("span")).className="CodeMirror-hint-information-field-name",m.append(l),(n=document.createElement("span")).className="CodeMirror-hint-information-type-name-pill",m.append(n),i=document.createElement("span"),n.append(i),(o=document.createElement("a")).className="CodeMirror-hint-information-type-name",o.href="javascript:void 0",o.addEventListener("click",onClickHintInformation),n.append(o),a=document.createElement("span"),n.append(a),(s=document.createElement("div")).className="CodeMirror-hint-information-description",r.append(s),(c=document.createElement("div")).className="CodeMirror-hint-information-deprecation",r.append(c);let h=document.createElement("span");h.className="CodeMirror-hint-information-deprecation-label",h.textContent="Deprecated",c.append(h),(u=document.createElement("div")).className="CodeMirror-hint-information-deprecation-reason",c.append(u);let p=parseInt(window.getComputedStyle(r).paddingBottom.replace(/px$/,""),10)||0,f=parseInt(window.getComputedStyle(r).maxHeight.replace(/px$/,""),10)||0,handleScroll=()=>{r&&(r.style.paddingTop=d.scrollTop+p+"px",r.style.maxHeight=d.scrollTop+f+"px")};d.addEventListener("scroll",handleScroll),d.addEventListener("DOMNodeRemoved",e=t=>{t.target===d&&(d.removeEventListener("scroll",handleScroll),d.removeEventListener("DOMNodeRemoved",e),r&&r.removeEventListener("click",onClickHintInformation),r=null,l=null,n=null,i=null,o=null,a=null,s=null,c=null,u=null,e=null)})}if(l&&(l.textContent=e.text),n&&i&&o&&a){if(e.type){n.style.display="inline";let renderType2=e=>{(0,h.zM)(e)?(a.textContent="!"+a.textContent,renderType2(e.ofType)):(0,h.HG)(e)?(i.textContent+="[",a.textContent="]"+a.textContent,renderType2(e.ofType)):o.textContent=e.name};i.textContent="",a.textContent="",renderType2(e.type)}else i.textContent="",o.textContent="",a.textContent="",n.style.display="none"}s&&(e.description?(s.style.display="block",s.innerHTML=ex.render(e.description)):(s.style.display="none",s.innerHTML="")),c&&u&&(e.deprecationReason?(c.style.display="block",u.innerHTML=ex.render(e.deprecationReason)):(c.style.display="none",u.innerHTML=""))})});function onClickHintInformation(e){if(!r||!l||!n||!(e.currentTarget instanceof HTMLElement))return;let t=e.currentTarget.textContent||"",o=r.getType(t);o&&(n.setVisiblePlugin(e$),l.push({name:o.name,def:o}),null==i||i(o))}}(0,r,c,u,d,e=>{null==t||t({kind:"Type",type:e,schema:c||void 0})})};return e.on("hasCompletion",handleCompletion),()=>e.off("hasCompletion",handleCompletion)},a=[t,e,u,d,c],s[2]=t,s[3]=e,s[4]=u,s[5]=d,s[6]=c,s[7]=o,s[8]=a):(o=s[7],a=s[8]),(0,i.useEffect)(o,a)}function useKeyMap(e,t,r){let l,o;let a=(0,n.c)(5);a[0]!==r||a[1]!==e||a[2]!==t?(l=()=>{if(e){for(let r of t)e.removeKeyMap(r);if(r){let l={};for(let e of t)l[e]=()=>r();e.addKeyMap(l)}}},o=[e,t,r],a[0]=r,a[1]=e,a[2]=t,a[3]=l,a[4]=o):(l=a[3],o=a[4]),(0,i.useEffect)(l,o)}function useCopyQuery(e){let t,r,l;let i=(0,n.c)(7);i[0]!==e?(t=void 0===e?{}:e,i[0]=e,i[1]=t):t=i[1];let{caller:o,onCopyQuery:a}=t,s=o||useCopyQuery;i[2]!==s?(r={nonNull:!0,caller:s},i[2]=s,i[3]=r):r=i[3];let{queryEditor:c}=e3(r);return i[4]!==a||i[5]!==c?(l=()=>{if(!c)return;let e=c.getValue();w()(e),null==a||a(e)},i[4]=a,i[5]=c,i[6]=l):l=i[6],l}function useMergeQuery(e){let t,r,l,i;let o=(0,n.c)(8);o[0]!==e?(t=void 0===e?{}:e,o[0]=e,o[1]=t):t=o[1];let{caller:s}=t,c=s||useMergeQuery;o[2]!==c?(r={nonNull:!0,caller:c},o[2]=c,o[3]=r):r=o[3];let{queryEditor:u}=e3(r);o[4]===Symbol.for("react.memo_cache_sentinel")?(l={nonNull:!0,caller:useMergeQuery},o[4]=l):l=o[4];let{schema:d}=eA(l);return o[5]!==u||o[6]!==d?(i=()=>{let e=null==u?void 0:u.documentAST,t=null==u?void 0:u.getValue();e&&t&&u.setValue((0,a.S)((0,g.mergeAst)(e,d)))},o[5]=u,o[6]=d,o[7]=i):i=o[7],i}function usePrettifyEditors(e){let t,r,l;let i=(0,n.c)(8);i[0]!==e?(t=void 0===e?{}:e,i[0]=e,i[1]=t):t=i[1];let{caller:o}=t,s=o||usePrettifyEditors;i[2]!==s?(r={nonNull:!0,caller:s},i[2]=s,i[3]=r):r=i[3];let{queryEditor:c,headerEditor:u,variableEditor:d}=e3(r);return i[4]!==u||i[5]!==c||i[6]!==d?(l=()=>{if(d){let e=d.getValue();try{let t=JSON.stringify(JSON.parse(e),null,2);t!==e&&d.setValue(t)}catch{}}if(u){let e=u.getValue();try{let t=JSON.stringify(JSON.parse(e),null,2);t!==e&&u.setValue(t)}catch{}}if(c){let e=c.getValue(),t=(0,a.S)((0,p.Qc)(e));t!==e&&c.setValue(t)}},i[4]=u,i[5]=c,i[6]=d,i[7]=l):l=i[7],l}
1function _temp$2(e,t){let{code:r,key:l,shiftKey:n}=t,i=r.startsWith("Key"),o=!n&&r.startsWith("Digit");(i||o||"_"===l||'"'===l)&&e.execCommand("autocomplete")}let eK="headers",eG=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029","â¯","\xa0"]),eJ=RegExp("["+eG.join("")+"]","g");function normalizeWhitespace(e){return e.replace(eJ," ")}function _temp4(e,t){var r;if("paste"===t.origin){let e=t.text.map(normalizeWhitespace);null==(r=t.update)||r.call(t,t.from,t.to,e)}}function _temp3(e,t){eU.test(t.key)&&e.execCommand("autocomplete")}function _temp2(e){return ex.render(e)}function _temp$1(){}let eU=/^[a-zA-Z0-9_@(]$/,eY="query";function isTabState(e){return e&&"object"==typeof e&&!Array.isArray(e)&&hasStringKey(e,"id")&&hasStringKey(e,"title")&&hasStringOrNullKey(e,"query")&&hasStringOrNullKey(e,"variables")&&hasStringOrNullKey(e,"headers")&&hasStringOrNullKey(e,"operationName")&&hasStringOrNullKey(e,"response")}function hasStringKey(e,t){return t in e&&"string"==typeof e[t]}function hasStringOrNullKey(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function serializeTabState(e,t=!1){return JSON.stringify(e,(e,r)=>"hash"!==e&&"response"!==e&&(t||"headers"!==e)?r:null)}function createTab({query:e=null,variables:t=null,headers:r=null}={}){return{id:guid(),hash:hashFromTabContents({query:e,variables:t,headers:r}),title:e&&fuzzyExtractOperationName(e)||eX,query:e,variables:t,headers:r,operationName:null,response:null}}function setPropertiesInActiveTab(e,t){return{...e,tabs:e.tabs.map((r,l)=>{if(l!==e.activeTabIndex)return r;let n={...r,...t};return{...n,hash:hashFromTabContents(n),title:n.operationName||(n.query?fuzzyExtractOperationName(n.query):void 0)||eX}})}}function guid(){let s4=()=>Math.floor((1+Math.random())*65536).toString(16).slice(1);return`${s4()}${s4()}-${s4()}-${s4()}-${s4()}-${s4()}${s4()}${s4()}`}function hashFromTabContents(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}function fuzzyExtractOperationName(e){let t=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return(null==t?void 0:t[2])??null}let eX="<untitled>",e1="tabState";function _temp(e,t){let{code:r,key:l,shiftKey:n}=t,i=r.startsWith("Key"),o=!n&&r.startsWith("Digit");(i||o||"_"===l||'"'===l)&&e.execCommand("autocomplete")}let e0="variables",e2=createNullableContext("EditorContext");function EditorContextProvider(e){let t,r,o,a,s,c,u,d,m,h,g,y,x,v,C,b,E,w,j;let L=(0,n.c)(89),S=R(),[N,k]=(0,i.useState)(null),[M,T]=(0,i.useState)(null),[_,P]=(0,i.useState)(null),[V,q]=(0,i.useState)(null);L[0]!==e.shouldPersistHeaders||L[1]!==S?(t=()=>{let t=(null==S?void 0:S.get(e5))!==null;return!1!==e.shouldPersistHeaders&&t?(null==S?void 0:S.get(e5))==="true":!!e.shouldPersistHeaders},L[0]=e.shouldPersistHeaders,L[1]=S,L[2]=t):t=L[2];let[H,I]=(0,i.useState)(t);useSynchronizeValue(N,e.headers),useSynchronizeValue(M,e.query),useSynchronizeValue(_,e.response),useSynchronizeValue(V,e.variables),L[3]!==H||L[4]!==S?(r={storage:S,shouldPersistHeaders:H},L[3]=H,L[4]=S,L[5]=r):r=L[5];let A=function({storage:e,shouldPersistHeaders:t}){let r=(0,i.useMemo)(()=>debounce(500,t=>{null==e||e.set(e1,t)}),[e]);return(0,i.useCallback)(e=>{r(serializeTabState(e,t))},[t,r])}(r);L[6]!==e.defaultHeaders||L[7]!==e.defaultQuery||L[8]!==e.defaultTabs||L[9]!==e.headers||L[10]!==e.query||L[11]!==e.response||L[12]!==e.variables||L[13]!==H||L[14]!==S||L[15]!==A?(o=()=>{let t=e.query??(null==S?void 0:S.get(eY))??null,r=e.variables??(null==S?void 0:S.get(e0))??null,l=e.headers??(null==S?void 0:S.get(eK))??null,n=e.response??"",i=function({defaultQuery:e,defaultHeaders:t,headers:r,defaultTabs:l,query:n,variables:i,storage:o,shouldPersistHeaders:a}){let s=null==o?void 0:o.get(e1);try{var c;if(!s)throw Error("Storage for tabs is empty");let e=JSON.parse(s),t=a?r:void 0;if(e&&"object"==typeof e&&!Array.isArray(e)&&(c="activeTabIndex")in e&&"number"==typeof e[c]&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(isTabState)){let l=hashFromTabContents({query:n,variables:i,headers:t}),o=-1;for(let t=0;t<e.tabs.length;t++){let r=e.tabs[t];r.hash=hashFromTabContents({query:r.query,variables:r.variables,headers:r.headers}),r.hash===l&&(o=t)}if(o>=0)e.activeTabIndex=o;else{let t=n?fuzzyExtractOperationName(n):null;e.tabs.push({id:guid(),hash:l,title:t||eX,query:n,variables:i,headers:r,operationName:t,response:null}),e.activeTabIndex=e.tabs.length-1}return e}
1throw Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:(l||[{query:n??e,variables:i,headers:r??t}]).map(createTab)}}}({query:t,variables:r,headers:l,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||e4,defaultHeaders:e.defaultHeaders,storage:S,shouldPersistHeaders:H});return A(i),{query:t??(0===i.activeTabIndex?i.tabs[0].query:null)??"",variables:r??"",headers:l??e.defaultHeaders??"",response:n,tabState:i}},L[6]=e.defaultHeaders,L[7]=e.defaultQuery,L[8]=e.defaultTabs,L[9]=e.headers,L[10]=e.query,L[11]=e.response,L[12]=e.variables,L[13]=H,L[14]=S,L[15]=A,L[16]=o):o=L[16];let[W]=(0,i.useState)(o),[F,D]=(0,i.useState)(W.tabState);L[17]!==N||L[18]!==S||L[19]!==F?(a=e=>{if(e){null==S||S.set(eK,(null==N?void 0:N.getValue())??"");let e=serializeTabState(F,!0);null==S||S.set(e1,e)}else null==S||S.set(eK,""),function(e){let t=null==e?void 0:e.get(e1);if(t){let r=JSON.parse(t);null==e||e.set(e1,JSON.stringify(r,(e,t)=>"headers"===e?null:t))}}(S);I(e),null==S||S.set(e5,e.toString())},L[17]=N,L[18]=S,L[19]=F,L[20]=a):a=L[20];let O=a,$=(0,i.useRef)();L[21]!==e.shouldPersistHeaders||L[22]!==O?(s=()=>{let t=!!e.shouldPersistHeaders;(null==$?void 0:$.current)!==t&&(O(t),$.current=t)},c=[e.shouldPersistHeaders,O],L[21]=e.shouldPersistHeaders,L[22]=O,L[23]=s,L[24]=c):(s=L[23],c=L[24]),(0,i.useEffect)(s,c),L[25]!==N||L[26]!==M||L[27]!==_||L[28]!==V?(u={queryEditor:M,variableEditor:V,headerEditor:N,responseEditor:_},L[25]=N,L[26]=M,L[27]=_,L[28]=V,L[29]=u):u=L[29];let B=function({queryEditor:e,variableEditor:t,headerEditor:r,responseEditor:l}){return(0,i.useCallback)(n=>{let i=(null==e?void 0:e.getValue())??null,o=(null==t?void 0:t.getValue())??null,a=(null==r?void 0:r.getValue())??null,s=(null==e?void 0:e.operationName)??null,c=(null==l?void 0:l.getValue())??null;return setPropertiesInActiveTab(n,{query:i,variables:o,headers:a,response:c,operationName:s})},[e,t,r,l])}(u),{onTabChange:Q,defaultHeaders:Z,defaultQuery:z,children:K}=e;L[30]!==Z||L[31]!==N||L[32]!==M||L[33]!==_||L[34]!==V?(d={queryEditor:M,variableEditor:V,headerEditor:N,responseEditor:_,defaultHeaders:Z},L[30]=Z,L[31]=N,L[32]=M,L[33]=_,L[34]=V,L[35]=d):d=L[35];let G=function({queryEditor:e,variableEditor:t,headerEditor:r,responseEditor:l,defaultHeaders:n}){return(0,i.useCallback)(({query:i,variables:o,headers:a,response:s})=>{null==e||e.setValue(i??""),null==t||t.setValue(o??""),null==r||r.setValue(a??n??""),null==l||l.setValue(s??"")},[r,e,l,t,n])}(d);L[36]!==Z||L[37]!==z||L[38]!==Q||L[39]!==G||L[40]!==A||L[41]!==B?(m=()=>{D(e=>{let t=B(e),r={tabs:[...t.tabs,createTab({headers:Z,query:z??e4})],activeTabIndex:t.tabs.length};return A(r),G(r.tabs[r.activeTabIndex]),null==Q||Q(r),r})},L[36]=Z,L[37]=z,L[38]=Q,L[39]=G,L[40]=A,L[41]=B,L[42]=m):m=L[42];let J=m;L[43]!==Q||L[44]!==G||L[45]!==A?(h=e=>{D(t=>{let r={...t,activeTabIndex:e};return A(r),G(r.tabs[r.activeTabIndex]),null==Q||Q(r),r})},L[43]=Q,L[44]=G,L[45]=A,L[46]=h):h=L[46];let U=h;L[47]!==Q||L[48]!==G||L[49]!==A?(g=e=>{D(t=>{let r=t.tabs[t.activeTabIndex],l={tabs:e,activeTabIndex:e.indexOf(r)};return A(l),G(l.tabs[l.activeTabIndex]),null==Q||Q(l),l})},L[47]=Q,L[48]=G,L[49]=A,L[50]=g):g=L[50];let Y=g;L[51]!==Q||L[52]!==G||L[53]!==A?(y=e=>{D(t=>{let r={tabs:t.tabs.filter((t,r)=>e!==r),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return A(r),G(r.tabs[r.activeTabIndex]),null==Q||Q(r),r})},L[51]=Q,L[52]=G,L[53]=A,L[54]=y):y=L[54];let X=y;L[55]!==Q||L[56]!==A?(x=e=>{D(t=>{let r=setPropertiesInActiveTab(t,e);return A(r),null==Q||Q(r),r})},L[55]=Q,L[56]=A,L[57]=x):x=L[57];let ee=x,{onEditOperationName:et}=e;L[58]!==et||L[59]!==M||L[60]!==ee?(v=e=>{if(M)M.operationName=e,ee({operationName:e}),null==et||et(e)},L[58]=et,L[59]=M,L[60]=ee,L[61]=v):v=L[61];let er=v;if(L[62]!==e.externalFragments){if(b=new Map,Array.isArray(e.externalFragments))for(let t of e.externalFragments)b.set(t.name.value,t);else if("string"==typeof e.externalFragments)(0,f.Vn)((0,p.Qc)(e.externalFragments,{}),{FragmentDefinition(e){b.set(e.name.value,e)}});else if(e.externalFragments)throw Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");L[62]=e.externalFragments,L[63]=b}else b=L[63];C=b,L[64]!==e.validationRules?(E=e.validationRules||[],L[64]=e.validationRules,L[65]=E):E=L[65];let el=E;L[66]!==J||L[67]!==U||L[68]!==X||L[69]!==C||L[70]!==N||L[71]!==W.headers||L[72]!==W.query||L[73]!==W.response||L[74]!==W.variables||L[75]!==Y||L[76]!==M||L[77]!==_||L[78]!==er||L[79]!==O||L[80]!==H||L[81]!==F||L[82]!==ee||L[83]!==el||L[84]!==V?(w={...F,addTab:J,changeTab:U,moveTab:Y,closeTab:X,updateActiveTabValues:ee,headerEditor:N,queryEditor:M,responseEditor:_,variableEditor:V,setHeaderEditor:k,setQueryEditor:T,setResponseEditor:P,setVariableEditor:q,setOperationName:er,initialQuery:W.query,initialVariables:W.variables,initialHeaders:W.headers,initialResponse:W.response,externalFragments:C,validationRules:el,shouldPersistHeaders:H,setShouldPersistHeaders:O},L[66]=J,L[67]=U,L[68]=X,L[69]=C,L[70]=N,L[71]=W.headers,L[72]=W.query,L[73]=W.response,L[74]=W.variables,L[75]=Y,L[76]=M,L[77]=_,L[78]=er,L[79]=O,L[80]=H,L[81]=F,L[82]=ee,L[83]=el,L[84]=V,L[85]=w):w=L[85];let en=w;return L[86]!==K||L[87]!==en?(j=(0,l.jsx)(e2.Provider,{value:en,children:K}),L[86]=K,L[87]=en,L[88]=j):j=L[88],j}let e3=createContextHook(e2),e5="shouldPersistHeaders",e4=`# Welcome to GraphiQL 2# 3# GraphiQL is an in-browser tool for writing, validating, and 4# testing GraphQL queries. 5# 6# Type queries into this side of the screen, and you will see intelligent 7# typeaheads aware of the current GraphQL type schema and live syntax and
8# validation errors highlighted within the text. 9# 10# GraphQL queries typically start with a "{" character. Lines that start 11# with a # are ignored. 12# 13# An example GraphQL query might look like: 14# 15# { 16# field(arg: "value") { 17# subField 18# } 19# } 20# 21# Keyboard shortcuts: 22# 23# Prettify query: Shift-Ctrl-P (or press the prettify button) 24# 25# Merge fragments: Shift-Ctrl-M (or press the merge button) 26# 27# Run Query: Ctrl-Enter (or press the play button) 28# 29# Auto Complete: Ctrl-Space (or just start typing) 30# 31 32`;function HeaderEditor(e){let t,a,s,c,u,d,m;let h=(0,n.c)(13);h[0]!==e?({isHidden:a,...t}=e,h[0]=e,h[1]=t,h[2]=a):(t=h[1],a=h[2]),h[3]===Symbol.for("react.memo_cache_sentinel")?(s={nonNull:!0,caller:HeaderEditor},h[3]=s):s=h[3];let{headerEditor:p}=e3(s),f=function useHeaderEditor(e,t){let l,o,a,s,c,u,d,m,h;let p=(0,n.c)(17);p[0]!==e?(l=void 0===e?{}:e,p[0]=e,p[1]=l):l=p[1];let{editorTheme:f,keyMap:g,onEdit:y,readOnly:x}=l,v=void 0===f?eV:f,C=void 0===g?eq:g,b=void 0!==x&&x,E=t||useHeaderEditor;p[2]!==E?(o={nonNull:!0,caller:E},p[2]=E,p[3]=o):o=p[3];let{initialHeaders:w,headerEditor:j,setHeaderEditor:L,shouldPersistHeaders:S}=e3(o),N=e_(),k=t||useHeaderEditor;p[4]!==k?(a={caller:k},p[4]=k,p[5]=a):a=p[5];let M=useMergeQuery(a),T=t||useHeaderEditor;p[6]!==T?(s={caller:T},p[6]=T,p[7]=s):s=p[7];let _=usePrettifyEditors(s),P=(0,i.useRef)(null);return p[8]!==v||p[9]!==w||p[10]!==b||p[11]!==L?(c=()=>{let e;return e=!0,importCodeMirror([Promise.all([r.e(3126),r.e(6876)]).then(r.t.bind(r,96876,23))]).then(t=>{if(!e)return;let r=P.current;if(!r)return;let l=t(r,{value:w,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:v,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!b&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:eH});l.addKeyMap({"Cmd-Space"(){l.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){l.showHint({completeSingle:!1,container:r})},"Alt-Space"(){l.showHint({completeSingle:!1,container:r})},"Shift-Space"(){l.showHint({completeSingle:!1,container:r})}}),l.on("keyup",_temp$2),L(l)}),()=>{e=!1}},u=[v,w,b,L],p[8]=v,p[9]=w,p[10]=b,p[11]=L,p[12]=c,p[13]=u):(c=p[12],u=p[13]),(0,i.useEffect)(c,u),useSynchronizeOption(j,"keyMap",C),useChangeHandler(j,y,S?eK:null,"headers",useHeaderEditor),p[14]===Symbol.for("react.memo_cache_sentinel")?(d=["Cmd-Enter","Ctrl-Enter"],p[14]=d):d=p[14],useKeyMap(j,d,null==N?void 0:N.run),p[15]===Symbol.for("react.memo_cache_sentinel")?(m=["Shift-Ctrl-P"],p[15]=m):m=p[15],useKeyMap(j,m,_),p[16]===Symbol.for("react.memo_cache_sentinel")?(h=["Shift-Ctrl-M"],p[16]=h):h=p[16],useKeyMap(j,h,M),P}(t,HeaderEditor);h[4]!==p||h[5]!==a?(c=()=>{a||null==p||p.refresh()},u=[p,a],h[4]=p,h[5]=a,h[6]=c,h[7]=u):(c=h[6],u=h[7]),(0,i.useEffect)(c,u);let g=a&&"hidden";return h[8]!==g?(d=(0,o.W)("graphiql-editor",g),h[8]=g,h[9]=d):d=h[9],h[10]!==f||h[11]!==d?(m=(0,l.jsx)("div",{className:d,ref:f}),h[10]=f,h[11]=d,h[12]=m):m=h[12],m}function ImagePreview(e){var t;let r,o,a,s,c,u,d;let m=(0,n.c)(14);m[0]===Symbol.for("react.memo_cache_sentinel")?(r={width:null,height:null},m[0]=r):r=m[0];let[h,p]=(0,i.useState)(r),[f,g]=(0,i.useState)(null),y=(0,i.useRef)(null),x=null==(t=tokenToURL(e.token))?void 0:t.href;m[1]!==x?(o=()=>{if(y.current){if(!x){p({width:null,height:null}),g(null);return}fetch(x,{method:"HEAD"}).then(e=>{g(e.headers.get("Content-Type"))}).catch(()=>{g(null)})}},a=[x],m[1]=x,m[2]=o,m[3]=a):(o=m[2],a=m[3]),(0,i.useEffect)(o,a),m[4]!==h.height||m[5]!==h.width||m[6]!==f?(s=null!==h.width&&null!==h.height?(0,l.jsxs)("div",{children:[h.width,"x",h.height,null===f?null:" "+f]}):null,m[4]=h.height,m[5]=h.width,m[6]=f,m[7]=s):s=m[7];let v=s;return m[8]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{var e,t;p({width:(null==(e=y.current)?void 0:e.naturalWidth)??null,height:(null==(t=y.current)?void 0:t.naturalHeight)??null})},m[8]=c):c=m[8],m[9]!==x?(u=(0,l.jsx)("img",{onLoad:c,ref:y,src:x}),m[9]=x,m[10]=u):u=m[10],m[11]!==v||m[12]!==u?(d=(0,l.jsxs)("div",{children:[u,v]}),m[11]=v,m[12]=u,m[13]=d):d=m[13],d}function tokenToURL(e){if("string"!==e.type)return;let t=e.string.slice(1).slice(0,-1).trim();try{let{location:e}=window;return new URL(t,e.protocol+"//"+e.host)}catch{return}}function QueryEditor(e){let t;let o=(0,n.c)(2),a=function useQueryEditor(e,t){let l,o,a,s,c,u,d,m,h,p,f,x,v,C,b,E,w;let j=(0,n.c)(41);j[0]!==e?(l=void 0===e?{}:e,j[0]=e,j[1]=l):l=j[1];let{editorTheme:L,keyMap:S,onClickReference:N,onCopyQuery:k,onEdit:M,readOnly:T}=l,_=void 0===L?eV:L,P=void 0===S?eq:S,V=void 0!==T&&T,q=t||useQueryEditor;j[2]!==q?(o={nonNull:!0,caller:q},j[2]=q,j[3]=o):o=j[3];let{schema:H}=eA(o),I=t||useQueryEditor;j[4]!==I?(a={nonNull:!0,caller:I},j[4]=I,j[5]=a):a=j[5];let{externalFragments:A,initialQuery:W,queryEditor:F,setOperationName:D,setQueryEditor:O,validationRules:$,variableEditor:B,updateActiveTabValues:Q}=e3(a),Z=e_(),z=R(),K=eD(),G=eZ(),J=t||useQueryEditor;j[6]!==k||j[7]!==J?(s={caller:J,onCopyQuery:k},j[6]=k,j[7]=J,j[8]=s):s=j[8];let U=useCopyQuery(s),Y=t||useQueryEditor;j[9]!==Y?(c={caller:Y},j[9]=Y,j[10]=c):c=j[10];let X=useMergeQuery(c),ee=t||useQueryEditor;j[11]!==ee?(u={caller:ee},j[11]=ee,j[12]=u):u=j[12];let et=usePrettifyEditors(u),er=(0,i.useRef)(null),el=(0,i.useRef)(),en=(0,i.useRef)(_temp$1);j[13]!==K||j[14]!==N||j[15]!==G?(d=()=>{en.current=e=>{if(K&&G){switch(G.setVisiblePlugin(e$),e.kind){case"Type":K.push({name:e.type.n
32ame,def:e.type});break;case"Field":K.push({name:e.field.name,def:e.field});break;case"Argument":e.field&&K.push({name:e.field.name,def:e.field});break;case"EnumValue":e.type&&K.push({name:e.type.name,def:e.type})}null==N||N(e)}}},m=[K,N,G],j[13]=K,j[14]=N,j[15]=G,j[16]=d,j[17]=m):(d=j[16],m=j[17]),(0,i.useEffect)(d,m),j[18]!==_||j[19]!==W||j[20]!==V||j[21]!==O?(h=()=>{let e;return e=!0,importCodeMirror([Promise.all([r.e(3126),r.e(4504)]).then(r.t.bind(r,14504,23)),Promise.all([r.e(3126),r.e(1699)]).then(r.t.bind(r,81699,23)),Promise.all([r.e(3126),r.e(8229)]).then(r.bind(r,38229)),Promise.all([r.e(3126),r.e(7131)]).then(r.bind(r,27131)),Promise.all([r.e(3126),r.e(8837)]).then(r.bind(r,68837)),Promise.all([r.e(3126),r.e(9041)]).then(r.bind(r,39041)),Promise.all([r.e(3126),r.e(1419)]).then(r.bind(r,71419))]).then(t=>{let r;if(!e)return;el.current=t;let l=er.current;if(!l)return;let n=t(l,{value:W,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:_,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!V&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:l,externalFragments:void 0,autocompleteOptions:{mode:y.VM.EXECUTABLE}},info:{schema:void 0,renderDescription:_temp2,onClick(e){en.current(e)}},jump:{schema:void 0,onClick(e){en.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...eH,"Cmd-S"(){},"Ctrl-S"(){}}});n.addKeyMap({"Cmd-Space"(){n.showHint({completeSingle:!0,container:l})},"Ctrl-Space"(){n.showHint({completeSingle:!0,container:l})},"Alt-Space"(){n.showHint({completeSingle:!0,container:l})},"Shift-Space"(){n.showHint({completeSingle:!0,container:l})},"Shift-Alt-Space"(){n.showHint({completeSingle:!0,container:l})}}),n.on("keyup",_temp3),r=!1,n.on("startCompletion",()=>{r=!0}),n.on("endCompletion",()=>{r=!1}),n.on("keydown",(e,t)=>{"Escape"===t.key&&r&&t.stopPropagation()}),n.on("beforeChange",_temp4),n.documentAST=null,n.operationName=null,n.operations=null,n.variableToType=null,O(n)}),()=>{e=!1}},p=[_,W,V,O],j[18]=_,j[19]=W,j[20]=V,j[21]=O,j[22]=h,j[23]=p):(h=j[22],p=j[23]),(0,i.useEffect)(h,p),useSynchronizeOption(F,"keyMap",P),j[24]!==M||j[25]!==F||j[26]!==H||j[27]!==D||j[28]!==z||j[29]!==Q||j[30]!==B?(f=()=>{if(!F)return;let getAndUpdateOperationFacts=function(e){var t;let r=(0,y.y9)(H,e.getValue()),l=(0,g.getSelectedOperationName)(e.operations??void 0,e.o
32perationName??void 0,null==r?void 0:r.operations);return e.documentAST=(null==r?void 0:r.documentAST)??null,e.operationName=l??null,e.operations=(null==r?void 0:r.operations)??null,B&&(B.state.lint.linterOptions.variableToType=null==r?void 0:r.variableToType,B.options.lint.variableToType=null==r?void 0:r.variableToType,B.options.hintOptions.variableToType=null==r?void 0:r.variableToType,null==(t=el.current)||t.signal(B,"change",B)),r?{...r,operationName:l}:null},e=debounce(100,e=>{let t=e.getValue();null==z||z.set(eY,t);let r=e.operationName,l=getAndUpdateOperationFacts(e);(null==l?void 0:l.operationName)!==void 0&&(null==z||z.set("operationName",l.operationName)),null==M||M(t,null==l?void 0:l.documentAST),(null==l?void 0:l.operationName)&&r!==l.operationName&&D(l.operationName),Q({query:t,operationName:(null==l?void 0:l.operationName)??null})});return getAndUpdateOperationFacts(F),F.on("change",e),()=>F.off("change",e)},x=[M,F,H,D,z,B,Q],j[24]=M,j[25]=F,j[26]=H,j[27]=D,j[28]=z,j[29]=Q,j[30]=B,j[31]=f,j[32]=x):(f=j[31],x=j[32]),(0,i.useEffect)(f,x),function(e,t,r){let l,o;let a=(0,n.c)(5);a[0]!==r||a[1]!==e||a[2]!==t?(l=()=>{if(!e)return;let l=e.options.lint.schema!==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,l&&r.current&&r.current.signal(e,"change",e)},o=[e,t,r],a[0]=r,a[1]=e,a[2]=t,a[3]=l,a[4]=o):(l=a[3],o=a[4]),(0,i.useEffect)(l,o)}(F,H??null,el),function(e,t,r){let l,o;let a=(0,n.c)(5);a[0]!==r||a[1]!==e||a[2]!==t?(l=()=>{if(!e)return;let l=e.options.lint.validationRules!==t;e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t,l&&r.current&&r.current.signal(e,"change",e)},o=[e,t,r],a[0]=r,a[1]=e,a[2]=t,a[3]=l,a[4]=o):(l=a[3],o=a[4]),(0,i.useEffect)(l,o)}(F,$??null,el),function(e,t,r){let l,o,a,s;let c=(0,n.c)(9);c[0]!==t?(l=t.values(),c[0]=t,c[1]=l):l=c[1],c[2]!==l?(o=[...l],c[2]=l,c[3]=o):o=c[3];let u=o;c[4]!==r||c[5]!==e||c[6]!==u?(a=()=>{if(!e)return;let t=e.options.lint.externalFragments!==u;e.state.lint.linterOptions.externalFragments=u,e.options.lint.externalFragments=u,e.options.hintOptions.externalFragments=u,t&&r.current&&r.current.signal(e,"change",e)},s=[e,u,r],c[4]=r,c[5]=e,c[6]=u,c[7]=a,c[8]=s):(a=c[7],s=c[8]),(0,i.useEffect)(a,s)}(F,A,el),useCompletion(F,N||null,useQueryEditor);let ei=null==Z?void 0:Z.run;j[33]!==F||j[34]!==ei||j[35]!==D?(v=()=>{var e;let t;if(!ei||!F||!F.operations||!F.hasFocus()){null==ei||ei();return}let r=F.indexFromPos(F.getCursor());for(let l of F.operations)l.loc&&l.loc.start<=r&&l.loc.end>=r&&(t=null==(e=l.name)?void 0:e.value);t&&t!==F.operationName&&D(t),ei()},j[33]=F,j[34]=ei,j[35]=D,j[36]=v):v=j[36];let eo=v;return j[37]===Symbol.for("react.memo_cache_sentinel")?(C=["Cmd-Enter","Ctrl-Enter"],j[37]=C):C=j[37],useKeyMap(F,C,eo),j[38]===Symbol.for("react.memo_cache_sentinel")?(b=["Shift-Ctrl-C"],j[38]=b):b=j[38],useKeyMap(F,b,U),j[39]===Symbol.for("react.memo_cache_sentinel")?(E=["Shift-Ctrl-P","Shift-Ctrl-F"],j[39]=E):E=j[39],useKeyMap(F,E,et),j[40]===Symbol.for("react.memo_cache_sentinel")?(w=["Shift-Ctrl-M"],j[40]=w):w=j[40],useKeyMap(F,w,X),er}(e,QueryEditor);return o[0]!==a?(t=(0,l.jsx)("div",{className:"graphiql-editor",ref:a}),o[0]=a,o[1]=t):t=o[1],t}function ResponseEditor(e){let t;let o=(0,n.c)(2),a=function useResponseEditor(e,t){let o,a,s,c,u,d,m,h,p;let f=(0,n.c)(19);f[0]!==e?(o=void 0===e?{}:e,f[0]=e,f[1]=o):o=f[1];let{responseTooltip:y,editorTheme:x,keyMap:v}=o,C=void 0===x?eV:x,b=void 0===v?eq:v,E=t||useResponseEditor;f[2]!==E?(a={nonNull:!0,caller:E},f[2]=E,f[3]=a):a=f[3];let{fetchError:w,validationErrors:j}=eA(a),L=t||useResponseEditor;f[4]!==L?(s={nonNull:!0,caller:L},f[4]=L,f[5]=s):s=f[5];let{initialResponse:S,responseEditor:N,setResponseEditor:k}=e3(s),M=(0,i.useRef)(null),T=(0,i.useRef)(y);return f[6]!==y?(c=()=>{T.current=y},u=[y],f[6]=y,f[7]=c,f[8]=u):(c=f[7],u=f[8]),(0,i.useEffect)(c,u),f[9]!==C||f[10]!==S||f[11]!==k?(d=()=>{let e;return e=!0,importCodeMirror([Promise.all([r.e(3126),r.e(9700)]).then(r.t.bind(r,89700,23)),Promise.all([r.e(3126),r.e(5688)]).then(r.t.bind(r,35688,23)),Promise.all([r.e(3126),r.e(5292)]).then(r.t.bind(r,5
325292,23)),Promise.all([r.e(3126),r.e(1699)]).then(r.t.bind(r,81699,23)),Promise.all([r.e(3126),r.e(2095)]).then(r.t.bind(r,32095,23)),Promise.all([r.e(3126),r.e(4568)]).then(r.t.bind(r,14568,23)),Promise.all([r.e(3126),r.e(3412)]).then(r.t.bind(r,23412,23)),Promise.all([r.e(3126),r.e(4718)]).then(r.bind(r,74718)),Promise.all([r.e(3126),r.e(5778)]).then(r.bind(r,75778))],{useCommonAddons:!1}).then(t=>{if(!e)return;let r=document.createElement("div");t.registerHelper("info","graphql-results",(e,t,n,i)=>{let o=[],a=T.current;return(a&&o.push((0,l.jsx)(a,{pos:i,token:e})),ImagePreview.shouldRender(e)&&o.push((0,l.jsx)(ImagePreview,{token:e},"image-preview")),o.length)?(_.render(o,r),r):(_.unmountComponentAtNode(r),null)});let n=M.current;if(!n)return;let i=t(n,{value:S,lineWrapping:!0,readOnly:!0,theme:C,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:eH});k(i)}),()=>{e=!1}},m=[C,S,k],f[9]=C,f[10]=S,f[11]=k,f[12]=d,f[13]=m):(d=f[12],m=f[13]),(0,i.useEffect)(d,m),useSynchronizeOption(N,"keyMap",b),f[14]!==w||f[15]!==N||f[16]!==j?(h=()=>{w&&(null==N||N.setValue(w)),j.length>0&&(null==N||N.setValue((0,g.formatError)(j)))},p=[N,w,j],f[14]=w,f[15]=N,f[16]=j,f[17]=h,f[18]=p):(h=f[17],p=f[18]),(0,i.useEffect)(h,p),M}(e,ResponseEditor);return o[0]!==a?(t=(0,l.jsx)("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:a}),o[0]=a,o[1]=t):t=o[1],t}function VariableEditor(e){let t,a,s,c,u,d,m;let h=(0,n.c)(13);h[0]!==e?({isHidden:a,...t}=e,h[0]=e,h[1]=t,h[2]=a):(t=h[1],a=h[2]),h[3]===Symbol.for("react.memo_cache_sentinel")?(s={nonNull:!0,caller:VariableEditor},h[3]=s):s=h[3];let{variableEditor:p}=e3(s),f=function useVariableEditor(e,t){let l,o,a,s,c,u,d,m,h;let p=(0,n.c)(17);p[0]!==e?(l=void 0===e?{}:e,p[0]=e,p[1]=l):l=p[1];let{editorTheme:f,keyMap:g,onClickReference:y,onEdit:x,readOnly:v}=l,C=void 0===f?eV:f,b=void 0===g?eq:g,E=void 0!==v&&v,w=t||useVariableEditor;p[2]!==w?(o={nonNull:!0,caller:w},p[2]=w,p[3]=o):o=p[3];let{initialVariables:j,variableEditor:L,setVariableEditor:S}=e3(o),N=e_(),k=t||useVariableEditor;p[4]!==k?(a={caller:k},p[4]=k,p[5]=a):a=p[5];let M=useMergeQuery(a),T=t||useVariableEditor;p[6]!==T?(s={caller:T},p[6]=T,p[7]=s):s=p[7];let _=usePrettifyEditors(s),P=(0,i.useRef)(null),R=(0,i.useRef)();return p[8]!==C||p[9]!==j||p[10]!==E||p[11]!==S?(c=()=>{let e;return e=!0,importCodeMirror([Promise.all([r.e(3126),r.e(6076)]).then(r.bind(r,66076)),Promise.all([r.e(3126),r.e(8322)]).then(r.bind(r,58322)),Promise.all([r.e(3126),r.e(3122)]).then(r.bind(r,83122))]).then(t=>{if(!e)return;R.current=t;let r=P.current;if(!r)return;let l=t(r,{value:j,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:C,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!E&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:r,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:eH});l.addKeyMap({"Cmd-Space"(){l.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){l.showHint({completeSingle:!1,container:r})},"Alt-Space"(){l.showHint({completeSingle:!1,container:r})},"Shift-Space"(){l.showHint({completeSingle:!1,container:r})}}),l.on("keyup",_temp),S(l)}),()=>{e=!1}},u=[C,j,E,S],p[8]=C,p[9]=j,p[10]=E,p[11]=S,p[12]=c,p[13]=u):(c=p[12],u=p[13]),(0,i.useEffect)(c,u),useSynchronizeOption(L,"keyMap",b),useChangeHandler(L,x,e0,"variables",useVariableEditor),useCompletion(L,y||null,useVariableEditor),p[14]===Symbol.for("react.memo_cache_sentinel")?(d=["Cmd-Enter","Ctrl-Enter"],p[14]=d):d=p[14],useKeyMap(L,d,null==N?void 0:N.run),p[15]===Symbol.for("react.memo_cache_sentinel")?(m=["Shift-Ctrl-P"],p[15]=m):m=p[15],useKeyMap(L,m,_),p[16]===Symbol.for("react.memo_cache_sentinel")?(h=["Shift-Ctrl-M"],p[16]=h):h=p[16],useKeyMap(L,h,M),P}(t,VariableEditor);h[4]!==a||h[5]!==p?(c=()=>{p&&!a&&p.refresh()},u=[p,a],h[4]=a,h[5]=p,h[6]=c,h[7]=u):(c=h[6],u=h[7]),(0,i.useEffect)(c,u);let g=a&&"hidden";return h[8]!==g?(d=(0,o.W)("graphiql-editor",g),h[8]=g,h[9]=d):d=h[9],h[10]!==f||h[11]!==d?(m=(0,l.jsx)("div",{className:d,ref:f}),h[10]=f,h[11]=d,h[12]=m):m=h[12],m}function GraphiQLProvider(e){let t,r,i,o,a,s;let c=(0,n.c)(39),{children:u,dangerouslyAssumeSchemaIsValid:d,defaultQuery:m,defaultHeaders:h,defaultTabs:p,externalFragments:f,fetcher:g,getDefaultFieldNames:y,headers:x,inputValueDeprecation:v,introspectionQueryName:C,maxHistoryLength:b,onEditOperationName:E,onSchemaChange:w,onTabChange:j,onTogglePluginVisibility:L,operationName:S,plugins:N,query:k,response:M,schema:T,schemaDescription:_,shouldPersistHeaders:P,storage:R,validationRules:V,variables:q,visiblePlugin:H}=e;return c[0]!==u||c[1]!==L||c[2]!==N||c[3]!==H?(t=(0,l.jsx)(ExplorerContextProvider,{children:(0,l.jsx)(PluginContextProvider,{onTogglePluginVisibility:L,plugins:N,visiblePlugin:H,children:u})}),c[0]=u,c[1]=L,c[2]=N,c[3]=H,c[4]=t):t=c[4],c[5]!==g||c[6]!==y||c[7]!==S||c[8]!==t?(r=(0,l.jsx)(ExecutionContextProvider,{getDefaultFieldNames:y,fetcher:g,operationName:S,children:t}),c[5]=g,c[6]=y,c[7]=S,c[8]=t,c[9]=r):r=c[9],c[10]!==d||c[11]!==g||c[12]!==v||c[13]!==C||
32c[14]!==w||c[15]!==T||c[16]!==_||c[17]!==r?(i=(0,l.jsx)(SchemaContextProvider,{dangerouslyAssumeSchemaIsValid:d,fetcher:g,inputValueDeprecation:v,introspectionQueryName:C,onSchemaChange:w,schema:T,schemaDescription:_,children:r}),c[10]=d,c[11]=g,c[12]=v,c[13]=C,c[14]=w,c[15]=T,c[16]=_,c[17]=r,c[18]=i):i=c[18],c[19]!==h||c[20]!==m||c[21]!==p||c[22]!==f||c[23]!==x||c[24]!==E||c[25]!==j||c[26]!==k||c[27]!==M||c[28]!==P||c[29]!==i||c[30]!==V||c[31]!==q?(o=(0,l.jsx)(EditorContextProvider,{defaultQuery:m,defaultHeaders:h,defaultTabs:p,externalFragments:f,headers:x,onEditOperationName:E,onTabChange:j,query:k,response:M,shouldPersistHeaders:P,validationRules:V,variables:q,children:i}),c[19]=h,c[20]=m,c[21]=p,c[22]=f,c[23]=x,c[24]=E,c[25]=j,c[26]=k,c[27]=M,c[28]=P,c[29]=i,c[30]=V,c[31]=q,c[32]=o):o=c[32],c[33]!==b||c[34]!==o?(a=(0,l.jsx)(HistoryContextProvider,{maxHistoryLength:b,children:o}),c[33]=b,c[34]=o,c[35]=a):a=c[35],c[36]!==R||c[37]!==a?(s=(0,l.jsx)(StorageContextProvider,{storage:R,children:a}),c[36]=R,c[37]=a,c[38]=s):s=c[38],s}function useTheme(e){let t,r,l,o,a;let s=(0,n.c)(11),c=void 0===e?null:e,u=R();s[0]!==c||s[1]!==u?(t=()=>{if(!u)return null;let e=u.get(e6);switch(e){case"light":return"light";case"dark":return"dark";default:return"string"==typeof e&&u.set(e6,""),c}},s[0]=c,s[1]=u,s[2]=t):t=s[2];let[d,m]=(0,i.useState)(t);s[3]!==d?(r=()=>{"undefined"!=typeof window&&(document.body.classList.remove("graphiql-light","graphiql-dark"),d&&document.body.classList.add(`graphiql-${d}`))},l=[d],s[3]=d,s[4]=r,s[5]=l):(r=s[4],l=s[5]),(0,i.useLayoutEffect)(r,l),s[6]!==u?(o=e=>{null==u||u.set(e6,e||""),m(e)},s[6]=u,s[7]=o):o=s[7];let h=o;return s[8]!==h||s[9]!==d?(a={theme:d,setTheme:h},s[8]=h,s[9]=d,s[10]=a):a=s[10],a}ImagePreview.shouldRender=function(e){let t=tokenToURL(e);return!!t&&/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(t.pathname)};let e6="theme";function useDragResize(e){let t,r,l,o,a,s,c,u,d,m;let h=(0,n.c)(31),{defaultSizeRelation:p,direction:f,initiallyHidden:g,onHiddenElementChange:y,sizeThresholdFirst:x,sizeThresholdSecond:v,storageKey:C}=e,b=void 0===p?e7:p,E=void 0===x?100:x,w=void 0===v?100:v,j=R();h[0]!==j||h[1]!==C?(t=debounce(500,e=>{C&&(null==j||j.set(C,e))}),h[0]=j,h[1]=C,h[2]=t):t=h[2];let L=t;h[3]!==g||h[4]!==j||h[5]!==C?(r=()=>{let e=C&&(null==j?void 0:j.get(C));return e===e9||"first"===g?"first":e===e8||"second"===g?"second":null},h[3]=g,h[4]=j,h[5]=C,h[6]=r):r=h[6];let[S,N]=(0,i.useState)(r);h[7]!==S||h[8]!==y?(l=e=>{e!==S&&(N(e),null==y||y(e))},h[7]=S,h[8]=y,h[9]=l):l=h[9];let k=l,M=(0,i.useRef)(null),T=(0,i.useRef)(null),_=(0,i.useRef)(null),P=(0,i.useRef)(`${b}`);return h[10]!==j||h[11]!==C?(o=()=>{let e=C&&(null==j?void 0:j.get(C))||P.current;M.current&&(M.current.style.display="flex",M.current.style.flex=e===e9||e===e8?P.current:e),_.current&&(_.current.style.display="flex",_.current.style.flex="1"),T.current&&(T.current.style.display="flex")},h[10]=j,h[11]=C,h[12]=o):o=h[12],h[13]!==f||h[14]!==j||h[15]!==C?(a=[f,j,C],h[13]=f,h[14]=j,h[15]=C,h[16]=a):a=h[16],(0,i.useLayoutEffect)(o,a),h[17]!==S||h[18]!==j||h[19]!==C?(c=()=>{let hide=e=>{let t="first"===e?M.current:_.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",M.current)){let e=parseFloat(M.current.style.flex);(!Number.isFinite(e)||e<1)&&(M.current.style.flex="1")}},show=e=>{let t="first"===e?M.current:_.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",j&&C)){let e=j.get(C);M.current&&e!==e9&&e!==e8&&(M.current.style.flex=e||P.current)}};"first"===S?hide("first"):show("first"),"second"===S?hide("second"):show("second")},s=[S,j,C],h[17]=S,h[18]=j,h[19]=C,h[20]=s,h[21]=c):(s=h[20],c=h[21]),(0,i.useLayoutEffect)(c,s),h[22]!==f||h[23]!==k||h[24]!==E||h[25]!==w||h[26]!==L?(u=()=>{if(!T.current||!M.current||!_.current)return;let e=T.current,t=M.current,r=t.parentElement,l="horizontal"===f?"clientX":"clientY",n="horizontal"===f?"left":"top",i="horizontal"===f?"right":"bottom",o="horizontal"===f?"clientWidth":"clientHeight",handleMouseDown=function(a){a.preventDefault();let s=a[l]-e.getBoundingClientRect()[n],handleMouseMove=function(a){if
32(0===a.buttons)return handleMouseUp();let c=a[l]-r.getBoundingClientRect()[n]-s,u=r.getBoundingClientRect()[i]-a[l]+s-e[o];if(c<E)k("first"),L(e9);else if(u<w)k("second"),L(e8);else{k(null);let e=`${c/u}`;t.style.flex=e,L(e)}};function handleMouseUp(){document.removeEventListener("mousemove",handleMouseMove),document.removeEventListener("mouseup",handleMouseUp)}document.addEventListener("mousemove",handleMouseMove),document.addEventListener("mouseup",handleMouseUp)};e.addEventListener("mousedown",handleMouseDown);let reset=function(){M.current&&(M.current.style.flex=P.current),L(P.current),k(null)};return e.addEventListener("dblclick",reset),()=>{e.removeEventListener("mousedown",handleMouseDown),e.removeEventListener("dblclick",reset)}},d=[f,k,E,w,L],h[22]=f,h[23]=k,h[24]=E,h[25]=w,h[26]=L,h[27]=u,h[28]=d):(u=h[27],d=h[28]),(0,i.useEffect)(u,d),h[29]!==S?(m={dragBarRef:T,hiddenElement:S,firstRef:M,setHiddenElement:N,secondRef:_},h[29]=S,h[30]=m):m=h[30],m}let e7=1,e9="hide-first",e8="hide-second",te=(0,i.forwardRef)((e,t)=>{let r,a,s,c,u,d,m;let h=(0,n.c)(19);h[0]!==e?({label:r,onClick:a,...s}=e,h[0]=e,h[1]=r,h[2]=a,h[3]=s):(r=h[1],a=h[2],s=h[3]);let[p,f]=(0,i.useState)(null);h[4]!==a?(c=e=>{try{a&&a(e),f(null)}catch(e){f(e instanceof Error?e:Error(`Toolbar button click failed: ${e}`))}},h[4]=a,h[5]=c):c=h[5];let g=c,y=p&&"error";h[6]!==s.className||h[7]!==y?(u=(0,o.W)("graphiql-toolbar-button",y,s.className),h[6]=s.className,h[7]=y,h[8]=u):u=h[8];let x=p?p.message:r,v=p?"true":s["aria-invalid"];return h[9]!==g||h[10]!==s||h[11]!==t||h[12]!==u||h[13]!==x||h[14]!==v?(d=(0,l.jsx)(ed,{...s,ref:t,type:"button",className:u,onClick:g,"aria-label":x,"aria-invalid":v}),h[9]=g,h[10]=s,h[11]=t,h[12]=u,h[13]=x,h[14]=v,h[15]=d):d=h[15],h[16]!==r||h[17]!==d?(m=(0,l.jsx)(eb,{label:r,children:d}),h[16]=r,h[17]=d,h[18]=m):m=h[18],m});function ExecuteButton(){let e,t,r,i,o,a;let s=(0,n.c)(19);s[0]===Symbol.for("react.memo_cache_sentinel")?(e={nonNull:!0,caller:ExecuteButton},s[0]=e):e=s[0];let{queryEditor:c,setOperationName:u}=e3(e);s[1]===Symbol.for("react.memo_cache_sentinel")?(t={nonNull:!0,caller:ExecuteButton},s[1]=t):t=s[1];let{isFetching:d,isSubscribed:m,operationName:h,run:p,stop:f}=e_(t);s[2]!==(null==c?void 0:c.operations)?(r=(null==c?void 0:c.operations)||[],s[2]=null==c?void 0:c.operations,s[3]=r):r=s[3];let g=r,y=g.length>1&&"string"!=typeof h,x=d||m,v=`${x?"Stop":"Execute"} query (Ctrl-Enter)`;s[4]!==x?(i=x?(0,l.jsx)(es,{}):(0,l.jsx)(ee,{}),s[4]=x,s[5]=i):i=s[5],s[6]!==v||s[7]!==i?(o={type:"button",className:"graphiql-execute-button",children:i,"aria-label":v},s[6]=v,s[7]=i,s[8]=o):o=s[8];let C=o;return s[9]!==C||s[10]!==y||s[11]!==x||s[12]!==v||s[13]!==g||s[14]!==c||s[15]!==p||s[16]!==u||s[17]!==f?(a=y&&!x?(0,l.jsxs)(ey,{children:[(0,l.jsx)(eb,{label:v,children:(0,l.jsx)(ey.Button,{...C})}),(0,l.jsx)(ey.Content,{children:g.map((e,t)=>{let r=e.name?e.name.value:`<Unnamed ${e.operation}>`;return(0,l.jsx)(ey.Item,{onSelect:()=>{var t;let r=null==(t=e.name)?void 0:t.value;c&&r&&r!==c.operationName&&u(r),p()},children:r},`${r}-${t}`)})})]}):(0,l.jsx)(eb,{label:v,children:(0,l.jsx)("button",{...C,onClick:()=>{x?f():p()}})}),s[9]=C,s[10]=y,s[11]=x,s[12]=v,s[13]=g,s[14]=c,s[15]=p,s[16]=u,s[17]=f,s[18]=a):a=s[18],a}te.displayName="ToolbarButton",createComponentGroup(e=>{let t,r,i,a,s,c,u,d,m;let h=(0,n.c)(20);return h[0]!==e?({button:t,children:r,label:i,...a}=e,h[0]=e,h[1]=t,h[2]=r,h[3]=i,h[4]=a):(t=h[1],r=h[2],i=h[3],a=h[4]),h[5]!==a.className?(s=(0,o.W)("graphiql-un-styled graphiql-toolbar-menu",a.className),h[5]=a.className,h[6]=s):s=h[6],h[7]!==t||h[8]!==i||h[9]!==s?(c=(0,l.jsx)(ey.Button,{className:s,"aria-label":i,children:t}),h[7]=t,h[8]=i,h[9]=s,h[10]=c):c=h[10],h[11]!==i||h[12]!==c?(u=(0,l.jsx)(eb,{label:i,children:c}),h[11]=i,h[12]=c,h[13]=u):u=h[13],h[14]!==r?(d=(0,l.jsx)(ey.Content,{children:r}),h[14]=r,h[15]=d):d=h[15],h[16]!==a||h[17]!==u||h[18]!==d?(m=(0,l.jsxs)(ey,{...a,children:[u,d]}),h[16]=a,h[17]=u,h[18]=d,h[19]=m):m=h[19],m},{Item:ey.Item})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.