All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.ext.web.handler.graphiql.static.js.379.40afd009.chunk.js Maven / Gradle / Ivy

"use strict";(self.webpackChunkvertx_web_graphiql=self.webpackChunkvertx_web_graphiql||[]).push([[379],{9274:function(e,t,n){n.d(t,{C:function(){return c},P:function(){return u},R:function(){return s}});var r=n(5671),a=n(3144),i=Object.defineProperty,o=function(e,t){return i(e,"name",{value:t,configurable:!0})},c=function(){function e(t){var n=this;(0,r.Z)(this,e),this.getStartOfToken=function(){return n._start},this.getCurrentPosition=function(){return n._pos},this.eol=function(){return n._sourceText.length===n._pos},this.sol=function(){return 0===n._pos},this.peek=function(){return n._sourceText.charAt(n._pos)?n._sourceText.charAt(n._pos):null},this.next=function(){var e=n._sourceText.charAt(n._pos);return n._pos++,e},this.eat=function(e){if(n._testNextCharacter(e))return n._start=n._pos,n._pos++,n._sourceText.charAt(n._pos-1)},this.eatWhile=function(e){var t=n._testNextCharacter(e),r=!1;for(t&&(r=t,n._start=n._pos);t;)n._pos++,t=n._testNextCharacter(e),r=!0;return r},this.eatSpace=function(){return n.eatWhile(/[\s\u00a0]/)},this.skipToEnd=function(){n._pos=n._sourceText.length},this.skipTo=function(e){n._pos=e},this.match=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=null,i=null;if("string"===typeof e){var o=new RegExp(e,r?"i":"g");i=o.test(n._sourceText.substr(n._pos,e.length)),a=e}else e instanceof RegExp&&(a=null===(i=n._sourceText.slice(n._pos).match(e))||void 0===i?void 0:i[0]);return!(null==i||!("string"===typeof e||i instanceof Array&&n._sourceText.startsWith(i[0],n._pos)))&&(t&&(n._start=n._pos,a&&a.length&&(n._pos+=a.length)),i)},this.backUp=function(e){n._pos-=e},this.column=function(){return n._pos},this.indentation=function(){var e=n._sourceText.match(/\s*/),t=0;if(e&&0!==e.length)for(var r=e[0],a=0;r.length>a;)9===r.charCodeAt(a)?t+=2:t++,a++;return t},this.current=function(){return n._sourceText.slice(n._start,n._pos)},this._start=0,this._pos=0,this._sourceText=t}return(0,a.Z)(e,[{key:"_testNextCharacter",value:function(e){var t=this._sourceText.charAt(this._pos);return"string"===typeof e?t===e:e instanceof RegExp?e.test(t):e(t)}}]),e}();o(c,"CharacterStream");var s=function(){function e(t,n){var a=this;(0,r.Z)(this,e),this.containsPosition=function(e){return a.start.line===e.line?a.start.character<=e.character:a.end.line===e.line?a.end.character>=e.character:a.start.line<=e.line&&a.end.line>=e.line},this.start=t,this.end=n}return(0,a.Z)(e,[{key:"setStart",value:function(e,t){this.start=new u(e,t)}},{key:"setEnd",value:function(e,t){this.end=new u(e,t)}}]),e}();o(s,"Range");var u=function(){function e(t,n){var a=this;(0,r.Z)(this,e),this.lessThanOrEqualTo=function(e){return a.line1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,c=null;o&&(e+="string"===typeof o?"\n\n"+o:"\n\n"+o.reduce((function(e,t){return e+=(0,k.S)(t)+"\n\n"}),""));try{c=(0,E.Qc)(e)}catch(u){if(u instanceof C.__){var s=U(null!==(n=null===(t=u.locations)||void 0===t?void 0:t[0])&&void 0!==n?n:{line:0,column:0},e);return[{severity:V.Error,message:u.message,source:"GraphQL: Syntax",range:s}]}throw u}return j(c,r,a,i)}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(!t)return[];var a=H(G(t,e,n,r),(function(e){return J(e,V.Error,"Validation")})),i=H((0,T.Gu)(t,e,[R]),(function(e){return J(e,V.Warning,"Deprecation")}));return a.concat(i)}function H(e,t){return Array.prototype.concat.apply([],e.map(t))}function J(e,t,n){if(!e.nodes)return[];var r=[];return e.nodes.forEach((function(a){var i="Variable"!==a.kind&&"name"in a&&void 0!==a.name?a.name:"variable"in a&&void 0!==a.variable?a.variable:a;if(i){W(e.locations,"GraphQL validation error requires locations.");var o=e.locations[0],c=z(i),s=o.column+(c.end-c.start);r.push({source:"GraphQL: ".concat(n),message:e.message,severity:t,range:new S.R(new S.P(o.line-1,o.column-1),new S.P(o.line-1,s))})}})),r}function U(e,t){var n=(0,L.o)(),r=n.startState(),a=t.split("\n");W(a.length>=e.line,"Query text must have more lines than where the error happened");for(var i=null,o=0;o




© 2015 - 2025 Weber Informatics LLC | Privacy Policy