@chillicream/nitro-embedded 28.0.12 → 28.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/asset-manifest.json +26 -26
  2. package/index.html +1 -1
  3. package/package.json +1 -1
  4. package/service-worker.js +1 -1
  5. package/static/js/{104.d2e3036c.js → 104.cff91d67.js} +2 -2
  6. package/static/js/{23.7a65909d.chunk.js → 23.11b7e848.chunk.js} +1 -1
  7. package/static/js/{709.d2e3036c.js → 709.cff91d67.js} +1 -1
  8. package/static/js/{graphql-engine.54f51a02.chunk.js → graphql-engine.d943b9b3.chunk.js} +1 -1
  9. package/static/js/{graphql-indexer.3e18fe60.chunk.js → graphql-indexer.812574c7.chunk.js} +1 -1
  10. package/static/js/{graphql.worker.d2e3036c.js → graphql.worker.cff91d67.js} +2 -2
  11. package/static/js/{json.d2e3036c.js → json.cff91d67.js} +1 -1
  12. package/static/js/main.cff91d67.js +2 -0
  13. package/static/js/{session.93e2f65b.chunk.js → session.7a5a5b72.chunk.js} +1 -1
  14. package/static/js/main.d2e3036c.js +0 -2
  15. /package/static/js/{104.d2e3036c.js.LICENSE.txt → 104.cff91d67.js.LICENSE.txt} +0 -0
  16. /package/static/js/{402.d2e3036c.js → 402.cff91d67.js} +0 -0
  17. /package/static/js/{41.d2e3036c.js → 41.cff91d67.js} +0 -0
  18. /package/static/js/{478.d2e3036c.js → 478.cff91d67.js} +0 -0
  19. /package/static/js/{709.d2e3036c.js.LICENSE.txt → 709.cff91d67.js.LICENSE.txt} +0 -0
  20. /package/static/js/{773.d2e3036c.js → 773.cff91d67.js} +0 -0
  21. /package/static/js/{936.d2e3036c.js → 936.cff91d67.js} +0 -0
  22. /package/static/js/{editor.d2e3036c.js → editor.cff91d67.js} +0 -0
  23. /package/static/js/{graphql.worker.d2e3036c.js.LICENSE.txt → graphql.worker.cff91d67.js.LICENSE.txt} +0 -0
  24. /package/static/js/{json.d2e3036c.js.LICENSE.txt → json.cff91d67.js.LICENSE.txt} +0 -0
  25. /package/static/js/{main.d2e3036c.js.LICENSE.txt → main.cff91d67.js.LICENSE.txt} +0 -0
  26. /package/static/js/{polyfills.d2e3036c.js → polyfills.cff91d67.js} +0 -0
  27. /package/static/js/{yaml.worker.d2e3036c.js → yaml.worker.cff91d67.js} +0 -0
@@ -1 +1 @@
1
- (()=>{var e={23845:(e,n,t)=>{"use strict";t.d(n,{mF:()=>f,ag:()=>c,hl:()=>a,wL:()=>T.wL,To:()=>T.To,fc:()=>T.fc,HO:()=>I,qB:()=>v,VX:()=>m,QB:()=>h,c7:()=>y,vZ:()=>E,RI:()=>g,_w:()=>u,CZ:()=>T.CZ,MA:()=>T.MA,iW:()=>T.iW,OY:()=>T.OY,R1:()=>T.R1,T2:()=>T.T2,BN:()=>T.BN,fI:()=>T.fI,kf:()=>T.kf});var i,s,o=t(8330);const r=o.QC,a=o.rE,c=null!==(i="Q2xpZW50Cmc5ZjAwOTFmNTY5NmQ0NTZkOWUwZDQ0ZDMzYjJhZDJlOA==")?i:"",l=(o.rE,new RegExp("^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.com|chillicream\\.cloud)","i")),d=null!==(s=null===l||void 0===l?void 0:l.test(self.origin))&&void 0!==s&&s,u=navigator.userAgent.indexOf("Electron")>=0,p=d?"cloud":u?"app":"middleware",f="".concat(r,"/").concat(a," (").concat(p,")");(function(){if(navigator.userAgent.indexOf("Win")>=0)return"Windows";if(navigator.userAgent.indexOf("Mac")>=0)return"macOS";if(navigator.userAgent.indexOf("X11")>=0||navigator.userAgent.indexOf("Linux")>=0)return"Linux"})(),function(){const e=navigator.userAgent.toLowerCase();e.includes("mac os")||e.includes("ipad")}();const v="Authorization",m="Content-Type",h="User-Agent",y=/^https?:\/\//i,E=/{{\s*([a-z0-9_\-|.:+#$!?;,]+)\s*}}/gi,I=/graphql-query-plan/i,g=/^_{2}(?!_)/i;var T=t(18370)},50072:(e,n,t)=>{"use strict";t.d(n,{ppT:()=>h.pp,jIU:()=>h.jI,hPE:()=>h.hP,PhU:()=>h.Ph,Gkb:()=>h.Gk,FxT:()=>l,OYB:()=>v,_um:()=>s._u,OfI:()=>s.Of,K6y:()=>i.K6,TES:()=>s.TE,FH2:()=>s.FH,Ac:()=>s.Ac,SWZ:()=>u,BID:()=>p,qaG:()=>f,Sjm:()=>s.Sj,snc:()=>s.sn,WGI:()=>s.WG,qaW:()=>m.q,PHK:()=>s.PH,lKN:()=>s.lK,x_1:()=>o.x,GUQ:()=>m.GU,mkZ:()=>d,qhv:()=>s.qh,LDz:()=>o.L});var i=t(3455),s=t(52396),o=t(37551),r=(t(75885),t(99850)),a=t(28511);let c=function(e){return e.SDL_SCHEMA="sdl-schema",e.STATISTICS="statistics",e.ITEMS="items",e}({}),l=function(e){return e.SDL_FETCH="sdl-fetch",e.SDL_PROBE="sdl-probe",e.INTROSPECTION="introspection",e}({});function d(e,n,t,i){return(0,r.SE)(["schema","schema-attachment"],"readwrite",(async s=>{var o,r,l,d,u,p;const f={endpoint:e,updatedAt:(0,a.tB)(),hash:v(e,t),indexed:!1,hasUploadType:!!n.getType("Upload"),queryTypeName:null!==(o=null===(r=n.getQueryType())||void 0===r?void 0:r.name)&&void 0!==o?o:null,mutationTypeName:null!==(l=null===(d=n.getMutationType())||void 0===d?void 0:d.name)&&void 0!==l?l:null,subscriptionTypeName:null!==(u=null===(p=n.getSubscriptionType())||void 0===p?void 0:p.name)&&void 0!==u?u:null,schemaKind:i};return await Promise.all([s.store.schema.put(f),s.store.schemaAttachment.put({endpoint:e,kind:c.SDL_SCHEMA,value:t}),s.store.schemaAttachment.delete([e,c.ITEMS]),s.store.schemaAttachment.delete([e,c.STATISTICS]),s.done]),f}))}function u(e){const n=(0,a.c9)(e);return(0,r.EL)("schema",n)}async function p(e){const n=(0,a.c9)(e),t=await(0,r.EL)("schema-attachment",[n,c.ITEMS]);return function(e){return!!e&&e.kind===c.ITEMS}(t)?t.value:void 0}async function f(e){const n=(0,a.c9)(e),t=await(0,r.EL)("schema-attachment",[n,c.STATISTICS]);return function(e){return!!e&&e.kind===c.STATISTICS}(t)?t.value:void 0}function v(e,n){return(0,a.n1)(JSON.stringify(["graphql-schema-entity",e,n]))}var m=t(21244),h=(t(85233),t(9416));t(54700),t(57731),t(95616),t(54161),t(55822)},2622:(e,n,t)=>{"use strict";t.d(n,{FH:()=>u,Of:()=>r,Sj:()=>a,WG:()=>p,sn:()=>c});t(75885);var i=t(99850),s=t(65107),o=t(59943);async function r(e,n){return(0,i.SE)(["attachment","item"],"readonly",(async n=>{const t=await n.store.item.get(e);return(0,o.QH)(t)||(0,o.MT)(t)||(0,o.vA)(t)?l(n,t):n.abort("Item does not exist or is not of type API nor Document.")}),n)}async function a(e,n,t){return(0,i.SE)(["attachment","item","workspace"],"readonly",(async t=>{const i=await t.store.item.get(e);if(!((0,o.QH)(i)||(0,o.MT)(i)||(0,o.vA)(i)))return t.abort("Item does not exist or is not of type API nor Document.");if(!n){const e=await l(t,i);return null===e||void 0===e?void 0:e.http}const[s,r]=await Promise.all([l(t,i),d(t,n)]);var a;return s&&r?null!==(a=(0,o.PH)(s,(0,o.CO)(r.variables)))&&void 0!==a?a:void 0:null===s||void 0===s?void 0:s.http}),t)}async function c(e,n){return(0,i.SE)(["attachment","item","workspace"],"readonly",(async n=>{const t=await n.store.item.get(e);if(!((0,o.QH)(t)||(0,o.MT)(t)||(0,o.vA)(t)))return n.abort("Item does not exist or is not of type API nor Document.");let i=null;if(t.workspaceId){var s,r;const e=await n.store.workspace.get(t.workspaceId);i=null!==(s=null===e||void 0===e||null===(r=e.appState)||void 0===r?void 0:r.activeEnvironmentId)&&void 0!==s?s:null}if(!i){const e=await l(n,t);return null===e||void 0===e?void 0:e.http}const[a,c]=await Promise.all([l(n,t),d(n,i)]);var u;return a&&c?null!==(u=(0,o.PH)(a,(0,o.CO)(c.variables)))&&void 0!==u?u:void 0:null===a||void 0===a?void 0:a.http}),n)}async function l(e,n){const t=await e.store.attachment.get([(0,o.Zm)(n)?n.apiId:n.id,s.iQ]);if((0,o.ZO)(t))return t}async function d(e,n){const t=await e.store.attachment.get([n,s.t_]);if((0,o.as)(t))return t}async function u(e,n){return(0,i.SE)(["attachment","item"],"readonly",(n=>Promise.all(e.map((async e=>{const t=await n.store.item.get(e);return(0,o.Gs)(t)?await n.store.attachment.get([e,s.gV]):n.abort("Item does not exist or is not of type API nor Document.")})))),n)}async function p(e){var n,t;return(0,o.CO)(e&&null!==(n=null===(t=await async function(e){return(0,i.ot)((async n=>{const t=await n.get("attachment",[e,s.t_]);if((0,o.as)(t))return t}))}(e))||void 0===t?void 0:t.variables)&&void 0!==n?n:[])}},52396:(e,n,t)=>{"use strict";t.d(n,{_u:()=>c,Of:()=>i.Of,TE:()=>a,FH:()=>i.FH,Ac:()=>l,Sj:()=>i.Sj,sn:()=>i.sn,WG:()=>i.WG,PH:()=>r.PH,lK:()=>r.lK,qh:()=>p.q});t(46114),t(22197),t(13939),t(43351);var i=t(2622),s=(t(62316),t(36022),t(45155),t(49997),t(57928),t(2813),t(32990),t(37669),t(35033),t(75885),t(99850)),o=(t(28511),t(65107)),r=t(59943);function a(e,n){return(0,s.SE)(["attachment","item"],"readonly",(async n=>{const[t,i]=await Promise.all([n.store.item.get(e),n.store.attachment.get([e,o.tx])]);if((0,r.vA)(t)&&(0,r.Q7)(i))return(0,r.Ls)(t,i)}),n)}function c(e){return(0,s.SE)(["item"],"readonly",(n=>d(n,e)))}function l(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];return(0,s.SE)(["item"],"readonly",(n=>d(n,e,(e=>t.includes(e)))))}async function d(e,n,t){const i=[],s={};for await(const l of e.index.item.kind.iterate([n,o.Er])){const n=l.value;if((0,r.Gs)(n)){var a,c;n.parentId&&!s[n.parentId]&&(s[n.parentId]=await u(e,n.path).then((e=>{var n;return null!==(n=null===e||void 0===e?void 0:e.join("/"))&&void 0!==n?n:""})));const o="".concat(n.parentId&&null!==(a=s[n.parentId])&&void 0!==a&&a.length?"".concat(s[n.parentId],"/"):"").concat(n.name);(null===(c=null===t||void 0===t?void 0:t(o))||void 0===c||c)&&i.push({id:n.id,workspaceId:n.workspaceId,name:o,size:n.size})}}return i}async function u(e,n){return Promise.all(n.slice(0,-1).map((async n=>{const t=await e.store.item.get(n);if(!t)throw new Error("Parent does not exist");return t.name})))}t(82545),t(19340),t(37532),t(94120),t(43744);var p=t(5250);t(2091)},65107:(e,n,t)=>{"use strict";t.d(n,{$R:()=>a,AL:()=>m,Er:()=>h,Jz:()=>l,Uj:()=>f,gV:()=>c,hN:()=>u,iQ:()=>i,mv:()=>d,sd:()=>o,sm:()=>v,t_:()=>r,tx:()=>s,wA:()=>p});const i="connection-settings",s="document-content",o="origin-document-content",r="variable-collection",a="origin-variable-collection",c="file-content",l="variable-json-schema",d="api",u="new-api",p="api-document",f="document",v="historical-document",m="new-document",h="file"},59943:(e,n,t)=>{"use strict";t.d(n,{CO:()=>T,Cz:()=>h,Gs:()=>u,Ls:()=>m,MT:()=>a,PH:()=>y,Q7:()=>f,QH:()=>r,ZO:()=>p,Zm:()=>l,as:()=>v,lK:()=>g,vA:()=>c});t(76523),t(5084),t(75885);var i=t(23845),s=(t(99850),t(54700),t(28511)),o=t(65107);function r(e){return(null===e||void 0===e?void 0:e.kind)===o.mv}function a(e){return(null===e||void 0===e?void 0:e.kind)===o.hN}function c(e){return l(e)||d(e)||function(e){return(null===e||void 0===e?void 0:e.kind)===o.sm}(e)||function(e){return(null===e||void 0===e?void 0:e.kind)===o.AL}(e)}function l(e){return(null===e||void 0===e?void 0:e.kind)===o.wA}function d(e){return(null===e||void 0===e?void 0:e.kind)===o.Uj}function u(e){return(null===e||void 0===e?void 0:e.kind)===o.Er}function p(e){return(null===e||void 0===e?void 0:e.kind)===o.iQ}function f(e){return(null===e||void 0===e?void 0:e.kind)===o.tx||(null===e||void 0===e?void 0:e.kind)===o.sd}function v(e){return(null===e||void 0===e?void 0:e.kind)===o.t_||(null===e||void 0===e?void 0:e.kind)===o.$R}function m(e,n){const{itemId:t,kind:i,workspaceId:s,...o}=n;return{...e,...o}}function h(e){const n=(0,s.n1)(JSON.stringify(e.schema));return{...e,hash:n}}function y(e,n){const t=null===e||void 0===e?void 0:e.http;return t?{...t,authentication:E(t.authentication,n),endpoint:g(t.endpoint,n),sdlEndpoint:t.sdlEndpoint?g(t.sdlEndpoint,n):t.sdlEndpoint,sseSubscriptionEndpoint:t.sseSubscriptionEndpoint?g(t.sseSubscriptionEndpoint,n):t.sseSubscriptionEndpoint,subscriptionEndpoint:t.subscriptionEndpoint?g(t.subscriptionEndpoint,n):t.subscriptionEndpoint,headers:t.headers?t.headers.map((e=>({...e,name:g(e.name,n),value:g(e.value,n)}))):t.headers}:null}function E(e,n){if(e)return e?{...e,basicOptions:e.basicOptions?{password:g(e.basicOptions.password,n),username:g(e.basicOptions.username,n)}:void 0,bearerOptions:e.bearerOptions?{prefix:e.bearerOptions.prefix?g(e.bearerOptions.token,n):void 0,token:g(e.bearerOptions.token,n)}:void 0,oAuth2Options:I(e.oAuth2Options,n),headerValue:e.headerValue?g(e.headerValue,n):void 0}:void 0}function I(e,n){return e?{...e,accessTokenUrl:g(e.accessTokenUrl,n),audience:g(e.audience,n),authorizationUrl:g(e.authorizationUrl,n),clientId:g(e.clientId,n),clientSecret:g(e.clientSecret,n),origin:g(e.origin,n),password:g(e.password,n),prefix:g(e.prefix,n),redirectUrl:g(e.redirectUrl,n),resource:g(e.resource,n),scope:g(e.scope,n),state:g(e.state,n),username:g(e.username,n),sessionId:e.sessionId?g(e.sessionId,n):void 0}:void 0}function g(e,n){let t=e;const s=e.matchAll(i.vZ);for(const i of s){var o;t=t.replace(i[0],null!==(o=n.get(i[1]))&&void 0!==o?o:i[0])}return t}function T(e){const n=new Map;for(const{name:t,value:i,currentValue:s,enabled:o}of e)o&&n.set(t,s||i);return n}},5250:(e,n,t)=>{"use strict";t.d(n,{q:()=>r});var i=t(99850),s=t(65107),o=t(59943);async function r(e,n,t){return(0,i.SE)(["attachment","item"],"readwrite",(async t=>{let i=await t.store.item.get(e);if(!(0,o.vA)(i))return t.abort("Item does not exist or is not of type Document.");const r=(0,o.Cz)({itemId:e,workspaceId:i.workspaceId,kind:s.Jz,schema:n});return await t.store.attachment.put(r),r}),t)}},9416:(e,n,t)=>{"use strict";t.d(n,{Gk:()=>d,Hw:()=>i,JZ:()=>o,Ph:()=>u,X:()=>r,hP:()=>l,jI:()=>c,pp:()=>a,wv:()=>s});const i="no-auth",s="bearer",o="oauth2",r="basic",a="graphql-ws",c="auto",l=c,d="graphql-transport-ws",u="graphql-sse"},39588:(e,n,t)=>{"use strict";t.d(n,{AN:()=>s.A,L2:()=>i.L,hb:()=>d});var i=t(4537),s=(t(78238),t(60212)),o=(t(62316),t(93967),t(54913),t(75885),t(23845)),r=t(28511),a=t(20278),c=t(41192),l=t(20709);const d=new l.Environment({network:l.Network.create(((e,n,t)=>l.Observable.from((0,i.L)("/graphql")).mergeMap((t=>l.Observable.create((i=>l.Observable.from(new Promise(((s,a)=>{(async function(t,i){try{const{uri:s,headers:a}=i;a.set(o.VX,"application/json");const l=await fetch(s,{body:JSON.stringify(e.id?{id:e.id,variables:n}:{query:e.text,variables:n}),headers:a,method:"POST"}),d=await(0,c.z)(l);if((0,r.Td)(d))for await(const e of d){if(!e.json){t.error(new Error("Failed to parse part as json."));break}if("data"in e.body&&t.next(e.body),"incremental"in e.body)for(const n of e.body.incremental)if("data"in n)t.next({...n,hasNext:e.body.hasNext});else if(n.items){const i=n.path.slice(0,-1);let s=n.path.at(-1);for(const o of n.items)t.next({...n,path:i.concat(s++),data:o,hasNext:e.body.hasNext})}else t.next({...n,data:n.items,hasNext:e.body.hasNext})}else t.next(await d.json());t.complete()}catch(s){s instanceof Error?t.error(s,!0):t.error(new Error("Unknown error"),!0)}})(i,t).then(s,a)}))).subscribe({})))))),((e,n)=>l.Observable.from((0,i.L)("/graphql")).map((e=>{let{uri:n,headers:t}=e;const i={};return t.forEach(((e,n)=>{i[n]=e})),(0,a.UU)({url:n,headers:i})})).mergeMap((t=>l.Observable.create((i=>{var s,o;const r=t.subscribe({id:null!==(s=e.id)&&void 0!==s?s:void 0,query:null!==(o=e.text)&&void 0!==o?o:"",variables:n},{next:e=>{var n;let{data:t,errors:s,extensions:o}=e;return i.next({data:null!==t&&void 0!==t?t:void 0,errors:null!==(n=null===s||void 0===s?void 0:s.map((e=>{var n;return{message:e.message,locations:null===(n=e.locations)||void 0===n?void 0:n.map((e=>{let{line:n,column:t}=e;return{line:n,column:t}}))}})))&&void 0!==n?n:[],extensions:o})},complete:i.complete,error:e=>{e instanceof Error?i.error(e,!0):i.error(new Error("Unknown error"),!0)}});return{closed:i.closed,unsubscribe:r}})))))),store:new l.Store(new l.RecordSource)});t(77122)},69529:(e,n,t)=>{"use strict";t.d(n,{FG:()=>i.FG,Q8:()=>s.Q8,S5:()=>i.S5,YR:()=>i.YR,g$:()=>i.g$,mv:()=>o.m,sP:()=>i.sP,tB:()=>i.tB,xs:()=>i.xs});var i=t(67466),s=t(97353),o=t(26845)},13295:(e,n,t)=>{"use strict";t.d(n,{N5:()=>r,VJ:()=>s,c:()=>a,tB:()=>o});var i=t(96243);function s(e){return!!e&&"object"===typeof e&&"kind"in e&&Object.values(i.xs).includes(e.kind)}function o(e){return c(e,i.xs.OPERATION_DEFINITION)}function r(e){return c(e,i.xs.FIELD)}function a(e){return c(e,i.xs.DIRECTIVE)}function c(e,n){return!!e&&"object"===typeof e&&"kind"in e&&e.kind===n&&!("isConst"in e)}},96243:(e,n,t)=>{"use strict";t.d(n,{S5:()=>r,Yp:()=>s,hd:()=>o,xs:()=>i});let i=function(e){return e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLES_DEFINITION="VariablesDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT_DICT="ArgumentDict",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.NUMBER="NumberValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e}({}),s=function(e){return e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.QUESTION_MARK="?",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.BOOLEAN="Boolean",e.NUMBER="Number",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment",e.KEYWORD="Keyword",e.INVALID="Invalid",e}({});const o={Name:[],Document:["definitions"],OperationDefinition:["name","variablesDefinition","directives","selectionSet"],VariablesDefinition:["variableDefinitions"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","argumentDict","directives","selectionSet"],ArgumentDict:["arguments"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","typeCondition","directives","selectionSet"],NumberValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","argumentDict"],NamedType:["name"],ListType:["type"],NonNullType:["type"]};let r=function(e){return e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription",e}({})},67466:(e,n,t)=>{"use strict";t.d(n,{xs:()=>i.xs,sP:()=>B.sP,S5:()=>i.S5,g$:()=>a.g$,Id:()=>a.Id,tB:()=>s.tB,FG:()=>d,YR:()=>B.YR});var i=t(96243),s=t(13295),o=(t(36022),t(75885),t(62967)),r=t(92398),a=t(30628);const c={...o.qx,DEFAULT:"DefaultValue",NUMBER:"NumberValue"},l={...r.ParseRules,Definition:e=>{switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return"FragmentDefinition"}}};function d(e){const n=(0,o.r5)({eatWhitespace:e=>e.eatWhile(r.isIgnored),lexRules:r.LexRules,parseRules:l,editorConfig:{}}),t=e.split(/\n/).map(((e,n,t)=>{let{length:i}=t;return new o.Qb(e+(i>n+1?"\n":""))})),s=n.startState(),d=F("document",i.Yp.SOF,0,1,1,1,0,0),C=[d],B=[{kind:i.xs.DOCUMENT,location:[0,0],definitions:[],tokens:C}];let U=d,Y=0,Q=1,j=1;for(let o=0;o<t.length;o++){const e=t[o];for(j=o+1;!e.eol();){Q=e.column()+1;const t=e.getCurrentPosition(),o=n.token(e,s),r=s.kind,a=e.current();if(r&&"comment"!==o&&"ws"!==o&&(U=F(o,a,C.length,j,Q,e.column()+1,Y+t,Y+e.getCurrentPosition()),C.push(U),U.kind!==i.Yp.INVALID))switch(r){case c.DOCUMENT:I(B,U),E(B,U);break;case c.QUERY:case c.MUTATION:case c.SUBSCRIPTION:y(B,U),I(B,U),E(B,U);break;case c.FRAGMENT_DEFINITION:v(B,U),E(B,U);break;case c.INLINE_FRAGMENT:h(B,U),E(B,U);break;case c.FRAGMENT_SPREAD:m(B,U);break;case c.FIELD:f(B,U),k(B,U),E(B,U);break;case c.ALIASED_FIELD:u(B,U),k(B,U),E(B,U);break;case c.SELECTION_SET:y(B,U),E(B,U);break;case c.VARIABLE_DEFINITIONS:w(B,U),I(B,U);break;case c.VARIABLE_DEFINITION:N(B,U),g(B,U);break;case c.DEFAULT:b(B,U);break;case c.VARIABLE:T(B,U);break;case c.DIRECTIVE:p(B,U);break;case c.LIST_TYPE:N(B,U),A(B,U);break;case c.NAMED_TYPE:x(B,U);break;case c.ARGUMENTS:w(B,U),O(B,U),k(B,U);break;case c.ARGUMENT:S(B,U);break;case c.LIST:case c.OBJECT:w(B,U),O(B,U);break;case c.OBJECT_FIELD:R(B,U);break;case c.BOOLEAN:L(B,U);break;case c.ENUM:M(B,U);break;case c.NULL:_(B,U);break;case c.NUMBER:D(B,U);break;case c.STRING:P(B,U)}}Y+=e.getCurrentPosition(),Q=e.column()+1}const G=(0,a.Am)(B,i.xs.DOCUMENT),V=F("document",i.Yp.EOF,C.length,j,Q,Q,Y,Y);return C.push(V),G.location[1]=V.index,G}function u(e,n){switch(n.kind){case i.Yp.NAME:{let t=(0,a.j1)(e,i.xs.SELECTION_SET,i.xs.FIELD);function s(t){const s={kind:i.xs.FIELD,location:[n.index,n.index],alias:(0,a.Oj)(n)};t.selections.push(s),e.push(s)}(0,a.M8)(e,n),t.kind===i.xs.SELECTION_SET?s(t):t.alias?t.name=(0,a.Oj)(n):(t=(0,a.I)(e,i.xs.SELECTION_SET),s(t))}break;case i.Yp.COLON:(0,a.M8)(e,n)}}function p(e,n){switch(n.kind){case i.Yp.AT:{const t=(0,a.I)(e,i.xs.OPERATION_DEFINITION,i.xs.VARIABLE_DEFINITION,i.xs.FRAGMENT_DEFINITION,i.xs.FIELD,i.xs.FRAGMENT_SPREAD,i.xs.INLINE_FRAGMENT);if((0,a.M8)(e,n),t.kind===i.xs.VARIABLE_DEFINITION){const s={kind:i.xs.DIRECTIVE,location:[n.index,n.index],isConst:!0};t.directives?t.directives.push(s):t.directives=[s],e.push(s)}else{const s={kind:i.xs.DIRECTIVE,location:[n.index,n.index]};t.directives?t.directives.push(s):t.directives=[s],e.push(s)}}break;case i.Yp.NAME:(0,a.M8)(e,n),(0,a.j1)(e,i.xs.DIRECTIVE).name=(0,a.Oj)(n)}}function f(e,n){if(n.kind===i.Yp.NAME){const t=(0,a.I)(e,i.xs.SELECTION_SET);(0,a.M8)(e,n);const s={kind:i.xs.FIELD,location:[n.index,n.index],name:(0,a.Oj)(n)};t.selections.push(s),e.push(s)}}function v(e,n){switch(n.kind){case i.Yp.KEYWORD:if((0,a.M8)(e,n),"fragment"===n.value){const t=(0,a.j1)(e,i.xs.DOCUMENT),s={kind:i.xs.FRAGMENT_DEFINITION,location:[n.index,n.index]};t.definitions.push(s),e.push(s)}break;case i.Yp.NAME:(0,a.M8)(e,n),(0,a.j1)(e,i.xs.FRAGMENT_DEFINITION).name=(0,a.Oj)(n)}}function m(e,n){switch(n.kind){case i.Yp.SPREAD:{const t=(0,a.I)(e,i.xs.SELECTION_SET);(0,a.M8)(e,n);const s={kind:i.xs.FRAGMENT_SPREAD,location:[n.index,n.index]};t.selections.push(s),e.push(s)}break;case i.Yp.NAME:(0,a.M8)(e,n),(0,a.j1)(e,i.xs.FRAGMENT_SPREAD).name=(0,a.Oj)(n)}}function h(e,n){switch(n.kind){case i.Yp.SPREAD:{const t=(0,a.I)(e,i.xs.SELECTION_SET);(0,a.M8)(e,n);const s={kind:i.xs.INLINE_FRAGMENT,location:[n.index,n.index]};t.selections.push(s),e.push(s)}break;case i.Yp.KEYWORD:(0,a.M8)(e,n)}}function y(e,n){switch(n.kind){case i.Yp.BRACE_L:if(1===e.length){const t=(0,a.j1)(e,i.xs.DOCUMENT),s={kind:i.xs.OPERATION_DEFINITION,operationType:i.S5.QUERY,location:[n.index,n.index]};(0,a.M8)(e,n),t.definitions.push(s),e.push(s)}break;case i.Yp.KEYWORD:{const t=(0,a.j1)(e,i.xs.DOCUMENT);(0,a.M8)(e,n);const s={kind:i.xs.OPERATION_DEFINITION,operationType:n.value,location:[n.index,n.index]};t.definitions.push(s),e.push(s)}break;case i.Yp.NAME:(0,a.M8)(e,n),(0,a.j1)(e,i.xs.OPERATION_DEFINITION).name=(0,a.Oj)(n)}}function E(e,n){switch(n.kind){case i.Yp.BRACE_L:{const t={kind:i.xs.SELECTION_SET,location:[n.index,n.index],selections:[],closed:!1};let s=(0,a.I)(e,i.xs.OPERATION_DEFINITION,i.xs.FRAGMENT_DEFINITION,i.xs.INLINE_FRAGMENT,i.xs.FIELD);(0,a.M8)(e,n),s.selectionSet=t,e.push(t)}break;case i.Yp.BRACE_R:{const t=(0,a.Am)(e,i.xs.SELECTION_SET,i.xs.FRAGMENT_SPREAD,i.xs.INLINE_FRAGMENT,i.xs.FIELD);if((0,a.M8)(e,n),t.kind===i.xs.SELECTION_SET)e.splice(-1,1),(0,a.Nm)(t,n),t.closed=!0;else{const[,n]=e.splice(-2,2);n.closed=!0}}}}function I(e,n){switch(n.kind){case i.Yp.PAREN_L:{const t={kind:i.xs.VARIABLES_DEFINITION,location:[n.index,n.index],variableDefinitions:[],closed:!1},s=(0,a.j1)(e,i.xs.OPERATION_DEFINITION);(0,a.M8)(e,n),s.variablesDefinition=t,e.push(t)}break;case i.Yp.PAREN_R:{const t=(0,a.Am)(e,i.xs.VARIABLES_DEFINITION);(0,a.M8)(e,n),(0,a.Nm)(t,n),t.closed=!0}}}function g(e,n){n.kind===i.Yp.COLON&&(0,a.M8)(e,n)}function T(e,n){var t;switch(n.kind){case i.Yp.DOLLAR:{const t=(0,a.I)(e,i.xs.VARIABLES_DEFINITION,i.xs.ARGUMENT,i.xs.OBJECT_FIELD);switch((0,a.M8)(e,n),t.kind){case i.xs.VARIABLES_DEFINITION:{const s={kind:i.xs.VARIABLE_DEFINITION,location:[n.index,n.index],variable:{kind:i.xs.VARIABLE,location:[n.index,n.index]}};t.variableDefinitions.push(s),e.push(s)}break;case i.xs.ARGUMENT:case i.xs.OBJECT_FIELD:{const e={kind:i.xs.VARIABLE,location:[n.index,n.index]};t.value=e}}}break;case i.Yp.NAME:{const s=(0,a.j1)(e,i.xs.VARIABLE_DEFINITION,i.xs.ARGUMENT,i.xs.OBJECT_FIELD);switch((0,a.M8)(e,n),s.kind){case i.xs.VARIABLE_DEFINITION:(0,a.Nm)(s.variable,n),s.variable.name=(0,a.Oj)(n);break;case i.xs.ARGUMENT:case i.xs.OBJECT_FIELD:(null===(t=s.value)||void 0===t?void 0:t.kind)===i.xs.VARIABLE&&((0,a.Nm)(s.value,n),s.value.name=(0,a.Oj)(n))}}}}function b(e,n){n.kind===i.Yp.EQUALS&&(0,a.M8)(e,n)}function A(e,n){switch(n.kind){case i.Yp.BRACKET_L:{const t=(0,a.j1)(e,i.xs.VARIABLE_DEFINITION,i.xs.LIST_TYPE);switch((0,a.M8)(e,n),t.kind){case i.xs.VARIABLE_DEFINITION:{const s={kind:i.xs.LIST_TYPE,location:[n.index,n.index],closed:!1};t.type=s,e.push(s)}break;case i.xs.LIST_TYPE:{const s={kind:i.xs.LIST_TYPE,location:[n.index,n.index],closed:!1};t.type=s,e.push(s)}}}break;case i.Yp.BRACKET_R:{const t=(0,a.j1)(e,i.xs.LIST_TYPE,i.xs.NON_NULL_TYPE,i.xs.NAMED_TYPE);switch((0,a.M8)(e,n),t.kind){case i.xs.LIST_TYPE:t.closed=!0;break;case i.xs.NON_NULL_TYPE:case i.xs.NAMED_TYPE:(0,a.j1)(e,i.xs.LIST_TYPE).closed=!0}}}}function N(e,n){if(n.kind===i.Yp.BANG){const t=(0,a.Am)(e,i.xs.LIST_TYPE,i.xs.NAMED_TYPE),s={kind:i.xs.NON_NULL_TYPE,location:[t.location[0],n.index],type:t};(0,a.M8)(e,n),(0,a.j1)(e,i.xs.VARIABLE_DEFINITION,i.xs.LIST_TYPE).type=s}}function x(e,n){if(n.kind===i.Yp.NAME){const t=(0,a.j1)(e,i.xs.FRAGMENT_DEFINITION,i.xs.INLINE_FRAGMENT,i.xs.VARIABLE_DEFINITION,i.xs.LIST_TYPE),s={kind:i.xs.NAMED_TYPE,location:[n.index,n.index],name:(0,a.Oj)(n)};t.kind===i.xs.FRAGMENT_DEFINITION||t.kind===i.xs.INLINE_FRAGMENT?t.typeCondition=s:(t.type=s,e.push(s))}}function k(e,n){switch(n.kind){case i.Yp.PAREN_L:{const t=(0,a.j1)(e,i.xs.FIELD,i.xs.DIRECTIVE);if(t.kind===i.xs.DIRECTIVE&&"isConst"in t){const s={kind:i.xs.ARGUMENT_DICT,location:[n.index,n.index],isConst:!0,arguments:[],closed:!1};t.argumentDict=s,e.push(s)}else{const s={kind:i.xs.ARGUMENT_DICT,location:[n.index,n.index],arguments:[],closed:!1};t.argumentDict=s,e.push(s)}}break;case i.Yp.PAREN_R:{const t=(0,a.Am)(e,i.xs.ARGUMENT_DICT);(0,a.M8)(e,n),(0,a.Nm)(t,n),t.closed=!0}}}function S(e,n){switch(n.kind){case i.Yp.NAME:{const t=(0,a.I)(e,i.xs.ARGUMENT_DICT);if((0,a.M8)(e,n),"isConst"in t){const s={kind:i.xs.ARGUMENT,location:[n.index,n.index],isConst:!0,name:(0,a.Oj)(n)};t.arguments.push(s),e.push(s)}else{const s={kind:i.xs.ARGUMENT,location:[n.index,n.index],name:(0,a.Oj)(n)};t.arguments.push(s),e.push(s)}}break;case i.Yp.COLON:(0,a.M8)(e,n)}}function w(e,n){switch(n.kind){case i.Yp.BRACKET_L:{const t=(0,a.j1)(e,i.xs.VARIABLE_DEFINITION,i.xs.ARGUMENT,i.xs.OBJECT_FIELD);if((0,a.M8)(e,n),t.kind===i.xs.VARIABLE_DEFINITION){const s={kind:i.xs.LIST,location:[n.index,n.index],isConst:!0,values:[],closed:!1};t.defaultValue=s,e.push(s)}else{const s={kind:i.xs.LIST,location:[n.index,n.index],values:[],closed:!1};t.value=s,e.push(s)}}break;case i.Yp.BRACKET_R:(0,a.M8)(e,n),(0,a.Am)(e,i.xs.LIST).closed=!0}}function O(e,n){switch(n.kind){case i.Yp.BRACE_L:{const t=(0,a.j1)(e,i.xs.VARIABLE_DEFINITION,i.xs.ARGUMENT,i.xs.LIST,i.xs.OBJECT_FIELD);switch((0,a.M8)(e,n),t.kind){case i.xs.VARIABLE_DEFINITION:{const s={kind:i.xs.OBJECT,location:[n.index,n.index],isConst:!0,fields:[],closed:!1};t.defaultValue=s,e.push(s)}break;case i.xs.LIST:if("isConst"in t){const s={kind:i.xs.OBJECT,location:[n.index,n.index],isConst:!0,fields:[],closed:!1};t.values.push(s),e.push(s)}else{const s={kind:i.xs.OBJECT,location:[n.index,n.index],fields:[],closed:!1};t.values.push(s),e.push(s)}break;default:if("isConst"in t){const s={kind:i.xs.OBJECT,location:[n.index,n.index],isConst:!0,fields:[],closed:!1};t.value=s,e.push(s)}else{const s={kind:i.xs.OBJECT,location:[n.index,n.index],fields:[],closed:!1};t.value=s,e.push(s)}}break}case i.Yp.BRACE_R:{const t=(0,a.Am)(e,i.xs.OBJECT);(0,a.M8)(e,n),(0,a.Nm)(t,n),t.closed=!0}}}function R(e,n){switch(n.kind){case i.Yp.NAME:{const t=(0,a.j1)(e,i.xs.OBJECT);(0,a.M8)(e,n);const s={kind:i.xs.OBJECT_FIELD,location:[n.index,n.index],name:(0,a.Oj)(n)};t.fields.push(s),e.push(s)}break;case i.Yp.COLON:(0,a.M8)(e,n)}}function L(e,n){n.kind===i.Yp.BOOLEAN&&C(e,n,{kind:i.xs.BOOLEAN,location:[n.index,n.index],value:Boolean(n.value)})}function M(e,n){var t;n.kind===i.Yp.NAME&&C(e,n,{kind:i.xs.ENUM,location:[n.index,n.index],value:null!==(t=n.value)&&void 0!==t?t:""})}function _(e,n){n.kind===i.Yp.KEYWORD&&C(e,n,{kind:i.xs.NULL,location:[n.index,n.index]})}function D(e,n){var t;n.kind===i.Yp.NUMBER&&C(e,n,{kind:i.xs.NUMBER,location:[n.index,n.index],value:null!==(t=n.value)&&void 0!==t?t:"0"})}function P(e,n){if(n.kind===i.Yp.STRING){var t;const s=(0,a.j1)(e,i.xs.ARGUMENT,i.xs.LIST,i.xs.OBJECT_FIELD,i.xs.STRING);let o=null!==(t=n.value)&&void 0!==t?t:"";const r=s.kind===i.xs.STRING,c=/^""".*?"""$/gi.test(o),l=!r&&/^"""/gi.test(o),d=r&&/"""$/gi.test(o),u=!r&&!l,p=u&&/^".*?"$/gi.test(o)||c||d;if(u?o=p?o.slice(1,-1):o.slice(1):c?o=o.slice(0,-3):(l&&(o=o.slice(3)),d&&(o=o.slice(0,-3))),(0,a.M8)(e,n),r)s.value+="\n"+o,s.closed=p,p&&e.splice(-1,1);else{const t={kind:i.xs.STRING,location:[n.index,n.index],value:o,closed:p,block:l};switch(s.kind){case i.xs.VARIABLE_DEFINITION:s.defaultValue=t;break;case i.xs.LIST:s.values.push(t);break;default:s.value=t}l&&!p&&e.push(t)}}}function C(e,n,t){const s=(0,a.j1)(e,i.xs.VARIABLE_DEFINITION,i.xs.ARGUMENT,i.xs.LIST,i.xs.OBJECT_FIELD);switch((0,a.M8)(e,n),s.kind){case i.xs.VARIABLE_DEFINITION:s.defaultValue=t;break;case i.xs.LIST:s.values.push(t);break;default:s.value=t}}function F(e,n,t,s,o,r,c,l){switch(e){case"document":switch(n){case i.Yp.SOF:case i.Yp.EOF:return(0,a.Ey)(n,t,s,o,r,c,l);default:return(0,a.Ey)(i.Yp.INVALID,t,s,o,r,c,l)}case"punctuation":switch(n){case i.Yp.BANG:case i.Yp.BRACE_L:case i.Yp.BRACE_R:case i.Yp.BRACKET_L:case i.Yp.BRACKET_R:case i.Yp.COLON:case i.Yp.EQUALS:case i.Yp.PAREN_L:case i.Yp.PAREN_R:case i.Yp.SPREAD:return(0,a.Ey)(n,t,s,o,r,c,l);default:return(0,a.Ey)(i.Yp.INVALID,t,s,o,r,c,l)}case"attribute":case"atom":case"def":case"property":case"qualifier":case"string-2":return(0,a.zI)(i.Yp.NAME,n,t,s,o,r,c,l);case"builtin":return(0,a.zI)(i.Yp.BOOLEAN,n,t,s,o,r,c,l);case"keyword":return(0,a.zI)(i.Yp.KEYWORD,n,t,s,o,r,c,l);case"number":return(0,a.zI)(i.Yp.NUMBER,n,t,s,o,r,c,l);case"string":return(0,a.zI)(i.Yp.STRING,n,t,s,o,r,c,l);case"meta":case"variable":switch(n){case i.Yp.AT:case i.Yp.DOLLAR:return(0,a.Ey)(n,t,s,o,r,c,l);default:return(0,a.zI)(i.Yp.NAME,n,t,s,o,r,c,l)}default:return(0,a.Ey)(i.Yp.INVALID,t,s,o,r,c,l)}}t(54596),t(72790);var B=t(85890)},30628:(e,n,t)=>{"use strict";t.d(n,{Am:()=>d,Ey:()=>o,I:()=>l,Id:()=>f,M8:()=>u,Nm:()=>p,Oj:()=>s,g$:()=>a,j1:()=>c,zI:()=>r});t(62316);var i=t(96243);function s(e){var n;return{kind:i.xs.NAME,location:[e.index,e.index],value:null!==(n=e.value)&&void 0!==n?n:""}}function o(e,n,t,i,s,o,r){return{kind:e,index:n,start:{line:t,column:i,position:o},end:{line:t,column:s,position:r}}}function r(e,n,t,i,s,o,r,a){return{kind:e,index:t,start:{line:i,column:s,position:r},end:{line:i,column:o,position:a},value:n}}function a(e,n){const t=e[n[0]],i=e[n[1]];return{start:t.start.position,startToken:t,end:i.end.position,endToken:i}}function c(e){let n,t=e.length-1;for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];for(;t>=0&&(n=e[t--]);){var r;if(s.includes(null===(r=n)||void 0===r?void 0:r.kind))return n}throw new Error('Ancestor for kind "'.concat(s,'" not found!'))}function l(e){let n;for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];for(;e.length>0&&(n=e[e.length-1]);){var o;if(i.includes(null===(o=n)||void 0===o?void 0:o.kind))return n;e.splice(-1,1)}throw new Error('Ancestor for kind "'.concat(i,'" not found!'))}function d(e){let n;for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];for(;e.length>0&&(n=e[e.length-1]);){var o;if(e.splice(-1,1),i.includes(null===(o=n)||void 0===o?void 0:o.kind))return n}throw new Error('Ancestor for kind "'.concat(i,'" not found!'))}function u(e,n){for(let t=0;t<e.length;t++)p(e[t],n)}function p(e,n){e.location[1]=n.index}function f(e,n){let t,s,o=!1,r=!0;return e.kind===i.xs.NON_NULL_TYPE?(r=!1,e.type.kind===i.xs.LIST_TYPE?(t=e.type.type,o=!0):t=e.type):e.kind===i.xs.LIST_TYPE?(t=e.type,o=!0):t=e,t?(s=t.kind===i.xs.LIST_TYPE||t.kind===i.xs.NON_NULL_TYPE?f(t,n):n(t.name.value),s&&{kind:"value-type",isList:o,isOptional:r,type:s}):null}},97353:(e,n,t)=>{"use strict";t.d(n,{CM:()=>i,IK:()=>c,TL:()=>d,Q8:()=>u});let i=function(e){return e.SCHEMA_FIELD="__schema",e.TYPENAME_FIELD="__typename",e.TYPE_FIELD="__type",e.TYPE_FIELDS_FIELD="fields",e.TYPE_INTERFACES_FIELD="interfaces",e.TYPE_POSSIBLE_TYPES_FIELD="possibleTypes",e.TYPE_INPUT_FIELDS_FIELD="inputFields",e}({});const s=":",o=".",r="(",a=")";function c(e,n,t){const i=e+o+n;return t?l(i,t):i}function l(e,n){return e+r+n+s+a}function d(e){let n="argument"===e.kind?e.type:"field"===e.kind?e.valueType:e;for(;"value-type"===n.kind;)n=n.type;return n}function u(e){return!!e&&("type"===e.kind||"query-type"===e.kind||"mutation-type"===e.kind||"subscription-type"===e.kind)}},77317:(e,n,t)=>{"use strict";function i(e,n){const t=e.directiveIsRepeatable?"\n isRepeatable":"",i=e.directiveLocations?"\n locations":"\n onField\n onFragment\n onOperation",s=e.inputValueDeprecation?{includeDeprecated:"(includeDeprecated: true)",isDeprecated:"\n isDeprecated",deprecationReason:"\n deprecationReason"}:{includeDeprecated:"",isDeprecated:"",deprecationReason:""},o=function(e){let n="";for(let t=1;t<e;t++){const i=" ".repeat(e-t);n="\n".concat(i,"ofType {\n").concat(i," kind\n").concat(i," name").concat(n,"\n").concat(i,"}")}return n}((null===n||void 0===n?void 0:n.typeDepth)||6),r=e.oneOf?"\n oneOf":"",a=e.specifiedByUrl?"\n specifiedByURL":"",c=e.subscription?"\n subscriptionType {\n name\n }":"";return"query IntrospectionQuery {\n __schema {\n queryType {\n name\n }\n mutationType {\n name\n }".concat(c,"\n types {\n ...FullType\n }\n directives {\n name\n description").concat(t,"\n args").concat(s.includeDeprecated," {\n ...InputValue\n }").concat(i,"\n }\n }\n}\n\nfragment FullType on __Type {\n kind\n name\n description").concat(a).concat(r,"\n fields(includeDeprecated: true) {\n name\n description\n args").concat(s.includeDeprecated," {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields").concat(s.includeDeprecated," {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n description\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n}\n\nfragment InputValue on __InputValue {\n name\n description\n type {\n ...TypeRef\n }\n defaultValue").concat(s.isDeprecated).concat(s.deprecationReason,"\n}\n\nfragment TypeRef on __Type {\n kind\n name").concat(o,"\n}")}t.d(n,{I:()=>i})},26845:(e,n,t)=>{"use strict";t.d(n,{m:()=>h});t(75885);var i=t(67466),s=t(4473),o=t(68341),r=(t(36022),(0,o.A)("documentAST")),a=(0,o.A)("fragments"),c=(0,o.A)("fragmentSpreads"),l=(0,o.A)("error");class d{constructor(e){Object.defineProperty(this,r,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),(0,s.A)(this,r)[r]=e}get documentAST(){return(0,s.A)(this,r)[r]}get error(){return(0,s.A)(this,l)[l]}set error(e){(0,s.A)(this,l)[l]=e}get hasError(){return!!(0,s.A)(this,l)[l]}getFragment(e){if(!(0,s.A)(this,a)[a]){(0,s.A)(this,a)[a]=new Map;for(const e of(0,s.A)(this,r)[r].definitions){var n;e.kind===i.xs.FRAGMENT_DEFINITION&&null!==(n=e.name)&&void 0!==n&&n.value&&(0,s.A)(this,a)[a].set(e.name.value,e)}}return(0,s.A)(this,a)[a].get(e)}getFragmentSpreads(e){(0,s.A)(this,c)[c]||((0,s.A)(this,c)[c]=new Map);let n=(0,s.A)(this,c)[c].get(e);if(void 0===n){n=[];const t=[e];let o;for(;o=t.pop();)for(const e of o.selections)e.kind===i.xs.FRAGMENT_SPREAD?n.push(e):e.selectionSet&&t.push(e.selectionSet);(0,s.A)(this,c)[c].set(e,n)}return n}}var u=t(97353);const p=2,f=[u.CM.TYPE_FIELDS_FIELD,u.CM.TYPE_INTERFACES_FIELD,u.CM.TYPE_POSSIBLE_TYPES_FIELD,u.CM.TYPE_INPUT_FIELDS_FIELD];function v(e,n){const t=(null===n||void 0===n?void 0:n.maxNestedListDepth)||p;return{Field(n){if(n.name&&(n.name.value===u.CM.SCHEMA_FIELD||n.name.value===u.CM.TYPE_FIELD)&&s(n))return e.error="Maximum introspection depth exceeded",i.sP}};function s(n){var o;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null),a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n.kind===i.xs.FRAGMENT_SPREAD){var c,l;const t=null!==(c=null===(l=n.name)||void 0===l?void 0:l.value)&&void 0!==c?c:"";if(!0===r[t])return!1;const i=e.getFragment(t);if(!i)return!1;try{return r[t]=!0,s(i,r,a)}finally{r[t]=void 0}}if(n.kind===i.xs.FIELD&&n.name&&f.includes(n.name.value)&&++a>t)return!0;if("selectionSet"in n&&null!==(o=n.selectionSet)&&void 0!==o&&o.selections)for(const e of n.selectionSet.selections)if(s(e,r,a))return!0;return!1}}t(45155),t(49997),t(57928),t(2813),t(32990),t(37669),t(35033);function m(e){const n=new Set,t=[],s=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>!!o(e)&&i.sP};function o(i){var r;const a=null===(r=i.name)||void 0===r?void 0:r.value;if(!a||!i.selectionSet||n.has(a))return!1;n.add(a);const c=e.getFragmentSpreads(i.selectionSet);if(null===c||void 0===c||!c.length)return!1;s[a]=t.length;for(const n of c){var l;const i=null===(l=n.name)||void 0===l?void 0:l.value;if(!i)continue;const r=s[i];if(t.push(n),void 0!==r){const n=t.slice(r).slice(0,-1).map((e=>{var n,t;return'"'.concat(null!==(n=null===(t=e.name)||void 0===t?void 0:t.value)&&void 0!==n?n:"",'"')})).join(", ");return e.error='Cannot spread fragment "'.concat(i,'" within itself')+(""!==n?" via ".concat(n,"."):"."),!0}{const n=e.getFragment(i);if(n&&o(n))return!0}t.pop()}return s[a]=void 0,!1}}function h(e){const n=[m,v],t=new d(e);for(const s of n)if((0,i.YR)(e,s(t)),t.error)return{success:!1,errorMessage:t.error};return{success:!0}}},15793:(e,n,t)=>{"use strict";t.d(n,{$b:()=>i,AO:()=>p,Ai:()=>r,Ku:()=>s,NK:()=>h,Rx:()=>m,YQ:()=>c,im:()=>o,nH:()=>d,py:()=>f,yJ:()=>u,yY:()=>v,yi:()=>l,z5:()=>a});let i=function(e){return e[e.error=0]="error",e[e.warning=1]="warning",e[e.info=2]="info",e}({});let s=function(e){return e.GRAPHQL_OPERATION="graphql-operation",e.GRAPHQL_INTROSPECTION="graphql-introspection",e.GRAPHQL_SDL_FETCH="graphql-sdl-fetch",e.GRAPHQL_SDL_PROBE="graphql-sdl-probe",e}({});const o="http-request",r="http-response",a="http-response-body-chunk",c="http-response-cancelled",l="http-response-failed",d="http-response-finished",u="scope-begin",p="scope-end",f="subscription-request-started",v="subscription-request-protocol",m="subscription-request-message",h="subscription-request-stopped"},33462:(e,n,t)=>{"use strict";var i=t(40409),s=t(47924),o=t(50072),r=t(77740),a=t(56242),c=t(90126);function l(e,n){let{id:t,payload:{documentId:i},type:l}=e;const d=new AbortController;(0,s.UT)({id:t,cancel:()=>d.abort(),execute:async()=>{const e=await(0,o.TES)(i,d.signal);let s={documentId:i,operations:[]};if(!e)return void n.sendMessage(new c.Q(l,s,t));const u=await(0,o.snc)(i,d.signal);if(!u)return void n.sendMessage(new c.Q(l,s,t));const p=(0,r.bF)(n,e);if(!p)return void n.sendMessage(new c.Q(l,{documentId:i,operations:[]},t));const f=(0,r.Bg)(p),v=await(0,a.bN)(u.sdlEndpoint||u.endpoint);let m;if(v){var h;const n=e.workspaceId?await(0,o._um)(e.workspaceId):void 0,t=(0,r.DM)(p,(e=>v.getType(e)),(e=>v.getFields(e)),n);m=null===(h=await(0,o.qhv)(i,t))||void 0===h?void 0:h.hash}n.sendMessage(new c.Q(l,{documentId:i,operations:f,variableJsonSchemaHash:m},t))}})}function d(e,n){let{id:t,payload:{documentId:i},type:a}=e;const l=new AbortController;(0,s.UT)({id:t,cancel:()=>l.abort(),execute:async()=>{const e=await(0,o.TES)(i,l.signal),s=(0,r.bF)(n,e);if(!s)return void n.sendMessage(new c.Q(a,{documentId:i,operations:[]},t));const d=(0,r.Bg)(s);n.sendMessage(new c.Q(a,{documentId:i,operations:d},t))}})}var u=t(28511);function p(e,n){let{id:t,payload:{documentId:i}}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{const e=await(0,o.TES)(i);let s={documentId:i};if(e&&e.workspaceId){const t=await(0,o.snc)(i);if(t){const c=(0,r.bF)(n,e),l=await(0,a.bN)(t.sdlEndpoint||t.endpoint);if(c&&l){const n=await(0,o._um)(e.workspaceId),t=(0,r.DM)(c,(e=>l.getType(e)),(e=>l.getFields(e)),n),a=await(0,o.qhv)(i,t);s={documentId:i,variableJsonSchemaHash:null===a||void 0===a?void 0:a.hash}}}}n.sendMessage(new c.Q("variable-json-schema-updated",s,t))}})}t(62316),t(5084),t(75885);var f=t(23845),v=t(69529),m=t(15793),h=t(20278),y=t(34145),E=t(1103);const I="Invalid Schema Endpoint for more info double click on the failed Result.",g="Invalid HTTP Header for more info double click on the failed Result.";function T(e,n){let{payload:{documentId:t,workspaceId:i,environmentId:a,operationIndex:c=0}}=e;const l=new AbortController;(0,s.UT)({id:t,cancel:()=>l.abort(),execute:async()=>{var e;const s=await(0,o.TES)(t,l.signal);if(!s)return;const[d,p]=await Promise.all([(0,o.OfI)(t,l.signal),(0,o.WGI)(a)]),f=(0,o.PHK)(d,p);if(!f)return;let m;l.signal.addEventListener("abort",(function e(){var n;null===(n=m)||void 0===n||n.cancel(),l.signal.removeEventListener("abort",e)}));const h=(0,u.sX)(),y=(0,r.bF)(n,s,!0),E=(0,r.P6)(f),I=(0,r.rx)(n,s,a,c,p);if(!y||!I&&null!==(e=s.variables)&&void 0!==e&&e.length){if((0,r.Hn)(E)){const e=v.S5.QUERY;return(0,r.Dt)(n,t,{id:h,operationType:e,operationStatus:"failed",started:(0,u.tB)(),isMultipart:!1,parsedBody:{errors:[{message:g}]}}),(0,r.Ix)(n,t,h,e),void(0,r.Hc)(n,t,E,b(e),h)}m=A(n,i,h,s,v.S5.QUERY,void 0,c,I,f,E)}else{const[e,o]=(0,r.eu)(y,c),a=(0,v.mv)(y);if(a.success||(console.warn(a.errorMessage),(0,r.R4)(n,a.errorMessage,t)),(0,r.Hn)(E)){const i=e===v.S5.SUBSCRIPTION?{id:h,operationName:o,operationType:e,operationStatus:"failed",started:(0,u.tB)(),payload:{errors:[{message:g}]}}:{id:h,operationName:o,operationType:e,operationStatus:"failed",started:(0,u.tB)(),isMultipart:!1,parsedBody:{errors:[{message:g}]}};return(0,r.Dt)(n,t,i),(0,r.Ix)(n,t,h,e),void(0,r.Hc)(n,t,E,b(e,o),h)}const l=!0,[d,p]=a.success&&l?(0,r.I1)(y,s.body,c)(s,I):[s,I];if(e===v.S5.SUBSCRIPTION)m=N(n,i,h,d,e,o,c,p,f,E);else{var T;const t=a.success&&(f.endpoint.length||null!==(T=f.sdlEndpoint)&&void 0!==T&&T.length)?await(0,r.Q0)(i,y,f,o,p):void 0;m=A(n,i,h,d,e,o,c,p,f,E,t,l)}}l.signal.aborted||await m.execute()}})}function b(e,n){const t=n?'"'.concat(n,'" '):"",i=function(e){switch(e){case v.S5.MUTATION:return"Mutation";case v.S5.SUBSCRIPTION:return"Subscription";default:return"Query"}}(e);return"".concat(i," operation ").concat(t)}const A=function(e,n,t,i,s,o,a,c,l,d,p){let f=arguments.length>11&&void 0!==arguments[11]&&arguments[11];if(s===v.S5.SUBSCRIPTION)throw new Error("Subscription type is not allowed!");const h=new AbortController,{id:y,body:E}=i,g=()=>{(0,r.o8)(e,y,t,s)};return{cancel:async()=>h.abort(),execute:()=>new Promise((async i=>{if(null!==l&&void 0!==l&&l.endpoint.length){var v;const I=(0,u.tB)();(0,r.Ym)(e,y,t,s);const T={headers:null!==d&&void 0!==d?d:new Headers,uri:l.endpoint,useGET:l.useGet,includeCookies:l.includeCookies};let b=!1;const A=await(0,r.RK)(T,{operationName:f?void 0:o,query:E,variables:c,files:p},{onComplete:e=>{b||g(),i()},onError:(n,i)=>{b=!0,n instanceof r.S1?(0,r.Mv)(e,y,t,s):((0,r.f5)(e,y,t,{payload:n,success:!1,received:(0,u.tB)(),index:i}),(0,r.Ix)(e,y,t,s))},onNext:(n,i)=>{(0,r.f5)(e,y,t,{payload:n.content,success:!0,received:(0,u.tB)(),index:i})}},(0,r.Dx)(e,y,t,m.Ku.GRAPHQL_OPERATION,{name:o}),h.signal),{parsedBody:N,error:x}=A,k="ClientAbortError"===(null===x||void 0===x?void 0:x.name)?"cancelled":x||null!==N&&void 0!==N&&null!==(v=N.errors)&&void 0!==v&&v.length?"failed":"succeeded";switch(n&&(0,r.R7)(e,y,(0,u.lm)(),n,k,s,o,a),(0,r.Dt)(e,y,{id:t,operationName:o,operationStatus:k,operationType:s,started:I,...A}),k){case"cancelled":(0,r.Mv)(e,y,t,s),i();break;case"failed":(0,r.Ix)(e,y,t,s),i();break;default:A.isMultipart||(g(),i())}}else(0,r.Dt)(e,y,{id:t,operationName:o,operationType:s,operationStatus:"failed",started:(0,u.tB)(),isMultipart:!1,parsedBody:{errors:[{message:I}]}}),(0,r.Ix)(e,y,t,s),(0,r.vl)(e,y,b(s,o),t),i()}))}},N=(e,n,t,i,s,a,c,l,d,p)=>{if(s!==v.S5.SUBSCRIPTION)throw new Error("Only the Subscription type is allowed here!");const f=new AbortController,{id:h,body:y}=i;return{cancel:async()=>f.abort(),execute:async()=>{let i=!1;const v=function(e){if(e)return e.sseSubscriptionEndpoint||e.endpoint;return""}(d),E=function(e){if(e)return e.subscriptionEndpoint||e.endpoint.replace(/^http/i,"ws");return""}(d);if(v.length||E.length)return new Promise((async I=>{var g;const T=(0,u.lm)(),b=p?Object.fromEntries(p.entries()):{},A=null!==(g=d.subscriptionProtocol)&&void 0!==g?g:o.hPE,N=e=>e===o.PhU?v:E;(0,r.Ym)(e,h,t,s),(0,r.pm)(e,h,t,m.Ku.GRAPHQL_OPERATION,(0,u.tB)(),N(A),A,b);const k=o=>{if(i)return;i=!0;const l=function(e){if("type"in e)return["closed"===e.type&&"code"in e?{message:"Subscription closed",extensions:{code:e.code,reason:e.reason,wasClean:e.wasClean}}:{message:"Unknown subscription error"}];if((0,u.Rr)(e))return e.every((e=>"message"in e))?e.map((e=>{let{message:n}=e;return{message:n}})):e.length<=1?[{message:"Unknown subscription error"}]:[{message:"".concat(e.length," unknown subscription errors")}];return["message"in e?{message:e.message}:e]}(o);(0,r.VS)(e,h,t,m.Ku.GRAPHQL_OPERATION,(0,u.tB)(),"failed",l),(0,r.Dt)(e,h,{id:t,operationName:a,operationType:s,operationStatus:"failed",started:(0,u.tB)(),payload:{errors:l}}),n&&(0,r.R7)(e,h,T,n,"failed",s,a,c),(0,r.Ix)(e,h,t,s),I()},w=x[A](N,b,{includeCookies:d.includeCookies,onConnected:i=>{i?k(i):((0,r.Dt)(e,h,{id:t,operationName:a,operationType:s,operationStatus:"succeeded",started:(0,u.tB)()}),n&&(0,r.R7)(e,h,T,n,"succeeded",s,a,c))}});try{function R(){w.close(),(0,r.Mv)(e,h,t,s),(0,r.VS)(e,h,t,m.Ku.GRAPHQL_OPERATION,(0,u.tB)(),"closed"),f.signal.removeEventListener("abort",R),I()}const L=await w.execute({query:y,operationName:a,variables:l},(n=>(0,r.id)(e,h,t,(0,u.tB)(),"string"===typeof n?n:JSON.stringify(n))));w instanceof S&&w.protocol&&(0,r.xN)(e,h,t,m.Ku.GRAPHQL_OPERATION,w.protocol);let M=0;L.subscribe({next:n=>{var i;(0,r.VT)(e,h,t,{payload:n,received:(0,u.tB)(),success:!(null!==n&&void 0!==n&&null!==(i=n.errors)&&void 0!==i&&i.length),index:M++})},error:k,complete:()=>{(0,r.o8)(e,h,t,s),(0,r.VS)(e,h,t,m.Ku.GRAPHQL_OPERATION,(0,u.tB)(),"completed"),I()}}),f.signal.aborted?R():f.signal.addEventListener("abort",R)}catch(O){k(O)}}));(0,r.Dt)(e,h,{id:t,operationName:a,operationType:s,operationStatus:"failed",started:(0,u.tB)(),payload:{errors:[{message:I}]}}),(0,r.Ix)(e,h,t,s),(0,r.vl)(e,h,b(s,a),t)}}};const x={[o.jIU]:(e,n,t)=>new S(e,n,t),[o.Gkb]:(e,n,t)=>new O(e,n,t),[o.ppT]:(e,n,t)=>new w(e,n,t),[o.PhU]:(e,n,t)=>new R(e,n,t)};class k{constructor(e,n,t){this.resolveSubscriptionUrl=e,this.connectionParams=n,this.extraOptions=t}}class S extends k{constructor(){super(...arguments),this.provider=void 0,this.subscriptionProtocol=void 0}async execute(e,n){const t=this;if(!this.provider){const[e,n]=await new Promise((e=>{const n=t.resolveSubscriptionUrl(o.jIU);if(!n.length)return void e([new R(t.resolveSubscriptionUrl,t.connectionParams,t.extraOptions),o.PhU]);const i=new WebSocket(n,[o.Gkb,o.ppT]);i.onopen=function(){if(i.protocol===o.ppT)e([new w(t.resolveSubscriptionUrl,t.connectionParams,t.extraOptions),o.ppT]);else e([new O(t.resolveSubscriptionUrl,t.connectionParams,t.extraOptions),o.Gkb]);i.close()},i.onerror=function(n){e([new R(t.resolveSubscriptionUrl,t.connectionParams,t.extraOptions),o.PhU]),i.close()}}));this.provider=e,this.subscriptionProtocol=n}return this.provider.execute(e,n)}get protocol(){return this.subscriptionProtocol}close(){var e;null===(e=this.provider)||void 0===e||e.close()}}class w extends k{constructor(){super(...arguments),this.closeFunc=void 0,this.observable=void 0}createClient(e){var n;const t=new E.D(this.resolveSubscriptionUrl(o.ppT),{lazy:!1,reconnect:!1,connectionParams:this.connectionParams,connectionCallback:null===(n=this.extraOptions)||void 0===n?void 0:n.onConnected,onMessage:e});return this.closeFunc=()=>{t.close(!0)},t}execute(e,n){return this.observable||(this.observable=L((t=>{const i=this.createClient(n);return i.onError((e=>t.error(e))),i.request(e).subscribe(t).unsubscribe}))),Promise.resolve(this.observable)}close(){var e;null===(e=this.closeFunc)||void 0===e||e.call(this)}}class O extends k{constructor(){super(...arguments),this.closeFunc=void 0,this.observable=void 0}createClient(e){let n,t;const i=(0,y.UU)({url:this.resolveSubscriptionUrl(o.Gkb),lazy:!0,retryAttempts:0,keepAlive:f.iW,connectionParams:this.connectionParams,on:{connected:e=>{var t,i,s,o;e instanceof WebSocket?(n=e,null===(t=this.extraOptions)||void 0===t||null===(i=t.onConnected)||void 0===i||i.call(t)):null===(s=this.extraOptions)||void 0===s||null===(o=s.onConnected)||void 0===o||o.call(s,{message:"Unknown socket"})},error:e=>{var n,t;null===(n=this.extraOptions)||void 0===n||null===(t=n.onConnected)||void 0===t||t.call(n,e)},ping:e=>{e||(t=self.setTimeout((()=>{var e;(null===(e=n)||void 0===e?void 0:e.readyState)===WebSocket.OPEN&&n.close(4408,"Request Timeout")}),f.fc))},pong:e=>{e&&self.clearTimeout(t)},message:e}});return this.close=()=>{i.dispose()},i}execute(e,n){return this.observable||(this.observable=L((t=>this.createClient(n).subscribe(e,{next:function(){return t.next(...arguments)},error:e=>t.error(e),complete:()=>t.complete()})))),Promise.resolve(this.observable)}close(){var e;null===(e=this.closeFunc)||void 0===e||e.call(this)}}class R extends k{constructor(){super(...arguments),this.closeFunc=void 0,this.observable=void 0}createClient(e){var n,t,i;const s=(0,h.UU)({url:this.resolveSubscriptionUrl(o.PhU),retryAttempts:0,credentials:null!==(n=this.extraOptions)&&void 0!==n&&n.includeCookies?"include":"same-origin",referrerPolicy:f._w?"no-referrer":"strict-origin-when-cross-origin",headers:{...this.connectionParams,"content-type":"application/json"},onMessage:e});return null===(t=this.extraOptions)||void 0===t||null===(i=t.onConnected)||void 0===i||i.call(t),this.close=()=>{s.dispose()},s}execute(e,n){return this.observable||(this.observable=L((t=>this.createClient(n).subscribe(e,{next:function(){return t.next(...arguments)},error:e=>t.error(e),complete:()=>t.complete()})))),Promise.resolve(this.observable)}close(){var e;null===(e=this.closeFunc)||void 0===e||e.call(this)}}function L(e){return{subscribe:e}}t(45155),t(49997),t(57928),t(2813),t(32990),t(37669),t(35033);var M=t(39588);const _={endpoint:"",exists:!1,hash:"",indexed:!1,hasMutationType:!1,hasSubscriptionType:!1,hasUploadType:!1};var D;const P=new Set;function C(e,n){let{id:i,type:o,payload:{apiId:a,stageId:l}}=e;const d=new AbortController;(0,s.UT)({id:i,cancel:()=>d.abort(),execute:async()=>{if(P.has(a))throw new r.zX("The schema fetch task cannot be executed concurrently on the same API","MULTIPLE_SCHEMA_FETCHES_DETECTED");try{var e,s;P.add(a);const r=await(0,M.AN)(void 0!==D?D:D=t(41990),{stageId:l},d.signal),p=null===r||void 0===r||null===(e=r.stageById)||void 0===e||null===(s=e.publishedSchema)||void 0===s?void 0:s.version;if(p){const e=await F(p.downloadUrl,(0,u.T6)(l),d.signal);return void n.sendMessage(new c.Q(o,e,i))}n.sendMessage(new c.Q(o,_,i))}finally{P.delete(a)}}})}async function F(e,n,t){const i=await(0,r.L5)(e,t);if(Array.isArray(i)){const[e,t]=i,s=await(0,r.gP)(n,e,t,o.FxT.SDL_FETCH);return{endpoint:s.endpoint,exists:!0,hash:s.hash,indexed:s.indexed,updatedAt:s.updatedAt,hasMutationType:!!s.mutationTypeName,hasSubscriptionType:!!s.subscriptionTypeName,hasUploadType:s.hasUploadType}}throw new r.zX("Loading schema failed.","SCHEMA_FETCHING_FAILED")}function B(e,n){let{id:t,payload:{schemaEndpoint:i},type:o}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{var e,s;const r=null!==(e=null===(s=await(0,a.bN)(i))||void 0===s?void 0:s.getDirectives())&&void 0!==e?e:void 0;n.sendMessage(new c.Q(o,r,t))}})}function U(e,n){let{id:t,type:i,payload:{documentId:a,environmentId:l}}=e;const d=new AbortController;(0,s.UT)({id:t,cancel:()=>d.abort(),execute:async()=>{var e;const s=await(0,o.Sjm)(a,l,d.signal);if((null===s||void 0===s||!s.endpoint.length)&&(null===s||void 0===s||null===(e=s.sdlEndpoint)||void 0===e||!e.length))return void n.sendMessage(new c.Q(i,_,t));const u=(0,r.P6)(s,(e=>{let{name:n}=e;return!f.HO.test(n)}));if((0,r.Hn)(u))return n.sendMessage(new c.Q(i,_,t)),void(0,r.Hc)(n,a,u,"Introspection Query");const p=await async function(e){const n=await(0,r._w)(e);if(n)return{endpoint:n.endpoint,exists:!0,hash:n.hash,indexed:n.indexed,updatedAt:n.updatedAt,hasMutationType:!!n.mutationTypeName,hasSubscriptionType:!!n.subscriptionTypeName,hasUploadType:n.hasUploadType};return}(s);n.sendMessage(new c.Q(i,null!==p&&void 0!==p?p:_,t))}})}var Y=t(80122),Q=t(48517);const j=new Set;function G(e,n){let{id:t,type:i,payload:{documentId:a,environmentId:l}}=e;const d=new AbortController;(0,s.UT)({id:t,cancel:()=>d.abort(),execute:async()=>{if(j.has(a))throw new r.zX("The schema fetch task cannot be executed concurrently on the same document","MULTIPLE_SCHEMA_FETCHES_DETECTED");try{var e;j.add(a);const p=await(0,o.Sjm)(a,l,d.signal);if((null===p||void 0===p||!p.endpoint.length)&&(null===p||void 0===p||null===(e=p.sdlEndpoint)||void 0===e||!e.length))return void n.sendMessage(new c.Q(i,_,t));const v=(0,r.P6)(p,(e=>{let{name:n}=e;return!f.HO.test(n)}));if((0,r.Hn)(v))return n.sendMessage(new c.Q(i,_,t)),void(0,r.Hc)(n,a,v,"Introspection Query");const h={headers:v,uri:p.endpoint,useGET:p.useGet,includeCookies:p.includeCookies};if(p.sdlEndpoint){const e=await V(n,a,{...h,uri:p.sdlEndpoint,useGET:!0},o.FxT.SDL_FETCH,p.sdlEndpoint,d.signal);return void n.sendMessage(new c.Q(i,e,t))}try{const e=((s=p.endpoint).endsWith("/")?s:s+"/")+"schema.graphql",r=await V(n,a,{...h,uri:e,useGET:!0},o.FxT.SDL_PROBE,p.endpoint,d.signal);return void n.sendMessage(new c.Q(i,r,t))}catch{}const y=await async function(e,n,t,i){const s=(0,u.ax)(),a=t.useGET?"GET":"POST";(0,r.EE)(e,n,s,(0,u.tB)(),"Introspection",{uri:t.uri,kind:"introspection",method:a});let c;try{const a=await(0,r.rI)(t,((t,i)=>(0,r.Dx)(e,n,t,m.Ku.GRAPHQL_INTROSPECTION,{scopeId:s,name:i})),i);if(a instanceof Y.V4){const e=await(0,r.gP)(t.uri,a,(0,Q.rK)(a),o.FxT.INTROSPECTION);return{endpoint:e.endpoint,exists:!0,hash:e.hash,indexed:e.indexed,updatedAt:e.updatedAt,hasMutationType:!!e.mutationTypeName,hasSubscriptionType:!!e.subscriptionTypeName,hasUploadType:e.hasUploadType}}c={itemId:n,scopeId:s}}finally{(0,r.CV)(e,n,s,(0,u.tB)())}throw new r.zX("Loading schema failed.","SCHEMA_FETCHING_FAILED",c)}(n,a,h,d.signal);n.sendMessage(new c.Q(i,y,t))}finally{j.delete(a)}var s}})}async function V(e,n,t,i,s,o){const a=await(0,r.DA)(e,n,t.uri,t,i,o);if(Array.isArray(a)){const[e,n]=a,t=await(0,r.gP)(s,e,n,i);return{endpoint:t.endpoint,exists:!0,hash:t.hash,indexed:t.indexed,updatedAt:t.updatedAt,hasMutationType:!!t.mutationTypeName,hasSubscriptionType:!!t.subscriptionTypeName,hasUploadType:t.hasUploadType}}throw new r.zX("Loading schema failed.","SCHEMA_FETCHING_FAILED")}function H(e,n){let{id:t,payload:{schemaEndpoint:i,coordinate:o},type:r}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{const e=await(0,a.bN)(i);if(!e)return void n.sendMessage(new c.Q(r,void 0,t));const s=e.getField(o);n.sendMessage(new c.Q(r,s,t))}})}function q(e,n){let{id:t,payload:{schemaEndpoint:i,typeName:o,options:r},type:l}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{var e;const s=null===(e=await(0,a.bN)(i))||void 0===e?void 0:e.getFields(o,r);n.sendMessage(new c.Q(l,s,t))}})}function K(e,n){let{id:t,payload:{schemaEndpoint:i,coordinate:o,options:r},type:l}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{const e=await(0,a.bN)(i);if(!e)return void n.sendMessage(new c.Q(l,void 0,t));const s={fields:e.getFields(o,r),interfaces:e.getInterfaces(o,null===r||void 0===r?void 0:r.filter),possibleTypes:e.getPossibleTypes(o,null===r||void 0===r?void 0:r.filter)};n.sendMessage(new c.Q(l,s,t))}})}function z(e,n){let{id:t,payload:{schemaEndpoint:i,typeCategory:o,filter:a},type:l}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{const e=await(0,r.RU)(i,o,a);n.sendMessage(new c.Q(l,e,t))}})}function J(e,n){let{id:t,payload:{schemaEndpoint:i,filter:o},type:a}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{const e=await(0,r.me)(i,o);n.sendMessage(new c.Q(a,e,t))}})}function $(e,n){let{id:t,payload:{schemaEndpoint:i,typeName:o},type:r}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{var e,s;const l=null!==(e=null===(s=await(0,a.bN)(i))||void 0===s?void 0:s.getType(o))&&void 0!==e?e:void 0;n.sendMessage(new c.Q(r,l,t))}})}function W(e,n){let{id:t,payload:{schemaEndpoint:i,filter:o},type:r}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{var e;const s=null===(e=await(0,a.bN)(i))||void 0===e?void 0:e.getTypes(o);n.sendMessage(new c.Q(r,s,t))}})}class Z extends i.H{registerMessageReceiveHandlers(){this.registerReceiveMessageHandler("fetch-schema",G),this.registerReceiveMessageHandler("fetch-api-schema",C),this.registerReceiveMessageHandler("get-cached-schema",U),this.registerReceiveMessageHandler("fetch-directives",B),this.registerReceiveMessageHandler("fetch-field",H),this.registerReceiveMessageHandler("fetch-fields",q),this.registerReceiveMessageHandler("fetch-schema-reference",z),this.registerReceiveMessageHandler("fetch-schema-root-types",J),this.registerReceiveMessageHandler("fetch-type",$),this.registerReceiveMessageHandler("fetch-types",W),this.registerReceiveMessageHandler("fetch-fields-and-types",K),this.registerReceiveMessageHandler("analyze-document",l),this.registerReceiveMessageHandler("analyze-document-operations",d),this.registerReceiveMessageHandler("cancel-request",(e=>(0,s.yX)(e.payload.documentId))),this.registerReceiveMessageHandler("files-updated",p),this.registerReceiveMessageHandler("execute-operation",T)}}new Z},53543:(e,n,t)=>{"use strict";t.d(n,{Bg:()=>a,I1:()=>l,bF:()=>r,eu:()=>c});t(36022),t(5084),t(75885);var i=t(69529),s=t(29232);let o;function r(e,n,t){var r;if(n)return o&&o.id===n.id&&o.hash===n.hash||(o=function(e,n,t,o,r){if(t.trim().length>0)try{return{id:n,hash:o,document:(0,i.FG)(t)}}catch(a){return void(r&&(0,s.R4)(e,"The Document couldn't be parsed. Please go to the Operations Editor and fix syntax issues.",n,{...a}))}return}(e,n.id,n.body,n.hash,t)),null===(r=o)||void 0===r?void 0:r.document;o=void 0}function a(e){const n=[];return e&&e.definitions.forEach((t=>{var s;(0,i.tB)(t)&&n.push({name:null===(s=t.name)||void 0===s?void 0:s.value,type:t.operationType,location:(0,i.g$)(e.tokens,t.location)})})),n}function c(e,n){var t,s;const o=e.definitions.filter(i.tB)[null!==n&&void 0!==n?n:0];return[null!==(t=null===o||void 0===o?void 0:o.operationType)&&void 0!==t?t:i.S5.QUERY,null===o||void 0===o||null===(s=o.name)||void 0===s?void 0:s.value]}function l(e,n,t){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const{tokens:o}=e,r=[],a=[],c=n=>{r.push(n),(0,i.YR)(n,{VariableDefinition(e){(0,i.YR)(e,{Variable(e){var n,t;a.push(null!==(n=null===(t=e.name)||void 0===t?void 0:t.value)&&void 0!==n?n:"")}})},FragmentSpread(n){var t,s;const o=null!==(t=null===(s=n.name)||void 0===s?void 0:s.value)&&void 0!==t?t:"";(0,i.YR)(e,{FragmentDefinition(e){var n;if((null===(n=e.name)||void 0===n?void 0:n.value)===o)return c(e),i.sP}})}})};let l=0;function d(){let t=s?"":n.split("\n").map((e=>" ".repeat(e.length))).join("\n");const a=e=>{const{start:r,end:a}=(0,i.g$)(o,e.location);t=s?t.concat(t?"\n\n":"",n.substring(r,a)):t.substring(0,r).concat(n.substring(r,a),t.substring(a))};return(0,i.YR)({kind:i.xs.DOCUMENT,definitions:r,location:e.location,tokens:[]},{FragmentDefinition:{enter:a},OperationDefinition:{enter:a}}),t=t.replace(/[ \t]+$/gm,""),t}(0,i.YR)(e,{OperationDefinition(e){if(l===t)return c(e),i.sP;l+=1}});const u=e=>({...e,body:d()}),p=e=>{if(e&&a.length){const n=Object.entries(e).filter((e=>{let[n]=e;return a.includes(n)}));if(n.length)return Object.fromEntries(n)}};return(e,n)=>[u(e),p(n)]}},67889:(e,n,t)=>{"use strict";t.d(n,{DA:()=>b,Dx:()=>Y,Hn:()=>x,L5:()=>A,P6:()=>k,RK:()=>T,rI:()=>N});t(62316),t(36022),t(86737),t(75885);var i=t(23845),s=t(50072),o=t(39588),r=t(77317),a=t(15793),c=t(28511),l=t(70807),d=t(18706),u=t(79661),p=t(41192),f=t(5355),v=t.n(f),m=t(84165),h=t(29232);const y=(0,l.y)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IntrospectionQuery"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"__Directive",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:104,source:{body:'query IntrospectionQuery {\n __type(name: "__Directive") {\n name\n fields {\n name\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}}}}),E=(0,l.y)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IntrospectionQuery"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"__InputValue",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:96,source:{body:'query IntrospectionQuery {\n __type(name: "__InputValue") {\n fields {\n name\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}}}}),I=(0,l.y)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IntrospectionQuery"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"__Schema",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:101,source:{body:'query IntrospectionQuery {\n __type(name: "__Schema") {\n name\n fields {\n name\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}}}}),g=(0,l.y)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IntrospectionQuery"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"__Type",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:99,source:{body:'query IntrospectionQuery {\n __type(name: "__Type") {\n name\n fields {\n name\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}}}});function T(e,n,t,i,s){return L(e,n,t,i,s).then((async e=>{let{response:n}=e;const{isMultipart:t,responseOrError:i}=n;if(!(i instanceof Response))return{isMultipart:t,error:i};if(t)return{isMultipart:t,parsedBody:{}};const{operationResult:s,error:o}=await P(i,!1);return o?{isMultipart:t,error:o}:{isMultipart:t,parsedBody:s}}))}async function b(e,n,t,o,r,l){const u=Y(e,n,(0,c.r_)(),r===s.FxT.SDL_FETCH?a.Ku.GRAPHQL_SDL_FETCH:a.Ku.GRAPHQL_SDL_PROBE,{name:r===s.FxT.SDL_FETCH?"SDL Schema Fetch":"SDL Schema Probe"}),p=o.includeCookies?"include":"same-origin",f=new Headers(o.headers),v={cache:"no-cache",credentials:p,headers:f,method:"GET",referrerPolicy:i._w?"no-referrer":"strict-origin-when-cross-origin",signal:l};o.disableCors&&(v.mode="no-cors"),f.append("User-Agent",navigator.userAgent),null===u||void 0===u||u.requestInterceptor(t,"GET",f);const m=await fetch(t,v).then((e=>{var n;return null!==(n=null===u||void 0===u?void 0:u.responseInterceptor(e))&&void 0!==n?n:e})).catch(D).then((e=>{var n;return null!==(n=null===u||void 0===u?void 0:u.responseErrorInterceptor(e))&&void 0!==n?n:e}));if(m instanceof Response){const e=await m.text();return[(0,d.I)(e),e]}return m}async function A(e,n){const t=await(0,o.L2)(e),s=t.includeCookies?"include":"same-origin",r=new Headers(t.headers),a={cache:"no-cache",credentials:s,headers:r,method:"GET",referrerPolicy:i._w?"no-referrer":"strict-origin-when-cross-origin",signal:n};t.disableCors&&(a.mode="no-cors"),r.append("User-Agent",navigator.userAgent);const c=await fetch(e,a).catch(D);if(c instanceof Response){const e=await c.text();return[(0,d.I)(e),e]}return c}async function N(e,n,t){const[i,s,o,a]=await Promise.all([O(e,n,t),S(e,n,t),w(e,n,t),R(e,n,t)]);if("name"in i)return i;if(i.error)return i.error;if("name"in s)return s;if(s.error)return s.error;if("name"in o)return o;if(o.error)return o.error;if("name"in a)return a;if(a.error)return a.error;const l=function(e){let{schema:n,directive:t,inputValue:i,type:s}=e;return{directiveIsRepeatable:t.fields.some((e=>"isRepeatable"===e.name)),directiveLocations:t.fields.some((e=>"locations"===e.name)),inputValueDeprecation:i.fields.some((e=>"isDeprecated"===e.name)),oneOf:s.fields.some((e=>"oneOf"===e.name)),specifiedByUrl:s.fields.some((e=>"specifiedByURL"===e.name)),subscription:n.fields.some((e=>"subscriptionType"===e.name))}}({schema:i.operationResult.data.__type,directive:s.operationResult.data.__type,inputValue:o.operationResult.data.__type,type:a.operationResult.data.__type}),d=await async function(e,n,t,i){const s=(0,r.I)(n),o=await L(e,{query:s,operationName:"IntrospectionQuery"},void 0,t((0,c.r_)(),"Introspection"),i),{responseOrError:a}=o.response;if(!(a instanceof Response))return a;const l=await P(a,!0);if(l.error)return l.error;return l.operationResult.data}(e,l,n,t);return"__schema"in d?(0,u.D)(d):d}function x(e){return"kind"in e}function k(e,n){var t;const s=null===(t=e.authentication)||void 0===t?void 0:t.headerValue,o=new Headers;if(o.append(i.QB,navigator.userAgent),s&&o.set(i.qB,s),!e.headers)return o;for(const r of e.headers){if(!r.enabled||n&&!n(r)||r.name===i.QB)continue;const{name:e,value:t}=r;if(!e.length)return{kind:"empty-name",name:e};if(!(0,c.D_)(e))return{kind:"invalid-name",name:e};e===i.qB&&s||o.append(e,t)}return o}async function S(e,n,t){const{response:{responseOrError:i}}=await L(e,{query:y,operationName:"IntrospectionQuery"},void 0,n((0,c.r_)(),"Detect Directive Capabilities"),t);return i instanceof Response?P(i,!0):i}async function w(e,n,t){const{response:{responseOrError:i}}=await L(e,{query:E,operationName:"IntrospectionQuery"},void 0,n((0,c.r_)(),"Detect InputValue Capabilities"),t);return i instanceof Response?P(i,!0):i}async function O(e,n,t){const{response:{responseOrError:i}}=await L(e,{query:I,operationName:"IntrospectionQuery"},void 0,n((0,c.r_)(),"Detect Schema Capabilities"),t);return i instanceof Response?P(i,!0):i}async function R(e,n,t){const{response:{responseOrError:i}}=await L(e,{query:g,operationName:"IntrospectionQuery"},void 0,n((0,c.r_)(),"Detect Type Capabilities"),t);return i instanceof Response?P(i,!0):i}async function L(e,n,t,o,r){const a=e.includeCookies?"include":"same-origin",{extensions:l,operationName:d,query:u,variables:f,files:h}=n,y={cache:"no-cache",credentials:a,referrerPolicy:i._w?"no-referrer":"strict-origin-when-cross-origin"},E=new Headers(e.headers);let I,g,T;if(e.disableCors&&(y.mode="no-cors"),e.useGET){const t="GET";g={...y,method:t,headers:E},T=function(e,n){let{query:t,operationName:i,variables:s,extensions:o}=n;const r=[],a=(e,n)=>{r.push("".concat(e,"=").concat(encodeURIComponent(n)))};t&&a("query",t);i&&a("operationName",i);s&&a("variables",JSON.stringify(s));o&&a("extensions",JSON.stringify(o));let c="",l=e;const d=e.indexOf("#");-1!==d&&(c=e.substr(d),l=e.substr(0,d));const u=-1===l.indexOf("?")?"?":"&";return l+u+r.join("&")+c}(e.uri,n),null===o||void 0===o||o.requestInterceptor(T,t,E),I=async e=>M(T,t,e,V(E),g.credentials,g.referrerPolicy)}else{const n={extensions:l,operationName:d,query:u,variables:f};let t;if(f&&null!==h&&void 0!==h&&h.length){const e=(0,c.Go)(f),i=new FormData,o=h.flatMap((e=>{let{variableName:n,fieldPath:t,fileOrFiles:i}=e;return Array.isArray(i)?i.map(((e,i)=>({variableName:n,fieldPath:t,file:e,index:i}))):[{variableName:n,fieldPath:t,file:i}]}));o.forEach((n=>{let{variableName:t,fieldPath:i,index:s}=n;if(null!==i&&void 0!==i&&i.length){let n=e[t];const r=i.length-1;for(var o=0;o<i.length;o++)o===r?void 0===s?n[i[o]]=null:n[i[o]][s]=null:n=n[i[o]]}else void 0===s?e[t]=null:e[t][s]=null})),n.variables=e,i.append("operations",JSON.stringify(n));const r=o.reduce(((e,n,t)=>{let{variableName:i,fieldPath:s,index:o}=n;return{...e,[t]:["variables.".concat(i).concat(null!==s&&void 0!==s&&s.length?"."+(null===s||void 0===s?void 0:s.join(".")):"").concat(void 0===o?"":"."+o)]}}),{});i.append("map",JSON.stringify(r));const a=(await(0,s.FH2)((0,c.dM)(o.map((e=>{let{file:{id:n}}=e;return n}))))).reduce(((e,n)=>({...e,[n.itemId]:n.content})),{});o.forEach(((e,n)=>{let{file:{id:t}}=e;i.append("".concat(n),a[t])})),t=i}else E.append(i.VX,"application/json"),t=JSON.stringify(n);const r="POST";g={...y,method:r,headers:E,body:t},T=e.uri,null===o||void 0===o||o.requestInterceptor(T,r,E,t),I=async e=>M(T,r,e,V(E),g.credentials,g.referrerPolicy,n)}return await fetch(T,{...g,signal:r}).then((e=>{var n;return null!==(n=null===o||void 0===o?void 0:o.responseInterceptor(e))&&void 0!==n?n:e})).catch(D).then((e=>{var n;return null!==(n=null===o||void 0===o?void 0:o.responseErrorInterceptor(e))&&void 0!==n?n:e})).then((e=>async function(e,n){let t=!1;if(e instanceof Response&&e.ok&&!e.bodyUsed&&e.headers&&n){const i=await(0,p.z)(e);if((0,c.Td)(i)){const s=async()=>{let t=0;try{for await(const e of i){if(!e.json){const i=C(new Error("The multipart body could not be converted into JSON."),e.body);n.onError(i,t);break}n.onNext({content:e.body,headers:e.headers},t++)}}catch(s){(0,c.zf)(s)?n.onError(new m.S1,t):n.onError(U(e,s,""),t)}n.onComplete(t)};t=!0,v()(s)}}return{isMultipart:t,responseOrError:e}}(e,t))).then((e=>I(e)))}function M(e,n,t,i,s,o,r){return{request:{uri:e,cache:"no-cache",credentials:s,headers:i,method:n,referrerPolicy:o,body:r},response:t}}const _="Server Not Reachable";function D(e){return(0,c.zf)(e)?new m.S1:e instanceof TypeError?B(_,e.message):B(_)}function P(e,n){return e.text().then((t=>{try{const i=JSON.parse(t);if("object"===typeof i&&(n&&i.data||!n&&(i.data||i.errors)))return{operationResult:i,contentLength:t.length};return{error:F(e,t,"Response not successful: Received status code ".concat(e.status)),contentLength:t.length}}catch(i){return{error:U(e,i,t),contentLength:t.length}}}))}function C(e,n){return{...e,name:m.u0,body:n}}function F(e,n,t){let{status:i,statusText:s}=e;return{message:t,name:m.je,statusCode:i,statusText:s,bodyText:n}}function B(e,n){return{message:e,name:m.sf,statusText:n}}function U(e,n,t){let{status:i,statusText:s}=e;return{...n,name:m.xl,statusCode:i,statusText:s,bodyText:t}}function Y(e,n,t,i,s){return{requestInterceptor:Q(e,n,t,i,s),responseInterceptor:j(e,n,t,i,s),responseErrorInterceptor:G(e,n,t,i,s)}}function Q(e,n,t,i,s){return(o,r,a,l,d,u)=>{const p=(0,c.tB)(),f=V(a),v=function(e){if(!e||"string"===typeof e)return e;const n={};for(const[t,i]of e.entries()){const e=i.valueOf();n[t]="string"===typeof e?e:"File Data omitted"}return JSON.stringify(n,void 0,2)}(l);(0,h.Gy)(e,n,t,i,null===s||void 0===s?void 0:s.scopeId,p,o,r,f,v,d,u,null===s||void 0===s?void 0:s.name)}}function j(e,n,t,i,s){return o=>{const r=(0,c.tB)(),{status:a,statusText:l}=o,d=V(o.headers),u=null===s||void 0===s?void 0:s.scopeId;(0,h.C0)(e,n,t,i,u,r,a,l,d);const p=o.clone();return new Promise((async s=>{let r=0;try{var a;const s=null===(a=p.body)||void 0===a?void 0:a.getReader();if(s)try{const a=new TextDecoder;let l,d=0;for(;!(l=await s.read()).done;){const i=(0,c.tB)(),s=a.decode(l.value);r+=s.length,(0,h.NS)(e,n,t,u,i,s,d++)}o.status>299?(0,h.Fw)(e,n,t,i,u,(0,c.tB)(),F(o,"",""),r):(0,h.wm)(e,n,t,i,u,(0,c.tB)(),r)}finally{await s.cancel()}}catch(l){l instanceof m.S1?(0,h.L4)(e,n,t,i,u,(0,c.tB)(),l,r):(0,h.Fw)(e,n,t,i,u,(0,c.tB)(),F(o,"",""),r)}finally{s()}})),o}}function G(e,n,t,i,s){return o=>{if(o instanceof Response)return o;const r=(0,c.tB)(),a=null===s||void 0===s?void 0:s.scopeId;return o instanceof m.S1?((0,h.L4)(e,n,t,i,a,r,o,0),o):((0,h.Fw)(e,n,t,i,a,r,o,0),o)}}function V(e){let n={};return e.forEach(((e,t)=>{n=n[t]?Array.isArray(n[t])?{...n,[t]:[...n[t],e]}:{...n,[t]:[n[t],e]}:{...n,[t]:e}})),n}},25119:(e,n,t)=>{"use strict";t.d(n,{Q:()=>c});t(36022),t(75885);var i=t(50072),s=t(67466),o=t(97353),r=t(28511),a=t(56242);function c(e,n,t,o,r){return(0,a.bN)(t.sdlEndpoint||t.endpoint).then((a=>!t.useGet&&n&&a&&e?async function(e,n,t,i,o){let r=[];try{for(const f of e.definitions){var a;if(f.kind===s.xs.OPERATION_DEFINITION&&(null===(a=f.name)||void 0===a?void 0:a.value)===n){var c;if(null===(c=f.variablesDefinition)||void 0===c||!c.variableDefinitions.length)return r;for(const e of f.variablesDefinition.variableDefinitions){var d,u;const n=p(e.type),s=i.getType(n),a=null!==(d=null===(u=e.variable.name)||void 0===u?void 0:u.value)&&void 0!==d?d:"",c=await l(a,null===t||void 0===t?void 0:t[a],s,o,i);c.length&&(r=[...r,...c])}}}}catch(f){console.error(f)}return r}(n,o,r,a,(function(){for(var n=arguments.length,t=new Array(n),s=0;s<n;s++)t[s]=arguments[s];return(0,i.Ac)(e,...t)})):Promise.resolve(void 0)))}async function l(e,n,t,i,s){if(!n)return[];if("object"===typeof n){const o=[],a=[[[],n]];let c;for(;void 0!==(c=a.shift());){const[n,l]=c;if(l)if((0,r.Rr)(l))for(let e=0;e<l.length;e++)a.push([[...n,e],l[e]]);else if("object"!==typeof l||Array.isArray(l)){if(("string"===typeof l||(0,r.Bo)(l))&&u(t,s,n)){const t=await d(l,n,i);t&&o.push({variableName:e,fieldPath:n,fileOrFiles:t})}}else for(const e of Object.keys(l))a.push([[...n,e],l[e]])}return o}if(("string"===typeof n||(0,r.Bo)(n))&&u(t,s)){const t=await d(n,void 0,i);if(t)return[{variableName:e,fileOrFiles:t}]}return[]}function d(e,n,t){if(!e)return Promise.resolve(void 0);if(null!==n&&void 0!==n&&n.length&&"object"===typeof e&&!Array.isArray(e)){let i=0,s=e;for(;i<n.length&&void 0!==s&&"object"===typeof s&&!Array.isArray(s);){s=s[n[i++]]}if("string"===typeof s)return t(s).then((e=>null===e||void 0===e?void 0:e[0]));if((0,r.Bo)(s))return t(...s)}else{if("string"===typeof e)return t(e).then((e=>null===e||void 0===e?void 0:e[0]));if((0,r.Bo)(e))return t(...e)}return Promise.resolve(void 0)}function u(e,n,t){if(!e)return!1;if(null!==t&&void 0!==t&&t.length&&"input-object"===e.typeKind){const i=t.filter((e=>"string"===typeof e));let s,r=(0,o.TL)(e);for(const e of i){const t=(0,o.IK)(r.name,e);if(!(s=n.getField(t)))return!1;r=(0,o.TL)(s.valueType)}return"scalar"===r.typeKind&&"Upload"===r.name}return"scalar"===e.typeKind&&"Upload"===e.name}function p(e){if(!e)return"UnknownType";let n=e;for(;n.kind!==s.xs.NAMED_TYPE;){if(!n.type)return"UnknownType";n=n.type}return n.name.value}},84165:(e,n,t)=>{"use strict";t.d(n,{S1:()=>i,je:()=>o,sf:()=>r,u0:()=>s,xl:()=>a});t(62316);class i extends Error{constructor(){super("Request has been cancelled by the user."),this.name="ClientAbortError"}serialize(){return{name:this.name,message:this.message}}}const s="MultipartError",o="ServerError",r="ServerNetworkError",a="ServerParseError"},77740:(e,n,t)=>{"use strict";t.d(n,{Bg:()=>i.Bg,CN:()=>a.CN,CV:()=>a.CV,DA:()=>s.DA,DM:()=>l.D,Dt:()=>a.Dt,Dx:()=>s.Dx,EE:()=>a.EE,Hc:()=>a.Hc,Hn:()=>s.Hn,I1:()=>i.I1,Ix:()=>a.Ix,L5:()=>s.L5,Mv:()=>a.Mv,P6:()=>s.P6,Q0:()=>o.Q,R4:()=>a.R4,R7:()=>a.R7,RK:()=>s.RK,RU:()=>c.RU,S1:()=>r.S1,VS:()=>a.me,VT:()=>a.VT,Ym:()=>a.Ym,_w:()=>c._w,bF:()=>i.bF,cN:()=>a.cN,eu:()=>i.eu,f5:()=>a.f5,gP:()=>c.gP,hZ:()=>a.hZ,id:()=>a.id,me:()=>c.me,o8:()=>a.o8,pm:()=>a.IJ,rI:()=>s.rI,rx:()=>l.r,vl:()=>a.vl,xN:()=>a.xN,zX:()=>a.zX});t(49117);var i=t(53543),s=t(67889),o=t(25119),r=t(84165),a=t(29232),c=t(5178),l=t(14881)},29232:(e,n,t)=>{"use strict";t.d(n,{C0:()=>k,CN:()=>U,CV:()=>D,Dt:()=>m,EE:()=>_,Fw:()=>O,Gy:()=>x,Hc:()=>M,IJ:()=>P,Ix:()=>u,L4:()=>w,Mv:()=>d,NS:()=>S,R4:()=>N,R7:()=>T,SA:()=>V,VT:()=>y,Ym:()=>p,cN:()=>j,f5:()=>I,hZ:()=>H,id:()=>F,me:()=>B,n4:()=>A,o8:()=>f,vl:()=>L,wm:()=>R,xN:()=>C,yX:()=>Y,zX:()=>G});t(62316);var i=t(15793),s=t(90126);const o="cancelled",r="failed",a="started",c="succeeded",l="operation-request-status";function d(e,n,t,i){e.sendMessage(new s.Q(l,{documentId:n,requestId:t,kind:o,operationType:i}))}function u(e,n,t,i){e.sendMessage(new s.Q(l,{documentId:n,requestId:t,kind:r,operationType:i}))}function p(e,n,t,i){e.sendMessage(new s.Q(l,{documentId:n,requestId:t,kind:a,operationType:i}))}function f(e,n,t,i){e.sendMessage(new s.Q(l,{documentId:n,requestId:t,kind:c,operationType:i}))}const v="operation-result";function m(e,n,t){e.sendMessage(new s.Q(v,{documentId:n,result:t}))}const h="operation-result-event";function y(e,n,t,i){e.sendMessage(new s.Q(h,{documentId:n,resultId:t,event:i}))}const E="operation-result-patch";function I(e,n,t,i){e.sendMessage(new s.Q(E,{documentId:n,resultId:t,patch:i}))}const g="history-entry";function T(e,n,t,i,o,r,a,c){e.sendMessage(new s.Q(g,{documentId:n,historyId:t,workspaceId:i,operationStatus:o,operationType:r,operationName:a,operationIndex:c}))}const b="log-entry";function A(e,n,t,o){e.sendMessage(new s.Q(b,{kind:"basic",itemId:t,level:i.$b.error,message:n,details:o}))}function N(e,n,t,o){e.sendMessage(new s.Q(b,{kind:"basic",itemId:t,level:i.$b.warning,message:n,details:o}))}function x(e,n,t,o,r,a,c,l,d,u,p,f,v){e.sendMessage(new s.Q(b,{kind:i.im,itemId:n,requestId:t,requestKind:o,scopeId:r,level:i.$b.info,started:a,requestUri:c,method:l,headers:d,body:u,cache:"no-cache",credentials:p,referrerPolicy:f,name:v}))}function k(e,n,t,o,r,a,c,l,d){e.sendMessage(new s.Q(b,{kind:i.Ai,itemId:n,requestId:t,requestKind:o,scopeId:r,level:i.$b.info,received:a,headers:d,statusCode:c,statusText:l}))}function S(e,n,t,o,r,a,c){e.sendMessage(new s.Q(b,{kind:i.z5,itemId:n,requestId:t,scopeId:o,level:i.$b.info,received:r,chunk:a,chunkIndex:c}))}function w(e,n,t,o,r,a,c,l){e.sendMessage(new s.Q(b,{kind:i.YQ,itemId:n,requestId:t,requestKind:o,scopeId:r,level:i.$b.info,stopped:a,contentLength:l,error:c.serialize()}))}function O(e,n,t,o,r,a,c,l){e.sendMessage(new s.Q(b,{kind:i.yi,itemId:n,requestId:t,requestKind:o,scopeId:r,level:i.$b.info,stopped:a,contentLength:l,error:c}))}function R(e,n,t,o,r,a,c){e.sendMessage(new s.Q(b,{kind:i.nH,itemId:n,requestId:t,requestKind:o,scopeId:r,level:i.$b.info,stopped:a,contentLength:c}))}function L(e,n,t,o){e.sendMessage(new s.Q(b,{kind:"basic",itemId:n,requestId:o,level:i.$b.warning,message:"".concat(t," failed due to an invalid endpoint."),details:"An invalid Schema Endpoint is not allowed. Please make sure that the Schema Endpoint is configured properly."}))}function M(e,n,t,o,r){const a="empty-name"===t.kind?"An empty Header Name is not allowed. One reason for that could be an Environment Variable that interpolates to an empty string. Please make sure that the HTTP Headers and Environment Variables are configured properly. Also make sure that you've switched to the correct Environment.":'Invalid characters in Header Name detected: "'.concat(t.name,"\". One reason for that could be an Environment Variable that isn't configured yet. Please make sure that the HTTP Headers and Environment Variables are configured properly. Also make sure that you've switched to the correct Environment.");e.sendMessage(new s.Q(b,{kind:"basic",itemId:n,requestId:r,level:i.$b.error,message:"".concat(o," failed due to an invalid HTTP header name."),details:a}))}function _(e,n,t,o,r,a){e.sendMessage(new s.Q(b,{kind:i.yJ,itemId:n,scopeId:t,level:i.$b.info,started:o,name:r,details:a}))}function D(e,n,t,o){e.sendMessage(new s.Q(b,{kind:i.AO,itemId:n,scopeId:t,level:i.$b.info,stopped:o}))}function P(e,n,t,o,r,a,c,l){e.sendMessage(new s.Q(b,{kind:i.py,itemId:n,requestId:t,requestKind:o,level:i.$b.info,started:r,requestUri:a,protocol:c,connectionParams:l}))}function C(e,n,t,o,r){e.sendMessage(new s.Q(b,{kind:i.yY,itemId:n,requestId:t,requestKind:o,level:i.$b.info,protocol:r}))}function F(e,n,t,o,r){e.sendMessage(new s.Q(b,{kind:i.Rx,itemId:n,requestId:t,level:i.$b.info,received:o,data:r}))}function B(e,n,t,o,r,a,c){e.sendMessage(new s.Q(b,{kind:i.NK,itemId:n,requestId:t,requestKind:o,level:i.$b.info,stopped:r,reason:a,error:c}))}const U="cancel-task";function Y(e,n){e.sendMessage(new s.Q(U,{taskId:n}))}const Q="task-failed";function j(e,n,t,i,o){e.sendMessage(new s.Q(Q,{errorMessage:t,kind:i,details:o},n))}class G extends Error{constructor(e,n,t){super(e),this.kind=n,this.details=t}}function V(e){return e.type===Q}const H="initialize-worker"},56242:(e,n,t)=>{"use strict";t.d(n,{Xu:()=>y,bN:()=>h});var i=t(4473),s=t(68341),o=(t(36022),t(75885),t(23845)),r=t(50072),a=t(97353),c=t(28511),l=(0,s.A)("schemaCache");var d=(0,s.A)("directives"),u=(0,s.A)("fields"),p=(0,s.A)("types"),f=(0,s.A)("introspectionFields");class v{constructor(e){Object.defineProperty(this,d,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,p,{writable:!0,value:void 0}),Object.defineProperty(this,f,{writable:!0,value:void 0}),(0,i.A)(this,d)[d]=new Map(e.directives),(0,i.A)(this,u)[u]=new Map(e.fields),(0,i.A)(this,p)[p]=new Map(e.types),(0,i.A)(this,f)[f]=new Map(e.fields)}getDirectives(e){const n=[];if(null!==e&&void 0!==e&&e.length){const t=e.toLocaleLowerCase();(0,i.A)(this,d)[d].forEach((e=>{!o.RI.test(e.name)&&e.name.toLocaleLowerCase().includes(t)&&n.push(e)}))}else(0,i.A)(this,d)[d].forEach((e=>{o.RI.test(e.name)||n.push(e)}));return n.sort(c.Am)}getField(e){var n;return null!==(n=(0,i.A)(this,u)[u].get(e))&&void 0!==n?n:null}getFields(e,n){var t;const s=e+".",o=[];if(null!==n&&void 0!==n&&n.includeIntrospectionFields&&this.addIntrospectionFields(e,o),null!==n&&void 0!==n&&null!==(t=n.filter)&&void 0!==t&&t.length){const e=n.filter.toLocaleLowerCase();(0,i.A)(this,u)[u].forEach((n=>{n.coordinate.startsWith(s)&&n.name.toLocaleLowerCase().includes(e)&&o.push(n)}))}else(0,i.A)(this,u)[u].forEach((e=>{e.coordinate.startsWith(s)&&o.push(e)}));return o.sort(c.Am)}getType(e){var n;return null!==(n=(0,i.A)(this,p)[p].get(e))&&void 0!==n?n:null}getTypes(e){const n=[];if(null!==e&&void 0!==e&&e.length){const t=e.toLocaleLowerCase();(0,i.A)(this,p)[p].forEach((e=>{!o.RI.test(e.name)&&e.name.toLocaleLowerCase().includes(t)&&n.push(e)}))}else(0,i.A)(this,p)[p].forEach((e=>{o.RI.test(e.name)||n.push(e)}));return n.sort(c.Am)}getInterfaces(e,n){var t;const s=(0,i.A)(this,p)[p].get(e);if(null===s||void 0===s||null===(t=s.interfaces)||void 0===t||!t.length)return[];if(null!==n&&void 0!==n&&n.length){const e=n.toLocaleLowerCase();return s.interfaces.filter((n=>{let{name:t}=n;return t.toLocaleLowerCase().includes(e)})).sort(c.Am)}return s.interfaces.sort(c.Am)}getPossibleTypes(e,n){var t;const s=(0,i.A)(this,p)[p].get(e);if(null===s||void 0===s||null===(t=s.types)||void 0===t||!t.length)return[];if(null!==n&&void 0!==n&&n.length){const e=n.toLocaleLowerCase();return s.types.map(a.TL).filter((n=>{let{name:t}=n;return t.toLocaleLowerCase().includes(e)})).sort(c.Am)}return s.types.map(a.TL).sort(c.Am)}getTypesByTypeKind(e,n){const t=[];if(null!==n&&void 0!==n&&n.length){const s=n.toLocaleLowerCase();(0,i.A)(this,p)[p].forEach((n=>{n.typeKind===e&&!o.RI.test(n.name)&&n.name.toLocaleLowerCase().includes(s)&&t.push(n)}))}else(0,i.A)(this,p)[p].forEach((n=>{n.typeKind!==e||o.RI.test(n.name)||t.push(n)}));return t.sort(c.Am)}dispose(){(0,i.A)(this,d)[d].clear(),(0,i.A)(this,u)[u].clear(),(0,i.A)(this,p)[p].clear()}addIntrospectionFields(e,n){const t=(0,i.A)(this,p)[p].get(e),s="query-type"===(null===t||void 0===t?void 0:t.kind),o="subscription-type"===(null===t||void 0===t?void 0:t.kind);if(s){const e=this.getIntrospectionSchemaField(t.name);e&&n.push(e);const i=this.getIntrospectionTypeField(t.name);i&&n.push(i)}if(!o&&t){const e=this.getIntrospectionTypenameField(t.name);e&&n.push(e)}}getIntrospectionSchemaField(e){const n=a.CM.SCHEMA_FIELD;let t=(0,i.A)(this,f)[f].get(n);if(!t){const s=(0,i.A)(this,p)[p].get("__Schema");s&&(t={kind:"field",name:n,coordinate:(0,a.IK)(e,n),valueType:{kind:"value-type",isList:!1,isOptional:!1,type:s}},(0,i.A)(this,f)[f].set(n,t))}return t}getIntrospectionTypeField(e){const n=a.CM.TYPE_FIELD;let t=(0,i.A)(this,f)[f].get(n);if(!t){const s=(0,i.A)(this,p)[p].get("__Type"),o=(0,i.A)(this,p)[p].get("String");s&&o&&(t={kind:"field",name:n,coordinate:(0,a.IK)(e,n),valueType:{kind:"value-type",isList:!1,isOptional:!0,type:s},arguments:[{kind:"argument",name:"name",coordinate:(0,a.IK)(e,n,"name"),type:{kind:"value-type",isList:!1,isOptional:!1,type:o}}]},(0,i.A)(this,f)[f].set(n,t))}return t}getIntrospectionTypenameField(e){const n=a.CM.TYPENAME_FIELD;let t=(0,i.A)(this,f)[f].get(n);if(t)t={...t,coordinate:(0,a.IK)(e,a.CM.TYPE_FIELD)};else{const s=(0,i.A)(this,p)[p].get("String");s&&(t={kind:"field",name:n,coordinate:(0,a.IK)(e,n),valueType:{kind:"value-type",isList:!1,isOptional:!1,type:s}},(0,i.A)(this,f)[f].set(n,t))}return t}}const m=new class{constructor(){Object.defineProperty(this,l,{writable:!0,value:new c.Gc})}get(e){var n;return null!==(n=(0,i.A)(this,l)[l].get(e))&&void 0!==n?n:null}set(e,n){var t;const s=new v(n);return null===(t=(0,i.A)(this,l)[l].get(e))||void 0===t||t.dispose(),(0,i.A)(this,l)[l].set(e,s),s}remove(e){var n;null===(n=(0,i.A)(this,l)[l].get(e))||void 0===n||n.dispose(),(0,i.A)(this,l)[l].delete(e)}};async function h(e){const n=(0,c.c9)(e),t=m.get(n);if(t)return t;const i=await(0,r.BID)(n);return i?m.set(n,i):null}function y(e){m.remove((0,c.c9)(e))}},5178:(e,n,t)=>{"use strict";t.d(n,{me:()=>l,_w:()=>a,RU:()=>d,gP:()=>c});t(36022),t(75885),t(23845);var i=t(50072),s=t(69529),o=t(28511),r=t(56242);t(5084),t(31998),t(30379),t(91073);function a(e){return(0,i.SWZ)(e.sdlEndpoint||e.endpoint)}async function c(e,n,t,s){const a=await(0,i.SWZ)(e),c=(0,o.c9)(e),l=(0,i.OYB)(c,t);if(!a||a.hash!==l){const e=await(0,i.mkZ)(c,n,t,s);return(0,r.Xu)(c),e}return a}async function l(e,n){const t=await u(e,n);return t.length?t:void 0}async function d(e,n,t){const s=await(0,i.qaG)(e);if(!s)return;const o=await async function(e,n,t){const i=await(0,r.bN)(e);return i?"root"===n?await u(e,t):"directive"===n?i.getDirectives(t):i.getTypesByTypeKind(n,t):[]}(e,n,t);return{items:o,rootTypes:await u(e),statistics:s}}async function u(e,n){const[t,o]=await Promise.all([(0,r.bN)(e),(0,i.SWZ)(e)]);if(!t||!o)return[];const a=[o.queryTypeName?t.getType(o.queryTypeName):void 0,o.mutationTypeName?t.getType(o.mutationTypeName):void 0,o.subscriptionTypeName?t.getType(o.subscriptionTypeName):void 0].filter(s.Q8);if(null!==n&&void 0!==n&&n.length){const e=n.toLocaleLowerCase();return a.filter((n=>{let{name:t}=n;return t.toLocaleLowerCase().includes(e)}))}return a}},14881:(e,n,t)=>{"use strict";t.d(n,{D:()=>a,r:()=>r});t(36022),t(86737),t(75885);var i=t(50072),s=t(67466),o=t(29232);function r(e,n,t,s,r,a){var c;if(n)return null===(c=function(e,n,t,i,s,r,a){if(null!==s&&void 0!==s&&s.length)try{return{id:n,environmentId:t,operationIndex:i,hash:r,variables:JSON.parse(s)}}catch(c){return void(a&&(0,o.n4)(e,"GraphQL Variables couldn't be parsed. Please go to the variable editor and fix syntax issues.",n,{...c}))}return{id:n,environmentId:t,operationIndex:i,hash:r}}(e,n.id,t,s,n.variables?(0,i.lKN)(n.variables,r):n.variables,n.hash,a))||void 0===c?void 0:c.variables}function a(e,n,t,i){const o=function(e,n){const t=[],i=e.definitions.filter(s.tB).filter((e=>{var n;return!(null===(n=e.variablesDefinition)||void 0===n||!n.variableDefinitions.length)})).flatMap((e=>e.variablesDefinition.variableDefinitions));for(const a of i){let e=(0,s.Id)(a.type,n);var o,r;if(e)t.push({name:null!==(o=null===(r=a.variable.name)||void 0===r?void 0:r.value)&&void 0!==o?o:"",type:e})}return t}(e,n),r=[],a={},l={};for(const{name:s,type:d}of o)"value-type"!==d.kind||d.isOptional||r.push(s),a[s]=c(l,d,t,i);return{$schema:"http://json-schema.org/draft-07/schema#",type:"object",required:r,properties:a,definitions:l,additionalProperties:!1}}function c(e,n,t,i){let s,o,r=n;if("value-type"===r.kind){const e={};let n=e,t=!1,i=!0;for(;"value-type"===r.kind;){i=r.isOptional,t=r.isList,r=r.type;const e="value-type"===r.kind;if(i){const i={};n.oneOf=[{type:"null"},t?{type:"array",items:e?i:{anyOf:[{type:"null"},i]}}:i],n=i}else if(t){const t={};n.type="array",n.items=e?t:{anyOf:[{type:"null"},t]},n=t}}s=n,o=e}else s={},o={oneOf:[{type:"null"},s]};const a=r;return function(e,n,t,i){"enum"===n.typeKind?function(e,n){var t;if(e[n.name])return;e[n.name]={enum:null===(t=n.enumValues)||void 0===t?void 0:t.map((e=>{let{name:n}=e;return n}))}}(e,n):"input-object"===n.typeKind?function(e,n,t,i){if(e[n.name])return;const s=[],o={};e[n.name]={type:"object",additionalProperties:!1};for(const r of t(n.name))r.valueType.isOptional||s.push(r.name),o[r.name]=c(e,r.valueType,t,i);e[n.name]={...e[n.name],required:s,properties:o}}(e,n,t,i):function(e,n,t){var i;if(e[n.name])return;switch(n.name){case"Boolean":e[n.name]={type:"boolean"};break;case"Decimal":case"Float":e[n.name]={type:"number"};break;case"Int":case"Short":e[n.name]={type:"integer"};break;case"ID":e[n.name]={oneOf:[{type:"integer"},{type:"string"}]};break;case"String":e[n.name]={type:"string"};break;case"Upload":e[n.name]={enum:null!==(i=null===t||void 0===t?void 0:t.map((e=>{let{name:n}=e;return n})))&&void 0!==i?i:[]};break;default:e[n.name]={oneOf:[{type:"array"},{type:"boolean"},{type:"integer"},{type:"null"},{type:"number"},{type:"object"},{type:"string"}]}}}(e,n,i)}(e,a,t,i),s.$ref="#/definitions/".concat(a.name),o}},90126:(e,n,t)=>{"use strict";t.d(n,{Q:()=>u,k:()=>d});var i=t(4473),s=t(68341),o=(t(36022),t(75885),t(23845)),r=t(29232),a=t(28511),c=(0,s.A)("handlers"),l=(0,s.A)("responseHandlers");class d{constructor(){Object.defineProperty(this,c,{writable:!0,value:[]}),Object.defineProperty(this,l,{writable:!0,value:new Map})}handleMessage(e,n){const t=(0,i.A)(this,l)[l].get(n.id);t?t(n,e):(0,i.A)(this,c)[c].filter((e=>e.type===n.type)).forEach((t=>{let{handle:i}=t;return i(n,e)}))}registerReceiveMessageHandler(e,n){const t={type:e,handle:n};return(0,i.A)(this,c)[c].push(t),()=>{const e=(0,i.A)(this,c)[c].indexOf(t);(0,i.A)(this,c)[c].splice(e,1)}}sendAndReceiveMessage(e){let n,t,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=arguments.length>2?arguments[2]:void 0;return(0,a.bA)((()=>{var e;return null===(e=t)||void 0===e?void 0:e()}),(()=>new Promise(((d,u)=>{t=()=>{self.clearTimeout(n),u(a.eC),(0,r.yX)(this.getContext(),e.id),(0,i.A)(this,l)[l].delete(e.id)},n=s?void 0:self.setTimeout((()=>{u("Timeout exceeded 60 sec."),(0,i.A)(this,l)[l].delete(e.id)}),o.iW),(0,i.A)(this,l)[l].set(e.id,(e=>{if(null===c||void 0===c||!c.aborted){if((0,r.SA)(e)){const{errorMessage:n,kind:t,details:i}=e.payload;u(new r.zX(n,t,i))}else d(e.payload);self.clearTimeout(n),(0,i.A)(this,l)[l].delete(e.id)}})),this.getContext().sendMessage(e)}))),c)}sendMessage(e){this.getContext().sendMessage(e)}}class u{constructor(e,n,t){this.type=e,this.payload=n,this.id=void 0,this.createdAt=void 0,this.id=t||(0,a.sX)(),this.createdAt=(0,a.tB)()}}},40409:(e,n,t)=>{"use strict";t.d(n,{H:()=>d,u:()=>c});var i=t(4473),s=t(68341),o=t(77740),r=t(47924),a=t(90126);const c={sendMessage:e=>self.postMessage(e)};var l=(0,s.A)("context");class d extends a.k{constructor(){super(),Object.defineProperty(this,l,{writable:!0,value:{sendMessage:e=>self.postMessage(e)}}),this.initialize()}getContext(){return(0,i.A)(this,l)[l]}initialize(){self.onmessage=e=>{let{data:n}=e;this.handleMessage((0,i.A)(this,l)[l],n)},this.registerReceiveMessageHandler(o.CN,(e=>{(0,r.yX)(e.payload.taskId)})),this.registerReceiveMessageHandler(o.hZ,(e=>{self.appNamespace=e.payload.appNamespace})),this.registerMessageReceiveHandlers()}}},29899:(e,n,t)=>{"use strict";t.d(n,{Bo:()=>o,Rr:()=>s,dM:()=>i});t(36022),t(75885);function i(e){return e.filter(((e,n,t)=>t.indexOf(e)===n))}function s(e){return"string"!==typeof e&&Array.isArray(e)&&e.every((e=>"object"===typeof e&&!Array.isArray(e)))}function o(e){return"string"!==typeof e&&Array.isArray(e)&&e.every((e=>"string"===typeof e))}},13798:(e,n,t)=>{"use strict";t.d(n,{n:()=>o});var i=t(53358),s=t.n(i);function o(){let e=new(s());for(var n=arguments.length,t=new Array(n),i=0;i<n;i++)t[i]=arguments[i];return t.forEach((n=>e=e.update(n))),e.digest("hex")}},28511:(e,n,t)=>{"use strict";t.d(n,{eC:()=>i.eC,Gc:()=>g.G,Tp:()=>h.Tp,y1:()=>i.y1,bA:()=>i.bA,lm:()=>u,n1:()=>a.n,sX:()=>d,r_:()=>p,T6:()=>v.T,ax:()=>f,Go:()=>y.G,cb:()=>b.c,dM:()=>s.dM,WG:()=>o.W,c9:()=>E.c,zf:()=>i.zf,Td:()=>N.Td,Hf:()=>N.Hf,Tn:()=>N.Tn,D_:()=>I.D_,Rr:()=>s.Rr,aE:()=>A.a,Bo:()=>s.Bo,Mn:()=>i.Mn,mv:()=>x.mv,M_:()=>i.M_,lQ:()=>T.l,tB:()=>m.tB,Am:()=>r.A});var i=t(82175),s=t(29899),o=t(34818),r=(t(17112),t(5198),t(27362)),a=t(13798),c=t(32089);const l="|";function d(e){return e&&e.length>0?"".concat(e).concat(l).concat((0,c.Ak)()):(0,c.Ak)()}function u(){return d("doc")}function p(){return d("req")}function f(){return d("scope")}var v=t(23075),m=t(85096),h=t(79968),y=t(56275),E=(t(17957),t(63291),t(75468)),I=t(35061),g=t(50379),T=(t(20433),t(46627),t(20405)),b=(t(39876),t(87973),t(72307),t(81370),t(6687),t(12777),t(4048),t(44812)),A=t(32531),N=t(53768),x=t(54620)},35061:(e,n,t)=>{"use strict";t.d(n,{D_:()=>s});const i=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;function s(e){return i.test(e)}},50379:(e,n,t)=>{"use strict";t.d(n,{G:()=>a});var i=t(4473),s=t(68341),o=(t(75885),(0,s.A)("maxSize")),r=(0,s.A)("cleanupItem");class a extends Map{constructor(e){super(),Object.defineProperty(this,o,{writable:!0,value:10}),Object.defineProperty(this,r,{writable:!0,value:void 0}),null!==e&&void 0!==e&&e.maxSize&&e.maxSize>0&&((0,i.A)(this,o)[o]=e.maxSize),(0,i.A)(this,r)[r]=null===e||void 0===e?void 0:e.cleanupItem}get(e){if(!super.has(e))return;const n=super.get(e);return void 0!==n&&(super.delete(e),super.set(e,n)),n}set(e,n){if(this.size>=(0,i.A)(this,o)[o]){var t,s;const e=this.entries().next().value;this.delete(e[0]),null===(t=(s=(0,i.A)(this,r))[r])||void 0===t||t.call(s,e[1])}return super.set(e,n)}}},20405:(e,n,t)=>{"use strict";function i(){}t.d(n,{l:()=>i})},83759:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});var i=t(59968),s=t(466);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:e=>e.eatWhile(i.pi),lexRules:i.Rq,parseRules:i.vM,editorConfig:{}};return{startState(){const n={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return c(e.parseRules,n,s.b.DOCUMENT),n},token:(n,t)=>function(e,n,t){var i;if(n.inBlockstring)return e.match(/.*"""/)?(n.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:s,parseRules:o,eatWhitespace:u,editorConfig:f}=t;n.rule&&0===n.rule.length?l(n):n.needsAdvance&&(n.needsAdvance=!1,d(n,!0));if(e.sol()){const t=(null===f||void 0===f?void 0:f.tabSize)||2;n.indentLevel=Math.floor(e.indentation()/t)}if(u(e))return"ws";const v=function(e,n){const t=Object.keys(e);for(let i=0;i<t.length;i++){const s=n.match(e[t[i]]);if(s&&s instanceof Array)return{kind:t[i],value:s[0]}}}(s,e);if(!v){return e.match(/\S+/)||e.match(/\s/),c(a,n,"Invalid"),"invalidchar"}if("Comment"===v.kind)return c(a,n,"Comment"),"comment";const m=r({},n);if("Punctuation"===v.kind)if(/^[{([]/.test(v.value))void 0!==n.indentLevel&&(n.levels=(n.levels||[]).concat(n.indentLevel+1));else if(/^[})\]]/.test(v.value)){const e=n.levels=(n.levels||[]).slice(0,-1);n.indentLevel&&e.length>0&&e.at(-1)<n.indentLevel&&(n.indentLevel=e.at(-1))}for(;n.rule;){let t="function"===typeof n.rule?0===n.step?n.rule(v,e):null:n.rule[n.step];if(n.needsSeparator&&(t=null===t||void 0===t?void 0:t.separator),t){if(t.ofRule&&(t=t.ofRule),"string"===typeof t){c(o,n,t);continue}if(null===(i=t.match)||void 0===i?void 0:i.call(t,v))return t.update&&t.update(n,v),"Punctuation"===v.kind?d(n,!0):n.needsAdvance=!0,t.style}p(n)}return r(n,m),c(a,n,"Invalid"),"invalidchar"}(n,t,e)}}function r(e,n){const t=Object.keys(n);for(let i=0;i<t.length;i++)e[t[i]]=n[t[i]];return e}const a={Invalid:[],Comment:[]};function c(e,n,t){if(!e[t])throw new TypeError("Unknown rule: "+t);n.prevState=Object.assign({},n),n.kind=t,n.name=null,n.type=null,n.rule=e[t],n.step=0,n.needsSeparator=!1}function l(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeparator=e.prevState.needsSeparator,e.prevState=e.prevState.prevState)}function d(e,n){var t;if(u(e)&&e.rule){const t=e.rule[e.step];if(t.separator){const{separator:n}=t;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&n.ofRule)return}if(n)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)l(e),e.rule&&(u(e)?(null===(t=e.rule)||void 0===t?void 0:t[e.step].separator)&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function u(e){const n=Array.isArray(e.rule)&&"string"!==typeof e.rule[e.step]&&e.rule[e.step];return n&&n.isList}function p(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)l(e);e.rule&&d(e,!1)}},20709:(e,n,t)=>{e.exports=t(82685)}},n={};function t(i){var s=n[i];if(void 0!==s)return s.exports;var o=n[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}t.m=e,t.x=()=>{var e=t.O(void 0,[461,709,830,936,23,478,531,41],(()=>t(33462)));return e=t.O(e)},(()=>{var e=[];t.O=(n,i,s,o)=>{if(!i){var r=1/0;for(d=0;d<e.length;d++){i=e[d][0],s=e[d][1],o=e[d][2];for(var a=!0,c=0;c<i.length;c++)(!1&o||r>=o)&&Object.keys(t.O).every((e=>t.O[e](i[c])))?i.splice(c--,1):(a=!1,o<r&&(r=o));if(a){e.splice(d--,1);var l=s();void 0!==l&&(n=l)}}return n}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[i,s,o]}})(),t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((n,i)=>(t.f[i](e,n),n)),[])),t.u=e=>830===e?"static/js/830.bcdef144.chunk.js":23===e?"static/js/23.7a65909d.chunk.js":531===e?"static/js/531.8d61401e.chunk.js":"static/js/"+(461===e?"polyfills":e)+".d2e3036c.js",t.miniCssF=e=>{},t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),t.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.j=17,(()=>{var e;t.g.importScripts&&(e=t.g.location+"");var n=t.g.document;if(!e&&n&&(n.currentScript&&(e=n.currentScript.src),!e)){var i=n.getElementsByTagName("script");if(i.length)for(var s=i.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=i[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=e+"../../"})(),(()=>{var e={17:1,402:1};t.f.i=(n,i)=>{e[n]||importScripts(t.p+t.u(n))};var n=self.webpackChunknitro=self.webpackChunknitro||[],i=n.push.bind(n);n.push=n=>{var s=n[0],o=n[1],r=n[2];for(var a in o)t.o(o,a)&&(t.m[a]=o[a]);for(r&&r(t);s.length;)e[s.pop()]=1;i(n)}})(),(()=>{var e=t.x;t.x=()=>Promise.all([461,709,830,936,23,478,531,41].map(t.e,t)).then(e)})();t.x()})();
1
+ (()=>{var e={23845:(e,n,t)=>{"use strict";t.d(n,{mF:()=>f,ag:()=>c,hl:()=>a,wL:()=>T.wL,To:()=>T.To,fc:()=>T.fc,HO:()=>I,qB:()=>v,VX:()=>m,QB:()=>h,c7:()=>y,vZ:()=>E,RI:()=>g,_w:()=>u,CZ:()=>T.CZ,MA:()=>T.MA,iW:()=>T.iW,OY:()=>T.OY,R1:()=>T.R1,T2:()=>T.T2,BN:()=>T.BN,fI:()=>T.fI,kf:()=>T.kf});var i,s,o=t(8330);const r=o.QC,a=o.rE,c=null!==(i="Q2xpZW50Cmc5ZjAwOTFmNTY5NmQ0NTZkOWUwZDQ0ZDMzYjJhZDJlOA==")?i:"",l=(o.rE,new RegExp("^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.com|chillicream\\.cloud)","i")),d=null!==(s=null===l||void 0===l?void 0:l.test(self.origin))&&void 0!==s&&s,u=navigator.userAgent.indexOf("Electron")>=0,p=d?"cloud":u?"app":"middleware",f="".concat(r,"/").concat(a," (").concat(p,")");(function(){if(navigator.userAgent.indexOf("Win")>=0)return"Windows";if(navigator.userAgent.indexOf("Mac")>=0)return"macOS";if(navigator.userAgent.indexOf("X11")>=0||navigator.userAgent.indexOf("Linux")>=0)return"Linux"})(),function(){const e=navigator.userAgent.toLowerCase();e.includes("mac os")||e.includes("ipad")}();const v="Authorization",m="Content-Type",h="User-Agent",y=/^https?:\/\//i,E=/{{\s*([a-z0-9_\-|.:+#$!?;,]+)\s*}}/gi,I=/graphql-query-plan/i,g=/^_{2}(?!_)/i;var T=t(18370)},50072:(e,n,t)=>{"use strict";t.d(n,{ppT:()=>h.pp,jIU:()=>h.jI,hPE:()=>h.hP,PhU:()=>h.Ph,Gkb:()=>h.Gk,FxT:()=>l,OYB:()=>v,_um:()=>s._u,OfI:()=>s.Of,K6y:()=>i.K6,TES:()=>s.TE,FH2:()=>s.FH,Ac:()=>s.Ac,SWZ:()=>u,BID:()=>p,qaG:()=>f,Sjm:()=>s.Sj,snc:()=>s.sn,WGI:()=>s.WG,qaW:()=>m.q,PHK:()=>s.PH,lKN:()=>s.lK,x_1:()=>o.x,GUQ:()=>m.GU,mkZ:()=>d,qhv:()=>s.qh,LDz:()=>o.L});var i=t(3455),s=t(52396),o=t(37551),r=(t(75885),t(99850)),a=t(28511);let c=function(e){return e.SDL_SCHEMA="sdl-schema",e.STATISTICS="statistics",e.ITEMS="items",e}({}),l=function(e){return e.SDL_FETCH="sdl-fetch",e.SDL_PROBE="sdl-probe",e.INTROSPECTION="introspection",e}({});function d(e,n,t,i){return(0,r.SE)(["schema","schema-attachment"],"readwrite",(async s=>{var o,r,l,d,u,p;const f={endpoint:e,updatedAt:(0,a.tB)(),hash:v(e,t),indexed:!1,hasUploadType:!!n.getType("Upload"),queryTypeName:null!==(o=null===(r=n.getQueryType())||void 0===r?void 0:r.name)&&void 0!==o?o:null,mutationTypeName:null!==(l=null===(d=n.getMutationType())||void 0===d?void 0:d.name)&&void 0!==l?l:null,subscriptionTypeName:null!==(u=null===(p=n.getSubscriptionType())||void 0===p?void 0:p.name)&&void 0!==u?u:null,schemaKind:i};return await Promise.all([s.store.schema.put(f),s.store.schemaAttachment.put({endpoint:e,kind:c.SDL_SCHEMA,value:t}),s.store.schemaAttachment.delete([e,c.ITEMS]),s.store.schemaAttachment.delete([e,c.STATISTICS]),s.done]),f}))}function u(e){const n=(0,a.c9)(e);return(0,r.EL)("schema",n)}async function p(e){const n=(0,a.c9)(e),t=await(0,r.EL)("schema-attachment",[n,c.ITEMS]);return function(e){return!!e&&e.kind===c.ITEMS}(t)?t.value:void 0}async function f(e){const n=(0,a.c9)(e),t=await(0,r.EL)("schema-attachment",[n,c.STATISTICS]);return function(e){return!!e&&e.kind===c.STATISTICS}(t)?t.value:void 0}function v(e,n){return(0,a.n1)(JSON.stringify(["graphql-schema-entity",e,n]))}var m=t(21244),h=(t(85233),t(9416));t(54700),t(57731),t(95616),t(54161),t(55822)},2622:(e,n,t)=>{"use strict";t.d(n,{FH:()=>u,Of:()=>r,Sj:()=>a,WG:()=>p,sn:()=>c});t(75885);var i=t(99850),s=t(65107),o=t(59943);async function r(e,n){return(0,i.SE)(["attachment","item"],"readonly",(async n=>{const t=await n.store.item.get(e);return(0,o.QH)(t)||(0,o.MT)(t)||(0,o.vA)(t)?l(n,t):n.abort("Item does not exist or is not of type API nor Document.")}),n)}async function a(e,n,t){return(0,i.SE)(["attachment","item","workspace"],"readonly",(async t=>{const i=await t.store.item.get(e);if(!((0,o.QH)(i)||(0,o.MT)(i)||(0,o.vA)(i)))return t.abort("Item does not exist or is not of type API nor Document.");if(!n){const e=await l(t,i);return null===e||void 0===e?void 0:e.http}const[s,r]=await Promise.all([l(t,i),d(t,n)]);var a;return s&&r?null!==(a=(0,o.PH)(s,(0,o.CO)(r.variables)))&&void 0!==a?a:void 0:null===s||void 0===s?void 0:s.http}),t)}async function c(e,n){return(0,i.SE)(["attachment","item","workspace"],"readonly",(async n=>{const t=await n.store.item.get(e);if(!((0,o.QH)(t)||(0,o.MT)(t)||(0,o.vA)(t)))return n.abort("Item does not exist or is not of type API nor Document.");let i=null;if(t.workspaceId){var s,r;const e=await n.store.workspace.get(t.workspaceId);i=null!==(s=null===e||void 0===e||null===(r=e.appState)||void 0===r?void 0:r.activeEnvironmentId)&&void 0!==s?s:null}if(!i){const e=await l(n,t);return null===e||void 0===e?void 0:e.http}const[a,c]=await Promise.all([l(n,t),d(n,i)]);var u;return a&&c?null!==(u=(0,o.PH)(a,(0,o.CO)(c.variables)))&&void 0!==u?u:void 0:null===a||void 0===a?void 0:a.http}),n)}async function l(e,n){const t=await e.store.attachment.get([(0,o.Zm)(n)?n.apiId:n.id,s.iQ]);if((0,o.ZO)(t))return t}async function d(e,n){const t=await e.store.attachment.get([n,s.t_]);if((0,o.as)(t))return t}async function u(e,n){return(0,i.SE)(["attachment","item"],"readonly",(n=>Promise.all(e.map((async e=>{const t=await n.store.item.get(e);return(0,o.Gs)(t)?await n.store.attachment.get([e,s.gV]):n.abort("Item does not exist or is not of type API nor Document.")})))),n)}async function p(e){var n,t;return(0,o.CO)(e&&null!==(n=null===(t=await async function(e){return(0,i.ot)((async n=>{const t=await n.get("attachment",[e,s.t_]);if((0,o.as)(t))return t}))}(e))||void 0===t?void 0:t.variables)&&void 0!==n?n:[])}},52396:(e,n,t)=>{"use strict";t.d(n,{_u:()=>c,Of:()=>i.Of,TE:()=>a,FH:()=>i.FH,Ac:()=>l,Sj:()=>i.Sj,sn:()=>i.sn,WG:()=>i.WG,PH:()=>r.PH,lK:()=>r.lK,qh:()=>p.q});t(46114),t(22197),t(13939),t(43351);var i=t(2622),s=(t(62316),t(36022),t(45155),t(49997),t(57928),t(2813),t(32990),t(37669),t(35033),t(75885),t(99850)),o=(t(28511),t(65107)),r=t(59943);function a(e,n){return(0,s.SE)(["attachment","item"],"readonly",(async n=>{const[t,i]=await Promise.all([n.store.item.get(e),n.store.attachment.get([e,o.tx])]);if((0,r.vA)(t)&&(0,r.Q7)(i))return(0,r.Ls)(t,i)}),n)}function c(e){return(0,s.SE)(["item"],"readonly",(n=>d(n,e)))}function l(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];return(0,s.SE)(["item"],"readonly",(n=>d(n,e,(e=>t.includes(e)))))}async function d(e,n,t){const i=[],s={};for await(const l of e.index.item.kind.iterate([n,o.Er])){const n=l.value;if((0,r.Gs)(n)){var a,c;n.parentId&&!s[n.parentId]&&(s[n.parentId]=await u(e,n.path).then((e=>{var n;return null!==(n=null===e||void 0===e?void 0:e.join("/"))&&void 0!==n?n:""})));const o="".concat(n.parentId&&null!==(a=s[n.parentId])&&void 0!==a&&a.length?"".concat(s[n.parentId],"/"):"").concat(n.name);(null===(c=null===t||void 0===t?void 0:t(o))||void 0===c||c)&&i.push({id:n.id,workspaceId:n.workspaceId,name:o,size:n.size})}}return i}async function u(e,n){return Promise.all(n.slice(0,-1).map((async n=>{const t=await e.store.item.get(n);if(!t)throw new Error("Parent does not exist");return t.name})))}t(82545),t(19340),t(37532),t(94120),t(43744);var p=t(5250);t(2091)},65107:(e,n,t)=>{"use strict";t.d(n,{$R:()=>a,AL:()=>m,Er:()=>h,Jz:()=>l,Uj:()=>f,gV:()=>c,hN:()=>u,iQ:()=>i,mv:()=>d,sd:()=>o,sm:()=>v,t_:()=>r,tx:()=>s,wA:()=>p});const i="connection-settings",s="document-content",o="origin-document-content",r="variable-collection",a="origin-variable-collection",c="file-content",l="variable-json-schema",d="api",u="new-api",p="api-document",f="document",v="historical-document",m="new-document",h="file"},59943:(e,n,t)=>{"use strict";t.d(n,{CO:()=>T,Cz:()=>h,Gs:()=>u,Ls:()=>m,MT:()=>a,PH:()=>y,Q7:()=>f,QH:()=>r,ZO:()=>p,Zm:()=>l,as:()=>v,lK:()=>g,vA:()=>c});t(76523),t(5084),t(75885);var i=t(23845),s=(t(99850),t(54700),t(28511)),o=t(65107);function r(e){return(null===e||void 0===e?void 0:e.kind)===o.mv}function a(e){return(null===e||void 0===e?void 0:e.kind)===o.hN}function c(e){return l(e)||d(e)||function(e){return(null===e||void 0===e?void 0:e.kind)===o.sm}(e)||function(e){return(null===e||void 0===e?void 0:e.kind)===o.AL}(e)}function l(e){return(null===e||void 0===e?void 0:e.kind)===o.wA}function d(e){return(null===e||void 0===e?void 0:e.kind)===o.Uj}function u(e){return(null===e||void 0===e?void 0:e.kind)===o.Er}function p(e){return(null===e||void 0===e?void 0:e.kind)===o.iQ}function f(e){return(null===e||void 0===e?void 0:e.kind)===o.tx||(null===e||void 0===e?void 0:e.kind)===o.sd}function v(e){return(null===e||void 0===e?void 0:e.kind)===o.t_||(null===e||void 0===e?void 0:e.kind)===o.$R}function m(e,n){const{itemId:t,kind:i,workspaceId:s,...o}=n;return{...e,...o}}function h(e){const n=(0,s.n1)(JSON.stringify(e.schema));return{...e,hash:n}}function y(e,n){const t=null===e||void 0===e?void 0:e.http;return t?{...t,authentication:E(t.authentication,n),endpoint:g(t.endpoint,n),sdlEndpoint:t.sdlEndpoint?g(t.sdlEndpoint,n):t.sdlEndpoint,sseSubscriptionEndpoint:t.sseSubscriptionEndpoint?g(t.sseSubscriptionEndpoint,n):t.sseSubscriptionEndpoint,subscriptionEndpoint:t.subscriptionEndpoint?g(t.subscriptionEndpoint,n):t.subscriptionEndpoint,headers:t.headers?t.headers.map((e=>({...e,name:g(e.name,n),value:g(e.value,n)}))):t.headers}:null}function E(e,n){if(e)return e?{...e,basicOptions:e.basicOptions?{password:g(e.basicOptions.password,n),username:g(e.basicOptions.username,n)}:void 0,bearerOptions:e.bearerOptions?{prefix:e.bearerOptions.prefix?g(e.bearerOptions.token,n):void 0,token:g(e.bearerOptions.token,n)}:void 0,oAuth2Options:I(e.oAuth2Options,n),headerValue:e.headerValue?g(e.headerValue,n):void 0}:void 0}function I(e,n){return e?{...e,accessTokenUrl:g(e.accessTokenUrl,n),audience:g(e.audience,n),authorizationUrl:g(e.authorizationUrl,n),clientId:g(e.clientId,n),clientSecret:g(e.clientSecret,n),origin:g(e.origin,n),password:g(e.password,n),prefix:g(e.prefix,n),redirectUrl:g(e.redirectUrl,n),resource:g(e.resource,n),scope:g(e.scope,n),state:g(e.state,n),username:g(e.username,n),sessionId:e.sessionId?g(e.sessionId,n):void 0}:void 0}function g(e,n){let t=e;const s=e.matchAll(i.vZ);for(const i of s){var o;t=t.replace(i[0],null!==(o=n.get(i[1]))&&void 0!==o?o:i[0])}return t}function T(e){const n=new Map;for(const{name:t,value:i,currentValue:s,enabled:o}of e)o&&n.set(t,s||i);return n}},5250:(e,n,t)=>{"use strict";t.d(n,{q:()=>r});var i=t(99850),s=t(65107),o=t(59943);async function r(e,n,t){return(0,i.SE)(["attachment","item"],"readwrite",(async t=>{let i=await t.store.item.get(e);if(!(0,o.vA)(i))return t.abort("Item does not exist or is not of type Document.");const r=(0,o.Cz)({itemId:e,workspaceId:i.workspaceId,kind:s.Jz,schema:n});return await t.store.attachment.put(r),r}),t)}},9416:(e,n,t)=>{"use strict";t.d(n,{Gk:()=>d,Hw:()=>i,JZ:()=>o,Ph:()=>u,X:()=>r,hP:()=>l,jI:()=>c,pp:()=>a,wv:()=>s});const i="no-auth",s="bearer",o="oauth2",r="basic",a="graphql-ws",c="auto",l=c,d="graphql-transport-ws",u="graphql-sse"},39588:(e,n,t)=>{"use strict";t.d(n,{AN:()=>s.A,L2:()=>i.L,hb:()=>d});var i=t(4537),s=(t(78238),t(60212)),o=(t(62316),t(93967),t(54913),t(75885),t(23845)),r=t(28511),a=t(20278),c=t(41192),l=t(20709);const d=new l.Environment({network:l.Network.create(((e,n,t)=>l.Observable.from((0,i.L)("/graphql")).mergeMap((t=>l.Observable.create((i=>l.Observable.from(new Promise(((s,a)=>{(async function(t,i){try{const{uri:s,headers:a}=i;a.set(o.VX,"application/json");const l=await fetch(s,{body:JSON.stringify(e.id?{id:e.id,variables:n}:{query:e.text,variables:n}),headers:a,method:"POST"}),d=await(0,c.z)(l);if((0,r.Td)(d))for await(const e of d){if(!e.json){t.error(new Error("Failed to parse part as json."));break}if("data"in e.body&&t.next(e.body),"incremental"in e.body)for(const n of e.body.incremental)if("data"in n)t.next({...n,hasNext:e.body.hasNext});else if(n.items){const i=n.path.slice(0,-1);let s=n.path.at(-1);for(const o of n.items)t.next({...n,path:i.concat(s++),data:o,hasNext:e.body.hasNext})}else t.next({...n,data:n.items,hasNext:e.body.hasNext})}else t.next(await d.json());t.complete()}catch(s){s instanceof Error?t.error(s,!0):t.error(new Error("Unknown error"),!0)}})(i,t).then(s,a)}))).subscribe({})))))),((e,n)=>l.Observable.from((0,i.L)("/graphql")).map((e=>{let{uri:n,headers:t}=e;const i={};return t.forEach(((e,n)=>{i[n]=e})),(0,a.UU)({url:n,headers:i})})).mergeMap((t=>l.Observable.create((i=>{var s,o;const r=t.subscribe({id:null!==(s=e.id)&&void 0!==s?s:void 0,query:null!==(o=e.text)&&void 0!==o?o:"",variables:n},{next:e=>{var n;let{data:t,errors:s,extensions:o}=e;return i.next({data:null!==t&&void 0!==t?t:void 0,errors:null!==(n=null===s||void 0===s?void 0:s.map((e=>{var n;return{message:e.message,locations:null===(n=e.locations)||void 0===n?void 0:n.map((e=>{let{line:n,column:t}=e;return{line:n,column:t}}))}})))&&void 0!==n?n:[],extensions:o})},complete:i.complete,error:e=>{e instanceof Error?i.error(e,!0):i.error(new Error("Unknown error"),!0)}});return{closed:i.closed,unsubscribe:r}})))))),store:new l.Store(new l.RecordSource)});t(77122)},69529:(e,n,t)=>{"use strict";t.d(n,{FG:()=>i.FG,Q8:()=>s.Q8,S5:()=>i.S5,YR:()=>i.YR,g$:()=>i.g$,mv:()=>o.m,sP:()=>i.sP,tB:()=>i.tB,xs:()=>i.xs});var i=t(67466),s=t(97353),o=t(26845)},13295:(e,n,t)=>{"use strict";t.d(n,{N5:()=>r,VJ:()=>s,c:()=>a,tB:()=>o});var i=t(96243);function s(e){return!!e&&"object"===typeof e&&"kind"in e&&Object.values(i.xs).includes(e.kind)}function o(e){return c(e,i.xs.OPERATION_DEFINITION)}function r(e){return c(e,i.xs.FIELD)}function a(e){return c(e,i.xs.DIRECTIVE)}function c(e,n){return!!e&&"object"===typeof e&&"kind"in e&&e.kind===n&&!("isConst"in e)}},96243:(e,n,t)=>{"use strict";t.d(n,{S5:()=>r,Yp:()=>s,hd:()=>o,xs:()=>i});let i=function(e){return e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLES_DEFINITION="VariablesDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT_DICT="ArgumentDict",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.NUMBER="NumberValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e}({}),s=function(e){return e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.QUESTION_MARK="?",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.BOOLEAN="Boolean",e.NUMBER="Number",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment",e.KEYWORD="Keyword",e.INVALID="Invalid",e}({});const o={Name:[],Document:["definitions"],OperationDefinition:["name","variablesDefinition","directives","selectionSet"],VariablesDefinition:["variableDefinitions"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","argumentDict","directives","selectionSet"],ArgumentDict:["arguments"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","typeCondition","directives","selectionSet"],NumberValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","argumentDict"],NamedType:["name"],ListType:["type"],NonNullType:["type"]};let r=function(e){return e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription",e}({})},67466:(e,n,t)=>{"use strict";t.d(n,{xs:()=>i.xs,sP:()=>B.sP,S5:()=>i.S5,g$:()=>a.g$,Id:()=>a.Id,tB:()=>s.tB,FG:()=>d,YR:()=>B.YR});var i=t(96243),s=t(13295),o=(t(36022),t(75885),t(62967)),r=t(92398),a=t(30628);const c={...o.qx,DEFAULT:"DefaultValue",NUMBER:"NumberValue"},l={...r.ParseRules,Definition:e=>{switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return"FragmentDefinition"}}};function d(e){const n=(0,o.r5)({eatWhitespace:e=>e.eatWhile(r.isIgnored),lexRules:r.LexRules,parseRules:l,editorConfig:{}}),t=e.split(/\n/).map(((e,n,t)=>{let{length:i}=t;return new o.Qb(e+(i>n+1?"\n":""))})),s=n.startState(),d=F("document",i.Yp.SOF,0,1,1,1,0,0),C=[d],B=[{kind:i.xs.DOCUMENT,location:[0,0],definitions:[],tokens:C}];let U=d,Y=0,Q=1,j=1;for(let o=0;o<t.length;o++){const e=t[o];for(j=o+1;!e.eol();){Q=e.column()+1;const t=e.getCurrentPosition(),o=n.token(e,s),r=s.kind,a=e.current();if(r&&"comment"!==o&&"ws"!==o&&(U=F(o,a,C.length,j,Q,e.column()+1,Y+t,Y+e.getCurrentPosition()),C.push(U),U.kind!==i.Yp.INVALID))switch(r){case c.DOCUMENT:I(B,U),E(B,U);break;case c.QUERY:case c.MUTATION:case c.SUBSCRIPTION:y(B,U),I(B,U),E(B,U);break;case c.FRAGMENT_DEFINITION:v(B,U),E(B,U);break;case c.INLINE_FRAGMENT:h(B,U),E(B,U);break;case c.FRAGMENT_SPREAD:m(B,U);break;case c.FIELD:f(B,U),k(B,U),E(B,U);break;case c.ALIASED_FIELD:u(B,U),k(B,U),E(B,U);break;case c.SELECTION_SET:y(B,U),E(B,U);break;case c.VARIABLE_DEFINITIONS:w(B,U),I(B,U);break;case c.VARIABLE_DEFINITION:N(B,U),g(B,U);break;case c.DEFAULT:b(B,U);break;case c.VARIABLE:T(B,U);break;case c.DIRECTIVE:p(B,U);break;case c.LIST_TYPE:N(B,U),A(B,U);break;case c.NAMED_TYPE:x(B,U);break;case c.ARGUMENTS:w(B,U),O(B,U),k(B,U);break;case c.ARGUMENT:S(B,U);break;case c.LIST:case c.OBJECT:w(B,U),O(B,U);break;case c.OBJECT_FIELD:R(B,U);break;case c.BOOLEAN:L(B,U);break;case c.ENUM:M(B,U);break;case c.NULL:_(B,U);break;case c.NUMBER:D(B,U);break;case c.STRING:P(B,U)}}Y+=e.getCurrentPosition(),Q=e.column()+1}const G=(0,a.Am)(B,i.xs.DOCUMENT),V=F("document",i.Yp.EOF,C.length,j,Q,Q,Y,Y);return C.push(V),G.location[1]=V.index,G}function u(e,n){switch(n.kind){case i.Yp.NAME:{let t=(0,a.j1)(e,i.xs.SELECTION_SET,i.xs.FIELD);function s(t){const s={kind:i.xs.FIELD,location:[n.index,n.index],alias:(0,a.Oj)(n)};t.selections.push(s),e.push(s)}(0,a.M8)(e,n),t.kind===i.xs.SELECTION_SET?s(t):t.alias?t.name=(0,a.Oj)(n):(t=(0,a.I)(e,i.xs.SELECTION_SET),s(t))}break;case i.Yp.COLON:(0,a.M8)(e,n)}}function p(e,n){switch(n.kind){case i.Yp.AT:{const t=(0,a.I)(e,i.xs.OPERATION_DEFINITION,i.xs.VARIABLE_DEFINITION,i.xs.FRAGMENT_DEFINITION,i.xs.FIELD,i.xs.FRAGMENT_SPREAD,i.xs.INLINE_FRAGMENT);if((0,a.M8)(e,n),t.kind===i.xs.VARIABLE_DEFINITION){const s={kind:i.xs.DIRECTIVE,location:[n.index,n.index],isConst:!0};t.directives?t.directives.push(s):t.directives=[s],e.push(s)}else{const s={kind:i.xs.DIRECTIVE,location:[n.index,n.index]};t.directives?t.directives.push(s):t.directives=[s],e.push(s)}}break;case i.Yp.NAME:(0,a.M8)(e,n),(0,a.j1)(e,i.xs.DIRECTIVE).name=(0,a.Oj)(n)}}function f(e,n){if(n.kind===i.Yp.NAME){const t=(0,a.I)(e,i.xs.SELECTION_SET);(0,a.M8)(e,n);const s={kind:i.xs.FIELD,location:[n.index,n.index],name:(0,a.Oj)(n)};t.selections.push(s),e.push(s)}}function v(e,n){switch(n.kind){case i.Yp.KEYWORD:if((0,a.M8)(e,n),"fragment"===n.value){const t=(0,a.j1)(e,i.xs.DOCUMENT),s={kind:i.xs.FRAGMENT_DEFINITION,location:[n.index,n.index]};t.definitions.push(s),e.push(s)}break;case i.Yp.NAME:(0,a.M8)(e,n),(0,a.j1)(e,i.xs.FRAGMENT_DEFINITION).name=(0,a.Oj)(n)}}function m(e,n){switch(n.kind){case i.Yp.SPREAD:{const t=(0,a.I)(e,i.xs.SELECTION_SET);(0,a.M8)(e,n);const s={kind:i.xs.FRAGMENT_SPREAD,location:[n.index,n.index]};t.selections.push(s),e.push(s)}break;case i.Yp.NAME:(0,a.M8)(e,n),(0,a.j1)(e,i.xs.FRAGMENT_SPREAD).name=(0,a.Oj)(n)}}function h(e,n){switch(n.kind){case i.Yp.SPREAD:{const t=(0,a.I)(e,i.xs.SELECTION_SET);(0,a.M8)(e,n);const s={kind:i.xs.INLINE_FRAGMENT,location:[n.index,n.index]};t.selections.push(s),e.push(s)}break;case i.Yp.KEYWORD:(0,a.M8)(e,n)}}function y(e,n){switch(n.kind){case i.Yp.BRACE_L:if(1===e.length){const t=(0,a.j1)(e,i.xs.DOCUMENT),s={kind:i.xs.OPERATION_DEFINITION,operationType:i.S5.QUERY,location:[n.index,n.index]};(0,a.M8)(e,n),t.definitions.push(s),e.push(s)}break;case i.Yp.KEYWORD:{const t=(0,a.j1)(e,i.xs.DOCUMENT);(0,a.M8)(e,n);const s={kind:i.xs.OPERATION_DEFINITION,operationType:n.value,location:[n.index,n.index]};t.definitions.push(s),e.push(s)}break;case i.Yp.NAME:(0,a.M8)(e,n),(0,a.j1)(e,i.xs.OPERATION_DEFINITION).name=(0,a.Oj)(n)}}function E(e,n){switch(n.kind){case i.Yp.BRACE_L:{const t={kind:i.xs.SELECTION_SET,location:[n.index,n.index],selections:[],closed:!1};let s=(0,a.I)(e,i.xs.OPERATION_DEFINITION,i.xs.FRAGMENT_DEFINITION,i.xs.INLINE_FRAGMENT,i.xs.FIELD);(0,a.M8)(e,n),s.selectionSet=t,e.push(t)}break;case i.Yp.BRACE_R:{const t=(0,a.Am)(e,i.xs.SELECTION_SET,i.xs.FRAGMENT_SPREAD,i.xs.INLINE_FRAGMENT,i.xs.FIELD);if((0,a.M8)(e,n),t.kind===i.xs.SELECTION_SET)e.splice(-1,1),(0,a.Nm)(t,n),t.closed=!0;else{const[,n]=e.splice(-2,2);n.closed=!0}}}}function I(e,n){switch(n.kind){case i.Yp.PAREN_L:{const t={kind:i.xs.VARIABLES_DEFINITION,location:[n.index,n.index],variableDefinitions:[],closed:!1},s=(0,a.j1)(e,i.xs.OPERATION_DEFINITION);(0,a.M8)(e,n),s.variablesDefinition=t,e.push(t)}break;case i.Yp.PAREN_R:{const t=(0,a.Am)(e,i.xs.VARIABLES_DEFINITION);(0,a.M8)(e,n),(0,a.Nm)(t,n),t.closed=!0}}}function g(e,n){n.kind===i.Yp.COLON&&(0,a.M8)(e,n)}function T(e,n){var t;switch(n.kind){case i.Yp.DOLLAR:{const t=(0,a.I)(e,i.xs.VARIABLES_DEFINITION,i.xs.ARGUMENT,i.xs.OBJECT_FIELD);switch((0,a.M8)(e,n),t.kind){case i.xs.VARIABLES_DEFINITION:{const s={kind:i.xs.VARIABLE_DEFINITION,location:[n.index,n.index],variable:{kind:i.xs.VARIABLE,location:[n.index,n.index]}};t.variableDefinitions.push(s),e.push(s)}break;case i.xs.ARGUMENT:case i.xs.OBJECT_FIELD:{const e={kind:i.xs.VARIABLE,location:[n.index,n.index]};t.value=e}}}break;case i.Yp.NAME:{const s=(0,a.j1)(e,i.xs.VARIABLE_DEFINITION,i.xs.ARGUMENT,i.xs.OBJECT_FIELD);switch((0,a.M8)(e,n),s.kind){case i.xs.VARIABLE_DEFINITION:(0,a.Nm)(s.variable,n),s.variable.name=(0,a.Oj)(n);break;case i.xs.ARGUMENT:case i.xs.OBJECT_FIELD:(null===(t=s.value)||void 0===t?void 0:t.kind)===i.xs.VARIABLE&&((0,a.Nm)(s.value,n),s.value.name=(0,a.Oj)(n))}}}}function b(e,n){n.kind===i.Yp.EQUALS&&(0,a.M8)(e,n)}function A(e,n){switch(n.kind){case i.Yp.BRACKET_L:{const t=(0,a.j1)(e,i.xs.VARIABLE_DEFINITION,i.xs.LIST_TYPE);switch((0,a.M8)(e,n),t.kind){case i.xs.VARIABLE_DEFINITION:{const s={kind:i.xs.LIST_TYPE,location:[n.index,n.index],closed:!1};t.type=s,e.push(s)}break;case i.xs.LIST_TYPE:{const s={kind:i.xs.LIST_TYPE,location:[n.index,n.index],closed:!1};t.type=s,e.push(s)}}}break;case i.Yp.BRACKET_R:{const t=(0,a.j1)(e,i.xs.LIST_TYPE,i.xs.NON_NULL_TYPE,i.xs.NAMED_TYPE);switch((0,a.M8)(e,n),t.kind){case i.xs.LIST_TYPE:t.closed=!0;break;case i.xs.NON_NULL_TYPE:case i.xs.NAMED_TYPE:(0,a.j1)(e,i.xs.LIST_TYPE).closed=!0}}}}function N(e,n){if(n.kind===i.Yp.BANG){const t=(0,a.Am)(e,i.xs.LIST_TYPE,i.xs.NAMED_TYPE),s={kind:i.xs.NON_NULL_TYPE,location:[t.location[0],n.index],type:t};(0,a.M8)(e,n),(0,a.j1)(e,i.xs.VARIABLE_DEFINITION,i.xs.LIST_TYPE).type=s}}function x(e,n){if(n.kind===i.Yp.NAME){const t=(0,a.j1)(e,i.xs.FRAGMENT_DEFINITION,i.xs.INLINE_FRAGMENT,i.xs.VARIABLE_DEFINITION,i.xs.LIST_TYPE),s={kind:i.xs.NAMED_TYPE,location:[n.index,n.index],name:(0,a.Oj)(n)};t.kind===i.xs.FRAGMENT_DEFINITION||t.kind===i.xs.INLINE_FRAGMENT?t.typeCondition=s:(t.type=s,e.push(s))}}function k(e,n){switch(n.kind){case i.Yp.PAREN_L:{const t=(0,a.j1)(e,i.xs.FIELD,i.xs.DIRECTIVE);if(t.kind===i.xs.DIRECTIVE&&"isConst"in t){const s={kind:i.xs.ARGUMENT_DICT,location:[n.index,n.index],isConst:!0,arguments:[],closed:!1};t.argumentDict=s,e.push(s)}else{const s={kind:i.xs.ARGUMENT_DICT,location:[n.index,n.index],arguments:[],closed:!1};t.argumentDict=s,e.push(s)}}break;case i.Yp.PAREN_R:{const t=(0,a.Am)(e,i.xs.ARGUMENT_DICT);(0,a.M8)(e,n),(0,a.Nm)(t,n),t.closed=!0}}}function S(e,n){switch(n.kind){case i.Yp.NAME:{const t=(0,a.I)(e,i.xs.ARGUMENT_DICT);if((0,a.M8)(e,n),"isConst"in t){const s={kind:i.xs.ARGUMENT,location:[n.index,n.index],isConst:!0,name:(0,a.Oj)(n)};t.arguments.push(s),e.push(s)}else{const s={kind:i.xs.ARGUMENT,location:[n.index,n.index],name:(0,a.Oj)(n)};t.arguments.push(s),e.push(s)}}break;case i.Yp.COLON:(0,a.M8)(e,n)}}function w(e,n){switch(n.kind){case i.Yp.BRACKET_L:{const t=(0,a.j1)(e,i.xs.VARIABLE_DEFINITION,i.xs.ARGUMENT,i.xs.OBJECT_FIELD);if((0,a.M8)(e,n),t.kind===i.xs.VARIABLE_DEFINITION){const s={kind:i.xs.LIST,location:[n.index,n.index],isConst:!0,values:[],closed:!1};t.defaultValue=s,e.push(s)}else{const s={kind:i.xs.LIST,location:[n.index,n.index],values:[],closed:!1};t.value=s,e.push(s)}}break;case i.Yp.BRACKET_R:(0,a.M8)(e,n),(0,a.Am)(e,i.xs.LIST).closed=!0}}function O(e,n){switch(n.kind){case i.Yp.BRACE_L:{const t=(0,a.j1)(e,i.xs.VARIABLE_DEFINITION,i.xs.ARGUMENT,i.xs.LIST,i.xs.OBJECT_FIELD);switch((0,a.M8)(e,n),t.kind){case i.xs.VARIABLE_DEFINITION:{const s={kind:i.xs.OBJECT,location:[n.index,n.index],isConst:!0,fields:[],closed:!1};t.defaultValue=s,e.push(s)}break;case i.xs.LIST:if("isConst"in t){const s={kind:i.xs.OBJECT,location:[n.index,n.index],isConst:!0,fields:[],closed:!1};t.values.push(s),e.push(s)}else{const s={kind:i.xs.OBJECT,location:[n.index,n.index],fields:[],closed:!1};t.values.push(s),e.push(s)}break;default:if("isConst"in t){const s={kind:i.xs.OBJECT,location:[n.index,n.index],isConst:!0,fields:[],closed:!1};t.value=s,e.push(s)}else{const s={kind:i.xs.OBJECT,location:[n.index,n.index],fields:[],closed:!1};t.value=s,e.push(s)}}break}case i.Yp.BRACE_R:{const t=(0,a.Am)(e,i.xs.OBJECT);(0,a.M8)(e,n),(0,a.Nm)(t,n),t.closed=!0}}}function R(e,n){switch(n.kind){case i.Yp.NAME:{const t=(0,a.j1)(e,i.xs.OBJECT);(0,a.M8)(e,n);const s={kind:i.xs.OBJECT_FIELD,location:[n.index,n.index],name:(0,a.Oj)(n)};t.fields.push(s),e.push(s)}break;case i.Yp.COLON:(0,a.M8)(e,n)}}function L(e,n){n.kind===i.Yp.BOOLEAN&&C(e,n,{kind:i.xs.BOOLEAN,location:[n.index,n.index],value:Boolean(n.value)})}function M(e,n){var t;n.kind===i.Yp.NAME&&C(e,n,{kind:i.xs.ENUM,location:[n.index,n.index],value:null!==(t=n.value)&&void 0!==t?t:""})}function _(e,n){n.kind===i.Yp.KEYWORD&&C(e,n,{kind:i.xs.NULL,location:[n.index,n.index]})}function D(e,n){var t;n.kind===i.Yp.NUMBER&&C(e,n,{kind:i.xs.NUMBER,location:[n.index,n.index],value:null!==(t=n.value)&&void 0!==t?t:"0"})}function P(e,n){if(n.kind===i.Yp.STRING){var t;const s=(0,a.j1)(e,i.xs.ARGUMENT,i.xs.LIST,i.xs.OBJECT_FIELD,i.xs.STRING);let o=null!==(t=n.value)&&void 0!==t?t:"";const r=s.kind===i.xs.STRING,c=/^""".*?"""$/gi.test(o),l=!r&&/^"""/gi.test(o),d=r&&/"""$/gi.test(o),u=!r&&!l,p=u&&/^".*?"$/gi.test(o)||c||d;if(u?o=p?o.slice(1,-1):o.slice(1):c?o=o.slice(0,-3):(l&&(o=o.slice(3)),d&&(o=o.slice(0,-3))),(0,a.M8)(e,n),r)s.value+="\n"+o,s.closed=p,p&&e.splice(-1,1);else{const t={kind:i.xs.STRING,location:[n.index,n.index],value:o,closed:p,block:l};switch(s.kind){case i.xs.VARIABLE_DEFINITION:s.defaultValue=t;break;case i.xs.LIST:s.values.push(t);break;default:s.value=t}l&&!p&&e.push(t)}}}function C(e,n,t){const s=(0,a.j1)(e,i.xs.VARIABLE_DEFINITION,i.xs.ARGUMENT,i.xs.LIST,i.xs.OBJECT_FIELD);switch((0,a.M8)(e,n),s.kind){case i.xs.VARIABLE_DEFINITION:s.defaultValue=t;break;case i.xs.LIST:s.values.push(t);break;default:s.value=t}}function F(e,n,t,s,o,r,c,l){switch(e){case"document":switch(n){case i.Yp.SOF:case i.Yp.EOF:return(0,a.Ey)(n,t,s,o,r,c,l);default:return(0,a.Ey)(i.Yp.INVALID,t,s,o,r,c,l)}case"punctuation":switch(n){case i.Yp.BANG:case i.Yp.BRACE_L:case i.Yp.BRACE_R:case i.Yp.BRACKET_L:case i.Yp.BRACKET_R:case i.Yp.COLON:case i.Yp.EQUALS:case i.Yp.PAREN_L:case i.Yp.PAREN_R:case i.Yp.SPREAD:return(0,a.Ey)(n,t,s,o,r,c,l);default:return(0,a.Ey)(i.Yp.INVALID,t,s,o,r,c,l)}case"attribute":case"atom":case"def":case"property":case"qualifier":case"string-2":return(0,a.zI)(i.Yp.NAME,n,t,s,o,r,c,l);case"builtin":return(0,a.zI)(i.Yp.BOOLEAN,n,t,s,o,r,c,l);case"keyword":return(0,a.zI)(i.Yp.KEYWORD,n,t,s,o,r,c,l);case"number":return(0,a.zI)(i.Yp.NUMBER,n,t,s,o,r,c,l);case"string":return(0,a.zI)(i.Yp.STRING,n,t,s,o,r,c,l);case"meta":case"variable":switch(n){case i.Yp.AT:case i.Yp.DOLLAR:return(0,a.Ey)(n,t,s,o,r,c,l);default:return(0,a.zI)(i.Yp.NAME,n,t,s,o,r,c,l)}default:return(0,a.Ey)(i.Yp.INVALID,t,s,o,r,c,l)}}t(54596),t(72790);var B=t(85890)},30628:(e,n,t)=>{"use strict";t.d(n,{Am:()=>d,Ey:()=>o,I:()=>l,Id:()=>f,M8:()=>u,Nm:()=>p,Oj:()=>s,g$:()=>a,j1:()=>c,zI:()=>r});t(62316);var i=t(96243);function s(e){var n;return{kind:i.xs.NAME,location:[e.index,e.index],value:null!==(n=e.value)&&void 0!==n?n:""}}function o(e,n,t,i,s,o,r){return{kind:e,index:n,start:{line:t,column:i,position:o},end:{line:t,column:s,position:r}}}function r(e,n,t,i,s,o,r,a){return{kind:e,index:t,start:{line:i,column:s,position:r},end:{line:i,column:o,position:a},value:n}}function a(e,n){const t=e[n[0]],i=e[n[1]];return{start:t.start.position,startToken:t,end:i.end.position,endToken:i}}function c(e){let n,t=e.length-1;for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];for(;t>=0&&(n=e[t--]);){var r;if(s.includes(null===(r=n)||void 0===r?void 0:r.kind))return n}throw new Error('Ancestor for kind "'.concat(s,'" not found!'))}function l(e){let n;for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];for(;e.length>0&&(n=e[e.length-1]);){var o;if(i.includes(null===(o=n)||void 0===o?void 0:o.kind))return n;e.splice(-1,1)}throw new Error('Ancestor for kind "'.concat(i,'" not found!'))}function d(e){let n;for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];for(;e.length>0&&(n=e[e.length-1]);){var o;if(e.splice(-1,1),i.includes(null===(o=n)||void 0===o?void 0:o.kind))return n}throw new Error('Ancestor for kind "'.concat(i,'" not found!'))}function u(e,n){for(let t=0;t<e.length;t++)p(e[t],n)}function p(e,n){e.location[1]=n.index}function f(e,n){let t,s,o=!1,r=!0;return e.kind===i.xs.NON_NULL_TYPE?(r=!1,e.type.kind===i.xs.LIST_TYPE?(t=e.type.type,o=!0):t=e.type):e.kind===i.xs.LIST_TYPE?(t=e.type,o=!0):t=e,t?(s=t.kind===i.xs.LIST_TYPE||t.kind===i.xs.NON_NULL_TYPE?f(t,n):n(t.name.value),s&&{kind:"value-type",isList:o,isOptional:r,type:s}):null}},97353:(e,n,t)=>{"use strict";t.d(n,{CM:()=>i,IK:()=>c,TL:()=>d,Q8:()=>u});let i=function(e){return e.SCHEMA_FIELD="__schema",e.TYPENAME_FIELD="__typename",e.TYPE_FIELD="__type",e.TYPE_FIELDS_FIELD="fields",e.TYPE_INTERFACES_FIELD="interfaces",e.TYPE_POSSIBLE_TYPES_FIELD="possibleTypes",e.TYPE_INPUT_FIELDS_FIELD="inputFields",e}({});const s=":",o=".",r="(",a=")";function c(e,n,t){const i=e+o+n;return t?l(i,t):i}function l(e,n){return e+r+n+s+a}function d(e){let n="argument"===e.kind?e.type:"field"===e.kind?e.valueType:e;for(;"value-type"===n.kind;)n=n.type;return n}function u(e){return!!e&&("type"===e.kind||"query-type"===e.kind||"mutation-type"===e.kind||"subscription-type"===e.kind)}},77317:(e,n,t)=>{"use strict";function i(e,n){const t=e.directiveIsRepeatable?"\n isRepeatable":"",i=e.directiveLocations?"\n locations":"\n onField\n onFragment\n onOperation",s=e.inputValueDeprecation?{includeDeprecated:"(includeDeprecated: true)",isDeprecated:"\n isDeprecated",deprecationReason:"\n deprecationReason"}:{includeDeprecated:"",isDeprecated:"",deprecationReason:""},o=function(e){let n="";for(let t=1;t<e;t++){const i=" ".repeat(e-t);n="\n".concat(i,"ofType {\n").concat(i," kind\n").concat(i," name").concat(n,"\n").concat(i,"}")}return n}((null===n||void 0===n?void 0:n.typeDepth)||6),r=e.oneOf?"\n oneOf":"",a=e.specifiedByUrl?"\n specifiedByURL":"",c=e.subscription?"\n subscriptionType {\n name\n }":"";return"query IntrospectionQuery {\n __schema {\n queryType {\n name\n }\n mutationType {\n name\n }".concat(c,"\n types {\n ...FullType\n }\n directives {\n name\n description").concat(t,"\n args").concat(s.includeDeprecated," {\n ...InputValue\n }").concat(i,"\n }\n }\n}\n\nfragment FullType on __Type {\n kind\n name\n description").concat(a).concat(r,"\n fields(includeDeprecated: true) {\n name\n description\n args").concat(s.includeDeprecated," {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields").concat(s.includeDeprecated," {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n description\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n}\n\nfragment InputValue on __InputValue {\n name\n description\n type {\n ...TypeRef\n }\n defaultValue").concat(s.isDeprecated).concat(s.deprecationReason,"\n}\n\nfragment TypeRef on __Type {\n kind\n name").concat(o,"\n}")}t.d(n,{I:()=>i})},26845:(e,n,t)=>{"use strict";t.d(n,{m:()=>h});t(75885);var i=t(67466),s=t(4473),o=t(68341),r=(t(36022),(0,o.A)("documentAST")),a=(0,o.A)("fragments"),c=(0,o.A)("fragmentSpreads"),l=(0,o.A)("error");class d{constructor(e){Object.defineProperty(this,r,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),(0,s.A)(this,r)[r]=e}get documentAST(){return(0,s.A)(this,r)[r]}get error(){return(0,s.A)(this,l)[l]}set error(e){(0,s.A)(this,l)[l]=e}get hasError(){return!!(0,s.A)(this,l)[l]}getFragment(e){if(!(0,s.A)(this,a)[a]){(0,s.A)(this,a)[a]=new Map;for(const e of(0,s.A)(this,r)[r].definitions){var n;e.kind===i.xs.FRAGMENT_DEFINITION&&null!==(n=e.name)&&void 0!==n&&n.value&&(0,s.A)(this,a)[a].set(e.name.value,e)}}return(0,s.A)(this,a)[a].get(e)}getFragmentSpreads(e){(0,s.A)(this,c)[c]||((0,s.A)(this,c)[c]=new Map);let n=(0,s.A)(this,c)[c].get(e);if(void 0===n){n=[];const t=[e];let o;for(;o=t.pop();)for(const e of o.selections)e.kind===i.xs.FRAGMENT_SPREAD?n.push(e):e.selectionSet&&t.push(e.selectionSet);(0,s.A)(this,c)[c].set(e,n)}return n}}var u=t(97353);const p=2,f=[u.CM.TYPE_FIELDS_FIELD,u.CM.TYPE_INTERFACES_FIELD,u.CM.TYPE_POSSIBLE_TYPES_FIELD,u.CM.TYPE_INPUT_FIELDS_FIELD];function v(e,n){const t=(null===n||void 0===n?void 0:n.maxNestedListDepth)||p;return{Field(n){if(n.name&&(n.name.value===u.CM.SCHEMA_FIELD||n.name.value===u.CM.TYPE_FIELD)&&s(n))return e.error="Maximum introspection depth exceeded",i.sP}};function s(n){var o;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null),a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n.kind===i.xs.FRAGMENT_SPREAD){var c,l;const t=null!==(c=null===(l=n.name)||void 0===l?void 0:l.value)&&void 0!==c?c:"";if(!0===r[t])return!1;const i=e.getFragment(t);if(!i)return!1;try{return r[t]=!0,s(i,r,a)}finally{r[t]=void 0}}if(n.kind===i.xs.FIELD&&n.name&&f.includes(n.name.value)&&++a>t)return!0;if("selectionSet"in n&&null!==(o=n.selectionSet)&&void 0!==o&&o.selections)for(const e of n.selectionSet.selections)if(s(e,r,a))return!0;return!1}}t(45155),t(49997),t(57928),t(2813),t(32990),t(37669),t(35033);function m(e){const n=new Set,t=[],s=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>!!o(e)&&i.sP};function o(i){var r;const a=null===(r=i.name)||void 0===r?void 0:r.value;if(!a||!i.selectionSet||n.has(a))return!1;n.add(a);const c=e.getFragmentSpreads(i.selectionSet);if(null===c||void 0===c||!c.length)return!1;s[a]=t.length;for(const n of c){var l;const i=null===(l=n.name)||void 0===l?void 0:l.value;if(!i)continue;const r=s[i];if(t.push(n),void 0!==r){const n=t.slice(r).slice(0,-1).map((e=>{var n,t;return'"'.concat(null!==(n=null===(t=e.name)||void 0===t?void 0:t.value)&&void 0!==n?n:"",'"')})).join(", ");return e.error='Cannot spread fragment "'.concat(i,'" within itself')+(""!==n?" via ".concat(n,"."):"."),!0}{const n=e.getFragment(i);if(n&&o(n))return!0}t.pop()}return s[a]=void 0,!1}}function h(e){const n=[m,v],t=new d(e);for(const s of n)if((0,i.YR)(e,s(t)),t.error)return{success:!1,errorMessage:t.error};return{success:!0}}},15793:(e,n,t)=>{"use strict";t.d(n,{$b:()=>i,AO:()=>p,Ai:()=>r,Ku:()=>s,NK:()=>h,Rx:()=>m,YQ:()=>c,im:()=>o,nH:()=>d,py:()=>f,yJ:()=>u,yY:()=>v,yi:()=>l,z5:()=>a});let i=function(e){return e[e.error=0]="error",e[e.warning=1]="warning",e[e.info=2]="info",e}({});let s=function(e){return e.GRAPHQL_OPERATION="graphql-operation",e.GRAPHQL_INTROSPECTION="graphql-introspection",e.GRAPHQL_SDL_FETCH="graphql-sdl-fetch",e.GRAPHQL_SDL_PROBE="graphql-sdl-probe",e}({});const o="http-request",r="http-response",a="http-response-body-chunk",c="http-response-cancelled",l="http-response-failed",d="http-response-finished",u="scope-begin",p="scope-end",f="subscription-request-started",v="subscription-request-protocol",m="subscription-request-message",h="subscription-request-stopped"},33462:(e,n,t)=>{"use strict";var i=t(40409),s=t(47924),o=t(50072),r=t(77740),a=t(56242),c=t(90126);function l(e,n){let{id:t,payload:{documentId:i},type:l}=e;const d=new AbortController;(0,s.UT)({id:t,cancel:()=>d.abort(),execute:async()=>{const e=await(0,o.TES)(i,d.signal);let s={documentId:i,operations:[]};if(!e)return void n.sendMessage(new c.Q(l,s,t));const u=await(0,o.snc)(i,d.signal);if(!u)return void n.sendMessage(new c.Q(l,s,t));const p=(0,r.bF)(n,e);if(!p)return void n.sendMessage(new c.Q(l,{documentId:i,operations:[]},t));const f=(0,r.Bg)(p),v=await(0,a.bN)(u.sdlEndpoint||u.endpoint);let m;if(v){var h;const n=e.workspaceId?await(0,o._um)(e.workspaceId):void 0,t=(0,r.DM)(p,(e=>v.getType(e)),(e=>v.getFields(e)),n);m=null===(h=await(0,o.qhv)(i,t))||void 0===h?void 0:h.hash}n.sendMessage(new c.Q(l,{documentId:i,operations:f,variableJsonSchemaHash:m},t))}})}function d(e,n){let{id:t,payload:{documentId:i},type:a}=e;const l=new AbortController;(0,s.UT)({id:t,cancel:()=>l.abort(),execute:async()=>{const e=await(0,o.TES)(i,l.signal),s=(0,r.bF)(n,e);if(!s)return void n.sendMessage(new c.Q(a,{documentId:i,operations:[]},t));const d=(0,r.Bg)(s);n.sendMessage(new c.Q(a,{documentId:i,operations:d},t))}})}var u=t(28511);function p(e,n){let{id:t,payload:{documentId:i}}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{const e=await(0,o.TES)(i);let s={documentId:i};if(e&&e.workspaceId){const t=await(0,o.snc)(i);if(t){const c=(0,r.bF)(n,e),l=await(0,a.bN)(t.sdlEndpoint||t.endpoint);if(c&&l){const n=await(0,o._um)(e.workspaceId),t=(0,r.DM)(c,(e=>l.getType(e)),(e=>l.getFields(e)),n),a=await(0,o.qhv)(i,t);s={documentId:i,variableJsonSchemaHash:null===a||void 0===a?void 0:a.hash}}}}n.sendMessage(new c.Q("variable-json-schema-updated",s,t))}})}t(62316),t(5084),t(75885);var f=t(23845),v=t(69529),m=t(15793),h=t(20278),y=t(34145),E=t(1103);const I="Invalid Schema Endpoint for more info double click on the failed Result.",g="Invalid HTTP Header for more info double click on the failed Result.";function T(e,n){let{payload:{documentId:t,workspaceId:i,environmentId:a,operationIndex:c=0}}=e;const l=new AbortController;(0,s.UT)({id:t,cancel:()=>l.abort(),execute:async()=>{var e;const s=await(0,o.TES)(t,l.signal);if(!s)return;const[d,p]=await Promise.all([(0,o.OfI)(t,l.signal),(0,o.WGI)(a)]),f=(0,o.PHK)(d,p);if(!f)return;let m;l.signal.addEventListener("abort",(function e(){var n;null===(n=m)||void 0===n||n.cancel(),l.signal.removeEventListener("abort",e)}));const h=(0,u.sX)(),y=(0,r.bF)(n,s,!0),E=(0,r.P6)(f),I=(0,r.rx)(n,s,a,c,p);if(!y||!I&&null!==(e=s.variables)&&void 0!==e&&e.length){if((0,r.Hn)(E)){const e=v.S5.QUERY;return(0,r.Dt)(n,t,{id:h,operationType:e,operationStatus:"failed",started:(0,u.tB)(),isMultipart:!1,parsedBody:{errors:[{message:g}]}}),(0,r.Ix)(n,t,h,e),void(0,r.Hc)(n,t,E,b(e),h)}m=A(n,i,h,s,v.S5.QUERY,void 0,c,I,f,E)}else{const[e,o]=(0,r.eu)(y,c),a=(0,v.mv)(y);if(a.success||(console.warn(a.errorMessage),(0,r.R4)(n,a.errorMessage,t)),(0,r.Hn)(E)){const i=e===v.S5.SUBSCRIPTION?{id:h,operationName:o,operationType:e,operationStatus:"failed",started:(0,u.tB)(),payload:{errors:[{message:g}]}}:{id:h,operationName:o,operationType:e,operationStatus:"failed",started:(0,u.tB)(),isMultipart:!1,parsedBody:{errors:[{message:g}]}};return(0,r.Dt)(n,t,i),(0,r.Ix)(n,t,h,e),void(0,r.Hc)(n,t,E,b(e,o),h)}const l=!0,[d,p]=a.success&&l?(0,r.I1)(y,s.body,c)(s,I):[s,I];if(e===v.S5.SUBSCRIPTION)m=N(n,i,h,d,e,o,c,p,f,E);else{var T;const t=a.success&&(f.endpoint.length||null!==(T=f.sdlEndpoint)&&void 0!==T&&T.length)?await(0,r.Q0)(i,y,f,o,p):void 0;m=A(n,i,h,d,e,o,c,p,f,E,t,l)}}l.signal.aborted||await m.execute()}})}function b(e,n){const t=n?'"'.concat(n,'" '):"",i=function(e){switch(e){case v.S5.MUTATION:return"Mutation";case v.S5.SUBSCRIPTION:return"Subscription";default:return"Query"}}(e);return"".concat(i," operation ").concat(t)}const A=function(e,n,t,i,s,o,a,c,l,d,p){let f=arguments.length>11&&void 0!==arguments[11]&&arguments[11];if(s===v.S5.SUBSCRIPTION)throw new Error("Subscription type is not allowed!");const h=new AbortController,{id:y,body:E}=i,g=()=>{(0,r.o8)(e,y,t,s)};return{cancel:async()=>h.abort(),execute:()=>new Promise((async i=>{if(null!==l&&void 0!==l&&l.endpoint.length){var v;const I=(0,u.tB)();(0,r.Ym)(e,y,t,s);const T={headers:null!==d&&void 0!==d?d:new Headers,uri:l.endpoint,useGET:l.useGet,includeCookies:l.includeCookies};let b=!1;const A=await(0,r.RK)(T,{operationName:f?void 0:o,query:E,variables:c,files:p},{onComplete:e=>{b||g(),i()},onError:(n,i)=>{b=!0,n instanceof r.S1?(0,r.Mv)(e,y,t,s):((0,r.f5)(e,y,t,{payload:n,success:!1,received:(0,u.tB)(),index:i}),(0,r.Ix)(e,y,t,s))},onNext:(n,i)=>{(0,r.f5)(e,y,t,{payload:n.content,success:!0,received:(0,u.tB)(),index:i})}},(0,r.Dx)(e,y,t,m.Ku.GRAPHQL_OPERATION,{name:o}),h.signal),{parsedBody:N,error:x}=A,k="ClientAbortError"===(null===x||void 0===x?void 0:x.name)?"cancelled":x||null!==N&&void 0!==N&&null!==(v=N.errors)&&void 0!==v&&v.length?"failed":"succeeded";switch(n&&(0,r.R7)(e,y,(0,u.lm)(),n,k,s,o,a),(0,r.Dt)(e,y,{id:t,operationName:o,operationStatus:k,operationType:s,started:I,...A}),k){case"cancelled":(0,r.Mv)(e,y,t,s),i();break;case"failed":(0,r.Ix)(e,y,t,s),i();break;default:A.isMultipart||(g(),i())}}else(0,r.Dt)(e,y,{id:t,operationName:o,operationType:s,operationStatus:"failed",started:(0,u.tB)(),isMultipart:!1,parsedBody:{errors:[{message:I}]}}),(0,r.Ix)(e,y,t,s),(0,r.vl)(e,y,b(s,o),t),i()}))}},N=(e,n,t,i,s,a,c,l,d,p)=>{if(s!==v.S5.SUBSCRIPTION)throw new Error("Only the Subscription type is allowed here!");const f=new AbortController,{id:h,body:y}=i;return{cancel:async()=>f.abort(),execute:async()=>{let i=!1;const v=function(e){if(e)return e.sseSubscriptionEndpoint||e.endpoint;return""}(d),E=function(e){if(e)return e.subscriptionEndpoint||e.endpoint.replace(/^http/i,"ws");return""}(d);if(v.length||E.length)return new Promise((async I=>{var g;const T=(0,u.lm)(),b=p?Object.fromEntries(p.entries()):{},A=null!==(g=d.subscriptionProtocol)&&void 0!==g?g:o.hPE,N=e=>e===o.PhU?v:E;(0,r.Ym)(e,h,t,s),(0,r.pm)(e,h,t,m.Ku.GRAPHQL_OPERATION,(0,u.tB)(),N(A),A,b);const k=o=>{if(i)return;i=!0;const l=function(e){if("type"in e)return["closed"===e.type&&"code"in e?{message:"Subscription closed",extensions:{code:e.code,reason:e.reason,wasClean:e.wasClean}}:{message:"Unknown subscription error"}];if((0,u.Rr)(e))return e.every((e=>"message"in e))?e.map((e=>{let{message:n}=e;return{message:n}})):e.length<=1?[{message:"Unknown subscription error"}]:[{message:"".concat(e.length," unknown subscription errors")}];return["message"in e?{message:e.message}:e]}(o);(0,r.VS)(e,h,t,m.Ku.GRAPHQL_OPERATION,(0,u.tB)(),"failed",l),(0,r.Dt)(e,h,{id:t,operationName:a,operationType:s,operationStatus:"failed",started:(0,u.tB)(),payload:{errors:l}}),n&&(0,r.R7)(e,h,T,n,"failed",s,a,c),(0,r.Ix)(e,h,t,s),I()},w=x[A](N,b,{includeCookies:d.includeCookies,onConnected:i=>{i?k(i):((0,r.Dt)(e,h,{id:t,operationName:a,operationType:s,operationStatus:"succeeded",started:(0,u.tB)()}),n&&(0,r.R7)(e,h,T,n,"succeeded",s,a,c))}});try{function R(){w.close(),(0,r.Mv)(e,h,t,s),(0,r.VS)(e,h,t,m.Ku.GRAPHQL_OPERATION,(0,u.tB)(),"closed"),f.signal.removeEventListener("abort",R),I()}const L=await w.execute({query:y,operationName:a,variables:l},(n=>(0,r.id)(e,h,t,(0,u.tB)(),"string"===typeof n?n:JSON.stringify(n))));w instanceof S&&w.protocol&&(0,r.xN)(e,h,t,m.Ku.GRAPHQL_OPERATION,w.protocol);let M=0;L.subscribe({next:n=>{var i;(0,r.VT)(e,h,t,{payload:n,received:(0,u.tB)(),success:!(null!==n&&void 0!==n&&null!==(i=n.errors)&&void 0!==i&&i.length),index:M++})},error:k,complete:()=>{(0,r.o8)(e,h,t,s),(0,r.VS)(e,h,t,m.Ku.GRAPHQL_OPERATION,(0,u.tB)(),"completed"),I()}}),f.signal.aborted?R():f.signal.addEventListener("abort",R)}catch(O){k(O)}}));(0,r.Dt)(e,h,{id:t,operationName:a,operationType:s,operationStatus:"failed",started:(0,u.tB)(),payload:{errors:[{message:I}]}}),(0,r.Ix)(e,h,t,s),(0,r.vl)(e,h,b(s,a),t)}}};const x={[o.jIU]:(e,n,t)=>new S(e,n,t),[o.Gkb]:(e,n,t)=>new O(e,n,t),[o.ppT]:(e,n,t)=>new w(e,n,t),[o.PhU]:(e,n,t)=>new R(e,n,t)};class k{constructor(e,n,t){this.resolveSubscriptionUrl=e,this.connectionParams=n,this.extraOptions=t}}class S extends k{constructor(){super(...arguments),this.provider=void 0,this.subscriptionProtocol=void 0}async execute(e,n){const t=this;if(!this.provider){const[e,n]=await new Promise((e=>{const n=t.resolveSubscriptionUrl(o.jIU);if(!n.length)return void e([new R(t.resolveSubscriptionUrl,t.connectionParams,t.extraOptions),o.PhU]);const i=new WebSocket(n,[o.Gkb,o.ppT]);i.onopen=function(){if(i.protocol===o.ppT)e([new w(t.resolveSubscriptionUrl,t.connectionParams,t.extraOptions),o.ppT]);else e([new O(t.resolveSubscriptionUrl,t.connectionParams,t.extraOptions),o.Gkb]);i.close()},i.onerror=function(n){e([new R(t.resolveSubscriptionUrl,t.connectionParams,t.extraOptions),o.PhU]),i.close()}}));this.provider=e,this.subscriptionProtocol=n}return this.provider.execute(e,n)}get protocol(){return this.subscriptionProtocol}close(){var e;null===(e=this.provider)||void 0===e||e.close()}}class w extends k{constructor(){super(...arguments),this.closeFunc=void 0,this.observable=void 0}createClient(e){var n;const t=new E.D(this.resolveSubscriptionUrl(o.ppT),{lazy:!1,reconnect:!1,connectionParams:this.connectionParams,connectionCallback:null===(n=this.extraOptions)||void 0===n?void 0:n.onConnected,onMessage:e});return this.closeFunc=()=>{t.close(!0)},t}execute(e,n){return this.observable||(this.observable=L((t=>{const i=this.createClient(n);return i.onError((e=>t.error(e))),i.request(e).subscribe(t).unsubscribe}))),Promise.resolve(this.observable)}close(){var e;null===(e=this.closeFunc)||void 0===e||e.call(this)}}class O extends k{constructor(){super(...arguments),this.closeFunc=void 0,this.observable=void 0}createClient(e){let n,t;const i=(0,y.UU)({url:this.resolveSubscriptionUrl(o.Gkb),lazy:!0,retryAttempts:0,keepAlive:f.iW,connectionParams:this.connectionParams,on:{connected:e=>{var t,i,s,o;e instanceof WebSocket?(n=e,null===(t=this.extraOptions)||void 0===t||null===(i=t.onConnected)||void 0===i||i.call(t)):null===(s=this.extraOptions)||void 0===s||null===(o=s.onConnected)||void 0===o||o.call(s,{message:"Unknown socket"})},error:e=>{var n,t;null===(n=this.extraOptions)||void 0===n||null===(t=n.onConnected)||void 0===t||t.call(n,e)},ping:e=>{e||(t=self.setTimeout((()=>{var e;(null===(e=n)||void 0===e?void 0:e.readyState)===WebSocket.OPEN&&n.close(4408,"Request Timeout")}),f.fc))},pong:e=>{e&&self.clearTimeout(t)},message:e}});return this.close=()=>{i.dispose()},i}execute(e,n){return this.observable||(this.observable=L((t=>this.createClient(n).subscribe(e,{next:function(){return t.next(...arguments)},error:e=>t.error(e),complete:()=>t.complete()})))),Promise.resolve(this.observable)}close(){var e;null===(e=this.closeFunc)||void 0===e||e.call(this)}}class R extends k{constructor(){super(...arguments),this.closeFunc=void 0,this.observable=void 0}createClient(e){var n,t,i;const s=(0,h.UU)({url:this.resolveSubscriptionUrl(o.PhU),retryAttempts:0,credentials:null!==(n=this.extraOptions)&&void 0!==n&&n.includeCookies?"include":"same-origin",referrerPolicy:f._w?"no-referrer":"strict-origin-when-cross-origin",headers:{...this.connectionParams,"content-type":"application/json"},onMessage:e});return null===(t=this.extraOptions)||void 0===t||null===(i=t.onConnected)||void 0===i||i.call(t),this.close=()=>{s.dispose()},s}execute(e,n){return this.observable||(this.observable=L((t=>this.createClient(n).subscribe(e,{next:function(){return t.next(...arguments)},error:e=>t.error(e),complete:()=>t.complete()})))),Promise.resolve(this.observable)}close(){var e;null===(e=this.closeFunc)||void 0===e||e.call(this)}}function L(e){return{subscribe:e}}t(45155),t(49997),t(57928),t(2813),t(32990),t(37669),t(35033);var M=t(39588);const _={endpoint:"",exists:!1,hash:"",indexed:!1,hasMutationType:!1,hasSubscriptionType:!1,hasUploadType:!1};var D;const P=new Set;function C(e,n){let{id:i,type:o,payload:{apiId:a,stageId:l}}=e;const d=new AbortController;(0,s.UT)({id:i,cancel:()=>d.abort(),execute:async()=>{if(P.has(a))throw new r.zX("The schema fetch task cannot be executed concurrently on the same API","MULTIPLE_SCHEMA_FETCHES_DETECTED");try{var e,s;P.add(a);const r=await(0,M.AN)(void 0!==D?D:D=t(41990),{stageId:l},d.signal),p=null===r||void 0===r||null===(e=r.stageById)||void 0===e||null===(s=e.publishedSchema)||void 0===s?void 0:s.version;if(p){const e=await F(p.downloadUrl,(0,u.T6)(l),d.signal);return void n.sendMessage(new c.Q(o,e,i))}n.sendMessage(new c.Q(o,_,i))}finally{P.delete(a)}}})}async function F(e,n,t){const i=await(0,r.L5)(e,t);if(Array.isArray(i)){const[e,t]=i,s=await(0,r.gP)(n,e,t,o.FxT.SDL_FETCH);return{endpoint:s.endpoint,exists:!0,hash:s.hash,indexed:s.indexed,updatedAt:s.updatedAt,hasMutationType:!!s.mutationTypeName,hasSubscriptionType:!!s.subscriptionTypeName,hasUploadType:s.hasUploadType}}throw new r.zX("Loading schema failed.","SCHEMA_FETCHING_FAILED")}function B(e,n){let{id:t,payload:{schemaEndpoint:i},type:o}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{var e,s;const r=null!==(e=null===(s=await(0,a.bN)(i))||void 0===s?void 0:s.getDirectives())&&void 0!==e?e:void 0;n.sendMessage(new c.Q(o,r,t))}})}function U(e,n){let{id:t,type:i,payload:{documentId:a,environmentId:l}}=e;const d=new AbortController;(0,s.UT)({id:t,cancel:()=>d.abort(),execute:async()=>{var e;const s=await(0,o.Sjm)(a,l,d.signal);if((null===s||void 0===s||!s.endpoint.length)&&(null===s||void 0===s||null===(e=s.sdlEndpoint)||void 0===e||!e.length))return void n.sendMessage(new c.Q(i,_,t));const u=(0,r.P6)(s,(e=>{let{name:n}=e;return!f.HO.test(n)}));if((0,r.Hn)(u))return n.sendMessage(new c.Q(i,_,t)),void(0,r.Hc)(n,a,u,"Introspection Query");const p=await async function(e){const n=await(0,r._w)(e);if(n)return{endpoint:n.endpoint,exists:!0,hash:n.hash,indexed:n.indexed,updatedAt:n.updatedAt,hasMutationType:!!n.mutationTypeName,hasSubscriptionType:!!n.subscriptionTypeName,hasUploadType:n.hasUploadType};return}(s);n.sendMessage(new c.Q(i,null!==p&&void 0!==p?p:_,t))}})}var Y=t(80122),Q=t(48517);const j=new Set;function G(e,n){let{id:t,type:i,payload:{documentId:a,environmentId:l}}=e;const d=new AbortController;(0,s.UT)({id:t,cancel:()=>d.abort(),execute:async()=>{if(j.has(a))throw new r.zX("The schema fetch task cannot be executed concurrently on the same document","MULTIPLE_SCHEMA_FETCHES_DETECTED");try{var e;j.add(a);const p=await(0,o.Sjm)(a,l,d.signal);if((null===p||void 0===p||!p.endpoint.length)&&(null===p||void 0===p||null===(e=p.sdlEndpoint)||void 0===e||!e.length))return void n.sendMessage(new c.Q(i,_,t));const v=(0,r.P6)(p,(e=>{let{name:n}=e;return!f.HO.test(n)}));if((0,r.Hn)(v))return n.sendMessage(new c.Q(i,_,t)),void(0,r.Hc)(n,a,v,"Introspection Query");const h={headers:v,uri:p.endpoint,useGET:p.useGet,includeCookies:p.includeCookies};if(p.sdlEndpoint){const e=await V(n,a,{...h,uri:p.sdlEndpoint,useGET:!0},o.FxT.SDL_FETCH,p.sdlEndpoint,d.signal);return void n.sendMessage(new c.Q(i,e,t))}try{const e=((s=p.endpoint).endsWith("/")?s:s+"/")+"schema.graphql",r=await V(n,a,{...h,uri:e,useGET:!0},o.FxT.SDL_PROBE,p.endpoint,d.signal);return void n.sendMessage(new c.Q(i,r,t))}catch{}const y=await async function(e,n,t,i){const s=(0,u.ax)(),a=t.useGET?"GET":"POST";(0,r.EE)(e,n,s,(0,u.tB)(),"Introspection",{uri:t.uri,kind:"introspection",method:a});let c;try{const a=await(0,r.rI)(t,((t,i)=>(0,r.Dx)(e,n,t,m.Ku.GRAPHQL_INTROSPECTION,{scopeId:s,name:i})),i);if(a instanceof Y.V4){const e=await(0,r.gP)(t.uri,a,(0,Q.rK)(a),o.FxT.INTROSPECTION);return{endpoint:e.endpoint,exists:!0,hash:e.hash,indexed:e.indexed,updatedAt:e.updatedAt,hasMutationType:!!e.mutationTypeName,hasSubscriptionType:!!e.subscriptionTypeName,hasUploadType:e.hasUploadType}}c={itemId:n,scopeId:s}}finally{(0,r.CV)(e,n,s,(0,u.tB)())}throw new r.zX("Loading schema failed.","SCHEMA_FETCHING_FAILED",c)}(n,a,h,d.signal);n.sendMessage(new c.Q(i,y,t))}finally{j.delete(a)}var s}})}async function V(e,n,t,i,s,o){const a=await(0,r.DA)(e,n,t.uri,t,i,o);if(Array.isArray(a)){const[e,n]=a,t=await(0,r.gP)(s,e,n,i);return{endpoint:t.endpoint,exists:!0,hash:t.hash,indexed:t.indexed,updatedAt:t.updatedAt,hasMutationType:!!t.mutationTypeName,hasSubscriptionType:!!t.subscriptionTypeName,hasUploadType:t.hasUploadType}}throw new r.zX("Loading schema failed.","SCHEMA_FETCHING_FAILED")}function H(e,n){let{id:t,payload:{schemaEndpoint:i,coordinate:o},type:r}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{const e=await(0,a.bN)(i);if(!e)return void n.sendMessage(new c.Q(r,void 0,t));const s=e.getField(o);n.sendMessage(new c.Q(r,s,t))}})}function q(e,n){let{id:t,payload:{schemaEndpoint:i,typeName:o,options:r},type:l}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{var e;const s=null===(e=await(0,a.bN)(i))||void 0===e?void 0:e.getFields(o,r);n.sendMessage(new c.Q(l,s,t))}})}function K(e,n){let{id:t,payload:{schemaEndpoint:i,coordinate:o,options:r},type:l}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{const e=await(0,a.bN)(i);if(!e)return void n.sendMessage(new c.Q(l,void 0,t));const s={fields:e.getFields(o,r),interfaces:e.getInterfaces(o,null===r||void 0===r?void 0:r.filter),possibleTypes:e.getPossibleTypes(o,null===r||void 0===r?void 0:r.filter)};n.sendMessage(new c.Q(l,s,t))}})}function z(e,n){let{id:t,payload:{schemaEndpoint:i,typeCategory:o,filter:a},type:l}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{const e=await(0,r.RU)(i,o,a);n.sendMessage(new c.Q(l,e,t))}})}function J(e,n){let{id:t,payload:{schemaEndpoint:i,filter:o},type:a}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{const e=await(0,r.me)(i,o);n.sendMessage(new c.Q(a,e,t))}})}function $(e,n){let{id:t,payload:{schemaEndpoint:i,typeName:o},type:r}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{var e,s;const l=null!==(e=null===(s=await(0,a.bN)(i))||void 0===s?void 0:s.getType(o))&&void 0!==e?e:void 0;n.sendMessage(new c.Q(r,l,t))}})}function W(e,n){let{id:t,payload:{schemaEndpoint:i,filter:o},type:r}=e;(0,s.UT)({id:t,cancel:u.lQ,execute:async()=>{var e;const s=null===(e=await(0,a.bN)(i))||void 0===e?void 0:e.getTypes(o);n.sendMessage(new c.Q(r,s,t))}})}class Z extends i.H{registerMessageReceiveHandlers(){this.registerReceiveMessageHandler("fetch-schema",G),this.registerReceiveMessageHandler("fetch-api-schema",C),this.registerReceiveMessageHandler("get-cached-schema",U),this.registerReceiveMessageHandler("fetch-directives",B),this.registerReceiveMessageHandler("fetch-field",H),this.registerReceiveMessageHandler("fetch-fields",q),this.registerReceiveMessageHandler("fetch-schema-reference",z),this.registerReceiveMessageHandler("fetch-schema-root-types",J),this.registerReceiveMessageHandler("fetch-type",$),this.registerReceiveMessageHandler("fetch-types",W),this.registerReceiveMessageHandler("fetch-fields-and-types",K),this.registerReceiveMessageHandler("analyze-document",l),this.registerReceiveMessageHandler("analyze-document-operations",d),this.registerReceiveMessageHandler("cancel-request",(e=>(0,s.yX)(e.payload.documentId))),this.registerReceiveMessageHandler("files-updated",p),this.registerReceiveMessageHandler("execute-operation",T)}}new Z},53543:(e,n,t)=>{"use strict";t.d(n,{Bg:()=>a,I1:()=>l,bF:()=>r,eu:()=>c});t(36022),t(5084),t(75885);var i=t(69529),s=t(29232);let o;function r(e,n,t){var r;if(n)return o&&o.id===n.id&&o.hash===n.hash||(o=function(e,n,t,o,r){if(t.trim().length>0)try{return{id:n,hash:o,document:(0,i.FG)(t)}}catch(a){return void(r&&(0,s.R4)(e,"The Document couldn't be parsed. Please go to the Operations Editor and fix syntax issues.",n,{...a}))}return}(e,n.id,n.body,n.hash,t)),null===(r=o)||void 0===r?void 0:r.document;o=void 0}function a(e){const n=[];return e&&e.definitions.forEach((t=>{var s;(0,i.tB)(t)&&n.push({name:null===(s=t.name)||void 0===s?void 0:s.value,type:t.operationType,location:(0,i.g$)(e.tokens,t.location)})})),n}function c(e,n){var t,s;const o=e.definitions.filter(i.tB)[null!==n&&void 0!==n?n:0];return[null!==(t=null===o||void 0===o?void 0:o.operationType)&&void 0!==t?t:i.S5.QUERY,null===o||void 0===o||null===(s=o.name)||void 0===s?void 0:s.value]}function l(e,n,t){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const{tokens:o}=e,r=[],a=[],c=n=>{r.push(n),(0,i.YR)(n,{VariableDefinition(e){(0,i.YR)(e,{Variable(e){var n,t;a.push(null!==(n=null===(t=e.name)||void 0===t?void 0:t.value)&&void 0!==n?n:"")}})},FragmentSpread(n){var t,s;const o=null!==(t=null===(s=n.name)||void 0===s?void 0:s.value)&&void 0!==t?t:"";(0,i.YR)(e,{FragmentDefinition(e){var n;if((null===(n=e.name)||void 0===n?void 0:n.value)===o)return c(e),i.sP}})}})};let l=0;function d(){let t=s?"":n.split("\n").map((e=>" ".repeat(e.length))).join("\n");const a=e=>{const{start:r,end:a}=(0,i.g$)(o,e.location);t=s?t.concat(t?"\n\n":"",n.substring(r,a)):t.substring(0,r).concat(n.substring(r,a),t.substring(a))};return(0,i.YR)({kind:i.xs.DOCUMENT,definitions:r,location:e.location,tokens:[]},{FragmentDefinition:{enter:a},OperationDefinition:{enter:a}}),t=t.replace(/[ \t]+$/gm,""),t}(0,i.YR)(e,{OperationDefinition(e){if(l===t)return c(e),i.sP;l+=1}});const u=e=>({...e,body:d()}),p=e=>{if(e&&a.length){const n=Object.entries(e).filter((e=>{let[n]=e;return a.includes(n)}));if(n.length)return Object.fromEntries(n)}};return(e,n)=>[u(e),p(n)]}},67889:(e,n,t)=>{"use strict";t.d(n,{DA:()=>b,Dx:()=>Y,Hn:()=>x,L5:()=>A,P6:()=>k,RK:()=>T,rI:()=>N});t(62316),t(36022),t(86737),t(75885);var i=t(23845),s=t(50072),o=t(39588),r=t(77317),a=t(15793),c=t(28511),l=t(70807),d=t(18706),u=t(79661),p=t(41192),f=t(5355),v=t.n(f),m=t(84165),h=t(29232);const y=(0,l.y)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IntrospectionQuery"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"__Directive",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:104,source:{body:'query IntrospectionQuery {\n __type(name: "__Directive") {\n name\n fields {\n name\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}}}}),E=(0,l.y)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IntrospectionQuery"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"__InputValue",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:96,source:{body:'query IntrospectionQuery {\n __type(name: "__InputValue") {\n fields {\n name\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}}}}),I=(0,l.y)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IntrospectionQuery"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"__Schema",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:101,source:{body:'query IntrospectionQuery {\n __type(name: "__Schema") {\n name\n fields {\n name\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}}}}),g=(0,l.y)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IntrospectionQuery"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"__Type",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:99,source:{body:'query IntrospectionQuery {\n __type(name: "__Type") {\n name\n fields {\n name\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}}}});function T(e,n,t,i,s){return L(e,n,t,i,s).then((async e=>{let{response:n}=e;const{isMultipart:t,responseOrError:i}=n;if(!(i instanceof Response))return{isMultipart:t,error:i};if(t)return{isMultipart:t,parsedBody:{}};const{operationResult:s,error:o}=await P(i,!1);return o?{isMultipart:t,error:o}:{isMultipart:t,parsedBody:s}}))}async function b(e,n,t,o,r,l){const u=Y(e,n,(0,c.r_)(),r===s.FxT.SDL_FETCH?a.Ku.GRAPHQL_SDL_FETCH:a.Ku.GRAPHQL_SDL_PROBE,{name:r===s.FxT.SDL_FETCH?"SDL Schema Fetch":"SDL Schema Probe"}),p=o.includeCookies?"include":"same-origin",f=new Headers(o.headers),v={cache:"no-cache",credentials:p,headers:f,method:"GET",referrerPolicy:i._w?"no-referrer":"strict-origin-when-cross-origin",signal:l};o.disableCors&&(v.mode="no-cors"),f.append("User-Agent",navigator.userAgent),null===u||void 0===u||u.requestInterceptor(t,"GET",f);const m=await fetch(t,v).then((e=>{var n;return null!==(n=null===u||void 0===u?void 0:u.responseInterceptor(e))&&void 0!==n?n:e})).catch(D).then((e=>{var n;return null!==(n=null===u||void 0===u?void 0:u.responseErrorInterceptor(e))&&void 0!==n?n:e}));if(m instanceof Response){const e=await m.text();return[(0,d.I)(e),e]}return m}async function A(e,n){const t=await(0,o.L2)(e),s=t.includeCookies?"include":"same-origin",r=new Headers(t.headers),a={cache:"no-cache",credentials:s,headers:r,method:"GET",referrerPolicy:i._w?"no-referrer":"strict-origin-when-cross-origin",signal:n};t.disableCors&&(a.mode="no-cors"),r.append("User-Agent",navigator.userAgent);const c=await fetch(e,a).catch(D);if(c instanceof Response){const e=await c.text();return[(0,d.I)(e),e]}return c}async function N(e,n,t){const[i,s,o,a]=await Promise.all([O(e,n,t),S(e,n,t),w(e,n,t),R(e,n,t)]);if("name"in i)return i;if(i.error)return i.error;if("name"in s)return s;if(s.error)return s.error;if("name"in o)return o;if(o.error)return o.error;if("name"in a)return a;if(a.error)return a.error;const l=function(e){let{schema:n,directive:t,inputValue:i,type:s}=e;return{directiveIsRepeatable:t.fields.some((e=>"isRepeatable"===e.name)),directiveLocations:t.fields.some((e=>"locations"===e.name)),inputValueDeprecation:i.fields.some((e=>"isDeprecated"===e.name)),oneOf:s.fields.some((e=>"oneOf"===e.name)),specifiedByUrl:s.fields.some((e=>"specifiedByURL"===e.name)),subscription:n.fields.some((e=>"subscriptionType"===e.name))}}({schema:i.operationResult.data.__type,directive:s.operationResult.data.__type,inputValue:o.operationResult.data.__type,type:a.operationResult.data.__type}),d=await async function(e,n,t,i){const s=(0,r.I)(n),o=await L(e,{query:s,operationName:"IntrospectionQuery"},void 0,t((0,c.r_)(),"Introspection"),i),{responseOrError:a}=o.response;if(!(a instanceof Response))return a;const l=await P(a,!0);if(l.error)return l.error;return l.operationResult.data}(e,l,n,t);return"__schema"in d?(0,u.D)(d):d}function x(e){return"kind"in e}function k(e,n){var t;const s=null===(t=e.authentication)||void 0===t?void 0:t.headerValue,o=new Headers;if(o.append(i.QB,navigator.userAgent),s&&o.set(i.qB,s),!e.headers)return o;for(const r of e.headers){if(!r.enabled||n&&!n(r)||r.name===i.QB)continue;const{name:e,value:t}=r;if(!e.length)return{kind:"empty-name",name:e};if(!(0,c.D_)(e))return{kind:"invalid-name",name:e};e===i.qB&&s||o.append(e,t)}return o}async function S(e,n,t){const{response:{responseOrError:i}}=await L(e,{query:y,operationName:"IntrospectionQuery"},void 0,n((0,c.r_)(),"Detect Directive Capabilities"),t);return i instanceof Response?P(i,!0):i}async function w(e,n,t){const{response:{responseOrError:i}}=await L(e,{query:E,operationName:"IntrospectionQuery"},void 0,n((0,c.r_)(),"Detect InputValue Capabilities"),t);return i instanceof Response?P(i,!0):i}async function O(e,n,t){const{response:{responseOrError:i}}=await L(e,{query:I,operationName:"IntrospectionQuery"},void 0,n((0,c.r_)(),"Detect Schema Capabilities"),t);return i instanceof Response?P(i,!0):i}async function R(e,n,t){const{response:{responseOrError:i}}=await L(e,{query:g,operationName:"IntrospectionQuery"},void 0,n((0,c.r_)(),"Detect Type Capabilities"),t);return i instanceof Response?P(i,!0):i}async function L(e,n,t,o,r){const a=e.includeCookies?"include":"same-origin",{extensions:l,operationName:d,query:u,variables:f,files:h}=n,y={cache:"no-cache",credentials:a,referrerPolicy:i._w?"no-referrer":"strict-origin-when-cross-origin"},E=new Headers(e.headers);let I,g,T;if(e.disableCors&&(y.mode="no-cors"),e.useGET){const t="GET";g={...y,method:t,headers:E},T=function(e,n){let{query:t,operationName:i,variables:s,extensions:o}=n;const r=[],a=(e,n)=>{r.push("".concat(e,"=").concat(encodeURIComponent(n)))};t&&a("query",t);i&&a("operationName",i);s&&a("variables",JSON.stringify(s));o&&a("extensions",JSON.stringify(o));let c="",l=e;const d=e.indexOf("#");-1!==d&&(c=e.substr(d),l=e.substr(0,d));const u=-1===l.indexOf("?")?"?":"&";return l+u+r.join("&")+c}(e.uri,n),null===o||void 0===o||o.requestInterceptor(T,t,E),I=async e=>M(T,t,e,V(E),g.credentials,g.referrerPolicy)}else{const n={extensions:l,operationName:d,query:u,variables:f};let t;if(f&&null!==h&&void 0!==h&&h.length){const e=(0,c.Go)(f),i=new FormData,o=h.flatMap((e=>{let{variableName:n,fieldPath:t,fileOrFiles:i}=e;return Array.isArray(i)?i.map(((e,i)=>({variableName:n,fieldPath:t,file:e,index:i}))):[{variableName:n,fieldPath:t,file:i}]}));o.forEach((n=>{let{variableName:t,fieldPath:i,index:s}=n;if(null!==i&&void 0!==i&&i.length){let n=e[t];const r=i.length-1;for(var o=0;o<i.length;o++)o===r?void 0===s?n[i[o]]=null:n[i[o]][s]=null:n=n[i[o]]}else void 0===s?e[t]=null:e[t][s]=null})),n.variables=e,i.append("operations",JSON.stringify(n));const r=o.reduce(((e,n,t)=>{let{variableName:i,fieldPath:s,index:o}=n;return{...e,[t]:["variables.".concat(i).concat(null!==s&&void 0!==s&&s.length?"."+(null===s||void 0===s?void 0:s.join(".")):"").concat(void 0===o?"":"."+o)]}}),{});i.append("map",JSON.stringify(r));const a=(await(0,s.FH2)((0,c.dM)(o.map((e=>{let{file:{id:n}}=e;return n}))))).reduce(((e,n)=>({...e,[n.itemId]:n.content})),{});o.forEach(((e,n)=>{let{file:{id:t}}=e;i.append("".concat(n),a[t])})),t=i}else E.append(i.VX,"application/json"),t=JSON.stringify(n);const r="POST";g={...y,method:r,headers:E,body:t},T=e.uri,null===o||void 0===o||o.requestInterceptor(T,r,E,t),I=async e=>M(T,r,e,V(E),g.credentials,g.referrerPolicy,n)}return await fetch(T,{...g,signal:r}).then((e=>{var n;return null!==(n=null===o||void 0===o?void 0:o.responseInterceptor(e))&&void 0!==n?n:e})).catch(D).then((e=>{var n;return null!==(n=null===o||void 0===o?void 0:o.responseErrorInterceptor(e))&&void 0!==n?n:e})).then((e=>async function(e,n){let t=!1;if(e instanceof Response&&e.ok&&!e.bodyUsed&&e.headers&&n){const i=await(0,p.z)(e);if((0,c.Td)(i)){const s=async()=>{let t=0;try{for await(const e of i){if(!e.json){const i=C(new Error("The multipart body could not be converted into JSON."),e.body);n.onError(i,t);break}n.onNext({content:e.body,headers:e.headers},t++)}}catch(s){(0,c.zf)(s)?n.onError(new m.S1,t):n.onError(U(e,s,""),t)}n.onComplete(t)};t=!0,v()(s)}}return{isMultipart:t,responseOrError:e}}(e,t))).then((e=>I(e)))}function M(e,n,t,i,s,o,r){return{request:{uri:e,cache:"no-cache",credentials:s,headers:i,method:n,referrerPolicy:o,body:r},response:t}}const _="Server Not Reachable";function D(e){return(0,c.zf)(e)?new m.S1:e instanceof TypeError?B(_,e.message):B(_)}function P(e,n){return e.text().then((t=>{try{const i=JSON.parse(t);if("object"===typeof i&&(n&&i.data||!n&&(i.data||i.errors)))return{operationResult:i,contentLength:t.length};return{error:F(e,t,"Response not successful: Received status code ".concat(e.status)),contentLength:t.length}}catch(i){return{error:U(e,i,t),contentLength:t.length}}}))}function C(e,n){return{...e,name:m.u0,body:n}}function F(e,n,t){let{status:i,statusText:s}=e;return{message:t,name:m.je,statusCode:i,statusText:s,bodyText:n}}function B(e,n){return{message:e,name:m.sf,statusText:n}}function U(e,n,t){let{status:i,statusText:s}=e;return{...n,name:m.xl,statusCode:i,statusText:s,bodyText:t}}function Y(e,n,t,i,s){return{requestInterceptor:Q(e,n,t,i,s),responseInterceptor:j(e,n,t,i,s),responseErrorInterceptor:G(e,n,t,i,s)}}function Q(e,n,t,i,s){return(o,r,a,l,d,u)=>{const p=(0,c.tB)(),f=V(a),v=function(e){if(!e||"string"===typeof e)return e;const n={};for(const[t,i]of e.entries()){const e=i.valueOf();n[t]="string"===typeof e?e:"File Data omitted"}return JSON.stringify(n,void 0,2)}(l);(0,h.Gy)(e,n,t,i,null===s||void 0===s?void 0:s.scopeId,p,o,r,f,v,d,u,null===s||void 0===s?void 0:s.name)}}function j(e,n,t,i,s){return o=>{const r=(0,c.tB)(),{status:a,statusText:l}=o,d=V(o.headers),u=null===s||void 0===s?void 0:s.scopeId;(0,h.C0)(e,n,t,i,u,r,a,l,d);const p=o.clone();return new Promise((async s=>{let r=0;try{var a;const s=null===(a=p.body)||void 0===a?void 0:a.getReader();if(s)try{const a=new TextDecoder;let l,d=0;for(;!(l=await s.read()).done;){const i=(0,c.tB)(),s=a.decode(l.value);r+=s.length,(0,h.NS)(e,n,t,u,i,s,d++)}o.status>299?(0,h.Fw)(e,n,t,i,u,(0,c.tB)(),F(o,"",""),r):(0,h.wm)(e,n,t,i,u,(0,c.tB)(),r)}finally{await s.cancel()}}catch(l){l instanceof m.S1?(0,h.L4)(e,n,t,i,u,(0,c.tB)(),l,r):(0,h.Fw)(e,n,t,i,u,(0,c.tB)(),F(o,"",""),r)}finally{s()}})),o}}function G(e,n,t,i,s){return o=>{if(o instanceof Response)return o;const r=(0,c.tB)(),a=null===s||void 0===s?void 0:s.scopeId;return o instanceof m.S1?((0,h.L4)(e,n,t,i,a,r,o,0),o):((0,h.Fw)(e,n,t,i,a,r,o,0),o)}}function V(e){let n={};return e.forEach(((e,t)=>{n=n[t]?Array.isArray(n[t])?{...n,[t]:[...n[t],e]}:{...n,[t]:[n[t],e]}:{...n,[t]:e}})),n}},25119:(e,n,t)=>{"use strict";t.d(n,{Q:()=>c});t(36022),t(75885);var i=t(50072),s=t(67466),o=t(97353),r=t(28511),a=t(56242);function c(e,n,t,o,r){return(0,a.bN)(t.sdlEndpoint||t.endpoint).then((a=>!t.useGet&&n&&a&&e?async function(e,n,t,i,o){let r=[];try{for(const f of e.definitions){var a;if(f.kind===s.xs.OPERATION_DEFINITION&&(null===(a=f.name)||void 0===a?void 0:a.value)===n){var c;if(null===(c=f.variablesDefinition)||void 0===c||!c.variableDefinitions.length)return r;for(const e of f.variablesDefinition.variableDefinitions){var d,u;const n=p(e.type),s=i.getType(n),a=null!==(d=null===(u=e.variable.name)||void 0===u?void 0:u.value)&&void 0!==d?d:"",c=await l(a,null===t||void 0===t?void 0:t[a],s,o,i);c.length&&(r=[...r,...c])}}}}catch(f){console.error(f)}return r}(n,o,r,a,(function(){for(var n=arguments.length,t=new Array(n),s=0;s<n;s++)t[s]=arguments[s];return(0,i.Ac)(e,...t)})):Promise.resolve(void 0)))}async function l(e,n,t,i,s){if(!n)return[];if("object"===typeof n){const o=[],a=[[[],n]];let c;for(;void 0!==(c=a.shift());){const[n,l]=c;if(l)if((0,r.Rr)(l))for(let e=0;e<l.length;e++)a.push([[...n,e],l[e]]);else if("object"!==typeof l||Array.isArray(l)){if(("string"===typeof l||(0,r.Bo)(l))&&u(t,s,n)){const t=await d(l,n,i);t&&o.push({variableName:e,fieldPath:n,fileOrFiles:t})}}else for(const e of Object.keys(l))a.push([[...n,e],l[e]])}return o}if(("string"===typeof n||(0,r.Bo)(n))&&u(t,s)){const t=await d(n,void 0,i);if(t)return[{variableName:e,fileOrFiles:t}]}return[]}function d(e,n,t){if(!e)return Promise.resolve(void 0);if(null!==n&&void 0!==n&&n.length&&"object"===typeof e&&!Array.isArray(e)){let i=0,s=e;for(;i<n.length&&void 0!==s&&"object"===typeof s&&!Array.isArray(s);){s=s[n[i++]]}if("string"===typeof s)return t(s).then((e=>null===e||void 0===e?void 0:e[0]));if((0,r.Bo)(s))return t(...s)}else{if("string"===typeof e)return t(e).then((e=>null===e||void 0===e?void 0:e[0]));if((0,r.Bo)(e))return t(...e)}return Promise.resolve(void 0)}function u(e,n,t){if(!e)return!1;if(null!==t&&void 0!==t&&t.length&&"input-object"===e.typeKind){const i=t.filter((e=>"string"===typeof e));let s,r=(0,o.TL)(e);for(const e of i){const t=(0,o.IK)(r.name,e);if(!(s=n.getField(t)))return!1;r=(0,o.TL)(s.valueType)}return"scalar"===r.typeKind&&"Upload"===r.name}return"scalar"===e.typeKind&&"Upload"===e.name}function p(e){if(!e)return"UnknownType";let n=e;for(;n.kind!==s.xs.NAMED_TYPE;){if(!n.type)return"UnknownType";n=n.type}return n.name.value}},84165:(e,n,t)=>{"use strict";t.d(n,{S1:()=>i,je:()=>o,sf:()=>r,u0:()=>s,xl:()=>a});t(62316);class i extends Error{constructor(){super("Request has been cancelled by the user."),this.name="ClientAbortError"}serialize(){return{name:this.name,message:this.message}}}const s="MultipartError",o="ServerError",r="ServerNetworkError",a="ServerParseError"},77740:(e,n,t)=>{"use strict";t.d(n,{Bg:()=>i.Bg,CN:()=>a.CN,CV:()=>a.CV,DA:()=>s.DA,DM:()=>l.D,Dt:()=>a.Dt,Dx:()=>s.Dx,EE:()=>a.EE,Hc:()=>a.Hc,Hn:()=>s.Hn,I1:()=>i.I1,Ix:()=>a.Ix,L5:()=>s.L5,Mv:()=>a.Mv,P6:()=>s.P6,Q0:()=>o.Q,R4:()=>a.R4,R7:()=>a.R7,RK:()=>s.RK,RU:()=>c.RU,S1:()=>r.S1,VS:()=>a.me,VT:()=>a.VT,Ym:()=>a.Ym,_w:()=>c._w,bF:()=>i.bF,cN:()=>a.cN,eu:()=>i.eu,f5:()=>a.f5,gP:()=>c.gP,hZ:()=>a.hZ,id:()=>a.id,me:()=>c.me,o8:()=>a.o8,pm:()=>a.IJ,rI:()=>s.rI,rx:()=>l.r,vl:()=>a.vl,xN:()=>a.xN,zX:()=>a.zX});t(49117);var i=t(53543),s=t(67889),o=t(25119),r=t(84165),a=t(29232),c=t(5178),l=t(14881)},29232:(e,n,t)=>{"use strict";t.d(n,{C0:()=>k,CN:()=>U,CV:()=>D,Dt:()=>m,EE:()=>_,Fw:()=>O,Gy:()=>x,Hc:()=>M,IJ:()=>P,Ix:()=>u,L4:()=>w,Mv:()=>d,NS:()=>S,R4:()=>N,R7:()=>T,SA:()=>V,VT:()=>y,Ym:()=>p,cN:()=>j,f5:()=>I,hZ:()=>H,id:()=>F,me:()=>B,n4:()=>A,o8:()=>f,vl:()=>L,wm:()=>R,xN:()=>C,yX:()=>Y,zX:()=>G});t(62316);var i=t(15793),s=t(90126);const o="cancelled",r="failed",a="started",c="succeeded",l="operation-request-status";function d(e,n,t,i){e.sendMessage(new s.Q(l,{documentId:n,requestId:t,kind:o,operationType:i}))}function u(e,n,t,i){e.sendMessage(new s.Q(l,{documentId:n,requestId:t,kind:r,operationType:i}))}function p(e,n,t,i){e.sendMessage(new s.Q(l,{documentId:n,requestId:t,kind:a,operationType:i}))}function f(e,n,t,i){e.sendMessage(new s.Q(l,{documentId:n,requestId:t,kind:c,operationType:i}))}const v="operation-result";function m(e,n,t){e.sendMessage(new s.Q(v,{documentId:n,result:t}))}const h="operation-result-event";function y(e,n,t,i){e.sendMessage(new s.Q(h,{documentId:n,resultId:t,event:i}))}const E="operation-result-patch";function I(e,n,t,i){e.sendMessage(new s.Q(E,{documentId:n,resultId:t,patch:i}))}const g="history-entry";function T(e,n,t,i,o,r,a,c){e.sendMessage(new s.Q(g,{documentId:n,historyId:t,workspaceId:i,operationStatus:o,operationType:r,operationName:a,operationIndex:c}))}const b="log-entry";function A(e,n,t,o){e.sendMessage(new s.Q(b,{kind:"basic",itemId:t,level:i.$b.error,message:n,details:o}))}function N(e,n,t,o){e.sendMessage(new s.Q(b,{kind:"basic",itemId:t,level:i.$b.warning,message:n,details:o}))}function x(e,n,t,o,r,a,c,l,d,u,p,f,v){e.sendMessage(new s.Q(b,{kind:i.im,itemId:n,requestId:t,requestKind:o,scopeId:r,level:i.$b.info,started:a,requestUri:c,method:l,headers:d,body:u,cache:"no-cache",credentials:p,referrerPolicy:f,name:v}))}function k(e,n,t,o,r,a,c,l,d){e.sendMessage(new s.Q(b,{kind:i.Ai,itemId:n,requestId:t,requestKind:o,scopeId:r,level:i.$b.info,received:a,headers:d,statusCode:c,statusText:l}))}function S(e,n,t,o,r,a,c){e.sendMessage(new s.Q(b,{kind:i.z5,itemId:n,requestId:t,scopeId:o,level:i.$b.info,received:r,chunk:a,chunkIndex:c}))}function w(e,n,t,o,r,a,c,l){e.sendMessage(new s.Q(b,{kind:i.YQ,itemId:n,requestId:t,requestKind:o,scopeId:r,level:i.$b.info,stopped:a,contentLength:l,error:c.serialize()}))}function O(e,n,t,o,r,a,c,l){e.sendMessage(new s.Q(b,{kind:i.yi,itemId:n,requestId:t,requestKind:o,scopeId:r,level:i.$b.info,stopped:a,contentLength:l,error:c}))}function R(e,n,t,o,r,a,c){e.sendMessage(new s.Q(b,{kind:i.nH,itemId:n,requestId:t,requestKind:o,scopeId:r,level:i.$b.info,stopped:a,contentLength:c}))}function L(e,n,t,o){e.sendMessage(new s.Q(b,{kind:"basic",itemId:n,requestId:o,level:i.$b.warning,message:"".concat(t," failed due to an invalid endpoint."),details:"An invalid Schema Endpoint is not allowed. Please make sure that the Schema Endpoint is configured properly."}))}function M(e,n,t,o,r){const a="empty-name"===t.kind?"An empty Header Name is not allowed. One reason for that could be an Environment Variable that interpolates to an empty string. Please make sure that the HTTP Headers and Environment Variables are configured properly. Also make sure that you've switched to the correct Environment.":'Invalid characters in Header Name detected: "'.concat(t.name,"\". One reason for that could be an Environment Variable that isn't configured yet. Please make sure that the HTTP Headers and Environment Variables are configured properly. Also make sure that you've switched to the correct Environment.");e.sendMessage(new s.Q(b,{kind:"basic",itemId:n,requestId:r,level:i.$b.error,message:"".concat(o," failed due to an invalid HTTP header name."),details:a}))}function _(e,n,t,o,r,a){e.sendMessage(new s.Q(b,{kind:i.yJ,itemId:n,scopeId:t,level:i.$b.info,started:o,name:r,details:a}))}function D(e,n,t,o){e.sendMessage(new s.Q(b,{kind:i.AO,itemId:n,scopeId:t,level:i.$b.info,stopped:o}))}function P(e,n,t,o,r,a,c,l){e.sendMessage(new s.Q(b,{kind:i.py,itemId:n,requestId:t,requestKind:o,level:i.$b.info,started:r,requestUri:a,protocol:c,connectionParams:l}))}function C(e,n,t,o,r){e.sendMessage(new s.Q(b,{kind:i.yY,itemId:n,requestId:t,requestKind:o,level:i.$b.info,protocol:r}))}function F(e,n,t,o,r){e.sendMessage(new s.Q(b,{kind:i.Rx,itemId:n,requestId:t,level:i.$b.info,received:o,data:r}))}function B(e,n,t,o,r,a,c){e.sendMessage(new s.Q(b,{kind:i.NK,itemId:n,requestId:t,requestKind:o,level:i.$b.info,stopped:r,reason:a,error:c}))}const U="cancel-task";function Y(e,n){e.sendMessage(new s.Q(U,{taskId:n}))}const Q="task-failed";function j(e,n,t,i,o){e.sendMessage(new s.Q(Q,{errorMessage:t,kind:i,details:o},n))}class G extends Error{constructor(e,n,t){super(e),this.kind=n,this.details=t}}function V(e){return e.type===Q}const H="initialize-worker"},56242:(e,n,t)=>{"use strict";t.d(n,{Xu:()=>y,bN:()=>h});var i=t(4473),s=t(68341),o=(t(36022),t(75885),t(23845)),r=t(50072),a=t(97353),c=t(28511),l=(0,s.A)("schemaCache");var d=(0,s.A)("directives"),u=(0,s.A)("fields"),p=(0,s.A)("types"),f=(0,s.A)("introspectionFields");class v{constructor(e){Object.defineProperty(this,d,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,p,{writable:!0,value:void 0}),Object.defineProperty(this,f,{writable:!0,value:void 0}),(0,i.A)(this,d)[d]=new Map(e.directives),(0,i.A)(this,u)[u]=new Map(e.fields),(0,i.A)(this,p)[p]=new Map(e.types),(0,i.A)(this,f)[f]=new Map(e.fields)}getDirectives(e){const n=[];if(null!==e&&void 0!==e&&e.length){const t=e.toLocaleLowerCase();(0,i.A)(this,d)[d].forEach((e=>{!o.RI.test(e.name)&&e.name.toLocaleLowerCase().includes(t)&&n.push(e)}))}else(0,i.A)(this,d)[d].forEach((e=>{o.RI.test(e.name)||n.push(e)}));return n.sort(c.Am)}getField(e){var n;return null!==(n=(0,i.A)(this,u)[u].get(e))&&void 0!==n?n:null}getFields(e,n){var t;const s=e+".",o=[];if(null!==n&&void 0!==n&&n.includeIntrospectionFields&&this.addIntrospectionFields(e,o),null!==n&&void 0!==n&&null!==(t=n.filter)&&void 0!==t&&t.length){const e=n.filter.toLocaleLowerCase();(0,i.A)(this,u)[u].forEach((n=>{n.coordinate.startsWith(s)&&n.name.toLocaleLowerCase().includes(e)&&o.push(n)}))}else(0,i.A)(this,u)[u].forEach((e=>{e.coordinate.startsWith(s)&&o.push(e)}));return o.sort(c.Am)}getType(e){var n;return null!==(n=(0,i.A)(this,p)[p].get(e))&&void 0!==n?n:null}getTypes(e){const n=[];if(null!==e&&void 0!==e&&e.length){const t=e.toLocaleLowerCase();(0,i.A)(this,p)[p].forEach((e=>{!o.RI.test(e.name)&&e.name.toLocaleLowerCase().includes(t)&&n.push(e)}))}else(0,i.A)(this,p)[p].forEach((e=>{o.RI.test(e.name)||n.push(e)}));return n.sort(c.Am)}getInterfaces(e,n){var t;const s=(0,i.A)(this,p)[p].get(e);if(null===s||void 0===s||null===(t=s.interfaces)||void 0===t||!t.length)return[];if(null!==n&&void 0!==n&&n.length){const e=n.toLocaleLowerCase();return s.interfaces.filter((n=>{let{name:t}=n;return t.toLocaleLowerCase().includes(e)})).sort(c.Am)}return s.interfaces.sort(c.Am)}getPossibleTypes(e,n){var t;const s=(0,i.A)(this,p)[p].get(e);if(null===s||void 0===s||null===(t=s.types)||void 0===t||!t.length)return[];if(null!==n&&void 0!==n&&n.length){const e=n.toLocaleLowerCase();return s.types.map(a.TL).filter((n=>{let{name:t}=n;return t.toLocaleLowerCase().includes(e)})).sort(c.Am)}return s.types.map(a.TL).sort(c.Am)}getTypesByTypeKind(e,n){const t=[];if(null!==n&&void 0!==n&&n.length){const s=n.toLocaleLowerCase();(0,i.A)(this,p)[p].forEach((n=>{n.typeKind===e&&!o.RI.test(n.name)&&n.name.toLocaleLowerCase().includes(s)&&t.push(n)}))}else(0,i.A)(this,p)[p].forEach((n=>{n.typeKind!==e||o.RI.test(n.name)||t.push(n)}));return t.sort(c.Am)}dispose(){(0,i.A)(this,d)[d].clear(),(0,i.A)(this,u)[u].clear(),(0,i.A)(this,p)[p].clear()}addIntrospectionFields(e,n){const t=(0,i.A)(this,p)[p].get(e),s="query-type"===(null===t||void 0===t?void 0:t.kind),o="subscription-type"===(null===t||void 0===t?void 0:t.kind);if(s){const e=this.getIntrospectionSchemaField(t.name);e&&n.push(e);const i=this.getIntrospectionTypeField(t.name);i&&n.push(i)}if(!o&&t){const e=this.getIntrospectionTypenameField(t.name);e&&n.push(e)}}getIntrospectionSchemaField(e){const n=a.CM.SCHEMA_FIELD;let t=(0,i.A)(this,f)[f].get(n);if(!t){const s=(0,i.A)(this,p)[p].get("__Schema");s&&(t={kind:"field",name:n,coordinate:(0,a.IK)(e,n),valueType:{kind:"value-type",isList:!1,isOptional:!1,type:s}},(0,i.A)(this,f)[f].set(n,t))}return t}getIntrospectionTypeField(e){const n=a.CM.TYPE_FIELD;let t=(0,i.A)(this,f)[f].get(n);if(!t){const s=(0,i.A)(this,p)[p].get("__Type"),o=(0,i.A)(this,p)[p].get("String");s&&o&&(t={kind:"field",name:n,coordinate:(0,a.IK)(e,n),valueType:{kind:"value-type",isList:!1,isOptional:!0,type:s},arguments:[{kind:"argument",name:"name",coordinate:(0,a.IK)(e,n,"name"),type:{kind:"value-type",isList:!1,isOptional:!1,type:o}}]},(0,i.A)(this,f)[f].set(n,t))}return t}getIntrospectionTypenameField(e){const n=a.CM.TYPENAME_FIELD;let t=(0,i.A)(this,f)[f].get(n);if(t)t={...t,coordinate:(0,a.IK)(e,a.CM.TYPE_FIELD)};else{const s=(0,i.A)(this,p)[p].get("String");s&&(t={kind:"field",name:n,coordinate:(0,a.IK)(e,n),valueType:{kind:"value-type",isList:!1,isOptional:!1,type:s}},(0,i.A)(this,f)[f].set(n,t))}return t}}const m=new class{constructor(){Object.defineProperty(this,l,{writable:!0,value:new c.Gc})}get(e){var n;return null!==(n=(0,i.A)(this,l)[l].get(e))&&void 0!==n?n:null}set(e,n){var t;const s=new v(n);return null===(t=(0,i.A)(this,l)[l].get(e))||void 0===t||t.dispose(),(0,i.A)(this,l)[l].set(e,s),s}remove(e){var n;null===(n=(0,i.A)(this,l)[l].get(e))||void 0===n||n.dispose(),(0,i.A)(this,l)[l].delete(e)}};async function h(e){const n=(0,c.c9)(e),t=m.get(n);if(t)return t;const i=await(0,r.BID)(n);return i?m.set(n,i):null}function y(e){m.remove((0,c.c9)(e))}},5178:(e,n,t)=>{"use strict";t.d(n,{me:()=>l,_w:()=>a,RU:()=>d,gP:()=>c});t(36022),t(75885),t(23845);var i=t(50072),s=t(69529),o=t(28511),r=t(56242);t(5084),t(31998),t(30379),t(91073);function a(e){return(0,i.SWZ)(e.sdlEndpoint||e.endpoint)}async function c(e,n,t,s){const a=await(0,i.SWZ)(e),c=(0,o.c9)(e),l=(0,i.OYB)(c,t);if(!a||a.hash!==l){const e=await(0,i.mkZ)(c,n,t,s);return(0,r.Xu)(c),e}return a}async function l(e,n){const t=await u(e,n);return t.length?t:void 0}async function d(e,n,t){const s=await(0,i.qaG)(e);if(!s)return;const o=await async function(e,n,t){const i=await(0,r.bN)(e);return i?"root"===n?await u(e,t):"directive"===n?i.getDirectives(t):i.getTypesByTypeKind(n,t):[]}(e,n,t);return{items:o,rootTypes:await u(e),statistics:s}}async function u(e,n){const[t,o]=await Promise.all([(0,r.bN)(e),(0,i.SWZ)(e)]);if(!t||!o)return[];const a=[o.queryTypeName?t.getType(o.queryTypeName):void 0,o.mutationTypeName?t.getType(o.mutationTypeName):void 0,o.subscriptionTypeName?t.getType(o.subscriptionTypeName):void 0].filter(s.Q8);if(null!==n&&void 0!==n&&n.length){const e=n.toLocaleLowerCase();return a.filter((n=>{let{name:t}=n;return t.toLocaleLowerCase().includes(e)}))}return a}},14881:(e,n,t)=>{"use strict";t.d(n,{D:()=>a,r:()=>r});t(36022),t(86737),t(75885);var i=t(50072),s=t(67466),o=t(29232);function r(e,n,t,s,r,a){var c;if(n)return null===(c=function(e,n,t,i,s,r,a){if(null!==s&&void 0!==s&&s.length)try{return{id:n,environmentId:t,operationIndex:i,hash:r,variables:JSON.parse(s)}}catch(c){return void(a&&(0,o.n4)(e,"GraphQL Variables couldn't be parsed. Please go to the variable editor and fix syntax issues.",n,{...c}))}return{id:n,environmentId:t,operationIndex:i,hash:r}}(e,n.id,t,s,n.variables?(0,i.lKN)(n.variables,r):n.variables,n.hash,a))||void 0===c?void 0:c.variables}function a(e,n,t,i){const o=function(e,n){const t=[],i=e.definitions.filter(s.tB).filter((e=>{var n;return!(null===(n=e.variablesDefinition)||void 0===n||!n.variableDefinitions.length)})).flatMap((e=>e.variablesDefinition.variableDefinitions));for(const a of i){let e=(0,s.Id)(a.type,n);var o,r;if(e)t.push({name:null!==(o=null===(r=a.variable.name)||void 0===r?void 0:r.value)&&void 0!==o?o:"",type:e})}return t}(e,n),r=[],a={},l={};for(const{name:s,type:d}of o)"value-type"!==d.kind||d.isOptional||r.push(s),a[s]=c(l,d,t,i);return{$schema:"http://json-schema.org/draft-07/schema#",type:"object",required:r,properties:a,definitions:l,additionalProperties:!1}}function c(e,n,t,i){let s,o,r=n;if("value-type"===r.kind){const e={};let n=e,t=!1,i=!0;for(;"value-type"===r.kind;){i=r.isOptional,t=r.isList,r=r.type;const e="value-type"===r.kind;if(i){const i={};n.oneOf=[{type:"null"},t?{type:"array",items:e?i:{anyOf:[{type:"null"},i]}}:i],n=i}else if(t){const t={};n.type="array",n.items=e?t:{anyOf:[{type:"null"},t]},n=t}}s=n,o=e}else s={},o={oneOf:[{type:"null"},s]};const a=r;return function(e,n,t,i){"enum"===n.typeKind?function(e,n){var t;if(e[n.name])return;e[n.name]={enum:null===(t=n.enumValues)||void 0===t?void 0:t.map((e=>{let{name:n}=e;return n}))}}(e,n):"input-object"===n.typeKind?function(e,n,t,i){if(e[n.name])return;const s=[],o={};e[n.name]={type:"object",additionalProperties:!1};for(const r of t(n.name))r.valueType.isOptional||s.push(r.name),o[r.name]=c(e,r.valueType,t,i);e[n.name]={...e[n.name],required:s,properties:o}}(e,n,t,i):function(e,n,t){var i;if(e[n.name])return;switch(n.name){case"Boolean":e[n.name]={type:"boolean"};break;case"Decimal":case"Float":e[n.name]={type:"number"};break;case"Int":case"Short":e[n.name]={type:"integer"};break;case"ID":e[n.name]={oneOf:[{type:"integer"},{type:"string"}]};break;case"String":e[n.name]={type:"string"};break;case"Upload":e[n.name]={enum:null!==(i=null===t||void 0===t?void 0:t.map((e=>{let{name:n}=e;return n})))&&void 0!==i?i:[]};break;default:e[n.name]={oneOf:[{type:"array"},{type:"boolean"},{type:"integer"},{type:"null"},{type:"number"},{type:"object"},{type:"string"}]}}}(e,n,i)}(e,a,t,i),s.$ref="#/definitions/".concat(a.name),o}},90126:(e,n,t)=>{"use strict";t.d(n,{Q:()=>u,k:()=>d});var i=t(4473),s=t(68341),o=(t(36022),t(75885),t(23845)),r=t(29232),a=t(28511),c=(0,s.A)("handlers"),l=(0,s.A)("responseHandlers");class d{constructor(){Object.defineProperty(this,c,{writable:!0,value:[]}),Object.defineProperty(this,l,{writable:!0,value:new Map})}handleMessage(e,n){const t=(0,i.A)(this,l)[l].get(n.id);t?t(n,e):(0,i.A)(this,c)[c].filter((e=>e.type===n.type)).forEach((t=>{let{handle:i}=t;return i(n,e)}))}registerReceiveMessageHandler(e,n){const t={type:e,handle:n};return(0,i.A)(this,c)[c].push(t),()=>{const e=(0,i.A)(this,c)[c].indexOf(t);(0,i.A)(this,c)[c].splice(e,1)}}sendAndReceiveMessage(e){let n,t,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=arguments.length>2?arguments[2]:void 0;return(0,a.bA)((()=>{var e;return null===(e=t)||void 0===e?void 0:e()}),(()=>new Promise(((d,u)=>{t=()=>{self.clearTimeout(n),u(a.eC),(0,r.yX)(this.getContext(),e.id),(0,i.A)(this,l)[l].delete(e.id)},n=s?void 0:self.setTimeout((()=>{u("Timeout exceeded 60 sec."),(0,i.A)(this,l)[l].delete(e.id)}),o.iW),(0,i.A)(this,l)[l].set(e.id,(e=>{if(null===c||void 0===c||!c.aborted){if((0,r.SA)(e)){const{errorMessage:n,kind:t,details:i}=e.payload;u(new r.zX(n,t,i))}else d(e.payload);self.clearTimeout(n),(0,i.A)(this,l)[l].delete(e.id)}})),this.getContext().sendMessage(e)}))),c)}sendMessage(e){this.getContext().sendMessage(e)}}class u{constructor(e,n,t){this.type=e,this.payload=n,this.id=void 0,this.createdAt=void 0,this.id=t||(0,a.sX)(),this.createdAt=(0,a.tB)()}}},40409:(e,n,t)=>{"use strict";t.d(n,{H:()=>d,u:()=>c});var i=t(4473),s=t(68341),o=t(77740),r=t(47924),a=t(90126);const c={sendMessage:e=>self.postMessage(e)};var l=(0,s.A)("context");class d extends a.k{constructor(){super(),Object.defineProperty(this,l,{writable:!0,value:{sendMessage:e=>self.postMessage(e)}}),this.initialize()}getContext(){return(0,i.A)(this,l)[l]}initialize(){self.onmessage=e=>{let{data:n}=e;this.handleMessage((0,i.A)(this,l)[l],n)},this.registerReceiveMessageHandler(o.CN,(e=>{(0,r.yX)(e.payload.taskId)})),this.registerReceiveMessageHandler(o.hZ,(e=>{self.appNamespace=e.payload.appNamespace})),this.registerMessageReceiveHandlers()}}},29899:(e,n,t)=>{"use strict";t.d(n,{Bo:()=>o,Rr:()=>s,dM:()=>i});t(36022),t(75885);function i(e){return e.filter(((e,n,t)=>t.indexOf(e)===n))}function s(e){return"string"!==typeof e&&Array.isArray(e)&&e.every((e=>"object"===typeof e&&!Array.isArray(e)))}function o(e){return"string"!==typeof e&&Array.isArray(e)&&e.every((e=>"string"===typeof e))}},13798:(e,n,t)=>{"use strict";t.d(n,{n:()=>o});var i=t(53358),s=t.n(i);function o(){let e=new(s());for(var n=arguments.length,t=new Array(n),i=0;i<n;i++)t[i]=arguments[i];return t.forEach((n=>e=e.update(n))),e.digest("hex")}},28511:(e,n,t)=>{"use strict";t.d(n,{eC:()=>i.eC,Gc:()=>g.G,Tp:()=>h.Tp,y1:()=>i.y1,bA:()=>i.bA,lm:()=>u,n1:()=>a.n,sX:()=>d,r_:()=>p,T6:()=>v.T,ax:()=>f,Go:()=>y.G,cb:()=>b.c,dM:()=>s.dM,WG:()=>o.W,c9:()=>E.c,zf:()=>i.zf,Td:()=>N.Td,Hf:()=>N.Hf,Tn:()=>N.Tn,D_:()=>I.D_,Rr:()=>s.Rr,aE:()=>A.a,Bo:()=>s.Bo,Mn:()=>i.Mn,mv:()=>x.mv,M_:()=>i.M_,lQ:()=>T.l,tB:()=>m.tB,Am:()=>r.A});var i=t(82175),s=t(29899),o=t(34818),r=(t(17112),t(5198),t(27362)),a=t(13798),c=t(32089);const l="|";function d(e){return e&&e.length>0?"".concat(e).concat(l).concat((0,c.Ak)()):(0,c.Ak)()}function u(){return d("doc")}function p(){return d("req")}function f(){return d("scope")}var v=t(23075),m=t(85096),h=t(79968),y=t(56275),E=(t(17957),t(63291),t(75468)),I=t(35061),g=t(50379),T=(t(20433),t(46627),t(20405)),b=(t(39876),t(87973),t(72307),t(81370),t(6687),t(12777),t(4048),t(44812)),A=t(32531),N=t(53768),x=t(54620)},35061:(e,n,t)=>{"use strict";t.d(n,{D_:()=>s});const i=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;function s(e){return i.test(e)}},50379:(e,n,t)=>{"use strict";t.d(n,{G:()=>a});var i=t(4473),s=t(68341),o=(t(75885),(0,s.A)("maxSize")),r=(0,s.A)("cleanupItem");class a extends Map{constructor(e){super(),Object.defineProperty(this,o,{writable:!0,value:10}),Object.defineProperty(this,r,{writable:!0,value:void 0}),null!==e&&void 0!==e&&e.maxSize&&e.maxSize>0&&((0,i.A)(this,o)[o]=e.maxSize),(0,i.A)(this,r)[r]=null===e||void 0===e?void 0:e.cleanupItem}get(e){if(!super.has(e))return;const n=super.get(e);return void 0!==n&&(super.delete(e),super.set(e,n)),n}set(e,n){if(this.size>=(0,i.A)(this,o)[o]){var t,s;const e=this.entries().next().value;this.delete(e[0]),null===(t=(s=(0,i.A)(this,r))[r])||void 0===t||t.call(s,e[1])}return super.set(e,n)}}},20405:(e,n,t)=>{"use strict";function i(){}t.d(n,{l:()=>i})},83759:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});var i=t(59968),s=t(466);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:e=>e.eatWhile(i.pi),lexRules:i.Rq,parseRules:i.vM,editorConfig:{}};return{startState(){const n={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return c(e.parseRules,n,s.b.DOCUMENT),n},token:(n,t)=>function(e,n,t){var i;if(n.inBlockstring)return e.match(/.*"""/)?(n.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:s,parseRules:o,eatWhitespace:u,editorConfig:f}=t;n.rule&&0===n.rule.length?l(n):n.needsAdvance&&(n.needsAdvance=!1,d(n,!0));if(e.sol()){const t=(null===f||void 0===f?void 0:f.tabSize)||2;n.indentLevel=Math.floor(e.indentation()/t)}if(u(e))return"ws";const v=function(e,n){const t=Object.keys(e);for(let i=0;i<t.length;i++){const s=n.match(e[t[i]]);if(s&&s instanceof Array)return{kind:t[i],value:s[0]}}}(s,e);if(!v){return e.match(/\S+/)||e.match(/\s/),c(a,n,"Invalid"),"invalidchar"}if("Comment"===v.kind)return c(a,n,"Comment"),"comment";const m=r({},n);if("Punctuation"===v.kind)if(/^[{([]/.test(v.value))void 0!==n.indentLevel&&(n.levels=(n.levels||[]).concat(n.indentLevel+1));else if(/^[})\]]/.test(v.value)){const e=n.levels=(n.levels||[]).slice(0,-1);n.indentLevel&&e.length>0&&e.at(-1)<n.indentLevel&&(n.indentLevel=e.at(-1))}for(;n.rule;){let t="function"===typeof n.rule?0===n.step?n.rule(v,e):null:n.rule[n.step];if(n.needsSeparator&&(t=null===t||void 0===t?void 0:t.separator),t){if(t.ofRule&&(t=t.ofRule),"string"===typeof t){c(o,n,t);continue}if(null===(i=t.match)||void 0===i?void 0:i.call(t,v))return t.update&&t.update(n,v),"Punctuation"===v.kind?d(n,!0):n.needsAdvance=!0,t.style}p(n)}return r(n,m),c(a,n,"Invalid"),"invalidchar"}(n,t,e)}}function r(e,n){const t=Object.keys(n);for(let i=0;i<t.length;i++)e[t[i]]=n[t[i]];return e}const a={Invalid:[],Comment:[]};function c(e,n,t){if(!e[t])throw new TypeError("Unknown rule: "+t);n.prevState=Object.assign({},n),n.kind=t,n.name=null,n.type=null,n.rule=e[t],n.step=0,n.needsSeparator=!1}function l(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeparator=e.prevState.needsSeparator,e.prevState=e.prevState.prevState)}function d(e,n){var t;if(u(e)&&e.rule){const t=e.rule[e.step];if(t.separator){const{separator:n}=t;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&n.ofRule)return}if(n)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)l(e),e.rule&&(u(e)?(null===(t=e.rule)||void 0===t?void 0:t[e.step].separator)&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function u(e){const n=Array.isArray(e.rule)&&"string"!==typeof e.rule[e.step]&&e.rule[e.step];return n&&n.isList}function p(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)l(e);e.rule&&d(e,!1)}},20709:(e,n,t)=>{e.exports=t(82685)}},n={};function t(i){var s=n[i];if(void 0!==s)return s.exports;var o=n[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}t.m=e,t.x=()=>{var e=t.O(void 0,[461,709,830,936,23,478,531,41],(()=>t(33462)));return e=t.O(e)},(()=>{var e=[];t.O=(n,i,s,o)=>{if(!i){var r=1/0;for(d=0;d<e.length;d++){i=e[d][0],s=e[d][1],o=e[d][2];for(var a=!0,c=0;c<i.length;c++)(!1&o||r>=o)&&Object.keys(t.O).every((e=>t.O[e](i[c])))?i.splice(c--,1):(a=!1,o<r&&(r=o));if(a){e.splice(d--,1);var l=s();void 0!==l&&(n=l)}}return n}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[i,s,o]}})(),t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((n,i)=>(t.f[i](e,n),n)),[])),t.u=e=>830===e?"static/js/830.bcdef144.chunk.js":23===e?"static/js/23.11b7e848.chunk.js":531===e?"static/js/531.8d61401e.chunk.js":"static/js/"+(461===e?"polyfills":e)+".cff91d67.js",t.miniCssF=e=>{},t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),t.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.j=17,(()=>{var e;t.g.importScripts&&(e=t.g.location+"");var n=t.g.document;if(!e&&n&&(n.currentScript&&(e=n.currentScript.src),!e)){var i=n.getElementsByTagName("script");if(i.length)for(var s=i.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=i[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=e+"../../"})(),(()=>{var e={17:1,402:1};t.f.i=(n,i)=>{e[n]||importScripts(t.p+t.u(n))};var n=self.webpackChunknitro=self.webpackChunknitro||[],i=n.push.bind(n);n.push=n=>{var s=n[0],o=n[1],r=n[2];for(var a in o)t.o(o,a)&&(t.m[a]=o[a]);for(r&&r(t);s.length;)e[s.pop()]=1;i(n)}})(),(()=>{var e=t.x;t.x=()=>Promise.all([461,709,830,936,23,478,531,41].map(t.e,t)).then(e)})();t.x()})();