@jackchuka/gql-ingest 4.2.8 → 4.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -151,7 +151,7 @@ ${t.join(`
151
151
  `+t+")"}function Ob(e){let t=(0,xV.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,il.print)(t)}`),n+ol(e.deprecationReason)}function jV(e){return Gt(e)+"directive @"+e.name+vI(e.args)+ol(e.deprecationReason)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function ol(e){return e==null?"":e!==Ib.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,il.print)({kind:Sb.Kind.STRING,value:e})})`:" @deprecated"}function CV(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,il.print)({kind:Sb.Kind.STRING,value:e.specifiedByURL})})`}function Gt(e,t="",n=!0){let{description:i}=e;if(i==null)return"";let r=(0,il.print)({kind:Sb.Kind.STRING,value:i,block:(0,$V.isPrintableAsBlockString)(i)});return(t&&!n?`
152
152
  `+t:t)+r.replace(/\n/g,`
153
153
  `+t)+`
154
- `}});var bI=$(kb=>{"use strict";Object.defineProperty(kb,"__esModule",{value:!0});kb.concatAST=UV;var FV=le();function UV(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:FV.Kind.DOCUMENT,definitions:t}}});var $I=$(wb=>{"use strict";Object.defineProperty(wb,"__esModule",{value:!0});wb.separateOperations=MV;var al=le(),zV=kn();function MV(e){let t=[],n=Object.create(null);for(let r of e.definitions)switch(r.kind){case al.Kind.OPERATION_DEFINITION:t.push(r);break;case al.Kind.FRAGMENT_DEFINITION:n[r.name.value]=_I(r.selectionSet);break;default:}let i=Object.create(null);for(let r of t){let o=new Set;for(let s of _I(r.selectionSet))TI(o,n,s);let a=r.name?r.name.value:"";i[a]={kind:al.Kind.DOCUMENT,definitions:e.definitions.filter(s=>s===r||s.kind===al.Kind.FRAGMENT_DEFINITION&&o.has(s.name.value))}}return i}function TI(e,t,n){if(!e.has(n)){e.add(n);let i=t[n];if(i!==void 0)for(let r of i)TI(e,t,r)}}function _I(e){let t=[];return(0,zV.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var OI=$(Ab=>{"use strict";Object.defineProperty(Ab,"__esModule",{value:!0});Ab.stripIgnoredCharacters=VV;var qV=Ho(),EI=Xo(),xI=Wu(),Db=Ri();function VV(e){let t=(0,xI.isSource)(e)?e:new xI.Source(e),n=t.body,i=new EI.Lexer(t),r="",o=!1;for(;i.advance().kind!==Db.TokenKind.EOF;){let a=i.token,s=a.kind,u=!(0,EI.isPunctuatorTokenKind)(a.kind);o&&(u||a.kind===Db.TokenKind.SPREAD)&&(r+=" ");let c=n.slice(a.start,a.end);s===Db.TokenKind.BLOCK_STRING?r+=(0,qV.printBlockString)(a.value,{minimize:!0}):r+=c,o=u}return r}});var II=$(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.assertValidName=ZV;sl.isValidNameError=SI;var GV=mt(),KV=J(),QV=oa();function ZV(e){let t=SI(e);if(t)throw t;return e}function SI(e){if(typeof e=="string"||(0,GV.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new KV.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,QV.assertName)(e)}catch(t){return t}}});var RI=$(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.DangerousChangeType=yr.BreakingChangeType=void 0;yr.findBreakingChanges=XV;yr.findDangerousChanges=e4;var BV=_e(),PI=it(),NI=tn(),JV=kt(),ye=pe(),HV=mr(),YV=va(),WV=Rv(),Me;yr.BreakingChangeType=Me;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(Me||(yr.BreakingChangeType=Me={}));var ir;yr.DangerousChangeType=ir;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(ir||(yr.DangerousChangeType=ir={}));function XV(e,t){return LI(e,t).filter(n=>n.type in Me)}function e4(e,t){return LI(e,t).filter(n=>n.type in ir)}function LI(e,t){return[...r4(e,t),...t4(e,t)]}function t4(e,t){let n=[],i=Rr(e.getDirectives(),t.getDirectives());for(let r of i.removed)n.push({type:Me.DIRECTIVE_REMOVED,description:`${r.name} was removed.`});for(let[r,o]of i.persisted){let a=Rr(r.args,o.args);for(let s of a.added)(0,ye.isRequiredArgument)(s)&&n.push({type:Me.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${s.name} on directive ${r.name} was added.`});for(let s of a.removed)n.push({type:Me.DIRECTIVE_ARG_REMOVED,description:`${s.name} was removed from ${r.name}.`});r.isRepeatable&&!o.isRepeatable&&n.push({type:Me.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${r.name}.`});for(let s of r.locations)o.locations.includes(s)||n.push({type:Me.DIRECTIVE_LOCATION_REMOVED,description:`${s} was removed from ${r.name}.`})}return n}function r4(e,t){let n=[],i=Rr(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let r of i.removed)n.push({type:Me.TYPE_REMOVED,description:(0,HV.isSpecifiedScalarType)(r)?`Standard scalar ${r.name} was removed because it is not referenced anymore.`:`${r.name} was removed.`});for(let[r,o]of i.persisted)(0,ye.isEnumType)(r)&&(0,ye.isEnumType)(o)?n.push(...o4(r,o)):(0,ye.isUnionType)(r)&&(0,ye.isUnionType)(o)?n.push(...i4(r,o)):(0,ye.isInputObjectType)(r)&&(0,ye.isInputObjectType)(o)?n.push(...n4(r,o)):(0,ye.isObjectType)(r)&&(0,ye.isObjectType)(o)?n.push(...wI(r,o),...kI(r,o)):(0,ye.isInterfaceType)(r)&&(0,ye.isInterfaceType)(o)?n.push(...wI(r,o),...kI(r,o)):r.constructor!==o.constructor&&n.push({type:Me.TYPE_CHANGED_KIND,description:`${r.name} changed from ${DI(r)} to ${DI(o)}.`});return n}function n4(e,t){let n=[],i=Rr(Object.values(e.getFields()),Object.values(t.getFields()));for(let r of i.added)(0,ye.isRequiredInputField)(r)?n.push({type:Me.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${r.name} on input type ${e.name} was added.`}):n.push({type:ir.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${r.name} on input type ${e.name} was added.`});for(let r of i.removed)n.push({type:Me.FIELD_REMOVED,description:`${e.name}.${r.name} was removed.`});for(let[r,o]of i.persisted)qa(r.type,o.type)||n.push({type:Me.FIELD_CHANGED_KIND,description:`${e.name}.${r.name} changed type from ${String(r.type)} to ${String(o.type)}.`});return n}function i4(e,t){let n=[],i=Rr(e.getTypes(),t.getTypes());for(let r of i.added)n.push({type:ir.TYPE_ADDED_TO_UNION,description:`${r.name} was added to union type ${e.name}.`});for(let r of i.removed)n.push({type:Me.TYPE_REMOVED_FROM_UNION,description:`${r.name} was removed from union type ${e.name}.`});return n}function o4(e,t){let n=[],i=Rr(e.getValues(),t.getValues());for(let r of i.added)n.push({type:ir.VALUE_ADDED_TO_ENUM,description:`${r.name} was added to enum type ${e.name}.`});for(let r of i.removed)n.push({type:Me.VALUE_REMOVED_FROM_ENUM,description:`${r.name} was removed from enum type ${e.name}.`});return n}function kI(e,t){let n=[],i=Rr(e.getInterfaces(),t.getInterfaces());for(let r of i.added)n.push({type:ir.IMPLEMENTED_INTERFACE_ADDED,description:`${r.name} added to interfaces implemented by ${e.name}.`});for(let r of i.removed)n.push({type:Me.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${r.name}.`});return n}function wI(e,t){let n=[],i=Rr(Object.values(e.getFields()),Object.values(t.getFields()));for(let r of i.removed)n.push({type:Me.FIELD_REMOVED,description:`${e.name}.${r.name} was removed.`});for(let[r,o]of i.persisted)n.push(...a4(e,r,o)),Ma(r.type,o.type)||n.push({type:Me.FIELD_CHANGED_KIND,description:`${e.name}.${r.name} changed type from ${String(r.type)} to ${String(o.type)}.`});return n}function a4(e,t,n){let i=[],r=Rr(t.args,n.args);for(let o of r.removed)i.push({type:Me.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(let[o,a]of r.persisted)if(!qa(o.type,a.type))i.push({type:Me.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(a.type)}.`});else if(o.defaultValue!==void 0)if(a.defaultValue===void 0)i.push({type:ir.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{let u=AI(o.defaultValue,o.type),c=AI(a.defaultValue,a.type);u!==c&&i.push({type:ir.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} has changed defaultValue from ${u} to ${c}.`})}for(let o of r.added)(0,ye.isRequiredArgument)(o)?i.push({type:Me.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):i.push({type:ir.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return i}function Ma(e,t){return(0,ye.isListType)(e)?(0,ye.isListType)(t)&&Ma(e.ofType,t.ofType)||(0,ye.isNonNullType)(t)&&Ma(e,t.ofType):(0,ye.isNonNullType)(e)?(0,ye.isNonNullType)(t)&&Ma(e.ofType,t.ofType):(0,ye.isNamedType)(t)&&e.name===t.name||(0,ye.isNonNullType)(t)&&Ma(e,t.ofType)}function qa(e,t){return(0,ye.isListType)(e)?(0,ye.isListType)(t)&&qa(e.ofType,t.ofType):(0,ye.isNonNullType)(e)?(0,ye.isNonNullType)(t)&&qa(e.ofType,t.ofType)||!(0,ye.isNonNullType)(t)&&qa(e.ofType,t):(0,ye.isNamedType)(t)&&e.name===t.name}function DI(e){if((0,ye.isScalarType)(e))return"a Scalar type";if((0,ye.isObjectType)(e))return"an Object type";if((0,ye.isInterfaceType)(e))return"an Interface type";if((0,ye.isUnionType)(e))return"a Union type";if((0,ye.isEnumType)(e))return"an Enum type";if((0,ye.isInputObjectType)(e))return"an Input type";(0,PI.invariant)(!1,"Unexpected type: "+(0,BV.inspect)(e))}function AI(e,t){let n=(0,YV.astFromValue)(e,t);return n!=null||(0,PI.invariant)(!1),(0,JV.print)((0,WV.sortValueNode)(n))}function Rr(e,t){let n=[],i=[],r=[],o=(0,NI.keyMap)(e,({name:s})=>s),a=(0,NI.keyMap)(t,({name:s})=>s);for(let s of e){let u=a[s.name];u===void 0?i.push(s):r.push([s,u])}for(let s of t)o[s.name]===void 0&&n.push(s);return{added:n,persisted:r,removed:i}}});var CI=$(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.resolveASTSchemaCoordinate=jI;ul.resolveSchemaCoordinate=u4;var Gn=_e(),Va=le(),s4=Nn(),ln=pe();function u4(e,t){return jI(e,(0,s4.parseSchemaCoordinate)(t))}function c4(e,t){let n=t.name.value,i=e.getType(n);if(i!=null)return{kind:"NamedType",type:i}}function l4(e,t){let n=t.name.value,i=e.getType(n);if(!i)throw new Error(`Expected ${(0,Gn.inspect)(n)} to be defined as a type in the schema.`);if(!(0,ln.isEnumType)(i)&&!(0,ln.isInputObjectType)(i)&&!(0,ln.isObjectType)(i)&&!(0,ln.isInterfaceType)(i))throw new Error(`Expected ${(0,Gn.inspect)(n)} to be an Enum, Input Object, Object or Interface type.`);if((0,ln.isEnumType)(i)){let a=t.memberName.value,s=i.getValue(a);return s==null?void 0:{kind:"EnumValue",type:i,enumValue:s}}if((0,ln.isInputObjectType)(i)){let a=t.memberName.value,s=i.getFields()[a];return s==null?void 0:{kind:"InputField",type:i,inputField:s}}let r=t.memberName.value,o=i.getFields()[r];if(o!=null)return{kind:"Field",type:i,field:o}}function p4(e,t){let n=t.name.value,i=e.getType(n);if(i==null)throw new Error(`Expected ${(0,Gn.inspect)(n)} to be defined as a type in the schema.`);if(!(0,ln.isObjectType)(i)&&!(0,ln.isInterfaceType)(i))throw new Error(`Expected ${(0,Gn.inspect)(n)} to be an object type or interface type.`);let r=t.fieldName.value,o=i.getFields()[r];if(o==null)throw new Error(`Expected ${(0,Gn.inspect)(r)} to exist as a field of type ${(0,Gn.inspect)(n)} in the schema.`);let a=t.argumentName.value,s=o.args.find(u=>u.name===a);if(s!=null)return{kind:"FieldArgument",type:i,field:o,fieldArgument:s}}function d4(e,t){let n=t.name.value,i=e.getDirective(n);if(i)return{kind:"Directive",directive:i}}function f4(e,t){let n=t.name.value,i=e.getDirective(n);if(!i)throw new Error(`Expected ${(0,Gn.inspect)(n)} to be defined as a directive in the schema.`);let{argumentName:{value:r}}=t,o=i.args.find(a=>a.name===r);if(o)return{kind:"DirectiveArgument",directive:i,directiveArgument:o}}function jI(e,t){switch(t.kind){case Va.Kind.TYPE_COORDINATE:return c4(e,t);case Va.Kind.MEMBER_COORDINATE:return l4(e,t);case Va.Kind.ARGUMENT_COORDINATE:return p4(e,t);case Va.Kind.DIRECTIVE_COORDINATE:return d4(e,t);case Va.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return f4(e,t)}}});var qI=$(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});Object.defineProperty(fe,"BreakingChangeType",{enumerable:!0,get:function(){return cl.BreakingChangeType}});Object.defineProperty(fe,"DangerousChangeType",{enumerable:!0,get:function(){return cl.DangerousChangeType}});Object.defineProperty(fe,"TypeInfo",{enumerable:!0,get:function(){return UI.TypeInfo}});Object.defineProperty(fe,"assertValidName",{enumerable:!0,get:function(){return zI.assertValidName}});Object.defineProperty(fe,"astFromValue",{enumerable:!0,get:function(){return x4.astFromValue}});Object.defineProperty(fe,"buildASTSchema",{enumerable:!0,get:function(){return FI.buildASTSchema}});Object.defineProperty(fe,"buildClientSchema",{enumerable:!0,get:function(){return y4.buildClientSchema}});Object.defineProperty(fe,"buildSchema",{enumerable:!0,get:function(){return FI.buildSchema}});Object.defineProperty(fe,"coerceInputValue",{enumerable:!0,get:function(){return O4.coerceInputValue}});Object.defineProperty(fe,"concatAST",{enumerable:!0,get:function(){return S4.concatAST}});Object.defineProperty(fe,"doTypesOverlap",{enumerable:!0,get:function(){return Lb.doTypesOverlap}});Object.defineProperty(fe,"extendSchema",{enumerable:!0,get:function(){return b4.extendSchema}});Object.defineProperty(fe,"findBreakingChanges",{enumerable:!0,get:function(){return cl.findBreakingChanges}});Object.defineProperty(fe,"findDangerousChanges",{enumerable:!0,get:function(){return cl.findDangerousChanges}});Object.defineProperty(fe,"getIntrospectionQuery",{enumerable:!0,get:function(){return m4.getIntrospectionQuery}});Object.defineProperty(fe,"getOperationAST",{enumerable:!0,get:function(){return h4.getOperationAST}});Object.defineProperty(fe,"getOperationRootType",{enumerable:!0,get:function(){return g4.getOperationRootType}});Object.defineProperty(fe,"introspectionFromSchema",{enumerable:!0,get:function(){return v4.introspectionFromSchema}});Object.defineProperty(fe,"isEqualType",{enumerable:!0,get:function(){return Lb.isEqualType}});Object.defineProperty(fe,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Lb.isTypeSubTypeOf}});Object.defineProperty(fe,"isValidNameError",{enumerable:!0,get:function(){return zI.isValidNameError}});Object.defineProperty(fe,"lexicographicSortSchema",{enumerable:!0,get:function(){return _4.lexicographicSortSchema}});Object.defineProperty(fe,"printIntrospectionSchema",{enumerable:!0,get:function(){return Pb.printIntrospectionSchema}});Object.defineProperty(fe,"printSchema",{enumerable:!0,get:function(){return Pb.printSchema}});Object.defineProperty(fe,"printType",{enumerable:!0,get:function(){return Pb.printType}});Object.defineProperty(fe,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return MI.resolveASTSchemaCoordinate}});Object.defineProperty(fe,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return MI.resolveSchemaCoordinate}});Object.defineProperty(fe,"separateOperations",{enumerable:!0,get:function(){return I4.separateOperations}});Object.defineProperty(fe,"stripIgnoredCharacters",{enumerable:!0,get:function(){return N4.stripIgnoredCharacters}});Object.defineProperty(fe,"typeFromAST",{enumerable:!0,get:function(){return T4.typeFromAST}});Object.defineProperty(fe,"valueFromAST",{enumerable:!0,get:function(){return $4.valueFromAST}});Object.defineProperty(fe,"valueFromASTUntyped",{enumerable:!0,get:function(){return E4.valueFromASTUntyped}});Object.defineProperty(fe,"visitWithTypeInfo",{enumerable:!0,get:function(){return UI.visitWithTypeInfo}});var m4=gb(),h4=BS(),g4=JS(),v4=HS(),y4=WS(),FI=uI(),b4=$b(),_4=pI(),Pb=yI(),T4=hr(),$4=Ia(),E4=Dg(),x4=va(),UI=Nc(),O4=ny(),S4=bI(),I4=$I(),N4=OI(),Lb=la(),zI=II(),cl=RI(),MI=CI()});var KI=$(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});Object.defineProperty(h,"BREAK",{enumerable:!0,get:function(){return he.BREAK}});Object.defineProperty(h,"BreakingChangeType",{enumerable:!0,get:function(){return ge.BreakingChangeType}});Object.defineProperty(h,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return R.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(h,"DangerousChangeType",{enumerable:!0,get:function(){return ge.DangerousChangeType}});Object.defineProperty(h,"DirectiveLocation",{enumerable:!0,get:function(){return he.DirectiveLocation}});Object.defineProperty(h,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return oe.ExecutableDefinitionsRule}});Object.defineProperty(h,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return oe.FieldsOnCorrectTypeRule}});Object.defineProperty(h,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return oe.FragmentsOnCompositeTypesRule}});Object.defineProperty(h,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return R.GRAPHQL_MAX_INT}});Object.defineProperty(h,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return R.GRAPHQL_MIN_INT}});Object.defineProperty(h,"GraphQLBoolean",{enumerable:!0,get:function(){return R.GraphQLBoolean}});Object.defineProperty(h,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return R.GraphQLDeprecatedDirective}});Object.defineProperty(h,"GraphQLDirective",{enumerable:!0,get:function(){return R.GraphQLDirective}});Object.defineProperty(h,"GraphQLEnumType",{enumerable:!0,get:function(){return R.GraphQLEnumType}});Object.defineProperty(h,"GraphQLError",{enumerable:!0,get:function(){return Ga.GraphQLError}});Object.defineProperty(h,"GraphQLFloat",{enumerable:!0,get:function(){return R.GraphQLFloat}});Object.defineProperty(h,"GraphQLID",{enumerable:!0,get:function(){return R.GraphQLID}});Object.defineProperty(h,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return R.GraphQLIncludeDirective}});Object.defineProperty(h,"GraphQLInputObjectType",{enumerable:!0,get:function(){return R.GraphQLInputObjectType}});Object.defineProperty(h,"GraphQLInt",{enumerable:!0,get:function(){return R.GraphQLInt}});Object.defineProperty(h,"GraphQLInterfaceType",{enumerable:!0,get:function(){return R.GraphQLInterfaceType}});Object.defineProperty(h,"GraphQLList",{enumerable:!0,get:function(){return R.GraphQLList}});Object.defineProperty(h,"GraphQLNonNull",{enumerable:!0,get:function(){return R.GraphQLNonNull}});Object.defineProperty(h,"GraphQLObjectType",{enumerable:!0,get:function(){return R.GraphQLObjectType}});Object.defineProperty(h,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return R.GraphQLOneOfDirective}});Object.defineProperty(h,"GraphQLScalarType",{enumerable:!0,get:function(){return R.GraphQLScalarType}});Object.defineProperty(h,"GraphQLSchema",{enumerable:!0,get:function(){return R.GraphQLSchema}});Object.defineProperty(h,"GraphQLSkipDirective",{enumerable:!0,get:function(){return R.GraphQLSkipDirective}});Object.defineProperty(h,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return R.GraphQLSpecifiedByDirective}});Object.defineProperty(h,"GraphQLString",{enumerable:!0,get:function(){return R.GraphQLString}});Object.defineProperty(h,"GraphQLUnionType",{enumerable:!0,get:function(){return R.GraphQLUnionType}});Object.defineProperty(h,"Kind",{enumerable:!0,get:function(){return he.Kind}});Object.defineProperty(h,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return oe.KnownArgumentNamesRule}});Object.defineProperty(h,"KnownDirectivesRule",{enumerable:!0,get:function(){return oe.KnownDirectivesRule}});Object.defineProperty(h,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return oe.KnownFragmentNamesRule}});Object.defineProperty(h,"KnownTypeNamesRule",{enumerable:!0,get:function(){return oe.KnownTypeNamesRule}});Object.defineProperty(h,"Lexer",{enumerable:!0,get:function(){return he.Lexer}});Object.defineProperty(h,"Location",{enumerable:!0,get:function(){return he.Location}});Object.defineProperty(h,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return oe.LoneAnonymousOperationRule}});Object.defineProperty(h,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return oe.LoneSchemaDefinitionRule}});Object.defineProperty(h,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return oe.MaxIntrospectionDepthRule}});Object.defineProperty(h,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return oe.NoDeprecatedCustomRule}});Object.defineProperty(h,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return oe.NoFragmentCyclesRule}});Object.defineProperty(h,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return oe.NoSchemaIntrospectionCustomRule}});Object.defineProperty(h,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return oe.NoUndefinedVariablesRule}});Object.defineProperty(h,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return oe.NoUnusedFragmentsRule}});Object.defineProperty(h,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return oe.NoUnusedVariablesRule}});Object.defineProperty(h,"OperationTypeNode",{enumerable:!0,get:function(){return he.OperationTypeNode}});Object.defineProperty(h,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return oe.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(h,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return oe.PossibleFragmentSpreadsRule}});Object.defineProperty(h,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return oe.PossibleTypeExtensionsRule}});Object.defineProperty(h,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return oe.ProvidedRequiredArgumentsRule}});Object.defineProperty(h,"ScalarLeafsRule",{enumerable:!0,get:function(){return oe.ScalarLeafsRule}});Object.defineProperty(h,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return R.SchemaMetaFieldDef}});Object.defineProperty(h,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return oe.SingleFieldSubscriptionsRule}});Object.defineProperty(h,"Source",{enumerable:!0,get:function(){return he.Source}});Object.defineProperty(h,"Token",{enumerable:!0,get:function(){return he.Token}});Object.defineProperty(h,"TokenKind",{enumerable:!0,get:function(){return he.TokenKind}});Object.defineProperty(h,"TypeInfo",{enumerable:!0,get:function(){return ge.TypeInfo}});Object.defineProperty(h,"TypeKind",{enumerable:!0,get:function(){return R.TypeKind}});Object.defineProperty(h,"TypeMetaFieldDef",{enumerable:!0,get:function(){return R.TypeMetaFieldDef}});Object.defineProperty(h,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return R.TypeNameMetaFieldDef}});Object.defineProperty(h,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return oe.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(h,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return oe.UniqueArgumentNamesRule}});Object.defineProperty(h,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return oe.UniqueDirectiveNamesRule}});Object.defineProperty(h,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return oe.UniqueDirectivesPerLocationRule}});Object.defineProperty(h,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return oe.UniqueEnumValueNamesRule}});Object.defineProperty(h,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return oe.UniqueFieldDefinitionNamesRule}});Object.defineProperty(h,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return oe.UniqueFragmentNamesRule}});Object.defineProperty(h,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return oe.UniqueInputFieldNamesRule}});Object.defineProperty(h,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return oe.UniqueOperationNamesRule}});Object.defineProperty(h,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return oe.UniqueOperationTypesRule}});Object.defineProperty(h,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return oe.UniqueTypeNamesRule}});Object.defineProperty(h,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return oe.UniqueVariableNamesRule}});Object.defineProperty(h,"ValidationContext",{enumerable:!0,get:function(){return oe.ValidationContext}});Object.defineProperty(h,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return oe.ValuesOfCorrectTypeRule}});Object.defineProperty(h,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return oe.VariablesAreInputTypesRule}});Object.defineProperty(h,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return oe.VariablesInAllowedPositionRule}});Object.defineProperty(h,"__Directive",{enumerable:!0,get:function(){return R.__Directive}});Object.defineProperty(h,"__DirectiveLocation",{enumerable:!0,get:function(){return R.__DirectiveLocation}});Object.defineProperty(h,"__EnumValue",{enumerable:!0,get:function(){return R.__EnumValue}});Object.defineProperty(h,"__Field",{enumerable:!0,get:function(){return R.__Field}});Object.defineProperty(h,"__InputValue",{enumerable:!0,get:function(){return R.__InputValue}});Object.defineProperty(h,"__Schema",{enumerable:!0,get:function(){return R.__Schema}});Object.defineProperty(h,"__Type",{enumerable:!0,get:function(){return R.__Type}});Object.defineProperty(h,"__TypeKind",{enumerable:!0,get:function(){return R.__TypeKind}});Object.defineProperty(h,"assertAbstractType",{enumerable:!0,get:function(){return R.assertAbstractType}});Object.defineProperty(h,"assertCompositeType",{enumerable:!0,get:function(){return R.assertCompositeType}});Object.defineProperty(h,"assertDirective",{enumerable:!0,get:function(){return R.assertDirective}});Object.defineProperty(h,"assertEnumType",{enumerable:!0,get:function(){return R.assertEnumType}});Object.defineProperty(h,"assertEnumValueName",{enumerable:!0,get:function(){return R.assertEnumValueName}});Object.defineProperty(h,"assertInputObjectType",{enumerable:!0,get:function(){return R.assertInputObjectType}});Object.defineProperty(h,"assertInputType",{enumerable:!0,get:function(){return R.assertInputType}});Object.defineProperty(h,"assertInterfaceType",{enumerable:!0,get:function(){return R.assertInterfaceType}});Object.defineProperty(h,"assertLeafType",{enumerable:!0,get:function(){return R.assertLeafType}});Object.defineProperty(h,"assertListType",{enumerable:!0,get:function(){return R.assertListType}});Object.defineProperty(h,"assertName",{enumerable:!0,get:function(){return R.assertName}});Object.defineProperty(h,"assertNamedType",{enumerable:!0,get:function(){return R.assertNamedType}});Object.defineProperty(h,"assertNonNullType",{enumerable:!0,get:function(){return R.assertNonNullType}});Object.defineProperty(h,"assertNullableType",{enumerable:!0,get:function(){return R.assertNullableType}});Object.defineProperty(h,"assertObjectType",{enumerable:!0,get:function(){return R.assertObjectType}});Object.defineProperty(h,"assertOutputType",{enumerable:!0,get:function(){return R.assertOutputType}});Object.defineProperty(h,"assertScalarType",{enumerable:!0,get:function(){return R.assertScalarType}});Object.defineProperty(h,"assertSchema",{enumerable:!0,get:function(){return R.assertSchema}});Object.defineProperty(h,"assertType",{enumerable:!0,get:function(){return R.assertType}});Object.defineProperty(h,"assertUnionType",{enumerable:!0,get:function(){return R.assertUnionType}});Object.defineProperty(h,"assertValidName",{enumerable:!0,get:function(){return ge.assertValidName}});Object.defineProperty(h,"assertValidSchema",{enumerable:!0,get:function(){return R.assertValidSchema}});Object.defineProperty(h,"assertWrappingType",{enumerable:!0,get:function(){return R.assertWrappingType}});Object.defineProperty(h,"astFromValue",{enumerable:!0,get:function(){return ge.astFromValue}});Object.defineProperty(h,"buildASTSchema",{enumerable:!0,get:function(){return ge.buildASTSchema}});Object.defineProperty(h,"buildClientSchema",{enumerable:!0,get:function(){return ge.buildClientSchema}});Object.defineProperty(h,"buildSchema",{enumerable:!0,get:function(){return ge.buildSchema}});Object.defineProperty(h,"coerceInputValue",{enumerable:!0,get:function(){return ge.coerceInputValue}});Object.defineProperty(h,"concatAST",{enumerable:!0,get:function(){return ge.concatAST}});Object.defineProperty(h,"createSourceEventStream",{enumerable:!0,get:function(){return br.createSourceEventStream}});Object.defineProperty(h,"defaultFieldResolver",{enumerable:!0,get:function(){return br.defaultFieldResolver}});Object.defineProperty(h,"defaultTypeResolver",{enumerable:!0,get:function(){return br.defaultTypeResolver}});Object.defineProperty(h,"doTypesOverlap",{enumerable:!0,get:function(){return ge.doTypesOverlap}});Object.defineProperty(h,"execute",{enumerable:!0,get:function(){return br.execute}});Object.defineProperty(h,"executeSync",{enumerable:!0,get:function(){return br.executeSync}});Object.defineProperty(h,"extendSchema",{enumerable:!0,get:function(){return ge.extendSchema}});Object.defineProperty(h,"findBreakingChanges",{enumerable:!0,get:function(){return ge.findBreakingChanges}});Object.defineProperty(h,"findDangerousChanges",{enumerable:!0,get:function(){return ge.findDangerousChanges}});Object.defineProperty(h,"formatError",{enumerable:!0,get:function(){return Ga.formatError}});Object.defineProperty(h,"getArgumentValues",{enumerable:!0,get:function(){return br.getArgumentValues}});Object.defineProperty(h,"getDirectiveValues",{enumerable:!0,get:function(){return br.getDirectiveValues}});Object.defineProperty(h,"getEnterLeaveForKind",{enumerable:!0,get:function(){return he.getEnterLeaveForKind}});Object.defineProperty(h,"getIntrospectionQuery",{enumerable:!0,get:function(){return ge.getIntrospectionQuery}});Object.defineProperty(h,"getLocation",{enumerable:!0,get:function(){return he.getLocation}});Object.defineProperty(h,"getNamedType",{enumerable:!0,get:function(){return R.getNamedType}});Object.defineProperty(h,"getNullableType",{enumerable:!0,get:function(){return R.getNullableType}});Object.defineProperty(h,"getOperationAST",{enumerable:!0,get:function(){return ge.getOperationAST}});Object.defineProperty(h,"getOperationRootType",{enumerable:!0,get:function(){return ge.getOperationRootType}});Object.defineProperty(h,"getVariableValues",{enumerable:!0,get:function(){return br.getVariableValues}});Object.defineProperty(h,"getVisitFn",{enumerable:!0,get:function(){return he.getVisitFn}});Object.defineProperty(h,"graphql",{enumerable:!0,get:function(){return GI.graphql}});Object.defineProperty(h,"graphqlSync",{enumerable:!0,get:function(){return GI.graphqlSync}});Object.defineProperty(h,"introspectionFromSchema",{enumerable:!0,get:function(){return ge.introspectionFromSchema}});Object.defineProperty(h,"introspectionTypes",{enumerable:!0,get:function(){return R.introspectionTypes}});Object.defineProperty(h,"isAbstractType",{enumerable:!0,get:function(){return R.isAbstractType}});Object.defineProperty(h,"isCompositeType",{enumerable:!0,get:function(){return R.isCompositeType}});Object.defineProperty(h,"isConstValueNode",{enumerable:!0,get:function(){return he.isConstValueNode}});Object.defineProperty(h,"isDefinitionNode",{enumerable:!0,get:function(){return he.isDefinitionNode}});Object.defineProperty(h,"isDirective",{enumerable:!0,get:function(){return R.isDirective}});Object.defineProperty(h,"isEnumType",{enumerable:!0,get:function(){return R.isEnumType}});Object.defineProperty(h,"isEqualType",{enumerable:!0,get:function(){return ge.isEqualType}});Object.defineProperty(h,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return he.isExecutableDefinitionNode}});Object.defineProperty(h,"isInputObjectType",{enumerable:!0,get:function(){return R.isInputObjectType}});Object.defineProperty(h,"isInputType",{enumerable:!0,get:function(){return R.isInputType}});Object.defineProperty(h,"isInterfaceType",{enumerable:!0,get:function(){return R.isInterfaceType}});Object.defineProperty(h,"isIntrospectionType",{enumerable:!0,get:function(){return R.isIntrospectionType}});Object.defineProperty(h,"isLeafType",{enumerable:!0,get:function(){return R.isLeafType}});Object.defineProperty(h,"isListType",{enumerable:!0,get:function(){return R.isListType}});Object.defineProperty(h,"isNamedType",{enumerable:!0,get:function(){return R.isNamedType}});Object.defineProperty(h,"isNonNullType",{enumerable:!0,get:function(){return R.isNonNullType}});Object.defineProperty(h,"isNullableType",{enumerable:!0,get:function(){return R.isNullableType}});Object.defineProperty(h,"isObjectType",{enumerable:!0,get:function(){return R.isObjectType}});Object.defineProperty(h,"isOutputType",{enumerable:!0,get:function(){return R.isOutputType}});Object.defineProperty(h,"isRequiredArgument",{enumerable:!0,get:function(){return R.isRequiredArgument}});Object.defineProperty(h,"isRequiredInputField",{enumerable:!0,get:function(){return R.isRequiredInputField}});Object.defineProperty(h,"isScalarType",{enumerable:!0,get:function(){return R.isScalarType}});Object.defineProperty(h,"isSchema",{enumerable:!0,get:function(){return R.isSchema}});Object.defineProperty(h,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return he.isSchemaCoordinateNode}});Object.defineProperty(h,"isSelectionNode",{enumerable:!0,get:function(){return he.isSelectionNode}});Object.defineProperty(h,"isSpecifiedDirective",{enumerable:!0,get:function(){return R.isSpecifiedDirective}});Object.defineProperty(h,"isSpecifiedScalarType",{enumerable:!0,get:function(){return R.isSpecifiedScalarType}});Object.defineProperty(h,"isType",{enumerable:!0,get:function(){return R.isType}});Object.defineProperty(h,"isTypeDefinitionNode",{enumerable:!0,get:function(){return he.isTypeDefinitionNode}});Object.defineProperty(h,"isTypeExtensionNode",{enumerable:!0,get:function(){return he.isTypeExtensionNode}});Object.defineProperty(h,"isTypeNode",{enumerable:!0,get:function(){return he.isTypeNode}});Object.defineProperty(h,"isTypeSubTypeOf",{enumerable:!0,get:function(){return ge.isTypeSubTypeOf}});Object.defineProperty(h,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return he.isTypeSystemDefinitionNode}});Object.defineProperty(h,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return he.isTypeSystemExtensionNode}});Object.defineProperty(h,"isUnionType",{enumerable:!0,get:function(){return R.isUnionType}});Object.defineProperty(h,"isValidNameError",{enumerable:!0,get:function(){return ge.isValidNameError}});Object.defineProperty(h,"isValueNode",{enumerable:!0,get:function(){return he.isValueNode}});Object.defineProperty(h,"isWrappingType",{enumerable:!0,get:function(){return R.isWrappingType}});Object.defineProperty(h,"lexicographicSortSchema",{enumerable:!0,get:function(){return ge.lexicographicSortSchema}});Object.defineProperty(h,"locatedError",{enumerable:!0,get:function(){return Ga.locatedError}});Object.defineProperty(h,"parse",{enumerable:!0,get:function(){return he.parse}});Object.defineProperty(h,"parseConstValue",{enumerable:!0,get:function(){return he.parseConstValue}});Object.defineProperty(h,"parseSchemaCoordinate",{enumerable:!0,get:function(){return he.parseSchemaCoordinate}});Object.defineProperty(h,"parseType",{enumerable:!0,get:function(){return he.parseType}});Object.defineProperty(h,"parseValue",{enumerable:!0,get:function(){return he.parseValue}});Object.defineProperty(h,"print",{enumerable:!0,get:function(){return he.print}});Object.defineProperty(h,"printError",{enumerable:!0,get:function(){return Ga.printError}});Object.defineProperty(h,"printIntrospectionSchema",{enumerable:!0,get:function(){return ge.printIntrospectionSchema}});Object.defineProperty(h,"printLocation",{enumerable:!0,get:function(){return he.printLocation}});Object.defineProperty(h,"printSchema",{enumerable:!0,get:function(){return ge.printSchema}});Object.defineProperty(h,"printSourceLocation",{enumerable:!0,get:function(){return he.printSourceLocation}});Object.defineProperty(h,"printType",{enumerable:!0,get:function(){return ge.printType}});Object.defineProperty(h,"recommendedRules",{enumerable:!0,get:function(){return oe.recommendedRules}});Object.defineProperty(h,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return ge.resolveASTSchemaCoordinate}});Object.defineProperty(h,"resolveObjMapThunk",{enumerable:!0,get:function(){return R.resolveObjMapThunk}});Object.defineProperty(h,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return R.resolveReadonlyArrayThunk}});Object.defineProperty(h,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return ge.resolveSchemaCoordinate}});Object.defineProperty(h,"responsePathAsArray",{enumerable:!0,get:function(){return br.responsePathAsArray}});Object.defineProperty(h,"separateOperations",{enumerable:!0,get:function(){return ge.separateOperations}});Object.defineProperty(h,"specifiedDirectives",{enumerable:!0,get:function(){return R.specifiedDirectives}});Object.defineProperty(h,"specifiedRules",{enumerable:!0,get:function(){return oe.specifiedRules}});Object.defineProperty(h,"specifiedScalarTypes",{enumerable:!0,get:function(){return R.specifiedScalarTypes}});Object.defineProperty(h,"stripIgnoredCharacters",{enumerable:!0,get:function(){return ge.stripIgnoredCharacters}});Object.defineProperty(h,"subscribe",{enumerable:!0,get:function(){return br.subscribe}});Object.defineProperty(h,"syntaxError",{enumerable:!0,get:function(){return Ga.syntaxError}});Object.defineProperty(h,"typeFromAST",{enumerable:!0,get:function(){return ge.typeFromAST}});Object.defineProperty(h,"validate",{enumerable:!0,get:function(){return oe.validate}});Object.defineProperty(h,"validateSchema",{enumerable:!0,get:function(){return R.validateSchema}});Object.defineProperty(h,"valueFromAST",{enumerable:!0,get:function(){return ge.valueFromAST}});Object.defineProperty(h,"valueFromASTUntyped",{enumerable:!0,get:function(){return ge.valueFromASTUntyped}});Object.defineProperty(h,"version",{enumerable:!0,get:function(){return VI.version}});Object.defineProperty(h,"versionInfo",{enumerable:!0,get:function(){return VI.versionInfo}});Object.defineProperty(h,"visit",{enumerable:!0,get:function(){return he.visit}});Object.defineProperty(h,"visitInParallel",{enumerable:!0,get:function(){return he.visitInParallel}});Object.defineProperty(h,"visitWithTypeInfo",{enumerable:!0,get:function(){return ge.visitWithTypeInfo}});var VI=jE(),GI=kS(),R=AS(),he=LS(),br=qS(),oe=QS(),Ga=ZS(),ge=qI()});var nN=$((_J,Z4)=>{Z4.exports={name:"@jackchuka/gql-ingest",version:"4.2.8",description:"A CLI tool for ingesting data from files into a GraphQL API. Supports CSV, JSON, JSONL, and YAML file formats.",keywords:["api","cli","csv","graphql","ingest"],license:"MIT",author:"jackchuka",repository:{type:"git",url:"https://github.com/jackchuka/gql-ingest.git"},bin:{"gql-ingest":"dist/cli/index.js"},files:["dist"],type:"module",main:"dist/index.js",types:"dist/index.d.ts",exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js"}},scripts:{lint:"oxlint --type-aware --tsconfig ./tsconfig.json","lint:fix":"oxlint --fix --type-aware --tsconfig ./tsconfig.json",fmt:"oxfmt",build:"node esbuild.config.js","build:types":"tsc --emitDeclarationOnly","build:all":"pnpm run build && pnpm run build:types",dev:"ts-node src/cli/index.ts",test:"jest","test:watch":"jest --watch",prepublishOnly:"pnpm run build:all"},dependencies:{"@inquirer/prompts":"^8.2.0",commander:"^14.0.0","csv-parser":"^3.0.0",graphql:"16.14.0","graphql-request":"^7.2.0","js-yaml":"^4.1.0",tinyglobby:"^0.2.15",zod:"^4.3.5"},devDependencies:{"@types/jest":"^30.0.0","@types/js-yaml":"^4.0.9","@types/node":"^25.0.2",esbuild:"^0.28.0",jest:"^30.0.3",oxfmt:"^0.48.0",oxlint:"^1.35.0","oxlint-tsgolint":"^0.22.0","ts-jest":"^29.4.0","ts-node":"^10.9.0",typescript:"^6.0.2"},engines:{node:">=18"},packageManager:"pnpm@10.33.0"}});import{Command as B4}from"commander";import{readdir as Vk,readdirSync as Gk,realpath as Kk,realpathSync as Qk,stat as Zk,statSync as Bk}from"fs";import{isAbsolute as Jk,posix as dn,resolve as Hk}from"path";import{fileURLToPath as Yk}from"url";import{createRequire as lN}from"module";import{basename as pN,dirname as gl,normalize as dN,relative as fN,resolve as mN,sep as zb}from"path";import*as hN from"fs";var Fb=lN(import.meta.url);function gN(e){let t=dN(e);return t.length>1&&t[t.length-1]===zb&&(t=t.substring(0,t.length-1)),t}var vN=/[\\/]/g;function Mb(e,t){return e.replace(vN,t)}var yN=/^[a-z]:[\\/]$/i;function bN(e){return e==="/"||yN.test(e)}function hl(e,t){let{resolvePaths:n,normalizePath:i,pathSeparator:r}=t,o=process.platform==="win32"&&e.includes("/")||e.startsWith(".");if(n&&(e=mN(e)),(i||o)&&(e=gN(e)),e===".")return"";let a=e[e.length-1]!==r;return Mb(a?e+r:e,r)}function qb(e,t){return t+e}function _N(e,t){return function(n,i){return i.startsWith(e)?i.slice(e.length)+n:Mb(fN(e,i),t.pathSeparator)+t.pathSeparator+n}}function TN(e){return e}function $N(e,t,n){return t+e+n}function EN(e,t){let{relativePaths:n,includeBasePath:i}=t;return n&&e?_N(e,t):i?qb:TN}function xN(e){return function(t,n){n.push(t.substring(e.length)||".")}}function ON(e){return function(t,n,i){let r=t.substring(e.length)||".";i.every(o=>o(r,!0))&&n.push(r)}}var SN=(e,t)=>{t.push(e||".")},IN=(e,t,n)=>{let i=e||".";n.every(r=>r(i,!0))&&t.push(i)},NN=()=>{};function kN(e,t){let{includeDirs:n,filters:i,relativePaths:r}=t;return n?r?i&&i.length?ON(e):xN(e):i&&i.length?IN:SN:NN}var wN=(e,t,n,i)=>{i.every(r=>r(e,!1))&&n.files++},DN=(e,t,n,i)=>{i.every(r=>r(e,!1))&&t.push(e)},AN=(e,t,n,i)=>{n.files++},PN=(e,t)=>{t.push(e)},LN=()=>{};function RN(e){let{excludeFiles:t,filters:n,onlyCounts:i}=e;return t?LN:n&&n.length?i?wN:DN:i?AN:PN}var jN=e=>e,CN=()=>[""].slice(0,0);function FN(e){return e.group?CN:jN}var UN=(e,t,n)=>{e.push({directory:t,files:n,dir:t})},zN=()=>{};function MN(e){return e.group?UN:zN}var qN=function(e,t,n){let{queue:i,fs:r,options:{suppressErrors:o}}=t;i.enqueue(),r.realpath(e,(a,s)=>{if(a)return i.dequeue(o?null:a,t);r.stat(s,(u,c)=>{if(u)return i.dequeue(o?null:u,t);if(c.isDirectory()&&Vb(e,s,t))return i.dequeue(null,t);n(c,s),i.dequeue(null,t)})})},VN=function(e,t,n){let{queue:i,fs:r,options:{suppressErrors:o}}=t;i.enqueue();try{let a=r.realpathSync(e),s=r.statSync(a);if(s.isDirectory()&&Vb(e,a,t))return;n(s,a)}catch(a){if(!o)throw a}};function GN(e,t){return!e.resolveSymlinks||e.excludeSymlinks?null:t?VN:qN}function Vb(e,t,n){if(n.options.useRealPaths)return KN(t,n);let i=gl(e),r=1;for(;i!==n.root&&r<2;){let o=n.symlinks.get(i);!!o&&(o===t||o.startsWith(t)||t.startsWith(o))?r++:i=gl(i)}return n.symlinks.set(e,t),r>1}function KN(e,t){return t.visited.includes(e+t.options.pathSeparator)}var QN=e=>e.counts,ZN=e=>e.groups,BN=e=>e.paths,JN=e=>e.paths.slice(0,e.options.maxFiles),HN=(e,t,n)=>(Xa(t,n,e.counts,e.options.suppressErrors),null),YN=(e,t,n)=>(Xa(t,n,e.paths,e.options.suppressErrors),null),WN=(e,t,n)=>(Xa(t,n,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),XN=(e,t,n)=>(Xa(t,n,e.groups,e.options.suppressErrors),null);function Xa(e,t,n,i){t(e&&!i?e:null,n)}function ek(e,t){let{onlyCounts:n,group:i,maxFiles:r}=e;return n?t?QN:HN:i?t?ZN:XN:r?t?JN:WN:t?BN:YN}var Gb={withFileTypes:!0},tk=(e,t,n,i,r)=>{if(e.queue.enqueue(),i<0)return e.queue.dequeue(null,e);let{fs:o}=e;e.visited.push(t),e.counts.directories++,o.readdir(t||".",Gb,(a,s=[])=>{r(s,n,i),e.queue.dequeue(e.options.suppressErrors?null:a,e)})},rk=(e,t,n,i,r)=>{let{fs:o}=e;if(i<0)return;e.visited.push(t),e.counts.directories++;let a=[];try{a=o.readdirSync(t||".",Gb)}catch(s){if(!e.options.suppressErrors)throw s}r(a,n,i)};function nk(e){return e?rk:tk}var ik=class{count=0;constructor(e){this.onQueueEmpty=e}enqueue(){return this.count++,this.count}dequeue(e,t){this.onQueueEmpty&&(--this.count<=0||e)&&(this.onQueueEmpty(e,t),e&&(t.controller.abort(),this.onQueueEmpty=void 0))}},ok=class{_files=0;_directories=0;set files(e){this._files=e}get files(){return this._files}set directories(e){this._directories=e}get directories(){return this._directories}get dirs(){return this._directories}},ak=class{aborted=!1;abort(){this.aborted=!0}},Kb=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,t,n){this.isSynchronous=!n,this.callbackInvoker=ek(t,this.isSynchronous),this.root=hl(e,t),this.state={root:bN(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new ok,options:t,queue:new ik((i,r)=>this.callbackInvoker(r,i,n)),symlinks:new Map,visited:[""].slice(0,0),controller:new ak,fs:t.fs||hN},this.joinPath=EN(this.root,t),this.pushDirectory=kN(this.root,t),this.pushFile=RN(t),this.getArray=FN(t),this.groupFiles=MN(t),this.resolveSymlink=GN(t,this.isSynchronous),this.walkDirectory=nk(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(e,t,n)=>{let{paths:i,options:{filters:r,resolveSymlinks:o,excludeSymlinks:a,exclude:s,maxFiles:u,signal:c,useRealPaths:l,pathSeparator:p},controller:d}=this.state;if(d.aborted||c&&c.aborted||u&&i.length>u)return;let f=this.getArray(this.state.paths);for(let m=0;m<e.length;++m){let E=e[m];if(E.isFile()||E.isSymbolicLink()&&!o&&!a){let N=this.joinPath(E.name,t);this.pushFile(N,f,this.state.counts,r)}else if(E.isDirectory()){let N=$N(E.name,t,this.state.options.pathSeparator);if(s&&s(E.name,N))continue;this.pushDirectory(N,i,r),this.walkDirectory(this.state,N,N,n-1,this.walk)}else if(this.resolveSymlink&&E.isSymbolicLink()){let N=qb(E.name,t);this.resolveSymlink(N,this.state,(F,x)=>{if(F.isDirectory()){if(x=hl(x,this.state.options),s&&s(E.name,l?x:N+p))return;this.walkDirectory(this.state,x,l?x:N+p,n-1,this.walk)}else{x=l?x:N;let M=pN(x),V=hl(gl(x),this.state.options);x=this.joinPath(M,V),this.pushFile(x,f,this.state.counts,r)}})}}this.groupFiles(this.state.groups,t,f)}};function sk(e,t){return new Promise((n,i)=>{Qb(e,t,(r,o)=>{if(r)return i(r);n(o)})})}function Qb(e,t,n){new Kb(e,t,n).start()}function uk(e,t){return new Kb(e,t).start()}var Ub=class{constructor(e,t){this.root=e,this.options=t}withPromise(){return sk(this.root,this.options)}withCallback(e){Qb(this.root,this.options,e)}sync(){return uk(this.root,this.options)}},Zb=null;try{Fb.resolve("picomatch"),Zb=Fb("picomatch")}catch{}var Bb=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:zb,filters:[]};globFunction;constructor(e){this.options={...this.options,...e},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(e){return this.options.pathSeparator=e,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(e){return this.options.maxDepth=e,this}withMaxFiles(e){return this.options.maxFiles=e,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:e=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=e,this.withFullPaths()}withAbortSignal(e){return this.options.signal=e,this}normalize(){return this.options.normalizePath=!0,this}filter(e){return this.options.filters.push(e),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(e){return this.options.exclude=e,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(e){return new Ub(e||".",this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,t){return this.options={...this.options,...t},new Ub(e||".",this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...t){let n=this.globFunction||Zb;if(!n)throw new Error("Please specify a glob function to use glob matching.");var i=this.globCache[e.join("\0")];return i||(i=n(e,...t),this.globCache[e.join("\0")]=i),this.options.filters.push(r=>i(r)),this}};var Jn=Cb(b_(),1),Wk=Array.isArray,T_=/\\/g,$_=process.platform==="win32",Xk=/^(\/?\.\.)+$/;function ew(e,t={}){let n=e.length,i=Array(n),r=Array(n),o,a;for(o=0;o<n;o++){let s=E_(e[o]);i[o]=s;let u=s.length,c=Array(u);for(a=0;a<u;a++)c[a]=(0,Jn.default)(s[a],t);r[o]=c}return s=>{let u=s.split("/");if(u[0]===".."&&Xk.test(s))return!0;for(o=0;o<n;o++){let c=i[o],l=r[o],p=u.length,d=Math.min(p,c.length);for(a=0;a<d;){let f=c[a];if(f.includes("/"))return!0;if(!l[a](u[a]))break;if(!t.noglobstar&&f==="**")return!0;a++}if(a===p)return!0}return!1}}var tw=/^[A-Z]:\/$/i,rw=$_?e=>tw.test(e):e=>e==="/";function __(e,t,n){if(e===t||t.startsWith(`${e}/`)){if(n){let r=e.length+ +!rw(e);return(o,a)=>o.slice(r,a?-1:void 0)||"."}let i=t.slice(e.length+1);return i?(r,o)=>{if(r===".")return i;let a=`${i}/${r}`;return o?a.slice(0,-1):a}:(r,o)=>o&&r!=="."?r.slice(0,-1):r}return n?i=>dn.relative(e,i)||".":i=>dn.relative(e,`${t}/${i}`)||"."}function nw(e,t){if(t.startsWith(`${e}/`)){let n=t.slice(e.length+1);return i=>`${n}/${i}`}return n=>{let i=dn.relative(e,`${t}/${n}`);return n[n.length-1]==="/"&&i!==""?`${i}/`:i||"."}}var iw={parts:!0};function E_(e){var t;let n=Jn.default.scan(e,iw);return!((t=n.parts)===null||t===void 0)&&t.length?n.parts:[e]}var ow=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,aw=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,sw=e=>e.replace(ow,"\\$&"),uw=e=>e.replace(aw,"\\$&"),cw=$_?uw:sw;function lw(e,t){if(t?.caseSensitiveMatch===!1)return!0;let n=Jn.default.scan(e);return n.isGlob||n.negated}function io(...e){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...e)}function x_(e){return typeof e=="string"?[e]:e??[]}var pw=/^(\/?\.\.)+/,dw=/\\(?=[()[\]{}!*+?@|])/g;function Il(e,t,n,i){var r;let o=t.cwd,a=e;e[e.length-1]==="/"&&(a=e.slice(0,-1)),a[a.length-1]!=="*"&&t.expandDirectories&&(a+="/**");let s=cw(o);a=Jk(a.replace(dw,""))?dn.relative(s,a):dn.normalize(a);let u=(r=pw.exec(a))===null||r===void 0?void 0:r[0],c=E_(a);if(u){let p=(u.length+1)/3,d=0,f=s.split("/");for(;d<p&&c[d+p]===f[f.length+d-p];)a=a.slice(0,(p-d-1)*3)+a.slice((p-d)*3+c[d+p].length+1)||".",d++;let m=dn.join(o,u.slice(d*3));m[0]!=="."&&n.root.length>m.length&&(n.root=m,n.depthOffset=-p+d)}if(!i&&n.depthOffset>=0){var l;(l=n.commonPath)!==null&&l!==void 0||(n.commonPath=c);let p=[],d=Math.min(n.commonPath.length,c.length);for(let f=0;f<d;f++){let m=c[f];if(m==="**"&&!c[f+1]){p.pop();break}if(f===c.length-1||m!==n.commonPath[f]||lw(m))break;p.push(m)}n.depthOffset=p.length,n.commonPath=p,n.root=p.length>0?dn.join(o,...p):o}return a}function fw(e,t,n){let i=[],r=[];for(let o of e.ignore)o&&(o[0]!=="!"||o[1]==="(")&&r.push(Il(o,e,n,!0));for(let o of t)o&&(o[0]!=="!"||o[1]==="("?i.push(Il(o,e,n,!1)):(o[1]!=="!"||o[2]==="(")&&r.push(Il(o.slice(1),e,n,!0)));return{match:i,ignore:r}}function mw(e,t){let n=e.cwd,i={root:n,depthOffset:0},r=fw(e,t,i);e.debug&&io("internal processing patterns:",r);let{absolute:o,caseSensitiveMatch:a,debug:s,dot:u,followSymbolicLinks:c,onlyDirectories:l}=e,p=i.root.replace(T_,""),d={dot:u,nobrace:e.braceExpansion===!1,nocase:!a,noextglob:e.extglob===!1,noglobstar:e.globstar===!1,posix:!0},f=(0,Jn.default)(r.match,d),m=(0,Jn.default)(r.ignore,d),E=ew(r.match,d),N=__(n,p,o),F=o?N:__(n,p,!0),x=(Y,ne)=>{let se=F(ne,!0);return se!=="."&&!E(se)||m(se)},M;e.deep!==void 0&&(M=Math.round(e.deep-i.depthOffset));let V=new Bb({filters:[s?(Y,ne)=>{let se=N(Y,ne),K=f(se)&&!m(se);return K&&io(`matched ${se}`),K}:(Y,ne)=>{let se=N(Y,ne);return f(se)&&!m(se)}],exclude:s?(Y,ne)=>{let se=x(Y,ne);return io(`${se?"skipped":"crawling"} ${ne}`),se}:x,fs:e.fs,pathSeparator:"/",relativePaths:!o,resolvePaths:o,includeBasePath:o,resolveSymlinks:c,excludeSymlinks:!c,excludeFiles:l,includeDirs:l||!e.onlyFiles,maxDepth:M,signal:e.signal}).crawl(p);return e.debug&&io("internal properties:",{...i,root:p}),[V,n!==p&&!o&&nw(n,p)]}function hw(e,t){if(t)for(let n=e.length-1;n>=0;n--)e[n]=t(e[n]);return e}var gw={caseSensitiveMatch:!0,cwd:process.cwd(),debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function vw(e){let t={...gw,...e};return t.cwd=(t.cwd instanceof URL?Yk(t.cwd):Hk(t.cwd)).replace(T_,"/"),t.ignore=x_(t.ignore),t.fs&&(t.fs={readdir:t.fs.readdir||Vk,readdirSync:t.fs.readdirSync||Gk,realpath:t.fs.realpath||Kk,realpathSync:t.fs.realpathSync||Qk,stat:t.fs.stat||Zk,statSync:t.fs.statSync||Bk}),t.debug&&io("globbing with options:",t),t}function yw(e,t={}){var n;if(e&&t?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");let i=Wk(e)||typeof e=="string",r=x_((n=i?e:e.patterns)!==null&&n!==void 0?n:"**/*"),o=vw(i?t:e);return r.length>0?mw(o,r):[]}function O_(e,t){let[n,i]=yw(e,t);return n?hw(n.sync(),i):[]}import{EventEmitter as L4}from"events";import{GraphQLClient as NR}from"graphql-request";import SR from"fs";function M_(e){return typeof e>"u"||e===null}function bw(e){return typeof e=="object"&&e!==null}function _w(e){return Array.isArray(e)?e:M_(e)?[]:[e]}function Tw(e,t){var n,i,r,o;if(t)for(o=Object.keys(t),n=0,i=o.length;n<i;n+=1)r=o[n],e[r]=t[r];return e}function $w(e,t){var n="",i;for(i=0;i<t;i+=1)n+=e;return n}function Ew(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var xw=M_,Ow=bw,Sw=_w,Iw=$w,Nw=Ew,kw=Tw,Be={isNothing:xw,isObject:Ow,toArray:Sw,repeat:Iw,isNegativeZero:Nw,extend:kw};function q_(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
154
+ `}});var bI=$(kb=>{"use strict";Object.defineProperty(kb,"__esModule",{value:!0});kb.concatAST=UV;var FV=le();function UV(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:FV.Kind.DOCUMENT,definitions:t}}});var $I=$(wb=>{"use strict";Object.defineProperty(wb,"__esModule",{value:!0});wb.separateOperations=MV;var al=le(),zV=kn();function MV(e){let t=[],n=Object.create(null);for(let r of e.definitions)switch(r.kind){case al.Kind.OPERATION_DEFINITION:t.push(r);break;case al.Kind.FRAGMENT_DEFINITION:n[r.name.value]=_I(r.selectionSet);break;default:}let i=Object.create(null);for(let r of t){let o=new Set;for(let s of _I(r.selectionSet))TI(o,n,s);let a=r.name?r.name.value:"";i[a]={kind:al.Kind.DOCUMENT,definitions:e.definitions.filter(s=>s===r||s.kind===al.Kind.FRAGMENT_DEFINITION&&o.has(s.name.value))}}return i}function TI(e,t,n){if(!e.has(n)){e.add(n);let i=t[n];if(i!==void 0)for(let r of i)TI(e,t,r)}}function _I(e){let t=[];return(0,zV.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var OI=$(Ab=>{"use strict";Object.defineProperty(Ab,"__esModule",{value:!0});Ab.stripIgnoredCharacters=VV;var qV=Ho(),EI=Xo(),xI=Wu(),Db=Ri();function VV(e){let t=(0,xI.isSource)(e)?e:new xI.Source(e),n=t.body,i=new EI.Lexer(t),r="",o=!1;for(;i.advance().kind!==Db.TokenKind.EOF;){let a=i.token,s=a.kind,u=!(0,EI.isPunctuatorTokenKind)(a.kind);o&&(u||a.kind===Db.TokenKind.SPREAD)&&(r+=" ");let c=n.slice(a.start,a.end);s===Db.TokenKind.BLOCK_STRING?r+=(0,qV.printBlockString)(a.value,{minimize:!0}):r+=c,o=u}return r}});var II=$(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.assertValidName=ZV;sl.isValidNameError=SI;var GV=mt(),KV=J(),QV=oa();function ZV(e){let t=SI(e);if(t)throw t;return e}function SI(e){if(typeof e=="string"||(0,GV.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new KV.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,QV.assertName)(e)}catch(t){return t}}});var RI=$(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.DangerousChangeType=yr.BreakingChangeType=void 0;yr.findBreakingChanges=XV;yr.findDangerousChanges=e4;var BV=_e(),PI=it(),NI=tn(),JV=kt(),ye=pe(),HV=mr(),YV=va(),WV=Rv(),Me;yr.BreakingChangeType=Me;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(Me||(yr.BreakingChangeType=Me={}));var ir;yr.DangerousChangeType=ir;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(ir||(yr.DangerousChangeType=ir={}));function XV(e,t){return LI(e,t).filter(n=>n.type in Me)}function e4(e,t){return LI(e,t).filter(n=>n.type in ir)}function LI(e,t){return[...r4(e,t),...t4(e,t)]}function t4(e,t){let n=[],i=Rr(e.getDirectives(),t.getDirectives());for(let r of i.removed)n.push({type:Me.DIRECTIVE_REMOVED,description:`${r.name} was removed.`});for(let[r,o]of i.persisted){let a=Rr(r.args,o.args);for(let s of a.added)(0,ye.isRequiredArgument)(s)&&n.push({type:Me.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${s.name} on directive ${r.name} was added.`});for(let s of a.removed)n.push({type:Me.DIRECTIVE_ARG_REMOVED,description:`${s.name} was removed from ${r.name}.`});r.isRepeatable&&!o.isRepeatable&&n.push({type:Me.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${r.name}.`});for(let s of r.locations)o.locations.includes(s)||n.push({type:Me.DIRECTIVE_LOCATION_REMOVED,description:`${s} was removed from ${r.name}.`})}return n}function r4(e,t){let n=[],i=Rr(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let r of i.removed)n.push({type:Me.TYPE_REMOVED,description:(0,HV.isSpecifiedScalarType)(r)?`Standard scalar ${r.name} was removed because it is not referenced anymore.`:`${r.name} was removed.`});for(let[r,o]of i.persisted)(0,ye.isEnumType)(r)&&(0,ye.isEnumType)(o)?n.push(...o4(r,o)):(0,ye.isUnionType)(r)&&(0,ye.isUnionType)(o)?n.push(...i4(r,o)):(0,ye.isInputObjectType)(r)&&(0,ye.isInputObjectType)(o)?n.push(...n4(r,o)):(0,ye.isObjectType)(r)&&(0,ye.isObjectType)(o)?n.push(...wI(r,o),...kI(r,o)):(0,ye.isInterfaceType)(r)&&(0,ye.isInterfaceType)(o)?n.push(...wI(r,o),...kI(r,o)):r.constructor!==o.constructor&&n.push({type:Me.TYPE_CHANGED_KIND,description:`${r.name} changed from ${DI(r)} to ${DI(o)}.`});return n}function n4(e,t){let n=[],i=Rr(Object.values(e.getFields()),Object.values(t.getFields()));for(let r of i.added)(0,ye.isRequiredInputField)(r)?n.push({type:Me.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${r.name} on input type ${e.name} was added.`}):n.push({type:ir.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${r.name} on input type ${e.name} was added.`});for(let r of i.removed)n.push({type:Me.FIELD_REMOVED,description:`${e.name}.${r.name} was removed.`});for(let[r,o]of i.persisted)qa(r.type,o.type)||n.push({type:Me.FIELD_CHANGED_KIND,description:`${e.name}.${r.name} changed type from ${String(r.type)} to ${String(o.type)}.`});return n}function i4(e,t){let n=[],i=Rr(e.getTypes(),t.getTypes());for(let r of i.added)n.push({type:ir.TYPE_ADDED_TO_UNION,description:`${r.name} was added to union type ${e.name}.`});for(let r of i.removed)n.push({type:Me.TYPE_REMOVED_FROM_UNION,description:`${r.name} was removed from union type ${e.name}.`});return n}function o4(e,t){let n=[],i=Rr(e.getValues(),t.getValues());for(let r of i.added)n.push({type:ir.VALUE_ADDED_TO_ENUM,description:`${r.name} was added to enum type ${e.name}.`});for(let r of i.removed)n.push({type:Me.VALUE_REMOVED_FROM_ENUM,description:`${r.name} was removed from enum type ${e.name}.`});return n}function kI(e,t){let n=[],i=Rr(e.getInterfaces(),t.getInterfaces());for(let r of i.added)n.push({type:ir.IMPLEMENTED_INTERFACE_ADDED,description:`${r.name} added to interfaces implemented by ${e.name}.`});for(let r of i.removed)n.push({type:Me.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${r.name}.`});return n}function wI(e,t){let n=[],i=Rr(Object.values(e.getFields()),Object.values(t.getFields()));for(let r of i.removed)n.push({type:Me.FIELD_REMOVED,description:`${e.name}.${r.name} was removed.`});for(let[r,o]of i.persisted)n.push(...a4(e,r,o)),Ma(r.type,o.type)||n.push({type:Me.FIELD_CHANGED_KIND,description:`${e.name}.${r.name} changed type from ${String(r.type)} to ${String(o.type)}.`});return n}function a4(e,t,n){let i=[],r=Rr(t.args,n.args);for(let o of r.removed)i.push({type:Me.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(let[o,a]of r.persisted)if(!qa(o.type,a.type))i.push({type:Me.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(a.type)}.`});else if(o.defaultValue!==void 0)if(a.defaultValue===void 0)i.push({type:ir.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{let u=AI(o.defaultValue,o.type),c=AI(a.defaultValue,a.type);u!==c&&i.push({type:ir.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} has changed defaultValue from ${u} to ${c}.`})}for(let o of r.added)(0,ye.isRequiredArgument)(o)?i.push({type:Me.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):i.push({type:ir.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return i}function Ma(e,t){return(0,ye.isListType)(e)?(0,ye.isListType)(t)&&Ma(e.ofType,t.ofType)||(0,ye.isNonNullType)(t)&&Ma(e,t.ofType):(0,ye.isNonNullType)(e)?(0,ye.isNonNullType)(t)&&Ma(e.ofType,t.ofType):(0,ye.isNamedType)(t)&&e.name===t.name||(0,ye.isNonNullType)(t)&&Ma(e,t.ofType)}function qa(e,t){return(0,ye.isListType)(e)?(0,ye.isListType)(t)&&qa(e.ofType,t.ofType):(0,ye.isNonNullType)(e)?(0,ye.isNonNullType)(t)&&qa(e.ofType,t.ofType)||!(0,ye.isNonNullType)(t)&&qa(e.ofType,t):(0,ye.isNamedType)(t)&&e.name===t.name}function DI(e){if((0,ye.isScalarType)(e))return"a Scalar type";if((0,ye.isObjectType)(e))return"an Object type";if((0,ye.isInterfaceType)(e))return"an Interface type";if((0,ye.isUnionType)(e))return"a Union type";if((0,ye.isEnumType)(e))return"an Enum type";if((0,ye.isInputObjectType)(e))return"an Input type";(0,PI.invariant)(!1,"Unexpected type: "+(0,BV.inspect)(e))}function AI(e,t){let n=(0,YV.astFromValue)(e,t);return n!=null||(0,PI.invariant)(!1),(0,JV.print)((0,WV.sortValueNode)(n))}function Rr(e,t){let n=[],i=[],r=[],o=(0,NI.keyMap)(e,({name:s})=>s),a=(0,NI.keyMap)(t,({name:s})=>s);for(let s of e){let u=a[s.name];u===void 0?i.push(s):r.push([s,u])}for(let s of t)o[s.name]===void 0&&n.push(s);return{added:n,persisted:r,removed:i}}});var CI=$(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.resolveASTSchemaCoordinate=jI;ul.resolveSchemaCoordinate=u4;var Gn=_e(),Va=le(),s4=Nn(),ln=pe();function u4(e,t){return jI(e,(0,s4.parseSchemaCoordinate)(t))}function c4(e,t){let n=t.name.value,i=e.getType(n);if(i!=null)return{kind:"NamedType",type:i}}function l4(e,t){let n=t.name.value,i=e.getType(n);if(!i)throw new Error(`Expected ${(0,Gn.inspect)(n)} to be defined as a type in the schema.`);if(!(0,ln.isEnumType)(i)&&!(0,ln.isInputObjectType)(i)&&!(0,ln.isObjectType)(i)&&!(0,ln.isInterfaceType)(i))throw new Error(`Expected ${(0,Gn.inspect)(n)} to be an Enum, Input Object, Object or Interface type.`);if((0,ln.isEnumType)(i)){let a=t.memberName.value,s=i.getValue(a);return s==null?void 0:{kind:"EnumValue",type:i,enumValue:s}}if((0,ln.isInputObjectType)(i)){let a=t.memberName.value,s=i.getFields()[a];return s==null?void 0:{kind:"InputField",type:i,inputField:s}}let r=t.memberName.value,o=i.getFields()[r];if(o!=null)return{kind:"Field",type:i,field:o}}function p4(e,t){let n=t.name.value,i=e.getType(n);if(i==null)throw new Error(`Expected ${(0,Gn.inspect)(n)} to be defined as a type in the schema.`);if(!(0,ln.isObjectType)(i)&&!(0,ln.isInterfaceType)(i))throw new Error(`Expected ${(0,Gn.inspect)(n)} to be an object type or interface type.`);let r=t.fieldName.value,o=i.getFields()[r];if(o==null)throw new Error(`Expected ${(0,Gn.inspect)(r)} to exist as a field of type ${(0,Gn.inspect)(n)} in the schema.`);let a=t.argumentName.value,s=o.args.find(u=>u.name===a);if(s!=null)return{kind:"FieldArgument",type:i,field:o,fieldArgument:s}}function d4(e,t){let n=t.name.value,i=e.getDirective(n);if(i)return{kind:"Directive",directive:i}}function f4(e,t){let n=t.name.value,i=e.getDirective(n);if(!i)throw new Error(`Expected ${(0,Gn.inspect)(n)} to be defined as a directive in the schema.`);let{argumentName:{value:r}}=t,o=i.args.find(a=>a.name===r);if(o)return{kind:"DirectiveArgument",directive:i,directiveArgument:o}}function jI(e,t){switch(t.kind){case Va.Kind.TYPE_COORDINATE:return c4(e,t);case Va.Kind.MEMBER_COORDINATE:return l4(e,t);case Va.Kind.ARGUMENT_COORDINATE:return p4(e,t);case Va.Kind.DIRECTIVE_COORDINATE:return d4(e,t);case Va.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return f4(e,t)}}});var qI=$(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});Object.defineProperty(fe,"BreakingChangeType",{enumerable:!0,get:function(){return cl.BreakingChangeType}});Object.defineProperty(fe,"DangerousChangeType",{enumerable:!0,get:function(){return cl.DangerousChangeType}});Object.defineProperty(fe,"TypeInfo",{enumerable:!0,get:function(){return UI.TypeInfo}});Object.defineProperty(fe,"assertValidName",{enumerable:!0,get:function(){return zI.assertValidName}});Object.defineProperty(fe,"astFromValue",{enumerable:!0,get:function(){return x4.astFromValue}});Object.defineProperty(fe,"buildASTSchema",{enumerable:!0,get:function(){return FI.buildASTSchema}});Object.defineProperty(fe,"buildClientSchema",{enumerable:!0,get:function(){return y4.buildClientSchema}});Object.defineProperty(fe,"buildSchema",{enumerable:!0,get:function(){return FI.buildSchema}});Object.defineProperty(fe,"coerceInputValue",{enumerable:!0,get:function(){return O4.coerceInputValue}});Object.defineProperty(fe,"concatAST",{enumerable:!0,get:function(){return S4.concatAST}});Object.defineProperty(fe,"doTypesOverlap",{enumerable:!0,get:function(){return Lb.doTypesOverlap}});Object.defineProperty(fe,"extendSchema",{enumerable:!0,get:function(){return b4.extendSchema}});Object.defineProperty(fe,"findBreakingChanges",{enumerable:!0,get:function(){return cl.findBreakingChanges}});Object.defineProperty(fe,"findDangerousChanges",{enumerable:!0,get:function(){return cl.findDangerousChanges}});Object.defineProperty(fe,"getIntrospectionQuery",{enumerable:!0,get:function(){return m4.getIntrospectionQuery}});Object.defineProperty(fe,"getOperationAST",{enumerable:!0,get:function(){return h4.getOperationAST}});Object.defineProperty(fe,"getOperationRootType",{enumerable:!0,get:function(){return g4.getOperationRootType}});Object.defineProperty(fe,"introspectionFromSchema",{enumerable:!0,get:function(){return v4.introspectionFromSchema}});Object.defineProperty(fe,"isEqualType",{enumerable:!0,get:function(){return Lb.isEqualType}});Object.defineProperty(fe,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Lb.isTypeSubTypeOf}});Object.defineProperty(fe,"isValidNameError",{enumerable:!0,get:function(){return zI.isValidNameError}});Object.defineProperty(fe,"lexicographicSortSchema",{enumerable:!0,get:function(){return _4.lexicographicSortSchema}});Object.defineProperty(fe,"printIntrospectionSchema",{enumerable:!0,get:function(){return Pb.printIntrospectionSchema}});Object.defineProperty(fe,"printSchema",{enumerable:!0,get:function(){return Pb.printSchema}});Object.defineProperty(fe,"printType",{enumerable:!0,get:function(){return Pb.printType}});Object.defineProperty(fe,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return MI.resolveASTSchemaCoordinate}});Object.defineProperty(fe,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return MI.resolveSchemaCoordinate}});Object.defineProperty(fe,"separateOperations",{enumerable:!0,get:function(){return I4.separateOperations}});Object.defineProperty(fe,"stripIgnoredCharacters",{enumerable:!0,get:function(){return N4.stripIgnoredCharacters}});Object.defineProperty(fe,"typeFromAST",{enumerable:!0,get:function(){return T4.typeFromAST}});Object.defineProperty(fe,"valueFromAST",{enumerable:!0,get:function(){return $4.valueFromAST}});Object.defineProperty(fe,"valueFromASTUntyped",{enumerable:!0,get:function(){return E4.valueFromASTUntyped}});Object.defineProperty(fe,"visitWithTypeInfo",{enumerable:!0,get:function(){return UI.visitWithTypeInfo}});var m4=gb(),h4=BS(),g4=JS(),v4=HS(),y4=WS(),FI=uI(),b4=$b(),_4=pI(),Pb=yI(),T4=hr(),$4=Ia(),E4=Dg(),x4=va(),UI=Nc(),O4=ny(),S4=bI(),I4=$I(),N4=OI(),Lb=la(),zI=II(),cl=RI(),MI=CI()});var KI=$(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});Object.defineProperty(h,"BREAK",{enumerable:!0,get:function(){return he.BREAK}});Object.defineProperty(h,"BreakingChangeType",{enumerable:!0,get:function(){return ge.BreakingChangeType}});Object.defineProperty(h,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return R.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(h,"DangerousChangeType",{enumerable:!0,get:function(){return ge.DangerousChangeType}});Object.defineProperty(h,"DirectiveLocation",{enumerable:!0,get:function(){return he.DirectiveLocation}});Object.defineProperty(h,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return oe.ExecutableDefinitionsRule}});Object.defineProperty(h,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return oe.FieldsOnCorrectTypeRule}});Object.defineProperty(h,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return oe.FragmentsOnCompositeTypesRule}});Object.defineProperty(h,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return R.GRAPHQL_MAX_INT}});Object.defineProperty(h,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return R.GRAPHQL_MIN_INT}});Object.defineProperty(h,"GraphQLBoolean",{enumerable:!0,get:function(){return R.GraphQLBoolean}});Object.defineProperty(h,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return R.GraphQLDeprecatedDirective}});Object.defineProperty(h,"GraphQLDirective",{enumerable:!0,get:function(){return R.GraphQLDirective}});Object.defineProperty(h,"GraphQLEnumType",{enumerable:!0,get:function(){return R.GraphQLEnumType}});Object.defineProperty(h,"GraphQLError",{enumerable:!0,get:function(){return Ga.GraphQLError}});Object.defineProperty(h,"GraphQLFloat",{enumerable:!0,get:function(){return R.GraphQLFloat}});Object.defineProperty(h,"GraphQLID",{enumerable:!0,get:function(){return R.GraphQLID}});Object.defineProperty(h,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return R.GraphQLIncludeDirective}});Object.defineProperty(h,"GraphQLInputObjectType",{enumerable:!0,get:function(){return R.GraphQLInputObjectType}});Object.defineProperty(h,"GraphQLInt",{enumerable:!0,get:function(){return R.GraphQLInt}});Object.defineProperty(h,"GraphQLInterfaceType",{enumerable:!0,get:function(){return R.GraphQLInterfaceType}});Object.defineProperty(h,"GraphQLList",{enumerable:!0,get:function(){return R.GraphQLList}});Object.defineProperty(h,"GraphQLNonNull",{enumerable:!0,get:function(){return R.GraphQLNonNull}});Object.defineProperty(h,"GraphQLObjectType",{enumerable:!0,get:function(){return R.GraphQLObjectType}});Object.defineProperty(h,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return R.GraphQLOneOfDirective}});Object.defineProperty(h,"GraphQLScalarType",{enumerable:!0,get:function(){return R.GraphQLScalarType}});Object.defineProperty(h,"GraphQLSchema",{enumerable:!0,get:function(){return R.GraphQLSchema}});Object.defineProperty(h,"GraphQLSkipDirective",{enumerable:!0,get:function(){return R.GraphQLSkipDirective}});Object.defineProperty(h,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return R.GraphQLSpecifiedByDirective}});Object.defineProperty(h,"GraphQLString",{enumerable:!0,get:function(){return R.GraphQLString}});Object.defineProperty(h,"GraphQLUnionType",{enumerable:!0,get:function(){return R.GraphQLUnionType}});Object.defineProperty(h,"Kind",{enumerable:!0,get:function(){return he.Kind}});Object.defineProperty(h,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return oe.KnownArgumentNamesRule}});Object.defineProperty(h,"KnownDirectivesRule",{enumerable:!0,get:function(){return oe.KnownDirectivesRule}});Object.defineProperty(h,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return oe.KnownFragmentNamesRule}});Object.defineProperty(h,"KnownTypeNamesRule",{enumerable:!0,get:function(){return oe.KnownTypeNamesRule}});Object.defineProperty(h,"Lexer",{enumerable:!0,get:function(){return he.Lexer}});Object.defineProperty(h,"Location",{enumerable:!0,get:function(){return he.Location}});Object.defineProperty(h,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return oe.LoneAnonymousOperationRule}});Object.defineProperty(h,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return oe.LoneSchemaDefinitionRule}});Object.defineProperty(h,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return oe.MaxIntrospectionDepthRule}});Object.defineProperty(h,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return oe.NoDeprecatedCustomRule}});Object.defineProperty(h,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return oe.NoFragmentCyclesRule}});Object.defineProperty(h,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return oe.NoSchemaIntrospectionCustomRule}});Object.defineProperty(h,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return oe.NoUndefinedVariablesRule}});Object.defineProperty(h,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return oe.NoUnusedFragmentsRule}});Object.defineProperty(h,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return oe.NoUnusedVariablesRule}});Object.defineProperty(h,"OperationTypeNode",{enumerable:!0,get:function(){return he.OperationTypeNode}});Object.defineProperty(h,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return oe.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(h,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return oe.PossibleFragmentSpreadsRule}});Object.defineProperty(h,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return oe.PossibleTypeExtensionsRule}});Object.defineProperty(h,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return oe.ProvidedRequiredArgumentsRule}});Object.defineProperty(h,"ScalarLeafsRule",{enumerable:!0,get:function(){return oe.ScalarLeafsRule}});Object.defineProperty(h,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return R.SchemaMetaFieldDef}});Object.defineProperty(h,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return oe.SingleFieldSubscriptionsRule}});Object.defineProperty(h,"Source",{enumerable:!0,get:function(){return he.Source}});Object.defineProperty(h,"Token",{enumerable:!0,get:function(){return he.Token}});Object.defineProperty(h,"TokenKind",{enumerable:!0,get:function(){return he.TokenKind}});Object.defineProperty(h,"TypeInfo",{enumerable:!0,get:function(){return ge.TypeInfo}});Object.defineProperty(h,"TypeKind",{enumerable:!0,get:function(){return R.TypeKind}});Object.defineProperty(h,"TypeMetaFieldDef",{enumerable:!0,get:function(){return R.TypeMetaFieldDef}});Object.defineProperty(h,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return R.TypeNameMetaFieldDef}});Object.defineProperty(h,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return oe.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(h,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return oe.UniqueArgumentNamesRule}});Object.defineProperty(h,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return oe.UniqueDirectiveNamesRule}});Object.defineProperty(h,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return oe.UniqueDirectivesPerLocationRule}});Object.defineProperty(h,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return oe.UniqueEnumValueNamesRule}});Object.defineProperty(h,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return oe.UniqueFieldDefinitionNamesRule}});Object.defineProperty(h,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return oe.UniqueFragmentNamesRule}});Object.defineProperty(h,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return oe.UniqueInputFieldNamesRule}});Object.defineProperty(h,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return oe.UniqueOperationNamesRule}});Object.defineProperty(h,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return oe.UniqueOperationTypesRule}});Object.defineProperty(h,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return oe.UniqueTypeNamesRule}});Object.defineProperty(h,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return oe.UniqueVariableNamesRule}});Object.defineProperty(h,"ValidationContext",{enumerable:!0,get:function(){return oe.ValidationContext}});Object.defineProperty(h,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return oe.ValuesOfCorrectTypeRule}});Object.defineProperty(h,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return oe.VariablesAreInputTypesRule}});Object.defineProperty(h,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return oe.VariablesInAllowedPositionRule}});Object.defineProperty(h,"__Directive",{enumerable:!0,get:function(){return R.__Directive}});Object.defineProperty(h,"__DirectiveLocation",{enumerable:!0,get:function(){return R.__DirectiveLocation}});Object.defineProperty(h,"__EnumValue",{enumerable:!0,get:function(){return R.__EnumValue}});Object.defineProperty(h,"__Field",{enumerable:!0,get:function(){return R.__Field}});Object.defineProperty(h,"__InputValue",{enumerable:!0,get:function(){return R.__InputValue}});Object.defineProperty(h,"__Schema",{enumerable:!0,get:function(){return R.__Schema}});Object.defineProperty(h,"__Type",{enumerable:!0,get:function(){return R.__Type}});Object.defineProperty(h,"__TypeKind",{enumerable:!0,get:function(){return R.__TypeKind}});Object.defineProperty(h,"assertAbstractType",{enumerable:!0,get:function(){return R.assertAbstractType}});Object.defineProperty(h,"assertCompositeType",{enumerable:!0,get:function(){return R.assertCompositeType}});Object.defineProperty(h,"assertDirective",{enumerable:!0,get:function(){return R.assertDirective}});Object.defineProperty(h,"assertEnumType",{enumerable:!0,get:function(){return R.assertEnumType}});Object.defineProperty(h,"assertEnumValueName",{enumerable:!0,get:function(){return R.assertEnumValueName}});Object.defineProperty(h,"assertInputObjectType",{enumerable:!0,get:function(){return R.assertInputObjectType}});Object.defineProperty(h,"assertInputType",{enumerable:!0,get:function(){return R.assertInputType}});Object.defineProperty(h,"assertInterfaceType",{enumerable:!0,get:function(){return R.assertInterfaceType}});Object.defineProperty(h,"assertLeafType",{enumerable:!0,get:function(){return R.assertLeafType}});Object.defineProperty(h,"assertListType",{enumerable:!0,get:function(){return R.assertListType}});Object.defineProperty(h,"assertName",{enumerable:!0,get:function(){return R.assertName}});Object.defineProperty(h,"assertNamedType",{enumerable:!0,get:function(){return R.assertNamedType}});Object.defineProperty(h,"assertNonNullType",{enumerable:!0,get:function(){return R.assertNonNullType}});Object.defineProperty(h,"assertNullableType",{enumerable:!0,get:function(){return R.assertNullableType}});Object.defineProperty(h,"assertObjectType",{enumerable:!0,get:function(){return R.assertObjectType}});Object.defineProperty(h,"assertOutputType",{enumerable:!0,get:function(){return R.assertOutputType}});Object.defineProperty(h,"assertScalarType",{enumerable:!0,get:function(){return R.assertScalarType}});Object.defineProperty(h,"assertSchema",{enumerable:!0,get:function(){return R.assertSchema}});Object.defineProperty(h,"assertType",{enumerable:!0,get:function(){return R.assertType}});Object.defineProperty(h,"assertUnionType",{enumerable:!0,get:function(){return R.assertUnionType}});Object.defineProperty(h,"assertValidName",{enumerable:!0,get:function(){return ge.assertValidName}});Object.defineProperty(h,"assertValidSchema",{enumerable:!0,get:function(){return R.assertValidSchema}});Object.defineProperty(h,"assertWrappingType",{enumerable:!0,get:function(){return R.assertWrappingType}});Object.defineProperty(h,"astFromValue",{enumerable:!0,get:function(){return ge.astFromValue}});Object.defineProperty(h,"buildASTSchema",{enumerable:!0,get:function(){return ge.buildASTSchema}});Object.defineProperty(h,"buildClientSchema",{enumerable:!0,get:function(){return ge.buildClientSchema}});Object.defineProperty(h,"buildSchema",{enumerable:!0,get:function(){return ge.buildSchema}});Object.defineProperty(h,"coerceInputValue",{enumerable:!0,get:function(){return ge.coerceInputValue}});Object.defineProperty(h,"concatAST",{enumerable:!0,get:function(){return ge.concatAST}});Object.defineProperty(h,"createSourceEventStream",{enumerable:!0,get:function(){return br.createSourceEventStream}});Object.defineProperty(h,"defaultFieldResolver",{enumerable:!0,get:function(){return br.defaultFieldResolver}});Object.defineProperty(h,"defaultTypeResolver",{enumerable:!0,get:function(){return br.defaultTypeResolver}});Object.defineProperty(h,"doTypesOverlap",{enumerable:!0,get:function(){return ge.doTypesOverlap}});Object.defineProperty(h,"execute",{enumerable:!0,get:function(){return br.execute}});Object.defineProperty(h,"executeSync",{enumerable:!0,get:function(){return br.executeSync}});Object.defineProperty(h,"extendSchema",{enumerable:!0,get:function(){return ge.extendSchema}});Object.defineProperty(h,"findBreakingChanges",{enumerable:!0,get:function(){return ge.findBreakingChanges}});Object.defineProperty(h,"findDangerousChanges",{enumerable:!0,get:function(){return ge.findDangerousChanges}});Object.defineProperty(h,"formatError",{enumerable:!0,get:function(){return Ga.formatError}});Object.defineProperty(h,"getArgumentValues",{enumerable:!0,get:function(){return br.getArgumentValues}});Object.defineProperty(h,"getDirectiveValues",{enumerable:!0,get:function(){return br.getDirectiveValues}});Object.defineProperty(h,"getEnterLeaveForKind",{enumerable:!0,get:function(){return he.getEnterLeaveForKind}});Object.defineProperty(h,"getIntrospectionQuery",{enumerable:!0,get:function(){return ge.getIntrospectionQuery}});Object.defineProperty(h,"getLocation",{enumerable:!0,get:function(){return he.getLocation}});Object.defineProperty(h,"getNamedType",{enumerable:!0,get:function(){return R.getNamedType}});Object.defineProperty(h,"getNullableType",{enumerable:!0,get:function(){return R.getNullableType}});Object.defineProperty(h,"getOperationAST",{enumerable:!0,get:function(){return ge.getOperationAST}});Object.defineProperty(h,"getOperationRootType",{enumerable:!0,get:function(){return ge.getOperationRootType}});Object.defineProperty(h,"getVariableValues",{enumerable:!0,get:function(){return br.getVariableValues}});Object.defineProperty(h,"getVisitFn",{enumerable:!0,get:function(){return he.getVisitFn}});Object.defineProperty(h,"graphql",{enumerable:!0,get:function(){return GI.graphql}});Object.defineProperty(h,"graphqlSync",{enumerable:!0,get:function(){return GI.graphqlSync}});Object.defineProperty(h,"introspectionFromSchema",{enumerable:!0,get:function(){return ge.introspectionFromSchema}});Object.defineProperty(h,"introspectionTypes",{enumerable:!0,get:function(){return R.introspectionTypes}});Object.defineProperty(h,"isAbstractType",{enumerable:!0,get:function(){return R.isAbstractType}});Object.defineProperty(h,"isCompositeType",{enumerable:!0,get:function(){return R.isCompositeType}});Object.defineProperty(h,"isConstValueNode",{enumerable:!0,get:function(){return he.isConstValueNode}});Object.defineProperty(h,"isDefinitionNode",{enumerable:!0,get:function(){return he.isDefinitionNode}});Object.defineProperty(h,"isDirective",{enumerable:!0,get:function(){return R.isDirective}});Object.defineProperty(h,"isEnumType",{enumerable:!0,get:function(){return R.isEnumType}});Object.defineProperty(h,"isEqualType",{enumerable:!0,get:function(){return ge.isEqualType}});Object.defineProperty(h,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return he.isExecutableDefinitionNode}});Object.defineProperty(h,"isInputObjectType",{enumerable:!0,get:function(){return R.isInputObjectType}});Object.defineProperty(h,"isInputType",{enumerable:!0,get:function(){return R.isInputType}});Object.defineProperty(h,"isInterfaceType",{enumerable:!0,get:function(){return R.isInterfaceType}});Object.defineProperty(h,"isIntrospectionType",{enumerable:!0,get:function(){return R.isIntrospectionType}});Object.defineProperty(h,"isLeafType",{enumerable:!0,get:function(){return R.isLeafType}});Object.defineProperty(h,"isListType",{enumerable:!0,get:function(){return R.isListType}});Object.defineProperty(h,"isNamedType",{enumerable:!0,get:function(){return R.isNamedType}});Object.defineProperty(h,"isNonNullType",{enumerable:!0,get:function(){return R.isNonNullType}});Object.defineProperty(h,"isNullableType",{enumerable:!0,get:function(){return R.isNullableType}});Object.defineProperty(h,"isObjectType",{enumerable:!0,get:function(){return R.isObjectType}});Object.defineProperty(h,"isOutputType",{enumerable:!0,get:function(){return R.isOutputType}});Object.defineProperty(h,"isRequiredArgument",{enumerable:!0,get:function(){return R.isRequiredArgument}});Object.defineProperty(h,"isRequiredInputField",{enumerable:!0,get:function(){return R.isRequiredInputField}});Object.defineProperty(h,"isScalarType",{enumerable:!0,get:function(){return R.isScalarType}});Object.defineProperty(h,"isSchema",{enumerable:!0,get:function(){return R.isSchema}});Object.defineProperty(h,"isSchemaCoordinateNode",{enumerable:!0,get:function(){return he.isSchemaCoordinateNode}});Object.defineProperty(h,"isSelectionNode",{enumerable:!0,get:function(){return he.isSelectionNode}});Object.defineProperty(h,"isSpecifiedDirective",{enumerable:!0,get:function(){return R.isSpecifiedDirective}});Object.defineProperty(h,"isSpecifiedScalarType",{enumerable:!0,get:function(){return R.isSpecifiedScalarType}});Object.defineProperty(h,"isType",{enumerable:!0,get:function(){return R.isType}});Object.defineProperty(h,"isTypeDefinitionNode",{enumerable:!0,get:function(){return he.isTypeDefinitionNode}});Object.defineProperty(h,"isTypeExtensionNode",{enumerable:!0,get:function(){return he.isTypeExtensionNode}});Object.defineProperty(h,"isTypeNode",{enumerable:!0,get:function(){return he.isTypeNode}});Object.defineProperty(h,"isTypeSubTypeOf",{enumerable:!0,get:function(){return ge.isTypeSubTypeOf}});Object.defineProperty(h,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return he.isTypeSystemDefinitionNode}});Object.defineProperty(h,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return he.isTypeSystemExtensionNode}});Object.defineProperty(h,"isUnionType",{enumerable:!0,get:function(){return R.isUnionType}});Object.defineProperty(h,"isValidNameError",{enumerable:!0,get:function(){return ge.isValidNameError}});Object.defineProperty(h,"isValueNode",{enumerable:!0,get:function(){return he.isValueNode}});Object.defineProperty(h,"isWrappingType",{enumerable:!0,get:function(){return R.isWrappingType}});Object.defineProperty(h,"lexicographicSortSchema",{enumerable:!0,get:function(){return ge.lexicographicSortSchema}});Object.defineProperty(h,"locatedError",{enumerable:!0,get:function(){return Ga.locatedError}});Object.defineProperty(h,"parse",{enumerable:!0,get:function(){return he.parse}});Object.defineProperty(h,"parseConstValue",{enumerable:!0,get:function(){return he.parseConstValue}});Object.defineProperty(h,"parseSchemaCoordinate",{enumerable:!0,get:function(){return he.parseSchemaCoordinate}});Object.defineProperty(h,"parseType",{enumerable:!0,get:function(){return he.parseType}});Object.defineProperty(h,"parseValue",{enumerable:!0,get:function(){return he.parseValue}});Object.defineProperty(h,"print",{enumerable:!0,get:function(){return he.print}});Object.defineProperty(h,"printError",{enumerable:!0,get:function(){return Ga.printError}});Object.defineProperty(h,"printIntrospectionSchema",{enumerable:!0,get:function(){return ge.printIntrospectionSchema}});Object.defineProperty(h,"printLocation",{enumerable:!0,get:function(){return he.printLocation}});Object.defineProperty(h,"printSchema",{enumerable:!0,get:function(){return ge.printSchema}});Object.defineProperty(h,"printSourceLocation",{enumerable:!0,get:function(){return he.printSourceLocation}});Object.defineProperty(h,"printType",{enumerable:!0,get:function(){return ge.printType}});Object.defineProperty(h,"recommendedRules",{enumerable:!0,get:function(){return oe.recommendedRules}});Object.defineProperty(h,"resolveASTSchemaCoordinate",{enumerable:!0,get:function(){return ge.resolveASTSchemaCoordinate}});Object.defineProperty(h,"resolveObjMapThunk",{enumerable:!0,get:function(){return R.resolveObjMapThunk}});Object.defineProperty(h,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return R.resolveReadonlyArrayThunk}});Object.defineProperty(h,"resolveSchemaCoordinate",{enumerable:!0,get:function(){return ge.resolveSchemaCoordinate}});Object.defineProperty(h,"responsePathAsArray",{enumerable:!0,get:function(){return br.responsePathAsArray}});Object.defineProperty(h,"separateOperations",{enumerable:!0,get:function(){return ge.separateOperations}});Object.defineProperty(h,"specifiedDirectives",{enumerable:!0,get:function(){return R.specifiedDirectives}});Object.defineProperty(h,"specifiedRules",{enumerable:!0,get:function(){return oe.specifiedRules}});Object.defineProperty(h,"specifiedScalarTypes",{enumerable:!0,get:function(){return R.specifiedScalarTypes}});Object.defineProperty(h,"stripIgnoredCharacters",{enumerable:!0,get:function(){return ge.stripIgnoredCharacters}});Object.defineProperty(h,"subscribe",{enumerable:!0,get:function(){return br.subscribe}});Object.defineProperty(h,"syntaxError",{enumerable:!0,get:function(){return Ga.syntaxError}});Object.defineProperty(h,"typeFromAST",{enumerable:!0,get:function(){return ge.typeFromAST}});Object.defineProperty(h,"validate",{enumerable:!0,get:function(){return oe.validate}});Object.defineProperty(h,"validateSchema",{enumerable:!0,get:function(){return R.validateSchema}});Object.defineProperty(h,"valueFromAST",{enumerable:!0,get:function(){return ge.valueFromAST}});Object.defineProperty(h,"valueFromASTUntyped",{enumerable:!0,get:function(){return ge.valueFromASTUntyped}});Object.defineProperty(h,"version",{enumerable:!0,get:function(){return VI.version}});Object.defineProperty(h,"versionInfo",{enumerable:!0,get:function(){return VI.versionInfo}});Object.defineProperty(h,"visit",{enumerable:!0,get:function(){return he.visit}});Object.defineProperty(h,"visitInParallel",{enumerable:!0,get:function(){return he.visitInParallel}});Object.defineProperty(h,"visitWithTypeInfo",{enumerable:!0,get:function(){return ge.visitWithTypeInfo}});var VI=jE(),GI=kS(),R=AS(),he=LS(),br=qS(),oe=QS(),Ga=ZS(),ge=qI()});var nN=$((_J,Z4)=>{Z4.exports={name:"@jackchuka/gql-ingest",version:"4.2.10",description:"A CLI tool for ingesting data from files into a GraphQL API. Supports CSV, JSON, JSONL, and YAML file formats.",keywords:["api","cli","csv","graphql","ingest"],license:"MIT",author:"jackchuka",repository:{type:"git",url:"https://github.com/jackchuka/gql-ingest.git"},bin:{"gql-ingest":"dist/cli/index.js"},files:["dist"],type:"module",main:"dist/index.js",types:"dist/index.d.ts",exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js"}},scripts:{lint:"oxlint --type-aware --tsconfig ./tsconfig.json","lint:fix":"oxlint --fix --type-aware --tsconfig ./tsconfig.json",fmt:"oxfmt",build:"node esbuild.config.js","build:types":"tsc --emitDeclarationOnly","build:all":"pnpm run build && pnpm run build:types",dev:"ts-node src/cli/index.ts",test:"jest","test:watch":"jest --watch",prepublishOnly:"pnpm run build:all"},dependencies:{"@inquirer/prompts":"^8.2.0",commander:"^14.0.0","csv-parser":"^3.0.0",graphql:"16.14.0","graphql-request":"^7.2.0","js-yaml":"^4.1.0",tinyglobby:"^0.2.15",zod:"^4.3.5"},devDependencies:{"@types/jest":"^30.0.0","@types/js-yaml":"^4.0.9","@types/node":"^25.0.2",esbuild:"^0.28.0",jest:"^30.0.3",oxfmt:"^0.51.0",oxlint:"^1.35.0","oxlint-tsgolint":"^0.23.0","ts-jest":"^29.4.0","ts-node":"^10.9.0",typescript:"^6.0.2"},engines:{node:">=18"},packageManager:"pnpm@10.33.0"}});import{Command as B4}from"commander";import{readdir as Vk,readdirSync as Gk,realpath as Kk,realpathSync as Qk,stat as Zk,statSync as Bk}from"fs";import{isAbsolute as Jk,posix as dn,resolve as Hk}from"path";import{fileURLToPath as Yk}from"url";import{createRequire as lN}from"module";import{basename as pN,dirname as gl,normalize as dN,relative as fN,resolve as mN,sep as zb}from"path";import*as hN from"fs";var Fb=lN(import.meta.url);function gN(e){let t=dN(e);return t.length>1&&t[t.length-1]===zb&&(t=t.substring(0,t.length-1)),t}var vN=/[\\/]/g;function Mb(e,t){return e.replace(vN,t)}var yN=/^[a-z]:[\\/]$/i;function bN(e){return e==="/"||yN.test(e)}function hl(e,t){let{resolvePaths:n,normalizePath:i,pathSeparator:r}=t,o=process.platform==="win32"&&e.includes("/")||e.startsWith(".");if(n&&(e=mN(e)),(i||o)&&(e=gN(e)),e===".")return"";let a=e[e.length-1]!==r;return Mb(a?e+r:e,r)}function qb(e,t){return t+e}function _N(e,t){return function(n,i){return i.startsWith(e)?i.slice(e.length)+n:Mb(fN(e,i),t.pathSeparator)+t.pathSeparator+n}}function TN(e){return e}function $N(e,t,n){return t+e+n}function EN(e,t){let{relativePaths:n,includeBasePath:i}=t;return n&&e?_N(e,t):i?qb:TN}function xN(e){return function(t,n){n.push(t.substring(e.length)||".")}}function ON(e){return function(t,n,i){let r=t.substring(e.length)||".";i.every(o=>o(r,!0))&&n.push(r)}}var SN=(e,t)=>{t.push(e||".")},IN=(e,t,n)=>{let i=e||".";n.every(r=>r(i,!0))&&t.push(i)},NN=()=>{};function kN(e,t){let{includeDirs:n,filters:i,relativePaths:r}=t;return n?r?i&&i.length?ON(e):xN(e):i&&i.length?IN:SN:NN}var wN=(e,t,n,i)=>{i.every(r=>r(e,!1))&&n.files++},DN=(e,t,n,i)=>{i.every(r=>r(e,!1))&&t.push(e)},AN=(e,t,n,i)=>{n.files++},PN=(e,t)=>{t.push(e)},LN=()=>{};function RN(e){let{excludeFiles:t,filters:n,onlyCounts:i}=e;return t?LN:n&&n.length?i?wN:DN:i?AN:PN}var jN=e=>e,CN=()=>[""].slice(0,0);function FN(e){return e.group?CN:jN}var UN=(e,t,n)=>{e.push({directory:t,files:n,dir:t})},zN=()=>{};function MN(e){return e.group?UN:zN}var qN=function(e,t,n){let{queue:i,fs:r,options:{suppressErrors:o}}=t;i.enqueue(),r.realpath(e,(a,s)=>{if(a)return i.dequeue(o?null:a,t);r.stat(s,(u,c)=>{if(u)return i.dequeue(o?null:u,t);if(c.isDirectory()&&Vb(e,s,t))return i.dequeue(null,t);n(c,s),i.dequeue(null,t)})})},VN=function(e,t,n){let{queue:i,fs:r,options:{suppressErrors:o}}=t;i.enqueue();try{let a=r.realpathSync(e),s=r.statSync(a);if(s.isDirectory()&&Vb(e,a,t))return;n(s,a)}catch(a){if(!o)throw a}};function GN(e,t){return!e.resolveSymlinks||e.excludeSymlinks?null:t?VN:qN}function Vb(e,t,n){if(n.options.useRealPaths)return KN(t,n);let i=gl(e),r=1;for(;i!==n.root&&r<2;){let o=n.symlinks.get(i);!!o&&(o===t||o.startsWith(t)||t.startsWith(o))?r++:i=gl(i)}return n.symlinks.set(e,t),r>1}function KN(e,t){return t.visited.includes(e+t.options.pathSeparator)}var QN=e=>e.counts,ZN=e=>e.groups,BN=e=>e.paths,JN=e=>e.paths.slice(0,e.options.maxFiles),HN=(e,t,n)=>(Xa(t,n,e.counts,e.options.suppressErrors),null),YN=(e,t,n)=>(Xa(t,n,e.paths,e.options.suppressErrors),null),WN=(e,t,n)=>(Xa(t,n,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),XN=(e,t,n)=>(Xa(t,n,e.groups,e.options.suppressErrors),null);function Xa(e,t,n,i){t(e&&!i?e:null,n)}function ek(e,t){let{onlyCounts:n,group:i,maxFiles:r}=e;return n?t?QN:HN:i?t?ZN:XN:r?t?JN:WN:t?BN:YN}var Gb={withFileTypes:!0},tk=(e,t,n,i,r)=>{if(e.queue.enqueue(),i<0)return e.queue.dequeue(null,e);let{fs:o}=e;e.visited.push(t),e.counts.directories++,o.readdir(t||".",Gb,(a,s=[])=>{r(s,n,i),e.queue.dequeue(e.options.suppressErrors?null:a,e)})},rk=(e,t,n,i,r)=>{let{fs:o}=e;if(i<0)return;e.visited.push(t),e.counts.directories++;let a=[];try{a=o.readdirSync(t||".",Gb)}catch(s){if(!e.options.suppressErrors)throw s}r(a,n,i)};function nk(e){return e?rk:tk}var ik=class{count=0;constructor(e){this.onQueueEmpty=e}enqueue(){return this.count++,this.count}dequeue(e,t){this.onQueueEmpty&&(--this.count<=0||e)&&(this.onQueueEmpty(e,t),e&&(t.controller.abort(),this.onQueueEmpty=void 0))}},ok=class{_files=0;_directories=0;set files(e){this._files=e}get files(){return this._files}set directories(e){this._directories=e}get directories(){return this._directories}get dirs(){return this._directories}},ak=class{aborted=!1;abort(){this.aborted=!0}},Kb=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,t,n){this.isSynchronous=!n,this.callbackInvoker=ek(t,this.isSynchronous),this.root=hl(e,t),this.state={root:bN(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new ok,options:t,queue:new ik((i,r)=>this.callbackInvoker(r,i,n)),symlinks:new Map,visited:[""].slice(0,0),controller:new ak,fs:t.fs||hN},this.joinPath=EN(this.root,t),this.pushDirectory=kN(this.root,t),this.pushFile=RN(t),this.getArray=FN(t),this.groupFiles=MN(t),this.resolveSymlink=GN(t,this.isSynchronous),this.walkDirectory=nk(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(e,t,n)=>{let{paths:i,options:{filters:r,resolveSymlinks:o,excludeSymlinks:a,exclude:s,maxFiles:u,signal:c,useRealPaths:l,pathSeparator:p},controller:d}=this.state;if(d.aborted||c&&c.aborted||u&&i.length>u)return;let f=this.getArray(this.state.paths);for(let m=0;m<e.length;++m){let E=e[m];if(E.isFile()||E.isSymbolicLink()&&!o&&!a){let N=this.joinPath(E.name,t);this.pushFile(N,f,this.state.counts,r)}else if(E.isDirectory()){let N=$N(E.name,t,this.state.options.pathSeparator);if(s&&s(E.name,N))continue;this.pushDirectory(N,i,r),this.walkDirectory(this.state,N,N,n-1,this.walk)}else if(this.resolveSymlink&&E.isSymbolicLink()){let N=qb(E.name,t);this.resolveSymlink(N,this.state,(F,x)=>{if(F.isDirectory()){if(x=hl(x,this.state.options),s&&s(E.name,l?x:N+p))return;this.walkDirectory(this.state,x,l?x:N+p,n-1,this.walk)}else{x=l?x:N;let M=pN(x),V=hl(gl(x),this.state.options);x=this.joinPath(M,V),this.pushFile(x,f,this.state.counts,r)}})}}this.groupFiles(this.state.groups,t,f)}};function sk(e,t){return new Promise((n,i)=>{Qb(e,t,(r,o)=>{if(r)return i(r);n(o)})})}function Qb(e,t,n){new Kb(e,t,n).start()}function uk(e,t){return new Kb(e,t).start()}var Ub=class{constructor(e,t){this.root=e,this.options=t}withPromise(){return sk(this.root,this.options)}withCallback(e){Qb(this.root,this.options,e)}sync(){return uk(this.root,this.options)}},Zb=null;try{Fb.resolve("picomatch"),Zb=Fb("picomatch")}catch{}var Bb=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:zb,filters:[]};globFunction;constructor(e){this.options={...this.options,...e},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(e){return this.options.pathSeparator=e,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(e){return this.options.maxDepth=e,this}withMaxFiles(e){return this.options.maxFiles=e,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:e=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=e,this.withFullPaths()}withAbortSignal(e){return this.options.signal=e,this}normalize(){return this.options.normalizePath=!0,this}filter(e){return this.options.filters.push(e),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(e){return this.options.exclude=e,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(e){return new Ub(e||".",this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,t){return this.options={...this.options,...t},new Ub(e||".",this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...t){let n=this.globFunction||Zb;if(!n)throw new Error("Please specify a glob function to use glob matching.");var i=this.globCache[e.join("\0")];return i||(i=n(e,...t),this.globCache[e.join("\0")]=i),this.options.filters.push(r=>i(r)),this}};var Jn=Cb(b_(),1),Wk=Array.isArray,T_=/\\/g,$_=process.platform==="win32",Xk=/^(\/?\.\.)+$/;function ew(e,t={}){let n=e.length,i=Array(n),r=Array(n),o,a;for(o=0;o<n;o++){let s=E_(e[o]);i[o]=s;let u=s.length,c=Array(u);for(a=0;a<u;a++)c[a]=(0,Jn.default)(s[a],t);r[o]=c}return s=>{let u=s.split("/");if(u[0]===".."&&Xk.test(s))return!0;for(o=0;o<n;o++){let c=i[o],l=r[o],p=u.length,d=Math.min(p,c.length);for(a=0;a<d;){let f=c[a];if(f.includes("/"))return!0;if(!l[a](u[a]))break;if(!t.noglobstar&&f==="**")return!0;a++}if(a===p)return!0}return!1}}var tw=/^[A-Z]:\/$/i,rw=$_?e=>tw.test(e):e=>e==="/";function __(e,t,n){if(e===t||t.startsWith(`${e}/`)){if(n){let r=e.length+ +!rw(e);return(o,a)=>o.slice(r,a?-1:void 0)||"."}let i=t.slice(e.length+1);return i?(r,o)=>{if(r===".")return i;let a=`${i}/${r}`;return o?a.slice(0,-1):a}:(r,o)=>o&&r!=="."?r.slice(0,-1):r}return n?i=>dn.relative(e,i)||".":i=>dn.relative(e,`${t}/${i}`)||"."}function nw(e,t){if(t.startsWith(`${e}/`)){let n=t.slice(e.length+1);return i=>`${n}/${i}`}return n=>{let i=dn.relative(e,`${t}/${n}`);return n[n.length-1]==="/"&&i!==""?`${i}/`:i||"."}}var iw={parts:!0};function E_(e){var t;let n=Jn.default.scan(e,iw);return!((t=n.parts)===null||t===void 0)&&t.length?n.parts:[e]}var ow=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,aw=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,sw=e=>e.replace(ow,"\\$&"),uw=e=>e.replace(aw,"\\$&"),cw=$_?uw:sw;function lw(e,t){if(t?.caseSensitiveMatch===!1)return!0;let n=Jn.default.scan(e);return n.isGlob||n.negated}function io(...e){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...e)}function x_(e){return typeof e=="string"?[e]:e??[]}var pw=/^(\/?\.\.)+/,dw=/\\(?=[()[\]{}!*+?@|])/g;function Il(e,t,n,i){var r;let o=t.cwd,a=e;e[e.length-1]==="/"&&(a=e.slice(0,-1)),a[a.length-1]!=="*"&&t.expandDirectories&&(a+="/**");let s=cw(o);a=Jk(a.replace(dw,""))?dn.relative(s,a):dn.normalize(a);let u=(r=pw.exec(a))===null||r===void 0?void 0:r[0],c=E_(a);if(u){let p=(u.length+1)/3,d=0,f=s.split("/");for(;d<p&&c[d+p]===f[f.length+d-p];)a=a.slice(0,(p-d-1)*3)+a.slice((p-d)*3+c[d+p].length+1)||".",d++;let m=dn.join(o,u.slice(d*3));m[0]!=="."&&n.root.length>m.length&&(n.root=m,n.depthOffset=-p+d)}if(!i&&n.depthOffset>=0){var l;(l=n.commonPath)!==null&&l!==void 0||(n.commonPath=c);let p=[],d=Math.min(n.commonPath.length,c.length);for(let f=0;f<d;f++){let m=c[f];if(m==="**"&&!c[f+1]){p.pop();break}if(f===c.length-1||m!==n.commonPath[f]||lw(m))break;p.push(m)}n.depthOffset=p.length,n.commonPath=p,n.root=p.length>0?dn.join(o,...p):o}return a}function fw(e,t,n){let i=[],r=[];for(let o of e.ignore)o&&(o[0]!=="!"||o[1]==="(")&&r.push(Il(o,e,n,!0));for(let o of t)o&&(o[0]!=="!"||o[1]==="("?i.push(Il(o,e,n,!1)):(o[1]!=="!"||o[2]==="(")&&r.push(Il(o.slice(1),e,n,!0)));return{match:i,ignore:r}}function mw(e,t){let n=e.cwd,i={root:n,depthOffset:0},r=fw(e,t,i);e.debug&&io("internal processing patterns:",r);let{absolute:o,caseSensitiveMatch:a,debug:s,dot:u,followSymbolicLinks:c,onlyDirectories:l}=e,p=i.root.replace(T_,""),d={dot:u,nobrace:e.braceExpansion===!1,nocase:!a,noextglob:e.extglob===!1,noglobstar:e.globstar===!1,posix:!0},f=(0,Jn.default)(r.match,d),m=(0,Jn.default)(r.ignore,d),E=ew(r.match,d),N=__(n,p,o),F=o?N:__(n,p,!0),x=(Y,ne)=>{let se=F(ne,!0);return se!=="."&&!E(se)||m(se)},M;e.deep!==void 0&&(M=Math.round(e.deep-i.depthOffset));let V=new Bb({filters:[s?(Y,ne)=>{let se=N(Y,ne),K=f(se)&&!m(se);return K&&io(`matched ${se}`),K}:(Y,ne)=>{let se=N(Y,ne);return f(se)&&!m(se)}],exclude:s?(Y,ne)=>{let se=x(Y,ne);return io(`${se?"skipped":"crawling"} ${ne}`),se}:x,fs:e.fs,pathSeparator:"/",relativePaths:!o,resolvePaths:o,includeBasePath:o,resolveSymlinks:c,excludeSymlinks:!c,excludeFiles:l,includeDirs:l||!e.onlyFiles,maxDepth:M,signal:e.signal}).crawl(p);return e.debug&&io("internal properties:",{...i,root:p}),[V,n!==p&&!o&&nw(n,p)]}function hw(e,t){if(t)for(let n=e.length-1;n>=0;n--)e[n]=t(e[n]);return e}var gw={caseSensitiveMatch:!0,cwd:process.cwd(),debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function vw(e){let t={...gw,...e};return t.cwd=(t.cwd instanceof URL?Yk(t.cwd):Hk(t.cwd)).replace(T_,"/"),t.ignore=x_(t.ignore),t.fs&&(t.fs={readdir:t.fs.readdir||Vk,readdirSync:t.fs.readdirSync||Gk,realpath:t.fs.realpath||Kk,realpathSync:t.fs.realpathSync||Qk,stat:t.fs.stat||Zk,statSync:t.fs.statSync||Bk}),t.debug&&io("globbing with options:",t),t}function yw(e,t={}){var n;if(e&&t?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");let i=Wk(e)||typeof e=="string",r=x_((n=i?e:e.patterns)!==null&&n!==void 0?n:"**/*"),o=vw(i?t:e);return r.length>0?mw(o,r):[]}function O_(e,t){let[n,i]=yw(e,t);return n?hw(n.sync(),i):[]}import{EventEmitter as L4}from"events";import{GraphQLClient as NR}from"graphql-request";import SR from"fs";function M_(e){return typeof e>"u"||e===null}function bw(e){return typeof e=="object"&&e!==null}function _w(e){return Array.isArray(e)?e:M_(e)?[]:[e]}function Tw(e,t){var n,i,r,o;if(t)for(o=Object.keys(t),n=0,i=o.length;n<i;n+=1)r=o[n],e[r]=t[r];return e}function $w(e,t){var n="",i;for(i=0;i<t;i+=1)n+=e;return n}function Ew(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var xw=M_,Ow=bw,Sw=_w,Iw=$w,Nw=Ew,kw=Tw,Be={isNothing:xw,isObject:Ow,toArray:Sw,repeat:Iw,isNegativeZero:Nw,extend:kw};function q_(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
155
155
 
156
156
  `+e.mark.snippet),i+" "+n):i}function ao(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=q_(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ao.prototype=Object.create(Error.prototype);ao.prototype.constructor=ao;ao.prototype.toString=function(t){return this.name+": "+q_(this,t)};var ut=ao;function Nl(e,t,n,i,r){var o="",a="",s=Math.floor(r/2)-1;return i-t>s&&(o=" ... ",t=i-s+o.length),n-i>s&&(a=" ...",n=i+s-a.length),{str:o+e.slice(t,n).replace(/\t/g,"\u2192")+a,pos:i-t+o.length}}function kl(e,t){return Be.repeat(" ",t-e.length)+e}function ww(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,i=[0],r=[],o,a=-1;o=n.exec(e.buffer);)r.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s="",u,c,l=Math.min(e.line+t.linesAfter,r.length).toString().length,p=t.maxLength-(t.indent+l+3);for(u=1;u<=t.linesBefore&&!(a-u<0);u++)c=Nl(e.buffer,i[a-u],r[a-u],e.position-(i[a]-i[a-u]),p),s=Be.repeat(" ",t.indent)+kl((e.line-u+1).toString(),l)+" | "+c.str+`
157
157
  `+s;for(c=Nl(e.buffer,i[a],r[a],e.position,p),s+=Be.repeat(" ",t.indent)+kl((e.line+1).toString(),l)+" | "+c.str+`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jackchuka/gql-ingest",
3
- "version": "4.2.8",
3
+ "version": "4.2.10",
4
4
  "description": "A CLI tool for ingesting data from files into a GraphQL API. Supports CSV, JSON, JSONL, and YAML file formats.",
5
5
  "keywords": [
6
6
  "api",
@@ -46,9 +46,9 @@
46
46
  "@types/node": "^25.0.2",
47
47
  "esbuild": "^0.28.0",
48
48
  "jest": "^30.0.3",
49
- "oxfmt": "^0.48.0",
49
+ "oxfmt": "^0.51.0",
50
50
  "oxlint": "^1.35.0",
51
- "oxlint-tsgolint": "^0.22.0",
51
+ "oxlint-tsgolint": "^0.23.0",
52
52
  "ts-jest": "^29.4.0",
53
53
  "ts-node": "^10.9.0",
54
54
  "typescript": "^6.0.2"