{"version":3,"file":"vendor.graphiql.fc9bf1aa463d27a0.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iBAAiB,SAAI,IAAI,SAAI;AAC7B;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B;AAC9B;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACyB;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,oBAAoB;AACjD;AACA;AACA;AACA;AACA;AACA,6BAA6B,oCAAoC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,oBAAoB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB,SAAS,8BAA8B;AACjF;AACA;AACA;AACA,wBAAwB,mBAAmB,SAAS,iHAAiH,wBAAwB,sBAAsB,IAAI,4BAA4B,wBAAwB,iBAAiB,IAAI,2BAA2B,8CAA8C;AACzW,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,mBAAmB,WAAW,wCAAwC,MAAM,mBAAmB,WAAW,+BAA+B;AACvL,gBAAgB,mBAAmB,UAAU,kCAAkC;AAC/E,YAAY,mBAAmB,aAAa,8HAA8H;AAC1K,gBAAgB,mBAAmB,UAAU,2BAA2B;AACxE;AACA;AACA;AACA,CAAC,CAAC,eAAe;AACQ;AACzB;;ACzFA,IAAI,oBAAS,IAAI,SAAI,IAAI,SAAI;AAC7B;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B;AAC9B;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACyB;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,oBAAS;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA,gBAAgB,mBAAmB;AACnC,YAAY,mBAAmB,UAAU,sBAAsB,iCAAiC;AAChG;AACA,iBAAiB,yFAAyF;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,UAAU;AACtC,yBAAyB,gBAAgB;AACzC;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,4BAA4B,8BAA8B;AAC1D;AACA;AACA;AACA,CAAC,CAAC,eAAe;AACO;AACxB;;AC7FA,IAAI,qBAAS,IAAI,SAAI,IAAI,SAAI;AAC7B;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B;AAC9B;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACyB;AAC1B;AACA,IAAI,qBAAS;AACb;AACA;AACA;AACA;AACA;AACA,iCAAiC,aAAa;AAC9C;AACA;AACA,iCAAiC,cAAc;AAC/C;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA,gBAAgB,mBAAmB,aAAa,6KAA6K;AAC7N;AACA;AACA,CAAC,CAAC,eAAe;AACQ;AACzB;;ACrC0B;AACnB;AACP;AACA,WAAW,mBAAmB,UAAU,mCAAmC;AAC3E;AACA;;ACLA,IAAI,mBAAS,IAAI,SAAI,IAAI,SAAI;AAC7B;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B;AAC9B;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACyB;AAC1B;AACA,IAAI,mBAAS;AACb;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,eAAe;AAC5C;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,mBAAmB,QAAQ;AAC3C;AACA;AACA;AACA,aAAa,2BAA2B;AACxC;AACA,YAAY,mBAAmB,UAAU,0BAA0B;AACnE,gBAAgB,mBAAmB,WAAW,+CAA+C;AAC7F,YAAY,mBAAmB,SAAS,4DAA4D;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,gBAAgB;AAC5C;AACA;AACA;AACA;AACA,CAAC,CAAC,eAAe;AACM;AAChB;AACP;AACA,YAAY,mBAAmB,SAAS;AACxC;AACA,SAAS;AACT;AACA,SAAS,kEAAkE;AAC3E;AACA;AACA;AACA;AACA;;;;;AC7EO,qCAAqC,YAAY;AACxD;AACA,CAAC;AACD;AACO;AACP;AACA;AACA;;;;;;;ACPuD;AAClB;AACR;AAC7B,aAAa,uBAAE;AACA;AACf,qBAAqB,mBAAO,CAAC,KAAY;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,wBAAwB,iCAAc;AACtC;AACA;AACA,wBAAwB,8BAAW;AACnC;AACA;AACA,sCAAsC,qBAAU;AAChD;AACA;;AChEA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAe,UAAU,EAAC;AAC1B;;ACfA,IAAI,mBAAS,IAAI,SAAI,IAAI,SAAI;AAC7B;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B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AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA,2CAA2C;AAC3C,6CAA6C,8CAA8C;AAC3F,iBAAiB;AACjB,6CAA6C,8CAA8C;AAC3F,iBAAiB;AACjB,6CAA6C,8CAA8C;AAC3F,iBAAiB;AACjB,6CAA6C,8CAA8C;AAC3F,iBAAiB;AACjB,6CAA6C,8CAA8C;AAC3F,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,mBAAmB,EAAE,kBAAU,KAAK;AACpC;AACA;AACA,iBAAiB;AACjB;AACA;AACA,mBAAmB;AACnB,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,mBAAO,CAAC,KAAY;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,mBAAmB,cAAc;AACjD;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,mBAAmB;AAC1D;AACA;AACA;AACA;AACA,CAAC,CAAC,eAAe;AACM;AACvB;;ACtNA,IAAI,sBAAS,IAAI,SAAI,IAAI,SAAI;AAC7B;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B;AAC9B;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACD,IAAI,qBAAQ,IAAI,SAAI,IAAI,SAAI;AAC5B,IAAI,qBAAQ;AACZ,iDAAiD,OAAO;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,qBAAQ;AACnB;AAC0B;AAC+B;AACV;AAC/C;AACA,IAAI,sBAAS;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,eAAe;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,mBAAO,CAAC,KAAY;AAC9C,QAAQ,mBAAO,CAAC,IAAiC;AACjD,QAAQ,mBAAO,CAAC,KAAqC;AACrD,QAAQ,mBAAO,CAAC,KAAqC;AACrD,QAAQ,mBAAO,CAAC,KAAkC;AAClD,QAAQ,mBAAO,CAAC,KAAkC;AAClD,QAAQ,mBAAO,CAAC,KAA4B;AAC5C,QAAQ,mBAAO,CAAC,KAAsC;AACtD,QAAQ,mBAAO,CAAC,KAAsC;AACtD,QAAQ,mBAAO,CAAC,KAAgC;AAChD,QAAQ,mBAAO,CAAC,KAA2B;AAC3C,QAAQ,mBAAO,CAAC,KAAmC;AACnD,QAAQ,mBAAO,CAAC,KAAmC;AACnD,QAAQ,mBAAO,CAAC,KAAmC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,uBAAuB,qBAAQ,GAAG;AAClC;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,mBAAmB,EAAE,kBAAU;AAC/B,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,0BAA0B,mBAAO,CAAC,KAAY;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,uBAAuB,mBAAQ,GAAG;AAClC;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,mBAAmB,EAAE,kBAAU;AAC/B,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,0BAA0B,mBAAO,CAAC,KAAY;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,mBAAmB,UAAU;AAC7C;AACA;AACA,aAAa;AACb;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC,eAAe;AACO;AACxB;;;;AC/KA,IAAI,oBAAS,IAAI,SAAI,IAAI,SAAI;AAC7B;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B;AAC9B;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACyB;AACO;AACc;AAC/C;AACA,IAAI,oBAAS;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,mBAAO,CAAC,KAAY;AAC7C,QAAQ,mBAAO,CAAC,KAAkC;AAClD,QAAQ,mBAAO,CAAC,KAAkC;AAClD,QAAQ,mBAAO,CAAC,KAAgC;AAChD,QAAQ,mBAAO,CAAC,KAAgC;AAChD,QAAQ,mBAAO,CAAC,KAAsC;AACtD,QAAQ,mBAAO,CAAC,KAAsC;AACtD,QAAQ,mBAAO,CAAC,KAA2B;AAC3C,QAAQ,mBAAO,CAAC,KAAiC;AACjD;AACA;AACA;AACA,YAAY,mBAAO,CAAC,KAAqC;AACzD;AACA;AACA;AACA;AACA,sCAAsC,mBAAmB,YAAY,UAAU;AAC/E;AACA;AACA;AACA;AACA,sCAAsC,mBAAmB,iBAAiB,cAAc;AACxF;AACA;AACA,oBAAoB,gCAA+B;AACnD;AACA;AACA,gBAAgB,gBAAe,CAAC,mBAAmB;AACnD;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,uBAAuB,kBAAU;AACjC,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,mBAAmB,cAAc;AACjD;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC,eAAe;AACO;AACxB;;ACrG0B;AAC6B;AACxC;AACf,gEAAgE;AAChE,WAAW,mBAAU;AACrB;AACA,SAAS,mBAAU;AACnB,wBAAwB,iCAAc;AACtC,gBAAgB,mBAAmB;AACnC,YAAY,mBAAU;AACtB;AACA;AACA,wBAAwB,8BAAW;AACnC,gBAAgB,mBAAmB;AACnC;AACA,YAAY,mBAAU;AACtB;AACA;AACA,YAAY,mBAAmB,QAAQ;AACvC;AACA;AACA,SAAS,aAAa;AACtB;AACA;;;;ACvB0B;AACoB;AAC9C;AACA;AACA;AACA;AACA,WAAW,wBAAK;AAChB;AACe;AACf;AACA;AACA,gBAAgB,mBAAmB;AACnC;AACA,YAAY,mBAAmB,WAAW,gCAAgC,eAAe,oCAAY;AACrG;AACA;AACA;AACA;;ACjB0B;AACQ;AACQ;AAC3B;AACf;AACA,YAAY,mBAAmB,WAAW,kBAAkB;AAC5D,QAAQ,mBAAmB,WAAW,uBAAuB;AAC7D;AACA,QAAQ,mBAAmB,CAAC,QAAQ,IAAI,sCAAsC;AAC9E,sCAAsC,mBAAmB,CAAC,YAAY,IAAI,YAAY;AACt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AA8B;AAC9B;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACyB;AACoB;AAC9C;AACA,IAAI,iBAAS;AACb;AACA;AACA;AACA;AACA,6BAA6B,cAAc;AAC3C;AACA;AACA;AACA,6BAA6B,WAAW;AACxC;AACA;AACA,wBAAwB;AACxB,kCAAkC,QAAQ;AAC1C;AACA;AACA;AACA,gBAAgB,mBAAmB,YAAY,yBAAyB;AACxE,YAAY,mBAAmB,UAAU,qDAAqD;AAC9F,YAAY,mBAAmB,YAAY,+IAA+I;AAC1L,iCAAiC,mBAAmB,aAAa,8FAA8F;AAC/J;AACA;AACA,CAAC,CAAC,eAAe;AACjB,4DAAe,SAAS,EAAC;AACzB;;ACzCA,IAAI,qBAAS,IAAI,SAAI,IAAI,SAAI;AAC7B;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B;AAC9B;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACD,gBAAgB,SAAI,IAAI,SAAI;AAC5B;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AAC0B;AACQ;AACA;AAClC;AACA,IAAI,qBAAS;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,+BAA+B;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,mBAAmB,UAAU,+CAA+C;AAC9G,oBAAoB,mBAAmB,CAAC,QAAQ,IAAI,kCAAkC;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,mBAAmB,UAAU,iEAAiE;AAC/H;AACA,4BAA4B,mBAAmB,CAAC,QAAQ,IAAI,+CAA+C;AAC3G;AACA;AACA,wBAAwB,mBAAmB,QAAQ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AuH,MAAM,mBAAmB,aAAa,kEAAkE;AAChP,YAAY,mBAAmB,aAAa,sEAAsE;AAClH,YAAY,mBAAmB,aAAa,4KAA4K;AACxN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA,4BAA4B,iBAAiB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,gBAAgB;AACxC;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC,CAAC,eAAe;AACjB,8DAAe,YAAY,EAAC;AAC5B;;ACpEA,IAAI,eAAM,IAAI,SAAI,IAAI,SAAI;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,MAAM;AAC1B;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,gBAAgB,SAAI,IAAI,SAAI;AAC5B,6BAA6B,sBAAsB,oBAAoB,eAAM;AAC7E;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,cAAc;AAC7C,6EAA6E;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA;AACA,CAAC;AACD,yDAAe,UAAU,EAAC;AAC1B;;ACvGA,IAAI,mBAAQ,IAAI,SAAI,IAAI,SAAI;AAC5B,IAAI,mBAAQ;AACZ,iDAAiD,OAAO;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,mBAAQ;AACnB;AACA,IAAI,iBAAM,IAAI,SAAI,IAAI,SAAI;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,MAAM;AAC1B;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,IAAI,mBAAQ,IAAI,SAAI,IAAI,SAAI;AAC5B,6BAA6B,sBAAsB,oBAAoB,iBAAM;AAC7E;AACA;AACsC;AACN;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,wBAAK;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,mBAAQ;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,mBAAQ,CAAC,mBAAQ,GAAG,WAAW,oBAAoB;AACvF;AACA;AACA;AACA;AACA,4BAA4B,mBAAQ;AACpC;AACA,2BAA2B,kBAAU;AACrC,4BAA4B,kBAAU;AACtC;AACA;AACA;AACA,CAAC;AACD,2DAAe,YAAY,EAAC;AAC5B;;ACjIA,IAAI,oBAAS,IAAI,SAAI,IAAI,SAAI;AAC7B;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B;AAC9B;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACD,IAAI,mBAAQ,IAAI,SAAI,IAAI,SAAI;AAC5B,IAAI,mBAAQ;AACZ,iDAAiD,OAAO;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,mBAAQ;AACnB;AAC0B;AACgB;AACS;AACnD;AACA,IAAI,oBAAS;AACb;AACA;AACA;AACA;AACA,6BAA6B,qCAAqC;AAClE;AACA;AACA;AACA,6BAA6B,qCAAqC;AAClE;AACA;AACA;AACA,6BAA6B,qCAAqC;AAClE;AACA,iCAAiC,oBAAY;AAC7C;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB,CAAC,uBAAY,EAAE,mBAAQ,GAAG,0KAA0K;AAC3O,SAAS;AACT,gBAAgB,mBAAmB,cAAc,yBAAyB;AAC1E,YAAY,mBAAmB,UAAU,gCAAgC;AACzE,gBAAgB,mBAAmB,UAAU,4BAA4B;AACzE,gBAAgB,mBAAmB,UAAU,+BAA+B;AAC5E,YAAY,mBAAmB,SAAS,+BAA+B;AACvE;AACA;AACA,CAAC,CAAC,eAAe;AACO;AACxB;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;AACD,8DAAe,eAAe,EAAC;AAC/B;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,yDAAe,UAAU,EAAC;AAC1B;;ACpDe;AACf;AACA;AACA;AACA,+CAA+C,kCAAkC;AACjF;AACA;AACA;AACA;AACA;AACA,2DAA2D,kCAAkC;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBe;AACf,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;;;;;;ACPyF;AAClF;AACP;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,cAAc,wBAAK;AACnB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,uBAAuB,wBAAQ;AAC/B,IAAI,yBAAK;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,wBAAK;AAC3C,qBAAqB;AACrB;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,iCAAU;AACtB;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,oBAAoB,mCAAY;AAChC,iBAAiB,iCAAU;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,iBAAI;AAClB;AACA;AACA;AACA;AACA,sBAAsB,iBAAI;AAC1B;AACA,0BAA0B,iBAAI;AAC9B;AACA,iBAAiB;AACjB;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1HO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA,IAAI,eAAQ,IAAI,SAAI,IAAI,SAAI;AAC5B,IAAI,eAAQ;AACZ,iDAAiD,OAAO;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,eAAQ;AACnB;AACA,IAAI,eAAQ,IAAI,SAAI,IAAI,SAAI;AAC5B;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,IAAI,aAAM,IAAI,SAAI,IAAI,SAAI;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,MAAM;AAC1B;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,IAAI,eAAQ,IAAI,SAAI,IAAI,SAAI;AAC5B,6BAA6B,sBAAsB,oBAAoB,aAAM;AAC7E;AACA;AACkF;AAC3E;AACP;AACA;AACA;AACA;AACA,2BAA2B,eAAQ,qCAAqC,iBAAiB;AACzF;AACA;AACA;AACA;AACA;AACA,oCAAoC,eAAQ,GAAG;AAC/C;AACA;AACA;AACA,uDAAuD,eAAQ;AAC/D;AACA;AACA,oCAAoC,eAAQ,GAAG;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,QAAQ;AAC5B;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACO;AACP;AACA;AACA;AACA,UAAU,mCAAY;AACtB;AACA;AACA;AACA;AACA,gCAAgC,eAAQ,oDAAoD,sBAAsB;AAClH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,iBAAI;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,iBAAI;AACvC;AACA;AACA;AACA;AACA;AACA,kEAAkE,eAAQ;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,QAAQ;AAC5B;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACe;AACf;AACA,gCAAgC,wBAAQ;AACxC;AACA;AACA,sBAAsB,eAAQ,2CAA2C,UAAU;AACnF;AACA,oCAAoC,iBAAI;AACxC;AACA;AACA;AACA;AACA,oBAAoB,QAAQ;AAC5B;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,mBAAmB,eAAQ,CAAC,eAAQ,GAAG,WAAW,wBAAwB;AAC1E,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA,WAAW,yBAAK,yBAAyB,qCAAiB;AAC1D;AACA;;ACzKO;AACA;AACP;;;;;;ACFA,IAAI,gBAAS,IAAI,SAAI,IAAI,SAA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;AACA;AACA;AACA;AACA;AACA,oBAAoB,MAAM;AAC1B;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA,IAAI,eAAQ,IAAI,SAAI,IAAI,SAAI;AAC5B,6BAA6B,sBAAsB,oBAAoB,aAAM;AAC7E;AACA;AACA,IAAI,eAAQ,IAAI,SAAI,IAAI,SAAI;AAC5B;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AAC0B;AAC6E;AACvD;AAC6C;AAC7C;AACF;AACE;AACF;AACe;AACjB;AACM;AACJ;AACA;AACF;AACE;AACW;AACV;AAC4B;AAChC;AACR;AACc;AACY;AAClB;AAC8B;AACvC;AACiB;AACV;AACzC;AACA,4BAA4B,aAAa;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,2CAA2C,QAAQ,eAAQ,CAAC,eAAQ,GAAG,YAAY,4CAA4C;AAC/H;AACA,yBAAyB,iCAAY;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,gBAAS;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,uBAAuB;AACpD;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,kEAAkE;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD;AACxD,0DAA0D,eAAQ;AAClE,gEAAgE,kBAAkB;AAClF;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE,eAAQ,gEAAgE,0BAA0B;AAC1K;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,qBAAI;AACxD;AACA;AACA;AACA;AACA,iEAAiE,eAAQ,CAAC,eAAQ,GAAG;AACrF;AACA;AACA,wDAAwD,QAAQ;AAChE;AACA;AACA;AACA;AACA,sDAAsD;AACtD;AACA;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,wCAAwC,4BAA4B;AACpE;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,wBAAK,CAAC,wBAAK;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,wBAAK,CAAC,QAAQ;AAC1C;AACA,gCAAgC,QAAQ;AACxC;AACA,2BAA2B,eAAQ,GAAG,cAAc;AACpD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,2BAAe;AAC3B;AACA;AACA;AACA;AACA;AACA,6BAA6B,yBAAiB;AAC9C;AACA,2CAA2C,wBAAwB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,eAAQ,GAAG,qCAAqC;AACvE;AACA;AACA;AACA,6BAA6B,kBAAkB;AAC/C,YAAY,QAAQ,oBAAoB,gDAAgD;AACxF;AACA;AACA;AACA;AACA;AACA,6BAA6B,gBAAgB;AAC7C;AACA,gBAAgB,QAAQ,oBAAoB,8CAA8C;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,uBAAuB;AAChE;AACA;AACA;AACA,yBAAyB;AACzB,wBAAwB,QAAQ;AAChC;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,+CAA+C;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,+CAA+C;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,OAAO;AACpD;AACA;AACA;AACA;AACA;AACA,mDAAmD,OAAO;AAC1D;AACA,iCAAiC,kCAAkC;AACnE,gBAAgB,QAAQ;AACxB;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,eAAe;AAC5C;AACA;AACA;AACA;AACA;AACA,6CAA6C,OAAO;AACpD;AACA;AACA;AACA;AACA;AACA,oDAAoD,OAAO;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,wBAAwB;AAC7D;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,oBAAoB,QAAQ;AAC5B;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qCAAqC,4BAA4B;AACjE,oBAAoB,QAAQ;AAC5B;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,YAAY,QAAQ;AACpB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,MAAM;AACnD;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,MAAM;AACxD;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,gBAAgB,QAAQ;AACxB;AACA,iBAAiB;AACjB;AACA;AACA;AACA,qCAAqC,+BAA+B;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,kBAAU;AACvC;AACA,kCAAkC,oBAAY;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,yBAAiB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,wBAAwB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,kCAAc;AACjD;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,sDAAqB;AACzD;AACA;AACA,SAAS;AACT,6GAA6G,sBAAsB;AACnI,2GAA2G,MAAM;AACjH,sBAAsB,eAAQ,GAAG;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iIAAiI;AACjI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,uBAAe;AAClD,QAAQ,qBAAM;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,kCAAc;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,cAAc;AACrC,mBAAmB,IAAI;AACvB;AACA,SAAS,KAAK,mBAAmB;AACjC,sBAAsB,IAAI;AAC1B;AACA,SAAS,MAAM,mBAAmB;AAClC,YAAY,mBAAmB,CAAC,aAAa,IAAI,8F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ACnG;AACA,iCAAiC,0VAA0V;AAC3X,oBAAoB,mBAAmB,UAAU,yBAAyB;AAC1E,4DAA4D,mBAAmB,UAAU,gCAAgC;AACzH,4BAA4B,mBAAmB,UAAU,sBAAsB;AAC/E,wBAAwB,mBAAmB,CAAC,YAAY,IAAI;AAC5D;AACA,6BAA6B;AAC7B;AACA,6BAA6B,4HAA4H,YAAY,EAAE;AACvK;AACA,2CAA2C,mBAAmB,UAAU,wDAAwD;AAChI,gBAAgB,mBAAmB,UAAU,qHAAqH;AAClK,gBAAgB,mBAAmB,CAAC,WAAW,IAAI;AACnD;AACA,qBAAqB,oEAAoE;AACzF,oBAAoB,mBAAmB,aAAa,4GAA4G;AAChK;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB,6CAA6C,2CAA2C,wBAAwB,IAAI;AACpH;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,6BAA6B,8CAAiB;AAC9C;AACA,iCAAiC,kCAAc;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,yBAAiB;AACtD,uCAAuC,eAAQ,CAAC,eAAQ,GAAG,gBAAgB,iBAAiB,yBAAyB;AACrH;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,wBAAwB,yBAAK,CAAC,wBAAK,iCAAiC;AACpE;AACA;AACA,6BAA6B;AAC7B,yBAAyB;AACzB;AACA,2CAA2C,qCAA6B;AACxE;AACA;AACA;AACA;AACA,2DAA2D,OAAO,wBAAK,SAAS;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC,iCAAiC;AACjC;AACA;AACA;AACA;AACA,qCAAqC;AACrC,iCAAiC;AACjC,6BAA6B;AAC7B;AACA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA,iCAAiC;AACjC,6BAA6B,IAAI;AACjC;AACA,2DAA2D,YAAY,6GAA6G;AACpL;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA,qBAAqB;AACrB,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,uBAAuB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,8BAA8B;AAC/E,aAAa;AACb;AACA,2BAA2B,kCAAkC;AAC7D;AACA;AACA;AACA;AACA,2BAA2B,WAAW;AACtC,8BAA8B,cAAc;AAC5C,4BAA4B,YAAY;AACxC,4BAA4B,YAAY;AACxC,sBAAsB,aAAa;AACnC,6BAA6B,aAAa;AAC1C,qBAAqB,YAAY;AACjC,oBAAoB,WAAW;AAC/B,wBAAwB,eAAe;AACvC;AACA,CAAC,CAAC,eAAe;AACG;AACpB;AACA,YAAY,mBAAmB,UAAU,oBAAoB,qBAAqB,mBAAmB;AACrG;AACA,QAAQ,mBAAmB;AAC3B;AACA;AACA;AACA;AACA,YAAY,mBAAmB,UAAU,wEAAwE;AACjH;AACA;AACA;AACA,WAAW,mBAAmB,UAAU,qBAAqB;AAC7D;AACA;AACA,mYAAmY,mHAAmH,iCAAiC,+BAA+B,SAAS;AAC/jB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/vCA,IAAI,qBAAS,IAAI,SAAI,IAAI,SAAI;AAC7B;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B;AAC9B;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACD,IAAI,oBAAQ,IAAI,SAAI,IAAI,SAAI;AAC5B,IAAI,oBAAQ;AACZ,iDAAiD,OAAO;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,oBAAQ;AACnB;AAC0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,qBAAS;AACb;AACA;AACA;AACA;AACA;AACA,YAAY,4BAAc;AAC1B,6BAA6B,eAAe;AAC5C;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,cAAc;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB,sBAAsB,oBAAQ,GAAG,iBAAiB,yBAAyB;AAClH,SAAS;AACT,gBAAgB,mBAAmB,QAAQ,8FAA8F,4BAAc;AACvJ;AACA,aAAa,2BAA2B;AACxC;AACA,YAAY,mBAAmB,UAAU,2BAA2B;AACpE,gBAAgB,mBAAmB,WAAW,yCAAyC;AACvF,gBAAgB,mBAAmB,WAAW,0CAA0C;AACxF,YAAY,mBAAmB,SAAS,gEAAgE;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,4BAAc;AAC1B,4BAA4B,gBAAgB;AAC5C;AACA;AACA;AACA;AACA,CAAC,CAAC,eAAe;AACQ;AAClB;AACP;AACA,YAAY,mBAAmB,SAAS;AACxC;AACA,SAAS;AACT;AACA,SAAS,eAAe,4BAAc,uBAAuB;AAC7D;AACA,qBAAqB,mBAAmB,UAAU,2BAA2B;AAC7E,YAAY,mBAAmB,cAAc,4FAA4F;AACzI;AACA,SAAS,4BAAc;AACvB;AACA;AACA;;AC7GiD;AAC7B;AACpB,mDAAe,QAAQ,EAAC;AAC+B;AACM;AACN;AACiB;AACb;AACF;AACuB;AAChC;AACS;AACgC;AAClB;AACvE","sources":["webpack://admin/./node_modules/graphiql/esm/components/ExecuteButton.js","webpack://admin/./node_modules/graphiql/esm/components/ImagePreview.js","webpack://admin/./node_modules/graphiql/esm/components/ToolbarButton.js","webpack://admin/./node_modules/graphiql/esm/components/ToolbarGroup.js","webpack://admin/./node_modules/graphiql/esm/components/ToolbarMenu.js","webpack://admin/./node_modules/graphiql/esm/utility/normalizeWhitespace.js","webpack://admin/./node_modules/graphiql/esm/utility/onHasCompletion.js","webpack://admin/./node_modules/graphiql/esm/utility/commonKeys.js","webpack://admin/./node_modules/graphiql/esm/components/QueryEditor.js","webpack://admin/./node_modules/graphiql/esm/components/VariableEditor.js","webpack://admin/./node_modules/graphiql/esm/components/HeaderEditor.js","webpack://admin/./node_modules/graphiql/esm/components/ResultViewer.js","webpack://admin/./node_modules/graphiql/esm/components/DocExplorer/TypeLink.js","webpack://admin/./node_modules/graphiql/esm/components/DocExplorer/DefaultValue.js","webpack://admin/./node_modules/graphiql/esm/components/DocExplorer/Argument.js","webpack://admin/./node_modules/graphiql/esm/components/DocExplorer/Directive.js","webpack://admin/./node_modules/graphiql/esm/components/DocExplorer/MarkdownContent.js","webpack://admin/./node_modules/graphiql/esm/components/DocExplorer/FieldDoc.js","webpack://admin/./node_modules/graphiql/esm/components/DocExplorer/SchemaDoc.js","webpack://admin/./node_modules/graphiql/esm/utility/debounce.js","webpack://admin/./node_modules/graphiql/esm/components/DocExplorer/SearchBox.js","webpack://admin/./node_modules/graphiql/esm/components/DocExplorer/SearchResults.js","webpack://admin/./node_modules/graphiql/esm/components/DocExplorer/TypeDoc.js","webpack://admin/./node_modules/graphiql/esm/components/DocExplorer.js","webpack://admin/./node_modules/graphiql/esm/components/HistoryQuery.js","webpack://admin/./node_modules/graphiql/esm/utility/QueryStore.js","webpack://admin/./node_modules/graphiql/esm/utility/HistoryStore.js","webpack://admin/./node_modules/graphiql/esm/components/QueryHistory.js","webpack://admin/./node_modules/graphiql/esm/utility/CodeMirrorSizer.js","webpack://admin/./node_modules/graphiql/esm/utility/StorageAPI.js","webpack://admin/./node_modules/graphiql/esm/utility/getSelectedOperationName.js","webpack://admin/./node_modules/graphiql/esm/utility/find.js","webpack://admin/./node_modules/graphiql/esm/utility/fillLeafs.js","webpack://admin/./node_modules/graphiql/esm/utility/elementPosition.js","webpack://admin/./node_modules/graphiql/esm/utility/mergeAst.js","webpack://admin/./node_modules/graphiql/esm/utility/introspectionQueries.js","webpack://admin/./node_modules/graphiql/esm/components/GraphiQL.js","webpack://admin/./node_modules/graphiql/esm/components/ToolbarSelect.js","webpack://admin/./node_modules/graphiql/esm/index.js"],"sourcesContent":["var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nimport React from 'react';\nvar ExecuteButton = (function (_super) {\n    __extends(ExecuteButton, _super);\n    function ExecuteButton(props) {\n        var _this = _super.call(this, props) || this;\n        _this._onClick = function () {\n            if (_this.props.isRunning) {\n                _this.props.onStop();\n            }\n            else {\n                _this.props.onRun();\n            }\n        };\n        _this._onOptionSelected = function (operation) {\n            _this.setState({ optionsOpen: false });\n            _this.props.onRun(operation.name && operation.name.value);\n        };\n        _this._onOptionsOpen = function (downEvent) {\n            var initialPress = true;\n            var downTarget = downEvent.currentTarget;\n            _this.setState({ highlight: null, optionsOpen: true });\n            var onMouseUp = function (upEvent) {\n                var _a;\n                if (initialPress && upEvent.target === downTarget) {\n                    initialPress = false;\n                }\n                else {\n                    document.removeEventListener('mouseup', onMouseUp);\n                    onMouseUp = null;\n                    var isOptionsMenuClicked = upEvent.currentTarget && ((_a = downTarget.parentNode) === null || _a === void 0 ? void 0 : _a.compareDocumentPosition(upEvent.currentTarget)) &&\n                        Node.DOCUMENT_POSITION_CONTAINED_BY;\n                    if (!isOptionsMenuClicked) {\n                        _this.setState({ optionsOpen: false });\n                    }\n                }\n            };\n            document.addEventListener('mouseup', onMouseUp);\n        };\n        _this.state = {\n            optionsOpen: false,\n            highlight: null,\n        };\n        return _this;\n    }\n    ExecuteButton.prototype.render = function () {\n        var _this = this;\n        var operations = this.props.operations || [];\n        var optionsOpen = this.state.optionsOpen;\n        var hasOptions = operations && operations.length > 1;\n        var options = null;\n        if (hasOptions && optionsOpen) {\n            var highlight_1 = this.state.highlight;\n            options = (React.createElement(\"ul\", { className: \"execute-options\" }, operations.map(function (operation, i) {\n                var opName = operation.name\n                    ? operation.name.value\n                    : \"<Unnamed \" + operation.operation + \">\";\n                return (React.createElement(\"li\", { key: opName + \"-\" + i, className: operation === highlight_1 ? 'selected' : undefined, onMouseOver: function () { return _this.setState({ highlight: operation }); }, onMouseOut: function () { return _this.setState({ highlight: null }); }, onMouseUp: function () { return _this._onOptionSelected(operation); } }, opName));\n            })));\n        }\n        var onClick;\n        if (this.props.isRunning || !hasOptions) {\n            onClick = this._onClick;\n        }\n        var onMouseDown = function () { };\n        if (!this.props.isRunning && hasOptions && !optionsOpen) {\n            onMouseDown = this._onOptionsOpen;\n        }\n        var pathJSX = this.props.isRunning ? (React.createElement(\"path\", { d: \"M 10 10 L 23 10 L 23 23 L 10 23 z\" })) : (React.createElement(\"path\", { d: \"M 11 9 L 24 16 L 11 23 z\" }));\n        return (React.createElement(\"div\", { className: \"execute-button-wrap\" },\n            React.createElement(\"button\", { type: \"button\", className: \"execute-button\", onMouseDown: onMouseDown, onClick: onClick, title: \"Execute Query (Ctrl-Enter)\" },\n                React.createElement(\"svg\", { width: \"34\", height: \"34\" }, pathJSX)),\n            options));\n    };\n    return ExecuteButton;\n}(React.Component));\nexport { ExecuteButton };\n//# sourceMappingURL=ExecuteButton.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nimport React from 'react';\nfunction tokenToURL(token) {\n    if (token.type !== 'string') {\n        return;\n    }\n    var value = token.string.slice(1).slice(0, -1).trim();\n    try {\n        var location_1 = window.location;\n        return new URL(value, location_1.protocol + '//' + location_1.host);\n    }\n    catch (err) {\n        return;\n    }\n}\nfunction isImageURL(url) {\n    return /(bmp|gif|jpeg|jpg|png|svg)$/.test(url.pathname);\n}\nvar ImagePreview = (function (_super) {\n    __extends(ImagePreview, _super);\n    function ImagePreview() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this._node = null;\n        _this.state = {\n            width: null,\n            height: null,\n            src: null,\n            mime: null,\n        };\n        return _this;\n    }\n    ImagePreview.shouldRender = function (token) {\n        var url = tokenToURL(token);\n        return url ? isImageURL(url) : false;\n    };\n    ImagePreview.prototype.componentDidMount = function () {\n        this._updateMetadata();\n    };\n    ImagePreview.prototype.componentDidUpdate = function () {\n        this._updateMetadata();\n    };\n    ImagePreview.prototype.render = function () {\n        var _this = this;\n        var _a;\n        var dims = null;\n        if (this.state.width !== null && this.state.height !== null) {\n            var dimensions = this.state.width + 'x' + this.state.height;\n            if (this.state.mime !== null) {\n                dimensions += ' ' + this.state.mime;\n            }\n            dims = React.createElement(\"div\", null, dimensions);\n        }\n        return (React.createElement(\"div\", null,\n            React.createElement(\"img\", { onLoad: function () { return _this._updateMetadata(); }, ref: function (node) {\n                    _this._node = node;\n                }, src: (_a = tokenToURL(this.props.token)) === null || _a === void 0 ? void 0 : _a.href }),\n            dims));\n    };\n    ImagePreview.prototype._updateMetadata = function () {\n        var _this = this;\n        if (!this._node) {\n            return;\n        }\n        var width = this._node.naturalWidth;\n        var height = this._node.naturalHeight;\n        var src = this._node.src;\n        if (src !== this.state.src) {\n            this.setState({ src: src });\n            fetch(src, { method: 'HEAD' }).then(function (response) {\n                _this.setState({\n                    mime: response.headers.get('Content-Type'),\n                });\n            });\n        }\n        if (width !== this.state.width || height !== this.state.height) {\n            this.setState({ height: height, width: width });\n        }\n    };\n    return ImagePreview;\n}(React.Component));\nexport { ImagePreview };\n//# sourceMappingURL=ImagePreview.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nimport React from 'react';\nvar ToolbarButton = (function (_super) {\n    __extends(ToolbarButton, _super);\n    function ToolbarButton(props) {\n        var _this = _super.call(this, props) || this;\n        _this.handleClick = function () {\n            try {\n                _this.props.onClick();\n                _this.setState({ error: null });\n            }\n            catch (error) {\n                _this.setState({ error: error });\n            }\n        };\n        _this.state = { error: null };\n        return _this;\n    }\n    ToolbarButton.prototype.render = function () {\n        var error = this.state.error;\n        return (React.createElement(\"button\", { className: 'toolbar-button' + (error ? ' error' : ''), onClick: this.handleClick, title: error ? error.message : this.props.title, \"aria-invalid\": error ? 'true' : 'false' }, this.props.label));\n    };\n    return ToolbarButton;\n}(React.Component));\nexport { ToolbarButton };\n//# sourceMappingURL=ToolbarButton.js.map","import React from 'react';\nexport function ToolbarGroup(_a) {\n    var children = _a.children;\n    return React.createElement(\"div\", { className: \"toolbar-button-group\" }, children);\n}\n//# sourceMappingURL=ToolbarGroup.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nimport React from 'react';\nvar ToolbarMenu = (function (_super) {\n    __extends(ToolbarMenu, _super);\n    function ToolbarMenu(props) {\n        var _this = _super.call(this, props) || this;\n        _this._node = null;\n        _this._listener = null;\n        _this.handleOpen = function (e) {\n            preventDefault(e);\n            _this.setState({ visible: true });\n            _this._subscribe();\n        };\n        _this.state = { visible: false };\n        return _this;\n    }\n    ToolbarMenu.prototype.componentWillUnmount = function () {\n        this._release();\n    };\n    ToolbarMenu.prototype.render = function () {\n        var _this = this;\n        var visible = this.state.visible;\n        return (React.createElement(\"a\", { className: \"toolbar-menu toolbar-button\", onClick: this.handleOpen.bind(this), onMouseDown: preventDefault, ref: function (node) {\n                if (node) {\n                    _this._node = node;\n                }\n            }, title: this.props.title },\n            this.props.label,\n            React.createElement(\"svg\", { width: \"14\", height: \"8\" },\n                React.createElement(\"path\", { fill: \"#666\", d: \"M 5 1.5 L 14 1.5 L 9.5 7 z\" })),\n            React.createElement(\"ul\", { className: 'toolbar-menu-items' + (visible ? ' open' : '') }, this.props.children)));\n    };\n    ToolbarMenu.prototype._subscribe = function () {\n        if (!this._listener) {\n            this._listener = this.handleClick.bind(this);\n            document.addEventListener('click', this._listener);\n        }\n    };\n    ToolbarMenu.prototype._release = function () {\n        if (this._listener) {\n            document.removeEventListener('click', this._listener);\n            this._listener = null;\n        }\n    };\n    ToolbarMenu.prototype.handleClick = function (e) {\n        if (this._node !== e.target) {\n            e.preventDefault();\n            this.setState({ visible: false });\n            this._release();\n        }\n    };\n    return ToolbarMenu;\n}(React.Component));\nexport { ToolbarMenu };\nexport var ToolbarMenuItem = function (_a) {\n    var onSelect = _a.onSelect, title = _a.title, label = _a.label;\n    return (React.createElement(\"li\", { onMouseOver: function (e) {\n            e.currentTarget.className = 'hover';\n        }, onMouseOut: function (e) {\n            e.currentTarget.className = '';\n        }, onMouseDown: preventDefault, onMouseUp: onSelect, title: title }, label));\n};\nfunction preventDefault(e) {\n    e.preventDefault();\n}\n//# sourceMappingURL=ToolbarMenu.js.map","export var invalidCharacters = Array.from({ length: 11 }, function (_, i) {\n    return String.fromCharCode(0x2000 + i);\n}).concat(['\\u2028', '\\u2029', '\\u202f', '\\u00a0']);\nvar sanitizeRegex = new RegExp('[' + invalidCharacters.join('') + ']', 'g');\nexport function normalizeWhitespace(line) {\n    return line.replace(sanitizeRegex, ' ');\n}\n//# sourceMappingURL=normalizeWhitespace.js.map","import { GraphQLNonNull, GraphQLList, } from 'graphql';\nimport escapeHTML from 'escape-html';\nimport MD from 'markdown-it';\nvar md = new MD();\nexport default function onHasCompletion(_cm, data, onHintInformationRender) {\n    var CodeMirror = require('codemirror');\n    var information;\n    var deprecation;\n    CodeMirror.on(data, 'select', function (ctx, el) {\n        if (!information) {\n            var hintsUl_1 = el.parentNode;\n            information = document.createElement('div');\n            information.className = 'CodeMirror-hint-information';\n            hintsUl_1.appendChild(information);\n            deprecation = document.createElement('div');\n            deprecation.className = 'CodeMirror-hint-deprecation';\n            hintsUl_1.appendChild(deprecation);\n            var onRemoveFn_1;\n            hintsUl_1.addEventListener('DOMNodeRemoved', (onRemoveFn_1 = function (event) {\n                if (event.target === hintsUl_1) {\n                    hintsUl_1.removeEventListener('DOMNodeRemoved', onRemoveFn_1);\n                    information = null;\n                    deprecation = null;\n                    onRemoveFn_1 = null;\n                }\n            }));\n        }\n        var description = ctx.description\n            ? md.render(ctx.description)\n            : 'Self descriptive.';\n        var type = ctx.type\n            ? '<span class=\"infoType\">' + renderType(ctx.type) + '</span>'\n            : '';\n        information.innerHTML =\n            '<div class=\"content\">' +\n                (description.slice(0, 3) === '<p>'\n                    ? '<p>' + type + description.slice(3)\n                    : type + description) +\n                '</div>';\n        if (ctx && deprecation && ctx.deprecationReason) {\n            var reason = ctx.deprecationReason\n                ? md.render(ctx.deprecationReason)\n                : '';\n            deprecation.innerHTML =\n                '<span class=\"deprecation-label\">Deprecated</span>' + reason;\n            deprecation.style.display = 'block';\n        }\n        else if (deprecation) {\n            deprecation.style.display = 'none';\n        }\n        if (onHintInformationRender) {\n            onHintInformationRender(information);\n        }\n    });\n}\nfunction renderType(type) {\n    if (type instanceof GraphQLNonNull) {\n        return renderType(type.ofType) + \"!\";\n    }\n    if (type instanceof GraphQLList) {\n        return \"[\" + renderType(type.ofType) + \"]\";\n    }\n    return \"<a class=\\\"typeName\\\">\" + escapeHTML(type.name) + \"</a>\";\n}\n//# sourceMappingURL=onHasCompletion.js.map","var _a;\nvar isMacOs = false;\nif (typeof window === 'object') {\n    isMacOs = window.navigator.platform === 'MacIntel';\n}\nvar commonKeys = (_a = {},\n    _a[isMacOs ? 'Cmd-F' : 'Ctrl-F'] = 'findPersistent',\n    _a['Cmd-G'] = 'findPersistent',\n    _a['Ctrl-G'] = 'findPersistent',\n    _a['Ctrl-Left'] = 'goSubwordLeft',\n    _a['Ctrl-Right'] = 'goSubwordRight',\n    _a['Alt-Left'] = 'goGroupLeft',\n    _a['Alt-Right'] = 'goGroupRight',\n    _a);\nexport default commonKeys;\n//# sourceMappingURL=commonKeys.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nimport React from 'react';\nimport MD from 'markdown-it';\nimport { normalizeWhitespace } from '../utility/normalizeWhitespace';\nimport onHasCompletion from '../utility/onHasCompletion';\nimport commonKeys from '../utility/commonKeys';\nvar md = new MD();\nvar AUTO_COMPLETE_AFTER_KEY = /^[a-zA-Z0-9_@(]$/;\nvar QueryEditor = (function (_super) {\n    __extends(QueryEditor, _super);\n    function QueryEditor(props) {\n        var _this = _super.call(this, props) || this;\n        _this.editor = null;\n        _this.ignoreChangeEvent = false;\n        _this._node = null;\n        _this._onKeyUp = function (_cm, event) {\n            if (AUTO_COMPLETE_AFTER_KEY.test(event.key) && _this.editor) {\n                _this.editor.execCommand('autocomplete');\n            }\n        };\n        _this._onEdit = function () {\n            if (!_this.ignoreChangeEvent && _this.editor) {\n                _this.cachedValue = _this.editor.getValue();\n                if (_this.props.onEdit) {\n                    _this.props.onEdit(_this.cachedValue);\n                }\n            }\n        };\n        _this._onHasCompletion = function (cm, data) {\n            onHasCompletion(cm, data, _this.props.onHintInformationRender);\n        };\n        _this.cachedValue = props.value || '';\n        return _this;\n    }\n    QueryEditor.prototype.componentDidMount = function () {\n        var _this = this;\n        var _a, _b, _c;\n        var CodeMirror = require('codemirror');\n        require('codemirror/addon/hint/show-hint');\n        require('codemirror/addon/comment/comment');\n        require('codemirror/addon/edit/matchbrackets');\n        require('codemirror/addon/edit/closebrackets');\n        require('codemirror/addon/fold/foldgutter');\n        require('codemirror/addon/fold/brace-fold');\n        require('codemirror/addon/search/search');\n        require('codemirror/addon/search/searchcursor');\n        require('codemirror/addon/search/jump-to-line');\n        require('codemirror/addon/dialog/dialog');\n        require('codemirror/addon/lint/lint');\n        require('codemirror/keymap/sublime');\n        require('codemirror-graphql/hint');\n        require('codemirror-graphql/lint');\n        require('codemirror-graphql/info');\n        require('codemirror-graphql/jump');\n        require('codemirror-graphql/mode');\n        var editor = (this.editor = CodeMirror(this._node, {\n            value: this.props.value || '',\n            lineNumbers: true,\n            tabSize: 2,\n            mode: 'graphql',\n            theme: this.props.editorTheme || 'graphiql',\n            keyMap: 'sublime',\n            autoCloseBrackets: true,\n            matchBrackets: true,\n            showCursorWhenSelecting: true,\n            readOnly: this.props.readOnly ? 'nocursor' : false,\n            foldGutter: {\n                minFoldSize: 4,\n            },\n            lint: {\n                schema: this.props.schema,\n                validationRules: (_a = this.props.validationRules) !== null && _a !== void 0 ? _a : null,\n                externalFragments: (_b = this.props) === null || _b === void 0 ? void 0 : _b.externalFragments,\n            },\n            hintOptions: {\n                schema: this.props.schema,\n                closeOnUnfocus: false,\n                completeSingle: false,\n                container: this._node,\n                externalFragments: (_c = this.props) === null || _c === void 0 ? void 0 : _c.externalFragments,\n            },\n            info: {\n                schema: this.props.schema,\n                renderDescription: function (text) { return md.render(text); },\n                onClick: function (reference) {\n                    return _this.props.onClickReference && _this.props.onClickReference(reference);\n                },\n            },\n            jump: {\n                schema: this.props.schema,\n                onClick: function (reference) {\n                    return _this.props.onClickReference && _this.props.onClickReference(reference);\n                },\n            },\n            gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter'],\n            extraKeys: __assign(__assign({ 'Cmd-Space': function () {\n                    return editor.showHint({ completeSingle: true, container: _this._node });\n                }, 'Ctrl-Space': function () {\n                    return editor.showHint({ completeSingle: true, container: _this._node });\n                }, 'Alt-Space': function () {\n                    return editor.showHint({ completeSingle: true, container: _this._node });\n                }, 'Shift-Space': function () {\n                    return editor.showHint({ completeSingle: true, container: _this._node });\n                }, 'Shift-Alt-Space': function () {\n                    return editor.showHint({ completeSingle: true, container: _this._node });\n                }, 'Cmd-Enter': function () {\n                    if (_this.props.onRunQuery) {\n                        _this.props.onRunQuery();\n                    }\n                }, 'Ctrl-Enter': function () {\n                    if (_this.props.onRunQuery) {\n                        _this.props.onRunQuery();\n                    }\n                }, 'Shift-Ctrl-C': function () {\n                    if (_this.props.onCopyQuery) {\n                        _this.props.onCopyQuery();\n                    }\n                }, 'Shift-Ctrl-P': function () {\n                    if (_this.props.onPrettifyQuery) {\n                        _this.props.onPrettifyQuery();\n                    }\n                }, 'Shift-Ctrl-F': function () {\n                    if (_this.props.onPrettifyQuery) {\n                        _this.props.onPrettifyQuery();\n                    }\n                }, 'Shift-Ctrl-M': function () {\n                    if (_this.props.onMergeQuery) {\n                        _this.props.onMergeQuery();\n                    }\n                } }, commonKeys), { 'Cmd-S': function () {\n                    if (_this.props.onRunQuery) {\n                    }\n                }, 'Ctrl-S': function () {\n                    if (_this.props.onRunQuery) {\n                    }\n                } }),\n        }));\n        if (editor) {\n            editor.on('change', this._onEdit);\n            editor.on('keyup', this._onKeyUp);\n            editor.on('hasCompletion', this._onHasCompletion);\n            editor.on('beforeChange', this._onBeforeChange);\n        }\n    };\n    QueryEditor.prototype.componentDidUpdate = function (prevProps) {\n        var CodeMirror = require('codemirror');\n        this.ignoreChangeEvent = true;\n        if (this.props.schema !== prevProps.schema && this.editor) {\n            this.editor.options.lint.schema = this.props.schema;\n            this.editor.options.hintOptions.schema = this.props.schema;\n            this.editor.options.info.schema = this.props.schema;\n            this.editor.options.jump.schema = this.props.schema;\n            CodeMirror.signal(this.editor, 'change', this.editor);\n        }\n        if (this.props.value !== prevProps.value &&\n            this.props.value !== this.cachedValue &&\n            this.editor) {\n            this.cachedValue = this.props.value;\n            this.editor.setValue(this.props.value);\n        }\n        this.ignoreChangeEvent = false;\n    };\n    QueryEditor.prototype.componentWillUnmount = function () {\n        if (this.editor) {\n            this.editor.off('change', this._onEdit);\n            this.editor.off('keyup', this._onKeyUp);\n            this.editor.off('hasCompletion', this._onHasCompletion);\n            this.editor = null;\n        }\n    };\n    QueryEditor.prototype.render = function () {\n        var _this = this;\n        return (React.createElement(\"section\", { className: \"query-editor\", \"aria-label\": \"Query Editor\", ref: function (node) {\n                _this._node = node;\n            } }));\n    };\n    QueryEditor.prototype.getCodeMirror = function () {\n        return this.editor;\n    };\n    QueryEditor.prototype.getClientHeight = function () {\n        return this._node && this._node.clientHeight;\n    };\n    QueryEditor.prototype._onBeforeChange = function (_instance, change) {\n        if (change.origin === 'paste') {\n            var text = change.text.map(normalizeWhitespace);\n            change.update(change.from, change.to, text);\n        }\n    };\n    return QueryEditor;\n}(React.Component));\nexport { QueryEditor };\n//# sourceMappingURL=QueryEditor.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nimport React from 'react';\nimport onHasCompletion from '../utility/onHasCompletion';\nimport commonKeys from '../utility/commonKeys';\nvar VariableEditor = (function (_super) {\n    __extends(VariableEditor, _super);\n    function VariableEditor(props) {\n        var _this = _super.call(this, props) || this;\n        _this.editor = null;\n        _this._node = null;\n        _this.ignoreChangeEvent = false;\n        _this._onKeyUp = function (_cm, event) {\n            var code = event.keyCode;\n            if (!_this.editor) {\n                return;\n            }\n            if ((code >= 65 && code <= 90) ||\n                (!event.shiftKey && code >= 48 && code <= 57) ||\n                (event.shiftKey && code === 189) ||\n                (event.shiftKey && code === 222)) {\n                _this.editor.execCommand('autocomplete');\n            }\n        };\n        _this._onEdit = function () {\n            if (!_this.editor) {\n                return;\n            }\n            if (!_this.ignoreChangeEvent) {\n                _this.cachedValue = _this.editor.getValue();\n                if (_this.props.onEdit) {\n                    _this.props.onEdit(_this.cachedValue);\n                }\n            }\n        };\n        _this._onHasCompletion = function (instance, changeObj) {\n            onHasCompletion(instance, changeObj, _this.props.onHintInformationRender);\n        };\n        _this.cachedValue = props.value || '';\n        return _this;\n    }\n    VariableEditor.prototype.componentDidMount = function () {\n        var _this = this;\n        this.CodeMirror = require('codemirror');\n        require('codemirror/addon/hint/show-hint');\n        require('codemirror/addon/edit/matchbrackets');\n        require('codemirror/addon/edit/closebrackets');\n        require('codemirror/addon/fold/brace-fold');\n        require('codemirror/addon/fold/foldgutter');\n        require('codemirror/addon/lint/lint');\n        require('codemirror/addon/search/searchcursor');\n        require('codemirror/addon/search/jump-to-line');\n        require('codemirror/addon/dialog/dialog');\n        require('codemirror/keymap/sublime');\n        require('codemirror-graphql/variables/hint');\n        require('codemirror-graphql/variables/lint');\n        require('codemirror-graphql/variables/mode');\n        var editor = (this.editor = this.CodeMirror(this._node, {\n            value: this.props.value || '',\n            lineNumbers: true,\n            tabSize: 2,\n            mode: 'graphql-variables',\n            theme: this.props.editorTheme || 'graphiql',\n            keyMap: 'sublime',\n            autoCloseBrackets: true,\n            matchBrackets: true,\n            showCursorWhenSelecting: true,\n            readOnly: this.props.readOnly ? 'nocursor' : false,\n            foldGutter: {\n                minFoldSize: 4,\n            },\n            lint: {\n                variableToType: this.props.variableToType,\n            },\n            hintOptions: {\n                variableToType: this.props.variableToType,\n                closeOnUnfocus: false,\n                completeSingle: false,\n                container: this._node,\n            },\n            gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter'],\n            extraKeys: __assign({ 'Cmd-Space': function () {\n                    return _this.editor.showHint({\n                        completeSingle: false,\n                        container: _this._node,\n                    });\n                }, 'Ctrl-Space': function () {\n                    return _this.editor.showHint({\n                        completeSingle: false,\n                        container: _this._node,\n                    });\n                }, 'Alt-Space': function () {\n                    return _this.editor.showHint({\n                        completeSingle: false,\n                        container: _this._node,\n                    });\n                }, 'Shift-Space': function () {\n                    return _this.editor.showHint({\n                        completeSingle: false,\n                        container: _this._node,\n                    });\n                }, 'Cmd-Enter': function () {\n                    if (_this.props.onRunQuery) {\n                        _this.props.onRunQuery();\n                    }\n                }, 'Ctrl-Enter': function () {\n                    if (_this.props.onRunQuery) {\n                        _this.props.onRunQuery();\n                    }\n                }, 'Shift-Ctrl-P': function () {\n                    if (_this.props.onPrettifyQuery) {\n                        _this.props.onPrettifyQuery();\n                    }\n                }, 'Shift-Ctrl-M': function () {\n                    if (_this.props.onMergeQuery) {\n                        _this.props.onMergeQuery();\n                    }\n                } }, commonKeys),\n        }));\n        editor.on('change', this._onEdit);\n        editor.on('keyup', this._onKeyUp);\n        editor.on('hasCompletion', this._onHasCompletion);\n    };\n    VariableEditor.prototype.componentDidUpdate = function (prevProps) {\n        this.CodeMirror = require('codemirror');\n        if (!this.editor) {\n            return;\n        }\n        this.ignoreChangeEvent = true;\n        if (this.props.variableToType !== prevProps.variableToType) {\n            this.editor.options.lint.variableToType = this.props.variableToType;\n            this.editor.options.hintOptions.variableToType = this.props.variableToType;\n            this.CodeMirror.signal(this.editor, 'change', this.editor);\n        }\n        if (this.props.value !== prevProps.value &&\n            this.props.value !== this.cachedValue) {\n            var thisValue = this.props.value || '';\n            this.cachedValue = thisValue;\n            this.editor.setValue(thisValue);\n        }\n        this.ignoreChangeEvent = false;\n    };\n    VariableEditor.prototype.componentWillUnmount = function () {\n        if (!this.editor) {\n            return;\n        }\n        this.editor.off('change', this._onEdit);\n        this.editor.off('keyup', this._onKeyUp);\n        this.editor.off('hasCompletion', this._onHasCompletion);\n        this.editor = null;\n    };\n    VariableEditor.prototype.render = function () {\n        var _this = this;\n        return (React.createElement(\"div\", { className: \"codemirrorWrap\", style: {\n                position: this.props.active ? 'relative' : 'absolute',\n                visibility: this.props.active ? 'visible' : 'hidden',\n            }, ref: function (node) {\n                _this._node = node;\n            } }));\n    };\n    VariableEditor.prototype.getCodeMirror = function () {\n        return this.editor;\n    };\n    VariableEditor.prototype.getClientHeight = function () {\n        return this._node && this._node.clientHeight;\n    };\n    return VariableEditor;\n}(React.Component));\nexport { VariableEditor };\n//# sourceMappingURL=VariableEditor.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nimport React from 'react';\nimport onHasCompletion from '../utility/onHasCompletion';\nimport commonKeys from '../utility/commonKeys';\nvar HeaderEditor = (function (_super) {\n    __extends(HeaderEditor, _super);\n    function HeaderEditor(props) {\n        var _this = _super.call(this, props) || this;\n        _this.editor = null;\n        _this._node = null;\n        _this.ignoreChangeEvent = false;\n        _this._onKeyUp = function (_cm, event) {\n            var code = event.keyCode;\n            if (!_this.editor) {\n                return;\n            }\n            if ((code >= 65 && code <= 90) ||\n                (!event.shiftKey && code >= 48 && code <= 57) ||\n                (event.shiftKey && code === 189) ||\n                (event.shiftKey && code === 222)) {\n                _this.editor.execCommand('autocomplete');\n            }\n        };\n        _this._onEdit = function () {\n            if (!_this.editor) {\n                return;\n            }\n            if (!_this.ignoreChangeEvent) {\n                _this.cachedValue = _this.editor.getValue();\n                if (_this.props.onEdit) {\n                    _this.props.onEdit(_this.cachedValue);\n                }\n            }\n        };\n        _this._onHasCompletion = function (instance, changeObj) {\n            onHasCompletion(instance, changeObj, _this.props.onHintInformationRender);\n        };\n        _this.cachedValue = props.value || '';\n        return _this;\n    }\n    HeaderEditor.prototype.componentDidMount = function () {\n        var _this = this;\n        this.CodeMirror = require('codemirror');\n        require('codemirror/addon/hint/show-hint');\n        require('codemirror/addon/edit/matchbrackets');\n        require('codemirror/addon/edit/closebrackets');\n        require('codemirror/addon/fold/brace-fold');\n        require('codemirror/addon/fold/foldgutter');\n        require('codemirror/addon/lint/lint');\n        require('codemirror/addon/search/searchcursor');\n        require('codemirror/addon/search/jump-to-line');\n        require('codemirror/addon/dialog/dialog');\n        require('codemirror/mode/javascript/javascript');\n        require('codemirror/keymap/sublime');\n        var editor = (this.editor = this.CodeMirror(this._node, {\n            value: this.props.value || '',\n            lineNumbers: true,\n            tabSize: 2,\n            mode: { name: 'javascript', json: true },\n            theme: this.props.editorTheme || 'graphiql',\n            keyMap: 'sublime',\n            autoCloseBrackets: true,\n            matchBrackets: true,\n            showCursorWhenSelecting: true,\n            readOnly: this.props.readOnly ? 'nocursor' : false,\n            foldGutter: {\n                minFoldSize: 4,\n            },\n            gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter'],\n            extraKeys: __assign({ 'Cmd-Space': function () {\n                    return _this.editor.showHint({\n                        completeSingle: false,\n                        container: _this._node,\n                    });\n                }, 'Ctrl-Space': function () {\n                    return _this.editor.showHint({\n                        completeSingle: false,\n                        container: _this._node,\n                    });\n                }, 'Alt-Space': function () {\n                    return _this.editor.showHint({\n                        completeSingle: false,\n                        container: _this._node,\n                    });\n                }, 'Shift-Space': function () {\n                    return _this.editor.showHint({\n                        completeSingle: false,\n                        container: _this._node,\n                    });\n                }, 'Cmd-Enter': function () {\n                    if (_this.props.onRunQuery) {\n                        _this.props.onRunQuery();\n                    }\n                }, 'Ctrl-Enter': function () {\n                    if (_this.props.onRunQuery) {\n                        _this.props.onRunQuery();\n                    }\n                }, 'Shift-Ctrl-P': function () {\n                    if (_this.props.onPrettifyQuery) {\n                        _this.props.onPrettifyQuery();\n                    }\n                }, 'Shift-Ctrl-M': function () {\n                    if (_this.props.onMergeQuery) {\n                        _this.props.onMergeQuery();\n                    }\n                } }, commonKeys),\n        }));\n        editor.on('change', this._onEdit);\n        editor.on('keyup', this._onKeyUp);\n        editor.on('hasCompletion', this._onHasCompletion);\n    };\n    HeaderEditor.prototype.componentDidUpdate = function (prevProps) {\n        this.CodeMirror = require('codemirror');\n        if (!this.editor) {\n            return;\n        }\n        this.ignoreChangeEvent = true;\n        if (this.props.value !== prevProps.value &&\n            this.props.value !== this.cachedValue) {\n            var thisValue = this.props.value || '';\n            this.cachedValue = thisValue;\n            this.editor.setValue(thisValue);\n        }\n        this.ignoreChangeEvent = false;\n    };\n    HeaderEditor.prototype.componentWillUnmount = function () {\n        if (!this.editor) {\n            return;\n        }\n        this.editor.off('change', this._onEdit);\n        this.editor.off('keyup', this._onKeyUp);\n        this.editor.off('hasCompletion', this._onHasCompletion);\n        this.editor = null;\n    };\n    HeaderEditor.prototype.render = function () {\n        var _this = this;\n        return (React.createElement(\"div\", { className: \"codemirrorWrap\", style: {\n                position: this.props.active ? 'relative' : 'absolute',\n                visibility: this.props.active ? 'visible' : 'hidden',\n            }, ref: function (node) {\n                _this._node = node;\n            } }));\n    };\n    HeaderEditor.prototype.getCodeMirror = function () {\n        return this.editor;\n    };\n    HeaderEditor.prototype.getClientHeight = function () {\n        return this._node && this._node.clientHeight;\n    };\n    return HeaderEditor;\n}(React.Component));\nexport { HeaderEditor };\n//# sourceMappingURL=HeaderEditor.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport commonKeys from '../utility/commonKeys';\nvar ResultViewer = (function (_super) {\n    __extends(ResultViewer, _super);\n    function ResultViewer() {\n        var _this = _super !== null && _super.apply(this, arguments) || this;\n        _this.viewer = null;\n        _this._node = null;\n        return _this;\n    }\n    ResultViewer.prototype.componentDidMount = function () {\n        var CodeMirror = require('codemirror');\n        require('codemirror/addon/fold/foldgutter');\n        require('codemirror/addon/fold/brace-fold');\n        require('codemirror/addon/dialog/dialog');\n        require('codemirror/addon/search/search');\n        require('codemirror/addon/search/searchcursor');\n        require('codemirror/addon/search/jump-to-line');\n        require('codemirror/keymap/sublime');\n        require('codemirror-graphql/results/mode');\n        var Tooltip = this.props.ResultsTooltip;\n        var ImagePreview = this.props.ImagePreview;\n        if (Tooltip || ImagePreview) {\n            require('codemirror-graphql/utils/info-addon');\n            var tooltipDiv_1 = document.createElement('div');\n            CodeMirror.registerHelper('info', 'graphql-results', function (token, _options, _cm, pos) {\n                var infoElements = [];\n                if (Tooltip) {\n                    infoElements.push(React.createElement(Tooltip, { pos: pos }));\n                }\n                if (ImagePreview &&\n                    typeof ImagePreview.shouldRender === 'function' &&\n                    ImagePreview.shouldRender(token)) {\n                    infoElements.push(React.createElement(ImagePreview, { token: token }));\n                }\n                if (!infoElements.length) {\n                    ReactDOM.unmountComponentAtNode(tooltipDiv_1);\n                    return null;\n                }\n                ReactDOM.render(React.createElement(\"div\", null, infoElements), tooltipDiv_1);\n                return tooltipDiv_1;\n            });\n        }\n        this.viewer = CodeMirror(this._node, {\n            lineWrapping: true,\n            value: this.props.value || '',\n            readOnly: true,\n            theme: this.props.editorTheme || 'graphiql',\n            mode: 'graphql-results',\n            keyMap: 'sublime',\n            foldGutter: {\n                minFoldSize: 4,\n            },\n            gutters: ['CodeMirror-foldgutter'],\n            info: Boolean(this.props.ResultsTooltip || this.props.ImagePreview),\n            extraKeys: commonKeys,\n        });\n    };\n    ResultViewer.prototype.shouldComponentUpdate = function (nextProps) {\n        return this.props.value !== nextProps.value;\n    };\n    ResultViewer.prototype.componentDidUpdate = function () {\n        if (this.viewer) {\n            this.viewer.setValue(this.props.value || '');\n        }\n    };\n    ResultViewer.prototype.componentWillUnmount = function () {\n        this.viewer = null;\n    };\n    ResultViewer.prototype.render = function () {\n        var _this = this;\n        return (React.createElement(\"section\", { className: \"result-window\", \"aria-label\": \"Result Window\", \"aria-live\": \"polite\", \"aria-atomic\": \"true\", ref: function (node) {\n                if (node) {\n                    _this.props.registerRef(node);\n                    _this._node = node;\n                }\n            } }));\n    };\n    ResultViewer.prototype.getCodeMirror = function () {\n        return this.viewer;\n    };\n    ResultViewer.prototype.getClientHeight = function () {\n        return this._node && this._node.clientHeight;\n    };\n    return ResultViewer;\n}(React.Component));\nexport { ResultViewer };\n//# sourceMappingURL=ResultViewer.js.map","import React from 'react';\nimport { GraphQLList, GraphQLNonNull, } from 'graphql';\nexport default function TypeLink(props) {\n    var onClick = props.onClick ? props.onClick : function () { return null; };\n    return renderType(props.type, onClick);\n}\nfunction renderType(type, onClick) {\n    if (type instanceof GraphQLNonNull) {\n        return (React.createElement(\"span\", null,\n            renderType(type.ofType, onClick),\n            '!'));\n    }\n    if (type instanceof GraphQLList) {\n        return (React.createElement(\"span\", null,\n            '[',\n            renderType(type.ofType, onClick),\n            ']'));\n    }\n    return (React.createElement(\"a\", { className: \"type-name\", onClick: function (event) {\n            event.preventDefault();\n            onClick(type, event);\n        }, href: \"#\" }, type === null || type === void 0 ? void 0 : type.name));\n}\n//# sourceMappingURL=TypeLink.js.map","import React from 'react';\nimport { astFromValue, print } from 'graphql';\nvar printDefault = function (ast) {\n    if (!ast) {\n        return '';\n    }\n    return print(ast);\n};\nexport default function DefaultValue(_a) {\n    var field = _a.field;\n    if ('defaultValue' in field && field.defaultValue !== undefined) {\n        return (React.createElement(\"span\", null,\n            ' = ',\n            React.createElement(\"span\", { className: \"arg-default-value\" }, printDefault(astFromValue(field.defaultValue, field.type)))));\n    }\n    return null;\n}\n//# sourceMappingURL=DefaultValue.js.map","import React from 'react';\nimport TypeLink from './TypeLink';\nimport DefaultValue from './DefaultValue';\nexport default function Argument(_a) {\n    var arg = _a.arg, onClickType = _a.onClickType, showDefaultValue = _a.showDefaultValue;\n    return (React.createElement(\"span\", { className: \"arg\" },\n        React.createElement(\"span\", { className: \"arg-name\" }, arg.name),\n        ': ',\n        React.createElement(TypeLink, { type: arg.type, onClick: onClickType }),\n        showDefaultValue !== false && React.createElement(DefaultValue, { field: arg })));\n}\n//# sourceMappingURL=Argument.js.map","import React from 'react';\nexport default function Directive(_a) {\n    var directive = _a.directive;\n    return (React.createElement(\"span\", { className: \"doc-category-item\", id: directive.name.value },\n        '@',\n        directive.name.value));\n}\n//# sourceMappingURL=Directive.js.map","import React from 'react';\nimport MD from 'markdown-it';\nvar md = new MD({\n    breaks: true,\n    linkify: true,\n});\nexport default function MarkdownContent(_a) {\n    var markdown = _a.markdown, className = _a.className;\n    if (!markdown) {\n        return React.createElement(\"div\", null);\n    }\n    return (React.createElement(\"div\", { className: className, dangerouslySetInnerHTML: { __html: md.render(markdown) } }));\n}\n//# sourceMappingURL=MarkdownContent.js.map","var __read = (this && this.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nimport React from 'react';\nimport Argument from './Argument';\nimport Directive from './Directive';\nimport MarkdownContent from './MarkdownContent';\nimport TypeLink from './TypeLink';\nexport default function FieldDoc(_a) {\n    var field = _a.field, onClickType = _a.onClickType;\n    var _b = __read(React.useState(false), 2), showDeprecated = _b[0], handleShowDeprecated = _b[1];\n    var argsDef;\n    var deprecatedArgsDef;\n    if (field && 'args' in field && field.args.length > 0) {\n        argsDef = (React.createElement(\"div\", { id: \"doc-args\", className: \"doc-category\" },\n            React.createElement(\"div\", { className: \"doc-category-title\" }, 'arguments'),\n            field.args\n                .filter(function (arg) { return !arg.deprecationReason; })\n                .map(function (arg) { return (React.createElement(\"div\", { key: arg.name, className: \"doc-category-item\" },\n                React.createElement(\"div\", null,\n                    React.createElement(Argument, { arg: arg, onClickType: onClickType })),\n                React.createElement(MarkdownContent, { className: \"doc-value-description\", markdown: arg.description }),\n                arg && 'deprecationReason' in arg && (React.createElement(MarkdownContent, { className: \"doc-deprecation\", markdown: arg === null || arg === void 0 ? void 0 : arg.deprecationReason })))); })));\n        var deprecatedArgs = field.args.filter(function (arg) {\n            return Boolean(arg.deprecationReason);\n        });\n        if (deprecatedArgs.length > 0) {\n            deprecatedArgsDef = (React.createElement(\"div\", { id: \"doc-deprecated-args\", className: \"doc-category\" },\n                React.createElement(\"div\", { className: \"doc-category-title\" }, 'deprecated arguments'),\n                !showDeprecated ? (React.createElement(\"button\", { className: \"show-btn\", onClick: function () { return handleShowDeprecated(!showDeprecated); } }, 'Show deprecated arguments...')) : (deprecatedArgs.map(function (arg, i) { return (React.createElement(\"div\", { key: i },\n                    React.createElement(\"div\", null,\n                        React.createElement(Argument, { arg: arg, onClickType: onClickType })),\n                    React.createElement(MarkdownContent, { className: \"doc-value-description\", markdown: arg.description }),\n                    arg && 'deprecationReason' in arg && (React.createElement(MarkdownContent, { className: \"doc-deprecation\", markdown: arg === null || arg === void 0 ? void 0 : arg.deprecationReason })))); }))));\n        }\n    }\n    var directivesDef;\n    if (field &&\n        field.astNode &&\n        field.astNode.directives &&\n        field.astNode.directives.length > 0) {\n        directivesDef = (React.createElement(\"div\", { id: \"doc-directives\", className: \"doc-category\" },\n            React.createElement(\"div\", { className: \"doc-category-title\" }, 'directives'),\n            field.astNode.directives.map(function (directive) { return (React.createElement(\"div\", { key: directive.name.value, className: \"doc-category-item\" },\n                React.createElement(\"div\", null,\n                    React.createElement(Directive, { directive: directive })))); })));\n    }\n    return (React.createElement(\"div\", null,\n        React.createElement(MarkdownContent, { className: \"doc-type-description\", markdown: (field === null || field === void 0 ? void 0 : field.description) || 'No Description' }),\n        field && 'deprecationReason' in field && (React.createElement(MarkdownContent, { className: \"doc-deprecation\", markdown: field === null || field === void 0 ? void 0 : field.deprecationReason })),\n        React.createElement(\"div\", { className: \"doc-category\" },\n            React.createElement(\"div\", { className: \"doc-category-title\" }, 'type'),\n            React.createElement(TypeLink, { type: field === null || field === void 0 ? void 0 : field.type, onClick: onClickType })),\n        argsDef,\n        directivesDef,\n        deprecatedArgsDef));\n}\n//# sourceMappingURL=FieldDoc.js.map","import React from 'react';\nimport TypeLink from './TypeLink';\nimport MarkdownContent from './MarkdownContent';\nexport default function SchemaDoc(_a) {\n    var schema = _a.schema, onClickType = _a.onClickType;\n    var queryType = schema.getQueryType();\n    var mutationType = schema.getMutationType && schema.getMutationType();\n    var subscriptionType = schema.getSubscriptionType && schema.getSubscriptionType();\n    return (React.createElement(\"div\", null,\n        React.createElement(MarkdownContent, { className: \"doc-type-description\", markdown: schema.description ||\n                'A GraphQL schema provides a root type for each kind of operation.' }),\n        React.createElement(\"div\", { className: \"doc-category\" },\n            React.createElement(\"div\", { className: \"doc-category-title\" }, 'root types'),\n            React.createElement(\"div\", { className: \"doc-category-item\" },\n                React.createElement(\"span\", { className: \"keyword\" }, 'query'),\n                ': ',\n                React.createElement(TypeLink, { type: queryType, onClick: onClickType })),\n            mutationType && (React.createElement(\"div\", { className: \"doc-category-item\" },\n                React.createElement(\"span\", { className: \"keyword\" }, 'mutation'),\n                ': ',\n                React.createElement(TypeLink, { type: mutationType, onClick: onClickType }))),\n            subscriptionType && (React.createElement(\"div\", { className: \"doc-category-item\" },\n                React.createElement(\"span\", { className: \"keyword\" }, 'subscription'),\n                ': ',\n                React.createElement(TypeLink, { type: subscriptionType, onClick: onClickType }))))));\n}\n//# sourceMappingURL=SchemaDoc.js.map","export default function debounce(duration, fn) {\n    var timeout;\n    return function () {\n        var _this = this;\n        var args = [];\n        for (var _i = 0; _i < arguments.length; _i++) {\n            args[_i] = arguments[_i];\n        }\n        if (timeout) {\n            window.clearTimeout(timeout);\n        }\n        timeout = window.setTimeout(function () {\n            timeout = null;\n            fn.apply(_this, args);\n        }, duration);\n    };\n}\n//# sourceMappingURL=debounce.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nimport React from 'react';\nimport debounce from '../../utility/debounce';\nvar SearchBox = (function (_super) {\n    __extends(SearchBox, _super);\n    function SearchBox(props) {\n        var _this = _super.call(this, props) || this;\n        _this.handleChange = function (event) {\n            var value = event.currentTarget.value;\n            _this.setState({ value: value });\n            _this.debouncedOnSearch(value);\n        };\n        _this.handleClear = function () {\n            _this.setState({ value: '' });\n            _this.props.onSearch('');\n        };\n        _this.state = { value: props.value || '' };\n        _this.debouncedOnSearch = debounce(200, _this.props.onSearch);\n        return _this;\n    }\n    SearchBox.prototype.render = function () {\n        return (React.createElement(\"label\", { className: \"search-box\" },\n            React.createElement(\"div\", { className: \"search-box-icon\", \"aria-hidden\": \"true\" }, '\\u26b2'),\n            React.createElement(\"input\", { value: this.state.value, onChange: this.handleChange, type: \"text\", placeholder: this.props.placeholder, \"aria-label\": this.props.placeholder }),\n            this.state.value && (React.createElement(\"button\", { className: \"search-box-clear\", onClick: this.handleClear, \"aria-label\": \"Clear search input\" }, '\\u2715'))));\n    };\n    return SearchBox;\n}(React.Component));\nexport default SearchBox;\n//# sourceMappingURL=SearchBox.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __values = (this && this.__values) || function(o) {\n    var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n    if (m) return m.call(o);\n    if (o && typeof o.length === \"number\") return {\n        next: function () {\n            if (o && i >= o.length) o = void 0;\n            return { value: o && o[i++], done: !o };\n        }\n    };\n    throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nimport React from 'react';\nimport Argument from './Argument';\nimport TypeLink from './TypeLink';\nvar SearchResults = (function (_super) {\n    __extends(SearchResults, _super);\n    function SearchResults() {\n        return _super !== null && _super.apply(this, arguments) || this;\n    }\n    SearchResults.prototype.shouldComponentUpdate = function (nextProps) {\n        return (this.props.schema !== nextProps.schema ||\n            this.props.searchValue !== nextProps.searchValue);\n    };\n    SearchResults.prototype.render = function () {\n        var e_1, _a;\n        var searchValue = this.props.searchValue;\n        var withinType = this.props.withinType;\n        var schema = this.props.schema;\n        var onClickType = this.props.onClickType;\n        var onClickField = this.props.onClickField;\n        var matchedWithin = [];\n        var matchedTypes = [];\n        var matchedFields = [];\n        var typeMap = schema.getTypeMap();\n        var typeNames = Object.keys(typeMap);\n        if (withinType) {\n            typeNames = typeNames.filter(function (n) { return n !== withinType.name; });\n            typeNames.unshift(withinType.name);\n        }\n        var _loop_1 = function (typeName) {\n            if (matchedWithin.length + matchedTypes.length + matchedFields.length >=\n                100) {\n                return \"break\";\n            }\n            var type = typeMap[typeName];\n            if (withinType !== type && isMatch(typeName, searchValue)) {\n                matchedTypes.push(React.createElement(\"div\", { className: \"doc-category-item\", key: typeName },\n                    React.createElement(TypeLink, { type: type, onClick: onClickType })));\n            }\n            if (type && 'getFields' in type) {\n                var fields_1 = type.getFields();\n                Object.keys(fields_1).forEach(function (fieldName) {\n                    var field = fields_1[fieldName];\n                    var matchingArgs;\n                    if (!isMatch(fieldName, searchValue)) {\n                        if ('args' in field && field.args.length) {\n                            matchingArgs = field.args.filter(function (arg) {\n                                return isMatch(arg.name, searchValue);\n                            });\n                            if (matchingArgs.length === 0) {\n                                return;\n                            }\n                        }\n                        else {\n                            return;\n                        }\n                    }\n                    var match = (React.createElement(\"div\", { className: \"doc-category-item\", key: typeName + '.' + fieldName },\n                        withinType !== type && [\n                            React.createElement(TypeLink, { key: \"type\", type: type, onClick: onClickType }),\n                            '.',\n                        ],\n                        React.createElement(\"a\", { className: \"field-name\", onClick: function (event) { return onClickField(field, type, event); } }, field.name),\n                        matchingArgs && [\n                            '(',\n                            React.createElement(\"span\", { key: \"args\" }, matchingArgs.map(function (arg) { return (React.createElement(Argument, { key: arg.name, arg: arg, onClickType: onClickType, showDefaultValue: false })); })),\n                            ')',\n                        ]));\n                    if (withinType === type) {\n                        matchedWithin.push(match);\n                    }\n                    else {\n                        matchedFields.push(match);\n                    }\n                });\n            }\n        };\n        try {\n            for (var typeNames_1 = __values(typeNames), typeNames_1_1 = typeNames_1.next(); !typeNames_1_1.done; typeNames_1_1 = typeNames_1.next()) {\n                var typeName = typeNames_1_1.value;\n                var state_1 = _loop_1(typeName);\n                if (state_1 === \"break\")\n                    break;\n            }\n        }\n        catch (e_1_1) { e_1 = { error: e_1_1 }; }\n        finally {\n            try {\n                if (typeNames_1_1 && !typeNames_1_1.done && (_a = typeNames_1.return)) _a.call(typeNames_1);\n            }\n            finally { if (e_1) throw e_1.error; }\n        }\n        if (matchedWithin.length + matchedTypes.length + matchedFields.length ===\n            0) {\n            return React.createElement(\"span\", { className: \"doc-alert-text\" }, 'No results found.');\n        }\n        if (withinType && matchedTypes.length + matchedFields.length > 0) {\n            return (React.createElement(\"div\", null,\n                matchedWithin,\n                React.createElement(\"div\", { className: \"doc-category\" },\n                    React.createElement(\"div\", { className: \"doc-category-title\" }, 'other results'),\n                    matchedTypes,\n                    matchedFields)));\n        }\n        return (React.createElement(\"div\", { className: \"doc-search-items\" },\n            matchedWithin,\n            matchedTypes,\n            matchedFields));\n    };\n    return SearchResults;\n}(React.Component));\nexport default SearchResults;\nfunction isMatch(sourceText, searchValue) {\n    try {\n        var escaped = searchValue.replace(/[^_0-9A-Za-z]/g, function (ch) { return '\\\\' + ch; });\n        return sourceText.search(new RegExp(escaped, 'i')) !== -1;\n    }\n    catch (e) {\n        return sourceText.toLowerCase().indexOf(searchValue.toLowerCase()) !== -1;\n    }\n}\n//# sourceMappingURL=SearchResults.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nimport React from 'react';\nimport { GraphQLObjectType, GraphQLInterfaceType, GraphQLUnionType, GraphQLEnumType, } from 'graphql';\nimport Argument from './Argument';\nimport MarkdownContent from './MarkdownContent';\nimport TypeLink from './TypeLink';\nimport DefaultValue from './DefaultValue';\nvar TypeDoc = (function (_super) {\n    __extends(TypeDoc, _super);\n    function TypeDoc(props) {\n        var _this = _super.call(this, props) || this;\n        _this.handleShowDeprecated = function () { return _this.setState({ showDeprecated: true }); };\n        _this.state = { showDeprecated: false };\n        return _this;\n    }\n    TypeDoc.prototype.shouldComponentUpdate = function (nextProps, nextState) {\n        return (this.props.type !== nextProps.type ||\n            this.props.schema !== nextProps.schema ||\n            this.state.showDeprecated !== nextState.showDeprecated);\n    };\n    TypeDoc.prototype.render = function () {\n        var schema = this.props.schema;\n        var type = this.props.type;\n        var onClickType = this.props.onClickType;\n        var onClickField = this.props.onClickField;\n        var typesTitle = null;\n        var types = [];\n        if (type instanceof GraphQLUnionType) {\n            typesTitle = 'possible types';\n            types = schema.getPossibleTypes(type);\n        }\n        else if (type instanceof GraphQLInterfaceType) {\n            typesTitle = 'implementations';\n            types = schema.getPossibleTypes(type);\n        }\n        else if (type instanceof GraphQLObjectType) {\n            typesTitle = 'implements';\n            types = type.getInterfaces();\n        }\n        var typesDef;\n        if (types && types.length > 0) {\n            typesDef = (React.createElement(\"div\", { id: \"doc-types\", className: \"doc-category\" },\n                React.createElement(\"div\", { className: \"doc-category-title\" }, typesTitle),\n                types.map(function (subtype) { return (React.createElement(\"div\", { key: subtype.name, className: \"doc-category-item\" },\n                    React.createElement(TypeLink, { type: subtype, onClick: onClickType }))); })));\n        }\n        var fieldsDef;\n        var deprecatedFieldsDef;\n        if (type && 'getFields' in type) {\n            var fieldMap_1 = type.getFields();\n            var fields = Object.keys(fieldMap_1).map(function (name) { return fieldMap_1[name]; });\n            fieldsDef = (React.createElement(\"div\", { id: \"doc-fields\", className: \"doc-category\" },\n                React.createElement(\"div\", { className: \"doc-category-title\" }, 'fields'),\n                fields\n                    .filter(function (field) { return !field.deprecationReason; })\n                    .map(function (field) { return (React.createElement(Field, { key: field.name, type: type, field: field, onClickType: onClickType, onClickField: onClickField })); })));\n            var deprecatedFields = fields.filter(function (field) {\n                return Boolean(field.deprecationReason);\n            });\n            if (deprecatedFields.length > 0) {\n                deprecatedFieldsDef = (React.createElement(\"div\", { id: \"doc-deprecated-fields\", className: \"doc-category\" },\n                    React.createElement(\"div\", { className: \"doc-category-title\" }, 'deprecated fields'),\n                    !this.state.showDeprecated ? (React.createElement(\"button\", { className: \"show-btn\", onClick: this.handleShowDeprecated }, 'Show deprecated fields...')) : (deprecatedFields.map(function (field) { return (React.createElement(Field, { key: field.name, type: type, field: field, onClickType: onClickType, onClickField: onClickField })); }))));\n            }\n        }\n        var valuesDef;\n        var deprecatedValuesDef;\n        if (type instanceof GraphQLEnumType) {\n            var values = type.getValues();\n            valuesDef = (React.createElement(\"div\", { className: \"doc-category\" },\n                React.createElement(\"div\", { className: \"doc-category-title\" }, 'values'),\n                values\n                    .filter(function (value) { return Boolean(!value.deprecationReason); })\n                    .map(function (value) { return (React.createElement(EnumValue, { key: value.name, value: value })); })));\n            var deprecatedValues = values.filter(function (value) {\n                return Boolean(value.deprecationReason);\n            });\n            if (deprecatedValues.length > 0) {\n                deprecatedValuesDef = (React.createElement(\"div\", { className: \"doc-category\" },\n                    React.createElement(\"div\", { className: \"doc-category-title\" }, 'deprecated values'),\n                    !this.state.showDeprecated ? (React.createElement(\"button\", { className: \"show-btn\", onClick: this.handleShowDeprecated }, 'Show deprecated values...')) : (deprecatedValues.map(function (value) { return (React.createElement(EnumValue, { key: value.name, value: value })); }))));\n            }\n        }\n        return (React.createElement(\"div\", null,\n            React.createElement(MarkdownContent, { className: \"doc-type-description\", markdown: ('description' in type && type.description) || 'No Description' }),\n            type instanceof GraphQLObjectType && typesDef,\n            fieldsDef,\n            deprecatedFieldsDef,\n            valuesDef,\n            deprecatedValuesDef,\n            !(type instanceof GraphQLObjectType) && typesDef));\n    };\n    return TypeDoc;\n}(React.Component));\nexport default TypeDoc;\nfunction Field(_a) {\n    var type = _a.type, field = _a.field, onClickType = _a.onClickType, onClickField = _a.onClickField;\n    return (React.createElement(\"div\", { className: \"doc-category-item\" },\n        React.createElement(\"a\", { className: \"field-name\", onClick: function (event) { return onClickField(field, type, event); } }, field.name),\n        'args' in field &&\n            field.args &&\n            field.args.length > 0 && [\n            '(',\n            React.createElement(\"span\", { key: \"args\" }, field.args\n                .filter(function (arg) { return !arg.deprecationReason; })\n                .map(function (arg) { return (React.createElement(Argument, { key: arg.name, arg: arg, onClickType: onClickType })); })),\n            ')',\n        ],\n        ': ',\n        React.createElement(TypeLink, { type: field.type, onClick: onClickType }),\n        React.createElement(DefaultValue, { field: field }),\n        field.description && (React.createElement(MarkdownContent, { className: \"field-short-description\", markdown: field.description })),\n        'deprecationReason' in field && field.deprecationReason && (React.createElement(MarkdownContent, { className: \"doc-deprecation\", markdown: field.deprecationReason }))));\n}\nfunction EnumValue(_a) {\n    var value = _a.value;\n    return (React.createElement(\"div\", { className: \"doc-category-item\" },\n        React.createElement(\"div\", { className: \"enum-value\" }, value.name),\n        React.createElement(MarkdownContent, { className: \"doc-value-description\", markdown: value.description }),\n        value.deprecationReason && (React.createElement(MarkdownContent, { className: \"doc-deprecation\", markdown: value.deprecationReason }))));\n}\n//# sourceMappingURL=TypeDoc.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nimport React from 'react';\nimport { isType } from 'graphql';\nimport FieldDoc from './DocExplorer/FieldDoc';\nimport SchemaDoc from './DocExplorer/SchemaDoc';\nimport SearchBox from './DocExplorer/SearchBox';\nimport SearchResults from './DocExplorer/SearchResults';\nimport TypeDoc from './DocExplorer/TypeDoc';\nvar initialNav = {\n    name: 'Schema',\n    title: 'Documentation Explorer',\n};\nvar DocExplorer = (function (_super) {\n    __extends(DocExplorer, _super);\n    function DocExplorer(props) {\n        var _this = _super.call(this, props) || this;\n        _this.handleNavBackClick = function () {\n            if (_this.state.navStack.length > 1) {\n                _this.setState({ navStack: _this.state.navStack.slice(0, -1) });\n            }\n        };\n        _this.handleClickType = function (type) {\n            _this.showDoc(type);\n        };\n        _this.handleClickField = function (field) {\n            _this.showDoc(field);\n        };\n        _this.handleSearch = function (value) {\n            _this.showSearch(value);\n        };\n        _this.state = { navStack: [initialNav] };\n        return _this;\n    }\n    DocExplorer.prototype.shouldComponentUpdate = function (nextProps, nextState) {\n        return (this.props.schema !== nextProps.schema ||\n            this.state.navStack !== nextState.navStack ||\n            this.props.schemaErrors !== nextProps.schemaErrors);\n    };\n    DocExplorer.prototype.render = function () {\n        var _a = this.props, schema = _a.schema, schemaErrors = _a.schemaErrors;\n        var navStack = this.state.navStack;\n        var navItem = navStack[navStack.length - 1];\n        var content;\n        if (schemaErrors) {\n            content = (React.createElement(\"div\", { className: \"error-container\" }, 'Error fetching schema'));\n        }\n        else if (schema === undefined) {\n            content = (React.createElement(\"div\", { className: \"spinner-container\" },\n                React.createElement(\"div\", { className: \"spinner\" })));\n        }\n        else if (!schema) {\n            content = React.createElement(\"div\", { className: \"error-container\" }, 'No Schema Available');\n        }\n        else if (navItem.search) {\n            content = (React.createElement(SearchResults, { searchValue: navItem.search, withinType: navItem.def, schema: schema, onClickType: this.handleClickType, onClickField: this.handleClickField }));\n        }\n        else if (navStack.length === 1) {\n            content = (React.createElement(SchemaDoc, { schema: schema, onClickType: this.handleClickType }));\n        }\n        else if (isType(navItem.def)) {\n            content = (React.createElement(TypeDoc, { schema: schema, type: navItem.def, onClickType: this.handleClickType, onClickField: this.handleClickField }));\n        }\n        else {\n            content = (React.createElement(FieldDoc, { field: navItem.def, onClickType: this.handleClickType }));\n        }\n        var shouldSearchBoxAppear = navStack.length === 1 ||\n            (isType(navItem.def) && 'getFields' in navItem.def);\n        var prevName;\n        if (navStack.length > 1) {\n            prevName = navStack[navStack.length - 2].name;\n        }\n        return (React.createElement(\"section\", { className: \"doc-explorer\", key: navItem.name, \"aria-label\": \"Documentation Explorer\" },\n            React.createElement(\"div\", { className: \"doc-explorer-title-bar\" },\n                prevName && (React.createElement(\"button\", { className: \"doc-explorer-back\", onClick: this.handleNavBackClick, \"aria-label\": \"Go back to \" + prevName }, prevName)),\n                React.createElement(\"div\", { className: \"doc-explorer-title\" }, navItem.title || navItem.name),\n                React.createElement(\"div\", { className: \"doc-explorer-rhs\" }, this.props.children)),\n            React.createElement(\"div\", { className: \"doc-explorer-contents\" },\n                shouldSearchBoxAppear && (React.createElement(SearchBox, { value: navItem.search, placeholder: \"Search \" + navItem.name + \"...\", onSearch: this.handleSearch })),\n                content)));\n    };\n    DocExplorer.prototype.showDoc = function (typeOrField) {\n        var navStack = this.state.navStack;\n        var topNav = navStack[navStack.length - 1];\n        if (topNav.def !== typeOrField) {\n            this.setState({\n                navStack: navStack.concat([\n                    {\n                        name: typeOrField.name,\n                        def: typeOrField,\n                    },\n                ]),\n            });\n        }\n    };\n    DocExplorer.prototype.showDocForReference = function (reference) {\n        if (reference && reference.kind === 'Type') {\n            this.showDoc(reference.type);\n        }\n        else if (reference.kind === 'Field') {\n            this.showDoc(reference.field);\n        }\n        else if (reference.kind === 'Argument' && reference.field) {\n            this.showDoc(reference.field);\n        }\n        else if (reference.kind === 'EnumValue' && reference.type) {\n            this.showDoc(reference.type);\n        }\n    };\n    DocExplorer.prototype.showSearch = function (search) {\n        var navStack = this.state.navStack.slice();\n        var topNav = navStack[navStack.length - 1];\n        navStack[navStack.length - 1] = __assign(__assign({}, topNav), { search: search });\n        this.setState({ navStack: navStack });\n    };\n    DocExplorer.prototype.reset = function () {\n        this.setState({ navStack: [initialNav] });\n    };\n    return DocExplorer;\n}(React.Component));\nexport { DocExplorer };\n//# sourceMappingURL=DocExplorer.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nimport React from 'react';\nvar HistoryQuery = (function (_super) {\n    __extends(HistoryQuery, _super);\n    function HistoryQuery(props) {\n        var _this = _super.call(this, props) || this;\n        _this.state = {\n            editable: false,\n        };\n        _this.editField = null;\n        return _this;\n    }\n    HistoryQuery.prototype.render = function () {\n        var _this = this;\n        var _a;\n        var displayName = this.props.label ||\n            this.props.operationName || ((_a = this.props.query) === null || _a === void 0 ? void 0 : _a.split('\\n').filter(function (line) { return line.indexOf('#') !== 0; }).join(''));\n        var starIcon = this.props.favorite ? '\\u2605' : '\\u2606';\n        return (React.createElement(\"li\", { className: this.state.editable ? 'editable' : undefined },\n            this.state.editable ? (React.createElement(\"input\", { type: \"text\", defaultValue: this.props.label, ref: function (c) {\n                    _this.editField = c;\n                }, onBlur: this.handleFieldBlur.bind(this), onKeyDown: this.handleFieldKeyDown.bind(this), placeholder: \"Type a label\" })) : (React.createElement(\"button\", { className: \"history-label\", onClick: this.handleClick.bind(this) }, displayName)),\n            React.createElement(\"button\", { onClick: this.handleEditClick.bind(this), \"aria-label\": \"Edit label\" }, '\\u270e'),\n            React.createElement(\"button\", { className: this.props.favorite ? 'favorited' : undefined, onClick: this.handleStarClick.bind(this), \"aria-label\": this.props.favorite ? 'Remove favorite' : 'Add favorite' }, starIcon)));\n    };\n    HistoryQuery.prototype.handleClick = function () {\n        this.props.onSelect(this.props.query, this.props.variables, this.props.headers, this.props.operationName, this.props.label);\n    };\n    HistoryQuery.prototype.handleStarClick = function (e) {\n        e.stopPropagation();\n        this.props.handleToggleFavorite(this.props.query, this.props.variables, this.props.headers, this.props.operationName, this.props.label, this.props.favorite);\n    };\n    HistoryQuery.prototype.handleFieldBlur = function (e) {\n        e.stopPropagation();\n        this.setState({ editable: false });\n        this.props.handleEditLabel(this.props.query, this.props.variables, this.props.headers, this.props.operationName, e.target.value, this.props.favorite);\n    };\n    HistoryQuery.prototype.handleFieldKeyDown = function (e) {\n        if (e.keyCode === 13) {\n            e.stopPropagation();\n            this.setState({ editable: false });\n            this.props.handleEditLabel(this.props.query, this.props.variables, this.props.headers, this.props.operationName, e.currentTarget.value, this.props.favorite);\n        }\n    };\n    HistoryQuery.prototype.handleEditClick = function (e) {\n        var _this = this;\n        e.stopPropagation();\n        this.setState({ editable: true }, function () {\n            if (_this.editField) {\n                _this.editField.focus();\n            }\n        });\n    };\n    return HistoryQuery;\n}(React.Component));\nexport default HistoryQuery;\n//# sourceMappingURL=HistoryQuery.js.map","var __read = (this && this.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread = (this && this.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n    return ar;\n};\nvar QueryStore = (function () {\n    function QueryStore(key, storage, maxSize) {\n        if (maxSize === void 0) { maxSize = null; }\n        this.key = key;\n        this.storage = storage;\n        this.maxSize = maxSize;\n        this.items = this.fetchAll();\n    }\n    Object.defineProperty(QueryStore.prototype, \"length\", {\n        get: function () {\n            return this.items.length;\n        },\n        enumerable: false,\n        configurable: true\n    });\n    QueryStore.prototype.contains = function (item) {\n        return this.items.some(function (x) {\n            return x.query === item.query &&\n                x.variables === item.variables &&\n                x.headers === item.headers &&\n                x.operationName === item.operationName;\n        });\n    };\n    QueryStore.prototype.edit = function (item) {\n        var itemIndex = this.items.findIndex(function (x) {\n            return x.query === item.query &&\n                x.variables === item.variables &&\n                x.headers === item.headers &&\n                x.operationName === item.operationName;\n        });\n        if (itemIndex !== -1) {\n            this.items.splice(itemIndex, 1, item);\n            this.save();\n        }\n    };\n    QueryStore.prototype.delete = function (item) {\n        var itemIndex = this.items.findIndex(function (x) {\n            return x.query === item.query &&\n                x.variables === item.variables &&\n                x.headers === item.headers &&\n                x.operationName === item.operationName;\n        });\n        if (itemIndex !== -1) {\n            this.items.splice(itemIndex, 1);\n            this.save();\n        }\n    };\n    QueryStore.prototype.fetchRecent = function () {\n        return this.items[this.items.length - 1];\n    };\n    QueryStore.prototype.fetchAll = function () {\n        var raw = this.storage.get(this.key);\n        if (raw) {\n            return JSON.parse(raw)[this.key];\n        }\n        return [];\n    };\n    QueryStore.prototype.push = function (item) {\n        var _a;\n        var items = __spread(this.items, [item]);\n        if (this.maxSize && items.length > this.maxSize) {\n            items.shift();\n        }\n        for (var attempts = 0; attempts < 5; attempts++) {\n            var response = this.storage.set(this.key, JSON.stringify((_a = {}, _a[this.key] = items, _a)));\n            if (!response || !response.error) {\n                this.items = items;\n            }\n            else if (response.isQuotaError && this.maxSize) {\n                items.shift();\n            }\n            else {\n                return;\n            }\n        }\n    };\n    QueryStore.prototype.save = function () {\n        var _a;\n        this.storage.set(this.key, JSON.stringify((_a = {}, _a[this.key] = this.items, _a)));\n    };\n    return QueryStore;\n}());\nexport default QueryStore;\n//# sourceMappingURL=QueryStore.js.map","var __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __read = (this && this.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread = (this && this.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n    return ar;\n};\nimport QueryStore from './QueryStore';\nimport { parse } from 'graphql';\nvar MAX_QUERY_SIZE = 100000;\nvar HistoryStore = (function () {\n    function HistoryStore(storage, maxHistoryLength) {\n        var _this = this;\n        this.storage = storage;\n        this.maxHistoryLength = maxHistoryLength;\n        this.shouldSaveQuery = function (query, variables, headers, lastQuerySaved) {\n            if (!query) {\n                return false;\n            }\n            try {\n                parse(query);\n            }\n            catch (e) {\n                return false;\n            }\n            if (query.length > MAX_QUERY_SIZE) {\n                return false;\n            }\n            if (!lastQuerySaved) {\n                return true;\n            }\n            if (JSON.stringify(query) === JSON.stringify(lastQuerySaved.query)) {\n                if (JSON.stringify(variables) === JSON.stringify(lastQuerySaved.variables)) {\n                    if (JSON.stringify(headers) === JSON.stringify(lastQuerySaved.headers)) {\n                        return false;\n                    }\n                    if (headers && !lastQuerySaved.headers) {\n                        return false;\n                    }\n                }\n                if (variables && !lastQuerySaved.variables) {\n                    return false;\n                }\n            }\n            return true;\n        };\n        this.fetchAllQueries = function () {\n            var historyQueries = _this.history.fetchAll();\n            var favoriteQueries = _this.favorite.fetchAll();\n            return historyQueries.concat(favoriteQueries);\n        };\n        this.updateHistory = function (query, variables, headers, operationName) {\n            if (_this.shouldSaveQuery(query, variables, headers, _this.history.fetchRecent())) {\n                _this.history.push({\n                    query: query,\n                    variables: variables,\n                    headers: headers,\n                    operationName: operationName,\n                });\n                var historyQueries = _this.history.items;\n                var favoriteQueries = _this.favorite.items;\n                _this.queries = historyQueries.concat(favoriteQueries);\n            }\n        };\n        this.toggleFavorite = function (query, variables, headers, operationName, label, favorite) {\n            var item = {\n                query: query,\n                variables: variables,\n                headers: headers,\n                operationName: operationName,\n                label: label,\n            };\n            if (!_this.favorite.contains(item)) {\n                item.favorite = true;\n                _this.favorite.push(item);\n            }\n            else if (favorite) {\n                item.favorite = false;\n                _this.favorite.delete(item);\n            }\n            _this.queries = __spread(_this.history.items, _this.favorite.items);\n        };\n        this.editLabel = function (query, variables, headers, operationName, label, favorite) {\n            var item = {\n                query: query,\n                variables: variables,\n                headers: headers,\n                operationName: operationName,\n                label: label,\n            };\n            if (favorite) {\n                _this.favorite.edit(__assign(__assign({}, item), { favorite: favorite }));\n            }\n            else {\n                _this.history.edit(item);\n            }\n            _this.queries = __spread(_this.history.items, _this.favorite.items);\n        };\n        this.history = new QueryStore('queries', this.storage, this.maxHistoryLength);\n        this.favorite = new QueryStore('favorites', this.storage, null);\n        this.queries = this.fetchAllQueries();\n    }\n    return HistoryStore;\n}());\nexport default HistoryStore;\n//# sourceMappingURL=HistoryStore.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nimport React from 'react';\nimport HistoryQuery from './HistoryQuery';\nimport HistoryStore from '../utility/HistoryStore';\nvar QueryHistory = (function (_super) {\n    __extends(QueryHistory, _super);\n    function QueryHistory(props) {\n        var _this = _super.call(this, props) || this;\n        _this.onUpdateHistory = function (query, variables, headers, operationName) {\n            _this.historyStore.updateHistory(query, variables, headers, operationName);\n            _this.setState({ queries: _this.historyStore.queries });\n        };\n        _this.onHandleEditLabel = function (query, variables, headers, operationName, label, favorite) {\n            _this.historyStore.editLabel(query, variables, headers, operationName, label, favorite);\n            _this.setState({ queries: _this.historyStore.queries });\n        };\n        _this.onToggleFavorite = function (query, variables, headers, operationName, label, favorite) {\n            _this.historyStore.toggleFavorite(query, variables, headers, operationName, label, favorite);\n            _this.setState({ queries: _this.historyStore.queries });\n        };\n        _this.historyStore = new HistoryStore(_this.props.storage, _this.props.maxHistoryLength);\n        var queries = _this.historyStore.queries;\n        _this.state = { queries: queries };\n        return _this;\n    }\n    QueryHistory.prototype.render = function () {\n        var _this = this;\n        var queries = this.state.queries.slice().reverse();\n        var queryNodes = queries.map(function (query, i) {\n            return (React.createElement(HistoryQuery, __assign({ handleEditLabel: _this.onHandleEditLabel, handleToggleFavorite: _this.onToggleFavorite, key: i + \":\" + (query.label || query.query), onSelect: _this.props.onSelectQuery }, query)));\n        });\n        return (React.createElement(\"section\", { \"aria-label\": \"History\" },\n            React.createElement(\"div\", { className: \"history-title-bar\" },\n                React.createElement(\"div\", { className: \"history-title\" }, 'History'),\n                React.createElement(\"div\", { className: \"doc-explorer-rhs\" }, this.props.children)),\n            React.createElement(\"ul\", { className: \"history-contents\" }, queryNodes)));\n    };\n    return QueryHistory;\n}(React.Component));\nexport { QueryHistory };\n//# sourceMappingURL=QueryHistory.js.map","var CodeMirrorSizer = (function () {\n    function CodeMirrorSizer() {\n        this.sizes = [];\n    }\n    CodeMirrorSizer.prototype.updateSizes = function (components) {\n        var _this = this;\n        components.forEach(function (component, i) {\n            if (component) {\n                var size = component.getClientHeight();\n                if (i <= _this.sizes.length && size !== _this.sizes[i]) {\n                    var editor = component.getCodeMirror();\n                    if (editor) {\n                        editor.setSize(null, null);\n                    }\n                }\n                _this.sizes[i] = size;\n            }\n        });\n    };\n    return CodeMirrorSizer;\n}());\nexport default CodeMirrorSizer;\n//# sourceMappingURL=CodeMirrorSizer.js.map","function isQuotaError(storage, e) {\n    return (e instanceof DOMException &&\n        (e.code === 22 ||\n            e.code === 1014 ||\n            e.name === 'QuotaExceededError' ||\n            e.name === 'NS_ERROR_DOM_QUOTA_REACHED') &&\n        storage.length !== 0);\n}\nvar StorageAPI = (function () {\n    function StorageAPI(storage) {\n        this.storage =\n            storage || (typeof window !== 'undefined' ? window.localStorage : null);\n    }\n    StorageAPI.prototype.get = function (name) {\n        if (this.storage) {\n            var value = this.storage.getItem('graphiql:' + name);\n            if (value === 'null' || value === 'undefined') {\n                this.storage.removeItem('graphiql:' + name);\n                return null;\n            }\n            if (value) {\n                return value;\n            }\n        }\n        return null;\n    };\n    StorageAPI.prototype.set = function (name, value) {\n        var quotaError = false;\n        var error = null;\n        if (this.storage) {\n            var key = \"graphiql:\" + name;\n            if (value) {\n                try {\n                    this.storage.setItem(key, value);\n                }\n                catch (e) {\n                    error = e;\n                    quotaError = isQuotaError(this.storage, e);\n                }\n            }\n            else {\n                this.storage.removeItem(key);\n            }\n        }\n        return {\n            isQuotaError: quotaError,\n            error: error,\n        };\n    };\n    return StorageAPI;\n}());\nexport default StorageAPI;\n//# sourceMappingURL=StorageAPI.js.map","export default function getSelectedOperationName(prevOperations, prevSelectedOperationName, operations) {\n    if (!operations || operations.length < 1) {\n        return;\n    }\n    var names = operations.map(function (op) { return op.name && op.name.value; });\n    if (prevSelectedOperationName &&\n        names.indexOf(prevSelectedOperationName) !== -1) {\n        return prevSelectedOperationName;\n    }\n    if (prevSelectedOperationName && prevOperations) {\n        var prevNames = prevOperations.map(function (op) { return op.name && op.name.value; });\n        var prevIndex = prevNames.indexOf(prevSelectedOperationName);\n        if (prevIndex !== -1 && prevIndex < names.length) {\n            return names[prevIndex];\n        }\n    }\n    return names[0];\n}\n//# sourceMappingURL=getSelectedOperationName.js.map","export default function find(list, predicate) {\n    for (var i = 0; i < list.length; i++) {\n        if (predicate(list[i])) {\n            return list[i];\n        }\n    }\n}\n//# sourceMappingURL=find.js.map","import { getNamedType, isLeafType, parse, print, TypeInfo, visit, Kind, } from 'graphql';\nexport function fillLeafs(schema, docString, getDefaultFieldNames) {\n    var insertions = [];\n    if (!schema || !docString) {\n        return { insertions: insertions, result: docString };\n    }\n    var ast;\n    try {\n        ast = parse(docString);\n    }\n    catch (error) {\n        return { insertions: insertions, result: docString };\n    }\n    var fieldNameFn = getDefaultFieldNames || defaultGetDefaultFieldNames;\n    var typeInfo = new TypeInfo(schema);\n    visit(ast, {\n        leave: function (node) {\n            typeInfo.leave(node);\n        },\n        enter: function (node) {\n            typeInfo.enter(node);\n            if (node.kind === 'Field' && !node.selectionSet) {\n                var fieldType = typeInfo.getType();\n                var selectionSet = buildSelectionSet(isFieldType(fieldType), fieldNameFn);\n                if (selectionSet && node.loc) {\n                    var indent = getIndentation(docString, node.loc.start);\n                    insertions.push({\n                        index: node.loc.end,\n                        string: ' ' + print(selectionSet).replace(/\\n/g, '\\n' + indent),\n                    });\n                }\n            }\n        },\n    });\n    return {\n        insertions: insertions,\n        result: withInsertions(docString, insertions),\n    };\n}\nfunction defaultGetDefaultFieldNames(type) {\n    if (!('getFields' in type)) {\n        return [];\n    }\n    var fields = type.getFields();\n    if (fields.id) {\n        return ['id'];\n    }\n    if (fields.edges) {\n        return ['edges'];\n    }\n    if (fields.node) {\n        return ['node'];\n    }\n    var leafFieldNames = [];\n    Object.keys(fields).forEach(function (fieldName) {\n        if (isLeafType(fields[fieldName].type)) {\n            leafFieldNames.push(fieldName);\n        }\n    });\n    return leafFieldNames;\n}\nfunction buildSelectionSet(type, getDefaultFieldNames) {\n    var namedType = getNamedType(type);\n    if (!type || isLeafType(type)) {\n        return;\n    }\n    var fieldNames = getDefaultFieldNames(namedType);\n    if (!Array.isArray(fieldNames) ||\n        fieldNames.length === 0 ||\n        !('getFields' in namedType)) {\n        return;\n    }\n    return {\n        kind: Kind.SELECTION_SET,\n        selections: fieldNames.map(function (fieldName) {\n            var fieldDef = namedType.getFields()[fieldName];\n            var fieldType = fieldDef ? fieldDef.type : null;\n            return {\n                kind: Kind.FIELD,\n                name: {\n                    kind: Kind.NAME,\n                    value: fieldName,\n                },\n                selectionSet: buildSelectionSet(fieldType, getDefaultFieldNames),\n            };\n        }),\n    };\n}\nfunction withInsertions(initial, insertions) {\n    if (insertions.length === 0) {\n        return initial;\n    }\n    var edited = '';\n    var prevIndex = 0;\n    insertions.forEach(function (_a) {\n        var index = _a.index, string = _a.string;\n        edited += initial.slice(prevIndex, index) + string;\n        prevIndex = index;\n    });\n    edited += initial.slice(prevIndex);\n    return edited;\n}\nfunction getIndentation(str, index) {\n    var indentStart = index;\n    var indentEnd = index;\n    while (indentStart) {\n        var c = str.charCodeAt(indentStart - 1);\n        if (c === 10 || c === 13 || c === 0x2028 || c === 0x2029) {\n            break;\n        }\n        indentStart--;\n        if (c !== 9 && c !== 11 && c !== 12 && c !== 32 && c !== 160) {\n            indentEnd = indentStart;\n        }\n    }\n    return str.substring(indentStart, indentEnd);\n}\nfunction isFieldType(fieldType) {\n    if (fieldType) {\n        return fieldType;\n    }\n}\n//# sourceMappingURL=fillLeafs.js.map","export function getLeft(initialElem) {\n    var pt = 0;\n    var elem = initialElem;\n    while (elem.offsetParent) {\n        pt += elem.offsetLeft;\n        elem = elem.offsetParent;\n    }\n    return pt;\n}\nexport function getTop(initialElem) {\n    var pt = 0;\n    var elem = initialElem;\n    while (elem.offsetParent) {\n        pt += elem.offsetTop;\n        elem = elem.offsetParent;\n    }\n    return pt;\n}\n//# sourceMappingURL=elementPosition.js.map","var __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __values = (this && this.__values) || function(o) {\n    var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n    if (m) return m.call(o);\n    if (o && typeof o.length === \"number\") return {\n        next: function () {\n            if (o && i >= o.length) o = void 0;\n            return { value: o && o[i++], done: !o };\n        }\n    };\n    throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nvar __read = (this && this.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread = (this && this.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n    return ar;\n};\nimport { TypeInfo, getNamedType, visit, visitWithTypeInfo, Kind, } from 'graphql';\nexport function uniqueBy(array, iteratee) {\n    var e_1, _a;\n    var FilteredMap = new Map();\n    var result = [];\n    try {\n        for (var array_1 = __values(array), array_1_1 = array_1.next(); !array_1_1.done; array_1_1 = array_1.next()) {\n            var item = array_1_1.value;\n            if (item.kind === 'Field') {\n                var uniqueValue = iteratee(item);\n                var existing = FilteredMap.get(uniqueValue);\n                if (item.directives && item.directives.length) {\n                    var itemClone = __assign({}, item);\n                    result.push(itemClone);\n                }\n                else if (existing && existing.selectionSet && item.selectionSet) {\n                    existing.selectionSet.selections = __spread(existing.selectionSet.selections, item.selectionSet.selections);\n                }\n                else if (!existing) {\n                    var itemClone = __assign({}, item);\n                    FilteredMap.set(uniqueValue, itemClone);\n                    result.push(itemClone);\n                }\n            }\n            else {\n                result.push(item);\n            }\n        }\n    }\n    catch (e_1_1) { e_1 = { error: e_1_1 }; }\n    finally {\n        try {\n            if (array_1_1 && !array_1_1.done && (_a = array_1.return)) _a.call(array_1);\n        }\n        finally { if (e_1) throw e_1.error; }\n    }\n    return result;\n}\nexport function inlineRelevantFragmentSpreads(fragmentDefinitions, selections, selectionSetType) {\n    var e_2, _a;\n    var _b;\n    var selectionSetTypeName = selectionSetType\n        ? getNamedType(selectionSetType).name\n        : null;\n    var outputSelections = [];\n    var seenSpreads = [];\n    try {\n        for (var selections_1 = __values(selections), selections_1_1 = selections_1.next(); !selections_1_1.done; selections_1_1 = selections_1.next()) {\n            var selection = selections_1_1.value;\n            if (selection.kind === 'FragmentSpread') {\n                var fragmentName = selection.name.value;\n                if (!selection.directives || selection.directives.length === 0) {\n                    if (seenSpreads.indexOf(fragmentName) >= 0) {\n                        continue;\n                    }\n                    else {\n                        seenSpreads.push(fragmentName);\n                    }\n                }\n                var fragmentDefinition = fragmentDefinitions[selection.name.value];\n                if (fragmentDefinition) {\n                    var typeCondition = fragmentDefinition.typeCondition, directives = fragmentDefinition.directives, selectionSet = fragmentDefinition.selectionSet;\n                    selection = {\n                        kind: Kind.INLINE_FRAGMENT,\n                        typeCondition: typeCondition,\n                        directives: directives,\n                        selectionSet: selectionSet,\n                    };\n                }\n            }\n            if (selection.kind === Kind.INLINE_FRAGMENT &&\n                (!selection.directives || ((_b = selection.directives) === null || _b === void 0 ? void 0 : _b.length) === 0)) {\n                var fragmentTypeName = selection.typeCondition\n                    ? selection.typeCondition.name.value\n                    : null;\n                if (!fragmentTypeName || fragmentTypeName === selectionSetTypeName) {\n                    outputSelections.push.apply(outputSelections, __spread(inlineRelevantFragmentSpreads(fragmentDefinitions, selection.selectionSet.selections, selectionSetType)));\n                    continue;\n                }\n            }\n            outputSelections.push(selection);\n        }\n    }\n    catch (e_2_1) { e_2 = { error: e_2_1 }; }\n    finally {\n        try {\n            if (selections_1_1 && !selections_1_1.done && (_a = selections_1.return)) _a.call(selections_1);\n        }\n        finally { if (e_2) throw e_2.error; }\n    }\n    return outputSelections;\n}\nexport default function mergeAST(documentAST, schema) {\n    var e_3, _a;\n    var typeInfo = schema ? new TypeInfo(schema) : null;\n    var fragmentDefinitions = Object.create(null);\n    try {\n        for (var _b = __values(documentAST.definitions), _c = _b.next(); !_c.done; _c = _b.next()) {\n            var definition = _c.value;\n            if (definition.kind === Kind.FRAGMENT_DEFINITION) {\n                fragmentDefinitions[definition.name.value] = definition;\n            }\n        }\n    }\n    catch (e_3_1) { e_3 = { error: e_3_1 }; }\n    finally {\n        try {\n            if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n        }\n        finally { if (e_3) throw e_3.error; }\n    }\n    var visitors = {\n        SelectionSet: function (node) {\n            var selectionSetType = typeInfo ? typeInfo.getParentType() : null;\n            var selections = node.selections;\n            selections = inlineRelevantFragmentSpreads(fragmentDefinitions, selections, selectionSetType);\n            selections = uniqueBy(selections, function (selection) {\n                return selection.alias ? selection.alias.value : selection.name.value;\n            });\n            return __assign(__assign({}, node), { selections: selections });\n        },\n        FragmentDefinition: function () {\n            return null;\n        },\n    };\n    return visit(documentAST, typeInfo ? visitWithTypeInfo(typeInfo, visitors) : visitors);\n}\n//# sourceMappingURL=mergeAst.js.map","export var staticName = 'IntrospectionQuery';\nexport var introspectionQueryName = staticName;\n//# sourceMappingURL=introspectionQueries.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n    return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n    function verb(n) { return function (v) { return step([n, v]); }; }\n    function step(op) {\n        if (f) throw new TypeError(\"Generator is already executing.\");\n        while (_) try {\n            if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n            if (y = 0, t) op = [op[0] & 2, t.value];\n            switch (op[0]) {\n                case 0: case 1: t = op; break;\n                case 4: _.label++; return { value: op[1], done: false };\n                case 5: _.label++; y = op[1]; op = [0]; continue;\n                case 7: op = _.ops.pop(); _.trys.pop(); continue;\n                default:\n                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n                    if (t[2]) _.ops.pop();\n                    _.trys.pop(); continue;\n            }\n            op = body.call(thisArg, _);\n        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n    }\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n    var t = {};\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n        t[p] = s[p];\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n                t[p[i]] = s[p[i]];\n        }\n    return t;\n};\nvar __asyncValues = (this && this.__asyncValues) || function (o) {\n    if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n    var m = o[Symbol.asyncIterator], i;\n    return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n    function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n    function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n};\nvar __read = (this && this.__read) || function (o, n) {\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n    if (!m) return o;\n    var i = m.call(o), r, ar = [], e;\n    try {\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n    }\n    catch (error) { e = { error: error }; }\n    finally {\n        try {\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\n        }\n        finally { if (e) throw e.error; }\n    }\n    return ar;\n};\nvar __spread = (this && this.__spread) || function () {\n    for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n    return ar;\n};\nvar __values = (this && this.__values) || function(o) {\n    var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n    if (m) return m.call(o);\n    if (o && typeof o.length === \"number\") return {\n        next: function () {\n            if (o && i >= o.length) o = void 0;\n            return { value: o && o[i++], done: !o };\n        }\n    };\n    throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nimport React from 'react';\nimport { buildClientSchema, parse, print, visit, GraphQLError, getIntrospectionQuery, } from 'graphql';\nimport copyToClipboard from 'copy-to-clipboard';\nimport { getFragmentDependenciesForAST, getOperationFacts, } from 'graphql-language-service';\nimport { ExecuteButton } from './ExecuteButton';\nimport { ImagePreview } from './ImagePreview';\nimport { ToolbarButton } from './ToolbarButton';\nimport { ToolbarGroup } from './ToolbarGroup';\nimport { ToolbarMenu, ToolbarMenuItem } from './ToolbarMenu';\nimport { QueryEditor } from './QueryEditor';\nimport { VariableEditor } from './VariableEditor';\nimport { HeaderEditor } from './HeaderEditor';\nimport { ResultViewer } from './ResultViewer';\nimport { DocExplorer } from './DocExplorer';\nimport { QueryHistory } from './QueryHistory';\nimport CodeMirrorSizer from '../utility/CodeMirrorSizer';\nimport StorageAPI from '../utility/StorageAPI';\nimport getSelectedOperationName from '../utility/getSelectedOperationName';\nimport debounce from '../utility/debounce';\nimport find from '../utility/find';\nimport { fillLeafs } from '../utility/fillLeafs';\nimport { getLeft, getTop } from '../utility/elementPosition';\nimport mergeAST from '../utility/mergeAst';\nimport { introspectionQueryName } from '../utility/introspectionQueries';\nimport { dset } from 'dset/merge';\nimport HistoryStore from '../utility/HistoryStore';\nimport { validateSchema } from 'graphql';\nvar DEFAULT_DOC_EXPLORER_WIDTH = 350;\nvar majorVersion = parseInt(React.version.slice(0, 2), 10);\nif (majorVersion < 16) {\n    throw Error([\n        'GraphiQL 0.18.0 and after is not compatible with React 15 or below.',\n        'If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:',\n        'https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49',\n    ].join('\\n'));\n}\nvar stringify = function (obj) { return JSON.stringify(obj, null, 2); };\nvar formatSingleError = function (error) { return (__assign(__assign({}, error), { message: error.message, stack: error.stack })); };\nvar handleSingleError = function (error) {\n    if (error instanceof GraphQLError) {\n        return error.toString();\n    }\n    if (error instanceof Error) {\n        return formatSingleError(error);\n    }\n    return error;\n};\nvar GraphiQL = (function (_super) {\n    __extends(GraphiQL, _super);\n    function GraphiQL(props) {\n        var _a, _b, _c, _d, _e, _f;\n        var _this = _super.call(this, props) || this;\n        _this._editorQueryID = 0;\n        _this.safeSetState = function (nextState, callback) {\n            _this.componentIsMounted && _this.setState(nextState, callback);\n        };\n        _this.handleClickReference = function (reference) {\n            _this.setState({ docExplorerOpen: true }, function () {\n                if (_this.docExplorerComponent) {\n                    _this.docExplorerComponent.showDocForReference(reference);\n                }\n            });\n            _this._storage.set('docExplorerOpen', JSON.stringify(_this.state.docExplorerOpen));\n        };\n        _this.handleRunQuery = function (selectedOperationName) { return __awaiter(_this, void 0, void 0, function () {\n            var queryID, editedQuery, variables, headers, shouldPersistHeaders, operationName, fullResponse_1, subscription, error_1;\n            var _this = this;\n            return __generator(this, function (_a) {\n                switch (_a.label) {\n                    case 0:\n                        this._editorQueryID++;\n                        queryID = this._editorQueryID;\n                        editedQuery = this.autoCompleteLeafs() || this.state.query;\n                        variables = this.state.variables;\n                        headers = this.state.headers;\n                        shouldPersistHeaders = this.state.shouldPersistHeaders;\n                        operationName = this.state.operationName;\n                        if (selectedOperationName && selectedOperationName !== operationName) {\n                            operationName = selectedOperationName;\n                            this.handleEditOperationName(operationName);\n                        }\n                        _a.label = 1;\n                    case 1:\n                        _a.trys.push([1, 3, , 4]);\n                        this.setState({\n                            isWaitingForResponse: true,\n                            response: undefined,\n                            operationName: operationName,\n                        });\n                        this._storage.set('operationName', operationName);\n                        if (this._queryHistory) {\n                            this._queryHistory.onUpdateHistory(editedQuery, variables, headers, operationName);\n                        }\n                        else {\n                            if (this._historyStore) {\n                                this._historyStore.updateHistory(editedQuery, variables, headers, operationName);\n                            }\n                        }\n                        fullResponse_1 = { data: {} };\n                        return [4, this._fetchQuery(editedQuery, variables, headers, operationName, shouldPersistHeaders, function (result) {\n                                var e_1, _a;\n                                if (queryID === _this._editorQueryID) {\n                                    var maybeMultipart = Array.isArray(result) ? result : false;\n                                    if (!maybeMultipart &&\n                                        typeof result !== 'string' &&\n                                        result !== null &&\n                                        'hasNext' in result) {\n                                        maybeMultipart = [result];\n                                    }\n                                    if (maybeMultipart) {\n                                        var payload = { data: fullResponse_1.data };\n                                        var maybeErrors = __spread(((fullResponse_1 === null || fullResponse_1 === void 0 ? void 0 : fullResponse_1.errors) || []), maybeMultipart\n                                            .map(function (i) { return i.errors; })\n                                            .flat()\n                                            .filter(Boolean));\n                                        if (maybeErrors.length) {\n                                            payload.errors = maybeErrors;\n                                        }\n                                        try {\n                                            for (var maybeMultipart_1 = __values(maybeMultipart), maybeMultipart_1_1 = maybeMultipart_1.next(); !maybeMultipart_1_1.done; maybeMultipart_1_1 = maybeMultipart_1.next()) {\n                                                var part = maybeMultipart_1_1.value;\n                                                var path = part.path, data = part.data, _errors = part.errors, rest = __rest(part, [\"path\", \"data\", \"errors\"]);\n                                                if (path) {\n                                                    if (!data) {\n                                                        throw new Error(\"Expected part to contain a data property, but got \" + part);\n                                                    }\n                                                    dset(payload.data, path, data);\n                                                }\n                                                else if (data) {\n                                                    payload.data = part.data;\n                                                }\n                                                fullResponse_1 = __assign(__assign({}, payload), rest);\n                                            }\n                                        }\n                                        catch (e_1_1) { e_1 = { error: e_1_1 }; }\n                                        finally {\n                                            try {\n                                                if (maybeMultipart_1_1 && !maybeMultipart_1_1.done && (_a = maybeMultipart_1.return)) _a.call(maybeMultipart_1);\n                                            }\n                                            finally { if (e_1) throw e_1.error; }\n                                        }\n                                        _this.setState({\n                                            isWaitingForResponse: false,\n                                            response: GraphiQL.formatResult(fullResponse_1),\n                                        });\n                                    }\n                                    else {\n                                        _this.setState({\n                                            isWaitingForResponse: false,\n                                            response: GraphiQL.formatResult(result),\n                                        });\n                                    }\n                                }\n                            })];\n                    case 2:\n                        subscription = _a.sent();\n                        this.setState({ subscription: subscription });\n                        return [3, 4];\n                    case 3:\n                        error_1 = _a.sent();\n                        this.setState({\n                            isWaitingForResponse: false,\n                            response: error_1.message,\n                        });\n                        return [3, 4];\n                    case 4: return [2];\n                }\n            });\n        }); };\n        _this.handleStopQuery = function () {\n            var subscription = _this.state.subscription;\n            _this.setState({\n                isWaitingForResponse: false,\n                subscription: null,\n            });\n            if (subscription) {\n                subscription.unsubscribe();\n            }\n        };\n        _this.handlePrettifyQuery = function () {\n            var _a, _b, _c;\n            var editor = _this.getQueryEditor();\n            var editorContent = (_a = editor === null || editor === void 0 ? void 0 : editor.getValue()) !== null && _a !== void 0 ? _a : '';\n            var prettifiedEditorContent = print(parse(editorContent));\n            if (prettifiedEditorContent !== editorContent) {\n                editor === null || editor === void 0 ? void 0 : editor.setValue(prettifiedEditorContent);\n            }\n            var variableEditor = _this.getVariableEditor();\n            var variableEditorContent = (_b = variableEditor === null || variableEditor === void 0 ? void 0 : variableEditor.getValue()) !== null && _b !== void 0 ? _b : '';\n            try {\n                var prettifiedVariableEditorContent = JSON.stringify(JSON.parse(variableEditorContent), null, 2);\n                if (prettifiedVariableEditorContent !== variableEditorContent) {\n                    variableEditor === null || variableEditor === void 0 ? void 0 : variableEditor.setValue(prettifiedVariableEditorContent);\n                }\n            }\n            catch (_d) {\n            }\n            var headerEditor = _this.getHeaderEditor();\n            var headerEditorContent = (_c = headerEditor === null || headerEditor === void 0 ? void 0 : headerEditor.getValue()) !== null && _c !== void 0 ? _c : '';\n            try {\n                var prettifiedHeaderEditorContent = JSON.stringify(JSON.parse(headerEditorContent), null, 2);\n                if (prettifiedHeaderEditorContent !== headerEditorContent) {\n                    headerEditor === null || headerEditor === void 0 ? void 0 : headerEditor.setValue(prettifiedHeaderEditorContent);\n                }\n            }\n            catch (_e) {\n            }\n        };\n        _this.handleMergeQuery = function () {\n            var editor = _this.getQueryEditor();\n            var query = editor.getValue();\n            if (!query) {\n                return;\n            }\n            var ast = _this.state.documentAST;\n            editor.setValue(print(mergeAST(ast, _this.state.schema)));\n        };\n        _this.handleEditQuery = debounce(100, function (value) {\n            var queryFacts = _this._updateQueryFacts(value, _this.state.operationName, _this.state.operations, _this.state.schema);\n            _this.setState(__assign({ query: value }, queryFacts));\n            _this._storage.set('query', value);\n            if (_this.props.onEditQuery) {\n                return _this.props.onEditQuery(value, queryFacts === null || queryFacts === void 0 ? void 0 : queryFacts.documentAST);\n            }\n        });\n        _this.handleCopyQuery = function () {\n            var editor = _this.getQueryEditor();\n            var query = editor && editor.getValue();\n            if (!query) {\n                return;\n            }\n            copyToClipboard(query);\n            if (_this.props.onCopyQuery) {\n                return _this.props.onCopyQuery(query);\n            }\n        };\n        _this._updateQueryFacts = function (query, operationName, prevOperations, schema) {\n            var queryFacts = getOperationFacts(schema, query);\n            if (queryFacts) {\n                var updatedOperationName = getSelectedOperationName(prevOperations, operationName, queryFacts.operations);\n                var onEditOperationName = _this.props.onEditOperationName;\n                if (onEditOperationName &&\n                    updatedOperationName &&\n                    operationName !== updatedOperationName) {\n                    onEditOperationName(updatedOperationName);\n                }\n                return __assign({ operationName: updatedOperationName }, queryFacts);\n            }\n        };\n        _this.handleEditVariables = function (value) {\n            _this.setState({ variables: value });\n            debounce(500, function () { return _this._storage.set('variables', value); })();\n            if (_this.props.onEditVariables) {\n                _this.props.onEditVariables(value);\n            }\n        };\n        _this.handleEditHeaders = function (value) {\n            _this.setState({ headers: value });\n            _this.props.shouldPersistHeaders &&\n                debounce(500, function () { return _this._storage.set('headers', value); })();\n            if (_this.props.onEditHeaders) {\n                _this.props.onEditHeaders(value);\n            }\n        };\n        _this.handleEditOperationName = function (operationName) {\n            var onEditOperationName = _this.props.onEditOperationName;\n            if (onEditOperationName) {\n                onEditOperationName(operationName);\n            }\n        };\n        _this.handleHintInformationRender = function (elem) {\n            elem.addEventListener('click', _this._onClickHintInformation);\n            var onRemoveFn;\n            elem.addEventListener('DOMNodeRemoved', (onRemoveFn = function () {\n                elem.removeEventListener('DOMNodeRemoved', onRemoveFn);\n                elem.removeEventListener('click', _this._onClickHintInformation);\n            }));\n        };\n        _this.handleEditorRunQuery = function () {\n            _this._runQueryAtCursor();\n        };\n        _this._onClickHintInformation = function (event) {\n            if ((event === null || event === void 0 ? void 0 : event.currentTarget) &&\n                'className' in event.currentTarget &&\n                event.currentTarget.className === 'typeName') {\n                var typeName = event.currentTarget.innerHTML;\n                var schema = _this.state.schema;\n                if (schema) {\n                    var type_1 = schema.getType(typeName);\n                    if (type_1) {\n                        _this.setState({ docExplorerOpen: true }, function () {\n                            if (_this.docExplorerComponent) {\n                                _this.docExplorerComponent.showDoc(type_1);\n                            }\n                        });\n                        debounce(500, function () {\n                            return _this._storage.set('docExplorerOpen', JSON.stringify(_this.state.docExplorerOpen));\n                        })();\n                    }\n                }\n            }\n        };\n        _this.handleToggleDocs = function () {\n            if (typeof _this.props.onToggleDocs === 'function') {\n                _this.props.onToggleDocs(!_this.state.docExplorerOpen);\n            }\n            _this._storage.set('docExplorerOpen', JSON.stringify(!_this.state.docExplorerOpen));\n            _this.setState({ docExplorerOpen: !_this.state.docExplorerOpen });\n        };\n        _this.handleToggleHistory = function () {\n            if (typeof _this.props.onToggleHistory === 'function') {\n                _this.props.onToggleHistory(!_this.state.historyPaneOpen);\n            }\n            _this._storage.set('historyPaneOpen', JSON.stringify(!_this.state.historyPaneOpen));\n            _this.setState({ historyPaneOpen: !_this.state.historyPaneOpen });\n        };\n        _this.handleSelectHistoryQuery = function (query, variables, headers, operationName) {\n            if (query) {\n                _this.handleEditQuery(query);\n            }\n            if (variables) {\n                _this.handleEditVariables(variables);\n            }\n            if (headers) {\n                _this.handleEditHeaders(headers);\n            }\n            if (operationName) {\n                _this.handleEditOperationName(operationName);\n            }\n        };\n        _this.handleResizeStart = function (downEvent) {\n            if (!_this._didClickDragBar(downEvent)) {\n                return;\n            }\n            downEvent.preventDefault();\n            var offset = downEvent.clientX - getLeft(downEvent.target);\n            var onMouseMove = function (moveEvent) {\n                if (moveEvent.buttons === 0) {\n                    return onMouseUp();\n                }\n                var editorBar = _this.editorBarComponent;\n                var leftSize = moveEvent.clientX - getLeft(editorBar) - offset;\n                var rightSize = editorBar.clientWidth - leftSize;\n                _this.setState({ editorFlex: leftSize / rightSize });\n                debounce(500, function () {\n                    return _this._storage.set('editorFlex', JSON.stringify(_this.state.editorFlex));\n                })();\n            };\n            var onMouseUp = function () {\n                document.removeEventListener('mousemove', onMouseMove);\n                document.removeEventListener('mouseup', onMouseUp);\n                onMouseMove = null;\n                onMouseUp = null;\n            };\n            document.addEventListener('mousemove', onMouseMove);\n            document.addEventListener('mouseup', onMouseUp);\n        };\n        _this.handleResetResize = function () {\n            _this.setState({ editorFlex: 1 });\n            _this._storage.set('editorFlex', JSON.stringify(_this.state.editorFlex));\n        };\n        _this.handleDocsResizeStart = function (downEvent) {\n            downEvent.preventDefault();\n            var hadWidth = _this.state.docExplorerWidth;\n            var offset = downEvent.clientX - getLeft(downEvent.target);\n            var onMouseMove = function (moveEvent) {\n                if (moveEvent.buttons === 0) {\n                    return onMouseUp();\n                }\n                var app = _this.graphiqlContainer;\n                var cursorPos = moveEvent.clientX - getLeft(app) - offset;\n                var docsSize = app.clientWidth - cursorPos;\n                if (docsSize < 100) {\n                    if (typeof _this.props.onToggleDocs === 'function') {\n                        _this.props.onToggleDocs(!_this.state.docExplorerOpen);\n                    }\n                    _this._storage.set('docExplorerOpen', JSON.stringify(_this.state.docExplorerOpen));\n                    _this.setState({ docExplorerOpen: false });\n                }\n                else {\n                    _this.setState({\n                        docExplorerOpen: true,\n                        docExplorerWidth: Math.min(docsSize, 650),\n                    });\n                    debounce(500, function () {\n                        return _this._storage.set('docExplorerWidth', JSON.stringify(_this.state.docExplorerWidth));\n                    })();\n                }\n                _this._storage.set('docExplorerOpen', JSON.stringify(_this.state.docExplorerOpen));\n            };\n            var onMouseUp = function () {\n                if (!_this.state.docExplorerOpen) {\n                    _this.setState({ docExplorerWidth: hadWidth });\n                    debounce(500, function () {\n                        return _this._storage.set('docExplorerWidth', JSON.stringify(_this.state.docExplorerWidth));\n                    })();\n                }\n                document.removeEventListener('mousemove', onMouseMove);\n                document.removeEventListener('mouseup', onMouseUp);\n                onMouseMove = null;\n                onMouseUp = null;\n            };\n            document.addEventListener('mousemove', onMouseMove);\n            document.addEventListener('mouseup', onMouseUp);\n        };\n        _this.handleDocsResetResize = function () {\n            _this.setState({\n                docExplorerWidth: DEFAULT_DOC_EXPLORER_WIDTH,\n            });\n            debounce(500, function () {\n                return _this._storage.set('docExplorerWidth', JSON.stringify(_this.state.docExplorerWidth));\n            })();\n        };\n        _this.handleTabClickPropogation = function (downEvent) {\n            downEvent.preventDefault();\n            downEvent.stopPropagation();\n        };\n        _this.handleOpenHeaderEditorTab = function (_clickEvent) {\n            _this.setState({\n                headerEditorActive: true,\n                variableEditorActive: false,\n                secondaryEditorOpen: true,\n            });\n        };\n        _this.handleOpenVariableEditorTab = function (_clickEvent) {\n            _this.setState({\n                headerEditorActive: false,\n                variableEditorActive: true,\n                secondaryEditorOpen: true,\n            });\n        };\n        _this.handleSecondaryEditorResizeStart = function (downEvent) {\n            downEvent.preventDefault();\n            var didMove = false;\n            var wasOpen = _this.state.secondaryEditorOpen;\n            var hadHeight = _this.state.secondaryEditorHeight;\n            var offset = downEvent.clientY - getTop(downEvent.target);\n            var onMouseMove = function (moveEvent) {\n                if (moveEvent.buttons === 0) {\n                    return onMouseUp();\n                }\n                didMove = true;\n                var editorBar = _this.editorBarComponent;\n                var topSize = moveEvent.clientY - getTop(editorBar) - offset;\n                var bottomSize = editorBar.clientHeight - topSize;\n                if (bottomSize < 60) {\n                    _this.setState({\n                        secondaryEditorOpen: false,\n                        secondaryEditorHeight: hadHeight,\n                    });\n                }\n                else {\n                    _this.setState({\n                        secondaryEditorOpen: true,\n                        secondaryEditorHeight: bottomSize,\n                    });\n                }\n                debounce(500, function () {\n                    return _this._storage.set('secondaryEditorHeight', JSON.stringify(_this.state.secondaryEditorHeight));\n                })();\n            };\n            var onMouseUp = function () {\n                if (!didMove) {\n                    _this.setState({ secondaryEditorOpen: !wasOpen });\n                }\n                document.removeEventListener('mousemove', onMouseMove);\n                document.removeEventListener('mouseup', onMouseUp);\n                onMouseMove = null;\n                onMouseUp = null;\n            };\n            document.addEventListener('mousemove', onMouseMove);\n            document.addEventListener('mouseup', onMouseUp);\n        };\n        if (typeof props.fetcher !== 'function') {\n            throw new TypeError('GraphiQL requires a fetcher function.');\n        }\n        _this._storage = new StorageAPI(props.storage);\n        var maxHistoryLength = (_a = props.maxHistoryLength) !== null && _a !== void 0 ? _a : 20;\n        _this._historyStore = new HistoryStore(_this._storage, maxHistoryLength);\n        _this.componentIsMounted = false;\n        var query = props.query !== undefined\n            ? props.query\n            : _this._storage.get('query')\n                ? _this._storage.get('query')\n                : props.defaultQuery !== undefined\n                    ? props.defaultQuery\n                    : defaultQuery;\n        var queryFacts = getOperationFacts(props.schema, query);\n        var variables = props.variables !== undefined\n            ? props.variables\n            : _this._storage.get('variables');\n        var headers = props.headers !== undefined\n            ? props.headers\n            : _this._storage.get('headers');\n        var operationName = props.operationName !== undefined\n            ? props.operationName\n            : getSelectedOperationName(undefined, _this._storage.get('operationName'), queryFacts && queryFacts.operations);\n        var docExplorerOpen = props.docExplorerOpen || false;\n        if (_this._storage.get('docExplorerOpen')) {\n            docExplorerOpen = _this._storage.get('docExplorerOpen') === 'true';\n        }\n        var secondaryEditorOpen;\n        if (props.defaultVariableEditorOpen !== undefined) {\n            secondaryEditorOpen = props.defaultVariableEditorOpen;\n        }\n        else if (props.defaultSecondaryEditorOpen !== undefined) {\n            secondaryEditorOpen = props.defaultSecondaryEditorOpen;\n        }\n        else {\n            secondaryEditorOpen = Boolean(variables || headers);\n        }\n        var headerEditorEnabled = (_b = props.headerEditorEnabled) !== null && _b !== void 0 ? _b : true;\n        var shouldPersistHeaders = (_c = props.shouldPersistHeaders) !== null && _c !== void 0 ? _c : false;\n        var schema = props.schema;\n        var response = props.response;\n        var schemaErrors = undefined;\n        if (schema && !_this.props.dangerouslyAssumeSchemaIsValid) {\n            var validationErrors = validateSchema(schema);\n            if (validationErrors && validationErrors.length > 0) {\n                response = GraphiQL.formatError(validationErrors);\n                schema = undefined;\n                schemaErrors = validationErrors;\n            }\n        }\n        _this._introspectionQuery = getIntrospectionQuery({\n            schemaDescription: (_d = props.schemaDescription) !== null && _d !== void 0 ? _d : undefined,\n            inputValueDeprecation: (_e = props.inputValueDeprecation) !== null && _e !== void 0 ? _e : undefined,\n        });\n        _this._introspectionQueryName = (_f = props.introspectionQueryName) !== null && _f !== void 0 ? _f : introspectionQueryName;\n        _this._introspectionQuerySansSubscriptions = _this._introspectionQuery.replace('subscriptionType { name }', '');\n        _this.state = __assign({ schema: schema,\n            query: query, variables: variables, headers: headers, operationName: operationName,\n            docExplorerOpen: docExplorerOpen,\n            schemaErrors: schemaErrors,\n            response: response, editorFlex: Number(_this._storage.get('editorFlex')) || 1, secondaryEditorOpen: secondaryEditorOpen, secondaryEditorHeight: Number(_this._storage.get('secondaryEditorHeight')) || 200, variableEditorActive: _this._storage.get('variableEditorActive') === 'true' ||\n                props.headerEditorEnabled\n                ? _this._storage.get('headerEditorActive') !== 'true'\n                : true, headerEditorActive: _this._storage.get('headerEditorActive') === 'true', headerEditorEnabled: headerEditorEnabled,\n            shouldPersistHeaders: shouldPersistHeaders, historyPaneOpen: _this._storage.get('historyPaneOpen') === 'true' || false, docExplorerWidth: Number(_this._storage.get('docExplorerWidth')) ||\n                DEFAULT_DOC_EXPLORER_WIDTH, isWaitingForResponse: false, subscription: null, maxHistoryLength: maxHistoryLength }, queryFacts);\n        return _this;\n    }\n    GraphiQL.formatResult = function (result) {\n        return JSON.stringify(result, null, 2);\n    };\n    GraphiQL.prototype.componentDidMount = function () {\n        this.componentIsMounted = true;\n        if (this.state.schema === undefined) {\n            this.fetchSchema();\n        }\n        this.codeMirrorSizer = new CodeMirrorSizer();\n        global.g = this;\n    };\n    GraphiQL.prototype.UNSAFE_componentWillMount = function () {\n        this.componentIsMounted = false;\n    };\n    GraphiQL.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {\n        var _this = this;\n        var nextSchema = this.state.schema;\n        var nextQuery = this.state.query;\n        var nextVariables = this.state.variables;\n        var nextHeaders = this.state.headers;\n        var nextOperationName = this.state.operationName;\n        var nextResponse = this.state.response;\n        if (nextProps.schema !== undefined) {\n            nextSchema = nextProps.schema;\n        }\n        if (nextProps.query !== undefined && this.props.query !== nextProps.query) {\n            nextQuery = nextProps.query;\n        }\n        if (nextProps.variables !== undefined &&\n            this.props.variables !== nextProps.variables) {\n            nextVariables = nextProps.variables;\n        }\n        if (nextProps.headers !== undefined &&\n            this.props.headers !== nextProps.headers) {\n            nextHeaders = nextProps.headers;\n        }\n        if (nextProps.operationName !== undefined) {\n            nextOperationName = nextProps.operationName;\n        }\n        if (nextProps.response !== undefined) {\n            nextResponse = nextProps.response;\n        }\n        if (nextQuery &&\n            nextSchema &&\n            (nextSchema !== this.state.schema ||\n                nextQuery !== this.state.query ||\n                nextOperationName !== this.state.operationName)) {\n            if (!this.props.dangerouslyAssumeSchemaIsValid) {\n                var validationErrors = validateSchema(nextSchema);\n                if (validationErrors && validationErrors.length > 0) {\n                    this.handleSchemaErrors(validationErrors);\n                    nextSchema = undefined;\n                }\n            }\n            var updatedQueryAttributes = this._updateQueryFacts(nextQuery, nextOperationName, this.state.operations, nextSchema);\n            if (updatedQueryAttributes !== undefined) {\n                nextOperationName = updatedQueryAttributes.operationName;\n                this.setState(updatedQueryAttributes);\n            }\n        }\n        if (nextProps.schema === undefined &&\n            nextProps.fetcher !== this.props.fetcher) {\n            nextSchema = undefined;\n        }\n        this._storage.set('operationName', nextOperationName);\n        this.setState({\n            schema: nextSchema,\n            query: nextQuery,\n            variables: nextVariables,\n            headers: nextHeaders,\n            operationName: nextOperationName,\n            response: nextResponse,\n        }, function () {\n            if (_this.state.schema === undefined) {\n                if (_this.docExplorerComponent) {\n                    _this.docExplorerComponent.reset();\n                }\n                _this.fetchSchema();\n            }\n        });\n    };\n    GraphiQL.prototype.componentDidUpdate = function () {\n        this.codeMirrorSizer.updateSizes([\n            this.queryEditorComponent,\n            this.variableEditorComponent,\n            this.headerEditorComponent,\n            this.resultComponent,\n        ]);\n    };\n    GraphiQL.prototype.render = function () {\n        var _this = this;\n        var _a;\n        var children = React.Children.toArray(this.props.children);\n        var logo = find(children, function (child) {\n            return isChildComponentType(child, GraphiQL.Logo);\n        }) || React.createElement(GraphiQL.Logo, null);\n        var toolbar = find(children, function (child) {\n            return isChildComponentType(child, GraphiQL.Toolbar);\n        }) || (React.createElement(GraphiQL.Toolbar, null,\n            React.createElement(ToolbarButton, { onClick: this.handlePrettifyQuery, title: \"Prettify Query (Shift-Ctrl-P)\", label: \"Prettify\" }),\n            React.createElement(ToolbarButton, { onClick: this.handleMergeQuery, title: \"Merge Query (Shift-Ctrl-M)\", label: \"Merge\" }),\n            React.createElement(ToolbarButton, { onClick: this.handleCopyQuery, title: \"Copy Query (Shift-Ctrl-C)\", label: \"Copy\" }),\n            React.createElement(ToolbarButton, { onClick: this.handleToggleHistory, title: \"Show History\", label: \"History\" }),\n            ((_a = this.props.toolbar) === null || _a === void 0 ? void 0 : _a.additionalContent) ? this.props.toolbar.additionalContent\n                : null));\n        var footer = find(children, function (child) {\n            return isChildComponentType(child, GraphiQL.Footer);\n        });\n        var queryWrapStyle = {\n            WebkitFlex: this.state.editorFlex,\n            flex: this.state.editorFlex,\n        };\n        var docWrapStyle = {\n            display: 'block',\n            width: this.state.docExplorerWidth,\n        };\n        var docExplorerWrapClasses = 'docExplorerWrap' +\n            (this.state.docExplorerWidth < 200 ? ' doc-explorer-narrow' : '');\n        var historyPaneStyle = {\n            display: this.state.historyPaneOpen ? 'block' : 'none',\n            width: '230px',\n            zIndex: 7,\n        };\n        var secondaryEditorOpen = this.state.secondaryEditorOpen;\n        var secondaryEditorStyle = {\n            height: secondaryEditorOpen\n                ? this.state.secondaryEditorHeight\n                : undefined,\n        };\n        return (React.createElement(\"div\", { ref: function (n) {\n                _this.graphiqlContainer = n;\n            }, className: \"graphiql-container\" },\n            this.state.historyPaneOpen && (React.createElement(\"div\", { className: \"historyPaneWrap\", style: historyPaneStyle },\n                React.createElement(QueryHistory, { ref: function (node) {\n                        _this._queryHistory = node;\n                    }, operationName: this.state.operationName, query: this.state.query, variables: this.state.variables, onSelectQuery: this.handleSelectHistoryQuery, storage: this._storage, maxHistoryLength: this.state.maxHistoryLength, queryID: this._editorQueryID },\n                    React.createElement(\"button\", { className: \"docExplorerHide\", onClick: this.handleToggleHistory, \"aria-label\": \"Close History\" }, '\\u2715')))),\n            React.createElement(\"div\", { className: \"editorWrap\" },\n                React.createElement(\"div\", { className: \"topBarWrap\" },\n                    React.createElement(\"div\", { className: \"topBar\" },\n                        logo,\n                        React.createElement(ExecuteButton, { isRunning: Boolean(this.state.subscription), onRun: this.handleRunQuery, onStop: this.handleStopQuery, operations: this.state.operations }),\n                        toolbar),\n                    !this.state.docExplorerOpen && (React.createElement(\"button\", { className: \"docExplorerShow\", onClick: this.handleToggleDocs, \"aria-label\": \"Open Documentation Explorer\" }, 'Docs'))),\n                React.createElement(\"div\", { ref: function (n) {\n                        _this.editorBarComponent = n;\n                    }, className: \"editorBar\", onDoubleClick: this.handleResetResize, onMouseDown: this.handleResizeStart },\n                    React.createElement(\"div\", { className: \"queryWrap\", style: queryWrapStyle },\n                        React.createElement(QueryEditor, { ref: function (n) {\n                                _this.queryEditorComponent = n;\n                            }, schema: this.state.schema, validationRules: this.props.validationRules, value: this.state.query, onEdit: this.handleEditQuery, onHintInformationRender: this.handleHintInformationRender, onClickReference: this.handleClickReference, onCopyQuery: this.handleCopyQuery, onPrettifyQuery: this.handlePrettifyQuery, onMergeQuery: this.handleMergeQuery, onRunQuery: this.handleEditorRunQuery, editorTheme: this.props.editorTheme, readOnly: this.props.readOnly, externalFragments: this.props.externalFragments }),\n                        React.createElement(\"section\", { className: \"variable-editor secondary-editor\", style: secondaryEditorStyle, \"aria-label\": this.state.variableEditorActive\n                                ? 'Query Variables'\n                                : 'Request Headers' },\n                            React.createElement(\"div\", { className: \"secondary-editor-title variable-editor-title\", id: \"secondary-editor-title\", style: {\n                                    cursor: secondaryEditorOpen ? 'row-resize' : 'n-resize',\n                                }, onMouseDown: this.handleSecondaryEditorResizeStart },\n                                React.createElement(\"div\", { style: {\n                                        cursor: 'pointer',\n                                        color: this.state.variableEditorActive ? '#000' : 'gray',\n                                        display: 'inline-block',\n                                    }, onClick: this.handleOpenVariableEditorTab, onMouseDown: this.handleTabClickPropogation }, 'Query Variables'),\n                                this.state.headerEditorEnabled && (React.createElement(\"div\", { style: {\n                                        cursor: 'pointer',\n                                        color: this.state.headerEditorActive ? '#000' : 'gray',\n                                        display: 'inline-block',\n                                        marginLeft: '20px',\n                                    }, onClick: this.handleOpenHeaderEditorTab, onMouseDown: this.handleTabClickPropogation }, 'Request Headers'))),\n                            React.createElement(VariableEditor, { ref: function (n) {\n                                    _this.variableEditorComponent = n;\n                                }, value: this.state.variables, variableToType: this.state.variableToType, onEdit: this.handleEditVariables, onHintInformationRender: this.handleHintInformationRender, onPrettifyQuery: this.handlePrettifyQuery, onMergeQuery: this.handleMergeQuery, onRunQuery: this.handleEditorRunQuery, editorTheme: this.props.editorTheme, readOnly: this.props.readOnly, active: this.state.variableEditorActive }),\n                            this.state.headerEditorEnabled && (React.createElement(HeaderEditor, { ref: function (n) {\n                                    _this.headerEditorComponent = n;\n                                }, value: this.state.headers, onEdit: this.handleEditHeaders, onHintInformationRender: this.handleHintInformationRender, onPrettifyQuery: this.handlePrettifyQuery, onMergeQuery: this.handleMergeQuery, onRunQuery: this.handleEditorRunQuery, editorTheme: this.props.editorTheme, readOnly: this.props.readOnly, active: this.state.headerEditorActive })))),\n                    React.createElement(\"div\", { className: \"resultWrap\" },\n                        this.state.isWaitingForResponse && (React.createElement(\"div\", { className: \"spinner-container\" },\n                            React.createElement(\"div\", { className: \"spinner\" }))),\n                        React.createElement(ResultViewer, { registerRef: function (n) {\n                                _this.resultViewerElement = n;\n                            }, ref: function (c) {\n                                _this.resultComponent = c;\n                            }, value: this.state.response, editorTheme: this.props.editorTheme, ResultsTooltip: this.props.ResultsTooltip, ImagePreview: ImagePreview }),\n                        footer))),\n            this.state.docExplorerOpen && (React.createElement(\"div\", { className: docExplorerWrapClasses, style: docWrapStyle },\n                React.createElement(\"div\", { className: \"docExplorerResizer\", onDoubleClick: this.handleDocsResetResize, onMouseDown: this.handleDocsResizeStart }),\n                React.createElement(DocExplorer, { ref: function (c) {\n                        _this.docExplorerComponent = c;\n                    }, schemaErrors: this.state.schemaErrors, schema: this.state.schema },\n                    React.createElement(\"button\", { className: \"docExplorerHide\", onClick: this.handleToggleDocs, \"aria-label\": \"Close Documentation Explorer\" }, '\\u2715'))))));\n    };\n    GraphiQL.prototype.getQueryEditor = function () {\n        if (this.queryEditorComponent) {\n            return this.queryEditorComponent.getCodeMirror();\n        }\n    };\n    GraphiQL.prototype.getVariableEditor = function () {\n        if (this.variableEditorComponent) {\n            return this.variableEditorComponent.getCodeMirror();\n        }\n        return null;\n    };\n    GraphiQL.prototype.getHeaderEditor = function () {\n        if (this.headerEditorComponent) {\n            return this.headerEditorComponent.getCodeMirror();\n        }\n        return null;\n    };\n    GraphiQL.prototype.refresh = function () {\n        if (this.queryEditorComponent) {\n            this.queryEditorComponent.getCodeMirror().refresh();\n        }\n        if (this.variableEditorComponent) {\n            this.variableEditorComponent.getCodeMirror().refresh();\n        }\n        if (this.headerEditorComponent) {\n            this.headerEditorComponent.getCodeMirror().refresh();\n        }\n        if (this.resultComponent) {\n            this.resultComponent.getCodeMirror().refresh();\n        }\n    };\n    GraphiQL.prototype.autoCompleteLeafs = function () {\n        var _a = fillLeafs(this.state.schema, this.state.query, this.props.getDefaultFieldNames), insertions = _a.insertions, result = _a.result;\n        if (insertions && insertions.length > 0) {\n            var editor_1 = this.getQueryEditor();\n            if (editor_1) {\n                editor_1.operation(function () {\n                    var cursor = editor_1.getCursor();\n                    var cursorIndex = editor_1.indexFromPos(cursor);\n                    editor_1.setValue(result || '');\n                    var added = 0;\n                    var markers = insertions.map(function (_a) {\n                        var index = _a.index, string = _a.string;\n                        return editor_1.markText(editor_1.posFromIndex(index + added), editor_1.posFromIndex(index + (added += string.length)), {\n                            className: 'autoInsertedLeaf',\n                            clearOnEnter: true,\n                            title: 'Automatically added leaf fields',\n                        });\n                    });\n                    setTimeout(function () { return markers.forEach(function (marker) { return marker.clear(); }); }, 7000);\n                    var newCursorIndex = cursorIndex;\n                    insertions.forEach(function (_a) {\n                        var index = _a.index, string = _a.string;\n                        if (index < cursorIndex) {\n                            newCursorIndex += string.length;\n                        }\n                    });\n                    editor_1.setCursor(editor_1.posFromIndex(newCursorIndex));\n                });\n            }\n        }\n        return result;\n    };\n    GraphiQL.prototype.fetchSchema = function () {\n        var _this = this;\n        var fetcher = this.props.fetcher;\n        var fetcherOpts = {\n            shouldPersistHeaders: Boolean(this.props.shouldPersistHeaders),\n            documentAST: this.state.documentAST,\n        };\n        if (this.state.headers && this.state.headers.trim().length > 2) {\n            fetcherOpts.headers = JSON.parse(this.state.headers);\n        }\n        else if (this.props.headers) {\n            fetcherOpts.headers = JSON.parse(this.props.headers);\n        }\n        var fetch = fetcherReturnToPromise(fetcher({\n            query: this._introspectionQuery,\n            operationName: this._introspectionQueryName,\n        }, fetcherOpts));\n        if (!isPromise(fetch)) {\n            this.setState({\n                response: 'Fetcher did not return a Promise for introspection.',\n            });\n            return;\n        }\n        fetch\n            .then(function (result) {\n            if (typeof result !== 'string' && 'data' in result) {\n                return result;\n            }\n            var fetch2 = fetcherReturnToPromise(fetcher({\n                query: _this._introspectionQuerySansSubscriptions,\n                operationName: _this._introspectionQueryName,\n            }, fetcherOpts));\n            if (!isPromise(fetch)) {\n                throw new Error('Fetcher did not return a Promise for introspection.');\n            }\n            return fetch2;\n        })\n            .then(function (result) {\n            if (_this.state.schema !== undefined) {\n                return;\n            }\n            if (result && result.data && '__schema' in (result === null || result === void 0 ? void 0 : result.data)) {\n                var schema = buildClientSchema(result.data);\n                if (!_this.props.dangerouslyAssumeSchemaIsValid) {\n                    var errors = validateSchema(schema);\n                    if (errors && errors.length > 0) {\n                        schema = undefined;\n                        _this.handleSchemaErrors(errors);\n                    }\n                }\n                if (schema) {\n                    var queryFacts = getOperationFacts(schema, _this.state.query);\n                    _this.safeSetState(__assign(__assign({ schema: schema }, queryFacts), { schemaErrors: undefined }));\n                }\n            }\n            else {\n                var responseString = typeof result === 'string' ? result : GraphiQL.formatResult(result);\n                _this.handleSchemaErrors([responseString]);\n            }\n        })\n            .catch(function (error) {\n            _this.handleSchemaErrors([error]);\n        });\n    };\n    GraphiQL.prototype.handleSchemaErrors = function (schemaErrors) {\n        this.safeSetState({\n            response: schemaErrors ? GraphiQL.formatError(schemaErrors) : undefined,\n            schema: undefined,\n            schemaErrors: schemaErrors,\n        });\n    };\n    GraphiQL.prototype._fetchQuery = function (query, variables, headers, operationName, shouldPersistHeaders, cb) {\n        return __awaiter(this, void 0, void 0, function () {\n            var fetcher, jsonVariables, jsonHeaders, externalFragments_1, fragmentDependencies, fetch;\n            var _this = this;\n            return __generator(this, function (_a) {\n                fetcher = this.props.fetcher;\n                jsonVariables = null;\n                jsonHeaders = null;\n                try {\n                    jsonVariables =\n                        variables && variables.trim() !== '' ? JSON.parse(variables) : null;\n                }\n                catch (error) {\n                    throw new Error(\"Variables are invalid JSON: \" + error.message + \".\");\n                }\n                if (typeof jsonVariables !== 'object') {\n                    throw new Error('Variables are not a JSON object.');\n                }\n                try {\n                    jsonHeaders =\n                        headers && headers.trim() !== '' ? JSON.parse(headers) : null;\n                }\n                catch (error) {\n                    throw new Error(\"Headers are invalid JSON: \" + error.message + \".\");\n                }\n                if (typeof jsonHeaders !== 'object') {\n                    throw new Error('Headers are not a JSON object.');\n                }\n                if (this.props.externalFragments) {\n                    externalFragments_1 = new Map();\n                    if (Array.isArray(this.props.externalFragments)) {\n                        this.props.externalFragments.forEach(function (def) {\n                            externalFragments_1.set(def.name.value, def);\n                        });\n                    }\n                    else {\n                        visit(parse(this.props.externalFragments, {}), {\n                            FragmentDefinition: function (def) {\n                                externalFragments_1.set(def.name.value, def);\n                            },\n                        });\n                    }\n                    fragmentDependencies = getFragmentDependenciesForAST(this.state.documentAST, externalFragments_1);\n                    if (fragmentDependencies.length > 0) {\n                        query +=\n                            '\\n' +\n                                fragmentDependencies\n                                    .map(function (node) { return print(node); })\n                                    .join('\\n');\n                    }\n                }\n                fetch = fetcher({\n                    query: query,\n                    variables: jsonVariables,\n                    operationName: operationName,\n                }, {\n                    headers: jsonHeaders,\n                    shouldPersistHeaders: shouldPersistHeaders,\n                    documentAST: this.state.documentAST,\n                });\n                return [2, Promise.resolve(fetch)\n                        .then(function (value) {\n                        if (isObservable(value)) {\n                            var subscription = value.subscribe({\n                                next: cb,\n                                error: function (error) {\n                                    _this.safeSetState({\n                                        isWaitingForResponse: false,\n                                        response: error ? GraphiQL.formatError(error) : undefined,\n                                        subscription: null,\n                                    });\n                                },\n                                complete: function () {\n                                    _this.safeSetState({\n                                        isWaitingForResponse: false,\n                                        subscription: null,\n                                    });\n                                },\n                            });\n                            return subscription;\n                        }\n                        else if (isAsyncIterable(value)) {\n                            (function () { return __awaiter(_this, void 0, void 0, function () {\n                                var value_1, value_1_1, result, e_2_1, error_2;\n                                var e_2, _a;\n                                return __generator(this, function (_b) {\n                                    switch (_b.label) {\n                                        case 0:\n                                            _b.trys.push([0, 13, , 14]);\n                                            _b.label = 1;\n                                        case 1:\n                                            _b.trys.push([1, 6, 7, 12]);\n                                            value_1 = __asyncValues(value);\n                                            _b.label = 2;\n                                        case 2: return [4, value_1.next()];\n                                        case 3:\n                                            if (!(value_1_1 = _b.sent(), !value_1_1.done)) return [3, 5];\n                                            result = value_1_1.value;\n                                            cb(result);\n                                            _b.label = 4;\n                                        case 4: return [3, 2];\n                                        case 5: return [3, 12];\n                                        case 6:\n                                            e_2_1 = _b.sent();\n                                            e_2 = { error: e_2_1 };\n                                            return [3, 12];\n                                        case 7:\n                                            _b.trys.push([7, , 10, 11]);\n                                            if (!(value_1_1 && !value_1_1.done && (_a = value_1.return))) return [3, 9];\n                                            return [4, _a.call(value_1)];\n                                        case 8:\n                                            _b.sent();\n                                            _b.label = 9;\n                                        case 9: return [3, 11];\n                                        case 10:\n                                            if (e_2) throw e_2.error;\n                                            return [7];\n                                        case 11: return [7];\n                                        case 12:\n                                            this.safeSetState({\n                                                isWaitingForResponse: false,\n                                                subscription: null,\n                                            });\n                                            return [3, 14];\n                                        case 13:\n                                            error_2 = _b.sent();\n                                            this.safeSetState({\n                                                isWaitingForResponse: false,\n                                                response: error_2\n                                                    ? GraphiQL.formatError(error_2)\n                                                    : undefined,\n                                                subscription: null,\n                                            });\n                                            return [3, 14];\n                                        case 14: return [2];\n                                    }\n                                });\n                            }); })();\n                            return {\n                                unsubscribe: function () { var _a, _b; return (_b = (_a = value[Symbol.asyncIterator]()).return) === null || _b === void 0 ? void 0 : _b.call(_a); },\n                            };\n                        }\n                        else {\n                            cb(value);\n                            return null;\n                        }\n                    })\n                        .catch(function (error) {\n                        _this.safeSetState({\n                            isWaitingForResponse: false,\n                            response: error ? GraphiQL.formatError(error) : undefined,\n                        });\n                        return null;\n                    })];\n            });\n        });\n    };\n    GraphiQL.prototype._runQueryAtCursor = function () {\n        if (this.state.subscription) {\n            this.handleStopQuery();\n            return;\n        }\n        var operationName;\n        var operations = this.state.operations;\n        if (operations) {\n            var editor = this.getQueryEditor();\n            if (editor && editor.hasFocus()) {\n                var cursor = editor.getCursor();\n                var cursorIndex = editor.indexFromPos(cursor);\n                for (var i = 0; i < operations.length; i++) {\n                    var operation = operations[i];\n                    if (operation.loc &&\n                        operation.loc.start <= cursorIndex &&\n                        operation.loc.end >= cursorIndex) {\n                        operationName = operation.name && operation.name.value;\n                        break;\n                    }\n                }\n            }\n        }\n        this.handleRunQuery(operationName);\n    };\n    GraphiQL.prototype._didClickDragBar = function (event) {\n        if (event.button !== 0 || event.ctrlKey) {\n            return false;\n        }\n        var target = event.target;\n        if (target.className.indexOf('CodeMirror-gutter') !== 0) {\n            return false;\n        }\n        var resultWindow = this.resultViewerElement;\n        while (target) {\n            if (target === resultWindow) {\n                return true;\n            }\n            target = target.parentNode;\n        }\n        return false;\n    };\n    GraphiQL.formatError = function (error) {\n        if (Array.isArray(error)) {\n            return stringify({\n                errors: error.map(function (e) { return handleSingleError(e); }),\n            });\n        }\n        return stringify({ errors: handleSingleError(error) });\n    };\n    GraphiQL.Logo = GraphiQLLogo;\n    GraphiQL.Toolbar = GraphiQLToolbar;\n    GraphiQL.Footer = GraphiQLFooter;\n    GraphiQL.QueryEditor = QueryEditor;\n    GraphiQL.VariableEditor = VariableEditor;\n    GraphiQL.HeaderEditor = HeaderEditor;\n    GraphiQL.ResultViewer = ResultViewer;\n    GraphiQL.Button = ToolbarButton;\n    GraphiQL.ToolbarButton = ToolbarButton;\n    GraphiQL.Group = ToolbarGroup;\n    GraphiQL.Menu = ToolbarMenu;\n    GraphiQL.MenuItem = ToolbarMenuItem;\n    return GraphiQL;\n}(React.Component));\nexport { GraphiQL };\nfunction GraphiQLLogo(props) {\n    return (React.createElement(\"div\", { className: \"title\" }, props.children || (React.createElement(\"span\", null,\n        'Graph',\n        React.createElement(\"em\", null, 'i'),\n        'QL'))));\n}\nGraphiQLLogo.displayName = 'GraphiQLLogo';\nfunction GraphiQLToolbar(props) {\n    return (React.createElement(\"div\", { className: \"toolbar\", role: \"toolbar\", \"aria-label\": \"Editor Commands\" }, props.children));\n}\nGraphiQLToolbar.displayName = 'GraphiQLToolbar';\nfunction GraphiQLFooter(props) {\n    return React.createElement(\"div\", { className: \"footer\" }, props.children);\n}\nGraphiQLFooter.displayName = 'GraphiQLFooter';\nvar defaultQuery = \"# Welcome to GraphiQL\\n#\\n# GraphiQL is an in-browser tool for writing, validating, and\\n# testing GraphQL queries.\\n#\\n# Type queries into this side of the screen, and you will see intelligent\\n# typeaheads aware of the current GraphQL type schema and live syntax and\\n# validation errors highlighted within the text.\\n#\\n# GraphQL queries typically start with a \\\"{\\\" character. Lines that start\\n# with a # are ignored.\\n#\\n# An example GraphQL query might look like:\\n#\\n#     {\\n#       field(arg: \\\"value\\\") {\\n#         subField\\n#       }\\n#     }\\n#\\n# Keyboard shortcuts:\\n#\\n#  Prettify Query:  Shift-Ctrl-P (or press the prettify button above)\\n#\\n#     Merge Query:  Shift-Ctrl-M (or press the merge button above)\\n#\\n#       Run Query:  Ctrl-Enter (or press the play button above)\\n#\\n#   Auto Complete:  Ctrl-Space (or just start typing)\\n#\\n\\n\";\nfunction isPromise(value) {\n    return typeof value === 'object' && typeof value.then === 'function';\n}\nfunction observableToPromise(observable) {\n    return new Promise(function (resolve, reject) {\n        var subscription = observable.subscribe({\n            next: function (v) {\n                resolve(v);\n                subscription.unsubscribe();\n            },\n            error: reject,\n            complete: function () {\n                reject(new Error('no value resolved'));\n            },\n        });\n    });\n}\nfunction isObservable(value) {\n    return (typeof value === 'object' &&\n        'subscribe' in value &&\n        typeof value.subscribe === 'function');\n}\nfunction isAsyncIterable(input) {\n    return (typeof input === 'object' &&\n        input !== null &&\n        (input[Symbol.toStringTag] === 'AsyncGenerator' ||\n            Symbol.asyncIterator in input));\n}\nfunction asyncIterableToPromise(input) {\n    return new Promise(function (resolve, reject) {\n        var _a;\n        var iteratorReturn = (_a = ('return' in input\n            ? input\n            : input[Symbol.asyncIterator]()).return) === null || _a === void 0 ? void 0 : _a.bind(input);\n        var iteratorNext = ('next' in input\n            ? input\n            : input[Symbol.asyncIterator]()).next.bind(input);\n        iteratorNext()\n            .then(function (result) {\n            resolve(result.value);\n            iteratorReturn === null || iteratorReturn === void 0 ? void 0 : iteratorReturn();\n        })\n            .catch(function (err) {\n            reject(err);\n        });\n    });\n}\nfunction fetcherReturnToPromise(fetcherResult) {\n    return Promise.resolve(fetcherResult).then(function (fetcherResult) {\n        if (isAsyncIterable(fetcherResult)) {\n            return asyncIterableToPromise(fetcherResult);\n        }\n        else if (isObservable(fetcherResult)) {\n            return observableToPromise(fetcherResult);\n        }\n        return fetcherResult;\n    });\n}\nfunction isChildComponentType(child, component) {\n    var _a;\n    if (((_a = child === null || child === void 0 ? void 0 : child.type) === null || _a === void 0 ? void 0 : _a.displayName) &&\n        child.type.displayName === component.displayName) {\n        return true;\n    }\n    return child.type === component;\n}\n//# sourceMappingURL=GraphiQL.js.map","var __extends = (this && this.__extends) || (function () {\n    var extendStatics = function (d, b) {\n        extendStatics = Object.setPrototypeOf ||\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n        return extendStatics(d, b);\n    };\n    return function (d, b) {\n        extendStatics(d, b);\n        function __() { this.constructor = d; }\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n    };\n})();\nvar __assign = (this && this.__assign) || function () {\n    __assign = Object.assign || function(t) {\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\n            s = arguments[i];\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                t[p] = s[p];\n        }\n        return t;\n    };\n    return __assign.apply(this, arguments);\n};\nimport React from 'react';\nfunction hasProps(child) {\n    if (!child || typeof child !== 'object' || !('props' in child)) {\n        return false;\n    }\n    return true;\n}\nvar ToolbarSelect = (function (_super) {\n    __extends(ToolbarSelect, _super);\n    function ToolbarSelect(props) {\n        var _this = _super.call(this, props) || this;\n        _this._node = null;\n        _this._listener = null;\n        _this.handleOpen = function (e) {\n            preventDefault(e);\n            _this.setState({ visible: true });\n            _this._subscribe();\n        };\n        _this.state = { visible: false };\n        return _this;\n    }\n    ToolbarSelect.prototype.componentWillUnmount = function () {\n        this._release();\n    };\n    ToolbarSelect.prototype.render = function () {\n        var _this = this;\n        var selectedChild;\n        var visible = this.state.visible;\n        var optionChildren = React.Children.map(this.props.children, function (child, i) {\n            if (!hasProps(child)) {\n                return null;\n            }\n            if (!selectedChild || child.props.selected) {\n                selectedChild = child;\n            }\n            var onChildSelect = child.props.onSelect ||\n                (_this.props.onSelect &&\n                    _this.props.onSelect.bind(null, child.props.value, i));\n            return (React.createElement(ToolbarSelectOption, __assign({}, child.props, { onSelect: onChildSelect })));\n        });\n        return (React.createElement(\"a\", { className: \"toolbar-select toolbar-button\", onClick: this.handleOpen.bind(this), onMouseDown: preventDefault, ref: function (node) {\n                _this._node = node;\n            }, title: this.props.title }, selectedChild === null || selectedChild === void 0 ? void 0 :\n            selectedChild.props.label,\n            React.createElement(\"svg\", { width: \"13\", height: \"10\" },\n                React.createElement(\"path\", { fill: \"#666\", d: \"M 5 5 L 13 5 L 9 1 z\" }),\n                React.createElement(\"path\", { fill: \"#666\", d: \"M 5 6 L 13 6 L 9 10 z\" })),\n            React.createElement(\"ul\", { className: 'toolbar-select-options' + (visible ? ' open' : '') }, optionChildren)));\n    };\n    ToolbarSelect.prototype._subscribe = function () {\n        if (!this._listener) {\n            this._listener = this.handleClick.bind(this);\n            document.addEventListener('click', this._listener);\n        }\n    };\n    ToolbarSelect.prototype._release = function () {\n        if (this._listener) {\n            document.removeEventListener('click', this._listener);\n            this._listener = null;\n        }\n    };\n    ToolbarSelect.prototype.handleClick = function (e) {\n        if (this._node !== e.target) {\n            preventDefault(e);\n            this.setState({ visible: false });\n            this._release();\n        }\n    };\n    return ToolbarSelect;\n}(React.Component));\nexport { ToolbarSelect };\nexport function ToolbarSelectOption(_a) {\n    var onSelect = _a.onSelect, label = _a.label, selected = _a.selected;\n    return (React.createElement(\"li\", { onMouseOver: function (e) {\n            e.currentTarget.className = 'hover';\n        }, onMouseOut: function (e) {\n            e.currentTarget.className = '';\n        }, onMouseDown: preventDefault, onMouseUp: onSelect },\n        label,\n        selected && (React.createElement(\"svg\", { width: \"13\", height: \"13\" },\n            React.createElement(\"polygon\", { points: \"4.851,10.462 0,5.611 2.314,3.297 4.851,5.835\\n    10.686,0 13,2.314 4.851,10.462\" })))));\n}\nfunction preventDefault(e) {\n    e.preventDefault();\n}\n//# sourceMappingURL=ToolbarSelect.js.map","import { GraphiQL } from './components/GraphiQL';\nexport { GraphiQL };\nexport default GraphiQL;\nexport { QueryEditor } from './components/QueryEditor';\nexport { VariableEditor } from './components/VariableEditor';\nexport { DocExplorer } from './components/DocExplorer';\nexport { ToolbarMenu, ToolbarMenuItem } from './components/ToolbarMenu';\nexport { ToolbarButton } from './components/ToolbarButton';\nexport { ToolbarGroup } from './components/ToolbarGroup';\nexport { ToolbarSelect, ToolbarSelectOption } from './components/ToolbarSelect';\nexport { fillLeafs } from './utility/fillLeafs';\nexport { default as mergeAst } from './utility/mergeAst';\nexport { default as getSelectedOperationName } from './utility/getSelectedOperationName';\nexport { default as onHasCompletion } from './utility/onHasCompletion';\n//# sourceMappingURL=index.js.map"],"names":[],"sourceRoot":""}