diff --git a/admission-server/package.json b/admission-server/package.json index cc4137d8aa..f643ea2e2b 100644 --- a/admission-server/package.json +++ b/admission-server/package.json @@ -12,12 +12,12 @@ "dependencies": { "@hono/node-server": "1.19.13", "@wundergraph/cosmo-shared": "workspace:^", - "dotenv": "^16.4.5", - "hono": "4.12.12" + "dotenv": "catalog:", + "hono": "catalog:" }, "devDependencies": { - "@types/node": "^20.11.17", - "tsx": "^4.16.0", - "typescript": "^5.3.2" + "@types/node": "catalog:", + "tsx": "catalog:", + "typescript": "catalog:" } } diff --git a/cdn-server/cdn/package.json b/cdn-server/cdn/package.json index 618ad9ae53..315568ee56 100644 --- a/cdn-server/cdn/package.json +++ b/cdn-server/cdn/package.json @@ -26,13 +26,13 @@ "dist" ], "dependencies": { - "hono": "4.12.12", + "hono": "catalog:", "jose": "^5.2.4" }, "devDependencies": { - "eslint": "^8.57.1", - "eslint-config-unjs": "^0.2.1", - "typescript": "5.5.2", - "vitest": "^3.2.4" + "eslint": "catalog:", + "eslint-config-unjs": "catalog:", + "typescript": "catalog:", + "vitest": "catalog:" } } diff --git a/cdn-server/package.json b/cdn-server/package.json index feade2b0be..f64557e355 100644 --- a/cdn-server/package.json +++ b/cdn-server/package.json @@ -26,14 +26,14 @@ "@aws-sdk/client-s3": "^3.996.0", "@hono/node-server": "1.19.13", "@wundergraph/cosmo-cdn": "workspace:*", - "dotenv": "^16.4.5", - "hono": "4.12.12" + "dotenv": "catalog:", + "hono": "catalog:" }, "devDependencies": { - "@types/node": "^20.9.0", - "eslint": "^8.57.1", - "eslint-config-unjs": "^0.2.1", - "tsx": "^4.16.0", - "typescript": "5.5.2" + "@types/node": "catalog:", + "eslint": "catalog:", + "eslint-config-unjs": "catalog:", + "tsx": "catalog:", + "typescript": "catalog:" } } diff --git a/cli/package.json b/cli/package.json index ae34a66096..779a17135f 100644 --- a/cli/package.json +++ b/cli/package.json @@ -41,10 +41,10 @@ ], "license": "Apache-2.0", "dependencies": { - "@bufbuild/protobuf": "1.9.0", - "@connectrpc/connect": "1.4.0", - "@connectrpc/connect-node": "1.4.0", - "@graphql-tools/utils": "11.0.0", + "@bufbuild/protobuf": "catalog:", + "@connectrpc/connect": "catalog:", + "@connectrpc/connect-node": "catalog:", + "@graphql-tools/utils": "catalog:", "@modelcontextprotocol/sdk": "1.26.0", "@octokit/rest": "22.0.0", "@wundergraph/composition": "workspace:*", @@ -52,24 +52,24 @@ "@wundergraph/cosmo-shared": "workspace:*", "@wundergraph/protographic": "workspace:*", "ajv": "8.18.0", - "axios": "1.13.5", + "axios": "catalog:", "boxen": "7.1.1", "cli-progress": "3.12.0", "cli-table3": "0.6.3", "commander": "11.1.0", - "date-fns": "3.6.0", + "date-fns": "catalog:", "decompress": "4.2.1", - "dotenv": "16.6.0", + "dotenv": "catalog:", "env-ci": "11.1.0", "env-paths": "3.0.0", "execa": "9.5.2", "fs-extra": "11.3.0", - "graphql": "16.9.0", + "graphql": "catalog:", "https-proxy-agent": "7.0.5", "inquirer": "9.2.7", "js-yaml": "4.1.1", "jwt-decode": "3.1.2", - "lodash-es": "4.18.1", + "lodash-es": "catalog:", "log-symbols": "5.1.0", "octokit": "4.1.3", "open": "9.1.0", @@ -83,7 +83,7 @@ "tar": "7.5.11", "trieve-ts-sdk": "0.0.80", "undici": "6.24.0", - "zod": "^3.25.0" + "zod": "catalog:" }, "devDependencies": { "@types/bun": "1.2.3", @@ -94,18 +94,18 @@ "@types/fs-extra": "11.0.4", "@types/inquirer": "9.0.3", "@types/js-yaml": "4.0.5", - "@types/lodash-es": "4.17.12", - "@types/node": "20.12.12", + "@types/lodash-es": "catalog:", + "@types/node": "catalog:", "@types/prompts": "2.4.9", "@types/semver": "7.7.0", - "@vitest/coverage-v8": "3.2.4", - "del-cli": "5.0.0", - "eslint": "8.57.1", - "eslint-config-unjs": "0.2.1", - "eslint-plugin-require-extensions": "0.1.3", - "tsx": "4.19.4", - "typescript": "5.5.2", - "vitest": "3.2.4" + "@vitest/coverage-v8": "catalog:", + "del-cli": "catalog:", + "eslint": "catalog:", + "eslint-config-unjs": "catalog:", + "eslint-plugin-require-extensions": "catalog:", + "tsx": "catalog:", + "typescript": "catalog:", + "vitest": "catalog:" }, "gitHead": "c37aed755e1b19ed91d30f9b5f7041e15c56901a" } diff --git a/composition-go/.prettierignore b/composition-go/.prettierignore new file mode 100644 index 0000000000..0cca9fefa7 --- /dev/null +++ b/composition-go/.prettierignore @@ -0,0 +1 @@ +index.global.js diff --git a/composition-go/index.global.js b/composition-go/index.global.js index 4739f5da20..bed0eb7134 100644 --- a/composition-go/index.global.js +++ b/composition-go/index.global.js @@ -476,8 +476,8 @@ function print() { __p += __j.call(arguments, '') } `)+Te+`return __p }`;var gt=HR(function(){return Wt(L,Ge+"return "+Te).apply(e,x)});if(gt.source=Te,Vy(gt))throw gt;return gt}function az(s){return tn(s).toLowerCase()}function sz(s){return tn(s).toUpperCase()}function oz(s,c,f){if(s=tn(s),s&&(f||c===e))return i0(s);if(!s||!(c=Ti(c)))return s;var y=ua(s),S=ua(c),L=a0(y,S),x=s0(y,S)+1;return fu(y,L,x).join("")}function uz(s,c,f){if(s=tn(s),s&&(f||c===e))return s.slice(0,u0(s)+1);if(!s||!(c=Ti(c)))return s;var y=ua(s),S=s0(y,ua(c))+1;return fu(y,0,S).join("")}function cz(s,c,f){if(s=tn(s),s&&(f||c===e))return s.replace(Vh,"");if(!s||!(c=Ti(c)))return s;var y=ua(s),S=a0(y,ua(c));return fu(y,S).join("")}function lz(s,c){var f=Z,y=ge;if(bn(c)){var S="separator"in c?c.separator:S;f="length"in c?ht(c.length):f,y="omission"in c?Ti(c.omission):y}s=tn(s);var L=s.length;if(sl(s)){var x=ua(s);L=x.length}if(f>=L)return s;var j=f-ol(y);if(j<1)return y;var z=x?fu(x,0,j).join(""):s.slice(0,j);if(S===e)return z+y;if(x&&(j+=z.length-j),jy(S)){if(s.slice(j).search(S)){var de,fe=z;for(S.global||(S=iy(S.source,tn(DA.exec(S))+"g")),S.lastIndex=0;de=S.exec(fe);)var Te=de.index;z=z.slice(0,Te===e?j:Te)}}else if(s.indexOf(Ti(S),j)!=j){var Ae=z.lastIndexOf(S);Ae>-1&&(z=z.slice(0,Ae))}return z+y}function dz(s){return s=tn(s),s&&SK.test(s)?s.replace(_A,V$):s}var fz=pl(function(s,c,f){return s+(f?" ":"")+c.toUpperCase()}),Qy=H0("toUpperCase");function zR(s,c,f){return s=tn(s),c=f?e:c,c===e?B$(s)?$$(s):b$(s):s.match(c)||[]}var HR=Ot(function(s,c){try{return pi(s,e,c)}catch(f){return Vy(f)?f:new lt(f)}}),pz=hs(function(s,c){return mi(c,function(f){f=la(f),xa(s,f,xy(s[f],s))}),s});function mz(s){var c=s==null?0:s.length,f=tt();return s=c?vn(s,function(y){if(typeof y[1]!="function")throw new Ri(i);return[f(y[0]),y[1]]}):[],Ot(function(y){for(var S=-1;++Swn)return[];var f=vt,y=Pr(s,vt);c=tt(c),s-=vt;for(var S=ty(y,c);++f0||c<0)?new Pt(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),c!==e&&(c=ht(c),f=c<0?f.dropRight(-c):f.take(c-s)),f)},Pt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Pt.prototype.toArray=function(){return this.take(vt)},qa(Pt.prototype,function(s,c){var f=/^(?:filter|find|map|reject)|While$/.test(c),y=/^(?:head|last)$/.test(c),S=w[y?"take"+(c=="last"?"Right":""):c],L=y||/^find/.test(c);S&&(w.prototype[c]=function(){var x=this.__wrapped__,j=y?[1]:arguments,z=x instanceof Pt,de=j[0],fe=z||ft(x),Te=function(At){var Ct=S.apply(w,au([At],j));return y&&Ae?Ct[0]:Ct};fe&&f&&typeof de=="function"&&de.length!=1&&(z=fe=!1);var Ae=this.__chain__,Ge=!!this.__actions__.length,nt=L&&!Ae,gt=z&&!Ge;if(!L&&fe){x=gt?x:new Pt(this);var Ze=s.apply(x,j);return Ze.__actions__.push({func:xm,args:[Te],thisArg:e}),new Pi(Ze,Ae)}return nt&>?s.apply(this,j):(Ze=this.thru(Te),nt?y?Ze.value()[0]:Ze.value():Ze)})}),mi(["pop","push","shift","sort","splice","unshift"],function(s){var c=dm[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",y=/^(?:pop|shift)$/.test(s);w.prototype[s]=function(){var S=arguments;if(y&&!this.__chain__){var L=this.value();return c.apply(ft(L)?L:[],S)}return this[f](function(x){return c.apply(ft(x)?x:[],S)})}}),qa(Pt.prototype,function(s,c){var f=w[c];if(f){var y=f.name+"";en.call(ll,y)||(ll[y]=[]),ll[y].push({name:c,func:f})}}),ll[wm(e,q).name]=[{name:"wrapper",func:e}],Pt.prototype.clone=fG,Pt.prototype.reverse=pG,Pt.prototype.value=mG,w.prototype.at=KY,w.prototype.chain=$Y,w.prototype.commit=GY,w.prototype.next=QY,w.prototype.plant=JY,w.prototype.reverse=zY,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=HY,w.prototype.first=w.prototype.head,wd&&(w.prototype[wd]=YY),w},ou=G$();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(mr._=ou,define(function(){return ou})):$u?(($u.exports=ou)._=ou,Yh._=ou):mr._=ou}).call(hd)});var MV=F(Qc=>{"use strict";m();T();N();Object.defineProperty(Qc,"__esModule",{value:!0});Qc.FederationFactory=void 0;Qc.federateSubgraphs=ipe;Qc.federateSubgraphsWithContracts=ape;Qc.federateSubgraphsContract=spe;var Pe=Se(),CV=Du(),zr=Br(),Fe=Yi(),$c=_T(),Gc=dd(),Hr=Ip(),ch=yE(),Rp=bu(),epe=Eb(),tpe=gp(),UV=Qf(),Oe=$l(),npe=Ib(),BV=LV(),yd=uh(),De=Xn(),lh=ql(),Ne=kr(),rpe=_p(),ku=Yf(),fh,kV,dh=class{constructor({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,entityInterfaceFederationDataByTypeName:i,fieldCoordsByNamedTypeName:a,interfaceImplementationTypeNamesByInterfaceTypeName:o,internalGraph:u,internalSubgraphBySubgraphName:l,options:d,warnings:p}){ec(this,fh);g(this,"authorizationDataByParentTypeName");g(this,"coordsByNamedTypeName",new Map);g(this,"directiveDefinitionByName",new Map);g(this,"clientDefinitions",[]);g(this,"currentSubgraphName","");g(this,"concreteTypeNamesByAbstractTypeName");g(this,"subgraphNamesByNamedTypeNameByFieldCoords",new Map);g(this,"entityDataByTypeName");g(this,"entityInterfaceFederationDataByTypeName");g(this,"errors",[]);g(this,"fieldConfigurationByFieldCoords",new Map);g(this,"fieldCoordsByNamedTypeName");g(this,"inaccessibleCoords",new Set);g(this,"inaccessibleRequiredInputValueErrorByCoords",new Map);g(this,"interfaceImplementationTypeNamesByInterfaceTypeName");g(this,"internalGraph");g(this,"internalSubgraphBySubgraphName");g(this,"invalidORScopesCoords",new Set);g(this,"isMaxDepth",!1);g(this,"isVersionTwo",!1);g(this,"namedInputValueTypeNames",new Set);g(this,"namedOutputTypeNames",new Set);g(this,"options");g(this,"parentDefinitionDataByTypeName",new Map);g(this,"parentTagDataByTypeName",new Map);g(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[De.AUTHENTICATED,ku.AUTHENTICATED_DEFINITION],[De.DEPRECATED,ku.DEPRECATED_DEFINITION],[De.INACCESSIBLE,ku.INACCESSIBLE_DEFINITION],[De.ONE_OF,ku.ONE_OF_DEFINITION],[De.REQUIRES_SCOPES,ku.REQUIRES_SCOPES_DEFINITION],[De.SEMANTIC_NON_NULL,ku.SEMANTIC_NON_NULL_DEFINITION],[De.TAG,ku.TAG_DEFINITION]]));g(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);g(this,"referencedPersistedDirectiveNames",new Set);g(this,"routerDefinitions",[]);g(this,"subscriptionFilterDataByFieldPath",new Map);g(this,"tagNamesByCoords",new Map);g(this,"warnings");this.authorizationDataByParentTypeName=t,this.options=d!=null?d:{},this.concreteTypeNamesByAbstractTypeName=n,this.entityDataByTypeName=r,this.entityInterfaceFederationDataByTypeName=i,this.fieldCoordsByNamedTypeName=a,this.interfaceImplementationTypeNamesByInterfaceTypeName=o,this.internalGraph=u,this.internalSubgraphBySubgraphName=l,this.warnings=p}extractPersistedDirectives({data:t,directivesByName:n}){for(let[r,i]of n)if(this.persistedDirectiveDefinitionByDirectiveName.get(r)&&(this.referencedPersistedDirectiveNames.add(r),!(De.AUTHORIZATION_DIRECTIVES.has(r)||i.length<1)))switch(r){case De.DEPRECATED:{t.isDeprecated=!0,(0,Oe.upsertDeprecatedDirective)(t,i[0]);break}case De.TAG:{(0,Oe.upsertTagDirectives)(t,i);break}default:{let o=t.directivesByName.get(r);if(!o){t.directivesByName.set(r,[...i]);break}if(De.NON_REPEATABLE_PERSISTED_DIRECTIVES.has(r))break;o.push(...i)}}return t}getValidImplementedInterfaces(t){var o;let n=[];if(t.implementedInterfaceTypeNames.size<1)return n;let r=(0,Oe.isNodeDataInaccessible)(t),i=new Map,a=new Map;for(let u of t.implementedInterfaceTypeNames){n.push((0,zr.stringToNamedTypeNode)(u));let l=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,u,De.PARENT_DEFINITION_DATA);if(l.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION){a.set(l.name,(0,Ne.kindToNodeType)(l.kind));continue}let d={invalidFieldImplementations:new Map,unimplementedFields:[]},p=!1;for(let[E,h]of l.fieldDataByName){let v=!1,R=t.fieldDataByName.get(E);if(!R){p=!0,d.unimplementedFields.push(E);continue}let U={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,ch.printTypeNode)(h.node.type),unimplementedArguments:new Set};(0,Oe.isTypeValidImplementation)({concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,implementationType:R.node.type,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,originalType:h.node.type})||(p=!0,v=!0,U.implementedResponseType=(0,ch.printTypeNode)(R.node.type));let q=new Set;for(let[X,te]of h.argumentDataByName){let ae=te.node;q.add(X);let me=(o=R.argumentDataByName.get(X))==null?void 0:o.node;if(!me){p=!0,v=!0,U.unimplementedArguments.add(X);continue}let ye=(0,ch.printTypeNode)(me.type),_e=(0,ch.printTypeNode)(ae.type);_e!==ye&&(p=!0,v=!0,U.invalidImplementedArguments.push({actualType:ye,argumentName:X,expectedType:_e}))}for(let[X,te]of R.argumentDataByName){let ae=te.node;q.has(X)||ae.type.kind===Pe.Kind.NON_NULL_TYPE&&(p=!0,v=!0,U.invalidAdditionalArguments.add(X))}!r&&R.isInaccessible&&!h.isInaccessible&&(p=!0,v=!0,U.isInaccessible=!0),v&&d.invalidFieldImplementations.set(E,U)}p&&i.set(u,d)}return a.size>0&&this.errors.push((0,Fe.invalidImplementedTypeError)(t.name,a)),i.size>0&&this.errors.push((0,Fe.invalidInterfaceImplementationError)(t.node.name.value,(0,Ne.kindToNodeType)(t.kind),i)),n}addValidPrimaryKeyTargetsToEntityData(t){var p;let n=this.entityDataByTypeName.get(t);if(!n)return;let r=(0,Ne.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=r.parentDefinitionDataByTypeName,a=i.get(n.typeName);if(!a||a.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION)throw(0,Fe.incompatibleParentKindFatalError)(n.typeName,Pe.Kind.OBJECT_TYPE_DEFINITION,(a==null?void 0:a.kind)||Pe.Kind.NULL);let o=r.configurationDataByTypeName.get(n.typeName);if(!o)return;let u=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,$c.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:n,implicitKeys:u,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l});for(let[E,h]of this.entityInterfaceFederationDataByTypeName){if(!((p=h.concreteTypeNames)!=null&&p.has(n.typeName)))continue;let v=this.entityDataByTypeName.get(E);v&&(0,$c.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:v,implicitKeys:u,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l})}if(u.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=u;return}let d=new Set(o.keys.map(E=>E.selectionSet));for(let E of u)d.has(E.selectionSet)||(o.keys.push(E),d.add(E.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,n,r,i){let a=t.parentDefinitionDataByTypeName,o=a.get(n);if(!o||!(0,Oe.isParentDataCompositeOutputType)(o))throw(0,Fe.incompatibleParentKindFatalError)(n,Pe.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||Pe.Kind.NULL);let u=(0,Ne.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByTypeName"),l=[];if((0,$c.validateImplicitFieldSets)({conditionalFieldDataByCoords:t.conditionalFieldDataByCoordinates,currentSubgraphName:t.name,entityData:r,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:a,graphNode:i}),l.length<1)return;if(!u.keys||u.keys.length<1){u.isRootNode=!0,u.keys=l;return}let d=new Set(u.keys.map(p=>p.selectionSet));for(let p of l)d.has(p.selectionSet)||(u.keys.push(p),d.add(p.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?Oe.MergeMethod.CONSISTENT:Oe.MergeMethod.INTERSECTION:Oe.MergeMethod.UNION}generateTagData(){for(let[t,n]of this.tagNamesByCoords){let r=t.split(De.LITERAL_PERIOD);if(r.length<1)continue;let i=(0,Ne.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,$c.newParentTagData)(r[0]));switch(r.length){case 1:for(let l of n)i.tagNames.add(l);break;case 2:let a=(0,Ne.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,$c.newChildTagData)(r[1]));for(let l of n)a.tagNames.add(l);break;case 3:let o=(0,Ne.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,$c.newChildTagData)(r[1])),u=(0,Ne.getValueOrDefault)(o.tagNamesByArgumentName,r[2],()=>new Set);for(let l of n)u.add(l);break;default:break}}}upsertEnumValueData(t,n,r){let i=t.get(n.name),a=i||this.copyEnumValueData(n);this.extractPersistedDirectives({data:a.persistedDirectivesData,directivesByName:n.directivesByName});let o=(0,Oe.isNodeDataInaccessible)(n);if((r||o)&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}a.appearances+=1,(0,Ne.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,Oe.setLongestDescription)(a,n),(0,Ne.addIterableToSet)({source:n.subgraphNames,target:a.subgraphNames})}upsertInputValueData(t,n,r,i){let a=t.get(n.name),o=a||this.copyInputValueData(n);if(this.extractPersistedDirectives({data:o.persistedDirectivesData,directivesByName:n.directivesByName}),this.recordTagNamesByCoords(o,`${r}.${o.name}`),this.namedInputValueTypeNames.add(o.namedTypeName),(0,Ne.getValueOrDefault)(this.coordsByNamedTypeName,o.namedTypeName,()=>new Set).add(o.federatedCoords),!a){t.set(o.name,o);return}(0,Ne.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,o.configureDescriptionDataBySubgraphName),(0,Oe.setLongestDescription)(o,n),(0,Ne.addIterableToSet)({source:n.requiredSubgraphNames,target:o.requiredSubgraphNames}),(0,Ne.addIterableToSet)({source:n.subgraphNames,target:o.subgraphNames}),this.handleInputValueInaccessibility(i,o,r);let u=(0,yd.getMostRestrictiveMergedTypeNode)(o.type,n.type,o.originalCoords,this.errors);u.success?o.type=u.typeNode:this.errors.push((0,Fe.incompatibleMergedTypesError)({actualType:u.actualType,isArgument:a.isArgument,coords:a.federatedCoords,expectedType:u.expectedType})),(0,Oe.compareAndValidateInputValueDefaultValues)(o,n,this.errors)}handleInputValueInaccessibility(t,n,r){if(t){this.inaccessibleRequiredInputValueErrorByCoords.delete(n.federatedCoords),this.inaccessibleCoords.add(n.federatedCoords);return}if((0,Oe.isNodeDataInaccessible)(n)){if((0,Oe.isTypeRequired)(n.type)){this.inaccessibleRequiredInputValueErrorByCoords.set(n.federatedCoords,(0,Fe.inaccessibleRequiredInputValueError)(n,r));return}this.inaccessibleCoords.add(n.federatedCoords)}}handleSubscriptionFilterDirective(t,n){let r=t.directivesByName.get(De.SUBSCRIPTION_FILTER);if(!r)return;let i=(0,Ne.getFirstEntry)(t.subgraphNames);if(i===void 0){this.errors.push((0,Fe.unknownFieldSubgraphNameError)(t.federatedCoords));return}this.subscriptionFilterDataByFieldPath.set(t.federatedCoords,{directive:r[0],fieldData:n||t,directiveSubgraphName:i})}federateOutputType({current:t,other:n,coords:r,mostRestrictive:i}){n=(0,CV.getMutableTypeNode)(n,r,this.errors);let a={kind:t.kind},o=yd.DivergentType.NONE,u=a;for(let l=0;lnew Set)})}upsertFieldData(t,n,r){let i=t.get(n.name),a=i||this.copyFieldData(n,r||(0,Oe.isNodeDataInaccessible)(n));(0,Ne.getValueOrDefault)(this.coordsByNamedTypeName,n.namedTypeName,()=>new Set).add(a.federatedCoords),this.namedOutputTypeNames.add(n.namedTypeName),this.handleSubscriptionFilterDirective(n,a),this.extractPersistedDirectives({data:a.persistedDirectivesData,directivesByName:n.directivesByName});let o=r||(0,Oe.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}let u=this.federateOutputType({current:a.type,other:n.type,coords:a.federatedCoords,mostRestrictive:!1});if(u.success)if(a.type=u.typeNode,a.namedTypeName!==n.namedTypeName){let l=(0,Ne.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoords,a.federatedCoords,()=>new Map),d=(0,Ne.getValueOrDefault)(l,a.namedTypeName,()=>new Set);if(d.size<1)for(let p of a.subgraphNames)n.subgraphNames.has(p)||d.add(p);(0,Ne.addIterableToSet)({source:n.subgraphNames,target:(0,Ne.getValueOrDefault)(l,n.namedTypeName,()=>new Set)})}else this.addSubgraphNameToExistingFieldNamedTypeDisparity(n);for(let l of n.argumentDataByName.values())this.upsertInputValueData(a.argumentDataByName,l,a.federatedCoords,o);(0,Ne.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,Oe.setLongestDescription)(a,n),a.isInaccessible||(a.isInaccessible=n.isInaccessible),(0,Ne.addNewObjectValueMapEntries)(n.externalFieldDataBySubgraphName,a.externalFieldDataBySubgraphName),(0,Ne.addMapEntries)({source:n.isShareableBySubgraphName,target:a.isShareableBySubgraphName}),(0,Ne.addMapEntries)({source:n.nullLevelsBySubgraphName,target:a.nullLevelsBySubgraphName}),(0,Ne.addIterableToSet)({source:n.subgraphNames,target:a.subgraphNames})}getClientSchemaUnionMembers(t){let n=[];for(let[r,i]of t.memberByMemberTypeName)this.inaccessibleCoords.has(r)||n.push(i);return n}recordTagNamesByCoords(t,n){let r=n||t.name;if(t.persistedDirectivesData.tagDirectiveByName.size<1)return;let i=(0,Ne.getValueOrDefault)(this.tagNamesByCoords,r,()=>new Set);for(let a of t.persistedDirectivesData.tagDirectiveByName.keys())i.add(a)}copyMutualParentDefinitionData(t){return{configureDescriptionDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,Ne.copyArrayValueMap)(t.directivesByName),extensionType:t.extensionType,name:t.name,persistedDirectivesData:this.extractPersistedDirectives({data:(0,Oe.newPersistedDirectivesData)(),directivesByName:t.directivesByName}),description:(0,Oe.getInitialFederatedDescription)(t)}}copyEnumValueData(t){return{appearances:t.appearances,configureDescriptionDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),federatedCoords:t.federatedCoords,directivesByName:(0,Ne.copyArrayValueMap)(t.directivesByName),kind:t.kind,name:t.name,node:{directives:[],kind:t.kind,name:(0,zr.stringToNameNode)(t.name)},parentTypeName:t.parentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,Oe.newPersistedDirectivesData)(),directivesByName:t.directivesByName}),subgraphNames:new Set(t.subgraphNames),description:(0,Oe.getInitialFederatedDescription)(t)}}copyInputValueData(t){return{configureDescriptionDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,Ne.copyArrayValueMap)(t.directivesByName),federatedCoords:t.federatedCoords,fieldName:t.fieldName,includeDefaultValue:t.includeDefaultValue,isArgument:t.isArgument,kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{directives:[],kind:Pe.Kind.INPUT_VALUE_DEFINITION,name:(0,zr.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,Oe.newPersistedDirectivesData)(),directivesByName:t.directivesByName}),renamedParentTypeName:t.renamedParentTypeName,requiredSubgraphNames:new Set(t.requiredSubgraphNames),subgraphNames:new Set(t.subgraphNames),type:t.type,defaultValue:t.defaultValue,description:(0,Oe.getInitialFederatedDescription)(t)}}copyInputValueDataByValueName(t,n,r){let i=new Map;for(let[a,o]of t){let u=this.copyInputValueData(o);this.handleInputValueInaccessibility(n,u,r),(0,Ne.getValueOrDefault)(this.coordsByNamedTypeName,u.namedTypeName,()=>new Set).add(u.federatedCoords),this.namedInputValueTypeNames.add(u.namedTypeName),this.recordTagNamesByCoords(u,`${r}.${o.name}`),i.set(a,u)}return i}copyFieldData(t,n){return{argumentDataByName:this.copyInputValueDataByValueName(t.argumentDataByName,n,t.federatedCoords),configureDescriptionDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,Ne.copyArrayValueMap)(t.directivesByName),externalFieldDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.externalFieldDataBySubgraphName),federatedCoords:t.federatedCoords,inheritedDirectiveNames:new Set,isInaccessible:t.isInaccessible,isShareableBySubgraphName:new Map(t.isShareableBySubgraphName),kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{arguments:[],directives:[],kind:t.kind,name:(0,zr.stringToNameNode)(t.name),type:t.type},nullLevelsBySubgraphName:t.nullLevelsBySubgraphName,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,Oe.newPersistedDirectivesData)(),directivesByName:t.directivesByName}),renamedParentTypeName:t.renamedParentTypeName,subgraphNames:new Set(t.subgraphNames),type:t.type,description:(0,Oe.getInitialFederatedDescription)(t)}}copyEnumValueDataByName(t,n){let r=new Map;for(let[i,a]of t){let o=this.copyEnumValueData(a);this.recordTagNamesByCoords(o,o.federatedCoords),(n||(0,Oe.isNodeDataInaccessible)(o))&&this.inaccessibleCoords.add(o.federatedCoords),r.set(i,o)}return r}copyFieldDataByName(t,n){let r=new Map;for(let[i,a]of t){let o=n||(0,Oe.isNodeDataInaccessible)(a),u=this.copyFieldData(a,o);this.handleSubscriptionFilterDirective(u),(0,Ne.getValueOrDefault)(this.coordsByNamedTypeName,u.namedTypeName,()=>new Set).add(u.federatedCoords),this.namedOutputTypeNames.add(u.namedTypeName),this.recordTagNamesByCoords(u,u.federatedCoords),o&&this.inaccessibleCoords.add(u.federatedCoords),r.set(i,u)}return r}copyParentDefinitionData(t){let n=this.copyMutualParentDefinitionData(t);switch(t.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:return $(M({},n),{appearances:t.appearances,enumValueDataByName:this.copyEnumValueDataByName(t.enumValueDataByName,t.isInaccessible),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,zr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:return $(M({},n),{inputValueDataByName:this.copyInputValueDataByValueName(t.inputValueDataByName,t.isInaccessible,t.name),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,zr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.INTERFACE_TYPE_DEFINITION:return $(M({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,zr.stringToNameNode)(t.name)},requireFetchReasonsFieldNames:new Set,subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.OBJECT_TYPE_DEFINITION:return $(M({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,isRootType:t.isRootType,kind:t.kind,node:{kind:t.kind,name:(0,zr.stringToNameNode)(t.renamedTypeName||t.name)},requireFetchReasonsFieldNames:new Set,renamedTypeName:t.renamedTypeName,subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.SCALAR_TYPE_DEFINITION:return $(M({},n),{kind:t.kind,node:{kind:t.kind,name:(0,zr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.UNION_TYPE_DEFINITION:return $(M({},n),{kind:t.kind,node:{kind:t.kind,name:(0,zr.stringToNameNode)(t.name)},memberByMemberTypeName:new Map(t.memberByMemberTypeName),subgraphNames:new Set(t.subgraphNames)})}}getParentTargetData({existingData:t,incomingData:n}){if(!t){let r=this.copyParentDefinitionData(n);return(0,Oe.isParentDataRootType)(r)&&(r.extensionType=UV.ExtensionType.NONE),r}return this.extractPersistedDirectives({data:t.persistedDirectivesData,directivesByName:n.directivesByName}),t}upsertParentDefinitionData(t,n){let r=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),a=this.getParentTargetData({existingData:i,incomingData:t});this.recordTagNamesByCoords(a);let o=(0,Oe.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.name),r&&r.interfaceObjectSubgraphNames.has(n)){if(i&&i.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,Fe.incompatibleParentTypeMergeError)({existingData:i,incomingSubgraphName:n}));return}a.kind=Pe.Kind.INTERFACE_TYPE_DEFINITION,a.node.kind=Pe.Kind.INTERFACE_TYPE_DEFINITION}if(!i){this.parentDefinitionDataByTypeName.set(a.name,a);return}if(a.kind!==t.kind&&(!r||!r.interfaceObjectSubgraphNames.has(n)||a.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,Fe.incompatibleParentTypeMergeError)({existingData:a,incomingNodeType:(0,Ne.kindToNodeType)(t.kind),incomingSubgraphName:n}));return}switch((0,Ne.addNewObjectValueMapEntries)(t.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,Oe.setLongestDescription)(a,t),(0,Oe.setParentDataExtensionType)(a,t),a.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:if(!(0,Oe.areKindsEqual)(a,t))return;a.appearances+=1,a.isInaccessible||(a.isInaccessible=o),(0,Ne.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});for(let l of t.enumValueDataByName.values())this.upsertEnumValueData(a.enumValueDataByName,l,o);return;case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(!(0,Oe.areKindsEqual)(a,t))return;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,Ne.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});for(let l of t.inputValueDataByName.values())this.upsertInputValueData(a.inputValueDataByName,l,a.name,a.isInaccessible);return;case Pe.Kind.INTERFACE_TYPE_DEFINITION:case Pe.Kind.OBJECT_TYPE_DEFINITION:let u=t;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,Ne.addIterableToSet)({source:u.implementedInterfaceTypeNames,target:a.implementedInterfaceTypeNames}),(0,Ne.addIterableToSet)({source:u.subgraphNames,target:a.subgraphNames});for(let l of u.fieldDataByName.values())this.upsertFieldData(a.fieldDataByName,l,a.isInaccessible);return;case Pe.Kind.UNION_TYPE_DEFINITION:if(!(0,Oe.areKindsEqual)(a,t))return;(0,Ne.addMapEntries)({source:t.memberByMemberTypeName,target:a.memberByMemberTypeName}),(0,Ne.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});return;default:(0,Ne.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});return}}propagateInaccessibilityToExistingChildren(t){switch(t.kind){case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let n of t.inputValueDataByName.values())this.inaccessibleCoords.add(n.federatedCoords);break;default:for(let n of t.fieldDataByName.values()){this.inaccessibleCoords.add(n.federatedCoords);for(let r of n.argumentDataByName.values())this.inaccessibleCoords.add(r.federatedCoords)}}}upsertPersistedDirectiveDefinitionData(t,n){let r=t.name,i=this.potentialPersistedDirectiveDefinitionDataByDirectiveName.get(r);if(!i){if(n>1)return;let a=new Map;for(let o of t.argumentDataByName.values())this.namedInputValueTypeNames.add(o.namedTypeName),this.upsertInputValueData(a,o,`@${t.name}`,!1);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(r,{argumentDataByName:a,executableLocations:new Set(t.executableLocations),name:r,repeatable:t.repeatable,subgraphNames:new Set(t.subgraphNames),description:t.description});return}if(i.subgraphNames.size+1!==n){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}if((0,Oe.setMutualExecutableLocations)(i,t.executableLocations),i.executableLocations.size<1){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}for(let a of t.argumentDataByName.values())this.namedInputValueTypeNames.add((0,CV.getTypeNodeNamedTypeName)(a.type)),this.upsertInputValueData(i.argumentDataByName,a,`@${i.name}`,!1);(0,Oe.setLongestDescription)(i,t),i.repeatable&&(i.repeatable=t.repeatable),(0,Ne.addIterableToSet)({source:t.subgraphNames,target:i.subgraphNames})}shouldUpdateFederatedFieldAbstractNamedType(t,n){if(!t)return!1;let r=this.concreteTypeNamesByAbstractTypeName.get(t);if(!r||r.size<1)return!1;for(let i of n)if(!r.has(i))return!1;return!0}updateTypeNodeNamedType(t,n){let r=t;for(let i=0;i1){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}break}case Pe.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}l=p;break}default:{this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));break}}}if(o.size<1&&!l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}let d=l;if(o.size>0){if(l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}for(let p of o.keys()){d=p;for(let[E,h]of o)if(p!==E&&!h.implementedInterfaceTypeNames.has(p)){d="";break}if(d)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(d,u)){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}a.namedTypeName=d,this.updateTypeNodeNamedType(a.type,d)}}federateInternalSubgraphData(){let t=0,n=!1;for(let r of this.internalSubgraphBySubgraphName.values()){t+=1,this.currentSubgraphName=r.name,this.isVersionTwo||(this.isVersionTwo=r.isVersionTwo),(0,npe.renameRootTypes)(this,r);for(let i of r.parentDefinitionDataByTypeName.values())this.upsertParentDefinitionData(i,r.name);if(!n){if(!r.persistedDirectiveDefinitionDataByDirectiveName.size){n=!0;continue}for(let i of r.persistedDirectiveDefinitionDataByDirectiveName.values())this.upsertPersistedDirectiveDefinitionData(i,t);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.size<1&&(n=!0)}}this.handleDisparateFieldNamedTypes()}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:n,interfaceObjectData:r,interfaceObjectNode:i,resolvableKeyFieldSets:a,subgraphName:o}){let u=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let p of i.satisfiedFieldSets)u.satisfiedFieldSets.add(p),a.has(p)&&l.addTargetSubgraphByFieldSet(p,o);let d=r.fieldDatasBySubgraphName.get(o);for(let{name:p,namedTypeName:E}of d||[])this.internalGraph.addEdge(u,this.internalGraph.addOrUpdateNode(E),p);this.internalGraph.addEdge(i,u,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(n,i.typeName,t,u)}handleEntityInterfaces(){var t;for(let[n,r]of this.entityInterfaceFederationDataByTypeName){let i=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,n,De.PARENT_DEFINITION_DATA);if(i.kind===Pe.Kind.INTERFACE_TYPE_DEFINITION)for(let a of r.interfaceObjectSubgraphNames){let o=(0,Ne.getOrThrowError)(this.internalSubgraphBySubgraphName,a,"internalSubgraphBySubgraphName"),u=o.configurationDataByTypeName,l=this.concreteTypeNamesByAbstractTypeName.get(n);if(!l)continue;let d=(0,Ne.getOrThrowError)(u,n,"configurationDataByTypeName"),p=d.keys;if(!p)continue;d.entityInterfaceConcreteTypeNames=new Set(r.concreteTypeNames),this.internalGraph.setSubgraphName(a);let E=this.internalGraph.addOrUpdateNode(n,{isAbstract:!0});for(let h of l){let v=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,h,De.PARENT_DEFINITION_DATA);if(!(0,Hr.isObjectDefinitionData)(v))continue;let R=(0,Ne.getOrThrowError)(this.entityDataByTypeName,h,"entityDataByTypeName");R.subgraphNames.add(a);let U=u.get(h);if(U)if((0,Ne.addIterableToSet)({source:d.fieldNames,target:U.fieldNames}),!U.keys)U.keys=[...p];else e:for(let ae of p){for(let{selectionSet:me}of U.keys)if(ae.selectionSet===me)continue e;U.keys.push(ae)}else u.set(h,{fieldNames:new Set(d.fieldNames),isRootNode:!0,keys:[...p],typeName:h});let q=new Set;for(let ae of p.filter(me=>!me.disableEntityResolver))q.add(ae.selectionSet);let X=this.authorizationDataByParentTypeName.get(n),te=(0,Ne.getOrThrowError)(o.parentDefinitionDataByTypeName,n,"internalSubgraph.parentDefinitionDataByTypeName");if((0,Hr.isObjectDefinitionData)(te)){for(let[ae,me]of te.fieldDataByName){let ye=`${h}.${ae}`;(0,Ne.getValueOrDefault)(this.fieldCoordsByNamedTypeName,me.namedTypeName,()=>new Set).add(ye);let _e=X==null?void 0:X.fieldAuthDataByFieldName.get(ae);if(_e){let Z=(0,Ne.getValueOrDefault)(this.authorizationDataByParentTypeName,h,()=>(0,Hr.newAuthorizationData)(h));(0,Hr.upsertFieldAuthorizationData)(Z.fieldAuthDataByFieldName,_e)||this.invalidORScopesCoords.add(ye)}let Ee=v.fieldDataByName.get(ae);if(Ee){let Z=(t=me.isShareableBySubgraphName.get(a))!=null?t:!1;Ee.isShareableBySubgraphName.set(a,Z),Ee.subgraphNames.add(a);let ge=me.externalFieldDataBySubgraphName.get(a);if(!ge)continue;Ee.externalFieldDataBySubgraphName.set(a,M({},ge));continue}let ke=i.isInaccessible||v.isInaccessible||me.isInaccessible;v.fieldDataByName.set(ae,this.copyFieldData(me,ke))}this.handleInterfaceObjectForInternalGraph({internalSubgraph:o,subgraphName:a,interfaceObjectData:r,interfaceObjectNode:E,resolvableKeyFieldSets:q,entityData:R})}}}}}fieldDataToGraphFieldData(t){var n;return{externalSubgraphNames:new Set,name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,Hr.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}getValidFlattenedPersistedDirectiveNodeArray(t){var i;let n=(0,Hr.getNodeCoords)(t),r=[];for(let[a,o]of t.persistedDirectivesData.directivesByName){if(a===De.SEMANTIC_NON_NULL&&(0,Oe.isFieldData)(t)){r.push((0,Ne.generateSemanticNonNullDirective)((i=(0,Ne.getFirstEntry)(t.nullLevelsBySubgraphName))!=null?i:new Set([0])));continue}let u=this.persistedDirectiveDefinitionByDirectiveName.get(a);if(u){if(o.length<2){r.push(...o);continue}if(!u.repeatable){this.errors.push((0,Fe.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}r.push(...o)}}return r}getRouterPersistedDirectiveNodes(t){let n=[...t.persistedDirectivesData.tagDirectiveByName.values()];return t.persistedDirectivesData.isDeprecated&&n.push((0,Oe.generateDeprecatedDirective)(t.persistedDirectivesData.deprecatedReason)),n.push(...this.getValidFlattenedPersistedDirectiveNodeArray(t)),n}getFederatedGraphNodeDescription(t){if(t.configureDescriptionDataBySubgraphName.size<1)return t.description;let n=[],r="";for(let[i,{propagate:a,description:o}]of t.configureDescriptionDataBySubgraphName)a&&(n.push(i),r=o);if(n.length===1)return(0,$c.getDescriptionFromString)(r);if(n.length<1)return t.description;this.errors.push((0,Fe.configureDescriptionPropagationError)((0,Oe.getDefinitionDataCoords)(t,!0),n))}getNodeForRouterSchemaByData(t){return t.node.name=(0,zr.stringToNameNode)(t.name),t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}getNodeWithPersistedDirectivesByInputValueData(t){return t.node.name=(0,zr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.includeDefaultValue&&(t.node.defaultValue=t.defaultValue),t.node}getValidFieldArgumentNodes(t){let n=[],r=[],i=[],a=`${t.renamedParentTypeName}.${t.name}`;for(let[o,u]of t.argumentDataByName)t.subgraphNames.size===u.subgraphNames.size?(r.push(o),n.push(this.getNodeWithPersistedDirectivesByInputValueData(u))):(0,Oe.isTypeRequired)(u.type)&&i.push({inputValueName:o,missingSubgraphs:(0,Ne.getEntriesNotInHashSet)(t.subgraphNames,u.subgraphNames),requiredSubgraphs:[...u.requiredSubgraphNames]});return i.length>0?this.errors.push((0,Fe.invalidRequiredInputValueError)(De.FIELD,a,i)):r.length>0&&((0,Ne.getValueOrDefault)(this.fieldConfigurationByFieldCoords,a,()=>({argumentNames:r,fieldName:t.name,typeName:t.renamedParentTypeName})).argumentNames=r),n}getNodeWithPersistedDirectivesByFieldData(t,n){return t.node.arguments=n,t.node.name=(0,zr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}validateSemanticNonNull(t){let n;for(let r of t.nullLevelsBySubgraphName.values()){if(!n){n=r;continue}if(n.size!==r.size){this.errors.push((0,Fe.semanticNonNullInconsistentLevelsError)(t));return}for(let i of r)if(!n.has(i)){this.errors.push((0,Fe.semanticNonNullInconsistentLevelsError)(t));return}}}validateOneOfDirective({data:t,inputValueNodes:n,requiredFieldNames:r}){return t.directivesByName.has(De.ONE_OF)?r.size>0?(this.errors.push((0,Fe.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(r),typeName:t.name})),!1):(n.length===1&&this.warnings.push((0,rpe.singleFederatedInputFieldOneOfWarning)({fieldName:n[0].name.value,typeName:t.name})),!0):!0}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==UV.ExtensionType.NONE&&this.errors.push((0,Fe.noBaseDefinitionForExtensionError)((0,Ne.kindToNodeType)(r.kind),n)),r.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:{if(Gc.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;let i=[],a=[],o=this.getEnumValueMergeMethod(n);(0,Oe.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n));for(let u of r.enumValueDataByName.values()){let l=this.getNodeForRouterSchemaByData(u),d=(0,Oe.isNodeDataInaccessible)(u),p=$(M({},u.node),{directives:(0,Oe.getClientPersistedDirectiveNodes)(u)});switch(o){case Oe.MergeMethod.CONSISTENT:!d&&r.appearances>u.appearances&&this.errors.push((0,Fe.incompatibleSharedEnumError)(n)),i.push(l),d||a.push(p);break;case Oe.MergeMethod.INTERSECTION:r.appearances===u.appearances&&(i.push(l),d||a.push(p));break;default:i.push(l),d||a.push(p);break}}if(r.node.values=i,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,Oe.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)((0,Ne.kindToNodeType)(r.kind),n,De.ENUM_VALUE));break}this.clientDefinitions.push($(M({},r.node),{directives:(0,Oe.getClientPersistedDirectiveNodes)(r),values:a}));break}case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(Gc.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;let i=new Array,a=new Array,o=new Array,u=new Set;for(let[l,d]of r.inputValueDataByName)if((0,Oe.isTypeRequired)(d.type)&&u.add(l),r.subgraphNames.size===d.subgraphNames.size){if(a.push(this.getNodeWithPersistedDirectivesByInputValueData(d)),(0,Oe.isNodeDataInaccessible)(d))continue;o.push($(M({},d.node),{directives:(0,Oe.getClientPersistedDirectiveNodes)(d)}))}else(0,Oe.isTypeRequired)(d.type)&&i.push({inputValueName:l,missingSubgraphs:(0,Ne.getEntriesNotInHashSet)(r.subgraphNames,d.subgraphNames),requiredSubgraphs:[...d.requiredSubgraphNames]});if(i.length>0){this.errors.push((0,Fe.invalidRequiredInputValueError)(De.INPUT_OBJECT,n,i,!1));break}if(!this.validateOneOfDirective({data:r,inputValueNodes:a,requiredFieldNames:u}))break;if(r.node.fields=a,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,Oe.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(o.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)((0,Ne.kindToNodeType)(r.kind),n,"Input field"));break}this.clientDefinitions.push($(M({},r.node),{directives:(0,Oe.getClientPersistedDirectiveNodes)(r),fields:o}));break}case Pe.Kind.INTERFACE_TYPE_DEFINITION:case Pe.Kind.OBJECT_TYPE_DEFINITION:{let i=[],a=[],o=new Map,u=(0,Oe.newInvalidFieldNames)(),l=r.kind===Pe.Kind.OBJECT_TYPE_DEFINITION,d=this.authorizationDataByParentTypeName.get(n);(0,Oe.propagateAuthDirectives)(r,d);for(let[E,h]of r.fieldDataByName){(0,Oe.propagateFieldAuthDirectives)(h,d);let v=this.getValidFieldArgumentNodes(h);l&&(0,Oe.validateExternalAndShareable)(h,u),this.validateSemanticNonNull(h),i.push(this.getNodeWithPersistedDirectivesByFieldData(h,v)),!(0,Oe.isNodeDataInaccessible)(h)&&(a.push((0,Oe.getClientSchemaFieldNodeByFieldData)(h)),o.set(E,this.fieldDataToGraphFieldData(h)))}if(l&&(u.byShareable.size>0&&this.errors.push((0,Fe.invalidFieldShareabilityError)(r,u.byShareable)),u.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,Fe.allExternalFieldInstancesError)(n,u.subgraphNamesByExternalFieldName))),r.node.fields=i,this.internalGraph.initializeNode(n,o),r.implementedInterfaceTypeNames.size>0){t.push({data:r,clientSchemaFieldNodes:a});break}this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r));let p=(0,tpe.isNodeQuery)(n);if((0,Oe.isNodeDataInaccessible)(r)){if(p){this.errors.push(Fe.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){let E=p?(0,Fe.noQueryRootTypeError)(!1):(0,Fe.allChildDefinitionsAreInaccessibleError)((0,Ne.kindToNodeType)(r.kind),n,De.FIELD);this.errors.push(E);break}this.clientDefinitions.push($(M({},r.node),{directives:(0,Oe.getClientPersistedDirectiveNodes)(r),fields:a}));break}case Pe.Kind.SCALAR_TYPE_DEFINITION:{if(Gc.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;if((0,Oe.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n)),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,Oe.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}this.clientDefinitions.push($(M({},r.node),{directives:(0,Oe.getClientPersistedDirectiveNodes)(r)}));break}case Pe.Kind.UNION_TYPE_DEFINITION:{if(r.node.types=(0,Hr.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,Oe.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let i=this.getClientSchemaUnionMembers(r);if(i.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)(De.UNION,n,"union member type"));break}this.clientDefinitions.push($(M({},r.node),{directives:(0,Oe.getClientPersistedDirectiveNodes)(r),types:i}));break}}}pushNamedTypeAuthDataToFields(){var t;for(let[n,r]of this.authorizationDataByParentTypeName){if(!r.requiresAuthentication&&r.requiredScopes.length<1)continue;let i=this.fieldCoordsByNamedTypeName.get(n);if(i)for(let a of i){let o=a.split(De.LITERAL_PERIOD);switch(o.length){case 2:{let u=(0,Ne.getValueOrDefault)(this.authorizationDataByParentTypeName,o[0],()=>(0,Hr.newAuthorizationData)(o[0])),l=(0,Ne.getValueOrDefault)(u.fieldAuthDataByFieldName,o[1],()=>(0,Hr.newFieldAuthorizationData)(o[1]));(t=l.inheritedData).requiresAuthentication||(t.requiresAuthentication=r.requiresAuthentication),l.inheritedData.requiredScopes.length*r.requiredScopes.length>Rp.MAX_OR_SCOPES?this.invalidORScopesCoords.add(a):(l.inheritedData.requiredScopesByOR=(0,Hr.mergeRequiredScopesByAND)(l.inheritedData.requiredScopesByOR,r.requiredScopesByOR),l.inheritedData.requiredScopes=(0,Hr.mergeRequiredScopesByAND)(l.inheritedData.requiredScopes,r.requiredScopes));break}default:break}}}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),El(this,fh,kV).call(this),this.pushNamedTypeAuthDataToFields()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:n,clientSchemaFieldNodes:r}of t){if(n.node.interfaces=this.getValidImplementedInterfaces(n),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(n)),(0,Oe.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);continue}let i=[];for(let a of n.implementedInterfaceTypeNames)this.inaccessibleCoords.has(a)||i.push((0,zr.stringToNamedTypeNode)(a));this.clientDefinitions.push($(M({},n.node),{directives:(0,Oe.getClientPersistedDirectiveNodes)(n),fields:r,interfaces:i}))}}validatePathSegmentInaccessibility(t){if(!t)return!1;let r=t.split(De.LEFT_PARENTHESIS)[0].split(De.LITERAL_PERIOD),i=r[0];for(let a=0;a0&&this.errors.push((0,Fe.invalidReferencesOfInaccessibleTypeError)((0,Ne.kindToNodeType)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(De.QUERY);if(!t||t.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size<1){this.errors.push((0,Fe.noQueryRootTypeError)());return}for(let n of t.fieldDataByName.values())if(!(0,Oe.isNodeDataInaccessible)(n))return;this.errors.push((0,Fe.noQueryRootTypeError)())}validateSubscriptionFieldConditionFieldPath(t,n,r,i,a){let o=t.split(De.LITERAL_PERIOD);if(o.length<1)return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let u=n;if(this.inaccessibleCoords.has(u.renamedTypeName))return a.push((0,Fe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,o[0],u.renamedTypeName)),[];let l="";for(let d=0;d0?`.${p}`:p,u.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION)return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let E=u.fieldDataByName.get(p);if(!E)return a.push((0,Fe.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,p,u.renamedTypeName)),[];let h=`${u.renamedTypeName}.${p}`;if(!E.subgraphNames.has(i))return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,h,i)),[];if(this.inaccessibleCoords.has(h))return a.push((0,Fe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,h)),[];if(Rp.BASE_SCALARS.has(E.namedTypeName)){u={kind:Pe.Kind.SCALAR_TYPE_DEFINITION,name:E.namedTypeName};continue}u=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,E.namedTypeName,De.PARENT_DEFINITION_DATA)}return(0,Oe.isLeafKind)(u.kind)?o:(a.push((0,Fe.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,o[o.length-1],(0,Ne.kindToNodeType)(u.kind),u.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,a,o,u){if(i>lh.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,Fe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;let l=!1,d=new Set([De.FIELD_PATH,De.VALUES]),p=new Set,E=new Set,h=[];for(let v of t.fields){let R=v.name.value,U=a+`.${R}`;switch(R){case De.FIELD_PATH:{if(d.has(De.FIELD_PATH))d.delete(De.FIELD_PATH);else{l=!0,p.add(De.FIELD_PATH);break}if(v.value.kind!==Pe.Kind.STRING){h.push((0,Fe.invalidInputFieldTypeErrorMessage)(U,De.STRING,(0,Ne.kindToNodeType)(v.value.kind))),l=!0;break}let q=this.validateSubscriptionFieldConditionFieldPath(v.value.value,r,U,o,h);if(q.length<1){l=!0;break}n.fieldPath=q;break}case De.VALUES:{if(d.has(De.VALUES))d.delete(De.VALUES);else{l=!0,p.add(De.VALUES);break}let q=v.value.kind;if(q==Pe.Kind.NULL||q==Pe.Kind.OBJECT){h.push((0,Fe.invalidInputFieldTypeErrorMessage)(U,De.LIST,(0,Ne.kindToNodeType)(v.value.kind))),l=!0;break}if(q!==Pe.Kind.LIST){n.values=[(0,Oe.getSubscriptionFilterValue)(v.value)];break}let X=new Set,te=[];for(let ae=0;ae0){h.push((0,Fe.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(U,te));continue}if(X.size<1){l=!0,h.push((0,Fe.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(U));continue}n.values=[...X];break}default:l=!0,E.add(R)}}return l?(u.push((0,Fe.subscriptionFieldConditionInvalidInputFieldErrorMessage)(a,[...d],[...p],[...E],h)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,a,o,u){if(i>lh.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,Fe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return u.push((0,Fe.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(a,t.fields.length)),!1;let l=t.fields[0],d=l.name.value;if(!Gc.SUBSCRIPTION_FILTER_INPUT_NAMES.has(d))return u.push((0,Fe.subscriptionFilterConditionInvalidInputFieldErrorMessage)(a,d)),!1;let p=a+`.${d}`;switch(l.value.kind){case Pe.Kind.OBJECT:switch(d){case De.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,a+".IN",o,u);case De.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,a+".NOT",o,u);default:return u.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,De.LIST,De.OBJECT)),!1}case Pe.Kind.LIST:{let E=[];switch(d){case De.AND_UPPER:{n.and=E;break}case De.OR_UPPER:{n.or=E;break}default:return u.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,De.OBJECT,De.LIST)),!1}let h=l.value.values.length;if(h<1||h>5)return u.push((0,Fe.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(p,h)),!1;let v=!0,R=[];for(let U=0;U0?(u.push((0,Fe.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(p,R)),!1):v}default:{let E=Gc.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(d)?De.LIST:De.OBJECT;return u.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,E,(0,Ne.kindToNodeType)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,n,r,i,a,o){if(!t.arguments||t.arguments.length!==1)return;let u=t.arguments[0];if(u.value.kind!==Pe.Kind.OBJECT){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(r,[(0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(De.CONDITION,De.OBJECT,(0,Ne.kindToNodeType)(u.value.kind))]));return}let l={},d=[];if(!this.validateSubscriptionFilterCondition(u.value,l,n,0,De.CONDITION,o,d)){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(r,d)),this.isMaxDepth=!1;return}(0,Ne.getValueOrDefault)(this.fieldConfigurationByFieldCoords,r,()=>({argumentNames:[],fieldName:i,typeName:a})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,n]of this.subscriptionFilterDataByFieldPath){if(this.inaccessibleCoords.has(t))continue;let r=this.parentDefinitionDataByTypeName.get(n.fieldData.namedTypeName);if(!r){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(t,[(0,Fe.subscriptionFilterNamedTypeErrorMessage)(n.fieldData.namedTypeName)]));continue}(0,Oe.isNodeDataInaccessible)(r)||r.kind===Pe.Kind.OBJECT_TYPE_DEFINITION&&this.validateSubscriptionFilterAndGenerateConfiguration(n.directive,r,t,n.fieldData.name,n.fieldData.renamedParentTypeName,n.directiveSubgraphName)}}buildFederationResult(){this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.invalidORScopesCoords.size>0&&this.errors.push((0,Fe.orScopesLimitError)(Rp.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let a of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Oe.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,a,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let t=[];this.pushParentDefinitionDataToDocumentDefinitions(t),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(t),this.validateQueryRootType();for(let a of this.inaccessibleRequiredInputValueErrorByCoords.values())this.errors.push(a);if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};if(!this.options.disableResolvabilityValidation&&this.internalSubgraphBySubgraphName.size>1){let a=this.internalGraph.validate();if(!a.success)return{errors:a.errors,success:!1,warnings:this.warnings}}let n={kind:Pe.Kind.DOCUMENT,definitions:this.routerDefinitions},r=(0,Pe.buildASTSchema)({kind:Pe.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let{configurationDataByTypeName:a,costs:o,directiveDefinitionByName:u,isVersionTwo:l,name:d,parentDefinitionDataByTypeName:p,schema:E,schemaNode:h}of this.internalSubgraphBySubgraphName.values())i.set(d,{configurationDataByTypeName:a,costs:o,directiveDefinitionByName:u,isVersionTwo:l,parentDefinitionDataByTypeName:p,schema:E,schemaNode:h});for(let a of this.authorizationDataByParentTypeName.values())(0,Hr.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,a);return M({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:n,federatedGraphSchema:(0,Pe.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:r,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,subgraphConfigBySubgraphName:i,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}getClientSchemaObjectBoolean(){return this.inaccessibleCoords.size<1&&this.tagNamesByCoords.size<1?{}:{shouldIncludeClientSchema:!0}}handleChildTagExclusions(t,n,r,i){let a=n.size;for(let[o,u]of r){let l=(0,Ne.getOrThrowError)(n,o,`${t.name}.childDataByChildName`);if((0,Oe.isNodeDataInaccessible)(l)){a-=1;continue}i.isDisjointFrom(u.tagNames)||((0,Ne.getValueOrDefault)(l.persistedDirectivesData.directivesByName,De.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleChildTagInclusions(t,n,r,i){let a=n.size;for(let[o,u]of n){if((0,Oe.isNodeDataInaccessible)(u)){a-=1;continue}let l=r.get(o);(!l||i.isDisjointFrom(l.tagNames))&&((0,Ne.getValueOrDefault)(u.persistedDirectivesData.directivesByName,De.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(ku.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,u]of this.parentTagDataByTypeName){let l=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,o,De.PARENT_DEFINITION_DATA);if(!(0,Oe.isNodeDataInaccessible)(l)){if(!t.tagNamesToExclude.isDisjointFrom(u.tagNames)){l.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(!(u.childTagDataByChildName.size<1))switch(l.kind){case Pe.Kind.SCALAR_TYPE_DEFINITION:case Pe.Kind.UNION_TYPE_DEFINITION:break;case Pe.Kind.ENUM_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.enumValueDataByName,u.childTagDataByChildName,t.tagNamesToExclude);break}case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.inputValueDataByName,u.childTagDataByChildName,t.tagNamesToExclude);break}default:{let d=l.fieldDataByName.size;for(let[p,E]of u.childTagDataByChildName){let h=(0,Ne.getOrThrowError)(l.fieldDataByName,p,`${o}.fieldDataByFieldName`);if((0,Oe.isNodeDataInaccessible)(h)){d-=1;continue}if(!t.tagNamesToExclude.isDisjointFrom(E.tagNames)){(0,Ne.getValueOrDefault)(h.persistedDirectivesData.directivesByName,De.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(h.federatedCoords),d-=1;continue}for(let[v,R]of E.tagNamesByArgumentName){let U=(0,Ne.getOrThrowError)(h.argumentDataByName,v,`${p}.argumentDataByArgumentName`);(0,Oe.isNodeDataInaccessible)(U)||t.tagNamesToExclude.isDisjointFrom(R)||((0,Ne.getValueOrDefault)(U.persistedDirectivesData.directivesByName,De.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(U.federatedCoords))}}d<1&&(l.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}}else if(t.tagNamesToInclude.size>0)for(let[o,u]of this.parentDefinitionDataByTypeName){if((0,Oe.isNodeDataInaccessible)(u))continue;let l=this.parentTagDataByTypeName.get(o);if(!l){u.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(t.tagNamesToInclude.isDisjointFrom(l.tagNames)){if(l.childTagDataByChildName.size<1){u.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}switch(u.kind){case Pe.Kind.SCALAR_TYPE_DEFINITION:case Pe.Kind.UNION_TYPE_DEFINITION:continue;case Pe.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.enumValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.inputValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let d=u.fieldDataByName.size;for(let[p,E]of u.fieldDataByName){if((0,Oe.isNodeDataInaccessible)(E)){d-=1;continue}let h=l.childTagDataByChildName.get(p);(!h||t.tagNamesToInclude.isDisjointFrom(h.tagNames))&&((0,Ne.getValueOrDefault)(E.persistedDirectivesData.directivesByName,De.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(E.federatedCoords),d-=1)}d<1&&(u.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration();for(let o of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Oe.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,o,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let n=[];if(this.pushParentDefinitionDataToDocumentDefinitions(n),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(n),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let r={kind:Pe.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,Pe.buildASTSchema)({kind:Pe.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),a=new Map;for(let{configurationDataByTypeName:o,costs:u,directiveDefinitionByName:l,isVersionTwo:d,name:p,parentDefinitionDataByTypeName:E,schema:h,schemaNode:v}of this.internalSubgraphBySubgraphName.values())a.set(p,{configurationDataByTypeName:o,costs:u,directiveDefinitionByName:l,isVersionTwo:d,parentDefinitionDataByTypeName:E,schema:h,schemaNode:v});for(let o of this.authorizationDataByParentTypeName.values())(0,Hr.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,o);return M({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:r,federatedGraphSchema:(0,Pe.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,subgraphConfigBySubgraphName:a,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};fh=new WeakSet,kV=function(){var r;let t=new Set,n=new Set;for(let i of this.referencedPersistedDirectiveNames){let a=Rp.DIRECTIVE_DEFINITION_BY_NAME.get(i);if(!a)continue;let o=(r=Gc.DEPENDENCIES_BY_DIRECTIVE_NAME.get(i))!=null?r:[];this.directiveDefinitionByName.set(i,a),Gc.CLIENT_PERSISTED_DIRECTIVE_NAMES.has(i)&&(this.clientDefinitions.push(a),(0,Ne.addIterableToSet)({source:o,target:t})),this.routerDefinitions.push(a),(0,Ne.addIterableToSet)({source:o,target:n})}this.clientDefinitions.push(...t),this.routerDefinitions.push(...n)};Qc.FederationFactory=dh;function gb({options:e,subgraphs:t}){if(t.length<1)return{errors:[Fe.minimumSubgraphRequirementError],success:!1,warnings:[]};let n=(0,epe.batchNormalize)({subgraphs:t,options:e});if(!n.success)return{errors:n.errors,success:!1,warnings:n.warnings};let r=new Map,i=new Map;for(let[u,l]of n.internalSubgraphBySubgraphName)for(let[d,p]of l.entityInterfaces){let E=r.get(d);if(!E){r.set(d,(0,Hr.newEntityInterfaceFederationData)(p,u));continue}(0,Hr.upsertEntityInterfaceFederationData)(E,p,u)}let a=new Array,o=new Map;for(let[u,l]of r){let d=l.concreteTypeNames.size;for(let[p,E]of l.subgraphDataByTypeName){let h=(0,Ne.getValueOrDefault)(o,p,()=>new Set);if((0,Ne.addIterableToSet)({source:E.concreteTypeNames,target:h}),!E.isInterfaceObject){E.resolvable&&E.concreteTypeNames.size!==d&&(0,Ne.getValueOrDefault)(i,u,()=>new Array).push({subgraphName:p,definedConcreteTypeNames:new Set(E.concreteTypeNames),requiredConcreteTypeNames:new Set(l.concreteTypeNames)});continue}(0,Ne.addIterableToSet)({source:l.concreteTypeNames,target:h});let{parentDefinitionDataByTypeName:v}=(0,Ne.getOrThrowError)(n.internalSubgraphBySubgraphName,p,"internalSubgraphBySubgraphName"),R=[];for(let U of l.concreteTypeNames)v.has(U)&&R.push(U);R.length>0&&a.push((0,Fe.invalidInterfaceObjectImplementationDefinitionsError)(u,p,R))}}for(let[u,l]of i){let d=new Array;for(let p of l){let E=o.get(p.subgraphName);if(!E){d.push(p);continue}let h=p.requiredConcreteTypeNames.intersection(E);p.requiredConcreteTypeNames.size!==h.size&&(p.definedConcreteTypeNames=h,d.push(p))}if(d.length>0){i.set(u,d);continue}i.delete(u)}return i.size>0&&a.push((0,Fe.undefinedEntityInterfaceImplementationsError)(i,r)),a.length>0?{errors:a,success:!1,warnings:n.warnings}:{federationFactory:new dh({authorizationDataByParentTypeName:n.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:n.concreteTypeNamesByAbstractTypeName,entityDataByTypeName:n.entityDataByTypeName,entityInterfaceFederationDataByTypeName:r,fieldCoordsByNamedTypeName:n.fieldCoordsByNamedTypeName,interfaceImplementationTypeNamesByInterfaceTypeName:n.interfaceImplementationTypeNamesByInterfaceTypeName,internalSubgraphBySubgraphName:n.internalSubgraphBySubgraphName,internalGraph:n.internalGraph,options:e,warnings:n.warnings}),success:!0,warnings:n.warnings}}function ipe({options:e,subgraphs:t}){let n=gb({options:e,subgraphs:t});return n.success?n.federationFactory.federateSubgraphsInternal():{errors:n.errors,success:!1,warnings:n.warnings}}function ape({options:e,subgraphs:t,tagOptionsByContractName:n}){let r=gb({options:e,subgraphs:t});if(!r.success)return{errors:r.errors,success:!1,warnings:r.warnings};r.federationFactory.federateSubgraphData();let i=[(0,BV.cloneDeep)(r.federationFactory)],a=r.federationFactory.buildFederationResult();if(!a.success)return{errors:a.errors,success:!1,warnings:a.warnings};let o=n.size-1,u=new Map,l=0;for(let[d,p]of n){l!==o&&i.push((0,BV.cloneDeep)(i[l]));let E=i[l].buildFederationContractResult(p);u.set(d,E),l++}return $(M({},a),{federationResultByContractName:u})}function spe({contractTagOptions:e,options:t,subgraphs:n}){let r=gb({options:t,subgraphs:n});return r.success?(r.federationFactory.federateSubgraphData(),r.federationFactory.buildFederationContractResult(e)):{errors:r.errors,success:!1,warnings:r.warnings}}});var ph=F(Ms=>{"use strict";m();T();N();Object.defineProperty(Ms,"__esModule",{value:!0});Ms.LATEST_ROUTER_COMPATIBILITY_VERSION=Ms.ROUTER_COMPATIBILITY_VERSIONS=Ms.ROUTER_COMPATIBILITY_VERSION_ONE=void 0;Ms.ROUTER_COMPATIBILITY_VERSION_ONE="1";Ms.ROUTER_COMPATIBILITY_VERSIONS=new Set([Ms.ROUTER_COMPATIBILITY_VERSION_ONE]);Ms.LATEST_ROUTER_COMPATIBILITY_VERSION="1"});var xV=F(Pp=>{"use strict";m();T();N();Object.defineProperty(Pp,"__esModule",{value:!0});Pp.federateSubgraphs=ope;Pp.federateSubgraphsWithContracts=upe;Pp.federateSubgraphsContract=cpe;var _b=MV(),vb=ph();function ope({options:e,subgraphs:t,version:n=vb.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,_b.federateSubgraphs)({options:e,subgraphs:t})}}function upe({options:e,subgraphs:t,tagOptionsByContractName:n,version:r=vb.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,_b.federateSubgraphsWithContracts)({options:e,subgraphs:t,tagOptionsByContractName:n})}}function cpe({contractTagOptions:e,options:t,subgraphs:n,version:r=vb.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,_b.federateSubgraphsContract)({contractTagOptions:e,options:t,subgraphs:n})}}});var VV=F(qV=>{"use strict";m();T();N();Object.defineProperty(qV,"__esModule",{value:!0})});var KV=F(jV=>{"use strict";m();T();N();Object.defineProperty(jV,"__esModule",{value:!0})});var $V=F(Fp=>{"use strict";m();T();N();Object.defineProperty(Fp,"__esModule",{value:!0});Fp.normalizeSubgraphFromString=lpe;Fp.normalizeSubgraph=dpe;Fp.batchNormalize=fpe;var Sb=Eb(),Ob=ph();function lpe({noLocation:e=!0,options:t,sdlString:n,version:r=Ob.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,Sb.normalizeSubgraphFromString)({noLocation:e,options:t,sdlString:n})}}function dpe({document:e,internalGraph:t,options:n,subgraphName:r,version:i=Ob.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(i){default:return(0,Sb.normalizeSubgraph)({document:e,internalGraph:t,options:n,subgraphName:r})}}function fpe({options:e,subgraphs:t,version:n=Ob.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,Sb.batchNormalize)({options:e,subgraphs:t})}}});var QV=F(GV=>{"use strict";m();T();N();Object.defineProperty(GV,"__esModule",{value:!0})});var JV=F(YV=>{"use strict";m();T();N();Object.defineProperty(YV,"__esModule",{value:!0})});var HV=F(zV=>{"use strict";m();T();N();Object.defineProperty(zV,"__esModule",{value:!0})});var XV=F(WV=>{"use strict";m();T();N();Object.defineProperty(WV,"__esModule",{value:!0})});var ej=F(ZV=>{"use strict";m();T();N();Object.defineProperty(ZV,"__esModule",{value:!0})});var nj=F(tj=>{"use strict";m();T();N();Object.defineProperty(tj,"__esModule",{value:!0})});var ij=F(rj=>{"use strict";m();T();N();Object.defineProperty(rj,"__esModule",{value:!0})});var sj=F(aj=>{"use strict";m();T();N();Object.defineProperty(aj,"__esModule",{value:!0})});var oj=F(mh=>{"use strict";m();T();N();Object.defineProperty(mh,"__esModule",{value:!0});mh.COMPOSITION_VERSION=void 0;mh.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var cj=F(uj=>{"use strict";m();T();N();Object.defineProperty(uj,"__esModule",{value:!0})});var dj=F(lj=>{"use strict";m();T();N();Object.defineProperty(lj,"__esModule",{value:!0})});var pj=F(fj=>{"use strict";m();T();N();Object.defineProperty(fj,"__esModule",{value:!0})});var Nj=F(mj=>{"use strict";m();T();N();Object.defineProperty(mj,"__esModule",{value:!0})});var Nh=F(We=>{"use strict";m();T();N();var ppe=We&&We.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),st=We&&We.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ppe(t,e,n)};Object.defineProperty(We,"__esModule",{value:!0});st(Br(),We);st(Jv(),We);st(Yi(),We);st(lx(),We);st(xV(),We);st(VV(),We);st(KV(),We);st($V(),We);st(QV(),We);st(JV(),We);st(pb(),We);st(nb(),We);st(ZE(),We);st(HV(),We);st(XV(),We);st(ob(),We);st(ph(),We);st(ej(),We);st(mb(),We);st(Du(),We);st(Qf(),We);st($l(),We);st(nj(),We);st(ij(),We);st(sj(),We);st(oj(),We);st(cj(),We);st(Xn(),We);st(dj(),We);st(kr(),We);st(YD(),We);st(bu(),We);st(Yf(),We);st(_E(),We);st(vE(),We);st(dd(),We);st(gT(),We);st(pj(),We);st(_T(),We);st(Ib(),We);st(jD(),We);st(gp(),We);st(Nj(),We);st(WD(),We);st(uh(),We);st(GD(),We);st(Ip(),We);st(_p(),We)});var lme={};Ym(lme,{buildRouterConfiguration:()=>cme,federateSubgraphs:()=>ume});m();T();N();var el=Ii(Nh());m();T();N();m();T();N();function Db(e){if(!e)return e;if(!URL.canParse(e))throw new Error("Invalid URL");let t=e.indexOf("?"),n=e.indexOf("#"),r=e;return t>0?r=r.slice(0,n>0?Math.min(t,n):t):n>0&&(r=r.slice(0,n)),r}m();T();N();m();T();N();var Tj={};m();T();N();function Ej(e){return e!=null}m();T();N();m();T();N();var Eh=Ii(Se(),1);m();T();N();m();T();N();function Mu(e){return Th(e,[])}function Th(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return mpe(e,t);default:return String(e)}}function hj(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; ${e.stack}`}function mpe(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?hj(e)+` -`+yj(e.errors,t):hj(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Npe(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Th(r,n)}else if(Array.isArray(e))return yj(e,n);return Tpe(e,n)}function Npe(e){return typeof e.toJSON=="function"}function Tpe(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>3?"["+Epe(e)+"]":"{ "+n.map(([i,a])=>i+": "+Th(a,t)).join(", ")+" }"}function yj(e,t){if(e.length===0)return"[]";if(t.length>3)return"[Array]";let n=e.length,r=[];for(let i=0;ihpe.includes(t))}function Id(e,t){t!=null&&t.originalError&&!(t.originalError instanceof Error)&&ype(t.originalError)&&(t.originalError=Id(t.originalError.message,t.originalError));let n=wp.GraphQLError,r=wp.versionInfo.major>=16?new n(e,t):new n(e,t==null?void 0:t.nodes,t==null?void 0:t.source,t==null?void 0:t.positions,t==null?void 0:t.path,t==null?void 0:t.originalError,t==null?void 0:t.extensions);return t!=null&&t.coordinate&&r.coordinate==null&&Object.defineProperties(r,{coordinate:{value:t.coordinate,enumerable:!0,configurable:!0}}),r}m();T();N();function Ij(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function gj(e){return typeof e=="object"&&e!==null}function _j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function vj(e,t,n={}){var o;let r={},a=((o=t.arguments)!=null?o:[]).reduce((u,l)=>$(M({},u),{[l.name.value]:l}),{});for(let{name:u,type:l,defaultValue:d}of e.args){let p=a[u];if(!p){if(d!==void 0)r[u]=d;else if((0,Ca.isNonNullType)(l))throw Id(`Argument "${u}" of required type "${Mu(l)}" was not provided.`,{nodes:[t]});continue}let E=p.value,h=E.kind===Ca.Kind.NULL;if(E.kind===Ca.Kind.VARIABLE){let R=E.name.value;if(n==null||!_j(n,R)){if(d!==void 0)r[u]=d;else if((0,Ca.isNonNullType)(l))throw Id(`Argument "${u}" of required type "${Mu(l)}" was provided the variable "$${R}" which was not provided a runtime value.`,{nodes:[E]});continue}h=n[R]==null}if(h&&(0,Ca.isNonNullType)(l))throw Id(`Argument "${u}" of non-null type "${Mu(l)}" must not be null.`,{nodes:[E]});let v=(0,Ca.valueFromAST)(E,l,n);if(v===void 0)throw Id(`Argument "${u}" has invalid value ${(0,Ca.print)(E)}.`,{nodes:[E]});r[u]=v}return r}m();T();N();function gd(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let a=e(r);return t.set(r,a),a}return i}}function Sj(e,t,n=["directives"]){var o;let r={};if(e.extensions){let u=e.extensions;for(let l of n)u=u==null?void 0:u[l];if(u!=null)for(let l in u){let d=u[l],p=l;if(Array.isArray(d))for(let E of d){let h=r[p];h||(h=[],r[p]=h),h.push(E)}else{let E=r[p];E||(E=[],r[p]=E),E.push(d)}}}let i=gd(u=>JSON.stringify(u)),a=[];e.astNode&&a.push(e.astNode),e.extensionASTNodes&&a.push(...e.extensionASTNodes);for(let u of a)if((o=u.directives)!=null&&o.length)for(let l of u.directives){let d=l.name.value,p=r[d];p||(p=[],r[d]=p);let E=t==null?void 0:t.getDirective(d),h={};if(E&&(h=vj(E,l)),l.arguments)for(let v of l.arguments){let R=v.name.value;if(h[R]==null){let U=E==null?void 0:E.args.find(q=>q.name===R);U&&(h[R]=(0,Eh.valueFromAST)(v.value,U.type))}h[R]==null&&(h[R]=(0,Eh.valueFromASTUntyped)(v.value))}if(a.length>0&&p.length>0){let v=i(h);if(p.some(R=>i(R)===v))continue}p.push(h)}return r}function bb(e,t=["directives"]){let n=Sj(e,void 0,t);return Object.entries(n).map(([r,i])=>i==null?void 0:i.map(a=>({name:r,args:a}))).flat(1/0).filter(Boolean)}m();T();N();var ze=Ii(Se(),1);m();T();N();var ds=Ii(Se(),1);function fs(e){if((0,ds.isNonNullType)(e)){let t=fs(e.ofType);if(t.kind===ds.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${Mu(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:ds.Kind.NON_NULL_TYPE,type:t}}else if((0,ds.isListType)(e))return{kind:ds.Kind.LIST_TYPE,type:fs(e.ofType)};return{kind:ds.Kind.NAMED_TYPE,name:{kind:ds.Kind.NAME,value:e.name}}}m();T();N();var pr=Ii(Se(),1);m();T();N();var Ua=Ii(Se(),1);function Yc(e){if(e===null)return{kind:Ua.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=Yc(n);r!=null&&t.push(r)}return{kind:Ua.Kind.LIST,values:t}}if(typeof e=="object"){if(e!=null&&e.toJSON)return Yc(e.toJSON());let t=[];for(let n in e){let r=e[n],i=Yc(r);i&&t.push({kind:Ua.Kind.OBJECT_FIELD,name:{kind:Ua.Kind.NAME,value:n},value:i})}return{kind:Ua.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:Ua.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:Ua.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return Ipe.test(t)?{kind:Ua.Kind.INT,value:t}:{kind:Ua.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:Ua.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var Ipe=/^-?(?:0|[1-9][0-9]*)$/;function xu(e,t){if((0,pr.isNonNullType)(t)){let n=xu(e,t.ofType);return(n==null?void 0:n.kind)===pr.Kind.NULL?null:n}if(e===null)return{kind:pr.Kind.NULL};if(e===void 0)return null;if((0,pr.isListType)(t)){let n=t.ofType;if(Ij(e)){let r=[];for(let i of e){let a=xu(i,n);a!=null&&r.push(a)}return{kind:pr.Kind.LIST,values:r}}return xu(e,n)}if((0,pr.isInputObjectType)(t)){if(!gj(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=xu(e[r.name],r.type);i&&n.push({kind:pr.Kind.OBJECT_FIELD,name:{kind:pr.Kind.NAME,value:r.name},value:i})}return{kind:pr.Kind.OBJECT,fields:n}}if((0,pr.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,pr.isEnumType)(t)?{kind:pr.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&gpe.test(n)?{kind:pr.Kind.INT,value:n}:Yc(n)}console.assert(!1,"Unexpected input type: "+Mu(t))}var gpe=/^-?(?:0|[1-9][0-9]*)$/;m();T();N();var Oj=Ii(Se(),1);function bi(e){var t;if((t=e.astNode)!=null&&t.description)return $(M({},e.astNode.description),{block:!0});if(e.description)return{kind:Oj.Kind.STRING,value:e.description,block:!0}}m();T();N();var D1e=gd(function(t){let n=_pe(t);return new Set([...n].map(r=>r.name))}),_pe=gd(function(t){let n=Ab(t);return new Set(n.values())}),Ab=gd(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let a=t.getSubscriptionType();return a&&n.set("subscription",a),n});function vpe(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=Spe(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let u of o)(0,ze.isSpecifiedDirective)(u)||a.push(Ope(u,e,n));for(let u in r){let l=r[u],d=(0,ze.isSpecifiedScalarType)(l),p=(0,ze.isIntrospectionType)(l);if(!(d||p))if((0,ze.isObjectType)(l))a.push(Dpe(l,e,n));else if((0,ze.isInterfaceType)(l))a.push(bpe(l,e,n));else if((0,ze.isUnionType)(l))a.push(Ape(l,e,n));else if((0,ze.isInputObjectType)(l))a.push(Rpe(l,e,n));else if((0,ze.isEnumType)(l))a.push(Ppe(l,e,n));else if((0,ze.isScalarType)(l))a.push(Fpe(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:ze.Kind.DOCUMENT,definitions:a}}function Dj(e,t={}){let n=vpe(e,t);return(0,ze.print)(n)}function Spe(e,t){let n=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),r=[];if(e.astNode!=null&&r.push(e.astNode),e.extensionASTNodes!=null)for(let d of e.extensionASTNodes)r.push(d);for(let d of r)if(d.operationTypes)for(let p of d.operationTypes)n.set(p.operation,p);let i=Ab(e);for(let[d,p]of n){let E=i.get(d);if(E!=null){let h=fs(E);p!=null?p.type=h:n.set(d,{kind:ze.Kind.OPERATION_TYPE_DEFINITION,operation:d,type:h})}}let a=[...n.values()].filter(Ej),o=ps(e,e,t);if(!a.length&&!o.length)return null;let u={kind:a.length?ze.Kind.SCHEMA_DEFINITION:ze.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=bi(e);return l&&(u.description=l),u}function Ope(e,t,n){var r,i;return{kind:ze.Kind.DIRECTIVE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(a=>bj(a,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:ze.Kind.NAME,value:a})))||[]}}function ps(e,t,n){let r=[],i=bb(e,n),a;i!=null&&(a=Rj(t,i));let o=null,u=null,l=null;if(a!=null&&(r=a.filter(d=>ze.specifiedDirectives.every(p=>p.name!==d.name.value)),o=a.find(d=>d.name.value==="deprecated"),u=a.find(d=>d.name.value==="specifiedBy"),l=a.find(d=>d.name.value==="oneOf")),e.deprecationReason!=null&&o==null&&(o=Cpe(e.deprecationReason)),e.specifiedByUrl!=null||e.specifiedByURL!=null&&u==null){let p={url:e.specifiedByUrl||e.specifiedByURL};u=Lp("specifiedBy",p)}return e.isOneOf&&l==null&&(l=Lp("oneOf")),o!=null&&r.push(o),u!=null&&r.push(u),l!=null&&r.push(l),r}function bj(e,t,n){var r;return{kind:ze.Kind.INPUT_VALUE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},type:fs(e.type),defaultValue:e.defaultValue!==void 0&&(r=xu(e.defaultValue,e.type))!=null?r:void 0,directives:ps(e,t,n)}}function Dpe(e,t,n){return{kind:ze.Kind.OBJECT_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>Aj(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>fs(r)),directives:ps(e,t,n)}}function bpe(e,t,n){let r={kind:ze.Kind.INTERFACE_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>Aj(i,t,n)),directives:ps(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>fs(i))),r}function Ape(e,t,n){return{kind:ze.Kind.UNION_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},directives:ps(e,t,n),types:e.getTypes().map(r=>fs(r))}}function Rpe(e,t,n){return{kind:ze.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>wpe(r,t,n)),directives:ps(e,t,n)}}function Ppe(e,t,n){return{kind:ze.Kind.ENUM_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>Lpe(r,t,n)),directives:ps(e,t,n)}}function Fpe(e,t,n){let r=bb(e,n),i=Rj(t,r),a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(o=>o.name.value==="specifiedBy")){let o={url:a};i.push(Lp("specifiedBy",o))}return{kind:ze.Kind.SCALAR_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},directives:i}}function Aj(e,t,n){return{kind:ze.Kind.FIELD_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},arguments:e.args.map(r=>bj(r,t,n)),type:fs(e.type),directives:ps(e,t,n)}}function wpe(e,t,n){var r;return{kind:ze.Kind.INPUT_VALUE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},type:fs(e.type),directives:ps(e,t,n),defaultValue:(r=xu(e.defaultValue,e.type))!=null?r:void 0}}function Lpe(e,t,n){return{kind:ze.Kind.ENUM_VALUE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},directives:ps(e,t,n)}}function Cpe(e){return Lp("deprecated",{reason:e},ze.GraphQLDeprecatedDirective)}function Lp(e,t,n){let r=[];for(let i in t){let a=t[i],o;if(n!=null){let u=n.args.find(l=>l.name===i);u&&(o=xu(a,u.type))}o==null&&(o=Yc(a)),o!=null&&r.push({kind:ze.Kind.ARGUMENT,name:{kind:ze.Kind.NAME,value:i},value:o})}return{kind:ze.Kind.DIRECTIVE,name:{kind:ze.Kind.NAME,value:e},arguments:r}}function Rj(e,t){let n=[];for(let{name:r,args:i}of t){let a=e==null?void 0:e.getDirective(r);n.push(Lp(r,i,a))}return n}var Pd=Ii(Nh(),1);m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();function pn(e,t){if(!e)throw new Error(t)}var Upe=34028234663852886e22,Bpe=-34028234663852886e22,kpe=4294967295,Mpe=2147483647,xpe=-2147483648;function _d(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>Mpe||ekpe||e<0)throw new Error("invalid uint 32: "+e)}function hh(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>Upe||e({no:i.no,name:i.name,localName:e[i.no]})),r)}function Pb(e,t,n){let r=Object.create(null),i=Object.create(null),a=[];for(let o of t){let u=Lj(o);a.push(u),r[o.name]=u,i[o.no]=u}return{typeName:e,values:a,findName(o){return r[o]},findNumber(o){return i[o]}}}function wj(e,t,n){let r={};for(let i of t){let a=Lj(i);r[a.localName]=a.no,r[a.no]=a.localName}return Rb(r,e,t,n),r}function Lj(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}m();T();N();m();T();N();var Re=class{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,n){let r=this.getType(),i=r.runtime.bin,a=i.makeReadOptions(n);return i.readMessage(this,a.readerFactory(t),t.byteLength,a),this}fromJson(t,n){let r=this.getType(),i=r.runtime.json,a=i.makeReadOptions(n);return i.readMessage(r,t,a,this),this}fromJsonString(t,n){let r;try{r=JSON.parse(t)}catch(i){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${i instanceof Error?i.message:String(i)}`)}return this.fromJson(r,n)}toBinary(t){let n=this.getType(),r=n.runtime.bin,i=r.makeWriteOptions(t),a=i.writerFactory();return r.writeMessage(this,a,i),a.finish()}toJson(t){let n=this.getType(),r=n.runtime.json,i=r.makeWriteOptions(t);return r.writeMessage(this,i)}toJsonString(t){var n;let r=this.toJson(t);return JSON.stringify(r,null,(n=t==null?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}};function Cj(e,t,n,r){var i;let a=(i=r==null?void 0:r.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),o={[a]:function(u){e.util.initFields(this),e.util.initPartial(u,this)}}[a];return Object.setPrototypeOf(o.prototype,new Re),Object.assign(o,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(u,l){return new o().fromBinary(u,l)},fromJson(u,l){return new o().fromJson(u,l)},fromJsonString(u,l){return new o().fromJsonString(u,l)},equals(u,l){return e.util.equals(o,u,l)}}),o}m();T();N();m();T();N();m();T();N();m();T();N();function Bj(){let e=0,t=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>>a,u=!(!(o>>>7)&&t==0),l=(u?o|128:o)&255;if(n.push(l),!u)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),!!i){for(let a=3;a<31;a=a+7){let o=t>>>a,u=!!(o>>>7),l=(u?o|128:o)&255;if(n.push(l),!u)return}n.push(t>>>31&1)}}var yh=4294967296;function Fb(e){let t=e[0]==="-";t&&(e=e.slice(1));let n=1e6,r=0,i=0;function a(o,u){let l=Number(e.slice(o,u));i*=n,r=r*n+l,r>=yh&&(i=i+(r/yh|0),r=r%yh)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?Mj(r,i):Lb(r,i)}function kj(e,t){let n=Lb(e,t),r=n.hi&2147483648;r&&(n=Mj(n.lo,n.hi));let i=wb(n.lo,n.hi);return r?"-"+i:i}function wb(e,t){if({lo:e,hi:t}=qpe(e,t),t<=2097151)return String(yh*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,a=n+r*6777216+i*6710656,o=r+i*8147497,u=i*2,l=1e7;return a>=l&&(o+=Math.floor(a/l),a%=l),o>=l&&(u+=Math.floor(o/l),o%=l),u.toString()+Uj(o)+Uj(a)}function qpe(e,t){return{lo:e>>>0,hi:t>>>0}}function Lb(e,t){return{lo:e|0,hi:t|0}}function Mj(e,t){return t=~t,e?e=~e+1:t+=1,Lb(e,t)}var Uj=e=>{let t=String(e);return"0000000".slice(t.length)+t};function Cb(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function xj(){let e=this.buf[this.pos++],t=e&127;if(!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;e&128&&n<10;n++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function Vpe(){let e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof O!="object"||typeof O.env!="object"||O.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),a=BigInt("9223372036854775807"),o=BigInt("0"),u=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){let d=typeof l=="bigint"?l:BigInt(l);if(d>a||du||dpn(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>pn(/^[0-9]+$/.test(i),`uint64 invalid: ${i}`);return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),n(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),r(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),n(i),Fb(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),Fb(i)},dec(i,a){return kj(i,a)},uDec(i,a){return wb(i,a)}}}var Jn=Vpe();m();T();N();var pe;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(pe||(pe={}));var Ba;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(Ba||(Ba={}));function xs(e,t,n){if(t===n)return!0;if(e==pe.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;r>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(Cp(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return _d(t),Cb(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.textEncoder.encode(t);return this.uint32(n.byteLength),this.raw(n)}float(t){hh(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){Cp(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){_d(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return _d(t),t=(t<<1^t>>31)>>>0,Cb(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Jn.enc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Jn.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=Jn.enc(t);return Ih(n.lo,n.hi,this.buf),this}sint64(t){let n=Jn.enc(t),r=n.hi>>31,i=n.lo<<1^r,a=(n.hi<<1|n.lo>>>31)^r;return Ih(i,a,this.buf),this}uint64(t){let n=Jn.uEnc(t);return Ih(n.lo,n.hi,this.buf),this}},vh=class{constructor(t,n){this.varint64=Bj,this.uint32=xj,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=n!=null?n:new TextDecoder}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t){let n=this.pos;switch(t){case xn.Varint:for(;this.buf[this.pos++]&128;);break;case xn.Bit64:this.pos+=4;case xn.Bit32:this.pos+=4;break;case xn.LengthDelimited:let r=this.uint32();this.pos+=r;break;case xn.StartGroup:let i;for(;(i=this.tag()[1])!==xn.EndGroup;)this.skip(i);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return Jn.dec(...this.varint64())}uint64(){return Jn.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,Jn.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Jn.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Jn.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.textDecoder.decode(this.bytes())}};function qj(e,t,n,r){let i;return{typeName:t,extendee:n,get field(){if(!i){let a=typeof r=="function"?r():r;a.name=t.split(".").pop(),a.jsonName=`[${t}]`,i=e.util.newFieldList([a]).list()[0]}return i},runtime:e}}function Sh(e){let t=e.field.localName,n=Object.create(null);return n[t]=jpe(e),[n,()=>n[t]]}function jpe(e){let t=e.field;if(t.repeated)return[];if(t.default!==void 0)return t.default;switch(t.kind){case"enum":return t.T.values[0].no;case"scalar":return ka(t.T,t.L);case"message":let n=t.T,r=new n;return n.fieldWrapper?n.fieldWrapper.unwrapField(r):r;case"map":throw"map fields are not allowed to be extensions"}}function Vj(e,t){if(!t.repeated&&(t.kind=="enum"||t.kind=="scalar")){for(let n=e.length-1;n>=0;--n)if(e[n].no==t.no)return[e[n]];return[]}return e.filter(n=>n.no===t.no)}m();T();N();m();T();N();var qs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Oh=[];for(let e=0;e>4,o=a,i=2;break;case 2:n[r++]=(o&15)<<4|(a&60)>>2,o=a,i=3;break;case 3:n[r++]=(o&3)<<6|a,i=0;break}}if(i==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,i=0;for(let a=0;a>2],i=(r&3)<<4,n=1;break;case 1:t+=qs[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=qs[i|r>>6],t+=qs[r&63],n=0;break}return n&&(t+=qs[i],t+="=",n==1&&(t+="=")),t}};m();T();N();function jj(e,t,n){$j(t,e);let r=t.runtime.bin.makeReadOptions(n),i=Vj(e.getType().runtime.bin.listUnknownFields(e),t.field),[a,o]=Sh(t);for(let u of i)t.runtime.bin.readField(a,r.readerFactory(u.data),t.field,u.wireType,r);return o()}function Kj(e,t,n,r){$j(t,e);let i=t.runtime.bin.makeReadOptions(r),a=t.runtime.bin.makeWriteOptions(r);if(Bb(e,t)){let d=e.getType().runtime.bin.listUnknownFields(e).filter(p=>p.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let p of d)e.getType().runtime.bin.onUnknownField(e,p.no,p.wireType,p.data)}let o=a.writerFactory(),u=t.field;!u.opt&&!u.repeated&&(u.kind=="enum"||u.kind=="scalar")&&(u=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(u,n,o,a);let l=i.readerFactory(o.finish());for(;l.posr.no==t.field.no)}function $j(e,t){pn(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}m();T();N();function Dh(e,t){let n=e.localName;if(e.repeated)return t[n].length>0;if(e.oneof)return t[e.oneof.localName].case===n;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[n]!==void 0:e.kind=="enum"?t[n]!==e.T.values[0].no:!gh(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function kb(e,t){let n=e.localName,r=!e.opt&&!e.req;if(e.repeated)t[n]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[n]={};break;case"enum":t[n]=r?e.T.values[0].no:void 0;break;case"scalar":t[n]=r?ka(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}m();T();N();m();T();N();function Ma(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(Re.prototype).every(r=>r in e&&typeof e[r]=="function"))return!1;let n=e.getType();return n===null||typeof n!="function"||!("typeName"in n)||typeof n.typeName!="string"?!1:t===void 0?!0:n.typeName==t.typeName}function bh(e,t){return Ma(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var oje={"google.protobuf.DoubleValue":pe.DOUBLE,"google.protobuf.FloatValue":pe.FLOAT,"google.protobuf.Int64Value":pe.INT64,"google.protobuf.UInt64Value":pe.UINT64,"google.protobuf.Int32Value":pe.INT32,"google.protobuf.UInt32Value":pe.UINT32,"google.protobuf.BoolValue":pe.BOOL,"google.protobuf.StringValue":pe.STRING,"google.protobuf.BytesValue":pe.BYTES};var Gj={ignoreUnknownFields:!1},Qj={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Kpe(e){return e?Object.assign(Object.assign({},Gj),e):Gj}function $pe(e){return e?Object.assign(Object.assign({},Qj),e):Qj}var Ph=Symbol(),Ah=Symbol();function zj(){return{makeReadOptions:Kpe,makeWriteOptions:$pe,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${ms(t)}`);r=r!=null?r:new e;let i=new Map,a=n.typeRegistry;for(let[o,u]of Object.entries(t)){let l=e.fields.findJsonName(o);if(l){if(l.oneof){if(u===null&&l.kind=="scalar")continue;let d=i.get(l.oneof);if(d!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${d}", "${o}"`);i.set(l.oneof,o)}Yj(r,u,l,n,e)}else{let d=!1;if(a!=null&&a.findExtension&&o.startsWith("[")&&o.endsWith("]")){let p=a.findExtension(o.substring(1,o.length-1));if(p&&p.extendee.typeName==e.typeName){d=!0;let[E,h]=Sh(p);Yj(E,u,p.field,n,p),Kj(r,p,h(),n)}}if(!d&&!n.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`)}}return r},writeMessage(e,t){let n=e.getType(),r={},i;try{for(i of n.fields.byNumber()){if(!Dh(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!Qpe(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],u=Jj(i,o,t);u!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=u)}let a=t.typeRegistry;if(a!=null&&a.findExtensionFor)for(let o of n.runtime.bin.listUnknownFields(e)){let u=a.findExtensionFor(n.typeName,o.no);if(u&&Bb(e,u)){let l=jj(e,u,t),d=Jj(u.field,l,t);d!==void 0&&(r[u.field.jsonName]=d)}}}catch(a){let o=i?`cannot encode field ${n.typeName}.${i.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,u=a instanceof Error?a.message:String(a);throw new Error(o+(u.length>0?`: ${u}`:""))}return r},readScalar(e,t,n){return Up(e,t,n!=null?n:Ba.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||gh(e,t)))return Rh(e,t)},debug:ms}}function ms(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function Yj(e,t,n,r,i){let a=n.localName;if(n.repeated){if(pn(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ms(t)}`);let o=e[a];for(let u of t){if(u===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ms(u)}`);switch(n.kind){case"message":o.push(n.T.fromJson(u,r));break;case"enum":let l=Mb(n.T,u,r.ignoreUnknownFields,!0);l!==Ah&&o.push(l);break;case"scalar":try{o.push(Up(n.T,u,n.L,!0))}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${ms(u)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}}else if(n.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ms(t)}`);let o=e[a];for(let[u,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);let d;try{d=Gpe(n.K,u)}catch(p){let E=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${ms(t)}`;throw p instanceof Error&&p.message.length>0&&(E+=`: ${p.message}`),new Error(E)}switch(n.V.kind){case"message":o[d]=n.V.T.fromJson(l,r);break;case"enum":let p=Mb(n.V.T,l,r.ignoreUnknownFields,!0);p!==Ah&&(o[d]=p);break;case"scalar":try{o[d]=Up(n.V.T,l,Ba.BIGINT,!0)}catch(E){let h=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${ms(t)}`;throw E instanceof Error&&E.message.length>0&&(h+=`: ${E.message}`),new Error(h)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:a},a="value"),n.kind){case"message":let o=n.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let u=e[a];Ma(u)?u.fromJson(t,r):(e[a]=u=o.fromJson(t,r),o.fieldWrapper&&!n.oneof&&(e[a]=o.fieldWrapper.unwrapField(u)));break;case"enum":let l=Mb(n.T,t,r.ignoreUnknownFields,!1);switch(l){case Ph:kb(n,e);break;case Ah:break;default:e[a]=l;break}break;case"scalar":try{let d=Up(n.T,t,n.L,!1);switch(d){case Ph:kb(n,e);break;default:e[a]=d;break}}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${ms(t)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}function Gpe(e,t){if(e===pe.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return Up(e,t,Ba.BIGINT,!0).toString()}function Up(e,t,n,r){if(t===null)return r?ka(e,n):Ph;switch(e){case pe.DOUBLE:case pe.FLOAT:if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;let i=Number(t);if(Number.isNaN(i)||!Number.isFinite(i))break;return e==pe.FLOAT&&hh(i),i;case pe.INT32:case pe.FIXED32:case pe.SFIXED32:case pe.SINT32:case pe.UINT32:let a;if(typeof t=="number"?a=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(a=Number(t)),a===void 0)break;return e==pe.UINT32||e==pe.FIXED32?Cp(a):_d(a),a;case pe.INT64:case pe.SFIXED64:case pe.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=Jn.parse(t);return n?o.toString():o;case pe.FIXED64:case pe.UINT64:if(typeof t!="number"&&typeof t!="string")break;let u=Jn.uParse(t);return n?u.toString():u;case pe.BOOL:if(typeof t!="boolean")break;return t;case pe.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case pe.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return Ub.dec(t)}throw new Error}function Mb(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:Ph;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":let i=e.findName(t);if(i!==void 0)return i.no;if(n)return Ah;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${ms(t)}`)}function Qpe(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function Jj(e,t,n){if(e.kind=="map"){pn(typeof t=="object"&&t!=null);let r={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[o,u]of i)r[o.toString()]=Rh(e.V.T,u);break;case"message":for(let[o,u]of i)r[o.toString()]=u.toJson(n);break;case"enum":let a=e.V.T;for(let[o,u]of i)r[o.toString()]=xb(a,u,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){pn(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return Rh(e.T,t);case"enum":return xb(e.T,t,n.enumAsInteger);case"message":return bh(e.T,t).toJson(n)}}function xb(e,t,n){var r;if(pn(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(n)return t;let i=e.findNumber(t);return(r=i==null?void 0:i.name)!==null&&r!==void 0?r:t}function Rh(e,t){switch(e){case pe.INT32:case pe.SFIXED32:case pe.SINT32:case pe.FIXED32:case pe.UINT32:return pn(typeof t=="number"),t;case pe.FLOAT:case pe.DOUBLE:return pn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case pe.STRING:return pn(typeof t=="string"),t;case pe.BOOL:return pn(typeof t=="boolean"),t;case pe.UINT64:case pe.FIXED64:case pe.INT64:case pe.SFIXED64:case pe.SINT64:return pn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case pe.BYTES:return pn(t instanceof Uint8Array),Ub.enc(t)}}m();T();N();var vd=Symbol("@bufbuild/protobuf/unknown-fields"),Hj={readUnknownFields:!0,readerFactory:e=>new vh(e)},Wj={writeUnknownFields:!0,writerFactory:()=>new _h};function Ype(e){return e?Object.assign(Object.assign({},Hj),e):Hj}function Jpe(e){return e?Object.assign(Object.assign({},Wj),e):Wj}function tK(){return{makeReadOptions:Ype,makeWriteOptions:Jpe,listUnknownFields(e){var t;return(t=e[vd])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[vd]},writeUnknownFields(e,t){let r=e[vd];if(r)for(let i of r)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,n,r){let i=e;Array.isArray(i[vd])||(i[vd]=[]),i[vd].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){let a=e.getType(),o=i?t.len:t.pos+n,u,l;for(;t.pos0&&(l=Hpe),a){let h=e[o];if(r==xn.LengthDelimited&&u!=pe.STRING&&u!=pe.BYTES){let R=t.uint32()+t.pos;for(;t.posMa(h,E)?h:new E(h));else{let h=o[i];E.fieldWrapper?E.typeName==="google.protobuf.BytesValue"?a[i]=kp(h):a[i]=h:a[i]=Ma(h,E)?h:new E(h)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let i=t[r.localName],a=n[r.localName];if(r.repeated){if(i.length!==a.length)return!1;switch(r.kind){case"message":return i.every((o,u)=>r.T.equals(o,a[u]));case"scalar":return i.every((o,u)=>xs(r.T,o,a[u]));case"enum":return i.every((o,u)=>xs(pe.INT32,o,a[u]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,a);case"enum":return xs(pe.INT32,i,a);case"scalar":return xs(r.T,i,a);case"oneof":if(i.case!==a.case)return!1;let o=r.findField(i.case);if(o===void 0)return!0;switch(o.kind){case"message":return o.T.equals(i.value,a.value);case"enum":return xs(pe.INT32,i.value,a.value);case"scalar":return xs(o.T,i.value,a.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let u=Object.keys(i).concat(Object.keys(a));switch(r.V.kind){case"message":let l=r.V.T;return u.every(p=>l.equals(i[p],a[p]));case"enum":return u.every(p=>xs(pe.INT32,i[p],a[p]));case"scalar":let d=r.V.T;return u.every(p=>xs(d,i[p],a[p]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let i of t.fields.byMember()){let a=e[i.localName],o;if(i.repeated)o=a.map(Lh);else if(i.kind=="map"){o=r[i.localName];for(let[u,l]of Object.entries(a))o[u]=Lh(l)}else i.kind=="oneof"?o=i.findField(a.case)?{case:a.case,value:Lh(a.value)}:{case:void 0}:o=Lh(a);r[i.localName]=o}for(let i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(r,i.no,i.wireType,i.data);return n}}}function Lh(e){if(e===void 0)return e;if(Ma(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function kp(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function iK(e,t,n){return{syntax:e,json:zj(),bin:tK(),util:Object.assign(Object.assign({},rK()),{newFieldList:t,initFields:n}),makeMessageType(r,i,a){return Cj(this,r,i,a)},makeEnum:wj,makeEnumType:Pb,getEnumType:Fj,makeExtension(r,i,a){return qj(this,r,i,a)}}}m();T();N();var Ch=class{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){let n={};for(let r of this.list())n[r.jsonName]=n[r.name]=r;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){let n={};for(let r of this.list())n[r.no]=r;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];let t=this.members,n;for(let r of this.list())r.oneof?r.oneof!==n&&(n=r.oneof,t.push(n)):t.push(r)}return this.members}};m();T();N();m();T();N();m();T();N();function qb(e,t){let n=oK(e);return t?n:nme(tme(n))}function aK(e){return qb(e,!1)}var sK=oK;function oK(e){let t=!1,n=[];for(let r=0;r`${e}$`,tme=e=>eme.has(e)?uK(e):e,nme=e=>Zpe.has(e)?uK(e):e;var Uh=class{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=aK(t)}addField(t){pn(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;nnew Ch(e,t=>cK(t,!0)),e=>{for(let t of e.getType().fields.byMember()){if(t.opt)continue;let n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=ka(t.T,t.L);break;case"message":break}}});var Sd;(function(e){e[e.OK=0]="OK",e[e.ERR=1]="ERR",e[e.ERR_NOT_FOUND=2]="ERR_NOT_FOUND",e[e.ERR_ALREADY_EXISTS=3]="ERR_ALREADY_EXISTS",e[e.ERR_INVALID_SUBGRAPH_SCHEMA=4]="ERR_INVALID_SUBGRAPH_SCHEMA",e[e.ERR_SUBGRAPH_COMPOSITION_FAILED=5]="ERR_SUBGRAPH_COMPOSITION_FAILED",e[e.ERR_SUBGRAPH_CHECK_FAILED=6]="ERR_SUBGRAPH_CHECK_FAILED",e[e.ERR_INVALID_LABELS=7]="ERR_INVALID_LABELS",e[e.ERR_ANALYTICS_DISABLED=8]="ERR_ANALYTICS_DISABLED",e[e.ERROR_NOT_AUTHENTICATED=9]="ERROR_NOT_AUTHENTICATED",e[e.ERR_OPENAI_DISABLED=10]="ERR_OPENAI_DISABLED",e[e.ERR_FREE_TRIAL_EXPIRED=11]="ERR_FREE_TRIAL_EXPIRED",e[e.ERROR_NOT_AUTHORIZED=12]="ERROR_NOT_AUTHORIZED",e[e.ERR_LIMIT_REACHED=13]="ERR_LIMIT_REACHED",e[e.ERR_DEPLOYMENT_FAILED=14]="ERR_DEPLOYMENT_FAILED",e[e.ERR_INVALID_NAME=15]="ERR_INVALID_NAME",e[e.ERR_UPGRADE_PLAN=16]="ERR_UPGRADE_PLAN",e[e.ERR_BAD_REQUEST=17]="ERR_BAD_REQUEST",e[e.ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL=18]="ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"})(Sd||(Sd={}));C.util.setEnumType(Sd,"wg.cosmo.common.EnumStatusCode",[{no:0,name:"OK"},{no:1,name:"ERR"},{no:2,name:"ERR_NOT_FOUND"},{no:3,name:"ERR_ALREADY_EXISTS"},{no:4,name:"ERR_INVALID_SUBGRAPH_SCHEMA"},{no:5,name:"ERR_SUBGRAPH_COMPOSITION_FAILED"},{no:6,name:"ERR_SUBGRAPH_CHECK_FAILED"},{no:7,name:"ERR_INVALID_LABELS"},{no:8,name:"ERR_ANALYTICS_DISABLED"},{no:9,name:"ERROR_NOT_AUTHENTICATED"},{no:10,name:"ERR_OPENAI_DISABLED"},{no:11,name:"ERR_FREE_TRIAL_EXPIRED"},{no:12,name:"ERROR_NOT_AUTHORIZED"},{no:13,name:"ERR_LIMIT_REACHED"},{no:14,name:"ERR_DEPLOYMENT_FAILED"},{no:15,name:"ERR_INVALID_NAME"},{no:16,name:"ERR_UPGRADE_PLAN"},{no:17,name:"ERR_BAD_REQUEST"},{no:18,name:"ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"}]);var Vs;(function(e){e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS=0]="GRAPHQL_SUBSCRIPTION_PROTOCOL_WS",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE=1]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST=2]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"})(Vs||(Vs={}));C.util.setEnumType(Vs,"wg.cosmo.common.GraphQLSubscriptionProtocol",[{no:0,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_WS"},{no:1,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE"},{no:2,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"}]);var js;(function(e){e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO=0]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS=1]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS=2]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"})(js||(js={}));C.util.setEnumType(js,"wg.cosmo.common.GraphQLWebsocketSubprotocol",[{no:0,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO"},{no:1,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS"},{no:2,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"}]);var yK=Ii(Se(),1);m();T();N();var Vb;(function(e){e[e.RENDER_ARGUMENT_DEFAULT=0]="RENDER_ARGUMENT_DEFAULT",e[e.RENDER_ARGUMENT_AS_GRAPHQL_VALUE=1]="RENDER_ARGUMENT_AS_GRAPHQL_VALUE",e[e.RENDER_ARGUMENT_AS_ARRAY_CSV=2]="RENDER_ARGUMENT_AS_ARRAY_CSV"})(Vb||(Vb={}));C.util.setEnumType(Vb,"wg.cosmo.node.v1.ArgumentRenderConfiguration",[{no:0,name:"RENDER_ARGUMENT_DEFAULT"},{no:1,name:"RENDER_ARGUMENT_AS_GRAPHQL_VALUE"},{no:2,name:"RENDER_ARGUMENT_AS_ARRAY_CSV"}]);var zc;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(zc||(zc={}));C.util.setEnumType(zc,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var qu;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(qu||(qu={}));C.util.setEnumType(qu,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var Mp;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.RESOLVE=1]="RESOLVE",e[e.REQUIRES=2]="REQUIRES"})(Mp||(Mp={}));C.util.setEnumType(Mp,"wg.cosmo.node.v1.LookupType",[{no:0,name:"LOOKUP_TYPE_UNSPECIFIED"},{no:1,name:"LOOKUP_TYPE_RESOLVE"},{no:2,name:"LOOKUP_TYPE_REQUIRES"}]);var xp;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.QUERY=1]="QUERY",e[e.MUTATION=2]="MUTATION",e[e.SUBSCRIPTION=3]="SUBSCRIPTION"})(xp||(xp={}));C.util.setEnumType(xp,"wg.cosmo.node.v1.OperationType",[{no:0,name:"OPERATION_TYPE_UNSPECIFIED"},{no:1,name:"OPERATION_TYPE_QUERY"},{no:2,name:"OPERATION_TYPE_MUTATION"},{no:3,name:"OPERATION_TYPE_SUBSCRIPTION"}]);var nu;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(nu||(nu={}));C.util.setEnumType(nu,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var Vu;(function(e){e[e.STATIC_CONFIGURATION_VARIABLE=0]="STATIC_CONFIGURATION_VARIABLE",e[e.ENV_CONFIGURATION_VARIABLE=1]="ENV_CONFIGURATION_VARIABLE",e[e.PLACEHOLDER_CONFIGURATION_VARIABLE=2]="PLACEHOLDER_CONFIGURATION_VARIABLE"})(Vu||(Vu={}));C.util.setEnumType(Vu,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var Hc;(function(e){e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.PUT=2]="PUT",e[e.DELETE=3]="DELETE",e[e.OPTIONS=4]="OPTIONS"})(Hc||(Hc={}));C.util.setEnumType(Hc,"wg.cosmo.node.v1.HTTPMethod",[{no:0,name:"GET"},{no:1,name:"POST"},{no:2,name:"PUT"},{no:3,name:"DELETE"},{no:4,name:"OPTIONS"}]);var Ks=class Ks extends Re{constructor(n){super();g(this,"id","");g(this,"name","");g(this,"routingUrl","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Ks().fromBinary(n,r)}static fromJson(n,r){return new Ks().fromJson(n,r)}static fromJsonString(n,r){return new Ks().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ks,n,r)}};g(Ks,"runtime",C),g(Ks,"typeName","wg.cosmo.node.v1.Subgraph"),g(Ks,"fields",C.util.newFieldList(()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"routing_url",kind:"scalar",T:9}]));var Bh=Ks,$s=class $s extends Re{constructor(n){super();g(this,"configByFeatureFlagName",{});C.util.initPartial(n,this)}static fromBinary(n,r){return new $s().fromBinary(n,r)}static fromJson(n,r){return new $s().fromJson(n,r)}static fromJsonString(n,r){return new $s().fromJsonString(n,r)}static equals(n,r){return C.util.equals($s,n,r)}};g($s,"runtime",C),g($s,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),g($s,"fields",C.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:Kb}}]));var jb=$s,Gs=class Gs extends Re{constructor(n){super();g(this,"engineConfig");g(this,"version","");g(this,"subgraphs",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Gs().fromBinary(n,r)}static fromJson(n,r){return new Gs().fromJson(n,r)}static fromJsonString(n,r){return new Gs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Gs,n,r)}};g(Gs,"runtime",C),g(Gs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),g(Gs,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Od},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Bh,repeated:!0}]));var Kb=Gs,Qs=class Qs extends Re{constructor(n){super();g(this,"engineConfig");g(this,"version","");g(this,"subgraphs",[]);g(this,"featureFlagConfigs");g(this,"compatibilityVersion","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Qs().fromBinary(n,r)}static fromJson(n,r){return new Qs().fromJson(n,r)}static fromJsonString(n,r){return new Qs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Qs,n,r)}};g(Qs,"runtime",C),g(Qs,"typeName","wg.cosmo.node.v1.RouterConfig"),g(Qs,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Od},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Bh,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:jb,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var qp=Qs,Ys=class Ys extends Re{constructor(n){super();g(this,"code",Sd.OK);g(this,"details");C.util.initPartial(n,this)}static fromBinary(n,r){return new Ys().fromBinary(n,r)}static fromJson(n,r){return new Ys().fromJson(n,r)}static fromJsonString(n,r){return new Ys().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ys,n,r)}};g(Ys,"runtime",C),g(Ys,"typeName","wg.cosmo.node.v1.Response"),g(Ys,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:C.getEnumType(Sd)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var $b=Ys,Js=class Js extends Re{constructor(n){super();g(this,"code",0);g(this,"message","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Js().fromBinary(n,r)}static fromJson(n,r){return new Js().fromJson(n,r)}static fromJsonString(n,r){return new Js().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Js,n,r)}};g(Js,"runtime",C),g(Js,"typeName","wg.cosmo.node.v1.ResponseStatus"),g(Js,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var lK=Js,zs=class zs extends Re{constructor(n){super();g(this,"accountLimits");g(this,"graphPublicKey","");C.util.initPartial(n,this)}static fromBinary(n,r){return new zs().fromBinary(n,r)}static fromJson(n,r){return new zs().fromJson(n,r)}static fromJsonString(n,r){return new zs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(zs,n,r)}};g(zs,"runtime",C),g(zs,"typeName","wg.cosmo.node.v1.RegistrationInfo"),g(zs,"fields",C.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:Qb},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var Gb=zs,Hs=class Hs extends Re{constructor(n){super();g(this,"traceSamplingRate",0);C.util.initPartial(n,this)}static fromBinary(n,r){return new Hs().fromBinary(n,r)}static fromJson(n,r){return new Hs().fromJson(n,r)}static fromJsonString(n,r){return new Hs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Hs,n,r)}};g(Hs,"runtime",C),g(Hs,"typeName","wg.cosmo.node.v1.AccountLimits"),g(Hs,"fields",C.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var Qb=Hs,Ws=class Ws extends Re{constructor(t){super(),C.util.initPartial(t,this)}static fromBinary(t,n){return new Ws().fromBinary(t,n)}static fromJson(t,n){return new Ws().fromJson(t,n)}static fromJsonString(t,n){return new Ws().fromJsonString(t,n)}static equals(t,n){return C.util.equals(Ws,t,n)}};g(Ws,"runtime",C),g(Ws,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),g(Ws,"fields",C.util.newFieldList(()=>[]));var dK=Ws,Xs=class Xs extends Re{constructor(n){super();g(this,"response");g(this,"registrationInfo");C.util.initPartial(n,this)}static fromBinary(n,r){return new Xs().fromBinary(n,r)}static fromJson(n,r){return new Xs().fromJson(n,r)}static fromJsonString(n,r){return new Xs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Xs,n,r)}};g(Xs,"runtime",C),g(Xs,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),g(Xs,"fields",C.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:$b},{no:2,name:"registrationInfo",kind:"message",T:Gb,opt:!0}]));var fK=Xs,Zs=class Zs extends Re{constructor(n){super();g(this,"defaultFlushInterval",Jn.zero);g(this,"datasourceConfigurations",[]);g(this,"fieldConfigurations",[]);g(this,"graphqlSchema","");g(this,"typeConfigurations",[]);g(this,"stringStorage",{});g(this,"graphqlClientSchema");C.util.initPartial(n,this)}static fromBinary(n,r){return new Zs().fromBinary(n,r)}static fromJson(n,r){return new Zs().fromJson(n,r)}static fromJsonString(n,r){return new Zs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Zs,n,r)}};g(Zs,"runtime",C),g(Zs,"typeName","wg.cosmo.node.v1.EngineConfiguration"),g(Zs,"fields",C.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:Vp,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:Yp,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:Yb,repeated:!0},{no:6,name:"string_storage",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:7,name:"graphql_client_schema",kind:"scalar",T:9,opt:!0}]));var Od=Zs,eo=class eo extends Re{constructor(n){super();g(this,"kind",qu.STATIC);g(this,"rootNodes",[]);g(this,"childNodes",[]);g(this,"overrideFieldPathFromAlias",!1);g(this,"customGraphql");g(this,"customStatic");g(this,"directives",[]);g(this,"requestTimeoutSeconds",Jn.zero);g(this,"id","");g(this,"keys",[]);g(this,"provides",[]);g(this,"requires",[]);g(this,"customEvents");g(this,"entityInterfaces",[]);g(this,"interfaceObjects",[]);g(this,"costConfiguration");C.util.initPartial(n,this)}static fromBinary(n,r){return new eo().fromBinary(n,r)}static fromJson(n,r){return new eo().fromJson(n,r)}static fromJsonString(n,r){return new eo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(eo,n,r)}};g(eo,"runtime",C),g(eo,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),g(eo,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(qu)},{no:2,name:"root_nodes",kind:"message",T:Dd,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:Dd,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:Hp},{no:6,name:"custom_static",kind:"message",T:sA},{no:7,name:"directives",kind:"message",T:oA,repeated:!0},{no:8,name:"request_timeout_seconds",kind:"scalar",T:3},{no:9,name:"id",kind:"scalar",T:9},{no:10,name:"keys",kind:"message",T:Jc,repeated:!0},{no:11,name:"provides",kind:"message",T:Jc,repeated:!0},{no:12,name:"requires",kind:"message",T:Jc,repeated:!0},{no:13,name:"custom_events",kind:"message",T:Xc},{no:14,name:"entity_interfaces",kind:"message",T:bd,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:bd,repeated:!0},{no:16,name:"cost_configuration",kind:"message",T:jp}]));var Vp=eo,to=class to extends Re{constructor(n){super();g(this,"fieldWeights",[]);g(this,"listSizes",[]);g(this,"typeWeights",{});g(this,"directiveArgumentWeights",{});C.util.initPartial(n,this)}static fromBinary(n,r){return new to().fromBinary(n,r)}static fromJson(n,r){return new to().fromJson(n,r)}static fromJsonString(n,r){return new to().fromJsonString(n,r)}static equals(n,r){return C.util.equals(to,n,r)}};g(to,"runtime",C),g(to,"typeName","wg.cosmo.node.v1.CostConfiguration"),g(to,"fields",C.util.newFieldList(()=>[{no:1,name:"field_weights",kind:"message",T:Kp,repeated:!0},{no:2,name:"list_sizes",kind:"message",T:$p,repeated:!0},{no:3,name:"type_weights",kind:"map",K:9,V:{kind:"scalar",T:5}},{no:4,name:"directive_argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}}]));var jp=to,no=class no extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldName","");g(this,"weight");g(this,"argumentWeights",{});C.util.initPartial(n,this)}static fromBinary(n,r){return new no().fromBinary(n,r)}static fromJson(n,r){return new no().fromJson(n,r)}static fromJsonString(n,r){return new no().fromJsonString(n,r)}static equals(n,r){return C.util.equals(no,n,r)}};g(no,"runtime",C),g(no,"typeName","wg.cosmo.node.v1.FieldWeightConfiguration"),g(no,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"weight",kind:"scalar",T:5,opt:!0},{no:4,name:"argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}}]));var Kp=no,ro=class ro extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldName","");g(this,"assumedSize");g(this,"slicingArguments",[]);g(this,"sizedFields",[]);g(this,"requireOneSlicingArgument");C.util.initPartial(n,this)}static fromBinary(n,r){return new ro().fromBinary(n,r)}static fromJson(n,r){return new ro().fromJson(n,r)}static fromJsonString(n,r){return new ro().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ro,n,r)}};g(ro,"runtime",C),g(ro,"typeName","wg.cosmo.node.v1.FieldListSizeConfiguration"),g(ro,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"assumed_size",kind:"scalar",T:5,opt:!0},{no:4,name:"slicing_arguments",kind:"scalar",T:9,repeated:!0},{no:5,name:"sized_fields",kind:"scalar",T:9,repeated:!0},{no:6,name:"require_one_slicing_argument",kind:"scalar",T:8,opt:!0}]));var $p=ro,io=class io extends Re{constructor(n){super();g(this,"name","");g(this,"sourceType",zc.OBJECT_FIELD);C.util.initPartial(n,this)}static fromBinary(n,r){return new io().fromBinary(n,r)}static fromJson(n,r){return new io().fromJson(n,r)}static fromJsonString(n,r){return new io().fromJsonString(n,r)}static equals(n,r){return C.util.equals(io,n,r)}};g(io,"runtime",C),g(io,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),g(io,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:C.getEnumType(zc)}]));var Gp=io,ao=class ao extends Re{constructor(n){super();g(this,"requiredAndScopes",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new ao().fromBinary(n,r)}static fromJson(n,r){return new ao().fromJson(n,r)}static fromJsonString(n,r){return new ao().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ao,n,r)}};g(ao,"runtime",C),g(ao,"typeName","wg.cosmo.node.v1.Scopes"),g(ao,"fields",C.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var Wc=ao,so=class so extends Re{constructor(n){super();g(this,"requiresAuthentication",!1);g(this,"requiredOrScopes",[]);g(this,"requiredOrScopesByOr",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new so().fromBinary(n,r)}static fromJson(n,r){return new so().fromJson(n,r)}static fromJsonString(n,r){return new so().fromJsonString(n,r)}static equals(n,r){return C.util.equals(so,n,r)}};g(so,"runtime",C),g(so,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),g(so,"fields",C.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:Wc,repeated:!0},{no:3,name:"required_or_scopes_by_or",kind:"message",T:Wc,repeated:!0}]));var Qp=so,oo=class oo extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldName","");g(this,"argumentsConfiguration",[]);g(this,"authorizationConfiguration");g(this,"subscriptionFilterCondition");C.util.initPartial(n,this)}static fromBinary(n,r){return new oo().fromBinary(n,r)}static fromJson(n,r){return new oo().fromJson(n,r)}static fromJsonString(n,r){return new oo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(oo,n,r)}};g(oo,"runtime",C),g(oo,"typeName","wg.cosmo.node.v1.FieldConfiguration"),g(oo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"arguments_configuration",kind:"message",T:Gp,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:Qp},{no:5,name:"subscription_filter_condition",kind:"message",T:ju,opt:!0}]));var Yp=oo,uo=class uo extends Re{constructor(n){super();g(this,"typeName","");g(this,"renameTo","");C.util.initPartial(n,this)}static fromBinary(n,r){return new uo().fromBinary(n,r)}static fromJson(n,r){return new uo().fromJson(n,r)}static fromJsonString(n,r){return new uo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(uo,n,r)}};g(uo,"runtime",C),g(uo,"typeName","wg.cosmo.node.v1.TypeConfiguration"),g(uo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var Yb=uo,co=class co extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldNames",[]);g(this,"externalFieldNames",[]);g(this,"requireFetchReasonsFieldNames",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new co().fromBinary(n,r)}static fromJson(n,r){return new co().fromJson(n,r)}static fromJsonString(n,r){return new co().fromJsonString(n,r)}static equals(n,r){return C.util.equals(co,n,r)}};g(co,"runtime",C),g(co,"typeName","wg.cosmo.node.v1.TypeField"),g(co,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_names",kind:"scalar",T:9,repeated:!0},{no:3,name:"external_field_names",kind:"scalar",T:9,repeated:!0},{no:4,name:"require_fetch_reasons_field_names",kind:"scalar",T:9,repeated:!0}]));var Dd=co,lo=class lo extends Re{constructor(n){super();g(this,"fieldName","");g(this,"typeName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new lo().fromBinary(n,r)}static fromJson(n,r){return new lo().fromJson(n,r)}static fromJsonString(n,r){return new lo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(lo,n,r)}};g(lo,"runtime",C),g(lo,"typeName","wg.cosmo.node.v1.FieldCoordinates"),g(lo,"fields",C.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var Jp=lo,fo=class fo extends Re{constructor(n){super();g(this,"fieldCoordinatesPath",[]);g(this,"fieldPath",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new fo().fromBinary(n,r)}static fromJson(n,r){return new fo().fromJson(n,r)}static fromJsonString(n,r){return new fo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(fo,n,r)}};g(fo,"runtime",C),g(fo,"typeName","wg.cosmo.node.v1.FieldSetCondition"),g(fo,"fields",C.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:Jp,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var zp=fo,po=class po extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldName","");g(this,"selectionSet","");g(this,"disableEntityResolver",!1);g(this,"conditions",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new po().fromBinary(n,r)}static fromJson(n,r){return new po().fromJson(n,r)}static fromJsonString(n,r){return new po().fromJsonString(n,r)}static equals(n,r){return C.util.equals(po,n,r)}};g(po,"runtime",C),g(po,"typeName","wg.cosmo.node.v1.RequiredField"),g(po,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"selection_set",kind:"scalar",T:9},{no:4,name:"disable_entity_resolver",kind:"scalar",T:8},{no:5,name:"conditions",kind:"message",T:zp,repeated:!0}]));var Jc=po,mo=class mo extends Re{constructor(n){super();g(this,"interfaceTypeName","");g(this,"concreteTypeNames",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new mo().fromBinary(n,r)}static fromJson(n,r){return new mo().fromJson(n,r)}static fromJsonString(n,r){return new mo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(mo,n,r)}};g(mo,"runtime",C),g(mo,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),g(mo,"fields",C.util.newFieldList(()=>[{no:1,name:"interface_type_name",kind:"scalar",T:9},{no:2,name:"concrete_type_names",kind:"scalar",T:9,repeated:!0}]));var bd=mo,No=class No extends Re{constructor(n){super();g(this,"url");g(this,"method",Hc.GET);g(this,"header",{});g(this,"body");g(this,"query",[]);g(this,"urlEncodeBody",!1);g(this,"mtls");g(this,"baseUrl");g(this,"path");g(this,"httpProxyUrl");C.util.initPartial(n,this)}static fromBinary(n,r){return new No().fromBinary(n,r)}static fromJson(n,r){return new No().fromJson(n,r)}static fromJsonString(n,r){return new No().fromJsonString(n,r)}static equals(n,r){return C.util.equals(No,n,r)}};g(No,"runtime",C),g(No,"typeName","wg.cosmo.node.v1.FetchConfiguration"),g(No,"fields",C.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:Wr},{no:2,name:"method",kind:"enum",T:C.getEnumType(Hc)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:cA}},{no:4,name:"body",kind:"message",T:Wr},{no:5,name:"query",kind:"message",T:uA,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:lA},{no:9,name:"base_url",kind:"message",T:Wr},{no:10,name:"path",kind:"message",T:Wr},{no:11,name:"http_proxy_url",kind:"message",T:Wr,opt:!0}]));var Jb=No,To=class To extends Re{constructor(n){super();g(this,"statusCode",Jn.zero);g(this,"typeName","");g(this,"injectStatusCodeIntoBody",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new To().fromBinary(n,r)}static fromJson(n,r){return new To().fromJson(n,r)}static fromJsonString(n,r){return new To().fromJsonString(n,r)}static equals(n,r){return C.util.equals(To,n,r)}};g(To,"runtime",C),g(To,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),g(To,"fields",C.util.newFieldList(()=>[{no:1,name:"status_code",kind:"scalar",T:3},{no:2,name:"type_name",kind:"scalar",T:9},{no:3,name:"inject_status_code_into_body",kind:"scalar",T:8}]));var pK=To,Eo=class Eo extends Re{constructor(n){super();g(this,"fetch");g(this,"subscription");g(this,"federation");g(this,"upstreamSchema");g(this,"customScalarTypeFields",[]);g(this,"grpc");C.util.initPartial(n,this)}static fromBinary(n,r){return new Eo().fromBinary(n,r)}static fromJson(n,r){return new Eo().fromJson(n,r)}static fromJsonString(n,r){return new Eo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Eo,n,r)}};g(Eo,"runtime",C),g(Eo,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),g(Eo,"fields",C.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:Jb},{no:2,name:"subscription",kind:"message",T:dA},{no:3,name:"federation",kind:"message",T:fA},{no:4,name:"upstream_schema",kind:"message",T:rm},{no:6,name:"custom_scalar_type_fields",kind:"message",T:pA,repeated:!0},{no:7,name:"grpc",kind:"message",T:Ad}]));var Hp=Eo,ho=class ho extends Re{constructor(n){super();g(this,"mapping");g(this,"protoSchema","");g(this,"plugin");C.util.initPartial(n,this)}static fromBinary(n,r){return new ho().fromBinary(n,r)}static fromJson(n,r){return new ho().fromJson(n,r)}static fromJsonString(n,r){return new ho().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ho,n,r)}};g(ho,"runtime",C),g(ho,"typeName","wg.cosmo.node.v1.GRPCConfiguration"),g(ho,"fields",C.util.newFieldList(()=>[{no:1,name:"mapping",kind:"message",T:Hb},{no:2,name:"proto_schema",kind:"scalar",T:9},{no:3,name:"plugin",kind:"message",T:Wp}]));var Ad=ho,yo=class yo extends Re{constructor(n){super();g(this,"repository","");g(this,"reference","");C.util.initPartial(n,this)}static fromBinary(n,r){return new yo().fromBinary(n,r)}static fromJson(n,r){return new yo().fromJson(n,r)}static fromJsonString(n,r){return new yo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(yo,n,r)}};g(yo,"runtime",C),g(yo,"typeName","wg.cosmo.node.v1.ImageReference"),g(yo,"fields",C.util.newFieldList(()=>[{no:1,name:"repository",kind:"scalar",T:9},{no:2,name:"reference",kind:"scalar",T:9}]));var zb=yo,Io=class Io extends Re{constructor(n){super();g(this,"name","");g(this,"version","");g(this,"imageReference");C.util.initPartial(n,this)}static fromBinary(n,r){return new Io().fromBinary(n,r)}static fromJson(n,r){return new Io().fromJson(n,r)}static fromJsonString(n,r){return new Io().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Io,n,r)}};g(Io,"runtime",C),g(Io,"typeName","wg.cosmo.node.v1.PluginConfiguration"),g(Io,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"image_reference",kind:"message",T:zb,opt:!0}]));var Wp=Io,go=class go extends Re{constructor(n){super();g(this,"enabled",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new go().fromBinary(n,r)}static fromJson(n,r){return new go().fromJson(n,r)}static fromJsonString(n,r){return new go().fromJsonString(n,r)}static equals(n,r){return C.util.equals(go,n,r)}};g(go,"runtime",C),g(go,"typeName","wg.cosmo.node.v1.SSLConfiguration"),g(go,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]));var mK=go,_o=class _o extends Re{constructor(n){super();g(this,"version",0);g(this,"service","");g(this,"operationMappings",[]);g(this,"entityMappings",[]);g(this,"typeFieldMappings",[]);g(this,"enumMappings",[]);g(this,"resolveMappings",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new _o().fromBinary(n,r)}static fromJson(n,r){return new _o().fromJson(n,r)}static fromJsonString(n,r){return new _o().fromJsonString(n,r)}static equals(n,r){return C.util.equals(_o,n,r)}};g(_o,"runtime",C),g(_o,"typeName","wg.cosmo.node.v1.GRPCMapping"),g(_o,"fields",C.util.newFieldList(()=>[{no:1,name:"version",kind:"scalar",T:5},{no:2,name:"service",kind:"scalar",T:9},{no:3,name:"operation_mappings",kind:"message",T:Zb,repeated:!0},{no:4,name:"entity_mappings",kind:"message",T:eA,repeated:!0},{no:5,name:"type_field_mappings",kind:"message",T:nA,repeated:!0},{no:6,name:"enum_mappings",kind:"message",T:iA,repeated:!0},{no:7,name:"resolve_mappings",kind:"message",T:Wb,repeated:!0}]));var Hb=_o,vo=class vo extends Re{constructor(n){super();g(this,"type",Mp.UNSPECIFIED);g(this,"lookupMapping");g(this,"rpc","");g(this,"request","");g(this,"response","");C.util.initPartial(n,this)}static fromBinary(n,r){return new vo().fromBinary(n,r)}static fromJson(n,r){return new vo().fromJson(n,r)}static fromJsonString(n,r){return new vo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(vo,n,r)}};g(vo,"runtime",C),g(vo,"typeName","wg.cosmo.node.v1.LookupMapping"),g(vo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:C.getEnumType(Mp)},{no:2,name:"lookup_mapping",kind:"message",T:Xb},{no:3,name:"rpc",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var Wb=vo,So=class So extends Re{constructor(n){super();g(this,"type","");g(this,"fieldMapping");C.util.initPartial(n,this)}static fromBinary(n,r){return new So().fromBinary(n,r)}static fromJson(n,r){return new So().fromJson(n,r)}static fromJsonString(n,r){return new So().fromJsonString(n,r)}static equals(n,r){return C.util.equals(So,n,r)}};g(So,"runtime",C),g(So,"typeName","wg.cosmo.node.v1.LookupFieldMapping"),g(So,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mapping",kind:"message",T:Xp}]));var Xb=So,Oo=class Oo extends Re{constructor(n){super();g(this,"type",xp.UNSPECIFIED);g(this,"original","");g(this,"mapped","");g(this,"request","");g(this,"response","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Oo().fromBinary(n,r)}static fromJson(n,r){return new Oo().fromJson(n,r)}static fromJsonString(n,r){return new Oo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Oo,n,r)}};g(Oo,"runtime",C),g(Oo,"typeName","wg.cosmo.node.v1.OperationMapping"),g(Oo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:C.getEnumType(xp)},{no:2,name:"original",kind:"scalar",T:9},{no:3,name:"mapped",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var Zb=Oo,Do=class Do extends Re{constructor(n){super();g(this,"typeName","");g(this,"kind","");g(this,"key","");g(this,"rpc","");g(this,"request","");g(this,"response","");g(this,"requiredFieldMappings",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Do().fromBinary(n,r)}static fromJson(n,r){return new Do().fromJson(n,r)}static fromJsonString(n,r){return new Do().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Do,n,r)}};g(Do,"runtime",C),g(Do,"typeName","wg.cosmo.node.v1.EntityMapping"),g(Do,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"kind",kind:"scalar",T:9},{no:3,name:"key",kind:"scalar",T:9},{no:4,name:"rpc",kind:"scalar",T:9},{no:5,name:"request",kind:"scalar",T:9},{no:6,name:"response",kind:"scalar",T:9},{no:7,name:"required_field_mappings",kind:"message",T:tA,repeated:!0}]));var eA=Do,bo=class bo extends Re{constructor(n){super();g(this,"fieldMapping");g(this,"rpc","");g(this,"request","");g(this,"response","");C.util.initPartial(n,this)}static fromBinary(n,r){return new bo().fromBinary(n,r)}static fromJson(n,r){return new bo().fromJson(n,r)}static fromJsonString(n,r){return new bo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(bo,n,r)}};g(bo,"runtime",C),g(bo,"typeName","wg.cosmo.node.v1.RequiredFieldMapping"),g(bo,"fields",C.util.newFieldList(()=>[{no:1,name:"field_mapping",kind:"message",T:Xp},{no:2,name:"rpc",kind:"scalar",T:9},{no:3,name:"request",kind:"scalar",T:9},{no:4,name:"response",kind:"scalar",T:9}]));var tA=bo,Ao=class Ao extends Re{constructor(n){super();g(this,"type","");g(this,"fieldMappings",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ao().fromBinary(n,r)}static fromJson(n,r){return new Ao().fromJson(n,r)}static fromJsonString(n,r){return new Ao().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ao,n,r)}};g(Ao,"runtime",C),g(Ao,"typeName","wg.cosmo.node.v1.TypeFieldMapping"),g(Ao,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mappings",kind:"message",T:Xp,repeated:!0}]));var nA=Ao,Ro=class Ro extends Re{constructor(n){super();g(this,"original","");g(this,"mapped","");g(this,"argumentMappings",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ro().fromBinary(n,r)}static fromJson(n,r){return new Ro().fromJson(n,r)}static fromJsonString(n,r){return new Ro().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ro,n,r)}};g(Ro,"runtime",C),g(Ro,"typeName","wg.cosmo.node.v1.FieldMapping"),g(Ro,"fields",C.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9},{no:3,name:"argument_mappings",kind:"message",T:rA,repeated:!0}]));var Xp=Ro,Po=class Po extends Re{constructor(n){super();g(this,"original","");g(this,"mapped","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Po().fromBinary(n,r)}static fromJson(n,r){return new Po().fromJson(n,r)}static fromJsonString(n,r){return new Po().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Po,n,r)}};g(Po,"runtime",C),g(Po,"typeName","wg.cosmo.node.v1.ArgumentMapping"),g(Po,"fields",C.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var rA=Po,Fo=class Fo extends Re{constructor(n){super();g(this,"type","");g(this,"values",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Fo().fromBinary(n,r)}static fromJson(n,r){return new Fo().fromJson(n,r)}static fromJsonString(n,r){return new Fo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Fo,n,r)}};g(Fo,"runtime",C),g(Fo,"typeName","wg.cosmo.node.v1.EnumMapping"),g(Fo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"values",kind:"message",T:aA,repeated:!0}]));var iA=Fo,wo=class wo extends Re{constructor(n){super();g(this,"original","");g(this,"mapped","");C.util.initPartial(n,this)}static fromBinary(n,r){return new wo().fromBinary(n,r)}static fromJson(n,r){return new wo().fromJson(n,r)}static fromJsonString(n,r){return new wo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(wo,n,r)}};g(wo,"runtime",C),g(wo,"typeName","wg.cosmo.node.v1.EnumValueMapping"),g(wo,"fields",C.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var aA=wo,Lo=class Lo extends Re{constructor(n){super();g(this,"consumerName","");g(this,"streamName","");g(this,"consumerInactiveThreshold",0);C.util.initPartial(n,this)}static fromBinary(n,r){return new Lo().fromBinary(n,r)}static fromJson(n,r){return new Lo().fromJson(n,r)}static fromJsonString(n,r){return new Lo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Lo,n,r)}};g(Lo,"runtime",C),g(Lo,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),g(Lo,"fields",C.util.newFieldList(()=>[{no:1,name:"consumer_name",kind:"scalar",T:9},{no:2,name:"stream_name",kind:"scalar",T:9},{no:3,name:"consumer_inactive_threshold",kind:"scalar",T:5}]));var Zp=Lo,Co=class Co extends Re{constructor(n){super();g(this,"engineEventConfiguration");g(this,"subjects",[]);g(this,"streamConfiguration");C.util.initPartial(n,this)}static fromBinary(n,r){return new Co().fromBinary(n,r)}static fromJson(n,r){return new Co().fromJson(n,r)}static fromJsonString(n,r){return new Co().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Co,n,r)}};g(Co,"runtime",C),g(Co,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),g(Co,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:ru},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:Zp}]));var em=Co,Uo=class Uo extends Re{constructor(n){super();g(this,"engineEventConfiguration");g(this,"topics",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Uo().fromBinary(n,r)}static fromJson(n,r){return new Uo().fromJson(n,r)}static fromJsonString(n,r){return new Uo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Uo,n,r)}};g(Uo,"runtime",C),g(Uo,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),g(Uo,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:ru},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var tm=Uo,Bo=class Bo extends Re{constructor(n){super();g(this,"engineEventConfiguration");g(this,"channels",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Bo().fromBinary(n,r)}static fromJson(n,r){return new Bo().fromJson(n,r)}static fromJsonString(n,r){return new Bo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Bo,n,r)}};g(Bo,"runtime",C),g(Bo,"typeName","wg.cosmo.node.v1.RedisEventConfiguration"),g(Bo,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:ru},{no:2,name:"channels",kind:"scalar",T:9,repeated:!0}]));var nm=Bo,ko=class ko extends Re{constructor(n){super();g(this,"providerId","");g(this,"type",nu.PUBLISH);g(this,"typeName","");g(this,"fieldName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new ko().fromBinary(n,r)}static fromJson(n,r){return new ko().fromJson(n,r)}static fromJsonString(n,r){return new ko().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ko,n,r)}};g(ko,"runtime",C),g(ko,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),g(ko,"fields",C.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:C.getEnumType(nu)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var ru=ko,Mo=class Mo extends Re{constructor(n){super();g(this,"nats",[]);g(this,"kafka",[]);g(this,"redis",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Mo().fromBinary(n,r)}static fromJson(n,r){return new Mo().fromJson(n,r)}static fromJsonString(n,r){return new Mo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Mo,n,r)}};g(Mo,"runtime",C),g(Mo,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),g(Mo,"fields",C.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:em,repeated:!0},{no:2,name:"kafka",kind:"message",T:tm,repeated:!0},{no:3,name:"redis",kind:"message",T:nm,repeated:!0}]));var Xc=Mo,xo=class xo extends Re{constructor(n){super();g(this,"data");C.util.initPartial(n,this)}static fromBinary(n,r){return new xo().fromBinary(n,r)}static fromJson(n,r){return new xo().fromJson(n,r)}static fromJsonString(n,r){return new xo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(xo,n,r)}};g(xo,"runtime",C),g(xo,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),g(xo,"fields",C.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:Wr}]));var sA=xo,qo=class qo extends Re{constructor(n){super();g(this,"kind",Vu.STATIC_CONFIGURATION_VARIABLE);g(this,"staticVariableContent","");g(this,"environmentVariableName","");g(this,"environmentVariableDefaultValue","");g(this,"placeholderVariableName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new qo().fromBinary(n,r)}static fromJson(n,r){return new qo().fromJson(n,r)}static fromJsonString(n,r){return new qo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(qo,n,r)}};g(qo,"runtime",C),g(qo,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),g(qo,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(Vu)},{no:2,name:"static_variable_content",kind:"scalar",T:9},{no:3,name:"environment_variable_name",kind:"scalar",T:9},{no:4,name:"environment_variable_default_value",kind:"scalar",T:9},{no:5,name:"placeholder_variable_name",kind:"scalar",T:9}]));var Wr=qo,Vo=class Vo extends Re{constructor(n){super();g(this,"directiveName","");g(this,"renameTo","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Vo().fromBinary(n,r)}static fromJson(n,r){return new Vo().fromJson(n,r)}static fromJsonString(n,r){return new Vo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Vo,n,r)}};g(Vo,"runtime",C),g(Vo,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),g(Vo,"fields",C.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var oA=Vo,jo=class jo extends Re{constructor(n){super();g(this,"name","");g(this,"value","");C.util.initPartial(n,this)}static fromBinary(n,r){return new jo().fromBinary(n,r)}static fromJson(n,r){return new jo().fromJson(n,r)}static fromJsonString(n,r){return new jo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(jo,n,r)}};g(jo,"runtime",C),g(jo,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),g(jo,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var uA=jo,Ko=class Ko extends Re{constructor(n){super();g(this,"values",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ko().fromBinary(n,r)}static fromJson(n,r){return new Ko().fromJson(n,r)}static fromJsonString(n,r){return new Ko().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ko,n,r)}};g(Ko,"runtime",C),g(Ko,"typeName","wg.cosmo.node.v1.HTTPHeader"),g(Ko,"fields",C.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Wr,repeated:!0}]));var cA=Ko,$o=class $o extends Re{constructor(n){super();g(this,"key");g(this,"cert");g(this,"insecureSkipVerify",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new $o().fromBinary(n,r)}static fromJson(n,r){return new $o().fromJson(n,r)}static fromJsonString(n,r){return new $o().fromJsonString(n,r)}static equals(n,r){return C.util.equals($o,n,r)}};g($o,"runtime",C),g($o,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),g($o,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:Wr},{no:2,name:"cert",kind:"message",T:Wr},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var lA=$o,Go=class Go extends Re{constructor(n){super();g(this,"enabled",!1);g(this,"url");g(this,"useSSE");g(this,"protocol");g(this,"websocketSubprotocol");C.util.initPartial(n,this)}static fromBinary(n,r){return new Go().fromBinary(n,r)}static fromJson(n,r){return new Go().fromJson(n,r)}static fromJsonString(n,r){return new Go().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Go,n,r)}};g(Go,"runtime",C),g(Go,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),g(Go,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:Wr},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:C.getEnumType(Vs),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:C.getEnumType(js),opt:!0}]));var dA=Go,Qo=class Qo extends Re{constructor(n){super();g(this,"enabled",!1);g(this,"serviceSdl","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Qo().fromBinary(n,r)}static fromJson(n,r){return new Qo().fromJson(n,r)}static fromJsonString(n,r){return new Qo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Qo,n,r)}};g(Qo,"runtime",C),g(Qo,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),g(Qo,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var fA=Qo,Yo=class Yo extends Re{constructor(n){super();g(this,"key","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Yo().fromBinary(n,r)}static fromJson(n,r){return new Yo().fromJson(n,r)}static fromJsonString(n,r){return new Yo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Yo,n,r)}};g(Yo,"runtime",C),g(Yo,"typeName","wg.cosmo.node.v1.InternedString"),g(Yo,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var rm=Yo,Jo=class Jo extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Jo().fromBinary(n,r)}static fromJson(n,r){return new Jo().fromJson(n,r)}static fromJsonString(n,r){return new Jo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Jo,n,r)}};g(Jo,"runtime",C),g(Jo,"typeName","wg.cosmo.node.v1.SingleTypeField"),g(Jo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var pA=Jo,zo=class zo extends Re{constructor(n){super();g(this,"fieldPath",[]);g(this,"json","");C.util.initPartial(n,this)}static fromBinary(n,r){return new zo().fromBinary(n,r)}static fromJson(n,r){return new zo().fromJson(n,r)}static fromJsonString(n,r){return new zo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(zo,n,r)}};g(zo,"runtime",C),g(zo,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),g(zo,"fields",C.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var im=zo,sa=class sa extends Re{constructor(n){super();g(this,"and",[]);g(this,"in");g(this,"not");g(this,"or",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new sa().fromBinary(n,r)}static fromJson(n,r){return new sa().fromJson(n,r)}static fromJsonString(n,r){return new sa().fromJsonString(n,r)}static equals(n,r){return C.util.equals(sa,n,r)}};g(sa,"runtime",C),g(sa,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),g(sa,"fields",C.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:sa,repeated:!0},{no:2,name:"in",kind:"message",T:im,opt:!0},{no:3,name:"not",kind:"message",T:sa,opt:!0},{no:4,name:"or",kind:"message",T:sa,repeated:!0}]));var ju=sa,Ho=class Ho extends Re{constructor(n){super();g(this,"operations",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ho().fromBinary(n,r)}static fromJson(n,r){return new Ho().fromJson(n,r)}static fromJsonString(n,r){return new Ho().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ho,n,r)}};g(Ho,"runtime",C),g(Ho,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),g(Ho,"fields",C.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:mA,repeated:!0}]));var NK=Ho,Wo=class Wo extends Re{constructor(n){super();g(this,"request");g(this,"client");C.util.initPartial(n,this)}static fromBinary(n,r){return new Wo().fromBinary(n,r)}static fromJson(n,r){return new Wo().fromJson(n,r)}static fromJsonString(n,r){return new Wo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Wo,n,r)}};g(Wo,"runtime",C),g(Wo,"typeName","wg.cosmo.node.v1.Operation"),g(Wo,"fields",C.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:NA},{no:2,name:"client",kind:"message",T:hA}]));var mA=Wo,Xo=class Xo extends Re{constructor(n){super();g(this,"operationName","");g(this,"query","");g(this,"extensions");C.util.initPartial(n,this)}static fromBinary(n,r){return new Xo().fromBinary(n,r)}static fromJson(n,r){return new Xo().fromJson(n,r)}static fromJsonString(n,r){return new Xo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Xo,n,r)}};g(Xo,"runtime",C),g(Xo,"typeName","wg.cosmo.node.v1.OperationRequest"),g(Xo,"fields",C.util.newFieldList(()=>[{no:1,name:"operation_name",kind:"scalar",T:9},{no:2,name:"query",kind:"scalar",T:9},{no:3,name:"extensions",kind:"message",T:TA}]));var NA=Xo,Zo=class Zo extends Re{constructor(n){super();g(this,"persistedQuery");C.util.initPartial(n,this)}static fromBinary(n,r){return new Zo().fromBinary(n,r)}static fromJson(n,r){return new Zo().fromJson(n,r)}static fromJsonString(n,r){return new Zo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Zo,n,r)}};g(Zo,"runtime",C),g(Zo,"typeName","wg.cosmo.node.v1.Extension"),g(Zo,"fields",C.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:EA}]));var TA=Zo,eu=class eu extends Re{constructor(n){super();g(this,"sha256Hash","");g(this,"version",0);C.util.initPartial(n,this)}static fromBinary(n,r){return new eu().fromBinary(n,r)}static fromJson(n,r){return new eu().fromJson(n,r)}static fromJsonString(n,r){return new eu().fromJsonString(n,r)}static equals(n,r){return C.util.equals(eu,n,r)}};g(eu,"runtime",C),g(eu,"typeName","wg.cosmo.node.v1.PersistedQuery"),g(eu,"fields",C.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var EA=eu,tu=class tu extends Re{constructor(n){super();g(this,"name","");g(this,"version","");C.util.initPartial(n,this)}static fromBinary(n,r){return new tu().fromBinary(n,r)}static fromJson(n,r){return new tu().fromJson(n,r)}static fromJsonString(n,r){return new tu().fromJsonString(n,r)}static equals(n,r){return C.util.equals(tu,n,r)}};g(tu,"runtime",C),g(tu,"typeName","wg.cosmo.node.v1.ClientInfo"),g(tu,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var hA=tu;m();T();N();function yA(e){return new Error(`Normalization failed to return a ${e}.`)}function TK(e){return new Error(`Invalid router compatibility version "${e}".`)}m();T();N();var Rd=Ii(Nh(),1);function rme(e){if(!e.conditions)return;let t=[];for(let n of e.conditions){let r=[];for(let i of n.fieldCoordinatesPath){let a=i.split(".");if(a.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);r.push(new Jp({fieldName:a[1],typeName:a[0]}))}t.push(new zp({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function IA(e,t,n){if(e)for(let r of e){let i=rme(r);t.push(new Jc(M(M({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function gA(e){switch(e){case"publish":return nu.PUBLISH;case"request":return nu.REQUEST;case"subscribe":return nu.SUBSCRIBE}}function EK(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new Xc({nats:[],kafka:[],redis:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,a=[...r.fieldNames],o=new Dd({fieldNames:a,typeName:i});if(r.externalFieldNames&&r.externalFieldNames.size>0&&(o.externalFieldNames=[...r.externalFieldNames]),r.requireFetchReasonsFieldNames&&r.requireFetchReasonsFieldNames.length>0&&(o.requireFetchReasonsFieldNames=[...r.requireFetchReasonsFieldNames]),r.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),r.entityInterfaceConcreteTypeNames){let p=new bd({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(p):t.entityInterfaces.push(p)}IA(r.keys,t.keys,i),IA(r.provides,t.provides,i),IA(r.requires,t.requires,i);let u=[],l=[],d=[];for(let p of(n=r.events)!=null?n:[])switch(p.providerType){case Rd.PROVIDER_TYPE_KAFKA:{l.push(new tm({engineEventConfiguration:new ru({fieldName:p.fieldName,providerId:p.providerId,type:gA(p.type),typeName:i}),topics:p.topics}));break}case Rd.PROVIDER_TYPE_NATS:{u.push(new em(M({engineEventConfiguration:new ru({fieldName:p.fieldName,providerId:p.providerId,type:gA(p.type),typeName:i}),subjects:p.subjects},p.streamConfiguration?{streamConfiguration:new Zp({consumerInactiveThreshold:p.streamConfiguration.consumerInactiveThreshold,consumerName:p.streamConfiguration.consumerName,streamName:p.streamConfiguration.streamName})}:{})));break}case Rd.PROVIDER_TYPE_REDIS:{d.push(new nm({engineEventConfiguration:new ru({fieldName:p.fieldName,providerId:p.providerId,type:gA(p.type),typeName:i}),channels:p.channels}));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...u),t.events.kafka.push(...l),t.events.redis.push(...d)}return t}function hK(e){var n,r;let t=[];for(let i of e){let a=i.argumentNames.map(p=>new Gp({name:p,sourceType:zc.FIELD_ARGUMENT})),o=new Yp({argumentsConfiguration:a,fieldName:i.fieldName,typeName:i.typeName}),u=((n=i.requiredScopes)==null?void 0:n.map(p=>new Wc({requiredAndScopes:p})))||[],l=((r=i.requiredScopesByOR)==null?void 0:r.map(p=>new Wc({requiredAndScopes:p})))||[],d=u.length>0;if((i.requiresAuthentication||d)&&(o.authorizationConfiguration=new Qp({requiresAuthentication:i.requiresAuthentication||d,requiredOrScopes:u,requiredOrScopesByOr:l})),i.subscriptionFilterCondition){let p=new ju;kh(p,i.subscriptionFilterCondition),o.subscriptionFilterCondition=p}t.push(o)}return t}function kh(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new ju;kh(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new im({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new ju,kh(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new ju;kh(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}function ime(e){if(e&&!(e.fieldWeights.size===0&&e.listSizes.size===0&&e.typeWeights.size===0&&e.directiveArgumentWeights.size===0))return new jp({fieldWeights:[...e.fieldWeights.values()].map(t=>new Kp($(M({},t),{argumentWeights:Object.fromEntries(t.argumentWeights)}))),listSizes:[...e.listSizes.values()].map(t=>new $p(t)),typeWeights:Object.fromEntries(e.typeWeights),directiveArgumentWeights:Object.fromEntries(e.directiveArgumentWeights)})}var Zc;(function(e){e[e.Plugin=0]="Plugin",e[e.Standard=1]="Standard",e[e.GRPC=2]="GRPC"})(Zc||(Zc={}));var ame=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new rm({key:n})},sme=e=>{switch(e){case"ws":return Vs.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return Vs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return Vs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}},ome=e=>{switch(e){case"auto":return js.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return js.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return js.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}},IK=function(e){if(!Pd.ROUTER_COMPATIBILITY_VERSIONS.has(e.routerCompatibilityVersion))throw TK(e.routerCompatibilityVersion);let t=new Od({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw yA("ConfigurationDataByTypeName");if(!n.schema)throw yA("GraphQLSchema");let r={enabled:!0},i=ame(t,Dj((0,yK.lexicographicSortSchema)(n.schema))),{childNodes:a,entityInterfaces:o,events:u,interfaceObjects:l,keys:d,provides:p,requires:E,rootNodes:h}=EK(n.configurationDataByTypeName),v;switch(n.kind){case Zc.Standard:{r.enabled=!0,r.protocol=sme(n.subscriptionProtocol||"ws"),r.websocketSubprotocol=ome(n.websocketSubprotocol||"auto"),r.url=new Wr({kind:Vu.STATIC_CONFIGURATION_VARIABLE,staticVariableContent:n.subscriptionUrl||n.url});break}case Zc.Plugin:{v=new Ad({mapping:n.mapping,protoSchema:n.protoSchema,plugin:new Wp({name:n.name,version:n.version,imageReference:n.imageReference})});break}case Zc.GRPC:{v=new Ad({mapping:n.mapping,protoSchema:n.protoSchema});break}}let R,U,q;if(u.kafka.length>0||u.nats.length>0||u.redis.length>0){R=qu.PUBSUB,q=new Xc({kafka:u.kafka,nats:u.nats,redis:u.redis});let te=ye=>Pd.ROOT_TYPE_NAMES.has(ye.typeName),ae=0,me=0;for(;ae({id:n.id,name:n.name,routingUrl:n.url})),compatibilityVersion:`${e.routerCompatibilityVersion}:${Pd.COMPOSITION_VERSION}`})};m();T();N();var tl=Ii(Se());function gK(e){let t;try{t=(0,tl.parse)(e.schema)}catch(n){throw new Error(`could not parse schema for Graph ${e.name}: ${n}`)}return{definitions:t,name:e.name,url:e.url}}function ume(e){let t=(0,el.federateSubgraphs)({subgraphs:e.map(gK),version:el.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(n=>n.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:(0,tl.print)(t.federatedGraphAST)}}function cme(e){let t=(0,el.federateSubgraphs)({subgraphs:e.map(gK),version:el.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);return IK({federatedClientSDL:(0,tl.printSchema)(t.federatedGraphClientSchema),federatedSDL:(0,tl.printSchema)(t.federatedGraphSchema),fieldConfigurations:t.fieldConfigurations,routerCompatibilityVersion:el.LATEST_ROUTER_COMPATIBILITY_VERSION,schemaVersionId:"",subgraphs:e.map((r,i)=>{var l,d;let a=t.subgraphConfigBySubgraphName.get(r.name),o=a==null?void 0:a.schema,u=a==null?void 0:a.configurationDataByTypeName;return{kind:Zc.Standard,id:`${i}`,name:r.name,url:Db(r.url),sdl:r.schema,subscriptionUrl:Db((l=r.subscription_url)!=null?l:r.url),subscriptionProtocol:(d=r.subscription_protocol)!=null?d:"ws",websocketSubprotocol:r.subscription_protocol==="ws"?r.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:u}})}).toJsonString()}return Jm(lme);})(); +`+yj(e.errors,t):hj(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Npe(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Th(r,n)}else if(Array.isArray(e))return yj(e,n);return Tpe(e,n)}function Npe(e){return typeof e.toJSON=="function"}function Tpe(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>3?"["+Epe(e)+"]":"{ "+n.map(([i,a])=>i+": "+Th(a,t)).join(", ")+" }"}function yj(e,t){if(e.length===0)return"[]";if(t.length>3)return"[Array]";let n=e.length,r=[];for(let i=0;ihpe.includes(t))}function Id(e,t){t!=null&&t.originalError&&!(t.originalError instanceof Error)&&ype(t.originalError)&&(t.originalError=Id(t.originalError.message,t.originalError));let n=wp.GraphQLError,r=wp.versionInfo.major>=16?new n(e,t):new n(e,t==null?void 0:t.nodes,t==null?void 0:t.source,t==null?void 0:t.positions,t==null?void 0:t.path,t==null?void 0:t.originalError,t==null?void 0:t.extensions);return t!=null&&t.coordinate&&r.coordinate==null&&Object.defineProperties(r,{coordinate:{value:t.coordinate,enumerable:!0,configurable:!0}}),r}m();T();N();function Ij(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function gj(e){return typeof e=="object"&&e!==null}function _j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function vj(e,t,n={}){var o;let r={},a=((o=t.arguments)!=null?o:[]).reduce((u,l)=>$(M({},u),{[l.name.value]:l}),{});for(let{name:u,type:l,defaultValue:d}of e.args){let p=a[u];if(!p){if(d!==void 0)r[u]=d;else if((0,Ca.isNonNullType)(l))throw Id(`Argument "${u}" of required type "${Mu(l)}" was not provided.`,{nodes:[t]});continue}let E=p.value,h=E.kind===Ca.Kind.NULL;if(E.kind===Ca.Kind.VARIABLE){let R=E.name.value;if(n==null||!_j(n,R)){if(d!==void 0)r[u]=d;else if((0,Ca.isNonNullType)(l))throw Id(`Argument "${u}" of required type "${Mu(l)}" was provided the variable "$${R}" which was not provided a runtime value.`,{nodes:[E]});continue}h=n[R]==null}if(h&&(0,Ca.isNonNullType)(l))throw Id(`Argument "${u}" of non-null type "${Mu(l)}" must not be null.`,{nodes:[E]});let v=(0,Ca.valueFromAST)(E,l,n);if(v===void 0)throw Id(`Argument "${u}" has invalid value ${(0,Ca.print)(E)}.`,{nodes:[E]});r[u]=v}return r}m();T();N();function gd(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let a=e(r);return t.set(r,a),a}return i}}function Sj(e,t,n=["directives"]){var o;let r={};if(e.extensions){let u=e.extensions;for(let l of n)u=u==null?void 0:u[l];if(u!=null)for(let l in u){let d=u[l],p=l;if(Array.isArray(d))for(let E of d){let h=r[p];h||(h=[],r[p]=h),h.push(E)}else{let E=r[p];E||(E=[],r[p]=E),E.push(d)}}}let i=gd(u=>JSON.stringify(u)),a=[];e.astNode&&a.push(e.astNode),e.extensionASTNodes&&a.push(...e.extensionASTNodes);for(let u of a)if((o=u.directives)!=null&&o.length)for(let l of u.directives){let d=l.name.value,p=r[d];p||(p=[],r[d]=p);let E=t==null?void 0:t.getDirective(d),h={};if(E&&(h=vj(E,l)),l.arguments)for(let v of l.arguments){let R=v.name.value;if(h[R]==null){let U=E==null?void 0:E.args.find(q=>q.name===R);U&&(h[R]=(0,Eh.valueFromAST)(v.value,U.type))}h[R]==null&&(h[R]=(0,Eh.valueFromASTUntyped)(v.value))}if(a.length>0&&p.length>0){let v=i(h);if(p.some(R=>i(R)===v))continue}p.push(h)}return r}function bb(e,t=["directives"]){let n=Sj(e,void 0,t);return Object.entries(n).map(([r,i])=>i==null?void 0:i.map(a=>({name:r,args:a}))).flat(1/0).filter(Boolean)}m();T();N();var ze=Ii(Se(),1);m();T();N();var ds=Ii(Se(),1);function fs(e){if((0,ds.isNonNullType)(e)){let t=fs(e.ofType);if(t.kind===ds.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${Mu(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:ds.Kind.NON_NULL_TYPE,type:t}}else if((0,ds.isListType)(e))return{kind:ds.Kind.LIST_TYPE,type:fs(e.ofType)};return{kind:ds.Kind.NAMED_TYPE,name:{kind:ds.Kind.NAME,value:e.name}}}m();T();N();var pr=Ii(Se(),1);m();T();N();var Ua=Ii(Se(),1);function Yc(e){if(e===null)return{kind:Ua.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=Yc(n);r!=null&&t.push(r)}return{kind:Ua.Kind.LIST,values:t}}if(typeof e=="object"){if(e!=null&&e.toJSON)return Yc(e.toJSON());let t=[];for(let n in e){let r=e[n],i=Yc(r);i&&t.push({kind:Ua.Kind.OBJECT_FIELD,name:{kind:Ua.Kind.NAME,value:n},value:i})}return{kind:Ua.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:Ua.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:Ua.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return Ipe.test(t)?{kind:Ua.Kind.INT,value:t}:{kind:Ua.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:Ua.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var Ipe=/^-?(?:0|[1-9][0-9]*)$/;function xu(e,t){if((0,pr.isNonNullType)(t)){let n=xu(e,t.ofType);return(n==null?void 0:n.kind)===pr.Kind.NULL?null:n}if(e===null)return{kind:pr.Kind.NULL};if(e===void 0)return null;if((0,pr.isListType)(t)){let n=t.ofType;if(Ij(e)){let r=[];for(let i of e){let a=xu(i,n);a!=null&&r.push(a)}return{kind:pr.Kind.LIST,values:r}}return xu(e,n)}if((0,pr.isInputObjectType)(t)){if(!gj(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=xu(e[r.name],r.type);i&&n.push({kind:pr.Kind.OBJECT_FIELD,name:{kind:pr.Kind.NAME,value:r.name},value:i})}return{kind:pr.Kind.OBJECT,fields:n}}if((0,pr.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,pr.isEnumType)(t)?{kind:pr.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&gpe.test(n)?{kind:pr.Kind.INT,value:n}:Yc(n)}console.assert(!1,"Unexpected input type: "+Mu(t))}var gpe=/^-?(?:0|[1-9][0-9]*)$/;m();T();N();var Oj=Ii(Se(),1);function bi(e){var t;if((t=e.astNode)!=null&&t.description)return $(M({},e.astNode.description),{block:!0});if(e.description)return{kind:Oj.Kind.STRING,value:e.description,block:!0}}m();T();N();var D1e=gd(function(t){let n=_pe(t);return new Set([...n].map(r=>r.name))}),_pe=gd(function(t){let n=Ab(t);return new Set(n.values())}),Ab=gd(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let a=t.getSubscriptionType();return a&&n.set("subscription",a),n});function vpe(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=Spe(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let u of o)(0,ze.isSpecifiedDirective)(u)||a.push(Ope(u,e,n));for(let u in r){let l=r[u],d=(0,ze.isSpecifiedScalarType)(l),p=(0,ze.isIntrospectionType)(l);if(!(d||p))if((0,ze.isObjectType)(l))a.push(Dpe(l,e,n));else if((0,ze.isInterfaceType)(l))a.push(bpe(l,e,n));else if((0,ze.isUnionType)(l))a.push(Ape(l,e,n));else if((0,ze.isInputObjectType)(l))a.push(Rpe(l,e,n));else if((0,ze.isEnumType)(l))a.push(Ppe(l,e,n));else if((0,ze.isScalarType)(l))a.push(Fpe(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:ze.Kind.DOCUMENT,definitions:a}}function Dj(e,t={}){let n=vpe(e,t);return(0,ze.print)(n)}function Spe(e,t){let n=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),r=[];if(e.astNode!=null&&r.push(e.astNode),e.extensionASTNodes!=null)for(let d of e.extensionASTNodes)r.push(d);for(let d of r)if(d.operationTypes)for(let p of d.operationTypes)n.set(p.operation,p);let i=Ab(e);for(let[d,p]of n){let E=i.get(d);if(E!=null){let h=fs(E);p!=null?p.type=h:n.set(d,{kind:ze.Kind.OPERATION_TYPE_DEFINITION,operation:d,type:h})}}let a=[...n.values()].filter(Ej),o=ps(e,e,t);if(!a.length&&!o.length)return null;let u={kind:a.length?ze.Kind.SCHEMA_DEFINITION:ze.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=bi(e);return l&&(u.description=l),u}function Ope(e,t,n){var r,i;return{kind:ze.Kind.DIRECTIVE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(a=>bj(a,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:ze.Kind.NAME,value:a})))||[]}}function ps(e,t,n){let r=[],i=bb(e,n),a;i!=null&&(a=Rj(t,i));let o=null,u=null,l=null;if(a!=null&&(r=a.filter(d=>ze.specifiedDirectives.every(p=>p.name!==d.name.value)),o=a.find(d=>d.name.value==="deprecated"),u=a.find(d=>d.name.value==="specifiedBy"),l=a.find(d=>d.name.value==="oneOf")),e.deprecationReason!=null&&o==null&&(o=Cpe(e.deprecationReason)),e.specifiedByUrl!=null||e.specifiedByURL!=null&&u==null){let p={url:e.specifiedByUrl||e.specifiedByURL};u=Lp("specifiedBy",p)}return e.isOneOf&&l==null&&(l=Lp("oneOf")),o!=null&&r.push(o),u!=null&&r.push(u),l!=null&&r.push(l),r}function bj(e,t,n){var r;return{kind:ze.Kind.INPUT_VALUE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},type:fs(e.type),defaultValue:e.defaultValue!==void 0&&(r=xu(e.defaultValue,e.type))!=null?r:void 0,directives:ps(e,t,n)}}function Dpe(e,t,n){return{kind:ze.Kind.OBJECT_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>Aj(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>fs(r)),directives:ps(e,t,n)}}function bpe(e,t,n){let r={kind:ze.Kind.INTERFACE_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>Aj(i,t,n)),directives:ps(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>fs(i))),r}function Ape(e,t,n){return{kind:ze.Kind.UNION_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},directives:ps(e,t,n),types:e.getTypes().map(r=>fs(r))}}function Rpe(e,t,n){return{kind:ze.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>wpe(r,t,n)),directives:ps(e,t,n)}}function Ppe(e,t,n){return{kind:ze.Kind.ENUM_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>Lpe(r,t,n)),directives:ps(e,t,n)}}function Fpe(e,t,n){let r=bb(e,n),i=Rj(t,r),a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(o=>o.name.value==="specifiedBy")){let o={url:a};i.push(Lp("specifiedBy",o))}return{kind:ze.Kind.SCALAR_TYPE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},directives:i}}function Aj(e,t,n){return{kind:ze.Kind.FIELD_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},arguments:e.args.map(r=>bj(r,t,n)),type:fs(e.type),directives:ps(e,t,n)}}function wpe(e,t,n){var r;return{kind:ze.Kind.INPUT_VALUE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},type:fs(e.type),directives:ps(e,t,n),defaultValue:(r=xu(e.defaultValue,e.type))!=null?r:void 0}}function Lpe(e,t,n){return{kind:ze.Kind.ENUM_VALUE_DEFINITION,description:bi(e),name:{kind:ze.Kind.NAME,value:e.name},directives:ps(e,t,n)}}function Cpe(e){return Lp("deprecated",{reason:e},ze.GraphQLDeprecatedDirective)}function Lp(e,t,n){let r=[];for(let i in t){let a=t[i],o;if(n!=null){let u=n.args.find(l=>l.name===i);u&&(o=xu(a,u.type))}o==null&&(o=Yc(a)),o!=null&&r.push({kind:ze.Kind.ARGUMENT,name:{kind:ze.Kind.NAME,value:i},value:o})}return{kind:ze.Kind.DIRECTIVE,name:{kind:ze.Kind.NAME,value:e},arguments:r}}function Rj(e,t){let n=[];for(let{name:r,args:i}of t){let a=e==null?void 0:e.getDirective(r);n.push(Lp(r,i,a))}return n}var Pd=Ii(Nh(),1);m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();function pn(e,t){if(!e)throw new Error(t)}var Upe=34028234663852886e22,Bpe=-34028234663852886e22,kpe=4294967295,Mpe=2147483647,xpe=-2147483648;function _d(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>Mpe||ekpe||e<0)throw new Error("invalid uint 32: "+e)}function hh(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>Upe||e({no:i.no,name:i.name,localName:e[i.no]})),r)}function Pb(e,t,n){let r=Object.create(null),i=Object.create(null),a=[];for(let o of t){let u=Lj(o);a.push(u),r[o.name]=u,i[o.no]=u}return{typeName:e,values:a,findName(o){return r[o]},findNumber(o){return i[o]}}}function wj(e,t,n){let r={};for(let i of t){let a=Lj(i);r[a.localName]=a.no,r[a.no]=a.localName}return Rb(r,e,t,n),r}function Lj(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}m();T();N();m();T();N();var Re=class{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,n){let r=this.getType(),i=r.runtime.bin,a=i.makeReadOptions(n);return i.readMessage(this,a.readerFactory(t),t.byteLength,a),this}fromJson(t,n){let r=this.getType(),i=r.runtime.json,a=i.makeReadOptions(n);return i.readMessage(r,t,a,this),this}fromJsonString(t,n){let r;try{r=JSON.parse(t)}catch(i){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${i instanceof Error?i.message:String(i)}`)}return this.fromJson(r,n)}toBinary(t){let n=this.getType(),r=n.runtime.bin,i=r.makeWriteOptions(t),a=i.writerFactory();return r.writeMessage(this,a,i),a.finish()}toJson(t){let n=this.getType(),r=n.runtime.json,i=r.makeWriteOptions(t);return r.writeMessage(this,i)}toJsonString(t){var n;let r=this.toJson(t);return JSON.stringify(r,null,(n=t==null?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}};function Cj(e,t,n,r){var i;let a=(i=r==null?void 0:r.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),o={[a]:function(u){e.util.initFields(this),e.util.initPartial(u,this)}}[a];return Object.setPrototypeOf(o.prototype,new Re),Object.assign(o,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(u,l){return new o().fromBinary(u,l)},fromJson(u,l){return new o().fromJson(u,l)},fromJsonString(u,l){return new o().fromJsonString(u,l)},equals(u,l){return e.util.equals(o,u,l)}}),o}m();T();N();m();T();N();m();T();N();m();T();N();function Bj(){let e=0,t=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>>a,u=!(!(o>>>7)&&t==0),l=(u?o|128:o)&255;if(n.push(l),!u)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),!!i){for(let a=3;a<31;a=a+7){let o=t>>>a,u=!!(o>>>7),l=(u?o|128:o)&255;if(n.push(l),!u)return}n.push(t>>>31&1)}}var yh=4294967296;function Fb(e){let t=e[0]==="-";t&&(e=e.slice(1));let n=1e6,r=0,i=0;function a(o,u){let l=Number(e.slice(o,u));i*=n,r=r*n+l,r>=yh&&(i=i+(r/yh|0),r=r%yh)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?Mj(r,i):Lb(r,i)}function kj(e,t){let n=Lb(e,t),r=n.hi&2147483648;r&&(n=Mj(n.lo,n.hi));let i=wb(n.lo,n.hi);return r?"-"+i:i}function wb(e,t){if({lo:e,hi:t}=qpe(e,t),t<=2097151)return String(yh*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,a=n+r*6777216+i*6710656,o=r+i*8147497,u=i*2,l=1e7;return a>=l&&(o+=Math.floor(a/l),a%=l),o>=l&&(u+=Math.floor(o/l),o%=l),u.toString()+Uj(o)+Uj(a)}function qpe(e,t){return{lo:e>>>0,hi:t>>>0}}function Lb(e,t){return{lo:e|0,hi:t|0}}function Mj(e,t){return t=~t,e?e=~e+1:t+=1,Lb(e,t)}var Uj=e=>{let t=String(e);return"0000000".slice(t.length)+t};function Cb(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function xj(){let e=this.buf[this.pos++],t=e&127;if(!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;e&128&&n<10;n++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function Vpe(){let e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof O!="object"||typeof O.env!="object"||O.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),a=BigInt("9223372036854775807"),o=BigInt("0"),u=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){let d=typeof l=="bigint"?l:BigInt(l);if(d>a||du||dpn(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>pn(/^[0-9]+$/.test(i),`uint64 invalid: ${i}`);return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),n(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),r(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),n(i),Fb(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),Fb(i)},dec(i,a){return kj(i,a)},uDec(i,a){return wb(i,a)}}}var Jn=Vpe();m();T();N();var pe;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(pe||(pe={}));var Ba;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(Ba||(Ba={}));function xs(e,t,n){if(t===n)return!0;if(e==pe.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;r>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(Cp(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return _d(t),Cb(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.textEncoder.encode(t);return this.uint32(n.byteLength),this.raw(n)}float(t){hh(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){Cp(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){_d(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return _d(t),t=(t<<1^t>>31)>>>0,Cb(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Jn.enc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Jn.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=Jn.enc(t);return Ih(n.lo,n.hi,this.buf),this}sint64(t){let n=Jn.enc(t),r=n.hi>>31,i=n.lo<<1^r,a=(n.hi<<1|n.lo>>>31)^r;return Ih(i,a,this.buf),this}uint64(t){let n=Jn.uEnc(t);return Ih(n.lo,n.hi,this.buf),this}},vh=class{constructor(t,n){this.varint64=Bj,this.uint32=xj,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=n!=null?n:new TextDecoder}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t,n){let r=this.pos;switch(t){case xn.Varint:for(;this.buf[this.pos++]&128;);break;case xn.Bit64:this.pos+=4;case xn.Bit32:this.pos+=4;break;case xn.LengthDelimited:let i=this.uint32();this.pos+=i;break;case xn.StartGroup:for(;;){let[a,o]=this.tag();if(o===xn.EndGroup){if(n!==void 0&&a!==n)throw new Error("invalid end group tag");break}this.skip(o,a)}break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return Jn.dec(...this.varint64())}uint64(){return Jn.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,Jn.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Jn.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Jn.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.textDecoder.decode(this.bytes())}};function qj(e,t,n,r){let i;return{typeName:t,extendee:n,get field(){if(!i){let a=typeof r=="function"?r():r;a.name=t.split(".").pop(),a.jsonName=`[${t}]`,i=e.util.newFieldList([a]).list()[0]}return i},runtime:e}}function Sh(e){let t=e.field.localName,n=Object.create(null);return n[t]=jpe(e),[n,()=>n[t]]}function jpe(e){let t=e.field;if(t.repeated)return[];if(t.default!==void 0)return t.default;switch(t.kind){case"enum":return t.T.values[0].no;case"scalar":return ka(t.T,t.L);case"message":let n=t.T,r=new n;return n.fieldWrapper?n.fieldWrapper.unwrapField(r):r;case"map":throw"map fields are not allowed to be extensions"}}function Vj(e,t){if(!t.repeated&&(t.kind=="enum"||t.kind=="scalar")){for(let n=e.length-1;n>=0;--n)if(e[n].no==t.no)return[e[n]];return[]}return e.filter(n=>n.no===t.no)}m();T();N();m();T();N();var qs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Oh=[];for(let e=0;e>4,o=a,i=2;break;case 2:n[r++]=(o&15)<<4|(a&60)>>2,o=a,i=3;break;case 3:n[r++]=(o&3)<<6|a,i=0;break}}if(i==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,i=0;for(let a=0;a>2],i=(r&3)<<4,n=1;break;case 1:t+=qs[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=qs[i|r>>6],t+=qs[r&63],n=0;break}return n&&(t+=qs[i],t+="=",n==1&&(t+="=")),t}};m();T();N();function jj(e,t,n){$j(t,e);let r=t.runtime.bin.makeReadOptions(n),i=Vj(e.getType().runtime.bin.listUnknownFields(e),t.field),[a,o]=Sh(t);for(let u of i)t.runtime.bin.readField(a,r.readerFactory(u.data),t.field,u.wireType,r);return o()}function Kj(e,t,n,r){$j(t,e);let i=t.runtime.bin.makeReadOptions(r),a=t.runtime.bin.makeWriteOptions(r);if(Bb(e,t)){let d=e.getType().runtime.bin.listUnknownFields(e).filter(p=>p.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let p of d)e.getType().runtime.bin.onUnknownField(e,p.no,p.wireType,p.data)}let o=a.writerFactory(),u=t.field;!u.opt&&!u.repeated&&(u.kind=="enum"||u.kind=="scalar")&&(u=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(u,n,o,a);let l=i.readerFactory(o.finish());for(;l.posr.no==t.field.no)}function $j(e,t){pn(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}m();T();N();function Dh(e,t){let n=e.localName;if(e.repeated)return t[n].length>0;if(e.oneof)return t[e.oneof.localName].case===n;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[n]!==void 0:e.kind=="enum"?t[n]!==e.T.values[0].no:!gh(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function kb(e,t){let n=e.localName,r=!e.opt&&!e.req;if(e.repeated)t[n]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[n]={};break;case"enum":t[n]=r?e.T.values[0].no:void 0;break;case"scalar":t[n]=r?ka(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}m();T();N();m();T();N();function Ma(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(Re.prototype).every(r=>r in e&&typeof e[r]=="function"))return!1;let n=e.getType();return n===null||typeof n!="function"||!("typeName"in n)||typeof n.typeName!="string"?!1:t===void 0?!0:n.typeName==t.typeName}function bh(e,t){return Ma(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var oje={"google.protobuf.DoubleValue":pe.DOUBLE,"google.protobuf.FloatValue":pe.FLOAT,"google.protobuf.Int64Value":pe.INT64,"google.protobuf.UInt64Value":pe.UINT64,"google.protobuf.Int32Value":pe.INT32,"google.protobuf.UInt32Value":pe.UINT32,"google.protobuf.BoolValue":pe.BOOL,"google.protobuf.StringValue":pe.STRING,"google.protobuf.BytesValue":pe.BYTES};var Gj={ignoreUnknownFields:!1},Qj={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Kpe(e){return e?Object.assign(Object.assign({},Gj),e):Gj}function $pe(e){return e?Object.assign(Object.assign({},Qj),e):Qj}var Ph=Symbol(),Ah=Symbol();function zj(){return{makeReadOptions:Kpe,makeWriteOptions:$pe,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${ms(t)}`);r=r!=null?r:new e;let i=new Map,a=n.typeRegistry;for(let[o,u]of Object.entries(t)){let l=e.fields.findJsonName(o);if(l){if(l.oneof){if(u===null&&l.kind=="scalar")continue;let d=i.get(l.oneof);if(d!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${d}", "${o}"`);i.set(l.oneof,o)}Yj(r,u,l,n,e)}else{let d=!1;if(a!=null&&a.findExtension&&o.startsWith("[")&&o.endsWith("]")){let p=a.findExtension(o.substring(1,o.length-1));if(p&&p.extendee.typeName==e.typeName){d=!0;let[E,h]=Sh(p);Yj(E,u,p.field,n,p),Kj(r,p,h(),n)}}if(!d&&!n.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`)}}return r},writeMessage(e,t){let n=e.getType(),r={},i;try{for(i of n.fields.byNumber()){if(!Dh(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!Qpe(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],u=Jj(i,o,t);u!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=u)}let a=t.typeRegistry;if(a!=null&&a.findExtensionFor)for(let o of n.runtime.bin.listUnknownFields(e)){let u=a.findExtensionFor(n.typeName,o.no);if(u&&Bb(e,u)){let l=jj(e,u,t),d=Jj(u.field,l,t);d!==void 0&&(r[u.field.jsonName]=d)}}}catch(a){let o=i?`cannot encode field ${n.typeName}.${i.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,u=a instanceof Error?a.message:String(a);throw new Error(o+(u.length>0?`: ${u}`:""))}return r},readScalar(e,t,n){return Up(e,t,n!=null?n:Ba.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||gh(e,t)))return Rh(e,t)},debug:ms}}function ms(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function Yj(e,t,n,r,i){let a=n.localName;if(n.repeated){if(pn(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ms(t)}`);let o=e[a];for(let u of t){if(u===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ms(u)}`);switch(n.kind){case"message":o.push(n.T.fromJson(u,r));break;case"enum":let l=Mb(n.T,u,r.ignoreUnknownFields,!0);l!==Ah&&o.push(l);break;case"scalar":try{o.push(Up(n.T,u,n.L,!0))}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${ms(u)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}}else if(n.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ms(t)}`);let o=e[a];for(let[u,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);let d;try{d=Gpe(n.K,u)}catch(p){let E=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${ms(t)}`;throw p instanceof Error&&p.message.length>0&&(E+=`: ${p.message}`),new Error(E)}switch(n.V.kind){case"message":o[d]=n.V.T.fromJson(l,r);break;case"enum":let p=Mb(n.V.T,l,r.ignoreUnknownFields,!0);p!==Ah&&(o[d]=p);break;case"scalar":try{o[d]=Up(n.V.T,l,Ba.BIGINT,!0)}catch(E){let h=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${ms(t)}`;throw E instanceof Error&&E.message.length>0&&(h+=`: ${E.message}`),new Error(h)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:a},a="value"),n.kind){case"message":let o=n.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let u=e[a];Ma(u)?u.fromJson(t,r):(e[a]=u=o.fromJson(t,r),o.fieldWrapper&&!n.oneof&&(e[a]=o.fieldWrapper.unwrapField(u)));break;case"enum":let l=Mb(n.T,t,r.ignoreUnknownFields,!1);switch(l){case Ph:kb(n,e);break;case Ah:break;default:e[a]=l;break}break;case"scalar":try{let d=Up(n.T,t,n.L,!1);switch(d){case Ph:kb(n,e);break;default:e[a]=d;break}}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${ms(t)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}function Gpe(e,t){if(e===pe.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return Up(e,t,Ba.BIGINT,!0).toString()}function Up(e,t,n,r){if(t===null)return r?ka(e,n):Ph;switch(e){case pe.DOUBLE:case pe.FLOAT:if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;let i=Number(t);if(Number.isNaN(i)||!Number.isFinite(i))break;return e==pe.FLOAT&&hh(i),i;case pe.INT32:case pe.FIXED32:case pe.SFIXED32:case pe.SINT32:case pe.UINT32:let a;if(typeof t=="number"?a=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(a=Number(t)),a===void 0)break;return e==pe.UINT32||e==pe.FIXED32?Cp(a):_d(a),a;case pe.INT64:case pe.SFIXED64:case pe.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=Jn.parse(t);return n?o.toString():o;case pe.FIXED64:case pe.UINT64:if(typeof t!="number"&&typeof t!="string")break;let u=Jn.uParse(t);return n?u.toString():u;case pe.BOOL:if(typeof t!="boolean")break;return t;case pe.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case pe.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return Ub.dec(t)}throw new Error}function Mb(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:Ph;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":let i=e.findName(t);if(i!==void 0)return i.no;if(n)return Ah;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${ms(t)}`)}function Qpe(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function Jj(e,t,n){if(e.kind=="map"){pn(typeof t=="object"&&t!=null);let r={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[o,u]of i)r[o.toString()]=Rh(e.V.T,u);break;case"message":for(let[o,u]of i)r[o.toString()]=u.toJson(n);break;case"enum":let a=e.V.T;for(let[o,u]of i)r[o.toString()]=xb(a,u,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){pn(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return Rh(e.T,t);case"enum":return xb(e.T,t,n.enumAsInteger);case"message":return bh(e.T,t).toJson(n)}}function xb(e,t,n){var r;if(pn(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(n)return t;let i=e.findNumber(t);return(r=i==null?void 0:i.name)!==null&&r!==void 0?r:t}function Rh(e,t){switch(e){case pe.INT32:case pe.SFIXED32:case pe.SINT32:case pe.FIXED32:case pe.UINT32:return pn(typeof t=="number"),t;case pe.FLOAT:case pe.DOUBLE:return pn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case pe.STRING:return pn(typeof t=="string"),t;case pe.BOOL:return pn(typeof t=="boolean"),t;case pe.UINT64:case pe.FIXED64:case pe.INT64:case pe.SFIXED64:case pe.SINT64:return pn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case pe.BYTES:return pn(t instanceof Uint8Array),Ub.enc(t)}}m();T();N();var vd=Symbol("@bufbuild/protobuf/unknown-fields"),Hj={readUnknownFields:!0,readerFactory:e=>new vh(e)},Wj={writeUnknownFields:!0,writerFactory:()=>new _h};function Ype(e){return e?Object.assign(Object.assign({},Hj),e):Hj}function Jpe(e){return e?Object.assign(Object.assign({},Wj),e):Wj}function tK(){return{makeReadOptions:Ype,makeWriteOptions:Jpe,listUnknownFields(e){var t;return(t=e[vd])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[vd]},writeUnknownFields(e,t){let r=e[vd];if(r)for(let i of r)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,n,r){let i=e;Array.isArray(i[vd])||(i[vd]=[]),i[vd].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){let a=e.getType(),o=i?t.len:t.pos+n,u,l;for(;t.pos0&&(l=Hpe),a){let h=e[o];if(r==xn.LengthDelimited&&u!=pe.STRING&&u!=pe.BYTES){let R=t.uint32()+t.pos;for(;t.posMa(h,E)?h:new E(h));else{let h=o[i];E.fieldWrapper?E.typeName==="google.protobuf.BytesValue"?a[i]=kp(h):a[i]=h:a[i]=Ma(h,E)?h:new E(h)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let i=t[r.localName],a=n[r.localName];if(r.repeated){if(i.length!==a.length)return!1;switch(r.kind){case"message":return i.every((o,u)=>r.T.equals(o,a[u]));case"scalar":return i.every((o,u)=>xs(r.T,o,a[u]));case"enum":return i.every((o,u)=>xs(pe.INT32,o,a[u]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,a);case"enum":return xs(pe.INT32,i,a);case"scalar":return xs(r.T,i,a);case"oneof":if(i.case!==a.case)return!1;let o=r.findField(i.case);if(o===void 0)return!0;switch(o.kind){case"message":return o.T.equals(i.value,a.value);case"enum":return xs(pe.INT32,i.value,a.value);case"scalar":return xs(o.T,i.value,a.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let u=Object.keys(i).concat(Object.keys(a));switch(r.V.kind){case"message":let l=r.V.T;return u.every(p=>l.equals(i[p],a[p]));case"enum":return u.every(p=>xs(pe.INT32,i[p],a[p]));case"scalar":let d=r.V.T;return u.every(p=>xs(d,i[p],a[p]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let i of t.fields.byMember()){let a=e[i.localName],o;if(i.repeated)o=a.map(Lh);else if(i.kind=="map"){o=r[i.localName];for(let[u,l]of Object.entries(a))o[u]=Lh(l)}else i.kind=="oneof"?o=i.findField(a.case)?{case:a.case,value:Lh(a.value)}:{case:void 0}:o=Lh(a);r[i.localName]=o}for(let i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(r,i.no,i.wireType,i.data);return n}}}function Lh(e){if(e===void 0)return e;if(Ma(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function kp(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function iK(e,t,n){return{syntax:e,json:zj(),bin:tK(),util:Object.assign(Object.assign({},rK()),{newFieldList:t,initFields:n}),makeMessageType(r,i,a){return Cj(this,r,i,a)},makeEnum:wj,makeEnumType:Pb,getEnumType:Fj,makeExtension(r,i,a){return qj(this,r,i,a)}}}m();T();N();var Ch=class{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){let n={};for(let r of this.list())n[r.jsonName]=n[r.name]=r;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){let n={};for(let r of this.list())n[r.no]=r;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];let t=this.members,n;for(let r of this.list())r.oneof?r.oneof!==n&&(n=r.oneof,t.push(n)):t.push(r)}return this.members}};m();T();N();m();T();N();m();T();N();function qb(e,t){let n=oK(e);return t?n:nme(tme(n))}function aK(e){return qb(e,!1)}var sK=oK;function oK(e){let t=!1,n=[];for(let r=0;r`${e}$`,tme=e=>eme.has(e)?uK(e):e,nme=e=>Zpe.has(e)?uK(e):e;var Uh=class{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=aK(t)}addField(t){pn(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;nnew Ch(e,t=>cK(t,!0)),e=>{for(let t of e.getType().fields.byMember()){if(t.opt)continue;let n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=ka(t.T,t.L);break;case"message":break}}});var Sd;(function(e){e[e.OK=0]="OK",e[e.ERR=1]="ERR",e[e.ERR_NOT_FOUND=2]="ERR_NOT_FOUND",e[e.ERR_ALREADY_EXISTS=3]="ERR_ALREADY_EXISTS",e[e.ERR_INVALID_SUBGRAPH_SCHEMA=4]="ERR_INVALID_SUBGRAPH_SCHEMA",e[e.ERR_SUBGRAPH_COMPOSITION_FAILED=5]="ERR_SUBGRAPH_COMPOSITION_FAILED",e[e.ERR_SUBGRAPH_CHECK_FAILED=6]="ERR_SUBGRAPH_CHECK_FAILED",e[e.ERR_INVALID_LABELS=7]="ERR_INVALID_LABELS",e[e.ERR_ANALYTICS_DISABLED=8]="ERR_ANALYTICS_DISABLED",e[e.ERROR_NOT_AUTHENTICATED=9]="ERROR_NOT_AUTHENTICATED",e[e.ERR_OPENAI_DISABLED=10]="ERR_OPENAI_DISABLED",e[e.ERR_FREE_TRIAL_EXPIRED=11]="ERR_FREE_TRIAL_EXPIRED",e[e.ERROR_NOT_AUTHORIZED=12]="ERROR_NOT_AUTHORIZED",e[e.ERR_LIMIT_REACHED=13]="ERR_LIMIT_REACHED",e[e.ERR_DEPLOYMENT_FAILED=14]="ERR_DEPLOYMENT_FAILED",e[e.ERR_INVALID_NAME=15]="ERR_INVALID_NAME",e[e.ERR_UPGRADE_PLAN=16]="ERR_UPGRADE_PLAN",e[e.ERR_BAD_REQUEST=17]="ERR_BAD_REQUEST",e[e.ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL=18]="ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"})(Sd||(Sd={}));C.util.setEnumType(Sd,"wg.cosmo.common.EnumStatusCode",[{no:0,name:"OK"},{no:1,name:"ERR"},{no:2,name:"ERR_NOT_FOUND"},{no:3,name:"ERR_ALREADY_EXISTS"},{no:4,name:"ERR_INVALID_SUBGRAPH_SCHEMA"},{no:5,name:"ERR_SUBGRAPH_COMPOSITION_FAILED"},{no:6,name:"ERR_SUBGRAPH_CHECK_FAILED"},{no:7,name:"ERR_INVALID_LABELS"},{no:8,name:"ERR_ANALYTICS_DISABLED"},{no:9,name:"ERROR_NOT_AUTHENTICATED"},{no:10,name:"ERR_OPENAI_DISABLED"},{no:11,name:"ERR_FREE_TRIAL_EXPIRED"},{no:12,name:"ERROR_NOT_AUTHORIZED"},{no:13,name:"ERR_LIMIT_REACHED"},{no:14,name:"ERR_DEPLOYMENT_FAILED"},{no:15,name:"ERR_INVALID_NAME"},{no:16,name:"ERR_UPGRADE_PLAN"},{no:17,name:"ERR_BAD_REQUEST"},{no:18,name:"ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"}]);var Vs;(function(e){e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS=0]="GRAPHQL_SUBSCRIPTION_PROTOCOL_WS",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE=1]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST=2]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"})(Vs||(Vs={}));C.util.setEnumType(Vs,"wg.cosmo.common.GraphQLSubscriptionProtocol",[{no:0,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_WS"},{no:1,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE"},{no:2,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"}]);var js;(function(e){e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO=0]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS=1]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS=2]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"})(js||(js={}));C.util.setEnumType(js,"wg.cosmo.common.GraphQLWebsocketSubprotocol",[{no:0,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO"},{no:1,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS"},{no:2,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"}]);var yK=Ii(Se(),1);m();T();N();var Vb;(function(e){e[e.RENDER_ARGUMENT_DEFAULT=0]="RENDER_ARGUMENT_DEFAULT",e[e.RENDER_ARGUMENT_AS_GRAPHQL_VALUE=1]="RENDER_ARGUMENT_AS_GRAPHQL_VALUE",e[e.RENDER_ARGUMENT_AS_ARRAY_CSV=2]="RENDER_ARGUMENT_AS_ARRAY_CSV"})(Vb||(Vb={}));C.util.setEnumType(Vb,"wg.cosmo.node.v1.ArgumentRenderConfiguration",[{no:0,name:"RENDER_ARGUMENT_DEFAULT"},{no:1,name:"RENDER_ARGUMENT_AS_GRAPHQL_VALUE"},{no:2,name:"RENDER_ARGUMENT_AS_ARRAY_CSV"}]);var zc;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(zc||(zc={}));C.util.setEnumType(zc,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var qu;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(qu||(qu={}));C.util.setEnumType(qu,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var Mp;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.RESOLVE=1]="RESOLVE",e[e.REQUIRES=2]="REQUIRES"})(Mp||(Mp={}));C.util.setEnumType(Mp,"wg.cosmo.node.v1.LookupType",[{no:0,name:"LOOKUP_TYPE_UNSPECIFIED"},{no:1,name:"LOOKUP_TYPE_RESOLVE"},{no:2,name:"LOOKUP_TYPE_REQUIRES"}]);var xp;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.QUERY=1]="QUERY",e[e.MUTATION=2]="MUTATION",e[e.SUBSCRIPTION=3]="SUBSCRIPTION"})(xp||(xp={}));C.util.setEnumType(xp,"wg.cosmo.node.v1.OperationType",[{no:0,name:"OPERATION_TYPE_UNSPECIFIED"},{no:1,name:"OPERATION_TYPE_QUERY"},{no:2,name:"OPERATION_TYPE_MUTATION"},{no:3,name:"OPERATION_TYPE_SUBSCRIPTION"}]);var nu;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(nu||(nu={}));C.util.setEnumType(nu,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var Vu;(function(e){e[e.STATIC_CONFIGURATION_VARIABLE=0]="STATIC_CONFIGURATION_VARIABLE",e[e.ENV_CONFIGURATION_VARIABLE=1]="ENV_CONFIGURATION_VARIABLE",e[e.PLACEHOLDER_CONFIGURATION_VARIABLE=2]="PLACEHOLDER_CONFIGURATION_VARIABLE"})(Vu||(Vu={}));C.util.setEnumType(Vu,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var Hc;(function(e){e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.PUT=2]="PUT",e[e.DELETE=3]="DELETE",e[e.OPTIONS=4]="OPTIONS"})(Hc||(Hc={}));C.util.setEnumType(Hc,"wg.cosmo.node.v1.HTTPMethod",[{no:0,name:"GET"},{no:1,name:"POST"},{no:2,name:"PUT"},{no:3,name:"DELETE"},{no:4,name:"OPTIONS"}]);var Ks=class Ks extends Re{constructor(n){super();g(this,"id","");g(this,"name","");g(this,"routingUrl","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Ks().fromBinary(n,r)}static fromJson(n,r){return new Ks().fromJson(n,r)}static fromJsonString(n,r){return new Ks().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ks,n,r)}};g(Ks,"runtime",C),g(Ks,"typeName","wg.cosmo.node.v1.Subgraph"),g(Ks,"fields",C.util.newFieldList(()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"routing_url",kind:"scalar",T:9}]));var Bh=Ks,$s=class $s extends Re{constructor(n){super();g(this,"configByFeatureFlagName",{});C.util.initPartial(n,this)}static fromBinary(n,r){return new $s().fromBinary(n,r)}static fromJson(n,r){return new $s().fromJson(n,r)}static fromJsonString(n,r){return new $s().fromJsonString(n,r)}static equals(n,r){return C.util.equals($s,n,r)}};g($s,"runtime",C),g($s,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),g($s,"fields",C.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:Kb}}]));var jb=$s,Gs=class Gs extends Re{constructor(n){super();g(this,"engineConfig");g(this,"version","");g(this,"subgraphs",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Gs().fromBinary(n,r)}static fromJson(n,r){return new Gs().fromJson(n,r)}static fromJsonString(n,r){return new Gs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Gs,n,r)}};g(Gs,"runtime",C),g(Gs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),g(Gs,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Od},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Bh,repeated:!0}]));var Kb=Gs,Qs=class Qs extends Re{constructor(n){super();g(this,"engineConfig");g(this,"version","");g(this,"subgraphs",[]);g(this,"featureFlagConfigs");g(this,"compatibilityVersion","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Qs().fromBinary(n,r)}static fromJson(n,r){return new Qs().fromJson(n,r)}static fromJsonString(n,r){return new Qs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Qs,n,r)}};g(Qs,"runtime",C),g(Qs,"typeName","wg.cosmo.node.v1.RouterConfig"),g(Qs,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Od},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Bh,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:jb,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var qp=Qs,Ys=class Ys extends Re{constructor(n){super();g(this,"code",Sd.OK);g(this,"details");C.util.initPartial(n,this)}static fromBinary(n,r){return new Ys().fromBinary(n,r)}static fromJson(n,r){return new Ys().fromJson(n,r)}static fromJsonString(n,r){return new Ys().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ys,n,r)}};g(Ys,"runtime",C),g(Ys,"typeName","wg.cosmo.node.v1.Response"),g(Ys,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:C.getEnumType(Sd)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var $b=Ys,Js=class Js extends Re{constructor(n){super();g(this,"code",0);g(this,"message","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Js().fromBinary(n,r)}static fromJson(n,r){return new Js().fromJson(n,r)}static fromJsonString(n,r){return new Js().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Js,n,r)}};g(Js,"runtime",C),g(Js,"typeName","wg.cosmo.node.v1.ResponseStatus"),g(Js,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var lK=Js,zs=class zs extends Re{constructor(n){super();g(this,"accountLimits");g(this,"graphPublicKey","");C.util.initPartial(n,this)}static fromBinary(n,r){return new zs().fromBinary(n,r)}static fromJson(n,r){return new zs().fromJson(n,r)}static fromJsonString(n,r){return new zs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(zs,n,r)}};g(zs,"runtime",C),g(zs,"typeName","wg.cosmo.node.v1.RegistrationInfo"),g(zs,"fields",C.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:Qb},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var Gb=zs,Hs=class Hs extends Re{constructor(n){super();g(this,"traceSamplingRate",0);C.util.initPartial(n,this)}static fromBinary(n,r){return new Hs().fromBinary(n,r)}static fromJson(n,r){return new Hs().fromJson(n,r)}static fromJsonString(n,r){return new Hs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Hs,n,r)}};g(Hs,"runtime",C),g(Hs,"typeName","wg.cosmo.node.v1.AccountLimits"),g(Hs,"fields",C.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var Qb=Hs,Ws=class Ws extends Re{constructor(t){super(),C.util.initPartial(t,this)}static fromBinary(t,n){return new Ws().fromBinary(t,n)}static fromJson(t,n){return new Ws().fromJson(t,n)}static fromJsonString(t,n){return new Ws().fromJsonString(t,n)}static equals(t,n){return C.util.equals(Ws,t,n)}};g(Ws,"runtime",C),g(Ws,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),g(Ws,"fields",C.util.newFieldList(()=>[]));var dK=Ws,Xs=class Xs extends Re{constructor(n){super();g(this,"response");g(this,"registrationInfo");C.util.initPartial(n,this)}static fromBinary(n,r){return new Xs().fromBinary(n,r)}static fromJson(n,r){return new Xs().fromJson(n,r)}static fromJsonString(n,r){return new Xs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Xs,n,r)}};g(Xs,"runtime",C),g(Xs,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),g(Xs,"fields",C.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:$b},{no:2,name:"registrationInfo",kind:"message",T:Gb,opt:!0}]));var fK=Xs,Zs=class Zs extends Re{constructor(n){super();g(this,"defaultFlushInterval",Jn.zero);g(this,"datasourceConfigurations",[]);g(this,"fieldConfigurations",[]);g(this,"graphqlSchema","");g(this,"typeConfigurations",[]);g(this,"stringStorage",{});g(this,"graphqlClientSchema");C.util.initPartial(n,this)}static fromBinary(n,r){return new Zs().fromBinary(n,r)}static fromJson(n,r){return new Zs().fromJson(n,r)}static fromJsonString(n,r){return new Zs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Zs,n,r)}};g(Zs,"runtime",C),g(Zs,"typeName","wg.cosmo.node.v1.EngineConfiguration"),g(Zs,"fields",C.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:Vp,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:Yp,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:Yb,repeated:!0},{no:6,name:"string_storage",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:7,name:"graphql_client_schema",kind:"scalar",T:9,opt:!0}]));var Od=Zs,eo=class eo extends Re{constructor(n){super();g(this,"kind",qu.STATIC);g(this,"rootNodes",[]);g(this,"childNodes",[]);g(this,"overrideFieldPathFromAlias",!1);g(this,"customGraphql");g(this,"customStatic");g(this,"directives",[]);g(this,"requestTimeoutSeconds",Jn.zero);g(this,"id","");g(this,"keys",[]);g(this,"provides",[]);g(this,"requires",[]);g(this,"customEvents");g(this,"entityInterfaces",[]);g(this,"interfaceObjects",[]);g(this,"costConfiguration");C.util.initPartial(n,this)}static fromBinary(n,r){return new eo().fromBinary(n,r)}static fromJson(n,r){return new eo().fromJson(n,r)}static fromJsonString(n,r){return new eo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(eo,n,r)}};g(eo,"runtime",C),g(eo,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),g(eo,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(qu)},{no:2,name:"root_nodes",kind:"message",T:Dd,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:Dd,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:Hp},{no:6,name:"custom_static",kind:"message",T:sA},{no:7,name:"directives",kind:"message",T:oA,repeated:!0},{no:8,name:"request_timeout_seconds",kind:"scalar",T:3},{no:9,name:"id",kind:"scalar",T:9},{no:10,name:"keys",kind:"message",T:Jc,repeated:!0},{no:11,name:"provides",kind:"message",T:Jc,repeated:!0},{no:12,name:"requires",kind:"message",T:Jc,repeated:!0},{no:13,name:"custom_events",kind:"message",T:Xc},{no:14,name:"entity_interfaces",kind:"message",T:bd,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:bd,repeated:!0},{no:16,name:"cost_configuration",kind:"message",T:jp}]));var Vp=eo,to=class to extends Re{constructor(n){super();g(this,"fieldWeights",[]);g(this,"listSizes",[]);g(this,"typeWeights",{});g(this,"directiveArgumentWeights",{});C.util.initPartial(n,this)}static fromBinary(n,r){return new to().fromBinary(n,r)}static fromJson(n,r){return new to().fromJson(n,r)}static fromJsonString(n,r){return new to().fromJsonString(n,r)}static equals(n,r){return C.util.equals(to,n,r)}};g(to,"runtime",C),g(to,"typeName","wg.cosmo.node.v1.CostConfiguration"),g(to,"fields",C.util.newFieldList(()=>[{no:1,name:"field_weights",kind:"message",T:Kp,repeated:!0},{no:2,name:"list_sizes",kind:"message",T:$p,repeated:!0},{no:3,name:"type_weights",kind:"map",K:9,V:{kind:"scalar",T:5}},{no:4,name:"directive_argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}}]));var jp=to,no=class no extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldName","");g(this,"weight");g(this,"argumentWeights",{});C.util.initPartial(n,this)}static fromBinary(n,r){return new no().fromBinary(n,r)}static fromJson(n,r){return new no().fromJson(n,r)}static fromJsonString(n,r){return new no().fromJsonString(n,r)}static equals(n,r){return C.util.equals(no,n,r)}};g(no,"runtime",C),g(no,"typeName","wg.cosmo.node.v1.FieldWeightConfiguration"),g(no,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"weight",kind:"scalar",T:5,opt:!0},{no:4,name:"argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}}]));var Kp=no,ro=class ro extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldName","");g(this,"assumedSize");g(this,"slicingArguments",[]);g(this,"sizedFields",[]);g(this,"requireOneSlicingArgument");C.util.initPartial(n,this)}static fromBinary(n,r){return new ro().fromBinary(n,r)}static fromJson(n,r){return new ro().fromJson(n,r)}static fromJsonString(n,r){return new ro().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ro,n,r)}};g(ro,"runtime",C),g(ro,"typeName","wg.cosmo.node.v1.FieldListSizeConfiguration"),g(ro,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"assumed_size",kind:"scalar",T:5,opt:!0},{no:4,name:"slicing_arguments",kind:"scalar",T:9,repeated:!0},{no:5,name:"sized_fields",kind:"scalar",T:9,repeated:!0},{no:6,name:"require_one_slicing_argument",kind:"scalar",T:8,opt:!0}]));var $p=ro,io=class io extends Re{constructor(n){super();g(this,"name","");g(this,"sourceType",zc.OBJECT_FIELD);C.util.initPartial(n,this)}static fromBinary(n,r){return new io().fromBinary(n,r)}static fromJson(n,r){return new io().fromJson(n,r)}static fromJsonString(n,r){return new io().fromJsonString(n,r)}static equals(n,r){return C.util.equals(io,n,r)}};g(io,"runtime",C),g(io,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),g(io,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:C.getEnumType(zc)}]));var Gp=io,ao=class ao extends Re{constructor(n){super();g(this,"requiredAndScopes",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new ao().fromBinary(n,r)}static fromJson(n,r){return new ao().fromJson(n,r)}static fromJsonString(n,r){return new ao().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ao,n,r)}};g(ao,"runtime",C),g(ao,"typeName","wg.cosmo.node.v1.Scopes"),g(ao,"fields",C.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var Wc=ao,so=class so extends Re{constructor(n){super();g(this,"requiresAuthentication",!1);g(this,"requiredOrScopes",[]);g(this,"requiredOrScopesByOr",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new so().fromBinary(n,r)}static fromJson(n,r){return new so().fromJson(n,r)}static fromJsonString(n,r){return new so().fromJsonString(n,r)}static equals(n,r){return C.util.equals(so,n,r)}};g(so,"runtime",C),g(so,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),g(so,"fields",C.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:Wc,repeated:!0},{no:3,name:"required_or_scopes_by_or",kind:"message",T:Wc,repeated:!0}]));var Qp=so,oo=class oo extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldName","");g(this,"argumentsConfiguration",[]);g(this,"authorizationConfiguration");g(this,"subscriptionFilterCondition");C.util.initPartial(n,this)}static fromBinary(n,r){return new oo().fromBinary(n,r)}static fromJson(n,r){return new oo().fromJson(n,r)}static fromJsonString(n,r){return new oo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(oo,n,r)}};g(oo,"runtime",C),g(oo,"typeName","wg.cosmo.node.v1.FieldConfiguration"),g(oo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"arguments_configuration",kind:"message",T:Gp,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:Qp},{no:5,name:"subscription_filter_condition",kind:"message",T:ju,opt:!0}]));var Yp=oo,uo=class uo extends Re{constructor(n){super();g(this,"typeName","");g(this,"renameTo","");C.util.initPartial(n,this)}static fromBinary(n,r){return new uo().fromBinary(n,r)}static fromJson(n,r){return new uo().fromJson(n,r)}static fromJsonString(n,r){return new uo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(uo,n,r)}};g(uo,"runtime",C),g(uo,"typeName","wg.cosmo.node.v1.TypeConfiguration"),g(uo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var Yb=uo,co=class co extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldNames",[]);g(this,"externalFieldNames",[]);g(this,"requireFetchReasonsFieldNames",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new co().fromBinary(n,r)}static fromJson(n,r){return new co().fromJson(n,r)}static fromJsonString(n,r){return new co().fromJsonString(n,r)}static equals(n,r){return C.util.equals(co,n,r)}};g(co,"runtime",C),g(co,"typeName","wg.cosmo.node.v1.TypeField"),g(co,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_names",kind:"scalar",T:9,repeated:!0},{no:3,name:"external_field_names",kind:"scalar",T:9,repeated:!0},{no:4,name:"require_fetch_reasons_field_names",kind:"scalar",T:9,repeated:!0}]));var Dd=co,lo=class lo extends Re{constructor(n){super();g(this,"fieldName","");g(this,"typeName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new lo().fromBinary(n,r)}static fromJson(n,r){return new lo().fromJson(n,r)}static fromJsonString(n,r){return new lo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(lo,n,r)}};g(lo,"runtime",C),g(lo,"typeName","wg.cosmo.node.v1.FieldCoordinates"),g(lo,"fields",C.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var Jp=lo,fo=class fo extends Re{constructor(n){super();g(this,"fieldCoordinatesPath",[]);g(this,"fieldPath",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new fo().fromBinary(n,r)}static fromJson(n,r){return new fo().fromJson(n,r)}static fromJsonString(n,r){return new fo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(fo,n,r)}};g(fo,"runtime",C),g(fo,"typeName","wg.cosmo.node.v1.FieldSetCondition"),g(fo,"fields",C.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:Jp,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var zp=fo,po=class po extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldName","");g(this,"selectionSet","");g(this,"disableEntityResolver",!1);g(this,"conditions",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new po().fromBinary(n,r)}static fromJson(n,r){return new po().fromJson(n,r)}static fromJsonString(n,r){return new po().fromJsonString(n,r)}static equals(n,r){return C.util.equals(po,n,r)}};g(po,"runtime",C),g(po,"typeName","wg.cosmo.node.v1.RequiredField"),g(po,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"selection_set",kind:"scalar",T:9},{no:4,name:"disable_entity_resolver",kind:"scalar",T:8},{no:5,name:"conditions",kind:"message",T:zp,repeated:!0}]));var Jc=po,mo=class mo extends Re{constructor(n){super();g(this,"interfaceTypeName","");g(this,"concreteTypeNames",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new mo().fromBinary(n,r)}static fromJson(n,r){return new mo().fromJson(n,r)}static fromJsonString(n,r){return new mo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(mo,n,r)}};g(mo,"runtime",C),g(mo,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),g(mo,"fields",C.util.newFieldList(()=>[{no:1,name:"interface_type_name",kind:"scalar",T:9},{no:2,name:"concrete_type_names",kind:"scalar",T:9,repeated:!0}]));var bd=mo,No=class No extends Re{constructor(n){super();g(this,"url");g(this,"method",Hc.GET);g(this,"header",{});g(this,"body");g(this,"query",[]);g(this,"urlEncodeBody",!1);g(this,"mtls");g(this,"baseUrl");g(this,"path");g(this,"httpProxyUrl");C.util.initPartial(n,this)}static fromBinary(n,r){return new No().fromBinary(n,r)}static fromJson(n,r){return new No().fromJson(n,r)}static fromJsonString(n,r){return new No().fromJsonString(n,r)}static equals(n,r){return C.util.equals(No,n,r)}};g(No,"runtime",C),g(No,"typeName","wg.cosmo.node.v1.FetchConfiguration"),g(No,"fields",C.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:Wr},{no:2,name:"method",kind:"enum",T:C.getEnumType(Hc)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:cA}},{no:4,name:"body",kind:"message",T:Wr},{no:5,name:"query",kind:"message",T:uA,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:lA},{no:9,name:"base_url",kind:"message",T:Wr},{no:10,name:"path",kind:"message",T:Wr},{no:11,name:"http_proxy_url",kind:"message",T:Wr,opt:!0}]));var Jb=No,To=class To extends Re{constructor(n){super();g(this,"statusCode",Jn.zero);g(this,"typeName","");g(this,"injectStatusCodeIntoBody",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new To().fromBinary(n,r)}static fromJson(n,r){return new To().fromJson(n,r)}static fromJsonString(n,r){return new To().fromJsonString(n,r)}static equals(n,r){return C.util.equals(To,n,r)}};g(To,"runtime",C),g(To,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),g(To,"fields",C.util.newFieldList(()=>[{no:1,name:"status_code",kind:"scalar",T:3},{no:2,name:"type_name",kind:"scalar",T:9},{no:3,name:"inject_status_code_into_body",kind:"scalar",T:8}]));var pK=To,Eo=class Eo extends Re{constructor(n){super();g(this,"fetch");g(this,"subscription");g(this,"federation");g(this,"upstreamSchema");g(this,"customScalarTypeFields",[]);g(this,"grpc");C.util.initPartial(n,this)}static fromBinary(n,r){return new Eo().fromBinary(n,r)}static fromJson(n,r){return new Eo().fromJson(n,r)}static fromJsonString(n,r){return new Eo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Eo,n,r)}};g(Eo,"runtime",C),g(Eo,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),g(Eo,"fields",C.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:Jb},{no:2,name:"subscription",kind:"message",T:dA},{no:3,name:"federation",kind:"message",T:fA},{no:4,name:"upstream_schema",kind:"message",T:rm},{no:6,name:"custom_scalar_type_fields",kind:"message",T:pA,repeated:!0},{no:7,name:"grpc",kind:"message",T:Ad}]));var Hp=Eo,ho=class ho extends Re{constructor(n){super();g(this,"mapping");g(this,"protoSchema","");g(this,"plugin");C.util.initPartial(n,this)}static fromBinary(n,r){return new ho().fromBinary(n,r)}static fromJson(n,r){return new ho().fromJson(n,r)}static fromJsonString(n,r){return new ho().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ho,n,r)}};g(ho,"runtime",C),g(ho,"typeName","wg.cosmo.node.v1.GRPCConfiguration"),g(ho,"fields",C.util.newFieldList(()=>[{no:1,name:"mapping",kind:"message",T:Hb},{no:2,name:"proto_schema",kind:"scalar",T:9},{no:3,name:"plugin",kind:"message",T:Wp}]));var Ad=ho,yo=class yo extends Re{constructor(n){super();g(this,"repository","");g(this,"reference","");C.util.initPartial(n,this)}static fromBinary(n,r){return new yo().fromBinary(n,r)}static fromJson(n,r){return new yo().fromJson(n,r)}static fromJsonString(n,r){return new yo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(yo,n,r)}};g(yo,"runtime",C),g(yo,"typeName","wg.cosmo.node.v1.ImageReference"),g(yo,"fields",C.util.newFieldList(()=>[{no:1,name:"repository",kind:"scalar",T:9},{no:2,name:"reference",kind:"scalar",T:9}]));var zb=yo,Io=class Io extends Re{constructor(n){super();g(this,"name","");g(this,"version","");g(this,"imageReference");C.util.initPartial(n,this)}static fromBinary(n,r){return new Io().fromBinary(n,r)}static fromJson(n,r){return new Io().fromJson(n,r)}static fromJsonString(n,r){return new Io().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Io,n,r)}};g(Io,"runtime",C),g(Io,"typeName","wg.cosmo.node.v1.PluginConfiguration"),g(Io,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"image_reference",kind:"message",T:zb,opt:!0}]));var Wp=Io,go=class go extends Re{constructor(n){super();g(this,"enabled",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new go().fromBinary(n,r)}static fromJson(n,r){return new go().fromJson(n,r)}static fromJsonString(n,r){return new go().fromJsonString(n,r)}static equals(n,r){return C.util.equals(go,n,r)}};g(go,"runtime",C),g(go,"typeName","wg.cosmo.node.v1.SSLConfiguration"),g(go,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]));var mK=go,_o=class _o extends Re{constructor(n){super();g(this,"version",0);g(this,"service","");g(this,"operationMappings",[]);g(this,"entityMappings",[]);g(this,"typeFieldMappings",[]);g(this,"enumMappings",[]);g(this,"resolveMappings",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new _o().fromBinary(n,r)}static fromJson(n,r){return new _o().fromJson(n,r)}static fromJsonString(n,r){return new _o().fromJsonString(n,r)}static equals(n,r){return C.util.equals(_o,n,r)}};g(_o,"runtime",C),g(_o,"typeName","wg.cosmo.node.v1.GRPCMapping"),g(_o,"fields",C.util.newFieldList(()=>[{no:1,name:"version",kind:"scalar",T:5},{no:2,name:"service",kind:"scalar",T:9},{no:3,name:"operation_mappings",kind:"message",T:Zb,repeated:!0},{no:4,name:"entity_mappings",kind:"message",T:eA,repeated:!0},{no:5,name:"type_field_mappings",kind:"message",T:nA,repeated:!0},{no:6,name:"enum_mappings",kind:"message",T:iA,repeated:!0},{no:7,name:"resolve_mappings",kind:"message",T:Wb,repeated:!0}]));var Hb=_o,vo=class vo extends Re{constructor(n){super();g(this,"type",Mp.UNSPECIFIED);g(this,"lookupMapping");g(this,"rpc","");g(this,"request","");g(this,"response","");C.util.initPartial(n,this)}static fromBinary(n,r){return new vo().fromBinary(n,r)}static fromJson(n,r){return new vo().fromJson(n,r)}static fromJsonString(n,r){return new vo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(vo,n,r)}};g(vo,"runtime",C),g(vo,"typeName","wg.cosmo.node.v1.LookupMapping"),g(vo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:C.getEnumType(Mp)},{no:2,name:"lookup_mapping",kind:"message",T:Xb},{no:3,name:"rpc",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var Wb=vo,So=class So extends Re{constructor(n){super();g(this,"type","");g(this,"fieldMapping");C.util.initPartial(n,this)}static fromBinary(n,r){return new So().fromBinary(n,r)}static fromJson(n,r){return new So().fromJson(n,r)}static fromJsonString(n,r){return new So().fromJsonString(n,r)}static equals(n,r){return C.util.equals(So,n,r)}};g(So,"runtime",C),g(So,"typeName","wg.cosmo.node.v1.LookupFieldMapping"),g(So,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mapping",kind:"message",T:Xp}]));var Xb=So,Oo=class Oo extends Re{constructor(n){super();g(this,"type",xp.UNSPECIFIED);g(this,"original","");g(this,"mapped","");g(this,"request","");g(this,"response","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Oo().fromBinary(n,r)}static fromJson(n,r){return new Oo().fromJson(n,r)}static fromJsonString(n,r){return new Oo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Oo,n,r)}};g(Oo,"runtime",C),g(Oo,"typeName","wg.cosmo.node.v1.OperationMapping"),g(Oo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:C.getEnumType(xp)},{no:2,name:"original",kind:"scalar",T:9},{no:3,name:"mapped",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var Zb=Oo,Do=class Do extends Re{constructor(n){super();g(this,"typeName","");g(this,"kind","");g(this,"key","");g(this,"rpc","");g(this,"request","");g(this,"response","");g(this,"requiredFieldMappings",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Do().fromBinary(n,r)}static fromJson(n,r){return new Do().fromJson(n,r)}static fromJsonString(n,r){return new Do().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Do,n,r)}};g(Do,"runtime",C),g(Do,"typeName","wg.cosmo.node.v1.EntityMapping"),g(Do,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"kind",kind:"scalar",T:9},{no:3,name:"key",kind:"scalar",T:9},{no:4,name:"rpc",kind:"scalar",T:9},{no:5,name:"request",kind:"scalar",T:9},{no:6,name:"response",kind:"scalar",T:9},{no:7,name:"required_field_mappings",kind:"message",T:tA,repeated:!0}]));var eA=Do,bo=class bo extends Re{constructor(n){super();g(this,"fieldMapping");g(this,"rpc","");g(this,"request","");g(this,"response","");C.util.initPartial(n,this)}static fromBinary(n,r){return new bo().fromBinary(n,r)}static fromJson(n,r){return new bo().fromJson(n,r)}static fromJsonString(n,r){return new bo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(bo,n,r)}};g(bo,"runtime",C),g(bo,"typeName","wg.cosmo.node.v1.RequiredFieldMapping"),g(bo,"fields",C.util.newFieldList(()=>[{no:1,name:"field_mapping",kind:"message",T:Xp},{no:2,name:"rpc",kind:"scalar",T:9},{no:3,name:"request",kind:"scalar",T:9},{no:4,name:"response",kind:"scalar",T:9}]));var tA=bo,Ao=class Ao extends Re{constructor(n){super();g(this,"type","");g(this,"fieldMappings",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ao().fromBinary(n,r)}static fromJson(n,r){return new Ao().fromJson(n,r)}static fromJsonString(n,r){return new Ao().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ao,n,r)}};g(Ao,"runtime",C),g(Ao,"typeName","wg.cosmo.node.v1.TypeFieldMapping"),g(Ao,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mappings",kind:"message",T:Xp,repeated:!0}]));var nA=Ao,Ro=class Ro extends Re{constructor(n){super();g(this,"original","");g(this,"mapped","");g(this,"argumentMappings",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ro().fromBinary(n,r)}static fromJson(n,r){return new Ro().fromJson(n,r)}static fromJsonString(n,r){return new Ro().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ro,n,r)}};g(Ro,"runtime",C),g(Ro,"typeName","wg.cosmo.node.v1.FieldMapping"),g(Ro,"fields",C.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9},{no:3,name:"argument_mappings",kind:"message",T:rA,repeated:!0}]));var Xp=Ro,Po=class Po extends Re{constructor(n){super();g(this,"original","");g(this,"mapped","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Po().fromBinary(n,r)}static fromJson(n,r){return new Po().fromJson(n,r)}static fromJsonString(n,r){return new Po().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Po,n,r)}};g(Po,"runtime",C),g(Po,"typeName","wg.cosmo.node.v1.ArgumentMapping"),g(Po,"fields",C.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var rA=Po,Fo=class Fo extends Re{constructor(n){super();g(this,"type","");g(this,"values",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Fo().fromBinary(n,r)}static fromJson(n,r){return new Fo().fromJson(n,r)}static fromJsonString(n,r){return new Fo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Fo,n,r)}};g(Fo,"runtime",C),g(Fo,"typeName","wg.cosmo.node.v1.EnumMapping"),g(Fo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"values",kind:"message",T:aA,repeated:!0}]));var iA=Fo,wo=class wo extends Re{constructor(n){super();g(this,"original","");g(this,"mapped","");C.util.initPartial(n,this)}static fromBinary(n,r){return new wo().fromBinary(n,r)}static fromJson(n,r){return new wo().fromJson(n,r)}static fromJsonString(n,r){return new wo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(wo,n,r)}};g(wo,"runtime",C),g(wo,"typeName","wg.cosmo.node.v1.EnumValueMapping"),g(wo,"fields",C.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var aA=wo,Lo=class Lo extends Re{constructor(n){super();g(this,"consumerName","");g(this,"streamName","");g(this,"consumerInactiveThreshold",0);C.util.initPartial(n,this)}static fromBinary(n,r){return new Lo().fromBinary(n,r)}static fromJson(n,r){return new Lo().fromJson(n,r)}static fromJsonString(n,r){return new Lo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Lo,n,r)}};g(Lo,"runtime",C),g(Lo,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),g(Lo,"fields",C.util.newFieldList(()=>[{no:1,name:"consumer_name",kind:"scalar",T:9},{no:2,name:"stream_name",kind:"scalar",T:9},{no:3,name:"consumer_inactive_threshold",kind:"scalar",T:5}]));var Zp=Lo,Co=class Co extends Re{constructor(n){super();g(this,"engineEventConfiguration");g(this,"subjects",[]);g(this,"streamConfiguration");C.util.initPartial(n,this)}static fromBinary(n,r){return new Co().fromBinary(n,r)}static fromJson(n,r){return new Co().fromJson(n,r)}static fromJsonString(n,r){return new Co().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Co,n,r)}};g(Co,"runtime",C),g(Co,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),g(Co,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:ru},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:Zp}]));var em=Co,Uo=class Uo extends Re{constructor(n){super();g(this,"engineEventConfiguration");g(this,"topics",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Uo().fromBinary(n,r)}static fromJson(n,r){return new Uo().fromJson(n,r)}static fromJsonString(n,r){return new Uo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Uo,n,r)}};g(Uo,"runtime",C),g(Uo,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),g(Uo,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:ru},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var tm=Uo,Bo=class Bo extends Re{constructor(n){super();g(this,"engineEventConfiguration");g(this,"channels",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Bo().fromBinary(n,r)}static fromJson(n,r){return new Bo().fromJson(n,r)}static fromJsonString(n,r){return new Bo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Bo,n,r)}};g(Bo,"runtime",C),g(Bo,"typeName","wg.cosmo.node.v1.RedisEventConfiguration"),g(Bo,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:ru},{no:2,name:"channels",kind:"scalar",T:9,repeated:!0}]));var nm=Bo,ko=class ko extends Re{constructor(n){super();g(this,"providerId","");g(this,"type",nu.PUBLISH);g(this,"typeName","");g(this,"fieldName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new ko().fromBinary(n,r)}static fromJson(n,r){return new ko().fromJson(n,r)}static fromJsonString(n,r){return new ko().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ko,n,r)}};g(ko,"runtime",C),g(ko,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),g(ko,"fields",C.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:C.getEnumType(nu)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var ru=ko,Mo=class Mo extends Re{constructor(n){super();g(this,"nats",[]);g(this,"kafka",[]);g(this,"redis",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Mo().fromBinary(n,r)}static fromJson(n,r){return new Mo().fromJson(n,r)}static fromJsonString(n,r){return new Mo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Mo,n,r)}};g(Mo,"runtime",C),g(Mo,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),g(Mo,"fields",C.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:em,repeated:!0},{no:2,name:"kafka",kind:"message",T:tm,repeated:!0},{no:3,name:"redis",kind:"message",T:nm,repeated:!0}]));var Xc=Mo,xo=class xo extends Re{constructor(n){super();g(this,"data");C.util.initPartial(n,this)}static fromBinary(n,r){return new xo().fromBinary(n,r)}static fromJson(n,r){return new xo().fromJson(n,r)}static fromJsonString(n,r){return new xo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(xo,n,r)}};g(xo,"runtime",C),g(xo,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),g(xo,"fields",C.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:Wr}]));var sA=xo,qo=class qo extends Re{constructor(n){super();g(this,"kind",Vu.STATIC_CONFIGURATION_VARIABLE);g(this,"staticVariableContent","");g(this,"environmentVariableName","");g(this,"environmentVariableDefaultValue","");g(this,"placeholderVariableName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new qo().fromBinary(n,r)}static fromJson(n,r){return new qo().fromJson(n,r)}static fromJsonString(n,r){return new qo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(qo,n,r)}};g(qo,"runtime",C),g(qo,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),g(qo,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(Vu)},{no:2,name:"static_variable_content",kind:"scalar",T:9},{no:3,name:"environment_variable_name",kind:"scalar",T:9},{no:4,name:"environment_variable_default_value",kind:"scalar",T:9},{no:5,name:"placeholder_variable_name",kind:"scalar",T:9}]));var Wr=qo,Vo=class Vo extends Re{constructor(n){super();g(this,"directiveName","");g(this,"renameTo","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Vo().fromBinary(n,r)}static fromJson(n,r){return new Vo().fromJson(n,r)}static fromJsonString(n,r){return new Vo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Vo,n,r)}};g(Vo,"runtime",C),g(Vo,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),g(Vo,"fields",C.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var oA=Vo,jo=class jo extends Re{constructor(n){super();g(this,"name","");g(this,"value","");C.util.initPartial(n,this)}static fromBinary(n,r){return new jo().fromBinary(n,r)}static fromJson(n,r){return new jo().fromJson(n,r)}static fromJsonString(n,r){return new jo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(jo,n,r)}};g(jo,"runtime",C),g(jo,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),g(jo,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var uA=jo,Ko=class Ko extends Re{constructor(n){super();g(this,"values",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ko().fromBinary(n,r)}static fromJson(n,r){return new Ko().fromJson(n,r)}static fromJsonString(n,r){return new Ko().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ko,n,r)}};g(Ko,"runtime",C),g(Ko,"typeName","wg.cosmo.node.v1.HTTPHeader"),g(Ko,"fields",C.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Wr,repeated:!0}]));var cA=Ko,$o=class $o extends Re{constructor(n){super();g(this,"key");g(this,"cert");g(this,"insecureSkipVerify",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new $o().fromBinary(n,r)}static fromJson(n,r){return new $o().fromJson(n,r)}static fromJsonString(n,r){return new $o().fromJsonString(n,r)}static equals(n,r){return C.util.equals($o,n,r)}};g($o,"runtime",C),g($o,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),g($o,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:Wr},{no:2,name:"cert",kind:"message",T:Wr},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var lA=$o,Go=class Go extends Re{constructor(n){super();g(this,"enabled",!1);g(this,"url");g(this,"useSSE");g(this,"protocol");g(this,"websocketSubprotocol");C.util.initPartial(n,this)}static fromBinary(n,r){return new Go().fromBinary(n,r)}static fromJson(n,r){return new Go().fromJson(n,r)}static fromJsonString(n,r){return new Go().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Go,n,r)}};g(Go,"runtime",C),g(Go,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),g(Go,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:Wr},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:C.getEnumType(Vs),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:C.getEnumType(js),opt:!0}]));var dA=Go,Qo=class Qo extends Re{constructor(n){super();g(this,"enabled",!1);g(this,"serviceSdl","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Qo().fromBinary(n,r)}static fromJson(n,r){return new Qo().fromJson(n,r)}static fromJsonString(n,r){return new Qo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Qo,n,r)}};g(Qo,"runtime",C),g(Qo,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),g(Qo,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var fA=Qo,Yo=class Yo extends Re{constructor(n){super();g(this,"key","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Yo().fromBinary(n,r)}static fromJson(n,r){return new Yo().fromJson(n,r)}static fromJsonString(n,r){return new Yo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Yo,n,r)}};g(Yo,"runtime",C),g(Yo,"typeName","wg.cosmo.node.v1.InternedString"),g(Yo,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var rm=Yo,Jo=class Jo extends Re{constructor(n){super();g(this,"typeName","");g(this,"fieldName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Jo().fromBinary(n,r)}static fromJson(n,r){return new Jo().fromJson(n,r)}static fromJsonString(n,r){return new Jo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Jo,n,r)}};g(Jo,"runtime",C),g(Jo,"typeName","wg.cosmo.node.v1.SingleTypeField"),g(Jo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var pA=Jo,zo=class zo extends Re{constructor(n){super();g(this,"fieldPath",[]);g(this,"json","");C.util.initPartial(n,this)}static fromBinary(n,r){return new zo().fromBinary(n,r)}static fromJson(n,r){return new zo().fromJson(n,r)}static fromJsonString(n,r){return new zo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(zo,n,r)}};g(zo,"runtime",C),g(zo,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),g(zo,"fields",C.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var im=zo,sa=class sa extends Re{constructor(n){super();g(this,"and",[]);g(this,"in");g(this,"not");g(this,"or",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new sa().fromBinary(n,r)}static fromJson(n,r){return new sa().fromJson(n,r)}static fromJsonString(n,r){return new sa().fromJsonString(n,r)}static equals(n,r){return C.util.equals(sa,n,r)}};g(sa,"runtime",C),g(sa,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),g(sa,"fields",C.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:sa,repeated:!0},{no:2,name:"in",kind:"message",T:im,opt:!0},{no:3,name:"not",kind:"message",T:sa,opt:!0},{no:4,name:"or",kind:"message",T:sa,repeated:!0}]));var ju=sa,Ho=class Ho extends Re{constructor(n){super();g(this,"operations",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ho().fromBinary(n,r)}static fromJson(n,r){return new Ho().fromJson(n,r)}static fromJsonString(n,r){return new Ho().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ho,n,r)}};g(Ho,"runtime",C),g(Ho,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),g(Ho,"fields",C.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:mA,repeated:!0}]));var NK=Ho,Wo=class Wo extends Re{constructor(n){super();g(this,"request");g(this,"client");C.util.initPartial(n,this)}static fromBinary(n,r){return new Wo().fromBinary(n,r)}static fromJson(n,r){return new Wo().fromJson(n,r)}static fromJsonString(n,r){return new Wo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Wo,n,r)}};g(Wo,"runtime",C),g(Wo,"typeName","wg.cosmo.node.v1.Operation"),g(Wo,"fields",C.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:NA},{no:2,name:"client",kind:"message",T:hA}]));var mA=Wo,Xo=class Xo extends Re{constructor(n){super();g(this,"operationName","");g(this,"query","");g(this,"extensions");C.util.initPartial(n,this)}static fromBinary(n,r){return new Xo().fromBinary(n,r)}static fromJson(n,r){return new Xo().fromJson(n,r)}static fromJsonString(n,r){return new Xo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Xo,n,r)}};g(Xo,"runtime",C),g(Xo,"typeName","wg.cosmo.node.v1.OperationRequest"),g(Xo,"fields",C.util.newFieldList(()=>[{no:1,name:"operation_name",kind:"scalar",T:9},{no:2,name:"query",kind:"scalar",T:9},{no:3,name:"extensions",kind:"message",T:TA}]));var NA=Xo,Zo=class Zo extends Re{constructor(n){super();g(this,"persistedQuery");C.util.initPartial(n,this)}static fromBinary(n,r){return new Zo().fromBinary(n,r)}static fromJson(n,r){return new Zo().fromJson(n,r)}static fromJsonString(n,r){return new Zo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Zo,n,r)}};g(Zo,"runtime",C),g(Zo,"typeName","wg.cosmo.node.v1.Extension"),g(Zo,"fields",C.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:EA}]));var TA=Zo,eu=class eu extends Re{constructor(n){super();g(this,"sha256Hash","");g(this,"version",0);C.util.initPartial(n,this)}static fromBinary(n,r){return new eu().fromBinary(n,r)}static fromJson(n,r){return new eu().fromJson(n,r)}static fromJsonString(n,r){return new eu().fromJsonString(n,r)}static equals(n,r){return C.util.equals(eu,n,r)}};g(eu,"runtime",C),g(eu,"typeName","wg.cosmo.node.v1.PersistedQuery"),g(eu,"fields",C.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var EA=eu,tu=class tu extends Re{constructor(n){super();g(this,"name","");g(this,"version","");C.util.initPartial(n,this)}static fromBinary(n,r){return new tu().fromBinary(n,r)}static fromJson(n,r){return new tu().fromJson(n,r)}static fromJsonString(n,r){return new tu().fromJsonString(n,r)}static equals(n,r){return C.util.equals(tu,n,r)}};g(tu,"runtime",C),g(tu,"typeName","wg.cosmo.node.v1.ClientInfo"),g(tu,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var hA=tu;m();T();N();function yA(e){return new Error(`Normalization failed to return a ${e}.`)}function TK(e){return new Error(`Invalid router compatibility version "${e}".`)}m();T();N();var Rd=Ii(Nh(),1);function rme(e){if(!e.conditions)return;let t=[];for(let n of e.conditions){let r=[];for(let i of n.fieldCoordinatesPath){let a=i.split(".");if(a.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);r.push(new Jp({fieldName:a[1],typeName:a[0]}))}t.push(new zp({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function IA(e,t,n){if(e)for(let r of e){let i=rme(r);t.push(new Jc(M(M({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function gA(e){switch(e){case"publish":return nu.PUBLISH;case"request":return nu.REQUEST;case"subscribe":return nu.SUBSCRIBE}}function EK(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new Xc({nats:[],kafka:[],redis:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,a=[...r.fieldNames],o=new Dd({fieldNames:a,typeName:i});if(r.externalFieldNames&&r.externalFieldNames.size>0&&(o.externalFieldNames=[...r.externalFieldNames]),r.requireFetchReasonsFieldNames&&r.requireFetchReasonsFieldNames.length>0&&(o.requireFetchReasonsFieldNames=[...r.requireFetchReasonsFieldNames]),r.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),r.entityInterfaceConcreteTypeNames){let p=new bd({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(p):t.entityInterfaces.push(p)}IA(r.keys,t.keys,i),IA(r.provides,t.provides,i),IA(r.requires,t.requires,i);let u=[],l=[],d=[];for(let p of(n=r.events)!=null?n:[])switch(p.providerType){case Rd.PROVIDER_TYPE_KAFKA:{l.push(new tm({engineEventConfiguration:new ru({fieldName:p.fieldName,providerId:p.providerId,type:gA(p.type),typeName:i}),topics:p.topics}));break}case Rd.PROVIDER_TYPE_NATS:{u.push(new em(M({engineEventConfiguration:new ru({fieldName:p.fieldName,providerId:p.providerId,type:gA(p.type),typeName:i}),subjects:p.subjects},p.streamConfiguration?{streamConfiguration:new Zp({consumerInactiveThreshold:p.streamConfiguration.consumerInactiveThreshold,consumerName:p.streamConfiguration.consumerName,streamName:p.streamConfiguration.streamName})}:{})));break}case Rd.PROVIDER_TYPE_REDIS:{d.push(new nm({engineEventConfiguration:new ru({fieldName:p.fieldName,providerId:p.providerId,type:gA(p.type),typeName:i}),channels:p.channels}));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...u),t.events.kafka.push(...l),t.events.redis.push(...d)}return t}function hK(e){var n,r;let t=[];for(let i of e){let a=i.argumentNames.map(p=>new Gp({name:p,sourceType:zc.FIELD_ARGUMENT})),o=new Yp({argumentsConfiguration:a,fieldName:i.fieldName,typeName:i.typeName}),u=((n=i.requiredScopes)==null?void 0:n.map(p=>new Wc({requiredAndScopes:p})))||[],l=((r=i.requiredScopesByOR)==null?void 0:r.map(p=>new Wc({requiredAndScopes:p})))||[],d=u.length>0;if((i.requiresAuthentication||d)&&(o.authorizationConfiguration=new Qp({requiresAuthentication:i.requiresAuthentication||d,requiredOrScopes:u,requiredOrScopesByOr:l})),i.subscriptionFilterCondition){let p=new ju;kh(p,i.subscriptionFilterCondition),o.subscriptionFilterCondition=p}t.push(o)}return t}function kh(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new ju;kh(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new im({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new ju,kh(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new ju;kh(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}function ime(e){if(e&&!(e.fieldWeights.size===0&&e.listSizes.size===0&&e.typeWeights.size===0&&e.directiveArgumentWeights.size===0))return new jp({fieldWeights:[...e.fieldWeights.values()].map(t=>new Kp($(M({},t),{argumentWeights:Object.fromEntries(t.argumentWeights)}))),listSizes:[...e.listSizes.values()].map(t=>new $p(t)),typeWeights:Object.fromEntries(e.typeWeights),directiveArgumentWeights:Object.fromEntries(e.directiveArgumentWeights)})}var Zc;(function(e){e[e.Plugin=0]="Plugin",e[e.Standard=1]="Standard",e[e.GRPC=2]="GRPC"})(Zc||(Zc={}));var ame=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new rm({key:n})},sme=e=>{switch(e){case"ws":return Vs.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return Vs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return Vs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}},ome=e=>{switch(e){case"auto":return js.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return js.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return js.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}},IK=function(e){if(!Pd.ROUTER_COMPATIBILITY_VERSIONS.has(e.routerCompatibilityVersion))throw TK(e.routerCompatibilityVersion);let t=new Od({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw yA("ConfigurationDataByTypeName");if(!n.schema)throw yA("GraphQLSchema");let r={enabled:!0},i=ame(t,Dj((0,yK.lexicographicSortSchema)(n.schema))),{childNodes:a,entityInterfaces:o,events:u,interfaceObjects:l,keys:d,provides:p,requires:E,rootNodes:h}=EK(n.configurationDataByTypeName),v;switch(n.kind){case Zc.Standard:{r.enabled=!0,r.protocol=sme(n.subscriptionProtocol||"ws"),r.websocketSubprotocol=ome(n.websocketSubprotocol||"auto"),r.url=new Wr({kind:Vu.STATIC_CONFIGURATION_VARIABLE,staticVariableContent:n.subscriptionUrl||n.url});break}case Zc.Plugin:{v=new Ad({mapping:n.mapping,protoSchema:n.protoSchema,plugin:new Wp({name:n.name,version:n.version,imageReference:n.imageReference})});break}case Zc.GRPC:{v=new Ad({mapping:n.mapping,protoSchema:n.protoSchema});break}}let R,U,q;if(u.kafka.length>0||u.nats.length>0||u.redis.length>0){R=qu.PUBSUB,q=new Xc({kafka:u.kafka,nats:u.nats,redis:u.redis});let te=ye=>Pd.ROOT_TYPE_NAMES.has(ye.typeName),ae=0,me=0;for(;ae({id:n.id,name:n.name,routingUrl:n.url})),compatibilityVersion:`${e.routerCompatibilityVersion}:${Pd.COMPOSITION_VERSION}`})};m();T();N();var tl=Ii(Se());function gK(e){let t;try{t=(0,tl.parse)(e.schema)}catch(n){throw new Error(`could not parse schema for Graph ${e.name}: ${n}`)}return{definitions:t,name:e.name,url:e.url}}function ume(e){let t=(0,el.federateSubgraphs)({subgraphs:e.map(gK),version:el.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(n=>n.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:(0,tl.print)(t.federatedGraphAST)}}function cme(e){let t=(0,el.federateSubgraphs)({subgraphs:e.map(gK),version:el.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);return IK({federatedClientSDL:(0,tl.printSchema)(t.federatedGraphClientSchema),federatedSDL:(0,tl.printSchema)(t.federatedGraphSchema),fieldConfigurations:t.fieldConfigurations,routerCompatibilityVersion:el.LATEST_ROUTER_COMPATIBILITY_VERSION,schemaVersionId:"",subgraphs:e.map((r,i)=>{var l,d;let a=t.subgraphConfigBySubgraphName.get(r.name),o=a==null?void 0:a.schema,u=a==null?void 0:a.configurationDataByTypeName;return{kind:Zc.Standard,id:`${i}`,name:r.name,url:Db(r.url),sdl:r.schema,subscriptionUrl:Db((l=r.subscription_url)!=null?l:r.url),subscriptionProtocol:(d=r.subscription_protocol)!=null?d:"ws",websocketSubprotocol:r.subscription_protocol==="ws"?r.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:u}})}).toJsonString()}return Jm(lme);})(); /*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: diff --git a/composition-go/shim/package.json b/composition-go/shim/package.json index 8e3b114117..96b54fdc59 100644 --- a/composition-go/shim/package.json +++ b/composition-go/shim/package.json @@ -18,13 +18,13 @@ "dependencies": { "@wundergraph/composition": "workspace:*", "@wundergraph/cosmo-shared": "workspace:*", - "graphql": "^16.9.0" + "graphql": "catalog:" }, "devDependencies": { - "@types/node": "^20.8.10", + "@types/node": "catalog:", "esbuild": "^0.25.0", "esbuild-plugin-polyfill-node": "^0.3.0", "tsup": "^8.0.1", - "typescript": "^5.2.2" + "typescript": "catalog:" } } diff --git a/composition/package.json b/composition/package.json index f50e813cda..7acaaf022f 100644 --- a/composition/package.json +++ b/composition/package.json @@ -32,17 +32,17 @@ "dependencies": { "@graphql-tools/merge": "^9.0.0", "@graphql-tools/schema": "^10.0.0", - "@graphql-tools/utils": "^11.0.0", + "@graphql-tools/utils": "catalog:", "core-js": "^3.41.0", - "graphql": "^16.9.0", - "lodash": "4.18.1", + "graphql": "catalog:", + "lodash": "catalog:", "pathe": "^1.1.1" }, "devDependencies": { - "@types/lodash": "4.17.24", - "@vitest/coverage-v8": "3.2.4", - "del-cli": "^5.0.0", - "typescript": "5.5.2", - "vitest": "^3.2.4" + "@types/lodash": "catalog:", + "@vitest/coverage-v8": "catalog:", + "del-cli": "catalog:", + "typescript": "catalog:", + "vitest": "catalog:" } } diff --git a/connect/package.json b/connect/package.json index 5a8e2313b5..cc047b3b21 100644 --- a/connect/package.json +++ b/connect/package.json @@ -23,12 +23,12 @@ } }, "dependencies": { - "@bufbuild/protobuf": "1.9.0", - "@connectrpc/connect-query": "^1.4.1" + "@bufbuild/protobuf": "catalog:", + "@connectrpc/connect-query": "catalog:" }, "devDependencies": { - "del-cli": "^5.0.0", - "typescript": "^5.2.2" + "del-cli": "catalog:", + "typescript": "catalog:" }, "keywords": [ "wundergraph", diff --git a/controlplane/emails/package.json b/controlplane/emails/package.json index 3137499313..fffddbe20e 100644 --- a/controlplane/emails/package.json +++ b/controlplane/emails/package.json @@ -19,7 +19,7 @@ "@react-email/components": "0.0.36", "@types/react": "18.3.3", "@types/react-dom": "18.3.0", - "react": "18.3.1", + "react": "catalog:", "react-email": "4.0.3" } } diff --git a/controlplane/package.json b/controlplane/package.json index 1dd2f40b4a..581f7785cf 100644 --- a/controlplane/package.json +++ b/controlplane/package.json @@ -46,13 +46,13 @@ "dependencies": { "@aws-sdk/client-s3": "^3.996.0", "@bufbuild/buf": "^1.32.2", - "@connectrpc/connect": "1.5.0", + "@connectrpc/connect": "catalog:", "@connectrpc/connect-fastify": "1.5.0", - "@connectrpc/connect-node": "1.5.0", + "@connectrpc/connect-node": "catalog:", "@fastify/cors": "^9.0.1", "@graphql-eslint/eslint-plugin": "^3.20.1", "@graphql-inspector/core": "^6.2.1", - "@graphql-tools/utils": "^11.0.0", + "@graphql-tools/utils": "catalog:", "@keycloak/keycloak-admin-client": "26.5.4", "@octokit/webhooks-types": "^7.6.1", "@sentry/node": "^10.19.0", @@ -63,34 +63,34 @@ "@wundergraph/cosmo-connect": "workspace:*", "@wundergraph/cosmo-shared": "workspace:*", "@wundergraph/protographic": "workspace:*", - "axios": "1.13.5", + "axios": "catalog:", "axios-retry": "^4.5.0", "bullmq": "^5.10.0", "cookie": "^0.7.2", - "date-fns": "^3.6.0", - "dotenv": "^16.4.5", + "date-fns": "catalog:", + "dotenv": "catalog:", "drizzle-orm": "^0.35.3", "ejs": "^3.1.10", - "eslint": "^8.57.1", + "eslint": "catalog:", "execa": "^9.5.2", "fastify": "^4.28.1", "fastify-graceful-shutdown": "^4.0.1", "fastify-plugin": "^4.5.1", "fastify-raw-body": "^4.3.0", - "graphql": "^16.9.0", + "graphql": "catalog:", "http-proxy-agent": "8.0.0", "https-proxy-agent": "8.0.0", "ioredis": "^5.4.1", "isomorphic-dompurify": "^2.33.0", "jose": "^5.2.4", - "lodash-es": "4.18.1", + "lodash-es": "catalog:", "nodemailer": "^7.0.11", "nuid": "^1.1.6", "octokit": "^4.1.3", "openai": "^4.104.0", "p-limit": "^6.1.0", "p-retry": "^6.2.0", - "pino": "^8.19.0", + "pino": "catalog:", "postgres": "^3.4.5", "prom-client": "^15.1.3", "rxjs": "^7.8.1", @@ -100,32 +100,32 @@ "tinypool": "^2.1.0", "uid": "^2.0.2", "uuid": "^10.0.0", - "zod": "^3.25.0", + "zod": "catalog:", "zod-to-json-schema": "^3.22.4" }, "devDependencies": { - "@bufbuild/protobuf": "^1.9.0", + "@bufbuild/protobuf": "catalog:", "@bufbuild/protoc-gen-es": "^1.9.0", "@connectrpc/protoc-gen-connect-es": "^1.4.0", "@spotlightjs/spotlight": "^4.10.0", "@types/cookie": "^0.6.0", "@types/ejs": "^3.1.5", "@types/eslint": "^9.6.1", - "@types/lodash-es": "4.17.12", - "@types/node": "^18.19.21", + "@types/lodash-es": "catalog:", + "@types/node": "catalog:", "@types/nodemailer": "^7.0.3", "@types/stream-json": "^1.7.7", "@types/uuid": "^9.0.8", - "@vitest/coverage-v8": "3.2.4", - "del-cli": "^5.1.0", + "@vitest/coverage-v8": "catalog:", + "del-cli": "catalog:", "drizzle-kit": "^0.26.2", - "eslint-config-unjs": "^0.2.1", + "eslint-config-unjs": "catalog:", "eslint-plugin-local-rules": "^3.0.2", - "eslint-plugin-require-extensions": "^0.1.3", + "eslint-plugin-require-extensions": "catalog:", "msw": "^2.2.11", "pino-pretty": "^10.3.1", - "tsx": "^4.16.0", - "typescript": "5.5.2", - "vitest": "^3.2.4" + "tsx": "catalog:", + "typescript": "catalog:", + "vitest": "catalog:" } } diff --git a/package.json b/package.json index ba067e6672..f67ac4fb94 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "@bufbuild/protoc-gen-es": "^1.10.0", "@commitlint/cli": "19.8.0", "@commitlint/config-conventional": "19.8.0", - "@connectrpc/connect-query": "^1.4.1", + "@connectrpc/connect-query": "catalog:", "@connectrpc/protoc-gen-connect-es": "^1.4.0", "@connectrpc/protoc-gen-connect-query": "^1.4.1", "@lerna-lite/cli": "4.11.4", @@ -62,10 +62,10 @@ "@lerna-lite/version": "4.11.4", "husky": "^8.0.3", "lint-staged": "^15.2.10", - "prettier": "^3.6.2", + "prettier": "catalog:", "ts-node": "^10.9.2", - "typescript": "^5.5.2", - "vitest": "^3.2.4" + "typescript": "catalog:", + "vitest": "catalog:" }, "pnpm": { "overrides": { @@ -103,8 +103,7 @@ "minimatch@10.x": "10.2.4", "express-rate-limit": "8.2.2", "serialize-javascript": "7.0.3", - "markdown-it": "14.1.1", - "lodash": "4.18.1" + "markdown-it": "14.1.1" }, "patchedDependencies": { "graphql@16.9.0": "patches/graphql@16.9.0.patch" diff --git a/playground/package.json b/playground/package.json index 2318f2f040..1985e9189e 100644 --- a/playground/package.json +++ b/playground/package.json @@ -49,22 +49,22 @@ "@radix-ui/react-slot": "1.0.2", "@radix-ui/react-tabs": "^1.0.4", "@radix-ui/react-tooltip": "^1.0.7", - "axios": "1.13.5", + "axios": "catalog:", "change-case": "^5.2.0", "class-variance-authority": "^0.7.0", "clsx": "^2.0.0", "copy-to-clipboard": "^3.3.3", "crypto-js": "^4.2.0", "dagre": "^0.8.5", - "graphql": "^16.9.0", + "graphql": "catalog:", "graphql-ws": "^5.16.0", - "lodash": "4.18.1", + "lodash": "catalog:", "monaco-editor": "^0.45.0", - "prettier": "^3.1.0", + "prettier": "catalog:", "prism-react-renderer": "^2.3.0", "prismjs": "^1.30.0", - "react": "^18.3.1", - "react-dom": "^18.3.1", + "react": "catalog:", + "react-dom": "catalog:", "react-icons": "^4.12.0", "react-move-hook": "^0.1.2", "react-resizable-panels": "^1.0.5", @@ -75,8 +75,8 @@ "@tailwindcss/typography": "^0.5.10", "@types/crypto-js": "^4.2.2", "@types/dagre": "^0.7.52", - "@types/lodash": "4.17.24", - "@types/node": "^20.10.0", + "@types/lodash": "catalog:", + "@types/node": "catalog:", "@types/prismjs": "^1.26.3", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", @@ -87,7 +87,7 @@ "tailwind-scrollbar": "^3.1.0", "tailwindcss": "^3.4.15", "tailwindcss-animate": "^1.0.7", - "typescript": "^5.5.2", + "typescript": "catalog:", "vite": "^5.4.21", "vite-plugin-dts": "4.5.4", "vite-plugin-html": "^3.2.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 20f4166308..35a16f2910 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,93 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +catalogs: + default: + '@bufbuild/protobuf': + specifier: ^1.9.0 + version: 1.10.0 + '@connectrpc/connect': + specifier: 1.5.0 + version: 1.5.0 + '@connectrpc/connect-node': + specifier: 1.5.0 + version: 1.5.0 + '@connectrpc/connect-query': + specifier: ^1.4.1 + version: 1.4.1 + '@connectrpc/connect-web': + specifier: 1.5.0 + version: 1.5.0 + '@graphql-tools/utils': + specifier: ^11.0.0 + version: 11.0.0 + '@types/lodash': + specifier: 4.17.24 + version: 4.17.24 + '@types/lodash-es': + specifier: 4.17.12 + version: 4.17.12 + '@types/node': + specifier: ^22.0.0 + version: 22.17.0 + '@types/react': + specifier: 18.3.3 + version: 18.3.3 + '@types/react-dom': + specifier: 18.3.0 + version: 18.3.0 + '@vitest/coverage-v8': + specifier: 3.2.4 + version: 3.2.4 + axios: + specifier: 1.13.5 + version: 1.13.5 + date-fns: + specifier: ^3.6.0 + version: 3.6.0 + del-cli: + specifier: ^5.1.0 + version: 5.1.0 + dotenv: + specifier: 16.6.0 + version: 16.6.0 + eslint: + specifier: ^8.57.1 + version: 8.57.1 + eslint-config-unjs: + specifier: ^0.2.1 + version: 0.2.1 + eslint-plugin-require-extensions: + specifier: ^0.1.3 + version: 0.1.3 + hono: + specifier: 4.12.12 + version: 4.12.12 + lodash: + specifier: 4.18.1 + version: 4.18.1 + lodash-es: + specifier: 4.18.1 + version: 4.18.1 + pino: + specifier: ^8.19.0 + version: 8.19.0 + prettier: + specifier: ^3.6.2 + version: 3.6.2 + react-dom: + specifier: 18.3.1 + version: 18.3.1 + tsx: + specifier: ^4.16.0 + version: 4.19.4 + typescript: + specifier: 5.5.2 + version: 5.5.2 + vitest: + specifier: ^3.2.4 + version: 3.2.4 + overrides: react: 18.3.1 graphql: 16.9.0 @@ -40,7 +127,6 @@ overrides: express-rate-limit: 8.2.2 serialize-javascript: 7.0.3 markdown-it: 14.1.1 - lodash: 4.18.1 patchedDependencies: graphql@16.9.0: @@ -74,7 +160,7 @@ importers: specifier: 19.8.0 version: 19.8.0 '@connectrpc/connect-query': - specifier: ^1.4.1 + specifier: 'catalog:' version: 1.4.1(@bufbuild/protobuf@1.10.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0))(@tanstack/react-query@5.37.1(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@connectrpc/protoc-gen-connect-es': specifier: ^1.4.0 @@ -98,16 +184,16 @@ importers: specifier: ^15.2.10 version: 15.2.10 prettier: - specifier: ^3.6.2 + specifier: 'catalog:' version: 3.6.2 ts-node: specifier: ^10.9.2 version: 10.9.2(@types/node@22.17.0)(typescript@5.5.2) typescript: - specifier: ^5.5.2 + specifier: 'catalog:' version: 5.5.2 vitest: - specifier: ^3.2.4 + specifier: 'catalog:' version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) admission-server: @@ -119,21 +205,21 @@ importers: specifier: workspace:^ version: link:../shared dotenv: - specifier: ^16.4.5 - version: 16.4.5 + specifier: 'catalog:' + version: 16.6.0 hono: - specifier: 4.12.12 + specifier: 'catalog:' version: 4.12.12 devDependencies: '@types/node': - specifier: ^20.11.17 - version: 20.11.26 + specifier: 'catalog:' + version: 22.17.0 tsx: - specifier: ^4.16.0 - version: 4.16.0 + specifier: 'catalog:' + version: 4.19.4 typescript: - specifier: ^5.3.2 - version: 5.3.2 + specifier: 'catalog:' + version: 5.5.2 aws-lambda-router: {} @@ -149,63 +235,63 @@ importers: specifier: workspace:* version: link:cdn dotenv: - specifier: ^16.4.5 - version: 16.4.5 + specifier: 'catalog:' + version: 16.6.0 hono: - specifier: 4.12.12 + specifier: 'catalog:' version: 4.12.12 devDependencies: '@types/node': - specifier: ^20.9.0 - version: 20.9.0 + specifier: 'catalog:' + version: 22.17.0 eslint: - specifier: ^8.57.1 + specifier: 'catalog:' version: 8.57.1 eslint-config-unjs: - specifier: ^0.2.1 + specifier: 'catalog:' version: 0.2.1(eslint@8.57.1)(typescript@5.5.2) tsx: - specifier: ^4.16.0 - version: 4.16.0 + specifier: 'catalog:' + version: 4.19.4 typescript: - specifier: 5.5.2 + specifier: 'catalog:' version: 5.5.2 cdn-server/cdn: dependencies: hono: - specifier: 4.12.12 + specifier: 'catalog:' version: 4.12.12 jose: specifier: ^5.2.4 version: 5.2.4 devDependencies: eslint: - specifier: ^8.57.1 + specifier: 'catalog:' version: 8.57.1 eslint-config-unjs: - specifier: ^0.2.1 + specifier: 'catalog:' version: 0.2.1(eslint@8.57.1)(typescript@5.5.2) typescript: - specifier: 5.5.2 + specifier: 'catalog:' version: 5.5.2 vitest: - specifier: ^3.2.4 + specifier: 'catalog:' version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) cli: dependencies: '@bufbuild/protobuf': - specifier: 1.9.0 - version: 1.9.0 + specifier: 'catalog:' + version: 1.10.0 '@connectrpc/connect': - specifier: 1.4.0 - version: 1.4.0(@bufbuild/protobuf@1.9.0) + specifier: 'catalog:' + version: 1.5.0(@bufbuild/protobuf@1.10.0) '@connectrpc/connect-node': - specifier: 1.4.0 - version: 1.4.0(@bufbuild/protobuf@1.9.0)(@connectrpc/connect@1.4.0(@bufbuild/protobuf@1.9.0)) + specifier: 'catalog:' + version: 1.5.0(@bufbuild/protobuf@1.10.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0)) '@graphql-tools/utils': - specifier: 11.0.0 + specifier: 'catalog:' version: 11.0.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@modelcontextprotocol/sdk': specifier: 1.26.0 @@ -229,7 +315,7 @@ importers: specifier: 8.18.0 version: 8.18.0 axios: - specifier: 1.13.5 + specifier: 'catalog:' version: 1.13.5 boxen: specifier: 7.1.1 @@ -244,13 +330,13 @@ importers: specifier: 11.1.0 version: 11.1.0 date-fns: - specifier: 3.6.0 + specifier: 'catalog:' version: 3.6.0 decompress: specifier: 4.2.1 version: 4.2.1 dotenv: - specifier: 16.6.0 + specifier: 'catalog:' version: 16.6.0 env-ci: specifier: 11.1.0 @@ -280,7 +366,7 @@ importers: specifier: 3.1.2 version: 3.1.2 lodash-es: - specifier: 4.18.1 + specifier: 'catalog:' version: 4.18.1 log-symbols: specifier: 5.1.0 @@ -350,11 +436,11 @@ importers: specifier: 4.0.5 version: 4.0.5 '@types/lodash-es': - specifier: 4.17.12 + specifier: 'catalog:' version: 4.17.12 '@types/node': - specifier: 20.12.12 - version: 20.12.12 + specifier: 'catalog:' + version: 22.17.0 '@types/prompts': specifier: 2.4.9 version: 2.4.9 @@ -362,29 +448,29 @@ importers: specifier: 7.7.0 version: 7.7.0 '@vitest/coverage-v8': - specifier: 3.2.4 - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@20.12.12)(jsdom@27.2.0)(terser@5.44.1)) + specifier: 'catalog:' + version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1)) del-cli: - specifier: 5.0.0 - version: 5.0.0 + specifier: 'catalog:' + version: 5.1.0 eslint: - specifier: 8.57.1 + specifier: 'catalog:' version: 8.57.1 eslint-config-unjs: - specifier: 0.2.1 + specifier: 'catalog:' version: 0.2.1(eslint@8.57.1)(typescript@5.5.2) eslint-plugin-require-extensions: - specifier: 0.1.3 + specifier: 'catalog:' version: 0.1.3(eslint@8.57.1) tsx: - specifier: 4.19.4 + specifier: 'catalog:' version: 4.19.4 typescript: - specifier: 5.5.2 + specifier: 'catalog:' version: 5.5.2 vitest: - specifier: 3.2.4 - version: 3.2.4(@types/debug@4.1.12)(@types/node@20.12.12)(jsdom@27.2.0)(terser@5.44.1) + specifier: 'catalog:' + version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) composition: dependencies: @@ -395,7 +481,7 @@ importers: specifier: ^10.0.0 version: 10.0.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-tools/utils': - specifier: ^11.0.0 + specifier: 'catalog:' version: 11.0.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) core-js: specifier: ^3.41.0 @@ -404,26 +490,26 @@ importers: specifier: 16.9.0 version: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) lodash: - specifier: 4.18.1 + specifier: 'catalog:' version: 4.18.1 pathe: specifier: ^1.1.1 version: 1.1.2 devDependencies: '@types/lodash': - specifier: 4.17.24 + specifier: 'catalog:' version: 4.17.24 '@vitest/coverage-v8': - specifier: 3.2.4 + specifier: 'catalog:' version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1)) del-cli: - specifier: ^5.0.0 - version: 5.0.0 + specifier: 'catalog:' + version: 5.1.0 typescript: - specifier: 5.5.2 + specifier: 'catalog:' version: 5.5.2 vitest: - specifier: ^3.2.4 + specifier: 'catalog:' version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) composition-go/shim: @@ -439,8 +525,8 @@ importers: version: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) devDependencies: '@types/node': - specifier: ^20.8.10 - version: 20.8.10 + specifier: 'catalog:' + version: 22.17.0 esbuild: specifier: ^0.25.0 version: 0.25.1 @@ -449,26 +535,26 @@ importers: version: 0.3.0(esbuild@0.25.1) tsup: specifier: ^8.0.1 - version: 8.0.1(@microsoft/api-extractor@7.58.2(@types/node@20.8.10))(postcss@8.5.6)(ts-node@10.9.2(@types/node@20.8.10)(typescript@5.2.2))(typescript@5.2.2) + version: 8.0.1(@microsoft/api-extractor@7.58.2(@types/node@22.17.0))(postcss@8.5.6)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))(typescript@5.5.2) typescript: - specifier: ^5.2.2 - version: 5.2.2 + specifier: 'catalog:' + version: 5.5.2 connect: dependencies: '@bufbuild/protobuf': - specifier: 1.9.0 - version: 1.9.0 + specifier: 'catalog:' + version: 1.10.0 '@connectrpc/connect-query': - specifier: ^1.4.1 - version: 1.4.1(@bufbuild/protobuf@1.9.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.9.0))(@tanstack/react-query@5.37.1(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 'catalog:' + version: 1.4.1(@bufbuild/protobuf@1.10.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0))(@tanstack/react-query@5.37.1(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) devDependencies: del-cli: - specifier: ^5.0.0 - version: 5.0.0 + specifier: 'catalog:' + version: 5.1.0 typescript: - specifier: ^5.2.2 - version: 5.2.2 + specifier: 'catalog:' + version: 5.5.2 controlplane: dependencies: @@ -479,25 +565,25 @@ importers: specifier: ^1.32.2 version: 1.32.2 '@connectrpc/connect': - specifier: 1.5.0 - version: 1.5.0(@bufbuild/protobuf@1.9.0) + specifier: 'catalog:' + version: 1.5.0(@bufbuild/protobuf@1.10.0) '@connectrpc/connect-fastify': specifier: 1.5.0 - version: 1.5.0(@bufbuild/protobuf@1.9.0)(@connectrpc/connect-node@1.5.0(@bufbuild/protobuf@1.9.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.9.0)))(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.9.0))(fastify@4.28.1) + version: 1.5.0(@bufbuild/protobuf@1.10.0)(@connectrpc/connect-node@1.5.0(@bufbuild/protobuf@1.10.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0)))(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0))(fastify@4.28.1) '@connectrpc/connect-node': - specifier: 1.5.0 - version: 1.5.0(@bufbuild/protobuf@1.9.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.9.0)) + specifier: 'catalog:' + version: 1.5.0(@bufbuild/protobuf@1.10.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0)) '@fastify/cors': specifier: ^9.0.1 version: 9.0.1 '@graphql-eslint/eslint-plugin': specifier: ^3.20.1 - version: 3.20.1(@babel/core@7.24.5)(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + version: 3.20.1(@babel/core@7.24.5)(@types/node@22.17.0)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-inspector/core': specifier: ^6.2.1 version: 6.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-tools/utils': - specifier: ^11.0.0 + specifier: 'catalog:' version: 11.0.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@keycloak/keycloak-admin-client': specifier: 26.5.4 @@ -530,7 +616,7 @@ importers: specifier: workspace:* version: link:../protographic axios: - specifier: 1.13.5 + specifier: 'catalog:' version: 1.13.5 axios-retry: specifier: ^4.5.0 @@ -542,11 +628,11 @@ importers: specifier: ^0.7.2 version: 0.7.2 date-fns: - specifier: ^3.6.0 + specifier: 'catalog:' version: 3.6.0 dotenv: - specifier: ^16.4.5 - version: 16.4.5 + specifier: 'catalog:' + version: 16.6.0 drizzle-orm: specifier: ^0.35.3 version: 0.35.3(@libsql/client-wasm@0.14.0)(@opentelemetry/api@1.9.0)(@types/pg@8.15.6)(@types/react@18.3.3)(bun-types@1.2.12)(postgres@3.4.5)(react@18.3.1) @@ -554,7 +640,7 @@ importers: specifier: ^3.1.10 version: 3.1.10 eslint: - specifier: ^8.57.1 + specifier: 'catalog:' version: 8.57.1 execa: specifier: ^9.5.2 @@ -590,7 +676,7 @@ importers: specifier: ^5.2.4 version: 5.2.4 lodash-es: - specifier: 4.18.1 + specifier: 'catalog:' version: 4.18.1 nodemailer: specifier: ^7.0.11 @@ -611,7 +697,7 @@ importers: specifier: ^6.2.0 version: 6.2.0 pino: - specifier: ^8.19.0 + specifier: 'catalog:' version: 8.19.0 postgres: specifier: ^3.4.5 @@ -648,14 +734,14 @@ importers: version: 3.22.4(zod@3.25.76) devDependencies: '@bufbuild/protobuf': - specifier: ^1.9.0 - version: 1.9.0 + specifier: 'catalog:' + version: 1.10.0 '@bufbuild/protoc-gen-es': specifier: ^1.9.0 - version: 1.9.0(@bufbuild/protobuf@1.9.0) + version: 1.9.0(@bufbuild/protobuf@1.10.0) '@connectrpc/protoc-gen-connect-es': specifier: ^1.4.0 - version: 1.4.0(@bufbuild/protoc-gen-es@1.9.0(@bufbuild/protobuf@1.9.0))(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.9.0)) + version: 1.4.0(@bufbuild/protoc-gen-es@1.9.0(@bufbuild/protobuf@1.10.0))(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0)) '@spotlightjs/spotlight': specifier: ^4.10.0 version: 4.11.3(hono-rate-limiter@0.4.2(hono@4.12.12)) @@ -669,11 +755,11 @@ importers: specifier: ^9.6.1 version: 9.6.1 '@types/lodash-es': - specifier: 4.17.12 + specifier: 'catalog:' version: 4.17.12 '@types/node': - specifier: ^18.19.21 - version: 18.19.21 + specifier: 'catalog:' + version: 22.17.0 '@types/nodemailer': specifier: ^7.0.3 version: 7.0.4 @@ -684,22 +770,22 @@ importers: specifier: ^9.0.8 version: 9.0.8 '@vitest/coverage-v8': - specifier: 3.2.4 - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@18.19.21)(jsdom@27.2.0)(msw@2.2.11(typescript@5.5.2))(terser@5.44.1)) + specifier: 'catalog:' + version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@5.5.2))(terser@5.44.1)) del-cli: - specifier: ^5.1.0 + specifier: 'catalog:' version: 5.1.0 drizzle-kit: specifier: ^0.26.2 version: 0.26.2 eslint-config-unjs: - specifier: ^0.2.1 + specifier: 'catalog:' version: 0.2.1(eslint@8.57.1)(typescript@5.5.2) eslint-plugin-local-rules: specifier: ^3.0.2 version: 3.0.2 eslint-plugin-require-extensions: - specifier: ^0.1.3 + specifier: 'catalog:' version: 0.1.3(eslint@8.57.1) msw: specifier: ^2.2.11 @@ -708,14 +794,14 @@ importers: specifier: ^10.3.1 version: 10.3.1 tsx: - specifier: ^4.16.0 - version: 4.16.0 + specifier: 'catalog:' + version: 4.19.4 typescript: - specifier: 5.5.2 + specifier: 'catalog:' version: 5.5.2 vitest: - specifier: ^3.2.4 - version: 3.2.4(@types/debug@4.1.12)(@types/node@18.19.21)(jsdom@27.2.0)(msw@2.2.11(typescript@5.5.2))(terser@5.44.1) + specifier: 'catalog:' + version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@5.5.2))(terser@5.44.1) controlplane/emails: devDependencies: @@ -778,7 +864,7 @@ importers: specifier: ^1.0.7 version: 1.1.2(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) axios: - specifier: 1.13.5 + specifier: 'catalog:' version: 1.13.5 change-case: specifier: ^5.2.0 @@ -805,14 +891,14 @@ importers: specifier: ^5.16.0 version: 5.16.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) lodash: - specifier: 4.18.1 + specifier: 'catalog:' version: 4.18.1 monaco-editor: specifier: ^0.45.0 version: 0.45.0 prettier: - specifier: ^3.1.0 - version: 3.2.5 + specifier: 'catalog:' + version: 3.6.2 prism-react-renderer: specifier: ^2.3.0 version: 2.3.1(react@18.3.1) @@ -823,7 +909,7 @@ importers: specifier: 18.3.1 version: 18.3.1 react-dom: - specifier: ^18.3.1 + specifier: 'catalog:' version: 18.3.1(react@18.3.1) react-icons: specifier: ^4.12.0 @@ -843,7 +929,7 @@ importers: devDependencies: '@tailwindcss/typography': specifier: ^0.5.10 - version: 0.5.13(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@20.12.12)(typescript@5.5.2))) + version: 0.5.13(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))) '@types/crypto-js': specifier: ^4.2.2 version: 4.2.2 @@ -851,11 +937,11 @@ importers: specifier: ^0.7.52 version: 0.7.52 '@types/lodash': - specifier: 4.17.24 + specifier: 'catalog:' version: 4.17.24 '@types/node': - specifier: ^20.10.0 - version: 20.12.12 + specifier: 'catalog:' + version: 22.17.0 '@types/prismjs': specifier: ^1.26.3 version: 1.26.3 @@ -867,7 +953,7 @@ importers: version: 18.3.0 '@vitejs/plugin-react': specifier: ^4.3.1 - version: 4.3.1(vite@5.4.21(@types/node@20.12.12)(terser@5.44.1)) + version: 4.3.1(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) autoprefixer: specifier: ^10.4.16 version: 10.4.19(postcss@8.4.38) @@ -879,33 +965,33 @@ importers: version: 2.0.0 tailwind-scrollbar: specifier: ^3.1.0 - version: 3.1.0(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@20.12.12)(typescript@5.5.2))) + version: 3.1.0(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))) tailwindcss: specifier: ^3.4.15 - version: 3.4.15(ts-node@10.9.2(@types/node@20.12.12)(typescript@5.5.2)) + version: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) tailwindcss-animate: specifier: ^1.0.7 - version: 1.0.7(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@20.12.12)(typescript@5.5.2))) + version: 1.0.7(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))) typescript: - specifier: ^5.5.2 + specifier: 'catalog:' version: 5.5.2 vite: specifier: ^5.4.21 - version: 5.4.21(@types/node@20.12.12)(terser@5.44.1) + version: 5.4.21(@types/node@22.17.0)(terser@5.44.1) vite-plugin-dts: specifier: 4.5.4 - version: 4.5.4(@types/node@20.12.12)(rollup@4.59.0)(typescript@5.5.2)(vite@5.4.21(@types/node@20.12.12)(terser@5.44.1)) + version: 4.5.4(@types/node@22.17.0)(rollup@4.59.0)(typescript@5.5.2)(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) vite-plugin-html: specifier: ^3.2.2 - version: 3.2.2(vite@5.4.21(@types/node@20.12.12)(terser@5.44.1)) + version: 3.2.2(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) vite-plugin-singlefile: specifier: ^2.2.0 - version: 2.2.0(rollup@4.59.0)(vite@5.4.21(@types/node@20.12.12)(terser@5.44.1)) + version: 2.2.0(rollup@4.59.0)(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) protographic: dependencies: '@bufbuild/protobuf': - specifier: ^1.8.0 + specifier: 'catalog:' version: 1.10.0 '@wundergraph/composition': specifier: workspace:* @@ -917,36 +1003,36 @@ importers: specifier: 16.9.0 version: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) lodash-es: - specifier: 4.18.1 + specifier: 'catalog:' version: 4.18.1 protobufjs: specifier: ^7.5.5 version: 7.5.5 devDependencies: '@types/lodash-es': - specifier: 4.17.12 + specifier: 'catalog:' version: 4.17.12 '@types/node': - specifier: ^20.11.5 - version: 20.12.12 + specifier: 'catalog:' + version: 22.17.0 '@vitest/coverage-v8': - specifier: 3.2.4 - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@20.12.12)(jsdom@27.2.0)(terser@5.44.1)) + specifier: 'catalog:' + version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1)) eslint: - specifier: 8.57.1 + specifier: 'catalog:' version: 8.57.1 eslint-config-unjs: - specifier: 0.2.1 + specifier: 'catalog:' version: 0.2.1(eslint@8.57.1)(typescript@5.5.2) eslint-plugin-require-extensions: - specifier: 0.1.3 + specifier: 'catalog:' version: 0.1.3(eslint@8.57.1) typescript: - specifier: ^5.0.0 + specifier: 'catalog:' version: 5.5.2 vitest: - specifier: ^3.2.4 - version: 3.2.4(@types/debug@4.1.12)(@types/node@20.12.12)(jsdom@27.2.0)(terser@5.44.1) + specifier: 'catalog:' + version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) router: {} @@ -955,13 +1041,13 @@ importers: shared: dependencies: '@bufbuild/protobuf': - specifier: ^1.9.0 - version: 1.9.0 + specifier: 'catalog:' + version: 1.10.0 '@graphql-tools/schema': specifier: ^8.5.1 version: 8.5.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-tools/utils': - specifier: ^11.0.0 + specifier: 'catalog:' version: 11.0.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@wundergraph/composition': specifier: workspace:* @@ -973,39 +1059,39 @@ importers: specifier: 16.9.0 version: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) pino: - specifier: ^8.14.1 - version: 8.14.1 + specifier: 'catalog:' + version: 8.19.0 devDependencies: '@types/node': - specifier: ^20.3.1 - version: 20.3.1 + specifier: 'catalog:' + version: 22.17.0 del-cli: - specifier: ^5.0.0 - version: 5.0.0 + specifier: 'catalog:' + version: 5.1.0 tsx: - specifier: ^3.14.0 - version: 3.14.0 + specifier: 'catalog:' + version: 4.19.4 typescript: - specifier: 5.5.2 + specifier: 'catalog:' version: 5.5.2 vitest: - specifier: ^3.2.4 - version: 3.2.4(@types/debug@4.1.12)(@types/node@20.3.1)(jsdom@27.2.0)(terser@5.44.1) + specifier: 'catalog:' + version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(terser@5.44.1) studio: dependencies: '@bufbuild/protobuf': - specifier: ^1.9.0 - version: 1.9.0 + specifier: 'catalog:' + version: 1.10.0 '@connectrpc/connect': - specifier: ^1.4.0 - version: 1.4.0(@bufbuild/protobuf@1.9.0) + specifier: 'catalog:' + version: 1.5.0(@bufbuild/protobuf@1.10.0) '@connectrpc/connect-query': - specifier: ^1.4.1 - version: 1.4.1(@bufbuild/protobuf@1.9.0)(@connectrpc/connect@1.4.0(@bufbuild/protobuf@1.9.0))(@tanstack/react-query@5.37.1(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 'catalog:' + version: 1.4.1(@bufbuild/protobuf@1.10.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0))(@tanstack/react-query@5.37.1(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@connectrpc/connect-web': - specifier: ^1.4.0 - version: 1.4.0(@bufbuild/protobuf@1.9.0)(@connectrpc/connect@1.4.0(@bufbuild/protobuf@1.9.0)) + specifier: 'catalog:' + version: 1.5.0(@bufbuild/protobuf@1.10.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0)) '@headlessui/react': specifier: ^1.7.15 version: 1.7.15(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1127,7 +1213,7 @@ importers: specifier: workspace:* version: link:../connect axios: - specifier: 1.13.5 + specifier: 'catalog:' version: 1.13.5 bowser: specifier: ^2.11.0 @@ -1157,7 +1243,7 @@ importers: specifier: ^0.8.5 version: 0.8.5 date-fns: - specifier: ^3.6.0 + specifier: 'catalog:' version: 3.6.0 date-fns-tz: specifier: ^3.1.3 @@ -1184,7 +1270,7 @@ importers: specifier: ^3.0.5 version: 3.0.5 lodash: - specifier: 4.18.1 + specifier: 'catalog:' version: 4.18.1 lz-string: specifier: ^1.5.0 @@ -1223,7 +1309,7 @@ importers: specifier: ^8.8.0 version: 8.8.0(date-fns@3.6.0)(react@18.3.1) react-dom: - specifier: ^18.3.1 + specifier: 'catalog:' version: 18.3.1(react@18.3.1) react-hook-form: specifier: ^7.45.1 @@ -1257,13 +1343,13 @@ importers: version: 2.0.0 tailwind-scrollbar: specifier: ^3.1.0 - version: 3.1.0(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.5.2))) + version: 3.1.0(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))) tailwindcss: specifier: ^3.4.15 - version: 3.4.15(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.5.2)) + version: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) tailwindcss-animate: specifier: ^1.0.7 - version: 1.0.7(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.5.2))) + version: 1.0.7(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))) tiptap-markdown: specifier: ^0.8.8 version: 0.8.8(@tiptap/core@2.4.0(@tiptap/pm@2.1.13)) @@ -1279,7 +1365,7 @@ importers: devDependencies: '@tailwindcss/typography': specifier: ^0.5.9 - version: 0.5.9(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.5.2))) + version: 0.5.9(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))) '@testing-library/react': specifier: ^14.1.2 version: 14.1.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1296,26 +1382,26 @@ importers: specifier: ^3.0.6 version: 3.0.6 '@types/lodash': - specifier: 4.17.24 + specifier: 'catalog:' version: 4.17.24 '@types/node': - specifier: 20.3.1 - version: 20.3.1 + specifier: 'catalog:' + version: 22.17.0 '@types/prismjs': specifier: ^1.26.3 version: 1.26.3 '@types/react': - specifier: 18.3.3 + specifier: 'catalog:' version: 18.3.3 '@types/react-dom': - specifier: 18.3.0 + specifier: 'catalog:' version: 18.3.0 '@vitejs/plugin-react': specifier: ^4.2.1 - version: 4.2.1(vite@5.4.21(@types/node@20.3.1)(terser@5.44.1)) + version: 4.2.1(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) '@vitest/coverage-v8': - specifier: 3.2.4 - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@20.3.1)(jsdom@23.2.0)(terser@5.44.1)) + specifier: 'catalog:' + version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@23.2.0)(terser@5.44.1)) autoprefixer: specifier: 10.4.14 version: 10.4.14(postcss@8.4.38) @@ -1323,7 +1409,7 @@ importers: specifier: ^7.0.3 version: 7.0.3 eslint: - specifier: ^8.57.1 + specifier: 'catalog:' version: 8.57.1 eslint-config-next: specifier: 13.4.7 @@ -1338,11 +1424,11 @@ importers: specifier: ^0.5.6 version: 0.5.6(prettier@3.6.2) typescript: - specifier: 5.5.2 + specifier: 'catalog:' version: 5.5.2 vitest: - specifier: ^3.2.4 - version: 3.2.4(@types/debug@4.1.12)(@types/node@20.3.1)(jsdom@23.2.0)(terser@5.44.1) + specifier: 'catalog:' + version: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@23.2.0)(terser@5.44.1) packages: @@ -2449,13 +2535,6 @@ packages: '@connectrpc/connect-node': 1.5.0 fastify: ^4.22.1 - '@connectrpc/connect-node@1.4.0': - resolution: {integrity: sha512-0ANnrr6SvsjevsWEgdzHy7BaHkluZyS6s4xNoVt7RBHFR5V/kT9lPokoIbYUOU9JHzdRgTaS3x5595mwUsu15g==} - engines: {node: '>=16.0.0'} - peerDependencies: - '@bufbuild/protobuf': ^1.4.2 - '@connectrpc/connect': 1.4.0 - '@connectrpc/connect-node@1.5.0': resolution: {integrity: sha512-go27+V6c6/YOGMXUs7d1NbXnGpMJl5fKYfMtbBKDs9azZTg/tW9q5S0iw9upZs43bOPV8YnJAWmTW9n1Te9NAw==} engines: {node: '>=16.0.0'} @@ -2472,16 +2551,11 @@ packages: react: 18.3.1 react-dom: ^18.3.1 - '@connectrpc/connect-web@1.4.0': - resolution: {integrity: sha512-13aO4psFbbm7rdOFGV0De2Za64DY/acMspgloDlcOKzLPPs0yZkhp1OOzAQeiAIr7BM/VOHIA3p8mF0inxCYTA==} - peerDependencies: - '@bufbuild/protobuf': ^1.4.2 - '@connectrpc/connect': 1.4.0 - - '@connectrpc/connect@1.4.0': - resolution: {integrity: sha512-vZeOkKaAjyV4+RH3+rJZIfDFJAfr+7fyYr6sLDKbYX3uuTVszhFe9/YKf5DNqrDb5cKdKVlYkGn6DTDqMitAnA==} + '@connectrpc/connect-web@1.5.0': + resolution: {integrity: sha512-xjiiQ932Kibddaka18fGZ6yQL7xjXuLcYFYh/cU+q1WWEIrFPkZfViG/Ee6yrZbrlZkjcBuDibng+q7baTndfg==} peerDependencies: - '@bufbuild/protobuf': ^1.4.2 + '@bufbuild/protobuf': ^1.10.0 + '@connectrpc/connect': 1.5.0 '@connectrpc/connect@1.5.0': resolution: {integrity: sha512-1gGg0M6c2Y3lnr5itis9dNj9r8hbOIuBMqoGSbUy7L7Vjw4MAttjJzJfj9HCDgytGCJkGanYEYI6MQVDijdVQw==} @@ -2699,12 +2773,6 @@ packages: cpu: [arm64] os: [android] - '@esbuild/android-arm64@0.18.20': - resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - '@esbuild/android-arm64@0.19.11': resolution: {integrity: sha512-aiu7K/5JnLj//KOnOfEZ0D90obUkRzDMyqd/wNAUQ34m4YUPVhRZpnqKV9uqDGxT7cToSDnIHsGooyIczu9T+Q==} engines: {node: '>=12'} @@ -2741,12 +2809,6 @@ packages: cpu: [arm] os: [android] - '@esbuild/android-arm@0.18.20': - resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==} - engines: {node: '>=12'} - cpu: [arm] - os: [android] - '@esbuild/android-arm@0.19.11': resolution: {integrity: sha512-5OVapq0ClabvKvQ58Bws8+wkLCV+Rxg7tUVbo9xu034Nm536QTII4YzhaFriQ7rMrorfnFKUsArD2lqKbFY4vw==} engines: {node: '>=12'} @@ -2783,12 +2845,6 @@ packages: cpu: [x64] os: [android] - '@esbuild/android-x64@0.18.20': - resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - '@esbuild/android-x64@0.19.11': resolution: {integrity: sha512-eccxjlfGw43WYoY9QgB82SgGgDbibcqyDTlk3l3C0jOVHKxrjdc9CTwDUQd0vkvYg5um0OH+GpxYvp39r+IPOg==} engines: {node: '>=12'} @@ -2825,12 +2881,6 @@ packages: cpu: [arm64] os: [darwin] - '@esbuild/darwin-arm64@0.18.20': - resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - '@esbuild/darwin-arm64@0.19.11': resolution: {integrity: sha512-ETp87DRWuSt9KdDVkqSoKoLFHYTrkyz2+65fj9nfXsaV3bMhTCjtQfw3y+um88vGRKRiF7erPrh/ZuIdLUIVxQ==} engines: {node: '>=12'} @@ -2867,12 +2917,6 @@ packages: cpu: [x64] os: [darwin] - '@esbuild/darwin-x64@0.18.20': - resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - '@esbuild/darwin-x64@0.19.11': resolution: {integrity: sha512-fkFUiS6IUK9WYUO/+22omwetaSNl5/A8giXvQlcinLIjVkxwTLSktbF5f/kJMftM2MJp9+fXqZ5ezS7+SALp4g==} engines: {node: '>=12'} @@ -2909,12 +2953,6 @@ packages: cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-arm64@0.18.20': - resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - '@esbuild/freebsd-arm64@0.19.11': resolution: {integrity: sha512-lhoSp5K6bxKRNdXUtHoNc5HhbXVCS8V0iZmDvyWvYq9S5WSfTIHU2UGjcGt7UeS6iEYp9eeymIl5mJBn0yiuxA==} engines: {node: '>=12'} @@ -2951,12 +2989,6 @@ packages: cpu: [x64] os: [freebsd] - '@esbuild/freebsd-x64@0.18.20': - resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - '@esbuild/freebsd-x64@0.19.11': resolution: {integrity: sha512-JkUqn44AffGXitVI6/AbQdoYAq0TEullFdqcMY/PCUZ36xJ9ZJRtQabzMA+Vi7r78+25ZIBosLTOKnUXBSi1Kw==} engines: {node: '>=12'} @@ -2993,12 +3025,6 @@ packages: cpu: [arm64] os: [linux] - '@esbuild/linux-arm64@0.18.20': - resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - '@esbuild/linux-arm64@0.19.11': resolution: {integrity: sha512-LneLg3ypEeveBSMuoa0kwMpCGmpu8XQUh+mL8XXwoYZ6Be2qBnVtcDI5azSvh7vioMDhoJFZzp9GWp9IWpYoUg==} engines: {node: '>=12'} @@ -3035,12 +3061,6 @@ packages: cpu: [arm] os: [linux] - '@esbuild/linux-arm@0.18.20': - resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - '@esbuild/linux-arm@0.19.11': resolution: {integrity: sha512-3CRkr9+vCV2XJbjwgzjPtO8T0SZUmRZla+UL1jw+XqHZPkPgZiyWvbDvl9rqAN8Zl7qJF0O/9ycMtjU67HN9/Q==} engines: {node: '>=12'} @@ -3077,12 +3097,6 @@ packages: cpu: [ia32] os: [linux] - '@esbuild/linux-ia32@0.18.20': - resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - '@esbuild/linux-ia32@0.19.11': resolution: {integrity: sha512-caHy++CsD8Bgq2V5CodbJjFPEiDPq8JJmBdeyZ8GWVQMjRD0sU548nNdwPNvKjVpamYYVL40AORekgfIubwHoA==} engines: {node: '>=12'} @@ -3119,12 +3133,6 @@ packages: cpu: [loong64] os: [linux] - '@esbuild/linux-loong64@0.18.20': - resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - '@esbuild/linux-loong64@0.19.11': resolution: {integrity: sha512-ppZSSLVpPrwHccvC6nQVZaSHlFsvCQyjnvirnVjbKSHuE5N24Yl8F3UwYUUR1UEPaFObGD2tSvVKbvR+uT1Nrg==} engines: {node: '>=12'} @@ -3161,12 +3169,6 @@ packages: cpu: [mips64el] os: [linux] - '@esbuild/linux-mips64el@0.18.20': - resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - '@esbuild/linux-mips64el@0.19.11': resolution: {integrity: sha512-B5x9j0OgjG+v1dF2DkH34lr+7Gmv0kzX6/V0afF41FkPMMqaQ77pH7CrhWeR22aEeHKaeZVtZ6yFwlxOKPVFyg==} engines: {node: '>=12'} @@ -3203,12 +3205,6 @@ packages: cpu: [ppc64] os: [linux] - '@esbuild/linux-ppc64@0.18.20': - resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - '@esbuild/linux-ppc64@0.19.11': resolution: {integrity: sha512-MHrZYLeCG8vXblMetWyttkdVRjQlQUb/oMgBNurVEnhj4YWOr4G5lmBfZjHYQHHN0g6yDmCAQRR8MUHldvvRDA==} engines: {node: '>=12'} @@ -3245,12 +3241,6 @@ packages: cpu: [riscv64] os: [linux] - '@esbuild/linux-riscv64@0.18.20': - resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - '@esbuild/linux-riscv64@0.19.11': resolution: {integrity: sha512-f3DY++t94uVg141dozDu4CCUkYW+09rWtaWfnb3bqe4w5NqmZd6nPVBm+qbz7WaHZCoqXqHz5p6CM6qv3qnSSQ==} engines: {node: '>=12'} @@ -3287,12 +3277,6 @@ packages: cpu: [s390x] os: [linux] - '@esbuild/linux-s390x@0.18.20': - resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - '@esbuild/linux-s390x@0.19.11': resolution: {integrity: sha512-A5xdUoyWJHMMlcSMcPGVLzYzpcY8QP1RtYzX5/bS4dvjBGVxdhuiYyFwp7z74ocV7WDc0n1harxmpq2ePOjI0Q==} engines: {node: '>=12'} @@ -3329,12 +3313,6 @@ packages: cpu: [x64] os: [linux] - '@esbuild/linux-x64@0.18.20': - resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - '@esbuild/linux-x64@0.19.11': resolution: {integrity: sha512-grbyMlVCvJSfxFQUndw5mCtWs5LO1gUlwP4CDi4iJBbVpZcqLVT29FxgGuBJGSzyOxotFG4LoO5X+M1350zmPA==} engines: {node: '>=12'} @@ -3389,12 +3367,6 @@ packages: cpu: [x64] os: [netbsd] - '@esbuild/netbsd-x64@0.18.20': - resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - '@esbuild/netbsd-x64@0.19.11': resolution: {integrity: sha512-13jvrQZJc3P230OhU8xgwUnDeuC/9egsjTkXN49b3GcS5BKvJqZn86aGM8W9pd14Kd+u7HuFBMVtrNGhh6fHEQ==} engines: {node: '>=12'} @@ -3449,12 +3421,6 @@ packages: cpu: [x64] os: [openbsd] - '@esbuild/openbsd-x64@0.18.20': - resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - '@esbuild/openbsd-x64@0.19.11': resolution: {integrity: sha512-ysyOGZuTp6SNKPE11INDUeFVVQFrhcNDVUgSQVDzqsqX38DjhPEPATpid04LCoUr2WXhQTEZ8ct/EgJCUDpyNw==} engines: {node: '>=12'} @@ -3497,12 +3463,6 @@ packages: cpu: [x64] os: [sunos] - '@esbuild/sunos-x64@0.18.20': - resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - '@esbuild/sunos-x64@0.19.11': resolution: {integrity: sha512-Hf+Sad9nVwvtxy4DXCZQqLpgmRTQqyFyhT3bZ4F2XlJCjxGmRFF0Shwn9rzhOYRB61w9VMXUkxlBy56dk9JJiQ==} engines: {node: '>=12'} @@ -3539,12 +3499,6 @@ packages: cpu: [arm64] os: [win32] - '@esbuild/win32-arm64@0.18.20': - resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - '@esbuild/win32-arm64@0.19.11': resolution: {integrity: sha512-0P58Sbi0LctOMOQbpEOvOL44Ne0sqbS0XWHMvvrg6NE5jQ1xguCSSw9jQeUk2lfrXYsKDdOe6K+oZiwKPilYPQ==} engines: {node: '>=12'} @@ -3581,12 +3535,6 @@ packages: cpu: [ia32] os: [win32] - '@esbuild/win32-ia32@0.18.20': - resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - '@esbuild/win32-ia32@0.19.11': resolution: {integrity: sha512-6YOrWS+sDJDmshdBIQU+Uoyh7pQKrdykdefC1avn76ss5c+RN6gut3LZA4E2cH5xUEp5/cA0+YxRaVtRAb0xBg==} engines: {node: '>=12'} @@ -3623,12 +3571,6 @@ packages: cpu: [x64] os: [win32] - '@esbuild/win32-x64@0.18.20': - resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - '@esbuild/win32-x64@0.19.11': resolution: {integrity: sha512-vfkhltrjCAb603XaFhqhAF4LGDi2M4OrCRrFusyQ+iTLQ/o60QQXxc9cZC/FFpihBI9N1Grn6SMKVJ4KP7Fuiw==} engines: {node: '>=12'} @@ -7830,30 +7772,15 @@ packages: '@types/node@18.19.21': resolution: {integrity: sha512-2Q2NeB6BmiTFQi4DHBzncSoq/cJMLDdhPaAoJFnFCyD9a8VPZRf7a1GAwp1Edb7ROaZc5Jz/tnZyL6EsWMRaqw==} - '@types/node@20.11.26': - resolution: {integrity: sha512-YwOMmyhNnAWijOBQweOJnQPl068Oqd4K3OFbTc6AHJwzweUwwWG3GIFY74OKks2PJUDkQPeddOQES9mLn1CTEQ==} - '@types/node@20.12.12': resolution: {integrity: sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==} - '@types/node@20.3.1': - resolution: {integrity: sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg==} - - '@types/node@20.8.10': - resolution: {integrity: sha512-TlgT8JntpcbmKUFzjhsyhGfP2fsiz1Mv56im6enJ905xG1DAYesxJaeSbGqQmAw8OWPdhyJGhGSQGKRNJ45u9w==} - - '@types/node@20.9.0': - resolution: {integrity: sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw==} - '@types/node@22.17.0': resolution: {integrity: sha512-bbAKTCqX5aNVryi7qXVMi+OkB3w/OyblodicMbvE38blyAz7GxXf6XYhklokijuPwwVg9sDLKRxt0ZHXQwZVfQ==} '@types/nodemailer@7.0.4': resolution: {integrity: sha512-ee8fxWqOchH+Hv6MDDNNy028kwvVnLplrStm4Zf/3uHWw5zzo8FoYYeffpJtGs2wWysEumMH0ZIdMGMY1eMAow==} - '@types/normalize-package-data@2.4.1': - resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} - '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} @@ -9130,9 +9057,6 @@ packages: resolution: {integrity: sha512-7D2EPVltRrsTkhpQmksIu+LxeWAIEk6wRDMJ1qljlv+CKHJM+cJLlfhWIzNA44eAsHXSNe3+vO6DW1yCYx8SuQ==} engines: {node: '>=20'} - csstype@3.1.3: - resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} - csstype@3.2.3: resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} @@ -9358,11 +9282,6 @@ packages: resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} engines: {node: '>= 0.4'} - del-cli@5.0.0: - resolution: {integrity: sha512-rENFhUaYcjoMODwFhhlON+ogN7DoG+4+GFN+bsA1XeDt4w2OKQnQadFP1thHSAlK9FAtl88qgP66wOV+eFZZiQ==} - engines: {node: '>=14.16'} - hasBin: true - del-cli@5.1.0: resolution: {integrity: sha512-xwMeh2acluWeccsfzE7VLsG3yTr7nWikbfw+xhMnpRrF15pGSkw+3/vJZWlGoE4I86UiLRNHicmKt4tkIX9Jtg==} engines: {node: '>=14.16'} @@ -9479,10 +9398,6 @@ packages: resolution: {integrity: sha512-SErOMvge0ZUyWd5B0NXMQlDkN+8r+HhVUsxgOO7IoPDOdDRD2JjExpN6y3KnFR66jsJMwSn1pqIivhU5rcJiNg==} engines: {node: '>=12'} - dotenv@16.4.5: - resolution: {integrity: sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==} - engines: {node: '>=12'} - dotenv@16.6.0: resolution: {integrity: sha512-Omf1L8paOy2VJhILjyhrhqwLIdstqm1BvcDPKg4NGAlkwEu9ODyrFbvk8UymUOMCT+HXo31jg1lArIrVAAhuGA==} engines: {node: '>=12'} @@ -9738,11 +9653,6 @@ packages: engines: {node: '>=12'} hasBin: true - esbuild@0.18.20: - resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==} - engines: {node: '>=12'} - hasBin: true - esbuild@0.19.11: resolution: {integrity: sha512-HJ96Hev2hX/6i5cDVwcqiJBBtuo9+FeIJOtZ9W1kA5M6AMJRHUZlpYZ1/SbEwtO0ioNAW8rUooVpC/WehY2SfA==} engines: {node: '>=12'} @@ -10184,14 +10094,6 @@ packages: picomatch: optional: true - fdir@6.4.6: - resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==} - peerDependencies: - picomatch: ^3 || ^4 - peerDependenciesMeta: - picomatch: - optional: true - fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} engines: {node: '>=12.0.0'} @@ -10440,9 +10342,6 @@ packages: get-tsconfig@4.10.1: resolution: {integrity: sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==} - get-tsconfig@4.7.2: - resolution: {integrity: sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==} - get-tsconfig@4.7.5: resolution: {integrity: sha512-ZCuZCnlqNzjb4QprAzXKdpp/gh6KTxSJuw3IBsPnV/7fV4NxC9ckB+vPTt8w7fJA0TaSD7c55BR47JD6MEDyDw==} @@ -10489,7 +10388,7 @@ packages: glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - deprecated: Glob versions prior to v9 are no longer supported + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me glob@9.3.5: resolution: {integrity: sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==} @@ -10856,10 +10755,6 @@ packages: resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==} engines: {node: '>= 4'} - import-fresh@3.3.0: - resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} - engines: {node: '>=6'} - import-fresh@3.3.1: resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} engines: {node: '>=6'} @@ -12546,9 +12441,6 @@ packages: resolution: {integrity: sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==} engines: {node: '>=0.10.0'} - pino-abstract-transport@1.0.0: - resolution: {integrity: sha512-c7vo5OpW4wIS42hUVcT5REsL8ZljsUfBjqV/e2sFxmFEFZiq1XLUp5EYLtuDH6PEHq9W1egWqRbnLUP5FuZmOA==} - pino-abstract-transport@1.1.0: resolution: {integrity: sha512-lsleG3/2a/JIWUtf9Q5gUNErBqwIu1tUKTT3dUzaf5DySw9ra1wcqKjJjLX1VTY64Wk1eEOYsVGSaGfCK85ekA==} @@ -12565,10 +12457,6 @@ packages: pino-std-serializers@7.0.0: resolution: {integrity: sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==} - pino@8.14.1: - resolution: {integrity: sha512-8LYNv7BKWXSfS+k6oEc6occy5La+q2sPwU3q2ljTX5AZk7v+5kND2o5W794FyRaqha6DJajmkNRsWtPpFyMUdw==} - hasBin: true - pino@8.19.0: resolution: {integrity: sha512-oswmokxkav9bADfJ2ifrvfHUwad6MLp73Uat0IkQWY3iAw5xTRoznXbXksZs8oaOUMpmhVWD+PZogNzllWpJaA==} hasBin: true @@ -12675,10 +12563,6 @@ packages: resolution: {integrity: sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==} engines: {node: ^10 || ^12 || >=14} - postcss@8.5.3: - resolution: {integrity: sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==} - engines: {node: ^10 || ^12 || >=14} - postcss@8.5.6: resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==} engines: {node: ^10 || ^12 || >=14} @@ -12777,11 +12661,6 @@ packages: prettier-plugin-twig-melody: optional: true - prettier@3.2.5: - resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==} - engines: {node: '>=14'} - hasBin: true - prettier@3.5.3: resolution: {integrity: sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==} engines: {node: '>=14'} @@ -13408,6 +13287,7 @@ packages: rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true rollup@3.29.5: @@ -13650,9 +13530,6 @@ packages: resolution: {integrity: sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ==} engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} - sonic-boom@3.3.0: - resolution: {integrity: sha512-LYxp34KlZ1a2Jb8ZQgFCK3niIHzibdwtwNUWKg0qQRzsDoJ3Gfgkf8KdBTFU3SkejDEIlWwnSnpVdOZIhFMl/g==} - sonic-boom@3.7.0: resolution: {integrity: sha512-IudtNvSqA/ObjN97tfgNmOKyDOs4dNcg4cUUsHDebqsgb8wGBBwb31LIgShNO8fye0dFI52X1+tFoKKI6Rq1Gg==} @@ -13906,10 +13783,6 @@ packages: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} - supports-color@8.1.1: - resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} - engines: {node: '>=10'} - supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} @@ -14031,10 +13904,6 @@ packages: tinyexec@1.0.1: resolution: {integrity: sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw==} - tinyglobby@0.2.14: - resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==} - engines: {node: '>=12.0.0'} - tinyglobby@0.2.15: resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} engines: {node: '>=12.0.0'} @@ -14211,15 +14080,6 @@ packages: peerDependencies: typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' - tsx@3.14.0: - resolution: {integrity: sha512-xHtFaKtHxM9LOklMmJdI3BEnQq/D5F73Of2E1GDrITi9sgoVkvIsrQUTY1G8FlmGtA+awCI4EBlTRRYxkL2sRg==} - hasBin: true - - tsx@4.16.0: - resolution: {integrity: sha512-MPgN+CuY+4iKxGoJNPv+1pyo5YWZAQ5XfsyobUG+zoKG7IkvCPLZDEyoIb8yLS2FcWci1nlxAqmvPlFWD5AFiQ==} - engines: {node: '>=18.0.0'} - hasBin: true - tsx@4.19.4: resolution: {integrity: sha512-gK5GVzDkJK1SI1zwHf32Mqxf2tSJkNx+eYcNly5+nHvWqXUJYUkWBQtKauoESz3ymezAI++ZwT855x5p5eop+Q==} engines: {node: '>=18.0.0'} @@ -14293,16 +14153,6 @@ packages: engines: {node: '>=4.2.0'} hasBin: true - typescript@5.2.2: - resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} - engines: {node: '>=14.17'} - hasBin: true - - typescript@5.3.2: - resolution: {integrity: sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==} - engines: {node: '>=14.17'} - hasBin: true - typescript@5.5.2: resolution: {integrity: sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==} engines: {node: '>=14.17'} @@ -14590,37 +14440,6 @@ packages: rollup: ^4.35.0 vite: ^5.4.11 || ^6.0.0 - vite@5.4.19: - resolution: {integrity: sha512-qO3aKv3HoQC8QKiNSTuUM1l9o/XX3+c+VTgLHbJWHZGeTPVAg2XwazI9UWzoxjIJCGCV2zU60uqMzjeLZuULqA==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@types/node': ^18.0.0 || >=20.0.0 - less: '*' - lightningcss: ^1.21.0 - sass: '*' - sass-embedded: '*' - stylus: '*' - sugarss: '*' - terser: ^5.4.0 - peerDependenciesMeta: - '@types/node': - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - sass-embedded: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - vite@5.4.21: resolution: {integrity: sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==} engines: {node: ^18.0.0 || >=20.0.0} @@ -15688,7 +15507,7 @@ snapshots: '@babel/generator@7.23.6': dependencies: - '@babel/types': 7.28.2 + '@babel/types': 7.29.0 '@jridgewell/gen-mapping': 0.3.3 '@jridgewell/trace-mapping': 0.3.31 jsesc: 2.5.2 @@ -15714,13 +15533,13 @@ snapshots: '@babel/helper-function-name@7.23.0': dependencies: '@babel/template': 7.24.0 - '@babel/types': 7.28.2 + '@babel/types': 7.29.0 '@babel/helper-globals@7.28.0': {} '@babel/helper-hoist-variables@7.22.5': dependencies: - '@babel/types': 7.28.2 + '@babel/types': 7.29.0 '@babel/helper-module-imports@7.27.1': dependencies: @@ -15744,7 +15563,7 @@ snapshots: '@babel/helper-split-export-declaration@7.22.6': dependencies: - '@babel/types': 7.28.2 + '@babel/types': 7.29.0 '@babel/helper-string-parser@7.23.4': {} @@ -15773,7 +15592,7 @@ snapshots: '@babel/highlight@7.24.5': dependencies: - '@babel/helper-validator-identifier': 7.25.9 + '@babel/helper-validator-identifier': 7.28.5 chalk: 2.4.2 js-tokens: 4.0.0 picocolors: 1.0.0 @@ -15826,8 +15645,8 @@ snapshots: '@babel/template@7.24.0': dependencies: '@babel/code-frame': 7.24.2 - '@babel/parser': 7.28.0 - '@babel/types': 7.28.2 + '@babel/parser': 7.29.2 + '@babel/types': 7.29.0 '@babel/template@7.27.2': dependencies: @@ -15843,8 +15662,8 @@ snapshots: '@babel/helper-function-name': 7.23.0 '@babel/helper-hoist-variables': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 - '@babel/parser': 7.28.0 - '@babel/types': 7.23.6 + '@babel/parser': 7.29.2 + '@babel/types': 7.29.0 debug: 4.4.1 globals: 11.12.0 transitivePeerDependencies: @@ -15964,11 +15783,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@bufbuild/protoc-gen-es@1.9.0(@bufbuild/protobuf@1.9.0)': + '@bufbuild/protoc-gen-es@1.9.0(@bufbuild/protobuf@1.10.0)': dependencies: '@bufbuild/protoplugin': 1.9.0 optionalDependencies: - '@bufbuild/protobuf': 1.9.0 + '@bufbuild/protobuf': 1.10.0 transitivePeerDependencies: - supports-color @@ -16568,7 +16387,7 @@ snapshots: '@chakra-ui/styled-system@2.9.2': dependencies: '@chakra-ui/shared-utils': 2.0.5 - csstype: 3.1.3 + csstype: 3.2.3 lodash.mergewith: 4.6.2 '@chakra-ui/switch@2.1.2(@chakra-ui/system@2.6.2(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(react@18.3.1))(framer-motion@11.0.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)': @@ -16757,7 +16576,7 @@ snapshots: '@commitlint/format@19.8.1': dependencies: '@commitlint/types': 19.8.1 - chalk: 5.3.0 + chalk: 5.6.2 '@commitlint/is-ignored@19.8.1': dependencies: @@ -16777,7 +16596,7 @@ snapshots: '@commitlint/execute-rule': 19.8.1 '@commitlint/resolve-extends': 19.8.1 '@commitlint/types': 19.8.1 - chalk: 5.3.0 + chalk: 5.6.2 cosmiconfig: 9.0.0(typescript@5.5.2) cosmiconfig-typescript-loader: 6.1.0(@types/node@22.17.0)(cosmiconfig@9.0.0(typescript@5.5.2))(typescript@5.5.2) lodash.isplainobject: 4.0.6 @@ -16828,25 +16647,19 @@ snapshots: '@commitlint/types@19.8.1': dependencies: '@types/conventional-commits-parser': 5.0.0 - chalk: 5.3.0 + chalk: 5.6.2 - '@connectrpc/connect-fastify@1.5.0(@bufbuild/protobuf@1.9.0)(@connectrpc/connect-node@1.5.0(@bufbuild/protobuf@1.9.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.9.0)))(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.9.0))(fastify@4.28.1)': + '@connectrpc/connect-fastify@1.5.0(@bufbuild/protobuf@1.10.0)(@connectrpc/connect-node@1.5.0(@bufbuild/protobuf@1.10.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0)))(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0))(fastify@4.28.1)': dependencies: - '@bufbuild/protobuf': 1.9.0 - '@connectrpc/connect': 1.5.0(@bufbuild/protobuf@1.9.0) - '@connectrpc/connect-node': 1.5.0(@bufbuild/protobuf@1.9.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.9.0)) + '@bufbuild/protobuf': 1.10.0 + '@connectrpc/connect': 1.5.0(@bufbuild/protobuf@1.10.0) + '@connectrpc/connect-node': 1.5.0(@bufbuild/protobuf@1.10.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0)) fastify: 4.28.1 - '@connectrpc/connect-node@1.4.0(@bufbuild/protobuf@1.9.0)(@connectrpc/connect@1.4.0(@bufbuild/protobuf@1.9.0))': - dependencies: - '@bufbuild/protobuf': 1.9.0 - '@connectrpc/connect': 1.4.0(@bufbuild/protobuf@1.9.0) - undici: 5.28.4 - - '@connectrpc/connect-node@1.5.0(@bufbuild/protobuf@1.9.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.9.0))': + '@connectrpc/connect-node@1.5.0(@bufbuild/protobuf@1.10.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0))': dependencies: - '@bufbuild/protobuf': 1.9.0 - '@connectrpc/connect': 1.5.0(@bufbuild/protobuf@1.9.0) + '@bufbuild/protobuf': 1.10.0 + '@connectrpc/connect': 1.5.0(@bufbuild/protobuf@1.10.0) undici: 5.28.4 '@connectrpc/connect-query@1.4.1(@bufbuild/protobuf@1.10.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0))(@tanstack/react-query@5.37.1(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': @@ -16858,44 +16671,18 @@ snapshots: react-dom: 18.3.1(react@18.3.1) stable-hash: 0.0.4 - '@connectrpc/connect-query@1.4.1(@bufbuild/protobuf@1.9.0)(@connectrpc/connect@1.4.0(@bufbuild/protobuf@1.9.0))(@tanstack/react-query@5.37.1(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@connectrpc/connect-web@1.5.0(@bufbuild/protobuf@1.10.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0))': dependencies: - '@bufbuild/protobuf': 1.9.0 - '@connectrpc/connect': 1.4.0(@bufbuild/protobuf@1.9.0) - '@tanstack/react-query': 5.37.1(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - stable-hash: 0.0.4 - - '@connectrpc/connect-query@1.4.1(@bufbuild/protobuf@1.9.0)(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.9.0))(@tanstack/react-query@5.37.1(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': - dependencies: - '@bufbuild/protobuf': 1.9.0 - '@connectrpc/connect': 1.5.0(@bufbuild/protobuf@1.9.0) - '@tanstack/react-query': 5.37.1(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - stable-hash: 0.0.4 - - '@connectrpc/connect-web@1.4.0(@bufbuild/protobuf@1.9.0)(@connectrpc/connect@1.4.0(@bufbuild/protobuf@1.9.0))': - dependencies: - '@bufbuild/protobuf': 1.9.0 - '@connectrpc/connect': 1.4.0(@bufbuild/protobuf@1.9.0) - - '@connectrpc/connect@1.4.0(@bufbuild/protobuf@1.9.0)': - dependencies: - '@bufbuild/protobuf': 1.9.0 + '@bufbuild/protobuf': 1.10.0 + '@connectrpc/connect': 1.5.0(@bufbuild/protobuf@1.10.0) '@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0)': dependencies: '@bufbuild/protobuf': 1.10.0 - '@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.9.0)': - dependencies: - '@bufbuild/protobuf': 1.9.0 - '@connectrpc/protoc-gen-connect-es@1.4.0(@bufbuild/protoc-gen-es@1.10.0(@bufbuild/protobuf@1.10.0))(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0))': dependencies: - '@bufbuild/protobuf': 1.9.0 + '@bufbuild/protobuf': 1.10.0 '@bufbuild/protoplugin': 1.9.0 optionalDependencies: '@bufbuild/protoc-gen-es': 1.10.0(@bufbuild/protobuf@1.10.0) @@ -16903,19 +16690,19 @@ snapshots: transitivePeerDependencies: - supports-color - '@connectrpc/protoc-gen-connect-es@1.4.0(@bufbuild/protoc-gen-es@1.9.0(@bufbuild/protobuf@1.9.0))(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.9.0))': + '@connectrpc/protoc-gen-connect-es@1.4.0(@bufbuild/protoc-gen-es@1.9.0(@bufbuild/protobuf@1.10.0))(@connectrpc/connect@1.5.0(@bufbuild/protobuf@1.10.0))': dependencies: - '@bufbuild/protobuf': 1.9.0 + '@bufbuild/protobuf': 1.10.0 '@bufbuild/protoplugin': 1.9.0 optionalDependencies: - '@bufbuild/protoc-gen-es': 1.9.0(@bufbuild/protobuf@1.9.0) - '@connectrpc/connect': 1.5.0(@bufbuild/protobuf@1.9.0) + '@bufbuild/protoc-gen-es': 1.9.0(@bufbuild/protobuf@1.10.0) + '@connectrpc/connect': 1.5.0(@bufbuild/protobuf@1.10.0) transitivePeerDependencies: - supports-color '@connectrpc/protoc-gen-connect-query@1.4.1(@bufbuild/protoc-gen-es@1.10.0(@bufbuild/protobuf@1.10.0))': dependencies: - '@bufbuild/protobuf': 1.9.0 + '@bufbuild/protobuf': 1.10.0 '@bufbuild/protoplugin': 1.9.0 optionalDependencies: '@bufbuild/protoc-gen-es': 1.10.0(@bufbuild/protobuf@1.10.0) @@ -17105,9 +16892,6 @@ snapshots: '@esbuild/android-arm64@0.17.19': optional: true - '@esbuild/android-arm64@0.18.20': - optional: true - '@esbuild/android-arm64@0.19.11': optional: true @@ -17126,9 +16910,6 @@ snapshots: '@esbuild/android-arm@0.17.19': optional: true - '@esbuild/android-arm@0.18.20': - optional: true - '@esbuild/android-arm@0.19.11': optional: true @@ -17147,9 +16928,6 @@ snapshots: '@esbuild/android-x64@0.17.19': optional: true - '@esbuild/android-x64@0.18.20': - optional: true - '@esbuild/android-x64@0.19.11': optional: true @@ -17168,9 +16946,6 @@ snapshots: '@esbuild/darwin-arm64@0.17.19': optional: true - '@esbuild/darwin-arm64@0.18.20': - optional: true - '@esbuild/darwin-arm64@0.19.11': optional: true @@ -17189,9 +16964,6 @@ snapshots: '@esbuild/darwin-x64@0.17.19': optional: true - '@esbuild/darwin-x64@0.18.20': - optional: true - '@esbuild/darwin-x64@0.19.11': optional: true @@ -17210,9 +16982,6 @@ snapshots: '@esbuild/freebsd-arm64@0.17.19': optional: true - '@esbuild/freebsd-arm64@0.18.20': - optional: true - '@esbuild/freebsd-arm64@0.19.11': optional: true @@ -17231,9 +17000,6 @@ snapshots: '@esbuild/freebsd-x64@0.17.19': optional: true - '@esbuild/freebsd-x64@0.18.20': - optional: true - '@esbuild/freebsd-x64@0.19.11': optional: true @@ -17252,9 +17018,6 @@ snapshots: '@esbuild/linux-arm64@0.17.19': optional: true - '@esbuild/linux-arm64@0.18.20': - optional: true - '@esbuild/linux-arm64@0.19.11': optional: true @@ -17273,9 +17036,6 @@ snapshots: '@esbuild/linux-arm@0.17.19': optional: true - '@esbuild/linux-arm@0.18.20': - optional: true - '@esbuild/linux-arm@0.19.11': optional: true @@ -17294,9 +17054,6 @@ snapshots: '@esbuild/linux-ia32@0.17.19': optional: true - '@esbuild/linux-ia32@0.18.20': - optional: true - '@esbuild/linux-ia32@0.19.11': optional: true @@ -17315,9 +17072,6 @@ snapshots: '@esbuild/linux-loong64@0.17.19': optional: true - '@esbuild/linux-loong64@0.18.20': - optional: true - '@esbuild/linux-loong64@0.19.11': optional: true @@ -17336,9 +17090,6 @@ snapshots: '@esbuild/linux-mips64el@0.17.19': optional: true - '@esbuild/linux-mips64el@0.18.20': - optional: true - '@esbuild/linux-mips64el@0.19.11': optional: true @@ -17357,9 +17108,6 @@ snapshots: '@esbuild/linux-ppc64@0.17.19': optional: true - '@esbuild/linux-ppc64@0.18.20': - optional: true - '@esbuild/linux-ppc64@0.19.11': optional: true @@ -17378,9 +17126,6 @@ snapshots: '@esbuild/linux-riscv64@0.17.19': optional: true - '@esbuild/linux-riscv64@0.18.20': - optional: true - '@esbuild/linux-riscv64@0.19.11': optional: true @@ -17399,9 +17144,6 @@ snapshots: '@esbuild/linux-s390x@0.17.19': optional: true - '@esbuild/linux-s390x@0.18.20': - optional: true - '@esbuild/linux-s390x@0.19.11': optional: true @@ -17420,9 +17162,6 @@ snapshots: '@esbuild/linux-x64@0.17.19': optional: true - '@esbuild/linux-x64@0.18.20': - optional: true - '@esbuild/linux-x64@0.19.11': optional: true @@ -17450,9 +17189,6 @@ snapshots: '@esbuild/netbsd-x64@0.17.19': optional: true - '@esbuild/netbsd-x64@0.18.20': - optional: true - '@esbuild/netbsd-x64@0.19.11': optional: true @@ -17480,9 +17216,6 @@ snapshots: '@esbuild/openbsd-x64@0.17.19': optional: true - '@esbuild/openbsd-x64@0.18.20': - optional: true - '@esbuild/openbsd-x64@0.19.11': optional: true @@ -17504,9 +17237,6 @@ snapshots: '@esbuild/sunos-x64@0.17.19': optional: true - '@esbuild/sunos-x64@0.18.20': - optional: true - '@esbuild/sunos-x64@0.19.11': optional: true @@ -17525,9 +17255,6 @@ snapshots: '@esbuild/win32-arm64@0.17.19': optional: true - '@esbuild/win32-arm64@0.18.20': - optional: true - '@esbuild/win32-arm64@0.19.11': optional: true @@ -17546,9 +17273,6 @@ snapshots: '@esbuild/win32-ia32@0.17.19': optional: true - '@esbuild/win32-ia32@0.18.20': - optional: true - '@esbuild/win32-ia32@0.19.11': optional: true @@ -17567,9 +17291,6 @@ snapshots: '@esbuild/win32-x64@0.17.19': optional: true - '@esbuild/win32-x64@0.18.20': - optional: true - '@esbuild/win32-x64@0.19.11': optional: true @@ -17700,7 +17421,7 @@ snapshots: transitivePeerDependencies: - '@types/node' - '@graphql-eslint/eslint-plugin@3.20.1(@babel/core@7.24.5)(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-eslint/eslint-plugin@3.20.1(@babel/core@7.24.5)(@types/node@22.17.0)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': dependencies: '@babel/code-frame': 7.23.5 '@graphql-tools/code-file-loader': 7.3.23(@babel/core@7.24.5)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) @@ -17710,7 +17431,7 @@ snapshots: debug: 4.3.7 fast-glob: 3.3.1 graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) - graphql-config: 4.5.0(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + graphql-config: 4.5.0(@types/node@22.17.0)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) graphql-depth-limit: 1.1.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) lodash.lowercase: 4.3.0 tslib: 2.6.2 @@ -17775,7 +17496,7 @@ snapshots: - bufferutil - utf-8-validate - '@graphql-tools/executor-http@0.1.10(@types/node@18.19.21)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/executor-http@0.1.10(@types/node@22.17.0)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': dependencies: '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@repeaterjs/repeater': 3.0.5 @@ -17783,7 +17504,7 @@ snapshots: dset: 3.1.3 extract-files: 11.0.0 graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) - meros: 1.3.0(@types/node@18.19.21) + meros: 1.3.0(@types/node@22.17.0) tslib: 2.8.1 value-or-promise: 1.0.12 transitivePeerDependencies: @@ -17897,12 +17618,12 @@ snapshots: tslib: 2.8.1 value-or-promise: 1.0.12 - '@graphql-tools/url-loader@7.17.18(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/url-loader@7.17.18(@types/node@22.17.0)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': dependencies: '@ardatan/sync-fetch': 0.0.1(encoding@0.1.13) '@graphql-tools/delegate': 9.0.35(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-tools/executor-graphql-ws': 0.0.14(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/executor-http': 0.1.10(@types/node@18.19.21)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/executor-http': 0.1.10(@types/node@22.17.0)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-tools/executor-legacy-ws': 0.0.11(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-tools/wrap': 9.4.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) @@ -17944,7 +17665,7 @@ snapshots: dependencies: '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) - tslib: 2.6.2 + tslib: 2.8.1 '@graphql-tools/wrap@9.4.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': dependencies: @@ -18434,51 +18155,23 @@ snapshots: next: 15.5.15(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 - '@microsoft/api-extractor-model@7.33.6(@types/node@20.12.12)': - dependencies: - '@microsoft/tsdoc': 0.16.0 - '@microsoft/tsdoc-config': 0.18.1 - '@rushstack/node-core-library': 5.22.0(@types/node@20.12.12) - transitivePeerDependencies: - - '@types/node' - - '@microsoft/api-extractor-model@7.33.6(@types/node@20.8.10)': - dependencies: - '@microsoft/tsdoc': 0.16.0 - '@microsoft/tsdoc-config': 0.18.1 - '@rushstack/node-core-library': 5.22.0(@types/node@20.8.10) - transitivePeerDependencies: - - '@types/node' - optional: true - - '@microsoft/api-extractor@7.58.2(@types/node@20.12.12)': + '@microsoft/api-extractor-model@7.33.6(@types/node@22.17.0)': dependencies: - '@microsoft/api-extractor-model': 7.33.6(@types/node@20.12.12) '@microsoft/tsdoc': 0.16.0 '@microsoft/tsdoc-config': 0.18.1 - '@rushstack/node-core-library': 5.22.0(@types/node@20.12.12) - '@rushstack/rig-package': 0.7.2 - '@rushstack/terminal': 0.22.5(@types/node@20.12.12) - '@rushstack/ts-command-line': 5.3.5(@types/node@20.12.12) - diff: 8.0.4 - lodash: 4.18.1 - minimatch: 10.2.4 - resolve: 1.22.11 - semver: 7.5.4 - source-map: 0.6.1 - typescript: 5.9.3 + '@rushstack/node-core-library': 5.22.0(@types/node@22.17.0) transitivePeerDependencies: - '@types/node' - '@microsoft/api-extractor@7.58.2(@types/node@20.8.10)': + '@microsoft/api-extractor@7.58.2(@types/node@22.17.0)': dependencies: - '@microsoft/api-extractor-model': 7.33.6(@types/node@20.8.10) + '@microsoft/api-extractor-model': 7.33.6(@types/node@22.17.0) '@microsoft/tsdoc': 0.16.0 '@microsoft/tsdoc-config': 0.18.1 - '@rushstack/node-core-library': 5.22.0(@types/node@20.8.10) + '@rushstack/node-core-library': 5.22.0(@types/node@22.17.0) '@rushstack/rig-package': 0.7.2 - '@rushstack/terminal': 0.22.5(@types/node@20.8.10) - '@rushstack/ts-command-line': 5.3.5(@types/node@20.8.10) + '@rushstack/terminal': 0.22.5(@types/node@22.17.0) + '@rushstack/ts-command-line': 5.3.5(@types/node@22.17.0) diff: 8.0.4 lodash: 4.18.1 minimatch: 10.2.4 @@ -18488,7 +18181,6 @@ snapshots: typescript: 5.9.3 transitivePeerDependencies: - '@types/node' - optional: true '@microsoft/tsdoc-config@0.18.1': dependencies: @@ -21377,20 +21069,7 @@ snapshots: '@rushstack/eslint-patch@1.3.2': {} - '@rushstack/node-core-library@5.22.0(@types/node@20.12.12)': - dependencies: - ajv: 8.18.0 - ajv-draft-04: 1.0.0(ajv@8.18.0) - ajv-formats: 3.0.1(ajv@8.18.0) - fs-extra: 11.3.0 - import-lazy: 4.0.0 - jju: 1.4.0 - resolve: 1.22.11 - semver: 7.5.4 - optionalDependencies: - '@types/node': 20.12.12 - - '@rushstack/node-core-library@5.22.0(@types/node@20.8.10)': + '@rushstack/node-core-library@5.22.0(@types/node@22.17.0)': dependencies: ajv: 8.18.0 ajv-draft-04: 1.0.0(ajv@8.18.0) @@ -21401,58 +21080,33 @@ snapshots: resolve: 1.22.11 semver: 7.5.4 optionalDependencies: - '@types/node': 20.8.10 - optional: true - - '@rushstack/problem-matcher@0.2.1(@types/node@20.12.12)': - optionalDependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 - '@rushstack/problem-matcher@0.2.1(@types/node@20.8.10)': + '@rushstack/problem-matcher@0.2.1(@types/node@22.17.0)': optionalDependencies: - '@types/node': 20.8.10 - optional: true + '@types/node': 22.17.0 '@rushstack/rig-package@0.7.2': dependencies: resolve: 1.22.11 strip-json-comments: 3.1.1 - '@rushstack/terminal@0.22.5(@types/node@20.12.12)': - dependencies: - '@rushstack/node-core-library': 5.22.0(@types/node@20.12.12) - '@rushstack/problem-matcher': 0.2.1(@types/node@20.12.12) - supports-color: 10.2.0 - optionalDependencies: - '@types/node': 20.12.12 - - '@rushstack/terminal@0.22.5(@types/node@20.8.10)': + '@rushstack/terminal@0.22.5(@types/node@22.17.0)': dependencies: - '@rushstack/node-core-library': 5.22.0(@types/node@20.8.10) - '@rushstack/problem-matcher': 0.2.1(@types/node@20.8.10) + '@rushstack/node-core-library': 5.22.0(@types/node@22.17.0) + '@rushstack/problem-matcher': 0.2.1(@types/node@22.17.0) supports-color: 10.2.0 optionalDependencies: - '@types/node': 20.8.10 - optional: true - - '@rushstack/ts-command-line@5.3.5(@types/node@20.12.12)': - dependencies: - '@rushstack/terminal': 0.22.5(@types/node@20.12.12) - '@types/argparse': 1.0.38 - argparse: 1.0.10 - string-argv: 0.3.2 - transitivePeerDependencies: - - '@types/node' + '@types/node': 22.17.0 - '@rushstack/ts-command-line@5.3.5(@types/node@20.8.10)': + '@rushstack/ts-command-line@5.3.5(@types/node@22.17.0)': dependencies: - '@rushstack/terminal': 0.22.5(@types/node@20.8.10) + '@rushstack/terminal': 0.22.5(@types/node@22.17.0) '@types/argparse': 1.0.38 argparse: 1.0.10 string-argv: 0.3.2 transitivePeerDependencies: - '@types/node' - optional: true '@saas-ui/core@2.1.3(@chakra-ui/react@2.8.2(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(framer-motion@11.0.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(framer-motion@11.0.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: @@ -22294,21 +21948,21 @@ snapshots: typescript: 5.5.2 zod: 3.25.76 - '@tailwindcss/typography@0.5.13(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@20.12.12)(typescript@5.5.2)))': + '@tailwindcss/typography@0.5.13(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)))': dependencies: lodash.castarray: 4.4.0 lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 postcss-selector-parser: 6.0.10 - tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@20.12.12)(typescript@5.5.2)) + tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) - '@tailwindcss/typography@0.5.9(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.5.2)))': + '@tailwindcss/typography@0.5.9(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)))': dependencies: lodash.castarray: 4.4.0 lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 postcss-selector-parser: 6.0.10 - tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.5.2)) + tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) '@tanstack/query-core@5.36.1': {} @@ -22562,7 +22216,7 @@ snapshots: '@types/cli-progress@3.11.5': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/cli-table@0.3.1': {} @@ -22576,21 +22230,21 @@ snapshots: '@types/connect@3.4.36': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/connect@3.4.38': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/conventional-commits-parser@5.0.0': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/cookie@0.6.0': {} '@types/cors@2.8.17': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/crypto-js@4.2.2': {} @@ -22721,7 +22375,7 @@ snapshots: '@types/decompress@4.2.7': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/deep-eql@4.0.2': {} @@ -22748,7 +22402,7 @@ snapshots: '@types/fs-extra@11.0.4': dependencies: '@types/jsonfile': 6.1.4 - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/geojson@7946.0.10': {} @@ -22771,7 +22425,7 @@ snapshots: '@types/jsonfile@6.1.4': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/linkify-it@3.0.2': {} @@ -22811,43 +22465,29 @@ snapshots: '@types/mute-stream@0.0.4': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/mysql@2.15.26': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/mysql@2.15.27': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/node-fetch@2.6.11': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 form-data: 4.0.5 '@types/node@18.19.21': dependencies: undici-types: 5.26.5 - '@types/node@20.11.26': - dependencies: - undici-types: 5.26.5 - '@types/node@20.12.12': dependencies: undici-types: 5.26.5 - '@types/node@20.3.1': {} - - '@types/node@20.8.10': - dependencies: - undici-types: 5.26.5 - - '@types/node@20.9.0': - dependencies: - undici-types: 5.26.5 - '@types/node@22.17.0': dependencies: undici-types: 6.21.0 @@ -22855,12 +22495,10 @@ snapshots: '@types/nodemailer@7.0.4': dependencies: '@aws-sdk/client-sesv2': 3.996.0 - '@types/node': 20.12.12 + '@types/node': 22.17.0 transitivePeerDependencies: - aws-crt - '@types/normalize-package-data@2.4.1': {} - '@types/normalize-package-data@2.4.4': {} '@types/parse-json@4.0.2': {} @@ -22879,25 +22517,25 @@ snapshots: '@types/pg@8.15.4': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 pg-protocol: 1.10.3 pg-types: 2.2.0 '@types/pg@8.15.5': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 pg-protocol: 1.10.3 pg-types: 2.2.0 '@types/pg@8.15.6': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 pg-protocol: 1.10.3 pg-types: 2.2.0 '@types/pg@8.6.1': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 pg-protocol: 1.10.3 pg-types: 2.2.0 @@ -22905,7 +22543,7 @@ snapshots: '@types/prompts@2.4.9': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 kleur: 3.0.3 '@types/prop-types@15.7.15': {} @@ -22929,16 +22567,16 @@ snapshots: '@types/stream-chain@2.0.1': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/stream-json@1.7.7': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/stream-chain': 2.0.1 '@types/tedious@4.0.14': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/tern@0.23.5': dependencies: @@ -22946,7 +22584,7 @@ snapshots: '@types/through@0.0.30': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/trusted-types@2.0.7': optional: true @@ -22961,11 +22599,11 @@ snapshots: '@types/ws@8.5.10': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/ws@8.5.14': dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint@8.57.1)(typescript@5.5.2)': dependencies: @@ -22991,7 +22629,7 @@ snapshots: '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.5.2) - debug: 4.3.7 + debug: 4.4.1 eslint: 8.57.1 optionalDependencies: typescript: 5.5.2 @@ -23059,53 +22697,34 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@vitejs/plugin-react@4.2.1(vite@5.4.21(@types/node@20.3.1)(terser@5.44.1))': + '@vitejs/plugin-react@4.2.1(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1))': dependencies: '@babel/core': 7.24.5 '@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/core@7.24.5) '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/core@7.24.5) '@types/babel__core': 7.20.5 react-refresh: 0.14.0 - vite: 5.4.21(@types/node@20.3.1)(terser@5.44.1) + vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) transitivePeerDependencies: - supports-color - '@vitejs/plugin-react@4.3.1(vite@5.4.21(@types/node@20.12.12)(terser@5.44.1))': + '@vitejs/plugin-react@4.3.1(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1))': dependencies: '@babel/core': 7.24.5 '@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.24.5) '@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.24.5) '@types/babel__core': 7.20.5 react-refresh: 0.14.2 - vite: 5.4.21(@types/node@20.12.12)(terser@5.44.1) - transitivePeerDependencies: - - supports-color - - '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@18.19.21)(jsdom@27.2.0)(msw@2.2.11(typescript@5.5.2))(terser@5.44.1))': - dependencies: - '@ampproject/remapping': 2.3.0 - '@bcoe/v8-coverage': 1.0.2 - ast-v8-to-istanbul: 0.3.8 - debug: 4.3.7 - istanbul-lib-coverage: 3.2.2 - istanbul-lib-report: 3.0.1 - istanbul-lib-source-maps: 5.0.6 - istanbul-reports: 3.2.0 - magic-string: 0.30.17 - magicast: 0.3.5 - std-env: 3.9.0 - test-exclude: 7.0.1 - tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@18.19.21)(jsdom@27.2.0)(msw@2.2.11(typescript@5.5.2))(terser@5.44.1) + vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@20.12.12)(jsdom@27.2.0)(terser@5.44.1))': + '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@23.2.0)(terser@5.44.1))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 1.0.2 ast-v8-to-istanbul: 0.3.8 - debug: 4.3.7 + debug: 4.4.1 istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 istanbul-lib-source-maps: 5.0.6 @@ -23115,16 +22734,16 @@ snapshots: std-env: 3.9.0 test-exclude: 7.0.1 tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@20.12.12)(jsdom@27.2.0)(terser@5.44.1) + vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@23.2.0)(terser@5.44.1) transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@20.3.1)(jsdom@23.2.0)(terser@5.44.1))': + '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@5.5.2))(terser@5.44.1))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 1.0.2 ast-v8-to-istanbul: 0.3.8 - debug: 4.3.7 + debug: 4.4.1 istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 istanbul-lib-source-maps: 5.0.6 @@ -23134,7 +22753,7 @@ snapshots: std-env: 3.9.0 test-exclude: 7.0.1 tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@20.3.1)(jsdom@23.2.0)(terser@5.44.1) + vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@5.5.2))(terser@5.44.1) transitivePeerDependencies: - supports-color @@ -23143,7 +22762,7 @@ snapshots: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 1.0.2 ast-v8-to-istanbul: 0.3.8 - debug: 4.3.7 + debug: 4.4.1 istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 istanbul-lib-source-maps: 5.0.6 @@ -23165,38 +22784,22 @@ snapshots: chai: 5.2.1 tinyrainbow: 2.0.0 - '@vitest/mocker@3.2.4(msw@2.2.11(typescript@5.5.2))(vite@5.4.19(@types/node@18.19.21)(terser@5.44.1))': + '@vitest/mocker@3.2.4(msw@2.2.11(typescript@5.5.2))(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.17 optionalDependencies: msw: 2.2.11(typescript@5.5.2) - vite: 5.4.19(@types/node@18.19.21)(terser@5.44.1) - - '@vitest/mocker@3.2.4(vite@5.4.19(@types/node@20.12.12)(terser@5.44.1))': - dependencies: - '@vitest/spy': 3.2.4 - estree-walker: 3.0.3 - magic-string: 0.30.17 - optionalDependencies: - vite: 5.4.19(@types/node@20.12.12)(terser@5.44.1) - - '@vitest/mocker@3.2.4(vite@5.4.19(@types/node@20.3.1)(terser@5.44.1))': - dependencies: - '@vitest/spy': 3.2.4 - estree-walker: 3.0.3 - magic-string: 0.30.17 - optionalDependencies: - vite: 5.4.19(@types/node@20.3.1)(terser@5.44.1) + vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) - '@vitest/mocker@3.2.4(vite@5.4.19(@types/node@22.17.0)(terser@5.44.1))': + '@vitest/mocker@3.2.4(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.17 optionalDependencies: - vite: 5.4.19(@types/node@22.17.0)(terser@5.44.1) + vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) '@vitest/pretty-format@3.2.4': dependencies: @@ -23414,9 +23017,9 @@ snapshots: dependencies: acorn: 8.16.0 - acorn-jsx@5.3.2(acorn@8.15.0): + acorn-jsx@5.3.2(acorn@8.16.0): dependencies: - acorn: 8.15.0 + acorn: 8.16.0 acorn-walk@8.3.4: dependencies: @@ -23845,12 +23448,12 @@ snapshots: bun-types@1.2.12: dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 optional: true bun-types@1.2.3: dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 '@types/ws': 8.5.14 bundle-name@3.0.0: @@ -23968,7 +23571,7 @@ snapshots: dependencies: ansi-styles: 3.2.1 escape-string-regexp: 1.0.5 - supports-color: 8.1.1 + supports-color: 10.2.0 chalk@3.0.0: dependencies: @@ -23978,7 +23581,7 @@ snapshots: chalk@4.1.2: dependencies: ansi-styles: 4.3.0 - supports-color: 7.2.0 + supports-color: 10.2.0 chalk@5.3.0: {} @@ -24317,7 +23920,7 @@ snapshots: cosmiconfig@8.0.0: dependencies: - import-fresh: 3.3.0 + import-fresh: 3.3.1 js-yaml: 4.1.1 parse-json: 5.2.0 path-type: 4.0.0 @@ -24393,8 +23996,6 @@ snapshots: css-tree: 3.2.1 lru-cache: 11.2.6 - csstype@3.1.3: {} - csstype@3.2.3: {} d3-array@3.2.4: @@ -24627,11 +24228,6 @@ snapshots: has-property-descriptors: 1.0.2 object-keys: 1.1.1 - del-cli@5.0.0: - dependencies: - del: 7.1.0 - meow: 10.1.5 - del-cli@5.1.0: dependencies: del: 7.1.0 @@ -24746,8 +24342,6 @@ snapshots: dotenv-expand@8.0.3: {} - dotenv@16.4.5: {} - dotenv@16.6.0: {} dotenv@17.3.1: {} @@ -24820,7 +24414,7 @@ snapshots: engine.io@6.6.4: dependencies: '@types/cors': 2.8.17 - '@types/node': 20.12.12 + '@types/node': 22.17.0 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.7.2 @@ -24987,31 +24581,6 @@ snapshots: '@esbuild/win32-ia32': 0.17.19 '@esbuild/win32-x64': 0.17.19 - esbuild@0.18.20: - optionalDependencies: - '@esbuild/android-arm': 0.18.20 - '@esbuild/android-arm64': 0.18.20 - '@esbuild/android-x64': 0.18.20 - '@esbuild/darwin-arm64': 0.18.20 - '@esbuild/darwin-x64': 0.18.20 - '@esbuild/freebsd-arm64': 0.18.20 - '@esbuild/freebsd-x64': 0.18.20 - '@esbuild/linux-arm': 0.18.20 - '@esbuild/linux-arm64': 0.18.20 - '@esbuild/linux-ia32': 0.18.20 - '@esbuild/linux-loong64': 0.18.20 - '@esbuild/linux-mips64el': 0.18.20 - '@esbuild/linux-ppc64': 0.18.20 - '@esbuild/linux-riscv64': 0.18.20 - '@esbuild/linux-s390x': 0.18.20 - '@esbuild/linux-x64': 0.18.20 - '@esbuild/netbsd-x64': 0.18.20 - '@esbuild/openbsd-x64': 0.18.20 - '@esbuild/sunos-x64': 0.18.20 - '@esbuild/win32-arm64': 0.18.20 - '@esbuild/win32-ia32': 0.18.20 - '@esbuild/win32-x64': 0.18.20 - esbuild@0.19.11: optionalDependencies: '@esbuild/aix-ppc64': 0.19.11 @@ -25228,12 +24797,12 @@ snapshots: eslint-import-resolver-typescript@3.5.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint-import-resolver-node@0.3.7)(eslint-plugin-import@2.27.5(eslint@8.57.1))(eslint@8.57.1): dependencies: - debug: 4.3.7 + debug: 4.4.1 enhanced-resolve: 5.15.0 eslint: 8.57.1 eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1) eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1) - get-tsconfig: 4.7.2 + get-tsconfig: 4.10.1 globby: 13.2.2 is-core-module: 2.12.1 is-glob: 4.0.3 @@ -25246,12 +24815,12 @@ snapshots: eslint-import-resolver-typescript@3.5.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint-plugin-import@2.27.5)(eslint@8.57.1): dependencies: - debug: 4.3.7 + debug: 4.4.1 enhanced-resolve: 5.15.0 eslint: 8.57.1 eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1) eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint@8.57.1) - get-tsconfig: 4.7.2 + get-tsconfig: 4.10.1 globby: 13.2.2 is-core-module: 2.12.1 is-glob: 4.0.3 @@ -25301,7 +24870,7 @@ snapshots: array-includes: 3.1.6 array.prototype.flat: 1.3.1 array.prototype.flatmap: 1.3.1 - debug: 4.3.7 + debug: 4.4.1 doctrine: 2.1.0 eslint: 8.57.1 eslint-import-resolver-node: 0.3.7 @@ -25326,7 +24895,7 @@ snapshots: array-includes: 3.1.6 array.prototype.flat: 1.3.1 array.prototype.flatmap: 1.3.1 - debug: 4.3.7 + debug: 4.4.1 doctrine: 2.1.0 eslint: 8.57.1 eslint-import-resolver-node: 0.3.7 @@ -25426,7 +24995,7 @@ snapshots: eslint-plugin-unicorn@47.0.0(eslint@8.57.1): dependencies: - '@babel/helper-validator-identifier': 7.27.1 + '@babel/helper-validator-identifier': 7.28.5 '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.1) ci-info: 3.8.0 clean-regexp: 1.0.0 @@ -25507,8 +25076,8 @@ snapshots: espree@9.6.1: dependencies: - acorn: 8.15.0 - acorn-jsx: 5.3.2(acorn@8.15.0) + acorn: 8.16.0 + acorn-jsx: 5.3.2(acorn@8.16.0) eslint-visitor-keys: 3.4.3 esquery@1.6.0: @@ -25798,10 +25367,6 @@ snapshots: optionalDependencies: picomatch: 4.0.3 - fdir@6.4.6(picomatch@4.0.3): - optionalDependencies: - picomatch: 4.0.3 - fdir@6.5.0(picomatch@4.0.3): optionalDependencies: picomatch: 4.0.3 @@ -26058,10 +25623,6 @@ snapshots: dependencies: resolve-pkg-maps: 1.0.0 - get-tsconfig@4.7.2: - dependencies: - resolve-pkg-maps: 1.0.0 - get-tsconfig@4.7.5: dependencies: resolve-pkg-maps: 1.0.0 @@ -26220,13 +25781,13 @@ snapshots: graphmatch@1.1.1: {} - graphql-config@4.5.0(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)): + graphql-config@4.5.0(@types/node@22.17.0)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)): dependencies: '@graphql-tools/graphql-file-loader': 7.5.17(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-tools/json-file-loader': 7.4.18(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-tools/load': 7.8.14(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-tools/merge': 8.3.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/url-loader': 7.17.18(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/url-loader': 7.17.18(@types/node@22.17.0)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) cosmiconfig: 8.0.0 graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) @@ -26571,11 +26132,6 @@ snapshots: ignore@5.3.1: {} - import-fresh@3.3.0: - dependencies: - parent-module: 1.0.1 - resolve-from: 4.0.0 - import-fresh@3.3.1: dependencies: parent-module: 1.0.1 @@ -26919,12 +26475,12 @@ snapshots: dependencies: istanbul-lib-coverage: 3.2.2 make-dir: 4.0.0 - supports-color: 8.1.1 + supports-color: 10.2.0 istanbul-lib-source-maps@5.0.6: dependencies: '@jridgewell/trace-mapping': 0.3.31 - debug: 4.3.7 + debug: 4.4.1 istanbul-lib-coverage: 3.2.2 transitivePeerDependencies: - supports-color @@ -26957,7 +26513,7 @@ snapshots: jest-worker@27.5.1: dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 merge-stream: 2.0.0 supports-color: 10.2.0 @@ -27309,8 +26865,8 @@ snapshots: magicast@0.3.5: dependencies: - '@babel/parser': 7.28.0 - '@babel/types': 7.28.2 + '@babel/parser': 7.29.2 + '@babel/types': 7.29.0 source-map-js: 1.2.1 make-dir@1.3.0: @@ -27553,10 +27109,6 @@ snapshots: merge2@1.4.1: {} - meros@1.3.0(@types/node@18.19.21): - optionalDependencies: - '@types/node': 18.19.21 - meros@1.3.0(@types/node@22.17.0): optionalDependencies: '@types/node': 22.17.0 @@ -28064,7 +27616,7 @@ snapshots: normalize-package-data@3.0.3: dependencies: hosted-git-info: 4.1.0 - is-core-module: 2.12.1 + is-core-module: 2.16.1 semver: 7.7.1 validate-npm-package-license: 3.0.4 @@ -28532,11 +28084,6 @@ snapshots: pinkie@2.0.4: {} - pino-abstract-transport@1.0.0: - dependencies: - readable-stream: 4.4.2 - split2: 4.2.0 - pino-abstract-transport@1.1.0: dependencies: readable-stream: 4.4.2 @@ -28568,20 +28115,6 @@ snapshots: pino-std-serializers@7.0.0: {} - pino@8.14.1: - dependencies: - atomic-sleep: 1.0.0 - fast-redact: 3.2.0 - on-exit-leak-free: 2.1.0 - pino-abstract-transport: 1.0.0 - pino-std-serializers: 6.2.2 - process-warning: 2.2.0 - quick-format-unescaped: 4.0.4 - real-require: 0.2.0 - safe-stable-stringify: 2.4.3 - sonic-boom: 3.3.0 - thread-stream: 2.3.0 - pino@8.19.0: dependencies: atomic-sleep: 1.0.0 @@ -28653,29 +28186,21 @@ snapshots: camelcase-css: 2.0.1 postcss: 8.4.49 - postcss-load-config@4.0.1(postcss@8.5.6)(ts-node@10.9.2(@types/node@20.8.10)(typescript@5.2.2)): + postcss-load-config@4.0.1(postcss@8.5.6)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)): dependencies: lilconfig: 2.1.0 yaml: 2.3.1 optionalDependencies: postcss: 8.5.6 - ts-node: 10.9.2(@types/node@20.8.10)(typescript@5.2.2) - - postcss-load-config@4.0.2(postcss@8.4.49)(ts-node@10.9.2(@types/node@20.12.12)(typescript@5.5.2)): - dependencies: - lilconfig: 3.1.2 - yaml: 2.6.1 - optionalDependencies: - postcss: 8.4.49 - ts-node: 10.9.2(@types/node@20.12.12)(typescript@5.5.2) + ts-node: 10.9.2(@types/node@22.17.0)(typescript@5.5.2) - postcss-load-config@4.0.2(postcss@8.4.49)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.5.2)): + postcss-load-config@4.0.2(postcss@8.4.49)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)): dependencies: lilconfig: 3.1.2 yaml: 2.6.1 optionalDependencies: postcss: 8.4.49 - ts-node: 10.9.2(@types/node@20.3.1)(typescript@5.5.2) + ts-node: 10.9.2(@types/node@22.17.0)(typescript@5.5.2) postcss-nested@6.2.0(postcss@8.4.49): dependencies: @@ -28717,12 +28242,6 @@ snapshots: picocolors: 1.1.1 source-map-js: 1.2.1 - postcss@8.5.3: - dependencies: - nanoid: 3.3.11 - picocolors: 1.1.1 - source-map-js: 1.2.1 - postcss@8.5.6: dependencies: nanoid: 3.3.11 @@ -28762,8 +28281,6 @@ snapshots: dependencies: prettier: 3.6.2 - prettier@3.2.5: {} - prettier@3.5.3: {} prettier@3.6.2: {} @@ -28963,7 +28480,7 @@ snapshots: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 20.12.12 + '@types/node': 22.17.0 long: 5.3.2 protocols@2.0.1: {} @@ -29297,7 +28814,7 @@ snapshots: read-pkg@6.0.0: dependencies: - '@types/normalize-package-data': 2.4.1 + '@types/normalize-package-data': 2.4.4 normalize-package-data: 3.0.3 parse-json: 5.2.0 type-fest: 1.4.0 @@ -29864,10 +29381,6 @@ snapshots: ip-address: 9.0.5 smart-buffer: 4.2.0 - sonic-boom@3.3.0: - dependencies: - atomic-sleep: 1.0.0 - sonic-boom@3.7.0: dependencies: atomic-sleep: 1.0.0 @@ -30071,7 +29584,7 @@ snapshots: stripe@14.19.0: dependencies: - '@types/node': 20.12.12 + '@types/node': 22.17.0 qs: 6.14.1 strnum@2.1.2: {} @@ -30130,10 +29643,6 @@ snapshots: dependencies: has-flag: 4.0.0 - supports-color@8.1.1: - dependencies: - has-flag: 4.0.0 - supports-preserve-symlinks-flag@1.0.0: {} symbol-tree@3.2.4: {} @@ -30147,23 +29656,15 @@ snapshots: dependencies: '@babel/runtime': 7.27.1 - tailwind-scrollbar@3.1.0(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@20.12.12)(typescript@5.5.2))): - dependencies: - tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@20.12.12)(typescript@5.5.2)) - - tailwind-scrollbar@3.1.0(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.5.2))): + tailwind-scrollbar@3.1.0(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))): dependencies: - tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.5.2)) + tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) - tailwindcss-animate@1.0.7(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@20.12.12)(typescript@5.5.2))): + tailwindcss-animate@1.0.7(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))): dependencies: - tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@20.12.12)(typescript@5.5.2)) + tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) - tailwindcss-animate@1.0.7(tailwindcss@3.4.15(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.5.2))): - dependencies: - tailwindcss: 3.4.15(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.5.2)) - - tailwindcss@3.4.15(ts-node@10.9.2(@types/node@20.12.12)(typescript@5.5.2)): + tailwindcss@3.4.15(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)): dependencies: '@alloc/quick-lru': 5.2.0 arg: 5.0.2 @@ -30182,34 +29683,7 @@ snapshots: postcss: 8.4.49 postcss-import: 15.1.0(postcss@8.4.49) postcss-js: 4.0.1(postcss@8.4.49) - postcss-load-config: 4.0.2(postcss@8.4.49)(ts-node@10.9.2(@types/node@20.12.12)(typescript@5.5.2)) - postcss-nested: 6.2.0(postcss@8.4.49) - postcss-selector-parser: 6.1.2 - resolve: 1.22.8 - sucrase: 3.35.0 - transitivePeerDependencies: - - ts-node - - tailwindcss@3.4.15(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.5.2)): - dependencies: - '@alloc/quick-lru': 5.2.0 - arg: 5.0.2 - chokidar: 3.6.0 - didyoumean: 1.2.2 - dlv: 1.1.3 - fast-glob: 3.3.2 - glob-parent: 6.0.2 - is-glob: 4.0.3 - jiti: 1.21.6 - lilconfig: 2.1.0 - micromatch: 4.0.8 - normalize-path: 3.0.0 - object-hash: 3.0.0 - picocolors: 1.1.1 - postcss: 8.4.49 - postcss-import: 15.1.0(postcss@8.4.49) - postcss-js: 4.0.1(postcss@8.4.49) - postcss-load-config: 4.0.2(postcss@8.4.49)(ts-node@10.9.2(@types/node@20.3.1)(typescript@5.5.2)) + postcss-load-config: 4.0.2(postcss@8.4.49)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) postcss-nested: 6.2.0(postcss@8.4.49) postcss-selector-parser: 6.1.2 resolve: 1.22.8 @@ -30306,11 +29780,6 @@ snapshots: tinyexec@1.0.1: {} - tinyglobby@0.2.14: - dependencies: - fdir: 6.4.6(picomatch@4.0.3) - picomatch: 4.0.3 - tinyglobby@0.2.15: dependencies: fdir: 6.5.0(picomatch@4.0.3) @@ -30405,63 +29874,6 @@ snapshots: ts-interface-checker@0.1.13: {} - ts-node@10.9.2(@types/node@20.12.12)(typescript@5.5.2): - dependencies: - '@cspotcode/source-map-support': 0.8.1 - '@tsconfig/node10': 1.0.11 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.4 - '@types/node': 20.12.12 - acorn: 8.14.1 - acorn-walk: 8.3.4 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.5.2 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - optional: true - - ts-node@10.9.2(@types/node@20.3.1)(typescript@5.5.2): - dependencies: - '@cspotcode/source-map-support': 0.8.1 - '@tsconfig/node10': 1.0.11 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.4 - '@types/node': 20.3.1 - acorn: 8.14.1 - acorn-walk: 8.3.4 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.5.2 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - optional: true - - ts-node@10.9.2(@types/node@20.8.10)(typescript@5.2.2): - dependencies: - '@cspotcode/source-map-support': 0.8.1 - '@tsconfig/node10': 1.0.11 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.4 - '@types/node': 20.8.10 - acorn: 8.14.1 - acorn-walk: 8.3.4 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.2.2 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - optional: true - ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2): dependencies: '@cspotcode/source-map-support': 0.8.1 @@ -30497,7 +29909,7 @@ snapshots: tslib@2.8.1: {} - tsup@8.0.1(@microsoft/api-extractor@7.58.2(@types/node@20.8.10))(postcss@8.5.6)(ts-node@10.9.2(@types/node@20.8.10)(typescript@5.2.2))(typescript@5.2.2): + tsup@8.0.1(@microsoft/api-extractor@7.58.2(@types/node@22.17.0))(postcss@8.5.6)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2))(typescript@5.5.2): dependencies: bundle-require: 4.0.1(esbuild@0.19.11) cac: 6.7.14 @@ -30507,16 +29919,16 @@ snapshots: execa: 5.1.1 globby: 11.1.0 joycon: 3.1.1 - postcss-load-config: 4.0.1(postcss@8.5.6)(ts-node@10.9.2(@types/node@20.8.10)(typescript@5.2.2)) + postcss-load-config: 4.0.1(postcss@8.5.6)(ts-node@10.9.2(@types/node@22.17.0)(typescript@5.5.2)) resolve-from: 5.0.0 rollup: 4.59.0 source-map: 0.8.0-beta.0 sucrase: 3.34.0 tree-kill: 1.2.2 optionalDependencies: - '@microsoft/api-extractor': 7.58.2(@types/node@20.8.10) + '@microsoft/api-extractor': 7.58.2(@types/node@22.17.0) postcss: 8.5.6 - typescript: 5.2.2 + typescript: 5.5.2 transitivePeerDependencies: - supports-color - ts-node @@ -30526,21 +29938,6 @@ snapshots: tslib: 1.14.1 typescript: 5.5.2 - tsx@3.14.0: - dependencies: - esbuild: 0.18.20 - get-tsconfig: 4.7.2 - source-map-support: 0.5.21 - optionalDependencies: - fsevents: 2.3.3 - - tsx@4.16.0: - dependencies: - esbuild: 0.21.5 - get-tsconfig: 4.7.5 - optionalDependencies: - fsevents: 2.3.3 - tsx@4.19.4: dependencies: esbuild: 0.25.9 @@ -30613,10 +30010,6 @@ snapshots: typescript@4.5.2: {} - typescript@5.2.2: {} - - typescript@5.3.2: {} - typescript@5.5.2: {} typescript@5.9.3: {} @@ -30873,64 +30266,10 @@ snapshots: d3-time: 3.1.0 d3-timer: 3.0.1 - vite-node@3.2.4(@types/node@18.19.21)(terser@5.44.1): - dependencies: - cac: 6.7.14 - debug: 4.3.7 - es-module-lexer: 1.7.0 - pathe: 2.0.3 - vite: 5.4.21(@types/node@18.19.21)(terser@5.44.1) - transitivePeerDependencies: - - '@types/node' - - less - - lightningcss - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - - vite-node@3.2.4(@types/node@20.12.12)(terser@5.44.1): - dependencies: - cac: 6.7.14 - debug: 4.3.7 - es-module-lexer: 1.7.0 - pathe: 2.0.3 - vite: 5.4.21(@types/node@20.12.12)(terser@5.44.1) - transitivePeerDependencies: - - '@types/node' - - less - - lightningcss - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - - vite-node@3.2.4(@types/node@20.3.1)(terser@5.44.1): - dependencies: - cac: 6.7.14 - debug: 4.3.7 - es-module-lexer: 1.7.0 - pathe: 2.0.3 - vite: 5.4.21(@types/node@20.3.1)(terser@5.44.1) - transitivePeerDependencies: - - '@types/node' - - less - - lightningcss - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - vite-node@3.2.4(@types/node@22.17.0)(terser@5.44.1): dependencies: cac: 6.7.14 - debug: 4.3.7 + debug: 4.4.1 es-module-lexer: 1.7.0 pathe: 2.0.3 vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) @@ -30945,9 +30284,9 @@ snapshots: - supports-color - terser - vite-plugin-dts@4.5.4(@types/node@20.12.12)(rollup@4.59.0)(typescript@5.5.2)(vite@5.4.21(@types/node@20.12.12)(terser@5.44.1)): + vite-plugin-dts@4.5.4(@types/node@22.17.0)(rollup@4.59.0)(typescript@5.5.2)(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)): dependencies: - '@microsoft/api-extractor': 7.58.2(@types/node@20.12.12) + '@microsoft/api-extractor': 7.58.2(@types/node@22.17.0) '@rollup/pluginutils': 5.3.0(rollup@4.59.0) '@volar/typescript': 2.4.28 '@vue/language-core': 2.2.0(typescript@5.5.2) @@ -30958,13 +30297,13 @@ snapshots: magic-string: 0.30.17 typescript: 5.5.2 optionalDependencies: - vite: 5.4.21(@types/node@20.12.12)(terser@5.44.1) + vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) transitivePeerDependencies: - '@types/node' - rollup - supports-color - vite-plugin-html@3.2.2(vite@5.4.21(@types/node@20.12.12)(terser@5.44.1)): + vite-plugin-html@3.2.2(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)): dependencies: '@rollup/pluginutils': 4.2.1 colorette: 2.0.20 @@ -30978,83 +30317,13 @@ snapshots: html-minifier-terser: 6.1.0 node-html-parser: 5.4.2 pathe: 0.2.0 - vite: 5.4.21(@types/node@20.12.12)(terser@5.44.1) + vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) - vite-plugin-singlefile@2.2.0(rollup@4.59.0)(vite@5.4.21(@types/node@20.12.12)(terser@5.44.1)): + vite-plugin-singlefile@2.2.0(rollup@4.59.0)(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)): dependencies: micromatch: 4.0.8 rollup: 4.59.0 - vite: 5.4.21(@types/node@20.12.12)(terser@5.44.1) - - vite@5.4.19(@types/node@18.19.21)(terser@5.44.1): - dependencies: - esbuild: 0.21.5 - postcss: 8.5.3 - rollup: 4.59.0 - optionalDependencies: - '@types/node': 18.19.21 - fsevents: 2.3.3 - terser: 5.44.1 - - vite@5.4.19(@types/node@20.12.12)(terser@5.44.1): - dependencies: - esbuild: 0.21.5 - postcss: 8.5.3 - rollup: 4.59.0 - optionalDependencies: - '@types/node': 20.12.12 - fsevents: 2.3.3 - terser: 5.44.1 - - vite@5.4.19(@types/node@20.3.1)(terser@5.44.1): - dependencies: - esbuild: 0.21.5 - postcss: 8.5.3 - rollup: 4.59.0 - optionalDependencies: - '@types/node': 20.3.1 - fsevents: 2.3.3 - terser: 5.44.1 - - vite@5.4.19(@types/node@22.17.0)(terser@5.44.1): - dependencies: - esbuild: 0.21.5 - postcss: 8.5.3 - rollup: 4.59.0 - optionalDependencies: - '@types/node': 22.17.0 - fsevents: 2.3.3 - terser: 5.44.1 - - vite@5.4.21(@types/node@18.19.21)(terser@5.44.1): - dependencies: - esbuild: 0.21.5 - postcss: 8.5.6 - rollup: 4.59.0 - optionalDependencies: - '@types/node': 18.19.21 - fsevents: 2.3.3 - terser: 5.44.1 - - vite@5.4.21(@types/node@20.12.12)(terser@5.44.1): - dependencies: - esbuild: 0.21.5 - postcss: 8.5.6 - rollup: 4.59.0 - optionalDependencies: - '@types/node': 20.12.12 - fsevents: 2.3.3 - terser: 5.44.1 - - vite@5.4.21(@types/node@20.3.1)(terser@5.44.1): - dependencies: - esbuild: 0.21.5 - postcss: 8.5.6 - rollup: 4.59.0 - optionalDependencies: - '@types/node': 20.3.1 - fsevents: 2.3.3 - terser: 5.44.1 + vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) vite@5.4.21(@types/node@22.17.0)(terser@5.44.1): dependencies: @@ -31066,98 +30335,18 @@ snapshots: fsevents: 2.3.3 terser: 5.44.1 - vitest@3.2.4(@types/debug@4.1.12)(@types/node@18.19.21)(jsdom@27.2.0)(msw@2.2.11(typescript@5.5.2))(terser@5.44.1): - dependencies: - '@types/chai': 5.2.2 - '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(msw@2.2.11(typescript@5.5.2))(vite@5.4.19(@types/node@18.19.21)(terser@5.44.1)) - '@vitest/pretty-format': 3.2.4 - '@vitest/runner': 3.2.4 - '@vitest/snapshot': 3.2.4 - '@vitest/spy': 3.2.4 - '@vitest/utils': 3.2.4 - chai: 5.2.1 - debug: 4.3.7 - expect-type: 1.2.1 - magic-string: 0.30.17 - pathe: 2.0.3 - picomatch: 4.0.3 - std-env: 3.9.0 - tinybench: 2.9.0 - tinyexec: 0.3.2 - tinyglobby: 0.2.14 - tinypool: 1.1.1 - tinyrainbow: 2.0.0 - vite: 5.4.19(@types/node@18.19.21)(terser@5.44.1) - vite-node: 3.2.4(@types/node@18.19.21)(terser@5.44.1) - why-is-node-running: 2.3.0 - optionalDependencies: - '@types/debug': 4.1.12 - '@types/node': 18.19.21 - jsdom: 27.2.0 - transitivePeerDependencies: - - less - - lightningcss - - msw - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - - vitest@3.2.4(@types/debug@4.1.12)(@types/node@20.12.12)(jsdom@27.2.0)(terser@5.44.1): + vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@23.2.0)(terser@5.44.1): dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(vite@5.4.19(@types/node@20.12.12)(terser@5.44.1)) + '@vitest/mocker': 3.2.4(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 '@vitest/spy': 3.2.4 '@vitest/utils': 3.2.4 chai: 5.2.1 - debug: 4.3.7 - expect-type: 1.2.1 - magic-string: 0.30.17 - pathe: 2.0.3 - picomatch: 4.0.3 - std-env: 3.9.0 - tinybench: 2.9.0 - tinyexec: 0.3.2 - tinyglobby: 0.2.14 - tinypool: 1.1.1 - tinyrainbow: 2.0.0 - vite: 5.4.19(@types/node@20.12.12)(terser@5.44.1) - vite-node: 3.2.4(@types/node@20.12.12)(terser@5.44.1) - why-is-node-running: 2.3.0 - optionalDependencies: - '@types/debug': 4.1.12 - '@types/node': 20.12.12 - jsdom: 27.2.0 - transitivePeerDependencies: - - less - - lightningcss - - msw - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - - vitest@3.2.4(@types/debug@4.1.12)(@types/node@20.3.1)(jsdom@23.2.0)(terser@5.44.1): - dependencies: - '@types/chai': 5.2.2 - '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(vite@5.4.19(@types/node@20.3.1)(terser@5.44.1)) - '@vitest/pretty-format': 3.2.4 - '@vitest/runner': 3.2.4 - '@vitest/snapshot': 3.2.4 - '@vitest/spy': 3.2.4 - '@vitest/utils': 3.2.4 - chai: 5.2.1 - debug: 4.3.7 + debug: 4.4.1 expect-type: 1.2.1 magic-string: 0.30.17 pathe: 2.0.3 @@ -31165,15 +30354,15 @@ snapshots: std-env: 3.9.0 tinybench: 2.9.0 tinyexec: 0.3.2 - tinyglobby: 0.2.14 + tinyglobby: 0.2.15 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 5.4.19(@types/node@20.3.1)(terser@5.44.1) - vite-node: 3.2.4(@types/node@20.3.1)(terser@5.44.1) + vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) + vite-node: 3.2.4(@types/node@22.17.0)(terser@5.44.1) why-is-node-running: 2.3.0 optionalDependencies: '@types/debug': 4.1.12 - '@types/node': 20.3.1 + '@types/node': 22.17.0 jsdom: 23.2.0 transitivePeerDependencies: - less @@ -31186,18 +30375,18 @@ snapshots: - supports-color - terser - vitest@3.2.4(@types/debug@4.1.12)(@types/node@20.3.1)(jsdom@27.2.0)(terser@5.44.1): + vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.17.0)(jsdom@27.2.0)(msw@2.2.11(typescript@5.5.2))(terser@5.44.1): dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(vite@5.4.19(@types/node@20.3.1)(terser@5.44.1)) + '@vitest/mocker': 3.2.4(msw@2.2.11(typescript@5.5.2))(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 '@vitest/spy': 3.2.4 '@vitest/utils': 3.2.4 chai: 5.2.1 - debug: 4.3.7 + debug: 4.4.1 expect-type: 1.2.1 magic-string: 0.30.17 pathe: 2.0.3 @@ -31205,15 +30394,15 @@ snapshots: std-env: 3.9.0 tinybench: 2.9.0 tinyexec: 0.3.2 - tinyglobby: 0.2.14 + tinyglobby: 0.2.15 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 5.4.19(@types/node@20.3.1)(terser@5.44.1) - vite-node: 3.2.4(@types/node@20.3.1)(terser@5.44.1) + vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) + vite-node: 3.2.4(@types/node@22.17.0)(terser@5.44.1) why-is-node-running: 2.3.0 optionalDependencies: '@types/debug': 4.1.12 - '@types/node': 20.3.1 + '@types/node': 22.17.0 jsdom: 27.2.0 transitivePeerDependencies: - less @@ -31230,14 +30419,14 @@ snapshots: dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(vite@5.4.19(@types/node@22.17.0)(terser@5.44.1)) + '@vitest/mocker': 3.2.4(vite@5.4.21(@types/node@22.17.0)(terser@5.44.1)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 '@vitest/spy': 3.2.4 '@vitest/utils': 3.2.4 chai: 5.2.1 - debug: 4.3.7 + debug: 4.4.1 expect-type: 1.2.1 magic-string: 0.30.17 pathe: 2.0.3 @@ -31245,10 +30434,10 @@ snapshots: std-env: 3.9.0 tinybench: 2.9.0 tinyexec: 0.3.2 - tinyglobby: 0.2.14 + tinyglobby: 0.2.15 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 5.4.19(@types/node@22.17.0)(terser@5.44.1) + vite: 5.4.21(@types/node@22.17.0)(terser@5.44.1) vite-node: 3.2.4(@types/node@22.17.0)(terser@5.44.1) why-is-node-running: 2.3.0 optionalDependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index d7995d47ac..dfda311a18 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -18,3 +18,49 @@ packages: - admission-server - protographic - playground + +catalog: + # Build/test tooling + typescript: 5.5.2 + vitest: ^3.2.4 + '@vitest/coverage-v8': 3.2.4 + tsx: ^4.16.0 + prettier: ^3.6.2 + + # Linting + eslint: ^8.57.1 + eslint-config-unjs: ^0.2.1 + eslint-plugin-require-extensions: ^0.1.3 + del-cli: ^5.1.0 + + # React + react: 18.3.1 + react-dom: 18.3.1 + '@types/react': 18.3.3 + '@types/react-dom': 18.3.0 + + # Runtime deps + graphql: ^16.9.0 + zod: ^3.25.0 + axios: 1.13.5 + dotenv: 16.6.0 + date-fns: ^3.6.0 + lodash: 4.18.1 + lodash-es: 4.18.1 + hono: 4.12.12 + pino: ^8.19.0 + + # Types + '@types/node': ^22.0.0 + '@types/lodash': 4.17.24 + '@types/lodash-es': 4.17.12 + + # Buf/Connect + '@bufbuild/protobuf': ^1.9.0 + '@connectrpc/connect': 1.5.0 + '@connectrpc/connect-node': 1.5.0 + '@connectrpc/connect-query': ^1.4.1 + '@connectrpc/connect-web': 1.5.0 + + # GraphQL tooling + '@graphql-tools/utils': ^11.0.0 diff --git a/protographic/package.json b/protographic/package.json index c209f4297c..4aa5324a21 100644 --- a/protographic/package.json +++ b/protographic/package.json @@ -30,21 +30,21 @@ "format": "prettier -w ." }, "devDependencies": { - "@types/lodash-es": "4.17.12", - "@types/node": "^20.11.5", - "@vitest/coverage-v8": "3.2.4", - "eslint": "8.57.1", - "eslint-config-unjs": "0.2.1", - "eslint-plugin-require-extensions": "0.1.3", - "typescript": "^5.0.0", - "vitest": "^3.2.4" + "@types/lodash-es": "catalog:", + "@types/node": "catalog:", + "@vitest/coverage-v8": "catalog:", + "eslint": "catalog:", + "eslint-config-unjs": "catalog:", + "eslint-plugin-require-extensions": "catalog:", + "typescript": "catalog:", + "vitest": "catalog:" }, "dependencies": { - "@bufbuild/protobuf": "^1.8.0", + "@bufbuild/protobuf": "catalog:", "@wundergraph/composition": "workspace:*", "@wundergraph/cosmo-connect": "workspace:*", - "graphql": "^16.9.0", - "lodash-es": "4.18.1", + "graphql": "catalog:", + "lodash-es": "catalog:", "protobufjs": "^7.5.5" } } diff --git a/router/internal/graphiql/graphiql.html b/router/internal/graphiql/graphiql.html index 7b13107930..d9c26f4629 100644 --- a/router/internal/graphiql/graphiql.html +++ b/router/internal/graphiql/graphiql.html @@ -9,7 +9,7 @@ href="data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1080 1080' width='35' height='35' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M447.099 231.913C405.967 244.337 367.742 264.878 334.682 292.323C320.832 268.71 298.796 251.002 272.754 242.557C313.865 205.575 362.202 177.525 414.709 160.178C467.216 142.832 522.751 136.567 577.803 141.781C632.855 146.994 686.227 163.571 734.544 190.465C746.769 197.27 758.603 204.698 770.004 212.711C770.394 212.542 770.785 212.376 771.179 212.213C785.976 206.085 802.259 204.482 817.967 207.607C833.676 210.733 848.105 218.446 859.429 229.771C870.754 241.096 878.465 255.525 881.589 271.233C884.712 286.941 883.107 303.223 876.976 318.018C870.845 332.814 860.464 345.459 847.146 354.355C833.828 363.252 818.171 367.999 802.154 367.997C791.52 367.997 780.991 365.902 771.167 361.833C761.343 357.763 752.417 351.799 744.898 344.28C737.379 336.76 731.415 327.834 727.347 318.01C723.279 308.186 721.186 297.657 721.187 287.024C721.187 282.871 721.506 278.742 722.135 274.672C713.657 268.849 704.889 263.426 695.859 258.426C658.269 237.612 616.889 224.541 574.163 219.988C531.437 215.434 488.232 219.489 447.099 231.913ZM319.489 348.564C319.489 363.809 315.185 378.728 307.094 391.613L323.693 420.326C307.59 439.476 285.501 452.638 260.995 457.683L244.582 429.298C237.31 429.844 229.959 429.408 222.73 427.971C207.024 424.848 192.597 417.138 181.273 405.816C169.949 394.495 162.237 380.069 159.112 364.365C155.986 348.661 157.588 332.382 163.715 317.588C169.841 302.794 180.217 290.149 193.531 281.251C206.845 272.354 222.498 267.604 238.511 267.601C249.145 267.6 259.674 269.693 269.499 273.761C279.324 277.829 288.251 283.793 295.77 291.311C303.29 298.829 309.255 307.755 313.325 317.578C317.394 327.402 319.489 337.931 319.489 348.564ZM260.998 457.685L400.599 699.132L442.692 772.036L484.794 699.132L537.279 608.237L589.621 698.805L631.691 771.687L673.783 698.794L744.391 576.462H859.708C861.079 564.36 861.767 552.19 861.769 540.01C861.771 527.83 861.08 515.66 859.697 503.558H702.288L694.971 516.229L631.67 625.857L579.327 535.278L537.235 462.374L495.208 535.289L442.692 626.184L323.7 420.328C307.596 439.478 285.506 452.64 260.998 457.685ZM861.77 540.003C861.768 552.183 861.08 564.353 859.709 576.455H937.128V503.551H859.709C861.088 515.653 861.776 527.823 861.77 540.003ZM937.154 503.558H938.332C939.411 515.563 940 527.721 940 540.01C940 760.902 760.967 940 540.027 940C319.088 940 140 760.924 140 540.031C139.942 500.879 145.66 461.933 156.968 424.449C175.493 444.394 200.696 456.845 227.794 459.44C221.851 485.163 218.231 515.061 218.231 540.01C218.231 717.668 362.259 861.764 540.038 861.764C705.462 861.764 841.629 736.99 859.731 576.462H937.154V503.558Z' fill='white' %3E%3C/path%3E%3C/svg%3E" /> WunderGraph Playground - +function(){var t=e,n=t.lib,r=n.WordArray,i=n.Hasher,o=t.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c=r.create([0,1518500249,1859775393,2400959708,2840853838]),p=r.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=i.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,d,b,x,E,D,T,w,C,S,k,A=this._hash.words,N=c.words,F=p.words,P=a.words,_=s.words,O=l.words,I=u.words;for(D=o=A[0],T=d=A[1],w=b=A[2],C=x=A[3],S=E=A[4],n=0;n<80;n+=1)k=o+e[t+P[n]]|0,k+=n<16?f(d,b,x)+N[0]:n<32?h(d,b,x)+N[1]:n<48?m(d,b,x)+N[2]:n<64?g(d,b,x)+N[3]:y(d,b,x)+N[4],k=(k=v(k|=0,O[n]))+E|0,o=E,E=x,x=v(b,10),b=d,d=k,k=D+e[t+_[n]]|0,k+=n<16?y(T,w,C)+F[0]:n<32?g(T,w,C)+F[1]:n<48?m(T,w,C)+F[2]:n<64?h(T,w,C)+F[3]:f(T,w,C)+F[4],k=(k=v(k|=0,I[n]))+S|0,D=S,S=C,C=v(w,10),w=T,T=k;k=A[1]+b+C|0,A[1]=A[2]+x+S|0,A[2]=A[3]+E+D|0,A[3]=A[4]+o+T|0,A[4]=A[0]+d+w|0,A[0]=k},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,n){return e^t^n}function h(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function g(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function v(e,t){return e<>>32-t}t.RIPEMD160=i._createHelper(d),t.HmacRIPEMD160=i._createHmacHelper(d)}(),e.RIPEMD160)),cVe.exports;var e}(),fVe(),function(){return hVe||(hVe=1,mVe.exports=(l=ABe(),JBe(),fVe(),t=(e=l).lib,n=t.Base,r=t.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=a.create(n.hasher,e),o=r.create(),s=r.create([1]),l=o.words,u=s.words,c=n.keySize,p=n.iterations;l.length>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return LVe?MVe.exports:(LVe=1,MVe.exports=(e=ABe(),EVe(),e.pad.Iso10126={pad:function(t,n){var r=4*n,i=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return jVe?RVe.exports:(jVe=1,RVe.exports=(e=ABe(),EVe(),e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return BVe||(BVe=1,VVe.exports=(e=ABe(),EVe(),e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding)),VVe.exports;var e}(),function(){return UVe?zVe.exports:(UVe=1,zVe.exports=(e=ABe(),EVe(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return $Ve?HVe.exports:($Ve=1,HVe.exports=(r=ABe(),EVe(),t=(e=r).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var r=n.parse(e);return t.create({ciphertext:r})}},r.format.Hex));var e,t,n,r}(),function(){return qVe||(qVe=1,GVe.exports=(e=ABe(),VBe(),GBe(),vVe(),EVe(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo,i=[],o=[],a=[],s=[],l=[],u=[],c=[],p=[],d=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var h=r^r<<1^r<<2^r<<3^r<<4;h=h>>>8^255&h^99,i[n]=h,o[h]=n;var m=e[n],g=e[m],y=e[g],v=257*e[h]^16843008*h;a[n]=v<<24|v>>>8,s[n]=v<<16|v>>>16,l[n]=v<<8|v>>>24,u[n]=v,v=16843009*y^65537*g^257*m^16843008*n,c[h]=v<<24|v>>>8,p[h]=v<<16|v>>>16,d[h]=v<<8|v>>>24,f[h]=v,n?(n=m^e[e[e[y^m]]],r^=e[e[r]]):n=r=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a6&&a%n==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=i[(u=u<<8|u>>>24)>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=h[a/n|0]<<24),o[a]=o[a-n]^u);for(var s=this._invKeySchedule=[],l=0;l>>24]]^p[i[u>>>16&255]]^d[i[u>>>8&255]]^f[i[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,u,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,c,p,d,f,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var l=this._nRounds,u=e[t]^n[0],c=e[t+1]^n[1],p=e[t+2]^n[2],d=e[t+3]^n[3],f=4,h=1;h>>24]^i[c>>>16&255]^o[p>>>8&255]^a[255&d]^n[f++],g=r[c>>>24]^i[p>>>16&255]^o[d>>>8&255]^a[255&u]^n[f++],y=r[p>>>24]^i[d>>>16&255]^o[u>>>8&255]^a[255&c]^n[f++],v=r[d>>>24]^i[u>>>16&255]^o[c>>>8&255]^a[255&p]^n[f++];u=m,c=g,p=y,d=v}m=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[p>>>8&255]<<8|s[255&d])^n[f++],g=(s[c>>>24]<<24|s[p>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^n[f++],y=(s[p>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^n[f++],v=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&p])^n[f++],e[t]=m,e[t+1]=g,e[t+2]=y,e[t+3]=v},keySize:8});t.AES=n._createHelper(m)}(),e.AES)),GVe.exports;var e}(),QVe(),function(){return YVe||(YVe=1,XVe.exports=(e=ABe(),VBe(),GBe(),vVe(),EVe(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var a=i%n,s=t[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+s)%256;var l=r[i];r[i]=r[o],r[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}t.RC4=n._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=n._createHelper(a)}(),e.RC4)),XVe.exports;var e}(),function(){return JVe||(JVe=1,ZVe.exports=(e=ABe(),VBe(),GBe(),vVe(),EVe(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],o=[],a=[],s=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),p=u>>>16|4294901760&c,d=c<<16|65535&u;for(i[0]^=u,i[1]^=p,i[2]^=c,i[3]^=d,i[4]^=u,i[5]^=p,i[6]^=c,i[7]^=d,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=n._createHelper(s)}(),e.Rabbit)),ZVe.exports;var e}(),function(){return eUe||(eUe=1,tUe.exports=(e=ABe(),VBe(),GBe(),vVe(),EVe(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],o=[],a=[],s=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),p=u>>>16|4294901760&c,d=c<<16|65535&u;for(r[0]^=u,r[1]^=p,r[2]^=c,r[3]^=d,r[4]^=u,r[5]^=p,r[6]^=c,r[7]^=d,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=n._createHelper(s)}(),e.RabbitLegacy)),tUe.exports;var e}(),cUe());const pUe=i(wBe.exports);var dUe=vQ;const fUe=i(function(e,t){return dUe(e,t)}),hUe="Checkbox",[mUe]=FM(hUe),[gUe,yUe]=mUe(hUe),vUe=H.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:a,disabled:s,value:l="on",onCheckedChange:u,...c}=e,[p,d]=H.useState(null),f=hM(t,e=>d(e)),h=H.useRef(!1),m=!p||Boolean(p.closest("form")),[g=!1,y]=VM({prop:i,defaultProp:o,onChange:u}),v=H.useRef(g);return H.useEffect(()=>{const e=null==p?void 0:p.form;if(e){const t=()=>y(v.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[p,y]),H.createElement(gUe,{scope:n,state:g,disabled:s},H.createElement(jM.button,dM({type:"button",role:"checkbox","aria-checked":xUe(g)?"mixed":g,"aria-required":a,"data-state":EUe(g),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:f,onKeyDown:NM(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:NM(e.onClick,e=>{y(e=>!!xUe(e)||!e),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())})})),m&&H.createElement(bUe,{control:p,bubbles:!h.current,name:r,value:l,checked:g,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),bUe=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,o=H.useRef(null),a=xLe(n),s=Uge(t);return H.useEffect(()=>{const e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&i){const t=new Event("click",{bubbles:r});e.indeterminate=xUe(n),i.call(e,!xUe(n)&&n),e.dispatchEvent(t)}},[a,n,r]),H.createElement("input",dM({type:"checkbox","aria-hidden":!0,defaultChecked:!xUe(n)&&n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function xUe(e){return"indeterminate"===e}function EUe(e){return xUe(e)?"indeterminate":e?"checked":"unchecked"}const DUe=vUe,TUe=H.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,o=yUe("CheckboxIndicator",n);return H.createElement(aj,{present:r||xUe(o.state)||!0===o.state},H.createElement(jM.span,dM({"data-state":EUe(o.state),"data-disabled":o.disabled?"":void 0},i,{ref:t,style:{pointerEvents:"none",...e.style}})))}),wUe=H.forwardRef(({className:e,...t},n)=>ee.jsx(DUe,{ref:n,className:ed("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:ee.jsx(TUe,{className:ed("flex items-center justify-center text-current"),children:ee.jsx(LL,{className:"h-4 w-4"})})}));wUe.displayName=DUe.displayName;const CUe="playground:env",SUe=(e,t,n)=>{window.playground=((e,t,n)=>({env:{set:(t,n)=>{const r=localStorage.getItem(CUe)||"{}",i=JSON.parse(r);i[e]||(i[e]={}),i[e][t]=n,localStorage.setItem(CUe,JSON.stringify(i)),window.dispatchEvent(new StorageEvent("local-storage",{key:CUe}))},get:t=>{var n;const r=localStorage.getItem(CUe)||"{}";return null==(n=JSON.parse(r)[e])?void 0:n[t]}},request:{body:t||null},response:{body:n||null},CryptoJS:pUe}))(e,t,n)},kUe=()=>{delete window.playground},AUe=({script:e,close:t})=>{const n=aRe(),r=Zje(),i=H.useRef(null),o=H.useRef(null),a=H.useContext(uRe),{tabsState:{activeTabIndex:s,tabs:l}}=a,u=l[s].id;H.useEffect(()=>{r&&("dark"===n?r.editor.setTheme("wg-dark"):r.editor.setTheme("light"))},[n,r]);const[c,p]=H.useState([]),d=H.useRef(null);H.useEffect(()=>{d.current&&d.current.scrollIntoView()},[c]);const[f,h]=vRe(CUe,{}),[m,g]=H.useState(),y=cRe(e=>{g(e)},500);H.useEffect(()=>{g(void 0)},[f,y]);const[v,b]=vRe(`playground:${e.type}:selected`,{}),[x,E]=vRe("playground:script:tabState",{}),D=H.useCallback(({upsert:t,updatedTitle:n})=>{const r={...x};l.forEach(o=>{var a,u,c,p,d;const f=o.id;r[f]&&(null==(a=r[f][e.type])?void 0:a.id)===e.id?r[f][e.type]={...r[f][e.type],id:e.id,enabled:(null==(u=r[f][e.type])?void 0:u.enabled)||!1,content:null==(c=i.current)?void 0:c.getValue()}:t&&f===l[s].id&&(r[f]||(r[f]={}),r[f][e.type]={id:e.id,title:n||e.title,enabled:(null==(p=r[f][e.type])?void 0:p.enabled)||!1,content:null==(d=i.current)?void 0:d.getValue()})}),E(r)},[l,s,e,x,E]);return n?ee.jsxs("div",{className:"flex flex-col",children:[ee.jsxs(EBe,{direction:"vertical",children:[ee.jsx(DBe,{defaultSize:70,minSize:20,children:ee.jsx(rRe,{theme:"dark"===n?"wg-dark":"light",className:"scrollbar-custom h-full text-xs",language:"javascript",defaultValue:e.content,loading:null,options:{automaticLayout:!0,language:"javascript",minimap:{enabled:!1},hideCursorInOverviewRuler:!0,overviewRulerBorder:!1,scrollbar:{verticalScrollbarSize:6,horizontalScrollbarSize:6,useShadows:!1},suggest:{showWords:!1}},onMount:(e,t)=>{i.current=e,t.editor.defineTheme("wg-dark",iRe),"dark"===n&&t.editor.setTheme("wg-dark"),fetch("https://unpkg.com/@types/crypto-js@4.2.0/index.d.ts").then(e=>e.text()).then(e=>{t.languages.typescript.javascriptDefaults.addExtraLib(e,"crypto-js.d.ts"),t.languages.typescript.javascriptDefaults.addExtraLib("\n declare module 'crypto-js' {\n export = CryptoJS;\n }\n ","crypto-js-module.d.ts")}).catch(e=>console.error(e)),t.languages.typescript.javascriptDefaults.addExtraLib('\n interface JSONObject {\n [key: string]: JSONValue;\n }\n type JSONArray = JSONValue[];\n type JSONValue = string | number | boolean | JSONObject | JSONArray | null;\n\n interface Playground {\n /**\n * The env property contains methods to interact with local environment variables.\n */\n env: {\n /**\n * Sets a key-value pair for local environment variables.\n * @param name The key name.\n * @param value The value to store.\n */\n set(name: string, value: any): void;\n\n /**\n * Gets a value from local environment variables by key.\n * @param name The key name.\n * @returns The value associated with the key.\n */\n get(name: string): JSONValue;\n };\n\n /**\n * Represents the GraphQL request body.\n */\n request: {\n body: {\n /**\n * The GraphQL query string.\n */\n query: string;\n\n /**\n * The variables object associated with the GraphQL query.\n */\n variables?: { [key: string]?: JSONValue };\n\n /**\n * The name of the GraphQL operation (if specified).\n */\n operationName?: string;\n };\n };\n\n /**\n * Represents the GraphQL response body.\n */\n response: {\n body?: {\n /**\n * The data resulting from the GraphQL operation.\n */\n data?: T;\n };\n };\n\n /**\n * Exposes the crypto-js library for cryptographic operations.\n */\n CryptoJS: typeof import("crypto-js");\n }\n\n\n declare const playground: Playground;\n',"playground.d.ts")}},e.id)}),ee.jsx(TBe,{}),ee.jsx(DBe,{minSize:10,defaultSize:30,children:ee.jsxs(EBe,{direction:"horizontal",children:[ee.jsx(DBe,{defaultSize:60,minSize:40,children:ee.jsxs("div",{className:"relative flex h-full flex-col py-4 pr-4 text-sm",children:[ee.jsx("p",{className:"pb-4",children:"Console Output"}),ee.jsxs("div",{className:"absolute right-3 top-3 flex gap-x-2",children:[ee.jsx(SM,{size:"icon-sm",variant:"outline",onClick:()=>{p([])},children:ee.jsx(UL,{})}),ee.jsx(SM,{size:"icon-sm",variant:"outline",onClick:()=>{var e;const t=null==(e=i.current)?void 0:e.getValue();t&&(async e=>{const t=console.log;console.log=(...e)=>{const n=e.map(e=>null===e?"null":void 0===e?"undefined":"object"==typeof e?JSON.stringify(e,null,2):String(e)).join(" ");p(e=>[...e,n]),t(...e)};try{SUe(a.graphId);const t=new Function(`\n return (async () => {\n ${e}\n })();\n `);await t()}catch(n){p(e=>[...e,`Error: ${n.message}`])}finally{kUe()}console.log=t})(t)},children:ee.jsx(rM,{})})]}),ee.jsxs("div",{className:"scrollbar-custom h-full flex-1 overflow-auto",children:[c.map((e,t)=>ee.jsx("div",{className:"border-b border-dotted py-1.5 after:content-['\\200b'] last:border-none ",children:e},t)),ee.jsx("div",{ref:d})]})]})}),ee.jsx(TBe,{}),ee.jsx(DBe,{defaultSize:40,minSize:40,children:ee.jsxs("div",{className:"flex h-full flex-col",children:[ee.jsxs("div",{className:"flex items-center justify-between py-4 pl-4 text-sm",children:[ee.jsx("span",{children:"Environment Variables"}),ee.jsxs(Ape,{children:[ee.jsx(Npe,{children:m?ee.jsx(UL,{className:"text-destructive"}):ee.jsx(LL,{className:"text-success"})}),ee.jsx(Fpe,{align:"end",children:m||"Valid"})]})]}),ee.jsx(rRe,{onChange:e=>{try{const t=JSON.parse(e||"{}");h({...f,[a.graphId]:t}),y(void 0)}catch(Zte){y(Zte.message)}},theme:"dark"===n?"wg-dark":"light",language:"json",value:JSON.stringify(f[a.graphId],null,2),loading:null,options:{automaticLayout:!0,language:"json",minimap:{enabled:!1},hideCursorInOverviewRuler:!0,overviewRulerBorder:!1,scrollbar:{verticalScrollbarSize:6,horizontalScrollbarSize:6,useShadows:!1},lineNumbers:"off",folding:!1},onMount:(e,t)=>{o.current=e,t.editor.defineTheme("wg-dark",iRe),"dark"===n&&t.editor.setTheme("wg-dark")}},"env-editor")]})})]})})]}),ee.jsx(_le,{orientation:"horizontal"}),ee.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[ee.jsx(SM,{variant:"secondary",onClick:()=>{t()},children:"Cancel"}),ee.jsx(SM,{onClick:()=>{var n;b({...e,content:null==(n=i.current)?void 0:n.getValue(),updatedByTabId:u}),"pre-flight"!==e.type&&D({upsert:!0}),t()},children:"Save"})]})]}):null},NUe=({type:e})=>{const[t,n]=H.useState(!1),[r,i]=H.useState(),{tabsState:{activeTabIndex:o,tabs:a}}=H.useContext(uRe);return H.useEffect(()=>{var n,r;if(!t)return;const s={id:Date.now().toString(),content:"",title:"",type:e};if("pre-flight"===e){const e=localStorage.getItem("playground:pre-flight:selected"),t=JSON.parse(e&&"undefined"!==e?e:"{}");i((null==t?void 0:t.id)?t:s)}else{const t=JSON.parse(localStorage.getItem("playground:script:tabState")||"{}"),l=null==(n=a[o])?void 0:n.id;if(!l)return;const u=null==(r=t[l])?void 0:r[e];i((null==u?void 0:u.id)?u:s)}},[t,o,a]),ee.jsxs(xB,{open:t,onOpenChange:e=>{e||i(void 0),n(e)},children:[ee.jsx(EB,{asChild:!0,children:ee.jsx(SM,{size:"icon-sm",variant:"secondary",children:ee.jsx(tM,{})})}),ee.jsxs(wB,{className:"flex h-[90vh] max-w-[90vw] flex-col overflow-hidden",onInteractOutside:e=>e.preventDefault(),children:[ee.jsx(CB,{children:ee.jsxs(SB,{className:"capitalize",children:[e," Script"]})}),ee.jsx("div",{className:"grid h-full min-h-0 grid-cols-1 gap-4 divide-x",children:r&&ee.jsx(AUe,{script:r,close:()=>{n(!1)}})})]})]})},FUe=({type:e})=>{const[t]=vRe(`playground:${e}:selected`,null),[n,r]=vRe("playground:pre-flight:enabled",!0),[i,o]=vRe("playground:script:tabState",{}),{tabsState:{activeTabIndex:a,tabs:s}}=H.useContext(uRe),l=H.useMemo(()=>{var t,n,r;const o=null==(t=s[a])?void 0:t.id;if(o)return(null==(r=null==(n=i[o])?void 0:n[e])?void 0:r.enabled)||!1},[a,s,i,e]),u=H.useCallback(t=>{const n=s[a].id,r={...i};r[n]||(r[n]={}),r[n][e]={...r[n][e],enabled:t},o(r)},[s,a,i,e,o]);return ee.jsxs("div",{className:"flex items-center gap-4",children:[ee.jsx(wUe,{checked:"pre-flight"===e?n:l,onCheckedChange:t=>{"pre-flight"===e?r(!!t):u(!!t)}}),ee.jsx("div",{className:"w-28 flex-shrink-0 capitalize",children:e}),":",ee.jsxs("div",{className:"flex w-full items-center justify-between gap-4 rounded-lg border pl-2",children:[ee.jsx("div",{className:"select-none text-sm italic",children:t&&t.id?t.title||"untitled script":"None Selected"}),ee.jsx(NUe,{type:e})]})]})},PUe=()=>{const{tabsState:{activeTabIndex:e,tabs:t}}=H.useContext(uRe),[n,r]=vRe("playground:script:tabState",{});H.useEffect(()=>{r(e=>{if(0===t.length)return e;const n=Object.keys(e),r=t.map(e=>e.id),i={...e};return n.forEach(e=>{r.includes(e)||delete i[e]}),i})},[t,r]);const[i,o]=vRe("playground:pre-operation:selected",null),[a,s]=vRe("playground:post-operation:selected",null);return H.useEffect(()=>{var r;const l=null==(r=t[e])?void 0:r.id;if(!l)return;const u=n[l];fUe(i,null==u?void 0:u["pre-operation"])||(null==i?void 0:i.updatedByTabId)&&(null==i?void 0:i.updatedByTabId)!==l&&o(null==u?void 0:u["pre-operation"]),fUe(a,null==u?void 0:u["post-operation"])||(null==a?void 0:a.updatedByTabId)&&(null==a?void 0:a.updatedByTabId)!==l&&s(null==u?void 0:u["post-operation"])},[t,e,n,i,a,o,s]),ee.jsxs("div",{className:"flex h-full flex-1 flex-col gap-2 pl-1.5",children:[ee.jsx(FUe,{type:"pre-operation"}),ee.jsx(FUe,{type:"post-operation"})]})},_Ue=()=>ee.jsx("div",{className:"border-t py-4 pl-6 pr-4",children:ee.jsx(FUe,{type:"pre-flight"})}),OUe=e=>{for(const t in e)if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(t))throw new TypeError(`Header name must be a valid HTTP token [${t}]`)},IUe=(e,t)=>{const n=JSON.parse(localStorage.getItem("playground:env")||"{}")[t];if(!n)return e;const r={};Object.entries(n).forEach(([e,t])=>{"true"===t||"false"===t?r[e]="true"===t:isNaN(t)||""===t?r[e]=t:r[e]=Number(t)});for(const i in e){let t=e[i];const n=/{\s*{\s*(\w+)\s*}\s*}/g;"string"==typeof t&&(t=t.replace(n,(e,t)=>void 0!==r[t]?r[t]:(console.warn(`No value found for placeholder: ${t}`),e)),e[i]=t)}return e},LUe=async(e,t)=>{if(e)try{const t=new Function(`\n return (async () => {\n ${e}\n })();\n `);await t()}catch(n){console.error(n)}},MUe=e=>{const t=localStorage.getItem(e);return JSON.parse(t&&"undefined"!==t?t:"{}")},jUe=async(e,t,n,r,i,o)=>{var a;try{const s=o.headers;let l=(null==n?void 0:n.transformHeaders)?n.transformHeaders(s):{...s};if(l=IUe(l,"0"),OUe(l),e&&t){const t=null==(a=JSON.parse(o.body))?void 0:a.query,n=sd.validate(e,sd.parse(t));if(n.length>0){const e={message:"Client-side validation failed. The request was not sent to the Router.",errors:n.map(e=>({message:e.message,path:e.path,locations:e.locations}))},t=new Response(JSON.stringify(e),{headers:{"Content-Type":"application/json"}});return r(await t.clone().json()),t}}const u=JSON.parse(o.body);await(async(e,t)=>{SUe(e,t);const n=MUe("playground:pre-flight:selected"),r=localStorage.getItem("playground:pre-flight:enabled"),i=MUe("playground:pre-operation:selected");r&&"true"!==r||await LUe(n.content),i.enabled&&await LUe(i.content),kUe()})("0",u);const c=await fetch(i,{...o,headers:l}),p=await c.clone().json();return await(async(e,t,n)=>{const r=localStorage.getItem("playground:post-operation:selected"),i=JSON.parse(r&&"undefined"!==r?r:"{}");i.enabled&&(SUe(e,t,n),await LUe(i.content),kUe())})("0",u,p),r(await c.clone().json(),c.status,c.statusText),c}catch(Zte){const t="Failed to fetch from router due to network errors. Please check network activity in browser dev tools for more details.",n=new Response(JSON.stringify(Zte.message?"Failed to fetch"==Zte.message?t:Zte.message:t),{headers:{"Content-Type":"application/json"}});return r(await n.clone().json(),void 0,"Network Error"),n}},RUe=()=>{const{view:e,setView:t}=H.useContext(uRe),n=e=>"response"===e?ee.jsx(yLe,{className:"h-4 w-4 flex-shrink-0"}):"request-trace"===e?ee.jsx(gLe,{className:"h-4 w-4 flex-shrink-0"}):ee.jsx(tk,{className:"h-4 w-4 flex-shrink-0"}),{status:r,statusText:i}=H.useContext(uRe),o=!!r&&r>=200&&r<300;return ee.jsxs("div",{className:"flex items-center gap-x-2",children:[(r||i)&&ee.jsxs(Sle,{className:"h-8",variant:o?"success":"destructive",children:[!o&&ee.jsx(XL,{className:"mr-1 h-4 w-4"}),r||i]}),ee.jsxs(eje,{onValueChange:e=>{const n=document.getElementsByClassName("graphiql-response")[0],r=document.getElementById("art-visualization"),i=document.getElementById("planner-visualization");n&&r&&i&&("request-trace"===e?(n.classList.add("invisible"),n.classList.add("-z-50"),i.classList.add("invisible"),i.classList.add("-z-50"),r.classList.remove("invisible"),r.classList.remove("-z-50")):"query-plan"===e?(n.classList.add("invisible"),n.classList.add("-z-50"),r.classList.add("invisible"),r.classList.add("-z-50"),i.classList.remove("invisible"),i.classList.remove("-z-50")):(n.classList.remove("invisible"),n.classList.remove("-z-50"),r.classList.add("invisible"),r.classList.add("-z-50"),i.classList.add("invisible"),i.classList.add("-z-50")),t(e))},children:[ee.jsx(nje,{className:"w-[180px]",children:ee.jsx(tje,{children:ee.jsxs("div",{className:"flex items-center gap-x-2",children:[n(e),LB(e)]})})}),ee.jsxs(rje,{children:[ee.jsx(ije,{value:"response",children:ee.jsxs("div",{className:"flex items-center gap-x-2",children:[n("response"),"Response"]})}),ee.jsx(ije,{value:"request-trace",children:ee.jsxs("div",{className:"flex items-center gap-x-2",children:[n("request-trace"),"Request Trace"]})}),ee.jsx(ije,{value:"query-plan",children:ee.jsxs("div",{className:"flex items-center gap-x-2",children:[n("query-plan"),"Query Plan"]})})]})]})]})},BUe=()=>{const{clientValidationEnabled:e,setClientValidationEnabled:t}=H.useContext(Gpe);return ee.jsxs(Ape,{delayDuration:100,children:[ee.jsx(Npe,{asChild:!0,children:ee.jsx(SM,{onClick:()=>t(!e),variant:"ghost",size:"icon",className:"graphiql-toolbar-button",children:ee.jsx(vLe,{className:ed("graphiql-toolbar-icon",{"text-success":e})})})}),ee.jsx(Fpe,{className:"rounded-md border bg-background px-2 py-1 !text-foreground text-base",children:e?"Client-side validation enabled":"Client-side validation disabled"})]})},VUe=()=>{const e=document.getElementById("response-toolbar"),t=document.getElementById("art-visualization"),n=document.getElementById("planner-visualization"),r=document.getElementById("toggle-client-validation"),i=document.getElementById("graphiql-wg-logo"),o=document.getElementById("scripts-section"),a=document.getElementById("pre-flight-script-section");return e&&t&&n&&r&&i&&o&&a?ee.jsxs(ee.Fragment,{children:[lp.createPortal(ee.jsx(RUe,{}),e),lp.createPortal(ee.jsx(lRe,{}),n),lp.createPortal(ee.jsx(Wpe,{}),t),lp.createPortal(ee.jsx(BUe,{}),r),lp.createPortal(ee.jsx(PUe,{}),o),lp.createPortal(ee.jsx(_Ue,{}),a),lp.createPortal(ee.jsx("a",{href:"https://wundergraph.com",children:ee.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1080 1080",className:"mt-3 mx-auto",width:"35",height:"35",fill:"none",children:ee.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M447.099 231.913C405.967 244.337 367.742 264.878 334.682 292.323C320.832 268.71 298.796 251.002 272.754 242.557C313.865 205.575 362.202 177.525 414.709 160.178C467.216 142.832 522.751 136.567 577.803 141.781C632.855 146.994 686.227 163.571 734.544 190.465C746.769 197.27 758.603 204.698 770.004 212.711C770.394 212.542 770.785 212.376 771.179 212.213C785.976 206.085 802.259 204.482 817.967 207.607C833.676 210.733 848.105 218.446 859.429 229.771C870.754 241.096 878.465 255.525 881.589 271.233C884.712 286.941 883.107 303.223 876.976 318.018C870.845 332.814 860.464 345.459 847.146 354.355C833.828 363.252 818.171 367.999 802.154 367.997C791.52 367.997 780.991 365.902 771.167 361.833C761.343 357.763 752.417 351.799 744.898 344.28C737.379 336.76 731.415 327.834 727.347 318.01C723.279 308.186 721.186 297.657 721.187 287.024C721.187 282.871 721.506 278.742 722.135 274.672C713.657 268.849 704.889 263.426 695.859 258.426C658.269 237.612 616.889 224.541 574.163 219.988C531.437 215.434 488.232 219.489 447.099 231.913ZM319.489 348.564C319.489 363.809 315.185 378.728 307.094 391.613L323.693 420.326C307.59 439.476 285.501 452.638 260.995 457.683L244.582 429.298C237.31 429.844 229.959 429.408 222.73 427.971C207.024 424.848 192.597 417.138 181.273 405.816C169.949 394.495 162.237 380.069 159.112 364.365C155.986 348.661 157.588 332.382 163.715 317.588C169.841 302.794 180.217 290.149 193.531 281.251C206.845 272.354 222.498 267.604 238.511 267.601C249.145 267.6 259.674 269.693 269.499 273.761C279.324 277.829 288.251 283.793 295.77 291.311C303.29 298.829 309.255 307.755 313.325 317.578C317.394 327.402 319.489 337.931 319.489 348.564ZM260.998 457.685L400.599 699.132L442.692 772.036L484.794 699.132L537.279 608.237L589.621 698.805L631.691 771.687L673.783 698.794L744.391 576.462H859.708C861.079 564.36 861.767 552.19 861.769 540.01C861.771 527.83 861.08 515.66 859.697 503.558H702.288L694.971 516.229L631.67 625.857L579.327 535.278L537.235 462.374L495.208 535.289L442.692 626.184L323.7 420.328C307.596 439.478 285.506 452.64 260.998 457.685ZM861.77 540.003C861.768 552.183 861.08 564.353 859.709 576.455H937.128V503.551H859.709C861.088 515.653 861.776 527.823 861.77 540.003ZM937.154 503.558H938.332C939.411 515.563 940 527.721 940 540.01C940 760.902 760.967 940 540.027 940C319.088 940 140 760.924 140 540.031C139.942 500.879 145.66 461.933 156.968 424.449C175.493 444.394 200.696 456.845 227.794 459.44C221.851 485.163 218.231 515.061 218.231 540.01C218.231 717.668 362.259 861.764 540.038 861.764C705.462 861.764 841.629 736.99 859.731 576.462H937.154V503.558Z",className:"fill-foreground"})})}),i)]}):null};const UUe=e=>{const t=e.routingUrl||function(e,t,n){let r=e;return r.endsWith(n)?r=r.slice(0,-n.length):r.endsWith(n+"/")&&(r=r.slice(0,-n.length-1)),r=r.replace(/\/+$/,""),r+(t.startsWith("/")?t:`/${t}`)}(window.location.href,"{{graphqlURL}}","{{playgroundPath}}"),[n,r]=H.useState(!1),[i,o]=H.useState("response"),[a,s]=H.useState(null),[l,u]=H.useState(void 0),[c,p]=vRe("graphiql:headers","",{deserializer:e=>e,serializer:e=>e}),[d,f]=H.useState();H.useEffect(()=>{c&&!d&&f(c)},[c,d]),H.useEffect(()=>{d&&p(d)},[d]);const[h,m]=H.useState('{\n "X-WG-TRACE" : "true"\n}'),[g,y]=H.useState(""),[v,b]=H.useState(void 0),[x,E]=H.useState(""),[D,T]=H.useState(!0);H.useEffect(()=>{if(document.getElementById("response-toolbar")&&n)return;const t=document.getElementsByClassName("graphiql-sidebar-section")[0];if(t&&!e.hideLogo){const e=document.createElement("div");e.id="graphiql-wg-logo",t.prepend(e)}const i=document.getElementsByClassName("graphiql-session-header-right")[0];if(i){const e=document.getElementsByClassName("graphiql-logo")[0];if(e){e.classList.add("hidden");const t=document.createElement("div");t.id="response-toolbar",t.className="flex items-center justify-center mx-2",i.append(t)}}const o=document.getElementsByClassName("graphiql-editor-tools")[0],a=document.getElementsByClassName("graphiql-editor-tool")[0];if(o&&a&&!document.getElementById("scripts-tab")){const e=[o.childNodes[0],o.childNodes[1]],t=Array.from(a.childNodes),n=document.createElement("button");n.id="scripts-tab",n.className="graphiql-un-styled",n.textContent="Operation Scripts";const r=document.createElement("div");r.id="scripts-section",r.className="graphiql-editor hidden",e.forEach((e,n)=>e.addEventListener("click",()=>{e.className="graphiql-un-styled active",t[n].className="graphiql-editor",r.className="graphiql-editor hidden"})),n.onclick=i=>{e[0].className="graphiql-un-styled",e[1].className="graphiql-un-styled",t[0].className="graphiql-editor hidden",t[1].className="graphiql-editor hidden",r.className="graphiql-editor",n.className="graphiql-un-styled active"},o.addEventListener("click",e=>{var t;(null==(t=e.target)?void 0:t.closest(`#${n.id}`))||(n.className="graphiql-un-styled")}),o.insertBefore(n,o.childNodes[2]),a.appendChild(r)}const s=document.getElementsByClassName("graphiql-editors")[0];if(s){const e=document.createElement("div");e.id="pre-flight-script-section",s.appendChild(e)}const l=document.getElementsByClassName("graphiql-response")[0];if(l){const e=l.parentElement;if(e){e.id="response-parent",e.classList.add("relative");const t=document.createElement("div");t.id="art-visualization",t.className="flex flex-1 h-full w-full absolute invisible -z-50";const n=document.createElement("div");n.id="planner-visualization",n.className="flex flex-1 h-full w-full absolute invisible -z-50",e.append(t),e.append(n)}}const u=document.getElementsByClassName("graphiql-toolbar")[0];if(u){const e=document.createElement("div");e.id="toggle-client-validation",u.append(e)}r(!0)});H.useEffect(()=>{(async()=>{const n=e.fetch?e.fetch:fetch,r=await n(t,{body:JSON.stringify({operationName:"IntrospectionQuery",query:sd.getIntrospectionQuery({inputValueDeprecation:!0})}),method:"POST",headers:JSON.parse(h)});s(sd.buildClientSchema((await r.json()).data))})()},[h]);const[w,C]=H.useState(),[S,k]=H.useState(),A=H.useMemo(()=>{const n=(e,t,n)=>{y(JSON.stringify(e)),C(t),k(n)};return wde({url:t,subscriptionUrl:t.replace("http","ws"),fetch:(...t)=>jUe(a,D,e.scripts,n,t[0],t[1])})},[a,D]),[N]=fRe(l,300),[F]=fRe(h,300);H.useEffect(()=>{(async()=>{var e;if(a&&N&&t&&"query-plan"===i)try{const n=sd.parse(N);if(sd.validate(a,n).length>0)return void E("Invalid query");const r=JSON.parse(F||"{}");delete r["X-WG-TRACE"];let i={...r,"X-WG-Include-Query-Plan":"true","X-WG-Skip-Loader":"true","X-WG-DISABLE-TRACING":"true"};i=IUe(i,"0"),OUe(i);const o=await fetch(t,{method:"POST",headers:i,body:JSON.stringify({query:N})}),s=await o.json();if(!(null==(e=null==s?void 0:s.extensions)?void 0:e.queryPlan))throw new Error("No query plan found");E(""),b(s.extensions.queryPlan)}catch(n){b(void 0),E(n.message||"Network error")}})()},[N,F,t,a,i]);const[P,_]=H.useState({activeTabIndex:0,tabs:[]});return ee.jsx(kpe,{children:ee.jsx(uRe.Provider,{value:{graphId:"0",tabsState:P,status:w,statusText:S,view:i,setView:o},children:ee.jsxs(Gpe.Provider,{value:{query:l,headers:h,response:g,subgraphs:[],plan:v,planError:x,clientValidationEnabled:D,setClientValidationEnabled:T,forcedTheme:e.theme},children:[ee.jsx(aLe,{shouldPersistHeaders:!0,showPersistHeadersSettings:!1,fetcher:A,onEditQuery:u,defaultHeaders:'{\n "X-WG-TRACE" : "true"\n}',onEditHeaders:m,onTabChange:_,plugins:[rLe({showAttribution:!1})],forcedTheme:e.theme}),n&&ee.jsx(VUe,{})]})})})};function zUe(){return ee.jsx(UUe,{})}te.createRoot(document.getElementById("root")).render(ee.jsx(q.StrictMode,{children:ee.jsx(zUe,{})}));var $Ue=Object.defineProperty,HUe=(e,t)=>$Ue(e,"name",{value:t,configurable:!0});typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"&&self;function qUe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}HUe(qUe,"getDefaultExportFromCjs");var GUe,KUe={exports:{}};function WUe(){return GUe||(GUe=1,KUe.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),p=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=d&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),g=/Android/.test(e),y=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),v=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),E=p&&e.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(p=!1,l=!0);var D=v&&(u||p&&(null==E||E<12.11)),T=n||a&&s>=9;function w(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}HUe(w,"classTest");var C,S=HUe(function(e,t){var n=e.className,r=w(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}},"rmClass");function k(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return k(e).appendChild(t)}function N(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?L=HUe(function(e){e.selectionStart=0,e.selectionEnd=e.value.length},"selectInput"):a&&(L=HUe(function(e){try{e.select()}catch{}},"selectInput")),HUe(M,"bind"),HUe(j,"copyObj"),HUe(R,"countColumn");var B=HUe(function(){this.id=null,this.f=null,this.time=0,this.handler=M(this.onTimeout,this)},"Delayed");function V(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}HUe(G,"findColumn");var K=[""];function W(e){for(;K.length<=e;)K.push(Q(K)+" ");return K[e]}function Q(e){return e[e.length-1]}function Y(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}HUe(te,"isWordCharBasic"),HUe(ne,"isWordChar"),HUe(re,"isEmpty");var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function le(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}HUe(oe,"isExtendingChar"),HUe(ae,"skipExtendingChars"),HUe(se,"findFirst"),HUe(le,"iterateBidiSections");var ue=null;function ce(e,t,n){var r;ue=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ue=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ue=i)}return r??ue}HUe(ce,"getBidiPartAt");var pe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}HUe(n,"charType");var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return HUe(l,"BidiSpan"),function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,p=[],d=0;d-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ye(e,t){var n=me(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Ee(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){ge(this,e,t)}}function De(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Te(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function we(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){De(e),Te(e)}function Se(e){return e.target||e.srcElement}function ke(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),v&&e.ctrlKey&&1==t&&(t=3),t}HUe(me,"getHandlers"),HUe(ge,"off"),HUe(ye,"signal"),HUe(ve,"signalDOMEvent"),HUe(be,"signalCursorActivity"),HUe(xe,"hasHandler"),HUe(Ee,"eventMixin"),HUe(De,"e_preventDefault"),HUe(Te,"e_stopPropagation"),HUe(we,"e_defaultPrevented"),HUe(Ce,"e_stop"),HUe(Se,"e_target"),HUe(ke,"e_button");var Ae,Ne,Fe=function(){if(a&&s<9)return!1;var e=N("div");return"draggable"in e||"dragDrop"in e}();function Pe(e){if(null==Ae){var t=N("span","​");A(e,N("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ae=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ae?N("span","​"):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function _e(e){if(null!=Ne)return Ne;var t=A(e,document.createTextNode("AخA")),n=C(t,0,1).getBoundingClientRect(),r=C(t,1,2).getBoundingClientRect();return k(e),!(!n||n.left==n.right)&&(Ne=r.right-n.right<3)}HUe(Pe,"zeroWidthElement"),HUe(_e,"hasBadBidiRects");var Oe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Ie=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Le=function(){var e=N("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Me=null;function je(e){if(null!=Me)return Me;var t=A(e,N("span","x")),n=t.getBoundingClientRect(),r=C(t,0,1).getBoundingClientRect();return Me=Math.abs(n.left-r.left)>1}HUe(je,"hasBadZoomedRects");var Re={},Be={};function Ve(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Re[e]=t}function Ue(e,t){Be[e]=t}function ze(e){if("string"==typeof e&&Be.hasOwnProperty(e))e=Be[e];else if(e&&"string"==typeof e.name&&Be.hasOwnProperty(e.name)){var t=Be[e.name];"string"==typeof t&&(t={name:t}),(e=Z(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ze("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ze("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function $e(e,t){t=ze(t);var n=Re[t.name];if(!n)return $e(e,"text/plain");var r=n(e,t);if(He.hasOwnProperty(t.name)){var i=He[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}HUe(Ve,"defineMode"),HUe(Ue,"defineMIME"),HUe(ze,"resolveMode"),HUe($e,"getMode");var He={};function qe(e,t){j(t,He.hasOwnProperty(e)?He[e]:He[e]={})}function Ge(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ke(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function We(e,t,n){return!e.startState||e.startState(t,n)}HUe(qe,"extendMode"),HUe(Ge,"copyState"),HUe(Ke,"innerMode"),HUe(We,"startState");var Qe=HUe(function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n},"StringStream");function Ye(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?it(n,Ye(e,n).text.length):dt(t,Ye(e,t.line).text.length)}function dt(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}function ft(e,t){for(var n=[],r=0;r=this.string.length},Qe.prototype.sol=function(){return this.pos==this.lineStart},Qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qe.prototype.next=function(){if(this.post},Qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qe.prototype.skipToEnd=function(){this.pos=this.string.length},Qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qe.prototype.backUp=function(e){this.pos-=e},Qe.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=HUe(function(e){return n?e.toLowerCase():e},"cased");if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)},HUe(Ye,"getLine"),HUe(Xe,"getBetween"),HUe(Je,"getLines"),HUe(Ze,"updateLineHeight"),HUe(et,"lineNo"),HUe(tt,"lineAtHeight"),HUe(nt,"isLine"),HUe(rt,"lineNumberFor"),HUe(it,"Pos"),HUe(ot,"cmp"),HUe(at,"equalCursorPos"),HUe(st,"copyPos"),HUe(lt,"maxPos"),HUe(ut,"minPos"),HUe(ct,"clipLine"),HUe(pt,"clipPos"),HUe(dt,"clipToLen"),HUe(ft,"clipPosArray");var ht=HUe(function(e,t){this.state=e,this.lookAhead=t},"SavedContext"),mt=HUe(function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1},"Context");function gt(e,t,n,r){var i=[e.state.modeGen],o={};Ct(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,s=HUe(function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Ct(e,t.text,s.mode,n,function(e,t){for(var n=l;ue&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Ge(e.doc.mode,r.state),o=gt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function vt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new mt(r,!0,t);var o=St(e,t,n),a=o>r.first&&Ye(r,o-1).stateAfter,s=a?mt.fromSaved(r,a,o):new mt(r,We(r.mode),o);return r.iter(o,t,function(n){bt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},mt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},mt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mt.fromSaved=function(e,t,n){return t instanceof ht?new mt(e,Ge(e.mode,t.state),n,t.lookAhead):new mt(e,Ge(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?Ge(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ht(t,this.maxLookAhead):t},HUe(gt,"highlightLine"),HUe(yt,"getLineStyles"),HUe(vt,"getContextBefore"),HUe(bt,"processLine"),HUe(xt,"callBlankLine"),HUe(Et,"readToken");var Dt=HUe(function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n},"Token");function Tt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Ye(a,(t=pt(a,t)).line),u=vt(e,t.line,n),c=new Qe(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pose.options.maxHighlightLength?(s=!1,a&&bt(e,t,r,p.pos),p.pos=t.length,l=null):l=wt(Et(n,p,r.state,d),o),d){var f=d[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||c!=l){for(;ua;--s){if(s<=o.first)return o.first;var l=Ye(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof ht?u.lookAhead:0)<=o.modeFrontier))return s;var c=R(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}function kt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=Ye(e,r).stateAfter;if(i&&(!(i instanceof ht)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new _t(a,o.from,s?null:o.to))}}return r}function jt(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;b0)){var c=[l,1],p=ot(u.from,s.from),d=ot(u.to,s.to);(p<0||!a.inclusiveLeft&&!p)&&c.push({from:u.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}function Ut(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||qt(n,o.marker)<0)&&(n=o.marker)}return n}function Yt(e,t,n,r,i){var o=Ye(e,t),a=Nt&&o.markedSpans;if(a)for(var s=0;s=0&&p<=0||c<=0&&p>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.to,n)>=0:ot(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.from,r)<=0:ot(u.from,r)<0)))return!0}}}function Xt(e){for(var t;t=Kt(e);)e=t.find(-1,!0).line;return e}function Jt(e){for(var t;t=Wt(e);)e=t.find(1,!0).line;return e}function Zt(e){for(var t,n;t=Wt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function en(e,t){var n=Ye(e,t),r=Xt(n);return n==r?t:et(r)}function tn(e,t){if(t>e.lastLine())return t;var n,r=Ye(e,t);if(!nn(e,r))return t;for(;n=Wt(r);)r=n.find(1,!0).line;return et(r)+1}function nn(e,t){var n=Nt&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}HUe(Ft,"seeReadOnlySpans"),HUe(Pt,"seeCollapsedSpans"),HUe(_t,"MarkedSpan"),HUe(Ot,"getMarkedSpanFor"),HUe(It,"removeMarkedSpan"),HUe(Lt,"addMarkedSpan"),HUe(Mt,"markedSpansBefore"),HUe(jt,"markedSpansAfter"),HUe(Rt,"stretchSpansOverChange"),HUe(Bt,"clearEmptySpans"),HUe(Vt,"removeReadOnlyRanges"),HUe(Ut,"detachMarkedSpans"),HUe(zt,"attachMarkedSpans"),HUe($t,"extraLeft"),HUe(Ht,"extraRight"),HUe(qt,"compareCollapsedMarkers"),HUe(Gt,"collapsedSpanAtSide"),HUe(Kt,"collapsedSpanAtStart"),HUe(Wt,"collapsedSpanAtEnd"),HUe(Qt,"collapsedSpanAround"),HUe(Yt,"conflictingCollapsedRange"),HUe(Xt,"visualLine"),HUe(Jt,"visualLineEnd"),HUe(Zt,"visualLineContinued"),HUe(en,"visualLineNo"),HUe(tn,"visualLineEndNo"),HUe(nn,"lineIsHidden"),HUe(rn,"lineIsHiddenInner"),HUe(on,"heightAtLine"),HUe(an,"lineLength"),HUe(sn,"findMaxLine");var ln=HUe(function(e,t,n){this.text=e,zt(this,t),this.height=n?n(this):1},"Line");function un(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ut(e),zt(e,n);var i=r?r(e):1;i!=e.height&&Ze(e,i)}function cn(e){e.parent=null,Ut(e)}ln.prototype.lineNo=function(){return et(this)},Ee(ln),HUe(un,"updateLine"),HUe(cn,"cleanUpLine");var pn={},dn={};function fn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?dn:pn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function hn(e,t){var n=F("span",null,null,l?"padding-right: .1px":null),r={pre:F("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=gn,_e(e.display.measure)&&(a=de(o,e.doc.direction))&&(r.addToken=vn(r.addToken,a)),r.map=[],xn(o,r,yt(e,o,t!=e.display.externalMeasured&&et(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=I(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=I(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Pe(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ye(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=I(r.pre.className,r.textClass||"")),r}function mn(e){var t=N("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function gn(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?yn(t,e.trailingSpace):t,p=e.cm.state.specialChars,d=!1;if(p.test(t)){u=document.createDocumentFragment();for(var f=0;;){p.lastIndex=f;var h=p.exec(t),m=h?h.index-f:t.length-f;if(m){var g=document.createTextNode(c.slice(f,f+m));a&&s<9?u.appendChild(N("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;f+=m+1;var y=void 0;if("\t"==h[0]){var v=e.cm.options.tabSize,b=v-e.col%v;(y=u.appendChild(N("span",W(b),"cm-tab"))).setAttribute("role","presentation"),y.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((y=u.appendChild(N("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((y=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?u.appendChild(N("span",[y])):u.appendChild(y),e.col+=1);e.map.push(e.pos,e.pos+1,y),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||d||o||l){var x=n||"";r&&(x+=r),i&&(x+=i);var E=N("span",[u],x,o);if(l)for(var D in l)l.hasOwnProperty(D)&&"style"!=D&&"class"!=D&&E.setAttribute(D,l[D]);return e.content.appendChild(E)}e.content.appendChild(u)}}function yn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&p.from<=u);d++);if(p.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,p.to-u),i,o,null,s,l),o=null,r=r.slice(p.to-u),u=p.to}}}function bn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function xn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,p,d,f=i.length,h=0,m=1,g="",y=0;;){if(y==h){l=u=c=s="",d=null,p=null,y=1/0;for(var v=[],b=void 0,x=0;xh||D.collapsed&&E.to==h&&E.from==h)){if(null!=E.to&&E.to!=h&&y>E.to&&(y=E.to,u=""),D.className&&(l+=" "+D.className),D.css&&(s=(s?s+";":"")+D.css),D.startStyle&&E.from==h&&(c+=" "+D.startStyle),D.endStyle&&E.to==y&&(b||(b=[])).push(D.endStyle,E.to),D.title&&((d||(d={})).title=D.title),D.attributes)for(var T in D.attributes)(d||(d={}))[T]=D.attributes[T];D.collapsed&&(!p||qt(p.marker,D)<0)&&(p=E)}else E.from>h&&y>E.from&&(y=E.from)}if(b)for(var w=0;w=f)break;for(var S=Math.min(f,y);;){if(g){var k=h+g.length;if(!p){var A=k>S?g.slice(0,S-h):g;t.addToken(t,A,a?a+l:l,c,h+A.length==y?u:"",s,d)}if(k>=S){g=g.slice(S-h),h=S;break}h=k,c=""}g=i.slice(o,o=n[m++]),a=fn(n[m++],t.cm.options)}}else for(var N=1;N2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Xn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Jn(e,t){var n=et(t=Xt(t)),r=e.display.externalMeasured=new En(e.doc,t,n);r.lineN=n;var i=r.built=hn(e,r);return r.text=i.pre,A(e.display.lineMeasure,i.pre),r}function Zn(e,t,n,r){return nr(e,tr(e,t),n,r)}function er(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function sr(e,t,n,r){var i,o=or(t.map,n,r),l=o.node,u=o.start,c=o.end,p=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;u&&oe(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c0&&(p=r="right"),i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Nr(e.display),top:h.top,bottom:h.bottom}:ir}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,y=(m+g)/2,v=t.view.measure.heights,b=0;b=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}HUe(c,"getBidi");var p=ce(s,l,u),d=ue,f=c(l,p,"before"==u);return null!=d&&(f.other=c(l,d,"before"!=u)),f}function br(e,t){var n=0;t=pt(e.doc,t),e.options.lineWrapping||(n=Nr(e.display)*t.ch);var r=Ye(e.doc,t.line),i=on(r)+Hn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function xr(e,t,n,r,i){var o=it(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Er(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return xr(r.first,0,null,-1,-1);var i=tt(r,n),o=r.first+r.size-1;if(i>o)return xr(r.first+r.size-1,Ye(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ye(r,i);;){var s=Cr(e,a,i,t,n),l=Qt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Ye(r,i=u.line)}}function Dr(e,t,n,r){r-=hr(t);var i=t.text.length,o=se(function(t){return nr(e,n,t-1).bottom<=r},i,0);return i=se(function(t){return nr(e,n,t).top>r},o,i),{begin:o,end:i}}function Tr(e,t,n,r){return n||(n=tr(e,t)),Dr(e,t,n,mr(e,t,nr(e,n,r),"line").top)}function wr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Cr(e,t,n,r,i){i-=on(t);var o=tr(e,t),a=hr(t),s=0,l=t.text.length,u=!0,c=de(t,e.doc.direction);if(c){var p=(e.options.lineWrapping?kr:Sr)(e,t,n,o,c,r,i);s=(u=1!=p.level)?p.from:p.to-1,l=u?p.to:p.from-1}var d,f,h=null,m=null,g=se(function(t){var n=nr(e,o,t);return n.top+=a,n.bottom+=a,!!wr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)},s,l),y=!1;if(m){var v=r-m.left=x.bottom?1:0}return xr(n,g=ae(t.text,g,1),f,y,r-d)}function Sr(e,t,n,r,i,o,a){var s=se(function(s){var l=i[s],u=1!=l.level;return wr(vr(e,it(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=vr(e,it(n,u?l.from:l.to,u?"after":"before"),"line",t,r);wr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function kr(e,t,n,r,i,o,a){var s=Dr(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,p=null,d=0;d=u||f.to<=l)){var h=nr(e,r,1!=f.level?Math.min(u,f.to)-1:Math.max(l,f.from)).right,m=hm)&&(c=f,p=m)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function Ar(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==rr){rr=N("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)rr.appendChild(document.createTextNode("x")),rr.appendChild(N("br"));rr.appendChild(document.createTextNode("x"))}A(e.measure,rr);var n=rr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),k(e.measure),n||1}function Nr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=N("span","xxxxxxxxxx"),n=N("pre",[t],"CodeMirror-line-like");A(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Fr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Pr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Pr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function _r(e){var t=Ar(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Nr(e.display)-3);return function(i){if(nn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(l=Ye(e.doc,u.line).text).length==u.ch){var c=R(l,l.length,e.options.tabSize)-l.length;u=it(u.line,Math.max(0,Math.round((o-Gn(e.display).left)/Nr(e.display))-c))}return u}function Lr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Nt&&en(e.doc,t)i.viewFrom?Rr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Rr(e);else if(t<=i.viewFrom){var o=Br(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Rr(e)}else if(n>=i.viewTo){var a=Br(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Rr(e)}else{var s=Br(e,t,t,-1),l=Br(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(Dn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Rr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Lr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==V(a,n)&&a.push(n)}}}function Rr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Br(e,t,n,r){var i,o=Lr(e,t),a=e.display.view;if(!Nt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;en(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Vr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Dn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Dn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Lr(e,n)))),r.viewTo=n}function Ur(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(N("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function qr(e,t){return e.top-t.top||e.left-t.left}function Gr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Gn(e.display),s=a.left,l=Math.max(r.sizerWidth,Wn(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(N("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(n??l-e)+"px;\n height: "+(r-t)+"px"))}function p(t,n,r){var o,a,p=Ye(i,t),d=p.text.length;function f(n,r){return yr(e,it(t,n),"div",p,r)}function h(t,n,r){var i=Tr(e,p,null,t),o="ltr"==n==("after"==r)?"left":"right";return f("after"==r?i.begin:i.end-(/\s/.test(p.text.charAt(i.end-1))?2:1),o)[o]}HUe(f,"coords"),HUe(h,"wrapX");var m=de(p,i.direction);return le(m,n||0,r??d,function(e,t,i,p){var g="ltr"==i,y=f(e,g?"left":"right"),v=f(t-1,g?"right":"left"),b=null==n&&0==e,x=null==r&&t==d,E=0==p,D=!m||p==m.length-1;if(v.top-y.top<=3){var T=(u?x:b)&&D,w=(u?b:x)&&E?s:(g?y:v).left,C=T?l:(g?v:y).right;c(w,y.top,C-w,y.bottom)}else{var S,k,A,N;g?(S=u&&b&&E?s:y.left,k=u?l:h(e,i,"before"),A=u?s:h(t,i,"after"),N=u&&x&&D?l:v.right):(S=u?h(e,i,"before"):s,k=!u&&b&&E?l:y.right,A=!u&&x&&D?s:v.left,N=u?h(t,i,"after"):l),c(S,y.top,k-S,y.bottom),y.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Xr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Wr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Yr(e))}function Qr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Xr(e))},100)}function Yr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ye(e,"focus",e,t),e.state.focused=!0,O(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Kr(e))}function Xr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ye(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Jr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||m<-.005)&&(ie.display.sizerWidth){var y=Math.ceil(d/Nr(e.display));y>e.display.maxLineLength&&(e.display.maxLineLength=y,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Zr(e){if(e.widgets)for(var t=0;t=a&&(o=tt(t,on(Ye(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ti(e,t){if(!ve(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=N("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Hn(e.display))+"px;\n height: "+(t.bottom-t.top+Kn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ni(e,t,n,r){var i;null==r&&(r=0),!e.options.lineWrapping&&t==n&&(n="before"==t.sticky?it(t.line,t.ch+1,"before"):t,t=t.ch?it(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=vr(e,t),l=n&&n!=t?vr(e,n):s,u=ii(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=u.scrollTop&&(pi(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(fi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return i}function ri(e,t){var n=ii(e,t);null!=n.scrollTop&&pi(e,n.scrollTop),null!=n.scrollLeft&&fi(e,n.scrollLeft)}function ii(e,t){var n=e.display,r=Ar(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Qn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+qn(n),l=t.tops-r;if(t.topi+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var p=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-p,f=Wn(e)-n.gutters.offsetWidth,h=t.right-t.left>f;return h&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.leftf+d-3&&(a.scrollLeft=t.right+(h?0:10)-f),a}function oi(e,t){null!=t&&(ui(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ai(e){ui(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function si(e,t,n){(null!=t||null!=n)&&ui(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function li(e,t){ui(e),e.curOp.scrollToPos=t}function ui(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,ci(e,br(e,t.from),br(e,t.to),t.margin))}function ci(e,t,n,r){var i=ii(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});si(e,i.scrollLeft,i.scrollTop)}function pi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||zi(e,{top:t}),di(e,t,!0),n&&zi(e),Ii(e,100))}function di(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function fi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(!(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)||r)&&(e.doc.scrollLeft=t,Gi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function hi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+qn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Kn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}HUe(or,"nodeAndOffsetInLineMap"),HUe(ar,"getUsefulRect"),HUe(sr,"measureCharInner"),HUe(lr,"maybeUpdateRectForZooming"),HUe(ur,"clearLineMeasurementCacheFor"),HUe(cr,"clearLineMeasurementCache"),HUe(pr,"clearCaches"),HUe(dr,"pageScrollX"),HUe(fr,"pageScrollY"),HUe(hr,"widgetTopHeight"),HUe(mr,"intoCoordSystem"),HUe(gr,"fromCoordSystem"),HUe(yr,"charCoords"),HUe(vr,"cursorCoords"),HUe(br,"estimateCoords"),HUe(xr,"PosWithInfo"),HUe(Er,"coordsChar"),HUe(Dr,"wrappedLineExtent"),HUe(Tr,"wrappedLineExtentChar"),HUe(wr,"boxIsAfter"),HUe(Cr,"coordsCharInner"),HUe(Sr,"coordsBidiPart"),HUe(kr,"coordsBidiPartWrapped"),HUe(Ar,"textHeight"),HUe(Nr,"charWidth"),HUe(Fr,"getDimensions"),HUe(Pr,"compensateForHScroll"),HUe(_r,"estimateHeight"),HUe(Or,"estimateLineHeights"),HUe(Ir,"posFromMouse"),HUe(Lr,"findViewIndex"),HUe(Mr,"regChange"),HUe(jr,"regLineChange"),HUe(Rr,"resetView"),HUe(Br,"viewCuttingPoint"),HUe(Vr,"adjustView"),HUe(Ur,"countDirtyView"),HUe(zr,"updateSelection"),HUe($r,"prepareSelection"),HUe(Hr,"drawSelectionCursor"),HUe(qr,"cmpCoords"),HUe(Gr,"drawSelectionRange"),HUe(Kr,"restartBlink"),HUe(Wr,"ensureFocus"),HUe(Qr,"delayBlurEvent"),HUe(Yr,"onFocus"),HUe(Xr,"onBlur"),HUe(Jr,"updateHeightsInViewport"),HUe(Zr,"updateWidgetHeight"),HUe(ei,"visibleLines"),HUe(ti,"maybeScrollWindow"),HUe(ni,"scrollPosIntoView"),HUe(ri,"scrollIntoView"),HUe(ii,"calculateScrollPos"),HUe(oi,"addToScrollTop"),HUe(ai,"ensureCursorVisible"),HUe(si,"scrollToCoords"),HUe(li,"scrollToRange"),HUe(ui,"resolveScrollToPos"),HUe(ci,"scrollToCoordsRange"),HUe(pi,"updateScrollTop"),HUe(di,"setScrollTop"),HUe(fi,"setScrollLeft"),HUe(hi,"measureForScrollbars");var mi=HUe(function(e,t,n){this.cm=n;var r=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),he(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),he(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")},"NativeScrollbars");mi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},mi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mi.prototype.zeroWidthHack=function(){var e=v&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},mi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",HUe(r,"maybeDisable"),t.set(1e3,r)},mi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var gi=HUe(function(){},"NullScrollbars");function yi(e,t){t||(t=hi(e));var n=e.display.barWidth,r=e.display.barHeight;vi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Jr(e),vi(e,hi(e)),n=e.display.barWidth,r=e.display.barHeight}function vi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}gi.prototype.update=function(){return{bottom:0,right:0}},gi.prototype.setScrollLeft=function(){},gi.prototype.setScrollTop=function(){},gi.prototype.clear=function(){},HUe(yi,"updateScrollbars"),HUe(vi,"updateScrollbarsInner");var bi={native:mi,null:gi};function xi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new bi[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),he(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?fi(e,t):pi(e,t)},e),e.display.scrollbars.addClass&&O(e.display.wrapper,e.display.scrollbars.addClass)}HUe(xi,"initScrollbars");var Ei=0;function Di(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ei,markArrays:null},wn(e.curOp)}function Ti(e){var t=e.curOp;t&&Sn(t,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Mi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Si(e){e.updatedDisplay=e.mustUpdate&&Vi(e.cm,e.update)}function ki(e){var t=e.cm,n=t.display;e.updatedDisplay&&Jr(t),e.barMeasure=hi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Zn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Kn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Wn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ai(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=vt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ge(t.mode,r.state):null,l=gt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var p=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!p&&dn)return Ii(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Fi(e,function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Ur(e))return!1;Ki(e)&&(Rr(e),t.dims=Fr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Nt&&(o=en(e.doc,o),a=tn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Vr(e,o,a),n.viewOffset=on(Ye(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Ur(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=Ri(e);return l>4&&(n.lineDiv.style.display="none"),$i(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Bi(u),k(n.cursorDiv),k(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Ii(e,400)),n.updateLineNumbers=null,!0}function Ui(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Wn(e))r&&(t.visible=ei(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+qn(e.display)-Qn(e),n.top)}),t.visible=ei(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Vi(e,t))break;Jr(e);var i=hi(e);zr(e),yi(e,i),qi(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function zi(e,t){var n=new Mi(e,t);if(Vi(e,n)){Jr(e),Ui(e,n);var r=hi(e);zr(e),yi(e,r),qi(e,r),n.finish()}}function $i(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&v&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}HUe(s,"rm");for(var u=r.view,c=r.viewFrom,p=0;p-1&&(f=!1),Fn(e,d,c,n)),f&&(k(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(rt(e.options,c)))),a=d.node.nextSibling}else{var h=Rn(e,d,c,n);o.insertBefore(h,a)}c+=d.size}for(;a;)a=s(a)}function Hi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",An(e,"gutterChanged",e)}function qi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Kn(e)+"px"}function Gi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Pr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;au.clientWidth,d=u.scrollHeight>u.clientHeight;if(i&&c||o&&d){if(o&&v&&l)e:for(var f=t.target,h=s.view;f!=u;f=f.parentNode)for(var m=0;m=0&&ot(e,r.to())<=0)return n}return-1};var io=HUe(function(e,t){this.anchor=e,this.head=t},"Range");function oo(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return ot(e.from(),t.from())}),n=V(t,i);for(var o=1;o0:l>=0){var u=ut(s.from(),a.from()),c=lt(s.to(),a.to()),p=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new io(p?c:u,p?u:c))}}return new ro(t,n)}function ao(e,t){return new ro([new io(e,t||e)],0)}function so(e){return e.text?it(e.from.line+e.text.length-1,Q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function lo(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return so(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=so(t).ch-t.to.ch),it(n,r)}function uo(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,y)}An(e,"change",e,t)}function yo(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Q(e.done)):void 0}function Co(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=wo(i,i.lastOp==r)))a=Q(o.changes),0==ot(t.from,t.to)&&0==ot(t.from,a.to)?a.to=so(t):o.changes.push(Do(e,t));else{var l=Q(i.done);for((!l||!l.ranges)&&Ao(e.sel,i.done),o={changes:[Do(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ye(e,"historyAdded")}function So(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ko(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||So(e,o,Q(i.done),t))?i.done[i.done.length-1]=t:Ao(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&To(i.undone)}function Ao(e,t){var n=Q(t);n&&n.ranges&&n.equals(e)||t.push(e)}function No(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Fo(e){if(!e)return null;for(var t,n=0;n-1&&(Q(s)[p]=u[p],delete u[p])}}}return r}function Io(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ot(t,i)<0;o!=ot(n,i)<0?(i=t,t=n):o!=ot(t,n)<0&&(t=n)}return new io(i,t)}return new io(n||t,t)}function Lo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Uo(e,new ro([Io(e.sel.primary(),t,n,i)],0),r)}function Mo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(ye(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var p=l.find(r<0?1:-1),d=void 0;if((r<0?c:u)&&(p=Wo(e,p,-r,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(d=ot(p,n))&&(r<0?d<0:d>0))return Go(e,p,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?u:c)&&(f=Wo(e,f,r,f.line==t.line?o:null)),f?Go(e,f,t,r,i):null}}return t}function Ko(e,t,n,r,i){var o=r||1;return Go(e,t,n,o,i)||!i&&Go(e,t,n,o,!0)||Go(e,t,n,-o,i)||!i&&Go(e,t,n,-o,!0)||(e.cantEdit=!0,it(e.first,0))}function Wo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?pt(e,it(t.line-1)):null:n>0&&t.ch==(r||Ye(e,t.line)).text.length?t.line=0;--i)Jo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Jo(e,t)}}function Jo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=uo(e,t);Co(e,t,n,e.cm?e.cm.curOp.id:NaN),ta(e,t,n,Rt(e,t));var r=[];yo(e,function(e,n){!n&&-1==V(r,e.history)&&(aa(e.history,t),r.push(e.history)),ta(e,t,null,Rt(e,t))})}}function Zo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u=0;--f){var h=d(f);if(h)return h.v}}}}function ea(e,t){if(0!=t&&(e.first+=t,e.sel=new ro(Y(e.sel.ranges,function(e){return new io(it(e.anchor.line+t,e.anchor.ch),it(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Mr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:it(o,Ye(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Xe(e,t.from,t.to),n||(n=uo(e,t)),e.cm?na(e.cm,t,r):go(e,t,r),zo(e,n,$),e.cantEdit&&Ko(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function na(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=et(Xt(Ye(r,o.line))),r.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&be(e),go(r,t,n,_r(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,function(e){var t=an(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),kt(r,o.line),Ii(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Mr(e):o.line!=a.line||1!=t.text.length||mo(e.doc,t)?Mr(e,o.line,a.line+1,u):jr(e,o.line,"text");var c=xe(e,"changes"),p=xe(e,"change");if(p||c){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};p&&An(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function ra(e,t,n,r,i){var o;r||(r=n),ot(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Xo(e,{from:n,to:r,text:t,origin:i})}function ia(e,t,n,r){n1||!(this.children[0]instanceof la))){var s=[];this.collapse(s),this.children=[new la(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=F("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Yt(e,t.line,t,n,o)||t.line!=n.line&&Yt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pt()}o.addToHistory&&Co(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,function(r){u&&o.collapsed&&!u.options.lineWrapping&&Xt(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Ze(r,0),Lt(r,new _t(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(t){nn(e,t)&&Ze(t,0)}),o.clearOnEnter&&he(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Ft(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++fa,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)Mr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)jr(u,c,"text");o.atomic&&Ho(u.doc),An(u,"markerAdded",u,o)}return o}ha.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Di(e),xe(this,"clear")){var n=this.find();n&&An(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Mr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ho(e.doc)),e&&An(e,"markerCleared",e,this,r,i),t&&Ti(e),this.parent&&this.parent.clear()}},ha.prototype.find=function(e,t){null==e&&"bookmark"==this.type&&(e=1);for(var n,r,i=0;i=0;l--)Xo(this,r[l]);s?Vo(this,s):this.cm&&ai(this.cm)}),undo:Oi(function(){Zo(this,"undo")}),redo:Oi(function(){Zo(this,"redo")}),undoSelection:Oi(function(){Zo(this,"undo",!0)}),redoSelection:Oi(function(){Zo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=pt(this,e),t=pt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch)&&(!n||n(l.marker))&&r.push(l.marker.parent||l.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n}),pt(this,it(n,t))},indexFromPos:function(e){var t=(e=pt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var p=e.dataTransfer.getData("Text");if(p){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),zo(t.doc,ao(n,n)),d)for(var f=0;f=0;t--)ra(e.doc,"",r[t].from,r[t].to,"+delete");ai(e)})}function Ga(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ka(e,t,n){var r=Ga(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function Wa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=de(n,t.doc.direction);if(o){var a,s=i<0?Q(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=tr(t,n);a=i<0?n.text.length-1:0;var c=nr(t,u,a).top;a=se(function(e){return nr(t,u,e).top==c},i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ga(n,a,1))}else a=i<0?s.to:s.from;return new it(r,a,l)}}return new it(r,i<0?n.text.length:0,i<0?"before":"after")}function Qa(e,t,n,r){var i=de(t,e.doc.direction);if(!i)return Ka(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ce(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&d>=c.begin)){var f=p?"before":"after";return new it(n.line,d,f)}}var h=HUe(function(e,t,r){for(var o=HUe(function(e,t){return t?new it(n.line,l(e,1),"before"):new it(n.line,e,"after")},"getRes");e>=0&&e0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u0?c.end:l(c.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:i.length-1,r,u(g)))?null:m}ja.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ja.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ja.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ja.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ja.default=v?ja.macDefault:ja.pcDefault,HUe(Ra,"normalizeKeyName"),HUe(Ba,"normalizeKeyMap"),HUe(Va,"lookupKey"),HUe(Ua,"isModifierKey"),HUe(za,"addModifierNames"),HUe($a,"keyName"),HUe(Ha,"getKeyMap"),HUe(qa,"deleteNearSelection"),HUe(Ga,"moveCharLogically"),HUe(Ka,"moveLogically"),HUe(Wa,"endOfLine"),HUe(Qa,"moveVisually");var Ya={selectAll:Qo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),$)},killLine:function(e){return qa(e,function(t){if(t.empty()){var n=Ye(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new it(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),it(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ye(e.doc,i.line-1).text;a&&(i=new it(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),it(i.line-1,a.length-1),i,"+transpose"))}n.push(new io(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Fi(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(ot((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ot(i.to(),t)>0||t.xRel<0)?Es(e,r,t,o):Ts(e,r,t,o)}function Es(e,t,n,r){var i=e.display,o=!1,u=Pi(e,function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Qr(e)),ge(i.wrapper.ownerDocument,"mouseup",u),ge(i.wrapper.ownerDocument,"mousemove",c),ge(i.scroller,"dragstart",p),ge(i.scroller,"drop",u),o||(De(t),r.addNew||Lo(e.doc,n,null,null,r.extend),l&&!d||a&&9==s?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),c=HUe(function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},"mouseMove"),p=HUe(function(){return o=!0},"dragStart");l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,he(i.wrapper.ownerDocument,"mouseup",u),he(i.wrapper.ownerDocument,"mousemove",c),he(i.scroller,"dragstart",p),he(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Ds(e,t,n){if("char"==n)return new io(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new io(it(t.line,0),pt(e.doc,it(t.line+1,0)));var r=n(e,t);return new io(r.from,r.to)}function Ts(e,t,n,r){a&&Qr(e);var i=e.display,o=e.doc;De(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new io(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new io(n,n)),n=Ir(e,t,!0,!0),l=-1;else{var p=Ds(e,n,r.unit);s=r.extend?Io(s,p.anchor,p.head,r.extend):p}r.addNew?-1==l?(l=c.length,Uo(o,oo(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(Uo(o,oo(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):jo(o,l,s,H):(l=0,Uo(o,new ro([s],0),H),u=o.sel);var d=n;function f(t){if(0!=ot(d,t))if(d=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=R(Ye(o,n.line).text,n.ch,a),p=R(Ye(o,t.line).text,t.ch,a),f=Math.min(c,p),h=Math.max(c,p),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var y=Ye(o,m).text,v=G(y,f,a);f==h?i.push(new io(it(m,v),it(m,v))):y.length>v&&i.push(new io(it(m,v),it(m,G(y,h,a))))}i.length||i.push(new io(n,n)),Uo(o,oo(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,x=s,E=Ds(e,t,r.unit),D=x.anchor;ot(E.anchor,D)>0?(b=E.head,D=ut(x.from(),E.anchor)):(b=E.anchor,D=lt(x.to(),E.head));var T=u.ranges.slice(0);T[l]=ws(e,new io(pt(o,D),b)),Uo(o,oo(e,T,l),H)}}HUe(f,"extendTo");var h=i.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=Ir(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ot(a,d)){e.curOp.focus=_(),f(a);var s=ei(i,o);(a.line>=s.to||a.lineh.bottom?20:0;l&&setTimeout(Pi(e,function(){m==n&&(i.scroller.scrollTop+=l,g(t))}),50)}}function y(t){e.state.selectingText=!1,m=1/0,t&&(De(t),i.input.focus()),ge(i.wrapper.ownerDocument,"mousemove",v),ge(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}HUe(g,"extend"),HUe(y,"done");var v=Pi(e,function(e){0!==e.buttons&&ke(e)?g(e):y(e)}),b=Pi(e,y);e.state.selectingText=b,he(i.wrapper.ownerDocument,"mousemove",v),he(i.wrapper.ownerDocument,"mouseup",b)}function ws(e,t){var n=t.anchor,r=t.head,i=Ye(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var o=de(i);if(!o)return t;var a=ce(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(o,r.ch,r.sticky),p=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?p<0:p>0}var d=o[u+(l?-1:0)],f=l==(1==d.level),h=f?d.from:d.to,m=f?"after":"before";return n.ch==h&&n.sticky==m?t:new io(new it(n.line,h,m),r)}function Cs(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&De(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!xe(e,n))return we(t);o-=s.top-a.viewOffset;for(var l=0;l=i)return ye(e,n,e,tt(e.doc,o),e.display.gutterSpecs[l].className,t),we(t)}}function Ss(e,t){return Cs(e,t,"gutterClick",!0)}function ks(e,t){$n(e.display,t)||As(e,t)||ve(e,t,"contextmenu")||T||e.display.input.onContextMenu(t)}function As(e,t){return!!xe(e,"gutterContextMenu")&&Cs(e,t,"gutterContextMenu",!1)}function Ns(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),pr(e)}ms.prototype.compare=function(e,t,n){return this.time+hs>e&&0==ot(t,this.pos)&&n==this.button},HUe(gs,"clickRepeat"),HUe(ys,"onMouseDown"),HUe(vs,"handleMappedButton"),HUe(bs,"configureMouse"),HUe(xs,"leftButtonDown"),HUe(Es,"leftButtonStartDrag"),HUe(Ds,"rangeForUnit"),HUe(Ts,"leftButtonSelect"),HUe(ws,"bidiSimplify"),HUe(Cs,"gutterEvent"),HUe(Ss,"clickInGutter"),HUe(ks,"onContextMenu"),HUe(As,"contextMenuInGutter"),HUe(Ns,"themeChanged");var Fs={toString:function(){return"CodeMirror.Init"}},Ps={},_s={};function Os(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Fs&&i(e,t,n)}:i)}HUe(n,"option"),e.defineOption=n,e.Init=Fs,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,fo(e)},!0),n("indentUnit",2,fo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){ho(e),pr(e),Mr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(it(r,o))}r++});for(var i=n.length-1;i>=0;i--)ra(e.doc,t,n[i],it(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Fs&&e.refresh()}),n("specialCharPlaceholder",mn,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){Ns(e),Yi(e)},!0),n("keyMap","default",function(e,t,n){var r=Ha(t),i=n!=Fs&&Ha(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ls,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=Wi(t,e.options.lineNumbers),Yi(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?Pr(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return yi(e)},!0),n("scrollbarStyle","native",function(e){xi(e),yi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=Wi(e.options.gutters,t),Yi(e)},!0),n("firstLineNumber",1,Yi,!0),n("lineNumberFormatter",function(e){return e},Yi,!0),n("showCursorWhenSelecting",!1,zr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(Xr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,Is),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,zr,!0),n("singleCursorHeightPerLine",!0,zr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,ho,!0),n("addModeClass",!1,ho,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,ho,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}function Is(e,t,n){if(!t!=!(n&&n!=Fs)){var r=e.display.dragFunctions,i=t?he:ge;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ls(e){e.options.lineWrapping?(O(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),sn(e)),Or(e),Mr(e),pr(e),setTimeout(function(){return yi(e)},100)}function Ms(e,t){var n=this;if(!(this instanceof Ms))return new Ms(e,t);this.options=t=t?j(t):{},j(Ps,t,!1);var r=t.value;"string"==typeof r?r=new Da(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ms.inputStyles[t.inputStyle](this),o=this.display=new Xi(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,Ns(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout(function(){return n.display.input.reset(!0)},20),js(this),Fa(),Di(this),this.curOp.forceUpdate=!0,vo(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Yr(n)},20):Xr(this),_s)_s.hasOwnProperty(u)&&_s[u](this,t[u],Fs);Ki(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}HUe(i,"finishTouch"),HUe(o,"isMouseLikeTouchEvent"),HUe(l,"farAway"),he(t.scroller,"touchstart",function(i){if(!ve(e,i)&&!o(i)&&!Ss(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),he(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),he(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!$n(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new io(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new io(it(a.line,0),pt(e.doc,it(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),De(n)}i()}),he(t.scroller,"touchcancel",i),he(t.scroller,"scroll",function(){t.scroller.clientHeight&&(pi(e,t.scroller.scrollTop),fi(e,t.scroller.scrollLeft,!0),ye(e,"scroll",e))}),he(t.scroller,"mousewheel",function(t){return no(e,t)}),he(t.scroller,"DOMMouseScroll",function(t){return no(e,t)}),he(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){ve(e,t)||Ce(t)},over:function(t){ve(e,t)||(Sa(e,t),Ce(t))},start:function(t){return Ca(e,t)},drop:Pi(e,wa),leave:function(t){ve(e,t)||ka(e)}};var u=t.input.getField();he(u,"keyup",function(t){return cs.call(e,t)}),he(u,"keydown",Pi(e,ls)),he(u,"keypress",Pi(e,ps)),he(u,"focus",function(t){return Yr(e,t)}),he(u,"blur",function(t){return Xr(e,t)})}HUe(Os,"defineOptions"),HUe(Is,"dragDropChanged"),HUe(Ls,"wrappingChanged"),HUe(Ms,"CodeMirror"),Ms.defaults=Ps,Ms.optionHandlers=_s,HUe(js,"registerEventHandlers");var Rs=[];function Bs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=vt(e,t).state:n="prev");var a=e.options.tabSize,s=Ye(o,t),l=R(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==z||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?R(Ye(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var p="",d=0;if(e.options.indentWithTabs)for(var f=Math.floor(u/a);f;--f)d+=a,p+="\t";if(da,l=Oe(t),u=null;if(s&&r.ranges.length>1)if(Vs&&Vs.text.join("\n")==t){if(r.ranges.length%Vs.text.length==0){u=[];for(var c=0;c=0;d--){var f=r.ranges[d],h=f.from(),m=f.to();f.empty()&&(n&&n>0?h=it(h.line,h.ch-n):e.state.overwrite&&!s?m=it(m.line,Math.min(Ye(o,m.line).text.length,m.ch+Q(l).length)):s&&Vs&&Vs.lineWise&&Vs.text.join("\n")==l.join("\n")&&(h=m=it(h.line,0)));var g={from:h,to:m,text:u?u[d%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Xo(e.doc,g),An(e,"inputRead",e,g)}t&&!s&&Hs(e,t),ai(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function $s(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Fi(t,function(){return zs(t,n,0,null,"paste")}),!0}function Hs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Bs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ye(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Bs(e,i.head.line,"smart"));a&&An(e,"electricInput",e,i.head.line)}}}function qs(e){for(var t=[],n=[],r=0;rn&&(Bs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&ai(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&jo(this.doc,r,new io(o,u[r].to()),$)}}}),getTokenAt:function(e,t){return Tt(this,e,t)},getLineTokens:function(e,t){return Tt(this,it(e),t,!0)},getTokenTypeAt:function(e){e=pt(this.doc,e);var t,n=yt(this,Ye(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=Ye(this.doc,e)}else r=e;return mr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Ar(this.display)},defaultCharWidth:function(){return Nr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=vr(this,pt(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ri(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:_i(ls),triggerOnKeyPress:_i(ps),triggerOnKeyUp:cs,triggerOnMouseDown:_i(ys),execCommand:function(e){if(Ya.hasOwnProperty(e))return Ya[e].call(null,this)},triggerElectric:_i(function(e){Hs(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=pt(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&Or(this),ye(this,"refresh",this)}),swapDoc:_i(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),vo(this,e),pr(this),this.display.input.reset(),si(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,An(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ee(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function Qs(e,t,n,r,i){var o=t,a=n,s=Ye(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(){var n=t.line+l;return!(n=e.first+e.size)&&(t=new it(n,t.ch,t.sticky),s=Ye(e,n))}function c(o){var a;if("codepoint"==r){var c=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var p=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new it(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(p?2:1))),-n)}}else a=i?Qa(e.cm,s,t,n):Ka(s,t,n);if(null==a){if(o||!u())return!1;t=Wa(i,e.cm,s,t.line,l)}else t=a;return!0}if(HUe(u,"findNextLine"),HUe(c,"moveOnce"),"char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var p=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||c(!h);h=!1){var m=s.text.charAt(t.ch)||"\n",g=ne(m,f)?"w":d&&"\n"==m?"n":!d||/\s/.test(m)?null:"p";if(d&&!h&&!g&&(g="s"),p&&p!=g){n<0&&(n=1,c(),t.sticky="after");break}if(g&&(p=g),n>0&&!c(!h))break}var y=Ko(e,t,o,a,!0);return at(o,y)&&(y.hitSide=!0),y}function Ys(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*Ar(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Er(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}HUe(Us,"setLastCopied"),HUe(zs,"applyTextInput"),HUe($s,"handlePaste"),HUe(Hs,"triggerElectric"),HUe(qs,"copyableRanges"),HUe(Gs,"disableBrowserMagic"),HUe(Ks,"hiddenTextarea"),HUe(Ws,"addEditorMethods"),HUe(Qs,"findPosH"),HUe(Ys,"findPosV");var Xs=HUe(function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null},"ContentEditableInput");function Js(e,t){var n=er(e,t.line);if(!n||n.hidden)return null;var r=Ye(e.doc,t.line),i=Xn(n,r,t.line),o=de(r,e.doc.direction),a="left";o&&(a=ce(o,t.ch)%2?"right":"left");var s=or(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Zs(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function el(e,t){return t&&(e.bad=!0),e}function tl(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(e){return function(t){return t.id==e}}function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function p(e){e&&(c(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void p(n);var o,f=t.getAttribute("cm-marker");if(f){var h=e.findMarks(it(r,0),it(i+1,0),u(+f));return void(h.length&&(o=h[0].find(0))&&p(Xe(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&c();for(var g=0;g=t.display.viewTo||o.line=t.display.viewFrom&&Js(t,i)||{node:l[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(a=it(a.line-1,Ye(r.doc,a.line-1).length)),s.ch==Ye(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Lr(r,a.line))?(t=et(i.view[0].line),n=i.view[0].node):(t=et(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=Lr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=et(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(tl(r,n,u,t,l)),d=Xe(r.doc,it(t,0),it(l,Ye(r.doc,l).text.length));p.length>1&&d.length>1;)if(Q(p)==Q(d))p.pop(),d.pop(),l--;else{if(p[0]!=d[0])break;p.shift(),d.shift(),t++}for(var f=0,h=0,m=p[0],g=d[0],y=Math.min(m.length,g.length);fa.ch&&v.charCodeAt(v.length-h-1)==b.charCodeAt(b.length-h-1);)f--,h++;p[p.length-1]=v.slice(0,v.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(f).replace(/\u200b+$/,"");var E=it(t,f),D=it(l,d.length?Q(d).length-h:0);return p.length>1||p[0]||ot(E,D)?(ra(r.doc,p,E,D,"+input"),!0):void 0},Xs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Xs.prototype.reset=function(){this.forceCompositionEnd()},Xs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Xs.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Xs.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Fi(this.cm,function(){return Mr(e.cm)})},Xs.prototype.setUneditable=function(e){e.contentEditable="false"},Xs.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Pi(this.cm,zs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Xs.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Xs.prototype.onContextMenu=function(){},Xs.prototype.resetPosition=function(){},Xs.prototype.needsContentAttribute=!0,HUe(Js,"posToDOM"),HUe(Zs,"isInGutter"),HUe(el,"badPos"),HUe(tl,"domTextBetween"),HUe(nl,"domToPos"),HUe(rl,"locateNodeInLineView");var il=HUe(function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null},"TextareaInput");function ol(e,t){if((t=t?j(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=_();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(HUe(r,"save"),e.form&&(he(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch{}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",r),!t.leaveSubmitMethodAlone&&"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var s=Ms(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s}function al(e){e.off=ge,e.on=he,e.wheelEventPixels=to,e.Doc=Da,e.splitLines=Oe,e.countColumn=R,e.findColumn=G,e.isWordChar=te,e.Pass=z,e.signal=ye,e.Line=ln,e.changeEnd=so,e.scrollbarModel=bi,e.Pos=it,e.cmpPos=ot,e.modes=Re,e.mimeModes=Be,e.resolveMode=ze,e.getMode=$e,e.modeExtensions=He,e.extendMode=qe,e.copyState=Ge,e.startState=We,e.innerMode=Ke,e.commands=Ya,e.keyMap=ja,e.keyName=$a,e.isModifierKey=Ua,e.lookupKey=Va,e.normalizeKeyMap=Ba,e.StringStream=Qe,e.SharedTextMarker=ga,e.TextMarker=ha,e.LineWidget=ca,e.e_preventDefault=De,e.e_stopPropagation=Te,e.e_stop=Ce,e.addClass=O,e.contains=P,e.rmClass=S,e.keyNames=Oa}il.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ve(r,e)){if(r.somethingSelected())Us({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=qs(r);Us({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,$):(n.prevInput="",i.value=t.text.join("\n"),L(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),he(i,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),he(i,"paste",function(e){ve(r,e)||$s(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),HUe(o,"prepareCopyCut"),he(i,"cut",o),he(i,"copy",o),he(e.scroller,"paste",function(t){if(!$n(e,t)&&!ve(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),he(e.lineSpace,"selectstart",function(t){$n(e,t)||De(t)}),he(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),he(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},il.prototype.createField=function(e){this.wrapper=Ks(),this.textarea=this.wrapper.firstChild},il.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},il.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=$r(e);if(e.options.moveInputWithCursor){var i=vr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},il.prototype.showSelection=function(e){var t=this.cm.display;A(t.cursorDiv,e.cursors),A(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},il.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&L(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},il.prototype.getField=function(){return this.textarea},il.prototype.supportsTouch=function(){return!1},il.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||_()!=this.textarea))try{this.textarea.focus()}catch{}},il.prototype.blur=function(){this.textarea.blur()},il.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},il.prototype.receivedFocus=function(){this.slowPoll()},il.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},il.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,HUe(n,"p"),t.polling.set(20,n)},il.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ie(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||v&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203==o&&!r&&(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},il.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},il.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},il.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Ir(n,e),u=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Pi(n,Uo)(n.doc,ao(o),$);var c,d=i.style.cssText,f=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=window.scrollY),r.input.focus(),l&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),HUe(g,"prepareSelectAllHack"),HUe(y,"rehide"),a&&s>=9&&g(),T){Ce(e);var m=HUe(function(){ge(window,"mouseup",m),setTimeout(y,20)},"mouseup");he(window,"mouseup",m)}else setTimeout(y,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=HUe(function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Pi(n,Qo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())},"poll");r.detectingSelectAll=setTimeout(o,200)}}},il.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},il.prototype.setUneditable=function(){},il.prototype.needsContentAttribute=!1,HUe(ol,"fromTextArea"),HUe(al,"addLegacyProps"),Os(Ms),Ws(Ms);var sl="iter insert remove copy getEditor constructor".split(" ");for(var ll in Da.prototype)Da.prototype.hasOwnProperty(ll)&&V(sl,ll)<0&&(Ms.prototype[ll]=function(e){return function(){return e.apply(this.doc,arguments)}}(Da.prototype[ll]));return Ee(Da),Ms.inputStyles={textarea:il,contenteditable:Xs},Ms.defineMode=function(e){!Ms.defaults.mode&&"null"!=e&&(Ms.defaults.mode=e),Ve.apply(this,arguments)},Ms.defineMIME=Ue,Ms.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ms.defineMIME("text/plain","null"),Ms.defineExtension=function(e,t){Ms.prototype[e]=t},Ms.defineDocExtension=function(e,t){Da.prototype[e]=t},Ms.fromTextArea=ol,al(Ms),Ms.version="5.65.3",Ms}()),KUe.exports}HUe(WUe,"requireCodemirror");var QUe=Object.defineProperty;function YUe(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}((e,t)=>{QUe(e,"name",{value:t,configurable:!0})})(YUe,"_mergeNamespaces");var XUe=WUe();const JUe=qUe(XUe),ZUe=YUe({__proto__:null,default:JUe},[XUe]),eze=Object.freeze(Object.defineProperty({__proto__:null,C:JUe,c:ZUe},Symbol.toStringTag,{value:"Module"}));var tze=Object.defineProperty,nze=(e,t)=>tze(e,"name",{value:t,configurable:!0});function rze(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}nze(rze,"_mergeNamespaces");!function(e){var t="CodeMirror-hint",n="CodeMirror-hint-active";function r(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",function(t){t=a(this,this.getCursor("start"),t);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;id.clientHeight+1;if(setTimeout(function(){P=a.getScrollInfo()}),_.bottom-F>0){var I=_.bottom-_.top;if(x.top-(x.bottom-_.top)-I>0)d.style.top=(D=x.top-I-C)+"px",T=!1;else if(I>F){d.style.height=F-5+"px",d.style.top=(D=x.bottom-_.top-C)+"px";var L=a.getCursor();i.from.ch!=L.ch&&(x=a.cursorCoords(L),d.style.left=(E=x.left-w)+"px",_=d.getBoundingClientRect())}}var M,j=_.right-N;if(O&&(j+=a.display.nativeBarWidth),j>0&&(_.right-_.left>N&&(d.style.width=N-5+"px",j-=_.right-_.left-N),d.style.left=(E=x.left-j-w)+"px"),O)for(var R=d.firstChild;R;R=R.nextSibling)R.style.paddingRight=a.display.nativeBarWidth+"px";a.addKeyMap(this.keyMap=l(r,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:h.length,close:function(){r.close()},pick:function(){o.pick()},data:i})),r.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){M=setTimeout(function(){r.close()},100)}),a.on("focus",this.onFocus=function(){clearTimeout(M)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),t=a.getWrapperElement().getBoundingClientRect();P||(P=a.getScrollInfo());var n=D+P.top-e.top,i=n-(p.pageYOffset||(c.documentElement||c.body).scrollTop);if(T||(i+=d.offsetHeight),i<=t.top||i>=t.bottom)return r.close();d.style.top=n+"px",d.style.left=E+P.left-e.left+"px"}),e.on(d,"dblclick",function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())}),e.on(d,"click",function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),r.options.completeOnSingleClick&&o.pick())}),e.on(d,"mousedown",function(){setTimeout(function(){a.focus()},20)});var B=this.getSelectedHintRange();return(0!==B.from||0!==B.to)&&this.scrollToActive(),e.signal(i,"select",h[this.selectedHint],d.childNodes[this.selectedHint]),!0}function p(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r0?t(e):o(i+1)})}nze(o,"run"),o(0)},"resolved");return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}r.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],i=this;this.cm.operation(function(){r.hint?r.hint(i.cm,t,r):i.cm.replaceRange(s(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),i.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),n=this.cm.getLine(t.line);if(t.line!=this.startPos.line||n.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?t=r?this.data.list.length-1:0:t<0&&(t=r?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+n,""),i.removeAttribute("aria-selected")),(i=this.hints.childNodes[this.selectedHint=t]).className+=" "+n,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},nze(p,"applicableHelpers"),nze(d,"fetchHints"),nze(f,"resolveAutoHints"),e.registerHelper("hint","auto",{resolve:f}),e.registerHelper("hint","fromList",function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(WUe());var ize={};const oze=rze({__proto__:null,default:qUe(ize)},[ize]),aze=Object.freeze(Object.defineProperty({__proto__:null,s:oze},Symbol.toStringTag,{value:"Module"}));var sze,lze=Object.defineProperty,uze=(e,t)=>lze(e,"name",{value:t,configurable:!0}),cze={exports:{}};function pze(){return sze||(sze=1,function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),p=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!p)return null;var d=">"==p.charAt(1)?1:-1;if(o&&o.strict&&d>0!=(l==t.ch))return null;var f=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(d>0?1:0)),d,f,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==p.charAt(0),forward:d>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],p=i(s),d=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),f=t.line;f!=d;f+=o){var h=e.getLine(f);if(h){var m=o>0?0:h.length-1,g=o>0?h.length:-1;if(!(h.length>l))for(f==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var y=h.charAt(m);if(p.test(y)&&(void 0===a||(e.getTokenTypeAt(n(f,m+1))||"")==(a||""))){var v=r[y];if(v&&">"==v.charAt(1)==o>0)c.push(y);else{if(!c.length)return{pos:n(f,m),ch:y};c.pop()}}}}}return f-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],u=e.listSelections(),c=0;cr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}((e,t)=>{dze(e,"name",{value:t,configurable:!0})})(fze,"_mergeNamespaces");var hze=pze();const mze=fze({__proto__:null,default:qUe(hze)},[hze]),gze=Object.freeze(Object.defineProperty({__proto__:null,m:mze},Symbol.toStringTag,{value:"Module"}));var yze=Object.defineProperty,vze=(e,t)=>yze(e,"name",{value:t,configurable:!0});function bze(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}vze(bze,"_mergeNamespaces");!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}),vze(r,"getOption");var i={Backspace:l,Enter:u};function o(e){for(var t=0;t=0;l--){var c=a[l].head;t.replaceRange("",n(c.line,c.ch-1),n(c.line,c.ch+1),"+delete")}}function u(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,i)}function p(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function d(t,i){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),l=a.indexOf(i);if(-1==l)return e.Pass;for(var u,d=r(o,"closeBefore"),f=r(o,"triples"),m=a.charAt(l+1)==i,g=t.listSelections(),y=l%2==0,v=0;v1&&f.indexOf(i)>=0&&t.getRange(n(E.line,E.ch-2),E)==i+i){if(E.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(E.line,E.ch-2))))return e.Pass;b="addFour"}else if(m){var T=0==E.ch?" ":t.getRange(n(E.line,E.ch-1),E);if(e.isWordChar(D)||T==i||e.isWordChar(T))return e.Pass;b="both"}else{if(!y||!(0===D.length||/\s/.test(D)||d.indexOf(D)>-1))return e.Pass;b="both"}else b=m&&h(t,E)?"both":f.indexOf(i)>=0&&t.getRange(E,n(E.line,E.ch+3))==i+i+i?"skipThree":"skip";if(u){if(u!=b)return e.Pass}else u=b}var w=l%2?a.charAt(l-1):i,C=l%2?i:a.charAt(l+1);t.operation(function(){if("skip"==u)c(t,1);else if("skipThree"==u)c(t,3);else if("surround"==u){for(var e=t.getSelections(),n=0;nTze(e,"name",{value:t,configurable:!0});function Cze(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}wze(Cze,"_mergeNamespaces");!function(e){function t(t){return function(n,r){var i=r.line,o=n.getLine(i);function a(t){for(var a,s=r.ch,l=0;;){var u=s<=0?-1:o.lastIndexOf(t[0],s-1);if(-1!=u){if(1==l&&ut.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}wze(r,"hasImport");var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}}),e.registerHelper("fold","include",function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}wze(r,"hasInclude");var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}})}(WUe());var Sze={};const kze=Cze({__proto__:null,default:qUe(Sze)},[Sze]),Aze=Object.freeze(Object.defineProperty({__proto__:null,b:kze},Symbol.toStringTag,{value:"Module"}));var Nze=Object.defineProperty,Fze=(e,t)=>Nze(e,"name",{value:t,configurable:!0});function Pze(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}Fze(Pze,"_mergeNamespaces");var _ze,Oze={exports:{}};function Ize(){return _ze||(_ze=1,function(e){function t(t,r,o,a){if(o&&o.call){var s=o;o=null}else s=i(t,o,"rangeFinder");"number"==typeof r&&(r=e.Pos(r,0));var l=i(t,o,"minFoldSize");function u(e){var n=s(t,r);if(!n||n.to.line-n.from.linet.firstLine();)r=e.Pos(r.line-1,0),c=u(!1);if(c&&!c.cleared&&"unfold"!==a){var p=n(t,o,c);e.on(p,"mousedown",function(t){d.clear(),e.e_preventDefault(t)});var d=t.markText(c.from,c.to,{replacedWith:p,clearOnEnter:i(t,o,"clearOnEnter"),__isFold:!0});d.on("clear",function(n,r){e.signal(t,"unfold",t,n,r)}),e.signal(t,"fold",t,c.from,c.to)}}function n(e,t,n){var r=i(e,t,"widget");if("function"==typeof r&&(r=r(n.from,n.to)),"string"==typeof r){var o=document.createTextNode(r);(r=document.createElement("span")).appendChild(o),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}Fze(t,"doFold"),Fze(n,"makeWidget"),e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,r){t(this,e,n,r)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n=u){if(d&&s&&d.test(s.className))return;r=o(a.indicatorOpen)}}!r&&!s||e.setGutterMarker(n,a.gutter,r)})}function s(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function l(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){a(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function u(e,n,r){var o=e.state.foldGutter;if(o){var a=o.options;if(r==a.gutter){var s=i(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function c(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){l(e)},n.foldOnChangeTimeSpan||600)}}function p(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?l(e):e.operation(function(){n.fromt.to&&(a(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function d(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&rRze(e,"name",{value:t,configurable:!0});function Vze(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}Bze(Vze,"_mergeNamespaces");!function(e){var t="CodeMirror-lint-markers",n="CodeMirror-lint-line-";function r(t,n,r){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);i.style.top=Math.max(0,t.clientY-i.offsetHeight-5)+"px",i.style.left=t.clientX+5+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),Bze(o,"position"),e.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}function i(e){e.parentNode&&e.parentNode.removeChild(e)}function o(e){e.parentNode&&(null==e.style.opacity&&i(e),e.style.opacity=0,setTimeout(function(){i(e)},600))}function a(t,n,i,a){var s=r(t,n,i);function l(){e.off(a,"mouseout",l),s&&(o(s),s=null)}Bze(l,"hide");var u=setInterval(function(){if(s)for(var e=a;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){l();break}}if(!s)return clearInterval(u)},400);e.on(a,"mouseout",l)}function s(e,t,n){for(var r in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),(!t||!0===t)&&(t={}),this.options={},this.linterOptions=t.options||{},l)this.options[r]=l[r];for(var r in t)l.hasOwnProperty(r)?null!=t[r]&&(this.options[r]=t[r]):t.options||(this.linterOptions[r]=t[r]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){x(e,t)},this.waitingFor=0}Bze(r,"showTooltip"),Bze(i,"rm"),Bze(o,"hideTooltip"),Bze(a,"showTooltipFor"),Bze(s,"LintState");var l={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function u(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&c(e);for(var r=0;r-1)&&c.push(e.message)});for(var m=null,g=i.hasGutter&&document.createDocumentFragment(),y=0;y1,o.tooltips)),o.highlightLines&&e.addLineClass(s,"wrap",n+m)}}o.onUpdateLinting&&o.onUpdateLinting(r,a,e)}}function v(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){g(e)},t.options.delay))}function b(e,t,n){for(var r=n.target||n.srcElement,i=document.createDocumentFragment(),o=0;oqze(e,"name",{value:t,configurable:!0}),Kze={exports:{}};function Wze(){return Hze||(Hze=1,function(e){var t,n,r=e.Pos;function i(e){return e.flags??(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function o(e,t){for(var n=i(e),r=n,o=0;oc);p++){var d=e.getLine(u++);i=null==i?d:i+"\n"+d}l*=2,t.lastIndex=n.ch;var f=t.exec(i);if(f){var h=i.slice(0,f.index).split("\n"),m=f[0].split("\n"),g=n.line+h.length-1,y=h[h.length-1].length;return{from:r(g,y),to:r(g+m.length-1,1==m.length?y+m[0].length:m[m.length-1].length),match:f}}}}function u(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function c(e,t,n){t=o(t,"g");for(var i=n.line,a=n.ch,s=e.firstLine();i>=s;i--,a=-1){var l=e.getLine(i),c=u(l,t,a<0?0:l.length-a);if(c)return{from:r(i,c.index),to:r(i,c.index+c[0].length),match:c}}}function p(e,t,n){if(!a(t))return c(e,t,n);t=o(t,"gm");for(var i,s=1,l=e.getLine(n.line).length-n.ch,p=n.line,d=e.firstLine();p>=d;){for(var f=0;f=d;f++){var h=e.getLine(p--);i=null==i?h:h+"\n"+i}s*=2;var m=u(i,t,l);if(m){var g=i.slice(0,m.index).split("\n"),y=m[0].split("\n"),v=p+g.length,b=g[g.length-1].length;return{from:r(v,b),to:r(v+y.length-1,1==y.length?b+y[0].length:y[y.length-1].length),match:m}}}}function d(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,p=e.lastLine()+1-l.length;u<=p;u++,c=0){var f=e.getLine(u).slice(c),h=s(f);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=d(f,h,m,s)+c,{from:r(u,d(f,h,m,s)+c),to:r(u,d(f,h,m+l[0].length,s)+c)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var y=1;y=p;u--,c=-1){var f=e.getLine(u);c>-1&&(f=f.slice(0,c));var h=s(f);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(u,d(f,h,m,s)),to:r(u,d(f,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var y=1;for(o=u-l.length+1;y(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new m(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new m(this,e,t,n)}),e.defineExtension("selectMatches",function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})}(WUe())),Kze.exports}Gze(Wze,"requireSearchcursor");var Qze=Object.defineProperty;function Yze(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}((e,t)=>{Qze(e,"name",{value:t,configurable:!0})})(Yze,"_mergeNamespaces");var Xze=Wze();const Jze=Yze({__proto__:null,default:qUe(Xze)},[Xze]),Zze=Object.freeze(Object.defineProperty({__proto__:null,s:Jze},Symbol.toStringTag,{value:"Module"}));var e$e=Object.defineProperty,t$e=(e,t)=>e$e(e,"name",{value:t,configurable:!0});function n$e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}t$e(n$e,"_mergeNamespaces");!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}t$e(t,"dialogDiv"),t$e(n,"closeNotification"),e.defineExtension("openDialog",function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function u(t){if("string"==typeof t)p.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}t$e(u,"close");var c,p=a.getElementsByTagName("input")[0];return p?(p.focus(),o.value&&(p.value=o.value,!1!==o.selectValueOnOpen&&p.select()),o.onInput&&e.on(p,"input",function(e){o.onInput(e,p.value,u)}),o.onKeyUp&&e.on(p,"keyup",function(e){o.onKeyUp(e,p.value,u)}),e.on(p,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,p.value,u)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(p.blur(),e.e_stop(t),u()),13==t.keyCode&&i(p.value,t))}),!1!==o.closeOnBlur&&e.on(a,"focusout",function(e){null!==e.relatedTarget&&u()})):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",function(){u(),l.focus()}),!1!==o.closeOnBlur&&e.on(c,"blur",u),c.focus()),u}),e.defineExtension("openConfirm",function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,u=this,c=1;function p(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}t$e(p,"close"),s[0].focus();for(var d=0;da$e(e,"name",{value:t,configurable:!0});function l$e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}s$e(l$e,"_mergeNamespaces");!function(e){function t(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function n(e){return e.phrase("Jump to line:")+' '+e.phrase("(Use line:column or scroll% syntax)")+""}function r(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.defineOption("search",{bottom:!1}),s$e(t,"dialog"),s$e(n,"getJumpDialog"),s$e(r,"interpretLine"),e.commands.jumpToLine=function(e){var i=e.getCursor();t(e,n(e),e.phrase("Jump to line:"),i.line+1+":"+i.ch,function(t){var n;if(t)if(n=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(t))e.setCursor(r(e,n[1]),Number(n[2]));else if(n=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(t)){var o=Math.round(e.lineCount()*Number(n[1])/100);/^[-+]/.test(n[1])&&(o=i.line+o+1),e.setCursor(o-1,i.ch)}else(n=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(t))&&e.setCursor(r(e,n[1]),i.ch)})},e.keyMap.default["Alt-G"]="jumpToLine"}(WUe());var u$e={};const c$e=l$e({__proto__:null,default:qUe(u$e)},[u$e]),p$e=Object.freeze(Object.defineProperty({__proto__:null,j:c$e},Symbol.toStringTag,{value:"Module"}));var d$e=Object.defineProperty,f$e=(e,t)=>d$e(e,"name",{value:t,configurable:!0});function h$e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}f$e(h$e,"_mergeNamespaces");!function(e){var t=e.commands,n=e.Pos;function r(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,u=l,c=i<0?0:o.length,p=0;u!=c;u+=i,p++){var d=o.charAt(i<0?u-1:u),f="_"!=d&&e.isWordChar(d)?"w":"o";if("w"==f&&d.toUpperCase()==d&&(f="W"),"start"==s)"o"!=f?(s="in",a=f):l=u+i;else if("in"==s&&a!=f){if("w"==a&&"W"==f&&i<0&&u--,"W"==a&&"w"==f&&i>0){if(u==l+1){a="w";continue}u--}break}}return n(r.line,u)}function i(e,t){e.extendSelectionsBy(function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()})}function o(t,r){if(t.isReadOnly())return e.Pass;t.operation(function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;io.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;s--){var u=r[i[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=a(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}})}function h(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=a(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function m(e,t){var r=h(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}f$e(c,"selectBetweenBrackets"),t.selectScope=function(e){c(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!c(t))return e.Pass},f$e(p,"puncType"),t.goToBracket=function(t){t.extendSelectionsBy(function(r){var i=t.scanForBracket(r.head,1,p(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,p(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head})},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;so?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation(function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()})},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0==s.to().ch&&!s.empty()&&l--,l=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()})},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var c=new n(a.line,e.findColumn(s,l-i,i));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}})},t.delLineRight=function(e){e.operation(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()})},t.upcaseAtCursor=function(e){f(e,function(e){return e.toUpperCase()})},t.downcaseAtCursor=function(e){f(e,function(e){return e.toLowerCase()})},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},f$e(h,"getTarget"),f$e(m,"findAndGoTo"),t.findUnder=function(e){m(e,!0)},t.findUnderPrevious=function(e){m(e,!1)},t.findAllUnder=function(e){var t=h(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var g=e.keyMap;g.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(g.macSublime),g.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(g.pcSublime);var y=g.default==g.macDefault;g.sublime=y?g.macSublime:g.pcSublime}(WUe(),Wze(),pze());var m$e={};const g$e=h$e({__proto__:null,default:qUe(m$e)},[m$e]),y$e=Object.freeze(Object.defineProperty({__proto__:null,s:g$e},Symbol.toStringTag,{value:"Module"}));var v$e=Object.defineProperty,b$e=(e,t)=>v$e(e,"name",{value:t,configurable:!0});function x$e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}b$e(x$e,"_mergeNamespaces");var E$e;(E$e=WUe()).defineMode("javascript",function(e,t){var n,r,i=e.indentUnit,o=t.statementIndent,a=t.jsonld,s=t.json||a,l=!1!==t.trackScope,u=t.typescript,c=t.wordCharacters||/[\w$\xa1-\uffff]/,p=function(){function e(e){return{type:e,style:"keyword"}}b$e(e,"kw");var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,f=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function h(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function m(e,t,i){return n=e,r=i,t}function g(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=y(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==n&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return m(n);if("="==n&&e.eat(">"))return m("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==n)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):rt(e,t,1)?(h(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==n)return t.tokenize=b,b(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==n&&e.eatWhile(c))return m("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(d.test(n))return(">"!=n||!t.lexical||">"!=t.lexical.type)&&(e.eat("=")?("!"==n||"="==n)&&e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?m("."):m("operator","operator",e.current());if(c.test(n)){e.eatWhile(c);var r=e.current();if("."!=t.lastType){if(p.propertyIsEnumerable(r)){var i=p[r];return m(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",r)}return m("variable","variable",r)}}function y(e){return function(t,n){var r,i=!1;if(a&&"@"==t.peek()&&t.match(f))return n.tokenize=g,m("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=g),m("string","string")}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return m("comment","comment")}function b(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}b$e(h,"readRegexp"),b$e(m,"ret"),b$e(g,"tokenBase"),b$e(y,"tokenString"),b$e(v,"tokenComment"),b$e(b,"tokenQuasi");var x="([{}])";function E(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=x.indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(c.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}b$e(E,"findFatArrow");var D={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function T(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function w(e,t){if(!l)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function C(e,t,n,r,i){var o=e.cc;for(S.state=e,S.stream=i,S.marked=null,S.cc=o,S.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():s?H:z)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return S.marked?S.marked:"variable"==n&&w(e,r)?"variable-2":t}}b$e(T,"JSLexical"),b$e(w,"inScope"),b$e(C,"parseJS");var S={state:null,marked:null,cc:null};function k(){for(var e=arguments.length-1;e>=0;e--)S.cc.push(arguments[e])}function A(){return k.apply(null,arguments),!0}function N(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function F(e){var n=S.state;if(S.marked="def",l){if(n.context)if("var"==n.lexical.info&&n.context&&n.context.block){var r=P(e,n.context);if(null!=r)return void(n.context=r)}else if(!N(e,n.localVars))return void(n.localVars=new I(e,n.localVars));t.globalVars&&!N(e,n.globalVars)&&(n.globalVars=new I(e,n.globalVars))}}function P(e,t){if(t){if(t.block){var n=P(e,t.prev);return n?n==t.prev?t:new O(n,t.vars,!0):null}return N(e,t.vars)?t:new O(t.prev,new I(e,t.vars),!1)}return null}function _(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function O(e,t,n){this.prev=e,this.vars=t,this.block=n}function I(e,t){this.name=e,this.next=t}b$e(k,"pass"),b$e(A,"cont"),b$e(N,"inList"),b$e(F,"register"),b$e(P,"registerVarScoped"),b$e(_,"isModifier"),b$e(O,"Context"),b$e(I,"Var");var L=new I("this",new I("arguments",null));function M(){S.state.context=new O(S.state.context,S.state.localVars,!1),S.state.localVars=L}function j(){S.state.context=new O(S.state.context,S.state.localVars,!0),S.state.localVars=null}function R(){S.state.localVars=S.state.context.vars,S.state.context=S.state.context.prev}function B(e,t){var n=b$e(function(){var n=S.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new T(r,S.stream.column(),e,null,n.lexical,t)},"result");return n.lex=!0,n}function V(){var e=S.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function U(e){function t(n){return n==e?A():";"==e||"}"==n||")"==n||"]"==n?k():A(t)}return b$e(t,"exp"),t}function z(e,t){return"var"==e?A(B("vardef",t),ke,U(";"),V):"keyword a"==e?A(B("form"),G,z,V):"keyword b"==e?A(B("form"),z,V):"keyword d"==e?S.stream.match(/^\s*$/,!1)?A():A(B("stat"),W,U(";"),V):"debugger"==e?A(U(";")):"{"==e?A(B("}"),j,pe,V,R):";"==e?A():"if"==e?("else"==S.state.lexical.info&&S.state.cc[S.state.cc.length-1]==V&&S.state.cc.pop()(),A(B("form"),G,z,V,Oe)):"function"==e?A(je):"for"==e?A(B("form"),j,Ie,z,R,V):"class"==e||u&&"interface"==t?(S.marked="keyword",A(B("form","class"==e?e:t),ze,V)):"variable"==e?u&&"declare"==t?(S.marked="keyword",A(z)):u&&("module"==t||"enum"==t||"type"==t)&&S.stream.match(/^\s*\w/,!1)?(S.marked="keyword","enum"==t?A(et):"type"==t?A(Be,U("operator"),ge,U(";")):A(B("form"),Ae,U("{"),B("}"),pe,V,V)):u&&"namespace"==t?(S.marked="keyword",A(B("form"),H,z,V)):u&&"abstract"==t?(S.marked="keyword",A(z)):A(B("stat"),ie):"switch"==e?A(B("form"),G,U("{"),B("}","switch"),j,pe,V,V,R):"case"==e?A(H,U(":")):"default"==e?A(U(":")):"catch"==e?A(B("form"),M,$,z,V,R):"export"==e?A(B("stat"),Ge,V):"import"==e?A(B("stat"),We,V):"async"==e?A(z):"@"==t?A(H,z):k(B("stat"),H,U(";"),V)}function $(e){if("("==e)return A(Ve,U(")"))}function H(e,t){return K(e,t,!1)}function q(e,t){return K(e,t,!0)}function G(e){return"("!=e?k():A(B(")"),W,U(")"),V)}function K(e,t,n){if(S.state.fatArrowAt==S.stream.start){var r=n?ee:Z;if("("==e)return A(M,B(")"),ue(Ve,")"),V,U("=>"),r,R);if("variable"==e)return k(M,Ae,U("=>"),r,R)}var i=n?Y:Q;return D.hasOwnProperty(e)?A(i):"function"==e?A(je,i):"class"==e||u&&"interface"==t?(S.marked="keyword",A(B("form"),Ue,V)):"keyword c"==e||"async"==e?A(n?q:H):"("==e?A(B(")"),W,U(")"),V,i):"operator"==e||"spread"==e?A(n?q:H):"["==e?A(B("]"),Ze,V,i):"{"==e?ce(ae,"}",null,i):"quasi"==e?k(X,i):"new"==e?A(te(n)):A()}function W(e){return e.match(/[;\}\)\],]/)?k():k(H)}function Q(e,t){return","==e?A(W):Y(e,t,!1)}function Y(e,t,n){var r=0==n?Q:Y,i=0==n?H:q;if("=>"==e)return A(M,n?ee:Z,R);if("operator"==e)return/\+\+|--/.test(t)||u&&"!"==t?A(r):u&&"<"==t&&S.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?A(B(">"),ue(ge,">"),V,r):"?"==t?A(H,U(":"),i):A(i);if("quasi"==e)return k(X,r);if(";"!=e){if("("==e)return ce(q,")","call",r);if("."==e)return A(oe,r);if("["==e)return A(B("]"),W,U("]"),V,r);if(u&&"as"==t)return S.marked="keyword",A(ge,r);if("regexp"==e)return S.state.lastType=S.marked="operator",S.stream.backUp(S.stream.pos-S.stream.start-1),A(i)}}function X(e,t){return"quasi"!=e?k():"${"!=t.slice(t.length-2)?A(X):A(W,J)}function J(e){if("}"==e)return S.marked="string-2",S.state.tokenize=b,A(X)}function Z(e){return E(S.stream,S.state),k("{"==e?z:H)}function ee(e){return E(S.stream,S.state),k("{"==e?z:q)}function te(e){return function(t){return"."==t?A(e?re:ne):"variable"==t&&u?A(we,e?Y:Q):k(e?q:H)}}function ne(e,t){if("target"==t)return S.marked="keyword",A(Q)}function re(e,t){if("target"==t)return S.marked="keyword",A(Y)}function ie(e){return":"==e?A(V,z):k(Q,U(";"),V)}function oe(e){if("variable"==e)return S.marked="property",A()}function ae(e,t){return"async"==e?(S.marked="property",A(ae)):"variable"==e||"keyword"==S.style?(S.marked="property","get"==t||"set"==t?A(se):(u&&S.state.fatArrowAt==S.stream.start&&(n=S.stream.match(/^\s*:\s*/,!1))&&(S.state.fatArrowAt=S.stream.pos+n[0].length),A(le))):"number"==e||"string"==e?(S.marked=a?"property":S.style+" property",A(le)):"jsonld-keyword"==e?A(le):u&&_(t)?(S.marked="keyword",A(ae)):"["==e?A(H,de,U("]"),le):"spread"==e?A(q,le):"*"==t?(S.marked="keyword",A(ae)):":"==e?k(le):void 0;var n}function se(e){return"variable"!=e?k(le):(S.marked="property",A(je))}function le(e){return":"==e?A(q):"("==e?k(je):void 0}function ue(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=S.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),A(function(n,r){return n==t||r==t?k():k(e)},r)}return i==t||o==t?A():n&&n.indexOf(";")>-1?k(e):A(U(t))}return b$e(r,"proceed"),function(n,i){return n==t||i==t?A():k(e,r)}}function ce(e,t,n){for(var r=3;r"),ge):"quasi"==e?k(xe,Te):void 0}function ye(e){if("=>"==e)return A(ge)}function ve(e){return e.match(/[\}\)\]]/)?A():","==e||";"==e?A(ve):k(be,ve)}function be(e,t){return"variable"==e||"keyword"==S.style?(S.marked="property",A(be)):"?"==t||"number"==e||"string"==e?A(be):":"==e?A(ge):"["==e?A(U("variable"),fe,U("]"),be):"("==e?k(Re,be):e.match(/[;\}\)\],]/)?void 0:A()}function xe(e,t){return"quasi"!=e?k():"${"!=t.slice(t.length-2)?A(xe):A(ge,Ee)}function Ee(e){if("}"==e)return S.marked="string-2",S.state.tokenize=b,A(xe)}function De(e,t){return"variable"==e&&S.stream.match(/^\s*[?:]/,!1)||"?"==t?A(De):":"==e?A(ge):"spread"==e?A(De):k(ge)}function Te(e,t){return"<"==t?A(B(">"),ue(ge,">"),V,Te):"|"==t||"."==e||"&"==t?A(ge):"["==e?A(ge,U("]"),Te):"extends"==t||"implements"==t?(S.marked="keyword",A(ge)):"?"==t?A(ge,U(":"),ge):void 0}function we(e,t){if("<"==t)return A(B(">"),ue(ge,">"),V,Te)}function Ce(){return k(ge,Se)}function Se(e,t){if("="==t)return A(ge)}function ke(e,t){return"enum"==t?(S.marked="keyword",A(et)):k(Ae,de,Pe,_e)}function Ae(e,t){return u&&_(t)?(S.marked="keyword",A(Ae)):"variable"==e?(F(t),A()):"spread"==e?A(Ae):"["==e?ce(Fe,"]"):"{"==e?ce(Ne,"}"):void 0}function Ne(e,t){return"variable"!=e||S.stream.match(/^\s*:/,!1)?("variable"==e&&(S.marked="property"),"spread"==e?A(Ae):"}"==e?k():"["==e?A(H,U("]"),U(":"),Ne):A(U(":"),Ae,Pe)):(F(t),A(Pe))}function Fe(){return k(Ae,Pe)}function Pe(e,t){if("="==t)return A(q)}function _e(e){if(","==e)return A(ke)}function Oe(e,t){if("keyword b"==e&&"else"==t)return A(B("form","else"),z,V)}function Ie(e,t){return"await"==t?A(Ie):"("==e?A(B(")"),Le,V):void 0}function Le(e){return"var"==e?A(ke,Me):"variable"==e?A(Me):k(Me)}function Me(e,t){return")"==e?A():";"==e?A(Me):"in"==t||"of"==t?(S.marked="keyword",A(H,Me)):k(H,Me)}function je(e,t){return"*"==t?(S.marked="keyword",A(je)):"variable"==e?(F(t),A(je)):"("==e?A(M,B(")"),ue(Ve,")"),V,he,z,R):u&&"<"==t?A(B(">"),ue(Ce,">"),V,je):void 0}function Re(e,t){return"*"==t?(S.marked="keyword",A(Re)):"variable"==e?(F(t),A(Re)):"("==e?A(M,B(")"),ue(Ve,")"),V,he,R):u&&"<"==t?A(B(">"),ue(Ce,">"),V,Re):void 0}function Be(e,t){return"keyword"==e||"variable"==e?(S.marked="type",A(Be)):"<"==t?A(B(">"),ue(Ce,">"),V):void 0}function Ve(e,t){return"@"==t&&A(H,Ve),"spread"==e?A(Ve):u&&_(t)?(S.marked="keyword",A(Ve)):u&&"this"==e?A(de,Pe):k(Ae,de,Pe)}function Ue(e,t){return"variable"==e?ze(e,t):$e(e,t)}function ze(e,t){if("variable"==e)return F(t),A($e)}function $e(e,t){return"<"==t?A(B(">"),ue(Ce,">"),V,$e):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(S.marked="keyword"),A(u?ge:H,$e)):"{"==e?A(B("}"),He,V):void 0}function He(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&_(t))&&S.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(S.marked="keyword",A(He)):"variable"==e||"keyword"==S.style?(S.marked="property",A(qe,He)):"number"==e||"string"==e?A(qe,He):"["==e?A(H,de,U("]"),qe,He):"*"==t?(S.marked="keyword",A(He)):u&&"("==e?k(Re,He):";"==e||","==e?A(He):"}"==e?A():"@"==t?A(H,He):void 0}function qe(e,t){if("!"==t||"?"==t)return A(qe);if(":"==e)return A(ge,Pe);if("="==t)return A(q);var n=S.state.lexical.prev;return k(n&&"interface"==n.info?Re:je)}function Ge(e,t){return"*"==t?(S.marked="keyword",A(Je,U(";"))):"default"==t?(S.marked="keyword",A(H,U(";"))):"{"==e?A(ue(Ke,"}"),Je,U(";")):k(z)}function Ke(e,t){return"as"==t?(S.marked="keyword",A(U("variable"))):"variable"==e?k(q,Ke):void 0}function We(e){return"string"==e?A():"("==e?k(H):"."==e?k(Q):k(Qe,Ye,Je)}function Qe(e,t){return"{"==e?ce(Qe,"}"):("variable"==e&&F(t),"*"==t&&(S.marked="keyword"),A(Xe))}function Ye(e){if(","==e)return A(Qe,Ye)}function Xe(e,t){if("as"==t)return S.marked="keyword",A(Qe)}function Je(e,t){if("from"==t)return S.marked="keyword",A(H)}function Ze(e){return"]"==e?A():k(ue(q,"]"))}function et(){return k(B("form"),Ae,U("{"),B("}"),ue(tt,"}"),V,V)}function tt(){return k(Ae,Pe)}function nt(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function rt(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return b$e(M,"pushcontext"),b$e(j,"pushblockcontext"),M.lex=j.lex=!0,b$e(R,"popcontext"),R.lex=!0,b$e(B,"pushlex"),b$e(V,"poplex"),V.lex=!0,b$e(U,"expect"),b$e(z,"statement"),b$e($,"maybeCatchBinding"),b$e(H,"expression"),b$e(q,"expressionNoComma"),b$e(G,"parenExpr"),b$e(K,"expressionInner"),b$e(W,"maybeexpression"),b$e(Q,"maybeoperatorComma"),b$e(Y,"maybeoperatorNoComma"),b$e(X,"quasi"),b$e(J,"continueQuasi"),b$e(Z,"arrowBody"),b$e(ee,"arrowBodyNoComma"),b$e(te,"maybeTarget"),b$e(ne,"target"),b$e(re,"targetNoComma"),b$e(ie,"maybelabel"),b$e(oe,"property"),b$e(ae,"objprop"),b$e(se,"getterSetter"),b$e(le,"afterprop"),b$e(ue,"commasep"),b$e(ce,"contCommasep"),b$e(pe,"block"),b$e(de,"maybetype"),b$e(fe,"maybetypeOrIn"),b$e(he,"mayberettype"),b$e(me,"isKW"),b$e(ge,"typeexpr"),b$e(ye,"maybeReturnType"),b$e(ve,"typeprops"),b$e(be,"typeprop"),b$e(xe,"quasiType"),b$e(Ee,"continueQuasiType"),b$e(De,"typearg"),b$e(Te,"afterType"),b$e(we,"maybeTypeArgs"),b$e(Ce,"typeparam"),b$e(Se,"maybeTypeDefault"),b$e(ke,"vardef"),b$e(Ae,"pattern"),b$e(Ne,"proppattern"),b$e(Fe,"eltpattern"),b$e(Pe,"maybeAssign"),b$e(_e,"vardefCont"),b$e(Oe,"maybeelse"),b$e(Ie,"forspec"),b$e(Le,"forspec1"),b$e(Me,"forspec2"),b$e(je,"functiondef"),b$e(Re,"functiondecl"),b$e(Be,"typename"),b$e(Ve,"funarg"),b$e(Ue,"classExpression"),b$e(ze,"className"),b$e($e,"classNameAfter"),b$e(He,"classBody"),b$e(qe,"classfield"),b$e(Ge,"afterExport"),b$e(Ke,"exportField"),b$e(We,"afterImport"),b$e(Qe,"importSpec"),b$e(Ye,"maybeMoreImports"),b$e(Xe,"maybeAs"),b$e(Je,"maybeFrom"),b$e(Ze,"arrayLiteral"),b$e(et,"enumdef"),b$e(tt,"enummember"),b$e(nt,"isContinuedStatement"),b$e(rt,"expressionAllowed"),{startState:function(e){var n={tokenize:g,lastType:"sof",cc:[],lexical:new T((e||0)-i,0,"block",!1),localVars:t.localVars,context:t.localVars&&new O(null,null,!1),indented:e||0};return t.globalVars&&"object"==typeof t.globalVars&&(n.globalVars=t.globalVars),n},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),E(e,t)),t.tokenize!=v&&e.eatSpace())return null;var i=t.tokenize(e,t);return"comment"==n?i:(t.lastType="operator"!=n||"++"!=r&&"--"!=r?n:"incdec",C(t,i,n,r,e))},indent:function(e,n){if(e.tokenize==v||e.tokenize==b)return E$e.Pass;if(e.tokenize!=g)return 0;var r,a=n&&n.charAt(0),s=e.lexical;if(!/^\s*else\b/.test(n))for(var l=e.cc.length-1;l>=0;--l){var u=e.cc[l];if(u==V)s=s.prev;else if(u!=Oe&&u!=R)break}for(;("stat"==s.type||"form"==s.type)&&("}"==a||(r=e.cc[e.cc.length-1])&&(r==Q||r==Y)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;o&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var c=s.type,p=a==c;return"vardef"==c?s.indented+("operator"==e.lastType||","==e.lastType?s.info.length+1:0):"form"==c&&"{"==a?s.indented:"form"==c?s.indented+i:"stat"==c?s.indented+(nt(e,n)?o||i:0):"switch"!=s.info||p||0==t.doubleIndentSwitch?s.align?s.column+(p?0:1):s.indented+(p?0:i):s.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:a,jsonMode:s,expressionAllowed:rt,skipExpression:function(e){C(e,"atom","atom","true",new E$e.StringStream("",2,null))}}}),E$e.registerHelper("wordChars","javascript",/[\w$]/),E$e.defineMIME("text/javascript","javascript"),E$e.defineMIME("text/ecmascript","javascript"),E$e.defineMIME("application/javascript","javascript"),E$e.defineMIME("application/x-javascript","javascript"),E$e.defineMIME("application/ecmascript","javascript"),E$e.defineMIME("application/json",{name:"javascript",json:!0}),E$e.defineMIME("application/x-json",{name:"javascript",json:!0}),E$e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),E$e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),E$e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),E$e.defineMIME("application/typescript",{name:"javascript",typescript:!0});var D$e={};const T$e=x$e({__proto__:null,default:qUe(D$e)},[D$e]),w$e=Object.freeze(Object.defineProperty({__proto__:null,j:T$e},Symbol.toStringTag,{value:"Module"}));var C$e=Object.defineProperty,S$e=(e,t)=>C$e(e,"name",{value:t,configurable:!0});function k$e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}S$e(k$e,"_mergeNamespaces");!function(e){var t={},n=/[^\s\u00a0]/,r=e.Pos,i=e.cmpPos;function o(e){var t=e.search(n);return-1==t?0:t}function a(e,t,n){return/\bstring\b/.test(e.getTokenTypeAt(r(t.line,0)))&&!/^[\'\"\`]/.test(n)}function s(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}S$e(o,"firstNonWS"),e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",function(e){e||(e=t);for(var n=this,i=1/0,o=this.listSelections(),a=null,s=o.length-1;s>=0;s--){var l=o[s].from(),u=o[s].to();l.line>=i||(u.line>=i&&(u=r(i,0)),i=l.line,null==a?n.uncomment(l,u,e)?a="un":(n.lineComment(l,u,e),a="line"):"un"==a?n.uncomment(l,u,e):n.lineComment(l,u,e))}}),S$e(a,"probablyInsideString"),S$e(s,"getMode"),e.defineExtension("lineComment",function(e,i,l){l||(l=t);var u=this,c=s(u,e),p=u.getLine(e.line);if(null!=p&&!a(u,e,p)){var d=l.lineComment||c.lineComment;if(!d)return void((l.blockCommentStart||c.blockCommentStart)&&(l.fullLines=!0,u.blockComment(e,i,l)));var f=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,u.lastLine()+1),h=null==l.padding?" ":l.padding,m=l.commentBlankLines||e.line==i.line;u.operation(function(){if(l.indent){for(var t=null,i=e.line;ia.length)&&(t=a)}for(i=e.line;id||l.operation(function(){if(0!=a.fullLines){var t=n.test(l.getLine(d));l.replaceRange(f+p,r(d)),l.replaceRange(c+f,r(e.line,0));var s=a.blockCommentLead||u.blockCommentLead;if(null!=s)for(var h=e.line+1;h<=d;++h)(h!=d||t)&&l.replaceRange(s+f,r(h,0))}else{var m=0==i(l.getCursor("to"),o),g=!l.somethingSelected();l.replaceRange(p,o),m&&l.setSelection(g?o:l.getCursor("from"),o),l.replaceRange(c,e)}})}}else(a.lineComment||u.lineComment)&&0!=a.fullLines&&l.lineComment(e,o,a)}),e.defineExtension("uncomment",function(e,i,o){o||(o=t);var a,l=this,u=s(l,e),c=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,l.lastLine()),p=Math.min(e.line,c),d=o.lineComment||u.lineComment,f=[],h=null==o.padding?" ":o.padding;e:if(d){for(var m=p;m<=c;++m){var g=l.getLine(m),y=g.indexOf(d);if(y>-1&&!/comment/.test(l.getTokenTypeAt(r(m,y+1)))&&(y=-1),-1==y&&n.test(g)||y>-1&&n.test(g.slice(0,y)))break e;f.push(g)}if(l.operation(function(){for(var e=p;e<=c;++e){var t=f[e-p],n=t.indexOf(d),i=n+d.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),a=!0,l.replaceRange("",r(e,n),r(e,i)))}}),a)return!0}var v=o.blockCommentStart||u.blockCommentStart,b=o.blockCommentEnd||u.blockCommentEnd;if(!v||!b)return!1;var x=o.blockCommentLead||u.blockCommentLead,E=l.getLine(p),D=E.indexOf(v);if(-1==D)return!1;var T=c==p?E:l.getLine(c),w=T.indexOf(b,c==p?D+v.length:0),C=r(p,D+1),S=r(c,w+1);if(-1==w||!/comment/.test(l.getTokenTypeAt(C))||!/comment/.test(l.getTokenTypeAt(S))||l.getRange(C,S,"\n").indexOf(b)>-1)return!1;var k=E.lastIndexOf(v,e.ch),A=-1==k?-1:E.slice(0,e.ch).indexOf(b,k+v.length);if(-1!=k&&-1!=A&&A+b.length!=e.ch)return!1;A=T.indexOf(b,i.ch);var N=T.slice(i.ch).lastIndexOf(v,A-i.ch);return k=-1==A||-1==N?-1:i.ch+N,(-1==A||-1==k||k==i.ch)&&(l.operation(function(){l.replaceRange("",r(c,w-(h&&T.slice(w-h.length,w)==h?h.length:0)),r(c,w+b.length));var e=D+v.length;if(h&&E.slice(e,e+h.length)==h&&(e+=h.length),l.replaceRange("",r(p,D),r(p,e)),x)for(var t=p+1;t<=c;++t){var i=l.getLine(t),o=i.indexOf(x);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+x.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),l.replaceRange("",r(t,o),r(t,a))}}}),!0)})}(WUe());var A$e={};const N$e=k$e({__proto__:null,default:qUe(A$e)},[A$e]),F$e=Object.freeze(Object.defineProperty({__proto__:null,c:N$e},Symbol.toStringTag,{value:"Module"}));var P$e=Object.defineProperty,_$e=(e,t)=>P$e(e,"name",{value:t,configurable:!0});function O$e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}_$e(O$e,"_mergeNamespaces");!function(e){function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new n)}function i(e){return"string"==typeof e&&e==e.toLowerCase()}function o(e,t,n){return e.getSearchCursor(t,n,{caseFold:i(t),multiline:!0})}function a(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){h(e)},onKeyDown:i,bottom:e.options.search.bottom})}function s(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function l(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}function u(e){return e.replace(/\\([nrt\\])/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e})}function c(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch{}else e=u(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function p(e,n,r){n.queryText=r,n.query=c(r),e.removeOverlay(n.overlay,i(n.query)),n.overlay=t(n.query,i(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,i(n.query)))}function d(t,n,i,o){var l=r(t);if(l.query)return f(t,n);var u=t.getSelection()||l.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),i&&t.openDialog){var c=null,d=_$e(function(n,r){e.e_stop(r),n&&(n!=l.queryText&&(p(t,l,n),l.posFrom=l.posTo=t.getCursor()),c&&(c.style.opacity=1),f(t,r.shiftKey,function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((c=r).style.opacity=.4)}))},"searchNext");a(t,g(t),u,d,function(n,i){var o=e.keyName(n),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(n),p(t,r(t),i),t.execCommand(s)):("find"==s||"findPersistent"==s)&&(e.e_stop(n),d(i,n))}),o&&u&&(p(t,l,u),f(t,n))}else s(t,g(t),"Search for:",u,function(e){e&&!l.query&&t.operation(function(){p(t,l,e),l.posFrom=l.posTo=t.getCursor(),f(t,n)})})}function f(t,n,i){t.operation(function(){var a=r(t),s=o(t,a.query,n?a.posFrom:a.posTo);!s.find(n)&&!(s=o(t,a.query,n?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(n)||(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),i&&i(s.from(),s.to()))})}function h(e){e.operation(function(){var t=r(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function m(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i{const{schema:n,externalFragments:r,autocompleteOptions:i}=t;if(!n)return;const o=e.getCursor(),a=e.getTokenAt(o),s=null!==a.type&&/"|\w/.test(a.string[0])?a.start:a.end,l=new tge(o.line,s),u={list:qme(n,e.getValue(),l,a,r,i).map(e=>{var t;return{text:null!==(t=null==e?void 0:e.rawInsert)&&void 0!==t?t:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}}),from:{line:o.line,ch:s},to:{line:o.line,ch:a.end}};return null!=u&&u.list&&u.list.length>0&&(u.from=JUe.Pos(u.from.line,u.from.ch),u.to=JUe.Pos(u.to.line,u.to.ch),JUe.signal(e,"hasCompletion",e,u,a)),u});const j$e=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),R$e=["error","warning","information","hint"],B$e={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};JUe.registerHelper("lint","graphql",(e,t)=>{const{schema:n,validationRules:r,externalFragments:i}=t;return sge(e,n,r,0,i).map(e=>({message:e.message,severity:e.severity?R$e[e.severity-1]:R$e[0],type:e.source?B$e[e.source]:void 0,from:JUe.Pos(e.range.start.line,e.range.start.character),to:JUe.Pos(e.range.end.line,e.range.end.character)}))});const V$e=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var U$e=Object.defineProperty;function z$e(e,t){const n=[];let r=e;for(;null!=r&&r.kind;)n.push(r),r=r.prevState;for(let i=n.length-1;i>=0;i--)t(n[i])}((e,t)=>{U$e(e,"name",{value:t,configurable:!0})})(z$e,"forEachState");var $$e=Object.defineProperty,H$e=(e,t)=>$$e(e,"name",{value:t,configurable:!0});function q$e(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return z$e(t,t=>{var r,i;switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?G$e(e,n.parentType,t.name):null,n.type=null===(r=n.fieldDef)||void 0===r?void 0:r.type;break;case"SelectionSet":n.parentType=n.type?sd.getNamedType(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":const o=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&G$e(e,n.parentType,t.prevState.name):null:null;n.argDefs=o?o.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;ee.value===t.name):null;break;case"ListValue":const s=n.inputType?sd.getNullableType(n.inputType):null;n.inputType=s instanceof sd.GraphQLList?s.ofType:null;break;case"ObjectValue":const l=n.inputType?sd.getNamedType(n.inputType):null;n.objectFieldDefs=l instanceof sd.GraphQLInputObjectType?l.getFields():null;break;case"ObjectField":const u=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==u?void 0:u.type,n.fieldDef=u;break;case"NamedType":n.type=t.name?e.getType(t.name):null}}),n}function G$e(e,t,n){return n===sd.SchemaMetaFieldDef.name&&e.getQueryType()===t?sd.SchemaMetaFieldDef:n===sd.TypeMetaFieldDef.name&&e.getQueryType()===t?sd.TypeMetaFieldDef:n===sd.TypeNameMetaFieldDef.name&&sd.isCompositeType(t)?sd.TypeNameMetaFieldDef:t&&t.getFields?t.getFields()[n]:void 0}function K$e(e,t){for(let n=0;neHe(e,"name",{value:t,configurable:!0});function nHe(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}function rHe(e){const{options:t}=e.state.info;return(null==t?void 0:t.hoverTime)||500}function iHe(e,t){const n=e.state.info,r=t.target||t.srcElement;if(!(r instanceof HTMLElement)||"SPAN"!==r.nodeName||void 0!==n.hoverTimeout)return;const i=r.getBoundingClientRect(),o=tHe(function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(s,l)},"onMouseMove"),a=tHe(function(){JUe.off(document,"mousemove",o),JUe.off(e.getWrapperElement(),"mouseout",a),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},"onMouseOut"),s=tHe(function(){JUe.off(document,"mousemove",o),JUe.off(e.getWrapperElement(),"mouseout",a),n.hoverTimeout=void 0,oHe(e,i)},"onHover"),l=rHe(e);n.hoverTimeout=setTimeout(s,l),JUe.on(document,"mousemove",o),JUe.on(e.getWrapperElement(),"mouseout",a)}function oHe(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2},"window"),r=e.state.info,{options:i}=r,o=i.render||e.getHelper(n,"info");if(o){const r=e.getTokenAt(n,!0);if(r){const a=o(r,i,e,n);a&&aHe(e,t,a)}}}function aHe(e,t,n){const r=document.createElement("div");r.className="CodeMirror-info",r.append(n),document.body.append(r);const i=r.getBoundingClientRect(),o=window.getComputedStyle(r),a=i.right-i.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),s=i.bottom-i.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom);let l=t.bottom;s>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(l=t.top-s),l<0&&(l=t.bottom);let u,c=Math.max(0,window.innerWidth-a-15);c>t.left&&(c=t.left),r.style.opacity="1",r.style.top=l+"px",r.style.left=c+"px";const p=tHe(function(){clearTimeout(u)},"onMouseOverPopup"),d=tHe(function(){clearTimeout(u),u=setTimeout(f,200)},"onMouseOut"),f=tHe(function(){JUe.off(r,"mouseover",p),JUe.off(r,"mouseout",d),JUe.off(e.getWrapperElement(),"mouseout",d),r.style.opacity?(r.style.opacity="0",setTimeout(()=>{r.parentNode&&r.remove()},600)):r.parentNode&&r.remove()},"hidePopup");JUe.on(r,"mouseover",p),JUe.on(r,"mouseout",d),JUe.on(e.getWrapperElement(),"mouseout",d)}JUe.defineOption("info",!1,(e,t,n)=>{if(n&&n!==JUe.Init){const t=e.state.info.onMouseOver;JUe.off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const n=e.state.info=nHe(t);n.onMouseOver=iHe.bind(null,e),JUe.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}}),tHe(nHe,"createState"),tHe(rHe,"getHoverTime"),tHe(iHe,"onMouseOver"),tHe(oHe,"onMouseHover"),tHe(aHe,"showPopup");const sHe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var lHe=Object.defineProperty,uHe=(e,t)=>lHe(e,"name",{value:t,configurable:!0});function cHe(e,t,n){pHe(e,t,n),mHe(e,t,n,t.type)}function pHe(e,t,n){var r;bHe(e,(null===(r=t.fieldDef)||void 0===r?void 0:r.name)||"","field-name",n,W$e(t))}function dHe(e,t,n){var r;bHe(e,"@"+((null===(r=t.directiveDef)||void 0===r?void 0:r.name)||""),"directive-name",n,Q$e(t))}function fHe(e,t,n){var r;bHe(e,(null===(r=t.argDef)||void 0===r?void 0:r.name)||"","arg-name",n,Y$e(t)),mHe(e,t,n,t.inputType)}function hHe(e,t,n){var r;const i=(null===(r=t.enumValue)||void 0===r?void 0:r.name)||"";gHe(e,t,n,t.inputType),bHe(e,"."),bHe(e,i,"enum-value",n,X$e(t))}function mHe(e,t,n,r){const i=document.createElement("span");i.className="type-name-pill",r instanceof sd.GraphQLNonNull?(gHe(i,t,n,r.ofType),bHe(i,"!")):r instanceof sd.GraphQLList?(bHe(i,"["),gHe(i,t,n,r.ofType),bHe(i,"]")):bHe(i,(null==r?void 0:r.name)||"","type-name",n,J$e(t,r)),e.append(i)}function gHe(e,t,n,r){r instanceof sd.GraphQLNonNull?(gHe(e,t,n,r.ofType),bHe(e,"!")):r instanceof sd.GraphQLList?(bHe(e,"["),gHe(e,t,n,r.ofType),bHe(e,"]")):bHe(e,(null==r?void 0:r.name)||"","type-name",n,J$e(t,r))}function yHe(e,t,n){const{description:r}=n;if(r){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(r):n.append(document.createTextNode(r)),e.append(n)}vHe(e,t,n)}function vHe(e,t,n){const r=n.deprecationReason;if(r){const n=document.createElement("div");n.className="info-deprecation",e.append(n);const i=document.createElement("span");i.className="info-deprecation-label",i.append(document.createTextNode("Deprecated")),n.append(i);const o=document.createElement("div");o.className="info-deprecation-reason",t.renderDescription?o.innerHTML=t.renderDescription(r):o.append(document.createTextNode(r)),n.append(o)}}function bHe(e,t,n="",r={onClick:null},i=null){if(n){const{onClick:o}=r;let a;o?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",e=>{e.preventDefault(),o(i,e)})):a=document.createElement("span"),a.className=n,a.append(document.createTextNode(t)),e.append(a)}else e.append(document.createTextNode(t))}JUe.registerHelper("info","graphql",(e,t)=>{if(!t.schema||!e.state)return;const{kind:n,step:r}=e.state,i=q$e(t.schema,e.state);if("Field"===n&&0===r&&i.fieldDef||"AliasedField"===n&&2===r&&i.fieldDef||"ObjectField"===n&&0===r&&i.fieldDef){const e=document.createElement("div");e.className="CodeMirror-info-header",cHe(e,i,t);const n=document.createElement("div");return n.append(e),yHe(n,t,i.fieldDef),n}if("Directive"===n&&1===r&&i.directiveDef){const e=document.createElement("div");e.className="CodeMirror-info-header",dHe(e,i,t);const n=document.createElement("div");return n.append(e),yHe(n,t,i.directiveDef),n}if("Argument"===n&&0===r&&i.argDef){const e=document.createElement("div");e.className="CodeMirror-info-header",fHe(e,i,t);const n=document.createElement("div");return n.append(e),yHe(n,t,i.argDef),n}if("EnumValue"===n&&i.enumValue&&i.enumValue.description){const e=document.createElement("div");e.className="CodeMirror-info-header",hHe(e,i,t);const n=document.createElement("div");return n.append(e),yHe(n,t,i.enumValue),n}if("NamedType"===n&&i.type&&i.type.description){const e=document.createElement("div");e.className="CodeMirror-info-header",gHe(e,i,t,i.type);const n=document.createElement("div");return n.append(e),yHe(n,t,i.type),n}}),uHe(cHe,"renderField"),uHe(pHe,"renderQualifiedField"),uHe(dHe,"renderDirective"),uHe(fHe,"renderArg"),uHe(hHe,"renderEnumValue"),uHe(mHe,"renderTypeAnnotation"),uHe(gHe,"renderType"),uHe(yHe,"renderDescription"),uHe(vHe,"renderDeprecation"),uHe(bHe,"text");const xHe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var EHe=Object.defineProperty,DHe=(e,t)=>EHe(e,"name",{value:t,configurable:!0});function THe(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement)||"SPAN"!==(null==n?void 0:n.nodeName))return;const r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&AHe(e)}function wHe(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&NHe(e):e.state.jump.cursor=null}function CHe(e,t){if(e.state.jump.isHoldingModifier||!kHe(t.key))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&AHe(e);const n=DHe(o=>{o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&NHe(e),JUe.off(document,"keyup",n),JUe.off(document,"click",r),e.off("mousedown",i))},"onKeyUp"),r=DHe(t=>{const{destination:n,options:r}=e.state.jump;n&&r.onClick(n,t)},"onClick"),i=DHe((t,n)=>{e.state.jump.destination&&(n.codemirrorIgnore=!0)},"onMouseDown");JUe.on(document,"keyup",n),JUe.on(document,"click",r),e.on("mousedown",i)}JUe.defineOption("jump",!1,(e,t,n)=>{if(n&&n!==JUe.Init){const t=e.state.jump.onMouseOver;JUe.off(e.getWrapperElement(),"mouseover",t);const n=e.state.jump.onMouseOut;JUe.off(e.getWrapperElement(),"mouseout",n),JUe.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const n=e.state.jump={options:t,onMouseOver:THe.bind(null,e),onMouseOut:wHe.bind(null,e),onKeyDown:CHe.bind(null,e)};JUe.on(e.getWrapperElement(),"mouseover",n.onMouseOver),JUe.on(e.getWrapperElement(),"mouseout",n.onMouseOut),JUe.on(document,"keydown",n.onKeyDown)}}),DHe(THe,"onMouseOver"),DHe(wHe,"onMouseOut"),DHe(CHe,"onKeyDown");const SHe=typeof navigator<"u"&&navigator&&navigator.appVersion.includes("Mac");function kHe(e){return e===(SHe?"Meta":"Control")}function AHe(e){if(e.state.jump.marker)return;const{cursor:t,options:n}=e.state.jump,r=e.coordsChar(t),i=e.getTokenAt(r,!0),o=n.getDestination||e.getHelper(r,"jump");if(o){const t=o(i,n,e);if(t){const n=e.markText({line:r.line,ch:i.start},{line:r.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=n,e.state.jump.destination=t}}}function NHe(e){const{marker:t}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}DHe(kHe,"isJumpModifier"),DHe(AHe,"enableJumpMode"),DHe(NHe,"disableJumpMode"),JUe.registerHelper("jump","graphql",(e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const{state:n}=e,{kind:r,step:i}=n,o=q$e(t.schema,n);return"Field"===r&&0===i&&o.fieldDef||"AliasedField"===r&&2===i&&o.fieldDef?W$e(o):"Directive"===r&&1===i&&o.directiveDef?Q$e(o):"Argument"===r&&0===i&&o.argDef?Y$e(o):"EnumValue"===r&&o.enumValue?X$e(o):"NamedType"===r&&o.type?J$e(o):void 0});const FHe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var PHe=Object.defineProperty;function _He(e,t){var n,r;const{levels:i,indentLevel:o}=e;return((i&&0!==i.length?i.at(-1)-(null!==(n=this.electricInput)&&void 0!==n&&n.test(t)?1:0):o)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}((e,t)=>{PHe(e,"name",{value:t,configurable:!0})})(_He,"indent");var OHe=Object.defineProperty,IHe=(e,t)=>OHe(e,"name",{value:t,configurable:!0});const LHe=IHe(e=>{const t=Sme({eatWhitespace:e=>e.eatWhile(xme),lexRules:Eme,parseRules:Dme,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:_He,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}},"graphqlModeFactory");JUe.defineMode("graphql",LHe);const MHe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var jHe=Object.defineProperty,RHe=(e,t)=>jHe(e,"name",{value:t,configurable:!0});function BHe(e,t,n){const r=VHe(n,zHe(t.string));if(!r)return;const i=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}function VHe(e,t){if(!t)return UHe(e,e=>!e.isDeprecated);return UHe(UHe(e.map(e=>({proximity:$He(zHe(e.text),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length).map(e=>e.entry)}function UHe(e,t){const n=e.filter(t);return 0===n.length?e:n}function zHe(e){return e.toLowerCase().replaceAll(/\W/g,"")}function $He(e,t){let n=HHe(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function HHe(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}function qHe(e,t,n){const r="Invalid"===t.state.kind?t.state.prevState:t.state,{kind:i,step:o}=r;if("Document"===i&&0===o)return BHe(e,t,[{text:"{"}]);const{variableToType:a}=n;if(!a)return;const s=GHe(a,t.state);if("Document"===i||"Variable"===i&&0===o){return BHe(e,t,Object.keys(a).map(e=>({text:`"${e}": `,type:a[e]})))}if(("ObjectValue"===i||"ObjectField"===i&&0===o)&&s.fields){const n=Object.keys(s.fields).map(e=>s.fields[e]);return BHe(e,t,n.map(e=>({text:`"${e.name}": `,type:e.type,description:e.description})))}if("StringValue"===i||"NumberValue"===i||"BooleanValue"===i||"NullValue"===i||"ListValue"===i&&1===o||"ObjectField"===i&&2===o||"Variable"===i&&2===o){const n=s.type?sd.getNamedType(s.type):void 0;if(n instanceof sd.GraphQLInputObjectType)return BHe(e,t,[{text:"{"}]);if(n instanceof sd.GraphQLEnumType){return BHe(e,t,n.getValues().map(e=>({text:`"${e.name}"`,type:n,description:e.description})))}if(n===sd.GraphQLBoolean)return BHe(e,t,[{text:"true",type:sd.GraphQLBoolean,description:"Not false."},{text:"false",type:sd.GraphQLBoolean,description:"Not true."}])}}function GHe(e,t){const n={type:null,fields:null};return z$e(t,t=>{switch(t.kind){case"Variable":n.type=e[t.name];break;case"ListValue":{const e=n.type?sd.getNullableType(n.type):void 0;n.type=e instanceof sd.GraphQLList?e.ofType:null;break}case"ObjectValue":{const e=n.type?sd.getNamedType(n.type):void 0;n.fields=e instanceof sd.GraphQLInputObjectType?e.getFields():null;break}case"ObjectField":{const e=t.name&&n.fields?n.fields[t.name]:null;n.type=null==e?void 0:e.type;break}}}),n}RHe(BHe,"hintList"),RHe(VHe,"filterAndSortList"),RHe(UHe,"filterNonEmpty"),RHe(zHe,"normalizeText"),RHe($He,"getProximity"),RHe(HHe,"lexicalDistance"),JUe.registerHelper("hint","graphql-variables",(e,t)=>{const n=e.getCursor(),r=e.getTokenAt(n),i=qHe(n,r,t);return null!=i&&i.list&&i.list.length>0&&(i.from=JUe.Pos(i.from.line,i.from.ch),i.to=JUe.Pos(i.to.line,i.to.ch),JUe.signal(e,"hasCompletion",e,i,r)),i}),RHe(qHe,"getVariablesHint"),RHe(GHe,"getTypeInfo");const KHe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var WHe=Object.defineProperty,QHe=(e,t)=>WHe(e,"name",{value:t,configurable:!0});function YHe(e){XHe=e,JHe=e.length,ZHe=eqe=tqe=-1,fqe(),hqe();const t=iqe();return uqe("EOF"),t}let XHe,JHe,ZHe,eqe,tqe,nqe,rqe;function iqe(){const e=ZHe,t=[];if(uqe("{"),!dqe("}")){do{t.push(oqe())}while(dqe(","));uqe("}")}return{kind:"Object",start:e,end:tqe,members:t}}function oqe(){const e=ZHe,t="String"===rqe?lqe():null;uqe("String"),uqe(":");const n=sqe();return{kind:"Member",start:e,end:tqe,key:t,value:n}}function aqe(){const e=ZHe,t=[];if(uqe("["),!dqe("]")){do{t.push(sqe())}while(dqe(","));uqe("]")}return{kind:"Array",start:e,end:tqe,values:t}}function sqe(){switch(rqe){case"[":return aqe();case"{":return iqe();case"String":case"Number":case"Boolean":case"Null":const e=lqe();return hqe(),e}uqe("Value")}function lqe(){return{kind:rqe,start:ZHe,end:eqe,value:JSON.parse(XHe.slice(ZHe,eqe))}}function uqe(e){if(rqe===e)return void hqe();let t;if("EOF"===rqe)t="[end of file]";else if(eqe-ZHe>1)t="`"+XHe.slice(ZHe,eqe)+"`";else{const e=XHe.slice(ZHe).match(/^.+?\b/);t="`"+(e?e[0]:XHe[ZHe])+"`"}throw pqe(`Expected ${e} but found ${t}.`)}QHe(YHe,"jsonParse"),QHe(iqe,"parseObj"),QHe(oqe,"parseMember"),QHe(aqe,"parseArr"),QHe(sqe,"parseVal"),QHe(lqe,"curToken"),QHe(uqe,"expect");class cqe extends Error{constructor(e,t){super(e),this.position=t}}function pqe(e){return new cqe(e,{start:ZHe,end:eqe})}function dqe(e){if(rqe===e)return hqe(),!0}function fqe(){return eqe31;)if(92===nqe)switch(nqe=fqe(),nqe){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:fqe();break;case 117:fqe(),gqe(),gqe(),gqe(),gqe();break;default:throw pqe("Bad character escape sequence.")}else{if(eqe===JHe)throw pqe("Unterminated string.");fqe()}if(34!==nqe)throw pqe("Unterminated string.");fqe()}function gqe(){if(nqe>=48&&nqe<=57||nqe>=65&&nqe<=70||nqe>=97&&nqe<=102)return fqe();throw pqe("Expected hexadecimal digit.")}function yqe(){45===nqe&&fqe(),48===nqe?fqe():vqe(),46===nqe&&(fqe(),vqe()),(69===nqe||101===nqe)&&(nqe=fqe(),(43===nqe||45===nqe)&&fqe(),vqe())}function vqe(){if(nqe<48||nqe>57)throw pqe("Expected decimal digit.");do{fqe()}while(nqe>=48&&nqe<=57)}function bqe(e,t,n){var r;const i=[];for(const o of n.members)if(o){const n=null===(r=o.key)||void 0===r?void 0:r.value,a=t[n];if(a)for(const[t,r]of xqe(a,o.value))i.push(Eqe(e,t,r));else i.push(Eqe(e,o.key,`Variable "$${n}" does not appear in any GraphQL query.`))}return i}function xqe(e,t){if(!e||!t)return[];if(e instanceof sd.GraphQLNonNull)return"Null"===t.kind?[[t,`Type "${e}" is non-nullable and cannot be null.`]]:xqe(e.ofType,t);if("Null"===t.kind)return[];if(e instanceof sd.GraphQLList){const n=e.ofType;if("Array"===t.kind){return Tqe(t.values||[],e=>xqe(n,e))}return xqe(n,t)}if(e instanceof sd.GraphQLInputObjectType){if("Object"!==t.kind)return[[t,`Type "${e}" must be an Object.`]];const n=Object.create(null),r=Tqe(t.members,t=>{var r;const i=null===(r=null==t?void 0:t.key)||void 0===r?void 0:r.value;n[i]=!0;const o=e.getFields()[i];if(!o)return[[t.key,`Type "${e}" does not have a field "${i}".`]];return xqe(o?o.type:void 0,t.value)});for(const i of Object.keys(e.getFields())){const o=e.getFields()[i];!n[i]&&o.type instanceof sd.GraphQLNonNull&&!o.defaultValue&&r.push([t,`Object of type "${e}" is missing required field "${i}".`])}return r}return"Boolean"===e.name&&"Boolean"!==t.kind||"String"===e.name&&"String"!==t.kind||"ID"===e.name&&"Number"!==t.kind&&"String"!==t.kind||"Float"===e.name&&"Number"!==t.kind||"Int"===e.name&&("Number"!==t.kind||(0|t.value)!==t.value)||(e instanceof sd.GraphQLEnumType||e instanceof sd.GraphQLScalarType)&&("String"!==t.kind&&"Number"!==t.kind&&"Boolean"!==t.kind&&"Null"!==t.kind||Dqe(e.parseValue(t.value)))?[[t,`Expected value of type "${e}".`]]:[]}function Eqe(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function Dqe(e){return null==e||e!=e}function Tqe(e,t){return Array.prototype.concat.apply([],e.map(t))}QHe(cqe,"JSONSyntaxError"),QHe(pqe,"syntaxError"),QHe(dqe,"skip"),QHe(fqe,"ch"),QHe(hqe,"lex"),QHe(mqe,"readString"),QHe(gqe,"readHex"),QHe(yqe,"readNumber"),QHe(vqe,"readDigits"),JUe.registerHelper("lint","graphql-variables",(e,t,n)=>{if(!e)return[];let r;try{r=YHe(e)}catch(o){if(o instanceof cqe)return[Eqe(n,o.position,o.message)];throw o}const{variableToType:i}=t;return i?bqe(n,i,r):[]}),QHe(bqe,"validateVariables"),QHe(xqe,"validateValue"),QHe(Eqe,"lintError"),QHe(Dqe,"isNullish"),QHe(Tqe,"mapCat");const wqe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Cqe=Object.defineProperty;JUe.defineMode("graphql-variables",e=>{const t=Sme({eatWhitespace:e=>e.eatSpace(),lexRules:Sqe,parseRules:kqe,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:_He,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const Sqe={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},kqe={Document:[bme("{"),yme("Variable",gme(bme(","))),bme("}")],Variable:[Aqe("variable"),bme(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[vme("Number","number")],StringValue:[vme("String","string")],BooleanValue:[vme("Keyword","builtin")],NullValue:[vme("Keyword","keyword")],ListValue:[bme("["),yme("Value",gme(bme(","))),bme("]")],ObjectValue:[bme("{"),yme("ObjectField",gme(bme(","))),bme("}")],ObjectField:[Aqe("attribute"),bme(":"),"Value"]};function Aqe(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}((e,t)=>{Cqe(e,"name",{value:t,configurable:!0})})(Aqe,"namedKey");const Nqe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));JUe.defineMode("graphql-results",e=>{const t=Sme({eatWhitespace:e=>e.eatSpace(),lexRules:Fqe,parseRules:Pqe,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:_He,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const Fqe={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},Pqe={Document:[bme("{"),yme("Entry",bme(",")),bme("}")],Entry:[vme("String","def"),bme(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[vme("Number","number")],StringValue:[vme("String","string")],BooleanValue:[vme("Keyword","builtin")],NullValue:[vme("Keyword","keyword")],ListValue:[bme("["),yme("Value",bme(",")),bme("]")],ObjectValue:[bme("{"),yme("ObjectField",bme(",")),bme("}")],ObjectField:[vme("String","property"),bme(":"),"Value"]},_qe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));