parse-dashboard 5.1.0-beta.1 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Parse-Dashboard/Authentication.js +13 -8
- package/Parse-Dashboard/app.js +7 -2
- package/Parse-Dashboard/index.js +2 -0
- package/Parse-Dashboard/public/bundles/339.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/410.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/655.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/773.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/817.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/974.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/dashboard.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/login.bundle.js +1 -1
- package/Parse-Dashboard/server.js +2 -1
- package/README.md +2 -0
- package/package.json +15 -15
|
@@ -54,25 +54,30 @@ function initialize(app, options) {
|
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
var cookieSessionSecret = options.cookieSessionSecret || require('crypto').randomBytes(64).toString('hex');
|
|
57
|
+
const cookieSessionMaxAge = options.cookieSessionMaxAge;
|
|
57
58
|
app.use(require('connect-flash')());
|
|
58
59
|
app.use(require('body-parser').urlencoded({ extended: true }));
|
|
59
60
|
app.use(require('cookie-session')({
|
|
60
61
|
key : 'parse_dash',
|
|
61
62
|
secret : cookieSessionSecret,
|
|
62
|
-
|
|
63
|
-
maxAge: (2 * 7 * 24 * 60 * 60 * 1000) // 2 weeks
|
|
64
|
-
}
|
|
63
|
+
maxAge : cookieSessionMaxAge
|
|
65
64
|
}));
|
|
66
65
|
app.use(passport.initialize());
|
|
67
66
|
app.use(passport.session());
|
|
68
67
|
|
|
69
68
|
app.post('/login',
|
|
70
69
|
csrf(),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
(req,res,next) => {
|
|
71
|
+
let redirect = 'apps';
|
|
72
|
+
if (req.body.redirect) {
|
|
73
|
+
redirect = req.body.redirect.charAt(0) === '/' ? req.body.redirect.substring(1) : req.body.redirect
|
|
74
|
+
}
|
|
75
|
+
return passport.authenticate('local', {
|
|
76
|
+
successRedirect: `${self.mountPath}${redirect}`,
|
|
77
|
+
failureRedirect: `${self.mountPath}login${req.body.redirect ? `?redirect=${req.body.redirect}` : ''}`,
|
|
78
|
+
failureFlash : true
|
|
79
|
+
})(req, res, next)
|
|
80
|
+
},
|
|
76
81
|
);
|
|
77
82
|
|
|
78
83
|
app.get('/logout', function(req, res){
|
package/Parse-Dashboard/app.js
CHANGED
|
@@ -68,7 +68,7 @@ module.exports = function(config, options) {
|
|
|
68
68
|
const users = config.users;
|
|
69
69
|
const useEncryptedPasswords = config.useEncryptedPasswords ? true : false;
|
|
70
70
|
const authInstance = new Authentication(users, useEncryptedPasswords, mountPath);
|
|
71
|
-
authInstance.initialize(app, { cookieSessionSecret: options.cookieSessionSecret });
|
|
71
|
+
authInstance.initialize(app, { cookieSessionSecret: options.cookieSessionSecret, cookieSessionMaxAge: options.cookieSessionMaxAge });
|
|
72
72
|
|
|
73
73
|
// CSRF error handler
|
|
74
74
|
app.use(function (err, req, res, next) {
|
|
@@ -173,8 +173,9 @@ module.exports = function(config, options) {
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
app.get('/login', csrf(), function(req, res) {
|
|
176
|
+
const redirectURL = req.url.includes('?redirect=') && req.url.split('?redirect=')[1].length > 1 && req.url.split('?redirect=')[1];
|
|
176
177
|
if (!users || (req.user && req.user.isAuthenticated)) {
|
|
177
|
-
return res.redirect(`${mountPath}apps`);
|
|
178
|
+
return res.redirect(`${mountPath}${redirectURL || 'apps'}`);
|
|
178
179
|
}
|
|
179
180
|
|
|
180
181
|
let errors = req.flash('error');
|
|
@@ -206,6 +207,10 @@ module.exports = function(config, options) {
|
|
|
206
207
|
// For every other request, go to index.html. Let client-side handle the rest.
|
|
207
208
|
app.get('/*', function(req, res) {
|
|
208
209
|
if (users && (!req.user || !req.user.isAuthenticated)) {
|
|
210
|
+
const redirect = req.url.replace('/login', '');
|
|
211
|
+
if (redirect.length > 1) {
|
|
212
|
+
return res.redirect(`${mountPath}login?redirect=${redirect}`);
|
|
213
|
+
}
|
|
209
214
|
return res.redirect(`${mountPath}login`);
|
|
210
215
|
}
|
|
211
216
|
if (users && req.user && req.user.matchingUsername ) {
|
package/Parse-Dashboard/index.js
CHANGED
|
@@ -28,6 +28,8 @@ program.option('--trustProxy [trustProxy]', 'set this flag when you are behind a
|
|
|
28
28
|
program.option('--cookieSessionSecret [cookieSessionSecret]', 'set the cookie session secret, defaults to a random string. You should set that value if you want sessions to work across multiple server, or across restarts');
|
|
29
29
|
program.option('--createUser', 'helper tool to allow you to generate secure user passwords and secrets. Use this on trusted devices only.');
|
|
30
30
|
program.option('--createMFA', 'helper tool to allow you to generate multi-factor authentication secrets.');
|
|
31
|
+
program.option('--cookieSessionMaxAge [cookieSessionMaxAge]', '(Optional) Sets the time in seconds for when the session cookie will be deleted and the dashboard user has to re-login; if no value is set then the cookie will be deleted when the browser session ends.');
|
|
32
|
+
|
|
31
33
|
program.action(async (options) => {
|
|
32
34
|
for (const key in options) {
|
|
33
35
|
const func = CLIHelper[key];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[339],{47339:(t,e,n)=>{n.r(e),n.d(e,{l:()=>l});var o=n(96539),r=Object.defineProperty,i=(t,e)=>r(t,"name",{value:e,configurable:!0});function a(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(n){if("default"!==n&&!(n in t)){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}))})),Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}i(a,"_mergeNamespaces");var s={exports:{}};!function(t){var e="CodeMirror-lint-markers";function
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[339],{47339:(t,e,n)=>{n.r(e),n.d(e,{l:()=>l});var o=n(96539),r=Object.defineProperty,i=(t,e)=>r(t,"name",{value:e,configurable:!0});function a(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(n){if("default"!==n&&!(n in t)){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}))})),Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}i(a,"_mergeNamespaces");var s={exports:{}};!function(t){var e="CodeMirror-lint-markers",n="CodeMirror-lint-line-";function o(e,n,o){var r=document.createElement("div");function a(e){if(!r.parentNode)return t.off(document,"mousemove",a);r.style.top=Math.max(0,e.clientY-r.offsetHeight-5)+"px",r.style.left=e.clientX+5+"px"}return r.className="CodeMirror-lint-tooltip cm-s-"+e.options.theme,r.appendChild(o.cloneNode(!0)),e.state.lint.options.selfContain?e.getWrapperElement().appendChild(r):document.body.appendChild(r),i(a,"position"),t.on(document,"mousemove",a),a(n),null!=r.style.opacity&&(r.style.opacity=1),r}function r(t){t.parentNode&&t.parentNode.removeChild(t)}function a(t){t.parentNode&&(null==t.style.opacity&&r(t),t.style.opacity=0,setTimeout((function(){r(t)}),600))}function s(e,n,r,s){var l=o(e,n,r);function u(){t.off(s,"mouseout",u),l&&(a(l),l=null)}i(u,"hide");var c=setInterval((function(){if(l)for(var t=s;;t=t.parentNode){if(t&&11==t.nodeType&&(t=t.host),t==document.body)return;if(!t){u();break}}if(!l)return clearInterval(c)}),400);t.on(s,"mouseout",u)}function l(t,e,n){for(var o in this.marked=[],e instanceof Function&&(e={getAnnotations:e}),e&&!0!==e||(e={}),this.options={},this.linterOptions=e.options||{},u)this.options[o]=u[o];for(var o in e)u.hasOwnProperty(o)?null!=e[o]&&(this.options[o]=e[o]):e.options||(this.linterOptions[o]=e[o]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(e){k(t,e)},this.waitingFor=0}i(o,"showTooltip"),i(r,"rm"),i(a,"hideTooltip"),i(s,"showTooltipFor"),i(l,"LintState");var u={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function c(t){var n=t.state.lint;n.hasGutter&&t.clearGutter(e),n.options.highlightLines&&f(t);for(var o=0;o<n.marked.length;++o)n.marked[o].clear();n.marked.length=0}function f(t){t.eachLine((function(e){var n=e.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(e.wrapClass);n&&t.removeLineClass(e,"wrap",n[0])}))}function p(e,n,o,r,i){var a=document.createElement("div"),l=a;return a.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+o,r&&((l=a.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=i&&t.on(l,"mouseover",(function(t){s(e,t,n,l)})),a}function m(t,e){return"error"==t?t:e}function d(t){for(var e=[],n=0;n<t.length;++n){var o=t[n],r=o.from.line;(e[r]||(e[r]=[])).push(o)}return e}function h(t){var e=t.severity;e||(e="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+e,void 0!==t.messageHTML?n.innerHTML=t.messageHTML:n.appendChild(document.createTextNode(t.message)),n}function g(e,n){var o=e.state.lint,r=++o.waitingFor;function a(){r=-1,e.off("change",a)}i(a,"abort"),e.on("change",a),n(e.getValue(),(function(n,i){e.off("change",a),o.waitingFor==r&&(i&&n instanceof t&&(n=i),e.operation((function(){C(e,n)})))}),o.linterOptions,e)}function v(e){var n=e.state.lint;if(n){var o=n.options,r=o.getAnnotations||e.getHelper(t.Pos(0,0),"lint");if(r)if(o.async||r.async)g(e,r);else{var i=r(e.getValue(),n.linterOptions,e);if(!i)return;i.then?i.then((function(t){e.operation((function(){C(e,t)}))})):e.operation((function(){C(e,i)}))}}}function C(t,o){var r=t.state.lint;if(r){var i=r.options;c(t);for(var a=d(o),s=0;s<a.length;++s){var l=a[s];if(l){var u=[];l=l.filter((function(t){return!(u.indexOf(t.message)>-1)&&u.push(t.message)}));for(var f=null,g=r.hasGutter&&document.createDocumentFragment(),v=0;v<l.length;++v){var C=l[v],y=C.severity;y||(y="error"),f=m(f,y),i.formatAnnotation&&(C=i.formatAnnotation(C)),r.hasGutter&&g.appendChild(h(C)),C.to&&r.marked.push(t.markText(C.from,C.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+y,__annotation:C}))}r.hasGutter&&t.setGutterMarker(s,e,p(t,g,f,a[s].length>1,i.tooltips)),i.highlightLines&&t.addLineClass(s,"wrap",n+f)}}i.onUpdateLinting&&i.onUpdateLinting(o,a,t)}}function y(t){var e=t.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout((function(){v(t)}),e.options.delay))}function M(t,e,n){for(var o=n.target||n.srcElement,r=document.createDocumentFragment(),i=0;i<e.length;i++){var a=e[i];r.appendChild(h(a))}s(t,n,r,o)}function k(t,e){var n=e.target||e.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var o=n.getBoundingClientRect(),r=(o.left+o.right)/2,i=(o.top+o.bottom)/2,a=t.findMarksAt(t.coordsChar({left:r,top:i},"client")),s=[],l=0;l<a.length;++l){var u=a[l].__annotation;u&&s.push(u)}s.length&&M(t,s,e)}}i(c,"clearMarks"),i(f,"clearErrorLines"),i(p,"makeMarker"),i(m,"getMaxSeverity"),i(d,"groupByLine"),i(h,"annotationTooltip"),i(g,"lintAsync"),i(v,"startLinting"),i(C,"updateLinting"),i(y,"onChange"),i(M,"popupTooltips"),i(k,"onMouseOver"),t.defineOption("lint",!1,(function(n,o,r){if(r&&r!=t.Init&&(c(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",y),t.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),o){for(var i=n.getOption("gutters"),a=!1,s=0;s<i.length;++s)i[s]==e&&(a=!0);var u=n.state.lint=new l(n,o,a);u.options.lintOnChange&&n.on("change",y),0!=u.options.tooltips&&"gutter"!=u.options.tooltips&&t.on(n.getWrapperElement(),"mouseover",u.onMouseOver),v(n)}})),t.defineExtension("performLint",(function(){v(this)}))}(o.a.exports);var l=a({__proto__:null,default:s.exports},[s.exports])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[410],{70410:(t,e,i)=>{i.r(e),i.d(e,{s:()=>l});var n=i(96539),o=Object.defineProperty,s=(t,e)=>o(t,"name",{value:e,configurable:!0});function r(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(i){if("default"!==i&&!(i in t)){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}}))})),Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}s(r,"_mergeNamespaces");var c={exports:{}};!function(t){function e(t,e){if(this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var i=this;t.on("cursorActivity",this.activityFunc=function(){i.cursorActivity()})}}t.showHint=function(t,e,i){if(!e)return t.showHint(i);i&&i.async&&(e.async=!0);var n={hint:e};if(i)for(var o in i)n[o]=i[o];return t.showHint(n)},t.defineExtension("showHint",(function(i){i=o(this,this.getCursor("start"),i);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!i.hint.supportsSelection)return;for(var s=0;s<n.length;s++)if(n[s].head.line!=n[s].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var r=this.state.completionActive=new e(this,i);r.options.hint&&(t.signal(this,"startCompletion",this),r.update(!0))}})),t.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()})),s(e,"Completion");var i=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},n=window.cancelAnimationFrame||clearTimeout;function o(t,e,i){var n=t.options.hintOptions,o={};for(var s in d)o[s]=d[s];if(n)for(var s in n)void 0!==n[s]&&(o[s]=n[s]);if(i)for(var s in i)void 0!==i[s]&&(o[s]=i[s]);return o.hint.resolve&&(o.hint=o.hint.resolve(t,e)),o}function r(t){return"string"==typeof t?t:t.text}function c(t,e){var i={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(1-e.menuSize(),!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close};/Mac/.test(navigator.platform)&&(i["Ctrl-P"]=function(){e.moveFocus(-1)},i["Ctrl-N"]=function(){e.moveFocus(1)});var n=t.options.customKeys,o=n?{}:i;function r(t,n){var r;r="string"!=typeof n?s((function(t){return n(t,e)}),"bound"):i.hasOwnProperty(n)?i[n]:n,o[t]=r}if(s(r,"addBinding"),n)for(var c in n)n.hasOwnProperty(c)&&r(c,n[c]);var l=t.options.extraKeys;if(l)for(var c in l)l.hasOwnProperty(c)&&r(c,l[c]);return o}function l(t,e){for(;e&&e!=t;){if("LI"===e.nodeName.toUpperCase()&&e.parentNode==t)return e;e=e.parentNode}}function h(e,i){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=e,this.data=i,this.picked=!1;var n=this,o=e.cm,s=o.getInputField().ownerDocument,h=s.defaultView||s.parentWindow,a=this.hints=s.createElement("ul");a.setAttribute("role","listbox"),a.setAttribute("aria-expanded","true"),a.id=this.id;var u=e.cm.options.theme;a.className="CodeMirror-hints "+u,this.selectedHint=i.selectedHint||0;for(var f=i.list,d=0;d<f.length;++d){var p=a.appendChild(s.createElement("li")),m=f[d],g="CodeMirror-hint"+(d!=this.selectedHint?"":" CodeMirror-hint-active");null!=m.className&&(g=m.className+" "+g),p.className=g,d==this.selectedHint&&p.setAttribute("aria-selected","true"),p.id=this.id+"-"+d,p.setAttribute("role","option"),m.render?m.render(p,i,m):p.appendChild(s.createTextNode(m.displayText||r(m))),p.hintId=d}var v=e.options.container||s.body,y=o.cursorCoords(e.options.alignWithWord?i.from:null),b=y.left,w=y.bottom,H=!0,A=0,C=0;if(v!==s.body){var k=-1!==["absolute","relative","fixed"].indexOf(h.getComputedStyle(v).position)?v:v.offsetParent,x=k.getBoundingClientRect(),O=s.body.getBoundingClientRect();A=x.left-O.left-k.scrollLeft,C=x.top-O.top-k.scrollTop}a.style.left=b-A+"px",a.style.top=w-C+"px";var S=h.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),T=h.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);v.appendChild(a),o.getInputField().setAttribute("aria-autocomplete","list"),o.getInputField().setAttribute("aria-owns",this.id),o.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var M,F=e.options.moveOnOverlap?a.getBoundingClientRect():new DOMRect,N=!!e.options.paddingForScrollbar&&a.scrollHeight>a.clientHeight+1;if(setTimeout((function(){M=o.getScrollInfo()})),F.bottom-T>0){var P=F.bottom-F.top;if(y.top-(y.bottom-F.top)-P>0)a.style.top=(w=y.top-P-C)+"px",H=!1;else if(P>T){a.style.height=T-5+"px",a.style.top=(w=y.bottom-F.top-C)+"px";var E=o.getCursor();i.from.ch!=E.ch&&(y=o.cursorCoords(E),a.style.left=(b=y.left-A)+"px",F=a.getBoundingClientRect())}}var I,W=F.right-S;if(N&&(W+=o.display.nativeBarWidth),W>0&&(F.right-F.left>S&&(a.style.width=S-5+"px",W-=F.right-F.left-S),a.style.left=(b=y.left-W-A)+"px"),N)for(var R=a.firstChild;R;R=R.nextSibling)R.style.paddingRight=o.display.nativeBarWidth+"px";o.addKeyMap(this.keyMap=c(e,{moveFocus:function(t,e){n.changeActive(n.selectedHint+t,e)},setFocus:function(t){n.changeActive(t)},menuSize:function(){return n.screenAmount()},length:f.length,close:function(){e.close()},pick:function(){n.pick()},data:i})),e.options.closeOnUnfocus&&(o.on("blur",this.onBlur=function(){I=setTimeout((function(){e.close()}),100)}),o.on("focus",this.onFocus=function(){clearTimeout(I)})),o.on("scroll",this.onScroll=function(){var t=o.getScrollInfo(),i=o.getWrapperElement().getBoundingClientRect();M||(M=o.getScrollInfo());var n=w+M.top-t.top,r=n-(h.pageYOffset||(s.documentElement||s.body).scrollTop);if(H||(r+=a.offsetHeight),r<=i.top||r>=i.bottom)return e.close();a.style.top=n+"px",a.style.left=b+M.left-t.left+"px"}),t.on(a,"dblclick",(function(t){var e=l(a,t.target||t.srcElement);e&&null!=e.hintId&&(n.changeActive(e.hintId),n.pick())})),t.on(a,"click",(function(t){var i=l(a,t.target||t.srcElement);i&&null!=i.hintId&&(n.changeActive(i.hintId),e.options.completeOnSingleClick&&n.pick())})),t.on(a,"mousedown",(function(){setTimeout((function(){o.focus()}),20)}));var B=this.getSelectedHintRange();return 0===B.from&&0===B.to||this.scrollToActive(),t.signal(i,"select",f[this.selectedHint],a.childNodes[this.selectedHint]),!0}function a(t,e){if(!t.somethingSelected())return e;for(var i=[],n=0;n<e.length;n++)e[n].supportsSelection&&i.push(e[n]);return i}function u(t,e,i,n){if(t.async)t(e,n,i);else{var o=t(e,i);o&&o.then?o.then(n):n(o)}}function f(e,i){var n,o=e.getHelpers(i,"hint");if(o.length){var r=s((function(t,e,i){var n=a(t,o);function r(o){if(o==n.length)return e(null);u(n[o],t,i,(function(t){t&&t.list.length>0?e(t):r(o+1)}))}s(r,"run"),r(0)}),"resolved");return r.async=!0,r.supportsSelection=!0,r}return(n=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:n})}:t.hint.anyword?function(e,i){return t.hint.anyword(e,i)}:function(){}}e.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,i){var n=e.list[i],o=this;this.cm.operation((function(){n.hint?n.hint(o.cm,e,n):o.cm.replaceRange(r(n),n.from||e.from,n.to||e.to,"complete"),t.signal(e,"pick",n),o.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(n(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),o=this.cm.getLine(e.line);if(e.line!=this.startPos.line||o.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(o.charAt(e.ch-1)))this.close();else{var s=this;this.debounce=i((function(){s.update()})),this.widget&&this.widget.disable()}},update:function(t){if(null!=this.tick){var e=this,i=++this.tick;u(this.options.hint,this.cm,this.options,(function(n){e.tick==i&&e.finishUpdate(n,t)}))}},finishUpdate:function(e,i){this.data&&t.signal(this.data,"update");var n=this.widget&&this.widget.picked||i&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=e,e&&e.list.length&&(n&&1==e.list.length?this.pick(e,0):(this.widget=new h(this,e),t.signal(e,"shown")))}},s(o,"parseOptions"),s(r,"getText"),s(c,"buildKeyMap"),s(l,"getHintElement"),s(h,"Widget"),h.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm.getInputField();t.removeAttribute("aria-activedescendant"),t.removeAttribute("aria-owns");var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(e,i){if(e>=this.data.list.length?e=i?this.data.list.length-1:0:e<0&&(e=i?0:this.data.list.length-1),this.selectedHint!=e){var n=this.hints.childNodes[this.selectedHint];n&&(n.className=n.className.replace(" CodeMirror-hint-active",""),n.removeAttribute("aria-selected")),(n=this.hints.childNodes[this.selectedHint=e]).className+=" CodeMirror-hint-active",n.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",n.id),this.scrollToActive(),t.signal(this.data,"select",this.data.list[this.selectedHint],n)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],i=this.hints.childNodes[t.to],n=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-n.offsetTop:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}},s(a,"applicableHelpers"),s(u,"fetchHints"),s(f,"resolveAutoHints"),t.registerHelper("hint","auto",{resolve:f}),t.registerHelper("hint","fromList",(function(e,i){var n,o=e.getCursor(),s=e.getTokenAt(o),r=t.Pos(o.line,s.start),c=o;s.start<o.ch&&/\w/.test(s.string.charAt(o.ch-s.start-1))?n=s.string.substr(0,o.ch-s.start):(n="",r=o);for(var l=[],h=0;h<i.words.length;h++){var a=i.words[h];a.slice(0,n.length)==n&&l.push(a)}if(l.length)return{list:l,from:r,to:c}})),t.commands.autocomplete=t.showHint;var d={hint:t.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};t.defineOption("hintOptions",null)}(n.a.exports);var l=r({__proto__:null,default:c.exports},[c.exports])}}]);
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[410],{70410:(t,e,i)=>{i.r(e),i.d(e,{s:()=>l});var n=i(96539),o=Object.defineProperty,s=(t,e)=>o(t,"name",{value:e,configurable:!0});function r(t,e){return e.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(i){if("default"!==i&&!(i in t)){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}}))})),Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}s(r,"_mergeNamespaces");var c={exports:{}};!function(t){var e="CodeMirror-hint",i="CodeMirror-hint-active";function n(t,e){if(this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var i=this;t.on("cursorActivity",this.activityFunc=function(){i.cursorActivity()})}}t.showHint=function(t,e,i){if(!e)return t.showHint(i);i&&i.async&&(e.async=!0);var n={hint:e};if(i)for(var o in i)n[o]=i[o];return t.showHint(n)},t.defineExtension("showHint",(function(e){e=c(this,this.getCursor("start"),e);var i=this.listSelections();if(!(i.length>1)){if(this.somethingSelected()){if(!e.hint.supportsSelection)return;for(var o=0;o<i.length;o++)if(i[o].head.line!=i[o].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var s=this.state.completionActive=new n(this,e);s.options.hint&&(t.signal(this,"startCompletion",this),s.update(!0))}})),t.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()})),s(n,"Completion");var o=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},r=window.cancelAnimationFrame||clearTimeout;function c(t,e,i){var n=t.options.hintOptions,o={};for(var s in m)o[s]=m[s];if(n)for(var s in n)void 0!==n[s]&&(o[s]=n[s]);if(i)for(var s in i)void 0!==i[s]&&(o[s]=i[s]);return o.hint.resolve&&(o.hint=o.hint.resolve(t,e)),o}function l(t){return"string"==typeof t?t:t.text}function h(t,e){var i={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(1-e.menuSize(),!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close};/Mac/.test(navigator.platform)&&(i["Ctrl-P"]=function(){e.moveFocus(-1)},i["Ctrl-N"]=function(){e.moveFocus(1)});var n=t.options.customKeys,o=n?{}:i;function r(t,n){var r;r="string"!=typeof n?s((function(t){return n(t,e)}),"bound"):i.hasOwnProperty(n)?i[n]:n,o[t]=r}if(s(r,"addBinding"),n)for(var c in n)n.hasOwnProperty(c)&&r(c,n[c]);var l=t.options.extraKeys;if(l)for(var c in l)l.hasOwnProperty(c)&&r(c,l[c]);return o}function a(t,e){for(;e&&e!=t;){if("LI"===e.nodeName.toUpperCase()&&e.parentNode==t)return e;e=e.parentNode}}function u(n,o){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=n,this.data=o,this.picked=!1;var s=this,r=n.cm,c=r.getInputField().ownerDocument,u=c.defaultView||c.parentWindow,f=this.hints=c.createElement("ul");f.setAttribute("role","listbox"),f.setAttribute("aria-expanded","true"),f.id=this.id;var d=n.cm.options.theme;f.className="CodeMirror-hints "+d,this.selectedHint=o.selectedHint||0;for(var p=o.list,m=0;m<p.length;++m){var g=f.appendChild(c.createElement("li")),v=p[m],y=e+(m!=this.selectedHint?"":" "+i);null!=v.className&&(y=v.className+" "+y),g.className=y,m==this.selectedHint&&g.setAttribute("aria-selected","true"),g.id=this.id+"-"+m,g.setAttribute("role","option"),v.render?v.render(g,o,v):g.appendChild(c.createTextNode(v.displayText||l(v))),g.hintId=m}var b=n.options.container||c.body,w=r.cursorCoords(n.options.alignWithWord?o.from:null),H=w.left,A=w.bottom,C=!0,k=0,x=0;if(b!==c.body){var O=-1!==["absolute","relative","fixed"].indexOf(u.getComputedStyle(b).position)?b:b.offsetParent,S=O.getBoundingClientRect(),T=c.body.getBoundingClientRect();k=S.left-T.left-O.scrollLeft,x=S.top-T.top-O.scrollTop}f.style.left=H-k+"px",f.style.top=A-x+"px";var F=u.innerWidth||Math.max(c.body.offsetWidth,c.documentElement.offsetWidth),M=u.innerHeight||Math.max(c.body.offsetHeight,c.documentElement.offsetHeight);b.appendChild(f),r.getInputField().setAttribute("aria-autocomplete","list"),r.getInputField().setAttribute("aria-owns",this.id),r.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var N,P=n.options.moveOnOverlap?f.getBoundingClientRect():new DOMRect,E=!!n.options.paddingForScrollbar&&f.scrollHeight>f.clientHeight+1;if(setTimeout((function(){N=r.getScrollInfo()})),P.bottom-M>0){var I=P.bottom-P.top;if(w.top-(w.bottom-P.top)-I>0)f.style.top=(A=w.top-I-x)+"px",C=!1;else if(I>M){f.style.height=M-5+"px",f.style.top=(A=w.bottom-P.top-x)+"px";var W=r.getCursor();o.from.ch!=W.ch&&(w=r.cursorCoords(W),f.style.left=(H=w.left-k)+"px",P=f.getBoundingClientRect())}}var R,B=P.right-F;if(E&&(B+=r.display.nativeBarWidth),B>0&&(P.right-P.left>F&&(f.style.width=F-5+"px",B-=P.right-P.left-F),f.style.left=(H=w.left-B-k)+"px"),E)for(var K=f.firstChild;K;K=K.nextSibling)K.style.paddingRight=r.display.nativeBarWidth+"px";r.addKeyMap(this.keyMap=h(n,{moveFocus:function(t,e){s.changeActive(s.selectedHint+t,e)},setFocus:function(t){s.changeActive(t)},menuSize:function(){return s.screenAmount()},length:p.length,close:function(){n.close()},pick:function(){s.pick()},data:o})),n.options.closeOnUnfocus&&(r.on("blur",this.onBlur=function(){R=setTimeout((function(){n.close()}),100)}),r.on("focus",this.onFocus=function(){clearTimeout(R)})),r.on("scroll",this.onScroll=function(){var t=r.getScrollInfo(),e=r.getWrapperElement().getBoundingClientRect();N||(N=r.getScrollInfo());var i=A+N.top-t.top,o=i-(u.pageYOffset||(c.documentElement||c.body).scrollTop);if(C||(o+=f.offsetHeight),o<=e.top||o>=e.bottom)return n.close();f.style.top=i+"px",f.style.left=H+N.left-t.left+"px"}),t.on(f,"dblclick",(function(t){var e=a(f,t.target||t.srcElement);e&&null!=e.hintId&&(s.changeActive(e.hintId),s.pick())})),t.on(f,"click",(function(t){var e=a(f,t.target||t.srcElement);e&&null!=e.hintId&&(s.changeActive(e.hintId),n.options.completeOnSingleClick&&s.pick())})),t.on(f,"mousedown",(function(){setTimeout((function(){r.focus()}),20)}));var L=this.getSelectedHintRange();return 0===L.from&&0===L.to||this.scrollToActive(),t.signal(o,"select",p[this.selectedHint],f.childNodes[this.selectedHint]),!0}function f(t,e){if(!t.somethingSelected())return e;for(var i=[],n=0;n<e.length;n++)e[n].supportsSelection&&i.push(e[n]);return i}function d(t,e,i,n){if(t.async)t(e,n,i);else{var o=t(e,i);o&&o.then?o.then(n):n(o)}}function p(e,i){var n,o=e.getHelpers(i,"hint");if(o.length){var r=s((function(t,e,i){var n=f(t,o);function r(o){if(o==n.length)return e(null);d(n[o],t,i,(function(t){t&&t.list.length>0?e(t):r(o+1)}))}s(r,"run"),r(0)}),"resolved");return r.async=!0,r.supportsSelection=!0,r}return(n=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:n})}:t.hint.anyword?function(e,i){return t.hint.anyword(e,i)}:function(){}}n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,i){var n=e.list[i],o=this;this.cm.operation((function(){n.hint?n.hint(o.cm,e,n):o.cm.replaceRange(l(n),n.from||e.from,n.to||e.to,"complete"),t.signal(e,"pick",n),o.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(r(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),i=this.cm.getLine(e.line);if(e.line!=this.startPos.line||i.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(i.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=o((function(){n.update()})),this.widget&&this.widget.disable()}},update:function(t){if(null!=this.tick){var e=this,i=++this.tick;d(this.options.hint,this.cm,this.options,(function(n){e.tick==i&&e.finishUpdate(n,t)}))}},finishUpdate:function(e,i){this.data&&t.signal(this.data,"update");var n=this.widget&&this.widget.picked||i&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=e,e&&e.list.length&&(n&&1==e.list.length?this.pick(e,0):(this.widget=new u(this,e),t.signal(e,"shown")))}},s(c,"parseOptions"),s(l,"getText"),s(h,"buildKeyMap"),s(a,"getHintElement"),s(u,"Widget"),u.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm.getInputField();t.removeAttribute("aria-activedescendant"),t.removeAttribute("aria-owns");var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(e,n){if(e>=this.data.list.length?e=n?this.data.list.length-1:0:e<0&&(e=n?0:this.data.list.length-1),this.selectedHint!=e){var o=this.hints.childNodes[this.selectedHint];o&&(o.className=o.className.replace(" "+i,""),o.removeAttribute("aria-selected")),(o=this.hints.childNodes[this.selectedHint=e]).className+=" "+i,o.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",o.id),this.scrollToActive(),t.signal(this.data,"select",this.data.list[this.selectedHint],o)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],i=this.hints.childNodes[t.to],n=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-n.offsetTop:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}},s(f,"applicableHelpers"),s(d,"fetchHints"),s(p,"resolveAutoHints"),t.registerHelper("hint","auto",{resolve:p}),t.registerHelper("hint","fromList",(function(e,i){var n,o=e.getCursor(),s=e.getTokenAt(o),r=t.Pos(o.line,s.start),c=o;s.start<o.ch&&/\w/.test(s.string.charAt(o.ch-s.start-1))?n=s.string.substr(0,o.ch-s.start):(n="",r=o);for(var l=[],h=0;h<i.words.length;h++){var a=i.words[h];a.slice(0,n.length)==n&&l.push(a)}if(l.length)return{list:l,from:r,to:c}})),t.commands.autocomplete=t.showHint;var m={hint:t.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};t.defineOption("hintOptions",null)}(n.a.exports);var l=r({__proto__:null,default:c.exports},[c.exports])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[655],{87655:(e,t,n)=>{n.d(t,{S:()=>ft,T:()=>vt,a:()=>ht});var i=Object.defineProperty,s=(e,t)=>i(e,"name",{value:t,configurable:!0});function r(e){return o(e,[])}function o(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return a(e,t);default:return String(e)}}function a(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(l(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:o(t,n)}else if(Array.isArray(e))return c(e,n);return u(e,n)}function l(e){return"function"==typeof e.toJSON}function u(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>2?"["+p(e)+"]":"{ "+n.map((([e,n])=>e+": "+o(n,t))).join(", ")+" }"}function c(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),i=e.length-n,s=[];for(let i=0;i<n;++i)s.push(o(e[i],t));return 1===i?s.push("... 1 more item"):i>1&&s.push(`... ${i} more items`),"["+s.join(", ")+"]"}function p(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}function d(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}let f;var v;function h(e){return 9===e||32===e}function y(e){return e>=48&&e<=57}function m(e){return e>=97&&e<=122||e>=65&&e<=90}function N(e){return m(e)||95===e}function T(e){return m(e)||y(e)||95===e}function I(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),s=1===i.length,r=i.length>1&&i.slice(1).every((e=>0===e.length||h(e.charCodeAt(0)))),o=n.endsWith('\\"""'),a=e.endsWith('"')&&!o,l=e.endsWith("\\"),u=a||l,c=!(null!=t&&t.minimize)&&(!s||e.length>70||u||r||o);let p="";const d=s&&h(e.charCodeAt(0));return(c&&!d||r)&&(p+="\n"),p+=n,(c||u)&&(p+="\n"),'"""'+p+'"""'}function E(e){return`"${e.replace(g,b)}"`}s(r,"inspect"),s(o,"formatValue"),s(a,"formatObjectValue"),s(l,"isJSONable"),s(u,"formatObject"),s(c,"formatArray"),s(p,"getObjectTag"),s(d,"invariant"),(v=f||(f={})).QUERY="QUERY",v.MUTATION="MUTATION",v.SUBSCRIPTION="SUBSCRIPTION",v.FIELD="FIELD",v.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",v.FRAGMENT_SPREAD="FRAGMENT_SPREAD",v.INLINE_FRAGMENT="INLINE_FRAGMENT",v.VARIABLE_DEFINITION="VARIABLE_DEFINITION",v.SCHEMA="SCHEMA",v.SCALAR="SCALAR",v.OBJECT="OBJECT",v.FIELD_DEFINITION="FIELD_DEFINITION",v.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",v.INTERFACE="INTERFACE",v.UNION="UNION",v.ENUM="ENUM",v.ENUM_VALUE="ENUM_VALUE",v.INPUT_OBJECT="INPUT_OBJECT",v.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",s(h,"isWhiteSpace"),s(y,"isDigit$1"),s(m,"isLetter"),s(N,"isNameStart"),s(T,"isNameContinue"),s(I,"printBlockString"),s(E,"printString");const g=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function b(e){return O[e.charCodeAt(0)]}s(b,"escapedReplacer");const O=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function S(e,t){if(!Boolean(e))throw new Error(t)}s(S,"devAssert");const A={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},L=new Set(Object.keys(A));function _(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&L.has(t)}let w;var D;let F;var x;s(_,"isNode"),(D=w||(w={})).QUERY="query",D.MUTATION="mutation",D.SUBSCRIPTION="subscription",(x=F||(F={})).NAME="Name",x.DOCUMENT="Document",x.OPERATION_DEFINITION="OperationDefinition",x.VARIABLE_DEFINITION="VariableDefinition",x.SELECTION_SET="SelectionSet",x.FIELD="Field",x.ARGUMENT="Argument",x.FRAGMENT_SPREAD="FragmentSpread",x.INLINE_FRAGMENT="InlineFragment",x.FRAGMENT_DEFINITION="FragmentDefinition",x.VARIABLE="Variable",x.INT="IntValue",x.FLOAT="FloatValue",x.STRING="StringValue",x.BOOLEAN="BooleanValue",x.NULL="NullValue",x.ENUM="EnumValue",x.LIST="ListValue",x.OBJECT="ObjectValue",x.OBJECT_FIELD="ObjectField",x.DIRECTIVE="Directive",x.NAMED_TYPE="NamedType",x.LIST_TYPE="ListType",x.NON_NULL_TYPE="NonNullType",x.SCHEMA_DEFINITION="SchemaDefinition",x.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",x.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",x.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",x.FIELD_DEFINITION="FieldDefinition",x.INPUT_VALUE_DEFINITION="InputValueDefinition",x.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",x.UNION_TYPE_DEFINITION="UnionTypeDefinition",x.ENUM_TYPE_DEFINITION="EnumTypeDefinition",x.ENUM_VALUE_DEFINITION="EnumValueDefinition",x.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",x.DIRECTIVE_DEFINITION="DirectiveDefinition",x.SCHEMA_EXTENSION="SchemaExtension",x.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",x.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",x.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",x.UNION_TYPE_EXTENSION="UnionTypeExtension",x.ENUM_TYPE_EXTENSION="EnumTypeExtension",x.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";const R=Object.freeze({});function j(e,t,n=A){const i=new Map;for(const e of Object.values(F))i.set(e,U(t,e));let s,o,a,l=Array.isArray(e),u=[e],c=-1,p=[],d=e;const f=[],v=[];do{c++;const e=c===u.length,N=e&&0!==p.length;if(e){if(o=0===v.length?void 0:f[f.length-1],d=a,a=v.pop(),N)if(l){d=d.slice();let e=0;for(const[t,n]of p){const i=t-e;null===n?(d.splice(i,1),e++):d[i]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of p)d[e]=t}c=s.index,u=s.keys,p=s.edits,l=s.inArray,s=s.prev}else if(a){if(o=l?c:u[c],d=a[o],null==d)continue;f.push(o)}let T;if(!Array.isArray(d)){var h,y;_(d)||S(!1,`Invalid AST Node: ${r(d)}.`);const n=e?null===(h=i.get(d.kind))||void 0===h?void 0:h.leave:null===(y=i.get(d.kind))||void 0===y?void 0:y.enter;if(T=null==n?void 0:n.call(t,d,o,a,f,v),T===R)break;if(!1===T){if(!e){f.pop();continue}}else if(void 0!==T&&(p.push([o,T]),!e)){if(!_(T)){f.pop();continue}d=T}}var m;void 0===T&&N&&p.push([o,d]),e?f.pop():(s={inArray:l,index:c,keys:u,edits:p,prev:s},l=Array.isArray(d),u=l?d:null!==(m=n[d.kind])&&void 0!==m?m:[],c=-1,p=[],a&&v.push(a),a=d)}while(void 0!==s);return 0!==p.length?p[p.length-1][1]:e}function U(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function V(e){return j(e,C)}s(j,"visit"),s(U,"getEnterLeaveForKind"),s(V,"print");const C={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>$(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=k("(",$(e.variableDefinitions,", "),")"),n=$([e.operation,$([e.name,t]),$(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i})=>e+": "+t+k(" = ",n)+k(" ",$(i," "))},SelectionSet:{leave:({selections:e})=>M(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:s}){const r=k("",e,": ")+t;let o=r+k("(",$(n,", "),")");return o.length>80&&(o=r+k("(\n",B($(n,"\n")),"\n)")),$([o,$(i," "),s]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+k(" ",$(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>$(["...",k("on ",e),$(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:s})=>`fragment ${e}${k("(",$(n,", "),")")} on ${t} ${k("",$(i," ")," ")}`+s},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?I(e):E(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+$(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+$(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+k("(",$(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>k("",e,"\n")+$(["schema",$(t," "),M(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>k("",e,"\n")+$(["scalar",t,$(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:s})=>k("",e,"\n")+$(["type",t,k("implements ",$(n," & ")),$(i," "),M(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:s})=>k("",e,"\n")+t+(G(n)?k("(\n",B($(n,"\n")),"\n)"):k("(",$(n,", "),")"))+": "+i+k(" ",$(s," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:s})=>k("",e,"\n")+$([t+": "+n,k("= ",i),$(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:s})=>k("",e,"\n")+$(["interface",t,k("implements ",$(n," & ")),$(i," "),M(s)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>k("",e,"\n")+$(["union",t,$(n," "),k("= ",$(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>k("",e,"\n")+$(["enum",t,$(n," "),M(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>k("",e,"\n")+$([t,$(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>k("",e,"\n")+$(["input",t,$(n," "),M(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:s})=>k("",e,"\n")+"directive @"+t+(G(n)?k("(\n",B($(n,"\n")),"\n)"):k("(",$(n,", "),")"))+(i?" repeatable":"")+" on "+$(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>$(["extend schema",$(e," "),M(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>$(["extend scalar",e,$(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>$(["extend type",e,k("implements ",$(t," & ")),$(n," "),M(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>$(["extend interface",e,k("implements ",$(t," & ")),$(n," "),M(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>$(["extend union",e,$(t," "),k("= ",$(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>$(["extend enum",e,$(t," "),M(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>$(["extend input",e,$(t," "),M(n)]," ")}};function $(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function M(e){return k("{\n",B($(e,"\n")),"\n}")}function k(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function B(e){return k(" ",e.replace(/\n/g,"\n "))}function G(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}function P(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function J(e){return"object"==typeof e&&null!==e}function Q(e,t){const[n,i]=t?[e,t]:[void 0,e];let s=" Did you mean ";n&&(s+=n+" ");const r=i.map((e=>`"${e}"`));switch(r.length){case 0:return"";case 1:return s+r[0]+"?";case 2:return s+r[0]+" or "+r[1]+"?"}const o=r.slice(0,5),a=o.pop();return s+o.join(", ")+", or "+a+"?"}function Y(e){return e}s($,"join"),s(M,"block"),s(k,"wrap"),s(B,"indent"),s(G,"hasMultilineItems"),s(P,"isIterableObject"),s(J,"isObjectLike"),s(Q,"didYouMean"),s(Y,"identityFunc");const z=s((function(e,t){return e instanceof t}),"instanceOf");function q(e,t){const n=Object.create(null);for(const i of e)n[t(i)]=i;return n}function H(e,t,n){const i=Object.create(null);for(const s of e)i[t(s)]=n(s);return i}function X(e,t){const n=Object.create(null);for(const i of Object.keys(e))n[i]=t(e[i],i);return n}function W(e,t){let n=0,i=0;for(;n<e.length&&i<t.length;){let s=e.charCodeAt(n),r=t.charCodeAt(i);if(Z(s)&&Z(r)){let o=0;do{++n,o=10*o+s-K,s=e.charCodeAt(n)}while(Z(s)&&o>0);let a=0;do{++i,a=10*a+r-K,r=t.charCodeAt(i)}while(Z(r)&&a>0);if(o<a)return-1;if(o>a)return 1}else{if(s<r)return-1;if(s>r)return 1;++n,++i}}return e.length-t.length}s(q,"keyMap"),s(H,"keyValMap"),s(X,"mapValue"),s(W,"naturalCompare");const K=48;function Z(e){return!isNaN(e)&&K<=e&&e<=57}function ee(e,t){const n=Object.create(null),i=new te(e),s=Math.floor(.4*e.length)+1;for(const e of t){const t=i.measure(e,s);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const i=n[e]-n[t];return 0!==i?i:W(e,t)}))}s(Z,"isDigit"),s(ee,"suggestionList");class te{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=ne(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let i=ne(n),s=this._inputArray;if(i.length<s.length){const e=i;i=s,s=e}const r=i.length,o=s.length;if(r-o>t)return;const a=this._rows;for(let e=0;e<=o;e++)a[0][e]=e;for(let e=1;e<=r;e++){const n=a[(e-1)%3],r=a[e%3];let l=r[0]=e;for(let t=1;t<=o;t++){const o=i[e-1]===s[t-1]?0:1;let u=Math.min(n[t]+1,r[t-1]+1,n[t-1]+o);if(e>1&&t>1&&i[e-1]===s[t-2]&&i[e-2]===s[t-1]){const n=a[(e-2)%3][t-2];u=Math.min(u,n+1)}u<l&&(l=u),r[t]=u}if(l>t)return}const l=a[r%3][o];return l<=t?l:void 0}}function ne(e){const t=e.length,n=new Array(t);for(let i=0;i<t;++i)n[i]=e.charCodeAt(i);return n}function ie(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,i]of Object.entries(e))t[n]=i;return t}s(te,"LexicalDistance"),s(ne,"stringToArray"),s(ie,"toObjMap");const se=/\r\n|[\n\r]/g;function re(e,t){let n=0,i=1;for(const s of e.body.matchAll(se)){if("number"==typeof s.index||d(!1),s.index>=t)break;n=s.index+s[0].length,i+=1}return{line:i,column:t+1-n}}function oe(e){return ae(e.source,re(e.source,e.start))}function ae(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,s=t.line-1,r=e.locationOffset.line-1,o=t.line+r,a=1===t.line?n:0,l=t.column+a,u=`${e.name}:${o}:${l}\n`,c=i.split(/\r\n|[\n\r]/g),p=c[s];if(p.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return u+le([[`${o} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+le([[o-1+" |",c[s-1]],[`${o} |`,p],["|","^".padStart(l)],[`${o+1} |`,c[s+1]]])}function le(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}function ue(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}s(re,"getLocation"),s(oe,"printLocation"),s(ae,"printSourceLocation"),s(le,"printPrefixedLines"),s(ue,"toNormalizedOptions");class ce extends Error{constructor(e,...t){var n,i,s;const{nodes:r,source:o,positions:a,path:l,originalError:u,extensions:c}=ue(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=pe(Array.isArray(r)?r:r?[r]:void 0);const p=pe(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=o?o:null==p||null===(i=p[0])||void 0===i?void 0:i.source,this.positions=null!=a?a:null==p?void 0:p.map((e=>e.start)),this.locations=a&&o?a.map((e=>re(o,e))):null==p?void 0:p.map((e=>re(e.source,e.start)));const d=J(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!==(s=null!=c?c:d)&&void 0!==s?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,ce):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+oe(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+ae(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function pe(e){return void 0===e||0===e.length?void 0:e}function de(e,t){switch(e.kind){case F.NULL:return null;case F.INT:return parseInt(e.value,10);case F.FLOAT:return parseFloat(e.value);case F.STRING:case F.ENUM:case F.BOOLEAN:return e.value;case F.LIST:return e.values.map((e=>de(e,t)));case F.OBJECT:return H(e.fields,(e=>e.name.value),(e=>de(e.value,t)));case F.VARIABLE:return null==t?void 0:t[e.name.value]}}function fe(e){if(null!=e||S(!1,"Must provide name."),"string"==typeof e||S(!1,"Expected name to be a string."),0===e.length)throw new ce("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!T(e.charCodeAt(t)))throw new ce(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!N(e.charCodeAt(0)))throw new ce(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function ve(e){if("true"===e||"false"===e||"null"===e)throw new ce(`Enum values cannot be named: ${e}`);return fe(e)}function he(e){return ye(e)||me(e)||Ne(e)||Te(e)||Ie(e)||Ee(e)||ge(e)||be(e)}function ye(e){return z(e,Fe)}function me(e){return z(e,xe)}function Ne(e){return z(e,Me)}function Te(e){return z(e,ke)}function Ie(e){return z(e,Ge)}function Ee(e){return z(e,Qe)}function ge(e){return z(e,Ae)}function be(e){return z(e,Le)}function Oe(e){return ye(e)||Ie(e)}function Se(e){return Ne(e)||Te(e)}s(ce,"GraphQLError"),s(pe,"undefinedIfEmpty"),s(de,"valueFromASTUntyped"),s(fe,"assertName"),s(ve,"assertEnumValueName"),s(he,"isType"),s(ye,"isScalarType"),s(me,"isObjectType"),s(Ne,"isInterfaceType"),s(Te,"isUnionType"),s(Ie,"isEnumType"),s(Ee,"isInputObjectType"),s(ge,"isListType"),s(be,"isNonNullType"),s(Oe,"isLeafType"),s(Se,"isAbstractType");class Ae{constructor(e){he(e)||S(!1,`Expected ${r(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}s(Ae,"GraphQLList");class Le{constructor(e){_e(e)||S(!1,`Expected ${r(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function _e(e){return he(e)&&!be(e)}function we(e){return"function"==typeof e?e():e}function De(e){return"function"==typeof e?e():e}s(Le,"GraphQLNonNull"),s(_e,"isNullableType"),s(we,"resolveReadonlyArrayThunk"),s(De,"resolveObjMapThunk");class Fe{constructor(e){var t,n,i,s;const o=null!==(t=e.parseValue)&&void 0!==t?t:Y;this.name=fe(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:Y,this.parseValue=o,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>o(de(e,t)),this.extensions=ie(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(s=e.extensionASTNodes)&&void 0!==s?s:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||S(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${r(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||S(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||S(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}s(Fe,"GraphQLScalarType");class xe{constructor(e){var t;this.name=fe(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=ie(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>je(e),this._interfaces=()=>Re(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||S(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${r(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ce(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Re(e){var t;const n=we(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||S(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function je(e){const t=De(e.fields);return Ve(t)||S(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),X(t,((t,n)=>{var i;Ve(t)||S(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||S(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${r(t.resolve)}.`);const s=null!==(i=t.args)&&void 0!==i?i:{};return Ve(s)||S(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:fe(n),description:t.description,type:t.type,args:Ue(s),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:ie(t.extensions),astNode:t.astNode}}))}function Ue(e){return Object.entries(e).map((([e,t])=>({name:fe(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:ie(t.extensions),astNode:t.astNode})))}function Ve(e){return J(e)&&!Array.isArray(e)}function Ce(e){return X(e,(e=>({description:e.description,type:e.type,args:$e(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function $e(e){return H(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}s(xe,"GraphQLObjectType"),s(Re,"defineInterfaces"),s(je,"defineFieldMap"),s(Ue,"defineArguments"),s(Ve,"isPlainObj"),s(Ce,"fieldsToFieldsConfig"),s($e,"argsToArgsConfig");class Me{constructor(e){var t;this.name=fe(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=ie(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=je.bind(void 0,e),this._interfaces=Re.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||S(!1,`${this.name} must provide "resolveType" as a function, but got: ${r(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ce(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}s(Me,"GraphQLInterfaceType");class ke{constructor(e){var t;this.name=fe(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=ie(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Be.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||S(!1,`${this.name} must provide "resolveType" as a function, but got: ${r(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Be(e){const t=we(e.types);return Array.isArray(t)||S(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}s(ke,"GraphQLUnionType"),s(Be,"defineTypes");class Ge{constructor(e){var t;this.name=fe(e.name),this.description=e.description,this.extensions=ie(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=Je(this.name,e.values),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=q(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new ce(`Enum "${this.name}" cannot represent value: ${r(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=r(e);throw new ce(`Enum "${this.name}" cannot represent non-string value: ${t}.`+Pe(this,t))}const t=this.getValue(e);if(null==t)throw new ce(`Value "${e}" does not exist in "${this.name}" enum.`+Pe(this,e));return t.value}parseLiteral(e,t){if(e.kind!==F.ENUM){const t=V(e);throw new ce(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+Pe(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=V(e);throw new ce(`Value "${t}" does not exist in "${this.name}" enum.`+Pe(this,t),{nodes:e})}return n.value}toConfig(){const e=H(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Pe(e,t){return Q("the enum value",ee(t,e.getValues().map((e=>e.name))))}function Je(e,t){return Ve(t)||S(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map((([t,n])=>(Ve(n)||S(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${r(n)}.`),{name:ve(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:ie(n.extensions),astNode:n.astNode})))}s(Ge,"GraphQLEnumType"),s(Pe,"didYouMeanEnumValue"),s(Je,"defineEnumValues");class Qe{constructor(e){var t;this.name=fe(e.name),this.description=e.description,this.extensions=ie(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Ye.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=X(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ye(e){const t=De(e.fields);return Ve(t)||S(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),X(t,((t,n)=>(!("resolve"in t)||S(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:fe(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:ie(t.extensions),astNode:t.astNode})))}s(Qe,"GraphQLInputObjectType"),s(Ye,"defineInputFieldMap");const ze=2147483647,qe=-2147483648,He=new Fe({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=et(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new ce(`Int cannot represent non-integer value: ${r(t)}`);if(n>ze||n<qe)throw new ce("Int cannot represent non 32-bit signed integer value: "+r(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new ce(`Int cannot represent non-integer value: ${r(e)}`);if(e>ze||e<qe)throw new ce(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==F.INT)throw new ce(`Int cannot represent non-integer value: ${V(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>ze||t<qe)throw new ce(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),Xe=new Fe({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=et(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new ce(`Float cannot represent non numeric value: ${r(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new ce(`Float cannot represent non numeric value: ${r(e)}`);return e},parseLiteral(e){if(e.kind!==F.FLOAT&&e.kind!==F.INT)throw new ce(`Float cannot represent non numeric value: ${V(e)}`,e);return parseFloat(e.value)}}),We=new Fe({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=et(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new ce(`String cannot represent value: ${r(e)}`)},parseValue(e){if("string"!=typeof e)throw new ce(`String cannot represent a non string value: ${r(e)}`);return e},parseLiteral(e){if(e.kind!==F.STRING)throw new ce(`String cannot represent a non string value: ${V(e)}`,{nodes:e});return e.value}}),Ke=new Fe({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=et(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new ce(`Boolean cannot represent a non boolean value: ${r(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new ce(`Boolean cannot represent a non boolean value: ${r(e)}`);return e},parseLiteral(e){if(e.kind!==F.BOOLEAN)throw new ce(`Boolean cannot represent a non boolean value: ${V(e)}`,{nodes:e});return e.value}}),Ze=new Fe({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=et(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new ce(`ID cannot represent value: ${r(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new ce(`ID cannot represent value: ${r(e)}`)},parseLiteral(e){if(e.kind!==F.STRING&&e.kind!==F.INT)throw new ce("ID cannot represent a non-string and non-integer value: "+V(e),{nodes:e});return e.value}});function et(e){if(J(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!J(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function tt(e,t){if(be(t)){const n=tt(e,t.ofType);return(null==n?void 0:n.kind)===F.NULL?null:n}if(null===e)return{kind:F.NULL};if(void 0===e)return null;if(ge(t)){const n=t.ofType;if(P(e)){const t=[];for(const i of e){const e=tt(i,n);null!=e&&t.push(e)}return{kind:F.LIST,values:t}}return tt(e,n)}if(Ee(t)){if(!J(e))return null;const n=[];for(const i of Object.values(t.getFields())){const t=tt(e[i.name],i.type);t&&n.push({kind:F.OBJECT_FIELD,name:{kind:F.NAME,value:i.name},value:t})}return{kind:F.OBJECT,fields:n}}if(Oe(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:F.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return nt.test(e)?{kind:F.INT,value:e}:{kind:F.FLOAT,value:e}}if("string"==typeof n)return Ie(t)?{kind:F.ENUM,value:n}:t===Ze&&nt.test(n)?{kind:F.INT,value:n}:{kind:F.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${r(n)}.`)}d(!1,"Unexpected input type: "+r(t))}Object.freeze([We,He,Xe,Ke,Ze]),s(et,"serializeObject"),s(tt,"astFromValue");const nt=/^-?(?:0|[1-9][0-9]*)$/,it=new xe({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:We,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Le(new Ae(new Le(ot))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new Le(ot),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:ot,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:ot,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Le(new Ae(new Le(st))),resolve:e=>e.getDirectives()}})}),st=new xe({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new Le(We),resolve:e=>e.name},description:{type:We,resolve:e=>e.description},isRepeatable:{type:new Le(Ke),resolve:e=>e.isRepeatable},locations:{type:new Le(new Ae(new Le(rt))),resolve:e=>e.locations},args:{type:new Le(new Ae(new Le(lt))),args:{includeDeprecated:{type:Ke,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})}),rt=new Ge({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:f.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:f.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:f.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:f.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:f.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:f.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:f.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:f.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:f.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:f.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:f.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:f.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:f.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:f.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:f.UNION,description:"Location adjacent to a union definition."},ENUM:{value:f.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:f.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:f.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:f.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),ot=new xe({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Le(dt),resolve:e=>ye(e)?ct.SCALAR:me(e)?ct.OBJECT:Ne(e)?ct.INTERFACE:Te(e)?ct.UNION:Ie(e)?ct.ENUM:Ee(e)?ct.INPUT_OBJECT:ge(e)?ct.LIST:be(e)?ct.NON_NULL:void d(!1,`Unexpected type: "${r(e)}".`)},name:{type:We,resolve:e=>"name"in e?e.name:void 0},description:{type:We,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:We,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Ae(new Le(at)),args:{includeDeprecated:{type:Ke,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(me(e)||Ne(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new Ae(new Le(ot)),resolve(e){if(me(e)||Ne(e))return e.getInterfaces()}},possibleTypes:{type:new Ae(new Le(ot)),resolve(e,t,n,{schema:i}){if(Se(e))return i.getPossibleTypes(e)}},enumValues:{type:new Ae(new Le(ut)),args:{includeDeprecated:{type:Ke,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Ie(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new Ae(new Le(lt)),args:{includeDeprecated:{type:Ke,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Ee(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:ot,resolve:e=>"ofType"in e?e.ofType:void 0}})}),at=new xe({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Le(We),resolve:e=>e.name},description:{type:We,resolve:e=>e.description},args:{type:new Le(new Ae(new Le(lt))),args:{includeDeprecated:{type:Ke,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new Le(ot),resolve:e=>e.type},isDeprecated:{type:new Le(Ke),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:We,resolve:e=>e.deprecationReason}})}),lt=new xe({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Le(We),resolve:e=>e.name},description:{type:We,resolve:e=>e.description},type:{type:new Le(ot),resolve:e=>e.type},defaultValue:{type:We,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,i=tt(n,t);return i?V(i):null}},isDeprecated:{type:new Le(Ke),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:We,resolve:e=>e.deprecationReason}})}),ut=new xe({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Le(We),resolve:e=>e.name},description:{type:We,resolve:e=>e.description},isDeprecated:{type:new Le(Ke),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:We,resolve:e=>e.deprecationReason}})});let ct;var pt;(pt=ct||(ct={})).SCALAR="SCALAR",pt.OBJECT="OBJECT",pt.INTERFACE="INTERFACE",pt.UNION="UNION",pt.ENUM="ENUM",pt.INPUT_OBJECT="INPUT_OBJECT",pt.LIST="LIST",pt.NON_NULL="NON_NULL";const dt=new Ge({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ct.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ct.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ct.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ct.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ct.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ct.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ct.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ct.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),ft={name:"__schema",type:new Le(it),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:i})=>i,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},vt={name:"__type",type:ot,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Le(We),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:i})=>i.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},ht={name:"__typename",type:new Le(We),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:i})=>i.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Object.freeze([it,st,rt,ot,at,lt,ut,dt])}}]);
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[655],{87655:(e,t,n)=>{n.d(t,{S:()=>mt,T:()=>Nt,a:()=>Tt});var i=Object.defineProperty,s=(e,t)=>i(e,"name",{value:t,configurable:!0});const r=10,o=2;function a(e){return l(e,[])}function l(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return u(e,t);default:return String(e)}}function u(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(c(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:l(t,n)}else if(Array.isArray(e))return d(e,n);return p(e,n)}function c(e){return"function"==typeof e.toJSON}function p(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>o?"["+f(e)+"]":"{ "+n.map((([e,n])=>e+": "+l(n,t))).join(", ")+" }"}function d(e,t){if(0===e.length)return"[]";if(t.length>o)return"[Array]";const n=Math.min(r,e.length),i=e.length-n,s=[];for(let i=0;i<n;++i)s.push(l(e[i],t));return 1===i?s.push("... 1 more item"):i>1&&s.push(`... ${i} more items`),"["+s.join(", ")+"]"}function f(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}function v(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}let h;var y;function m(e){return 9===e||32===e}function N(e){return e>=48&&e<=57}function T(e){return e>=97&&e<=122||e>=65&&e<=90}function I(e){return T(e)||95===e}function E(e){return T(e)||N(e)||95===e}function g(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),s=1===i.length,r=i.length>1&&i.slice(1).every((e=>0===e.length||m(e.charCodeAt(0)))),o=n.endsWith('\\"""'),a=e.endsWith('"')&&!o,l=e.endsWith("\\"),u=a||l,c=!(null!=t&&t.minimize)&&(!s||e.length>70||u||r||o);let p="";const d=s&&m(e.charCodeAt(0));return(c&&!d||r)&&(p+="\n"),p+=n,(c||u)&&(p+="\n"),'"""'+p+'"""'}function b(e){return`"${e.replace(O,S)}"`}s(a,"inspect"),s(l,"formatValue"),s(u,"formatObjectValue"),s(c,"isJSONable"),s(p,"formatObject"),s(d,"formatArray"),s(f,"getObjectTag"),s(v,"invariant"),(y=h||(h={})).QUERY="QUERY",y.MUTATION="MUTATION",y.SUBSCRIPTION="SUBSCRIPTION",y.FIELD="FIELD",y.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",y.FRAGMENT_SPREAD="FRAGMENT_SPREAD",y.INLINE_FRAGMENT="INLINE_FRAGMENT",y.VARIABLE_DEFINITION="VARIABLE_DEFINITION",y.SCHEMA="SCHEMA",y.SCALAR="SCALAR",y.OBJECT="OBJECT",y.FIELD_DEFINITION="FIELD_DEFINITION",y.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",y.INTERFACE="INTERFACE",y.UNION="UNION",y.ENUM="ENUM",y.ENUM_VALUE="ENUM_VALUE",y.INPUT_OBJECT="INPUT_OBJECT",y.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",s(m,"isWhiteSpace"),s(N,"isDigit$1"),s(T,"isLetter"),s(I,"isNameStart"),s(E,"isNameContinue"),s(g,"printBlockString"),s(b,"printString");const O=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function S(e){return A[e.charCodeAt(0)]}s(S,"escapedReplacer");const A=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function L(e,t){if(!Boolean(e))throw new Error(t)}s(L,"devAssert");const _={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},w=new Set(Object.keys(_));function D(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&w.has(t)}let F;var x;let R;var j;s(D,"isNode"),(x=F||(F={})).QUERY="query",x.MUTATION="mutation",x.SUBSCRIPTION="subscription",(j=R||(R={})).NAME="Name",j.DOCUMENT="Document",j.OPERATION_DEFINITION="OperationDefinition",j.VARIABLE_DEFINITION="VariableDefinition",j.SELECTION_SET="SelectionSet",j.FIELD="Field",j.ARGUMENT="Argument",j.FRAGMENT_SPREAD="FragmentSpread",j.INLINE_FRAGMENT="InlineFragment",j.FRAGMENT_DEFINITION="FragmentDefinition",j.VARIABLE="Variable",j.INT="IntValue",j.FLOAT="FloatValue",j.STRING="StringValue",j.BOOLEAN="BooleanValue",j.NULL="NullValue",j.ENUM="EnumValue",j.LIST="ListValue",j.OBJECT="ObjectValue",j.OBJECT_FIELD="ObjectField",j.DIRECTIVE="Directive",j.NAMED_TYPE="NamedType",j.LIST_TYPE="ListType",j.NON_NULL_TYPE="NonNullType",j.SCHEMA_DEFINITION="SchemaDefinition",j.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",j.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",j.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",j.FIELD_DEFINITION="FieldDefinition",j.INPUT_VALUE_DEFINITION="InputValueDefinition",j.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",j.UNION_TYPE_DEFINITION="UnionTypeDefinition",j.ENUM_TYPE_DEFINITION="EnumTypeDefinition",j.ENUM_VALUE_DEFINITION="EnumValueDefinition",j.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",j.DIRECTIVE_DEFINITION="DirectiveDefinition",j.SCHEMA_EXTENSION="SchemaExtension",j.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",j.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",j.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",j.UNION_TYPE_EXTENSION="UnionTypeExtension",j.ENUM_TYPE_EXTENSION="EnumTypeExtension",j.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";const U=Object.freeze({});function V(e,t,n=_){const i=new Map;for(const e of Object.values(R))i.set(e,C(t,e));let s,r,o,l=Array.isArray(e),u=[e],c=-1,p=[],d=e;const f=[],v=[];do{c++;const e=c===u.length,N=e&&0!==p.length;if(e){if(r=0===v.length?void 0:f[f.length-1],d=o,o=v.pop(),N)if(l){d=d.slice();let e=0;for(const[t,n]of p){const i=t-e;null===n?(d.splice(i,1),e++):d[i]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of p)d[e]=t}c=s.index,u=s.keys,p=s.edits,l=s.inArray,s=s.prev}else if(o){if(r=l?c:u[c],d=o[r],null==d)continue;f.push(r)}let T;if(!Array.isArray(d)){var h,y;D(d)||L(!1,`Invalid AST Node: ${a(d)}.`);const n=e?null===(h=i.get(d.kind))||void 0===h?void 0:h.leave:null===(y=i.get(d.kind))||void 0===y?void 0:y.enter;if(T=null==n?void 0:n.call(t,d,r,o,f,v),T===U)break;if(!1===T){if(!e){f.pop();continue}}else if(void 0!==T&&(p.push([r,T]),!e)){if(!D(T)){f.pop();continue}d=T}}var m;void 0===T&&N&&p.push([r,d]),e?f.pop():(s={inArray:l,index:c,keys:u,edits:p,prev:s},l=Array.isArray(d),u=l?d:null!==(m=n[d.kind])&&void 0!==m?m:[],c=-1,p=[],o&&v.push(o),o=d)}while(void 0!==s);return 0!==p.length?p[p.length-1][1]:e}function C(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function $(e){return V(e,M)}s(V,"visit"),s(C,"getEnterLeaveForKind"),s($,"print");const M={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>k(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=G("(",k(e.variableDefinitions,", "),")"),n=k([e.operation,k([e.name,t]),k(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i})=>e+": "+t+G(" = ",n)+G(" ",k(i," "))},SelectionSet:{leave:({selections:e})=>B(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:s}){const r=G("",e,": ")+t;let o=r+G("(",k(n,", "),")");return o.length>80&&(o=r+G("(\n",P(k(n,"\n")),"\n)")),k([o,k(i," "),s]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+G(" ",k(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>k(["...",G("on ",e),k(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:s})=>`fragment ${e}${G("(",k(n,", "),")")} on ${t} ${G("",k(i," ")," ")}`+s},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?g(e):b(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+k(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+k(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+G("(",k(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>G("",e,"\n")+k(["schema",k(t," "),B(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>G("",e,"\n")+k(["scalar",t,k(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:s})=>G("",e,"\n")+k(["type",t,G("implements ",k(n," & ")),k(i," "),B(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:s})=>G("",e,"\n")+t+(J(n)?G("(\n",P(k(n,"\n")),"\n)"):G("(",k(n,", "),")"))+": "+i+G(" ",k(s," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:s})=>G("",e,"\n")+k([t+": "+n,G("= ",i),k(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:s})=>G("",e,"\n")+k(["interface",t,G("implements ",k(n," & ")),k(i," "),B(s)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>G("",e,"\n")+k(["union",t,k(n," "),G("= ",k(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>G("",e,"\n")+k(["enum",t,k(n," "),B(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>G("",e,"\n")+k([t,k(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>G("",e,"\n")+k(["input",t,k(n," "),B(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:s})=>G("",e,"\n")+"directive @"+t+(J(n)?G("(\n",P(k(n,"\n")),"\n)"):G("(",k(n,", "),")"))+(i?" repeatable":"")+" on "+k(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>k(["extend schema",k(e," "),B(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>k(["extend scalar",e,k(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>k(["extend type",e,G("implements ",k(t," & ")),k(n," "),B(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>k(["extend interface",e,G("implements ",k(t," & ")),k(n," "),B(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>k(["extend union",e,k(t," "),G("= ",k(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>k(["extend enum",e,k(t," "),B(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>k(["extend input",e,k(t," "),B(n)]," ")}};function k(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function B(e){return G("{\n",P(k(e,"\n")),"\n}")}function G(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function P(e){return G(" ",e.replace(/\n/g,"\n "))}function J(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}function Q(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function Y(e){return"object"==typeof e&&null!==e}s(k,"join"),s(B,"block"),s(G,"wrap"),s(P,"indent"),s(J,"hasMultilineItems"),s(Q,"isIterableObject"),s(Y,"isObjectLike");const z=5;function q(e,t){const[n,i]=t?[e,t]:[void 0,e];let s=" Did you mean ";n&&(s+=n+" ");const r=i.map((e=>`"${e}"`));switch(r.length){case 0:return"";case 1:return s+r[0]+"?";case 2:return s+r[0]+" or "+r[1]+"?"}const o=r.slice(0,z),a=o.pop();return s+o.join(", ")+", or "+a+"?"}function H(e){return e}s(q,"didYouMean"),s(H,"identityFunc");const X=s((function(e,t){return e instanceof t}),"instanceOf");function W(e,t){const n=Object.create(null);for(const i of e)n[t(i)]=i;return n}function K(e,t,n){const i=Object.create(null);for(const s of e)i[t(s)]=n(s);return i}function Z(e,t){const n=Object.create(null);for(const i of Object.keys(e))n[i]=t(e[i],i);return n}function ee(e,t){let n=0,i=0;for(;n<e.length&&i<t.length;){let s=e.charCodeAt(n),r=t.charCodeAt(i);if(ie(s)&&ie(r)){let o=0;do{++n,o=10*o+s-te,s=e.charCodeAt(n)}while(ie(s)&&o>0);let a=0;do{++i,a=10*a+r-te,r=t.charCodeAt(i)}while(ie(r)&&a>0);if(o<a)return-1;if(o>a)return 1}else{if(s<r)return-1;if(s>r)return 1;++n,++i}}return e.length-t.length}s(W,"keyMap"),s(K,"keyValMap"),s(Z,"mapValue"),s(ee,"naturalCompare");const te=48,ne=57;function ie(e){return!isNaN(e)&&te<=e&&e<=ne}function se(e,t){const n=Object.create(null),i=new re(e),s=Math.floor(.4*e.length)+1;for(const e of t){const t=i.measure(e,s);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const i=n[e]-n[t];return 0!==i?i:ee(e,t)}))}s(ie,"isDigit"),s(se,"suggestionList");class re{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=oe(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let i=oe(n),s=this._inputArray;if(i.length<s.length){const e=i;i=s,s=e}const r=i.length,o=s.length;if(r-o>t)return;const a=this._rows;for(let e=0;e<=o;e++)a[0][e]=e;for(let e=1;e<=r;e++){const n=a[(e-1)%3],r=a[e%3];let l=r[0]=e;for(let t=1;t<=o;t++){const o=i[e-1]===s[t-1]?0:1;let u=Math.min(n[t]+1,r[t-1]+1,n[t-1]+o);if(e>1&&t>1&&i[e-1]===s[t-2]&&i[e-2]===s[t-1]){const n=a[(e-2)%3][t-2];u=Math.min(u,n+1)}u<l&&(l=u),r[t]=u}if(l>t)return}const l=a[r%3][o];return l<=t?l:void 0}}function oe(e){const t=e.length,n=new Array(t);for(let i=0;i<t;++i)n[i]=e.charCodeAt(i);return n}function ae(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,i]of Object.entries(e))t[n]=i;return t}s(re,"LexicalDistance"),s(oe,"stringToArray"),s(ae,"toObjMap");const le=/\r\n|[\n\r]/g;function ue(e,t){let n=0,i=1;for(const s of e.body.matchAll(le)){if("number"==typeof s.index||v(!1),s.index>=t)break;n=s.index+s[0].length,i+=1}return{line:i,column:t+1-n}}function ce(e){return pe(e.source,ue(e.source,e.start))}function pe(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,s=t.line-1,r=e.locationOffset.line-1,o=t.line+r,a=1===t.line?n:0,l=t.column+a,u=`${e.name}:${o}:${l}\n`,c=i.split(/\r\n|[\n\r]/g),p=c[s];if(p.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return u+de([[`${o} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+de([[o-1+" |",c[s-1]],[`${o} |`,p],["|","^".padStart(l)],[`${o+1} |`,c[s+1]]])}function de(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}function fe(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}s(ue,"getLocation"),s(ce,"printLocation"),s(pe,"printSourceLocation"),s(de,"printPrefixedLines"),s(fe,"toNormalizedOptions");class ve extends Error{constructor(e,...t){var n,i,s;const{nodes:r,source:o,positions:a,path:l,originalError:u,extensions:c}=fe(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=he(Array.isArray(r)?r:r?[r]:void 0);const p=he(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=o?o:null==p||null===(i=p[0])||void 0===i?void 0:i.source,this.positions=null!=a?a:null==p?void 0:p.map((e=>e.start)),this.locations=a&&o?a.map((e=>ue(o,e))):null==p?void 0:p.map((e=>ue(e.source,e.start)));const d=Y(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!==(s=null!=c?c:d)&&void 0!==s?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,ve):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+ce(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+pe(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function he(e){return void 0===e||0===e.length?void 0:e}function ye(e,t){switch(e.kind){case R.NULL:return null;case R.INT:return parseInt(e.value,10);case R.FLOAT:return parseFloat(e.value);case R.STRING:case R.ENUM:case R.BOOLEAN:return e.value;case R.LIST:return e.values.map((e=>ye(e,t)));case R.OBJECT:return K(e.fields,(e=>e.name.value),(e=>ye(e.value,t)));case R.VARIABLE:return null==t?void 0:t[e.name.value]}}function me(e){if(null!=e||L(!1,"Must provide name."),"string"==typeof e||L(!1,"Expected name to be a string."),0===e.length)throw new ve("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!E(e.charCodeAt(t)))throw new ve(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!I(e.charCodeAt(0)))throw new ve(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function Ne(e){if("true"===e||"false"===e||"null"===e)throw new ve(`Enum values cannot be named: ${e}`);return me(e)}function Te(e){return Ie(e)||Ee(e)||ge(e)||be(e)||Oe(e)||Se(e)||Ae(e)||Le(e)}function Ie(e){return X(e,Ue)}function Ee(e){return X(e,Ve)}function ge(e){return X(e,Pe)}function be(e){return X(e,Je)}function Oe(e){return X(e,Ye)}function Se(e){return X(e,He)}function Ae(e){return X(e,De)}function Le(e){return X(e,Fe)}function _e(e){return Ie(e)||Oe(e)}function we(e){return ge(e)||be(e)}s(ve,"GraphQLError"),s(he,"undefinedIfEmpty"),s(ye,"valueFromASTUntyped"),s(me,"assertName"),s(Ne,"assertEnumValueName"),s(Te,"isType"),s(Ie,"isScalarType"),s(Ee,"isObjectType"),s(ge,"isInterfaceType"),s(be,"isUnionType"),s(Oe,"isEnumType"),s(Se,"isInputObjectType"),s(Ae,"isListType"),s(Le,"isNonNullType"),s(_e,"isLeafType"),s(we,"isAbstractType");class De{constructor(e){Te(e)||L(!1,`Expected ${a(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}s(De,"GraphQLList");class Fe{constructor(e){xe(e)||L(!1,`Expected ${a(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function xe(e){return Te(e)&&!Le(e)}function Re(e){return"function"==typeof e?e():e}function je(e){return"function"==typeof e?e():e}s(Fe,"GraphQLNonNull"),s(xe,"isNullableType"),s(Re,"resolveReadonlyArrayThunk"),s(je,"resolveObjMapThunk");class Ue{constructor(e){var t,n,i,s;const r=null!==(t=e.parseValue)&&void 0!==t?t:H;this.name=me(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:H,this.parseValue=r,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>r(ye(e,t)),this.extensions=ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(s=e.extensionASTNodes)&&void 0!==s?s:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||L(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${a(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||L(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||L(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}s(Ue,"GraphQLScalarType");class Ve{constructor(e){var t;this.name=me(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>$e(e),this._interfaces=()=>Ce(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||L(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${a(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Be(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ce(e){var t;const n=Re(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||L(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function $e(e){const t=je(e.fields);return ke(t)||L(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Z(t,((t,n)=>{var i;ke(t)||L(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||L(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${a(t.resolve)}.`);const s=null!==(i=t.args)&&void 0!==i?i:{};return ke(s)||L(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:me(n),description:t.description,type:t.type,args:Me(s),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:ae(t.extensions),astNode:t.astNode}}))}function Me(e){return Object.entries(e).map((([e,t])=>({name:me(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:ae(t.extensions),astNode:t.astNode})))}function ke(e){return Y(e)&&!Array.isArray(e)}function Be(e){return Z(e,(e=>({description:e.description,type:e.type,args:Ge(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Ge(e){return K(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}s(Ve,"GraphQLObjectType"),s(Ce,"defineInterfaces"),s($e,"defineFieldMap"),s(Me,"defineArguments"),s(ke,"isPlainObj"),s(Be,"fieldsToFieldsConfig"),s(Ge,"argsToArgsConfig");class Pe{constructor(e){var t;this.name=me(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=$e.bind(void 0,e),this._interfaces=Ce.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||L(!1,`${this.name} must provide "resolveType" as a function, but got: ${a(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Be(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}s(Pe,"GraphQLInterfaceType");class Je{constructor(e){var t;this.name=me(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Qe.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||L(!1,`${this.name} must provide "resolveType" as a function, but got: ${a(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Qe(e){const t=Re(e.types);return Array.isArray(t)||L(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}s(Je,"GraphQLUnionType"),s(Qe,"defineTypes");class Ye{constructor(e){var t;this.name=me(e.name),this.description=e.description,this.extensions=ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=qe(this.name,e.values),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=W(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new ve(`Enum "${this.name}" cannot represent value: ${a(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=a(e);throw new ve(`Enum "${this.name}" cannot represent non-string value: ${t}.`+ze(this,t))}const t=this.getValue(e);if(null==t)throw new ve(`Value "${e}" does not exist in "${this.name}" enum.`+ze(this,e));return t.value}parseLiteral(e,t){if(e.kind!==R.ENUM){const t=$(e);throw new ve(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+ze(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=$(e);throw new ve(`Value "${t}" does not exist in "${this.name}" enum.`+ze(this,t),{nodes:e})}return n.value}toConfig(){const e=K(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ze(e,t){return q("the enum value",se(t,e.getValues().map((e=>e.name))))}function qe(e,t){return ke(t)||L(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map((([t,n])=>(ke(n)||L(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${a(n)}.`),{name:Ne(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:ae(n.extensions),astNode:n.astNode})))}s(Ye,"GraphQLEnumType"),s(ze,"didYouMeanEnumValue"),s(qe,"defineEnumValues");class He{constructor(e){var t;this.name=me(e.name),this.description=e.description,this.extensions=ae(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Xe.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=Z(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Xe(e){const t=je(e.fields);return ke(t)||L(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Z(t,((t,n)=>(!("resolve"in t)||L(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:me(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:ae(t.extensions),astNode:t.astNode})))}s(He,"GraphQLInputObjectType"),s(Xe,"defineInputFieldMap");const We=2147483647,Ke=-2147483648,Ze=new Ue({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=st(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new ve(`Int cannot represent non-integer value: ${a(t)}`);if(n>We||n<Ke)throw new ve("Int cannot represent non 32-bit signed integer value: "+a(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new ve(`Int cannot represent non-integer value: ${a(e)}`);if(e>We||e<Ke)throw new ve(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==R.INT)throw new ve(`Int cannot represent non-integer value: ${$(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>We||t<Ke)throw new ve(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),et=new Ue({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=st(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new ve(`Float cannot represent non numeric value: ${a(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new ve(`Float cannot represent non numeric value: ${a(e)}`);return e},parseLiteral(e){if(e.kind!==R.FLOAT&&e.kind!==R.INT)throw new ve(`Float cannot represent non numeric value: ${$(e)}`,e);return parseFloat(e.value)}}),tt=new Ue({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=st(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new ve(`String cannot represent value: ${a(e)}`)},parseValue(e){if("string"!=typeof e)throw new ve(`String cannot represent a non string value: ${a(e)}`);return e},parseLiteral(e){if(e.kind!==R.STRING)throw new ve(`String cannot represent a non string value: ${$(e)}`,{nodes:e});return e.value}}),nt=new Ue({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=st(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new ve(`Boolean cannot represent a non boolean value: ${a(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new ve(`Boolean cannot represent a non boolean value: ${a(e)}`);return e},parseLiteral(e){if(e.kind!==R.BOOLEAN)throw new ve(`Boolean cannot represent a non boolean value: ${$(e)}`,{nodes:e});return e.value}}),it=new Ue({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=st(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new ve(`ID cannot represent value: ${a(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new ve(`ID cannot represent value: ${a(e)}`)},parseLiteral(e){if(e.kind!==R.STRING&&e.kind!==R.INT)throw new ve("ID cannot represent a non-string and non-integer value: "+$(e),{nodes:e});return e.value}});function st(e){if(Y(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!Y(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function rt(e,t){if(Le(t)){const n=rt(e,t.ofType);return(null==n?void 0:n.kind)===R.NULL?null:n}if(null===e)return{kind:R.NULL};if(void 0===e)return null;if(Ae(t)){const n=t.ofType;if(Q(e)){const t=[];for(const i of e){const e=rt(i,n);null!=e&&t.push(e)}return{kind:R.LIST,values:t}}return rt(e,n)}if(Se(t)){if(!Y(e))return null;const n=[];for(const i of Object.values(t.getFields())){const t=rt(e[i.name],i.type);t&&n.push({kind:R.OBJECT_FIELD,name:{kind:R.NAME,value:i.name},value:t})}return{kind:R.OBJECT,fields:n}}if(_e(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:R.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return ot.test(e)?{kind:R.INT,value:e}:{kind:R.FLOAT,value:e}}if("string"==typeof n)return Oe(t)?{kind:R.ENUM,value:n}:t===it&&ot.test(n)?{kind:R.INT,value:n}:{kind:R.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${a(n)}.`)}v(!1,"Unexpected input type: "+a(t))}Object.freeze([tt,Ze,et,nt,it]),s(st,"serializeObject"),s(rt,"astFromValue");const ot=/^-?(?:0|[1-9][0-9]*)$/,at=new Ve({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:tt,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Fe(new De(new Fe(ct))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new Fe(ct),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:ct,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:ct,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Fe(new De(new Fe(lt))),resolve:e=>e.getDirectives()}})}),lt=new Ve({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new Fe(tt),resolve:e=>e.name},description:{type:tt,resolve:e=>e.description},isRepeatable:{type:new Fe(nt),resolve:e=>e.isRepeatable},locations:{type:new Fe(new De(new Fe(ut))),resolve:e=>e.locations},args:{type:new Fe(new De(new Fe(dt))),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})}),ut=new Ye({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:h.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:h.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:h.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:h.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:h.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:h.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:h.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:h.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:h.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:h.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:h.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:h.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:h.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:h.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:h.UNION,description:"Location adjacent to a union definition."},ENUM:{value:h.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:h.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:h.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:h.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),ct=new Ve({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Fe(yt),resolve:e=>Ie(e)?vt.SCALAR:Ee(e)?vt.OBJECT:ge(e)?vt.INTERFACE:be(e)?vt.UNION:Oe(e)?vt.ENUM:Se(e)?vt.INPUT_OBJECT:Ae(e)?vt.LIST:Le(e)?vt.NON_NULL:void v(!1,`Unexpected type: "${a(e)}".`)},name:{type:tt,resolve:e=>"name"in e?e.name:void 0},description:{type:tt,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:tt,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new De(new Fe(pt)),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Ee(e)||ge(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new De(new Fe(ct)),resolve(e){if(Ee(e)||ge(e))return e.getInterfaces()}},possibleTypes:{type:new De(new Fe(ct)),resolve(e,t,n,{schema:i}){if(we(e))return i.getPossibleTypes(e)}},enumValues:{type:new De(new Fe(ft)),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Oe(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new De(new Fe(dt)),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Se(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:ct,resolve:e=>"ofType"in e?e.ofType:void 0}})}),pt=new Ve({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Fe(tt),resolve:e=>e.name},description:{type:tt,resolve:e=>e.description},args:{type:new Fe(new De(new Fe(dt))),args:{includeDeprecated:{type:nt,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new Fe(ct),resolve:e=>e.type},isDeprecated:{type:new Fe(nt),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tt,resolve:e=>e.deprecationReason}})}),dt=new Ve({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Fe(tt),resolve:e=>e.name},description:{type:tt,resolve:e=>e.description},type:{type:new Fe(ct),resolve:e=>e.type},defaultValue:{type:tt,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,i=rt(n,t);return i?$(i):null}},isDeprecated:{type:new Fe(nt),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tt,resolve:e=>e.deprecationReason}})}),ft=new Ve({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Fe(tt),resolve:e=>e.name},description:{type:tt,resolve:e=>e.description},isDeprecated:{type:new Fe(nt),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tt,resolve:e=>e.deprecationReason}})});let vt;var ht;(ht=vt||(vt={})).SCALAR="SCALAR",ht.OBJECT="OBJECT",ht.INTERFACE="INTERFACE",ht.UNION="UNION",ht.ENUM="ENUM",ht.INPUT_OBJECT="INPUT_OBJECT",ht.LIST="LIST",ht.NON_NULL="NON_NULL";const yt=new Ye({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:vt.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:vt.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:vt.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:vt.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:vt.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:vt.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:vt.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:vt.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),mt={name:"__schema",type:new Fe(at),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:i})=>i,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Nt={name:"__type",type:ct,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Fe(tt),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:i})=>i.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Tt={name:"__typename",type:new Fe(tt),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:i})=>i.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Object.freeze([at,lt,ut,ct,pt,dt,ft,yt])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[773],{54773:(e,t,r)=>{r.r(t),r.d(t,{j:()=>u});var n=r(96539),a=Object.defineProperty,i=(e,t)=>a(e,"name",{value:t,configurable:!0});function o(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(o,"_mergeNamespaces");var s,c={exports:{}};(s=n.a.exports).defineMode("javascript",(function(e,t){var r,n,a=e.indentUnit,o=t.statementIndent,c=t.jsonld,u=t.json||c,f=!1!==t.trackScope,l=t.typescript,p=t.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}i(e,"kw");var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),o=e("operator"),s={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),m=/[+\-*&%=<>!?|~^@]/,y=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function k(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function v(e,t,a){return r=e,n=a,t}function b(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=w(r),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==r&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return v(r);if("="==r&&e.eat(">"))return v("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==r)return e.eat("*")?(t.tokenize=x,x(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):at(e,t,1)?(k(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==r)return t.tokenize=g,g(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==r&&e.eatWhile(p))return v("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(m.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?v("."):v("operator","operator",e.current());if(p.test(r)){e.eatWhile(p);var n=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(n)){var a=d[n];return v(a.type,a.style,n)}if("async"==n&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",n)}return v("variable","variable",n)}}function w(e){return function(t,r){var n,a=!1;if(c&&"@"==t.peek()&&t.match(y))return r.tokenize=b,v("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||a);)a=!a&&"\\"==n;return a||(r.tokenize=b),v("string","string")}}function x(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=b;break}n="*"==r}return v("comment","comment")}function g(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=b;break}n=!n&&"\\"==r}return v("quasi","string-2",e.current())}i(k,"readRegexp"),i(v,"ret"),i(b,"tokenBase"),i(w,"tokenString"),i(x,"tokenComment"),i(g,"tokenQuasi");function h(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(l){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,o=r-1;o>=0;--o){var s=e.string.charAt(o),c="([{}])".indexOf(s);if(c>=0&&c<3){if(!a){++o;break}if(0==--a){"("==s&&(i=!0);break}}else if(c>=3&&c<6)++a;else if(p.test(s))i=!0;else if(/["'\/`]/.test(s))for(;;--o){if(0==o)return;if(e.string.charAt(o-1)==s&&"\\"!=e.string.charAt(o-2)){o--;break}}else if(i&&!a){++o;break}}i&&!a&&(t.fatArrowAt=o)}}i(h,"findFatArrow");var j={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function A(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function M(e,t){if(!f)return!1;for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}function E(e,t,r,n,a){var i=e.cc;for(T.state=e,T.stream=a,T.marked=null,T.cc=i,T.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((i.length?i.pop():u?J:W)(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return T.marked?T.marked:"variable"==r&&M(e,n)?"variable-2":t}}i(A,"JSLexical"),i(M,"inScope"),i(E,"parseJS");var T={state:null,column:null,marked:null,cc:null};function V(){for(var e=arguments.length-1;e>=0;e--)T.cc.push(arguments[e])}function C(){return V.apply(null,arguments),!0}function I(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function z(e){var r=T.state;if(T.marked="def",f){if(r.context)if("var"==r.lexical.info&&r.context&&r.context.block){var n=S(e,r.context);if(null!=n)return void(r.context=n)}else if(!I(e,r.localVars))return void(r.localVars=new $(e,r.localVars));t.globalVars&&!I(e,r.globalVars)&&(r.globalVars=new $(e,r.globalVars))}}function S(e,t){if(t){if(t.block){var r=S(e,t.prev);return r?r==t.prev?t:new _(r,t.vars,!0):null}return I(e,t.vars)?t:new _(t.prev,new $(e,t.vars),!1)}return null}function O(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function _(e,t,r){this.prev=e,this.vars=t,this.block=r}function $(e,t){this.name=e,this.next=t}i(V,"pass"),i(C,"cont"),i(I,"inList"),i(z,"register"),i(S,"registerVarScoped"),i(O,"isModifier"),i(_,"Context"),i($,"Var");var q=new $("this",new $("arguments",null));function N(){T.state.context=new _(T.state.context,T.state.localVars,!1),T.state.localVars=q}function P(){T.state.context=new _(T.state.context,T.state.localVars,!0),T.state.localVars=null}function B(){T.state.localVars=T.state.context.vars,T.state.context=T.state.context.prev}function F(e,t){var r=i((function(){var r=T.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new A(n,T.stream.column(),e,null,r.lexical,t)}),"result");return r.lex=!0,r}function L(){var e=T.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function Q(e){function t(r){return r==e?C():";"==e||"}"==r||")"==r||"]"==r?V():C(t)}return i(t,"exp"),t}function W(e,t){return"var"==e?C(F("vardef",t),Ve,Q(";"),L):"keyword a"==e?C(F("form"),U,W,L):"keyword b"==e?C(F("form"),W,L):"keyword d"==e?T.stream.match(/^\s*$/,!1)?C():C(F("stat"),K,Q(";"),L):"debugger"==e?C(Q(";")):"{"==e?C(F("}"),P,pe,L,B):";"==e?C():"if"==e?("else"==T.state.lexical.info&&T.state.cc[T.state.cc.length-1]==L&&T.state.cc.pop()(),C(F("form"),U,W,L,_e)):"function"==e?C(Pe):"for"==e?C(F("form"),P,$e,W,B,L):"class"==e||l&&"interface"==t?(T.marked="keyword",C(F("form","class"==e?e:t),We,L)):"variable"==e?l&&"declare"==t?(T.marked="keyword",C(W)):l&&("module"==t||"enum"==t||"type"==t)&&T.stream.match(/^\s*\w/,!1)?(T.marked="keyword","enum"==t?C(tt):"type"==t?C(Fe,Q("operator"),ve,Q(";")):C(F("form"),Ce,Q("{"),F("}"),pe,L,L)):l&&"namespace"==t?(T.marked="keyword",C(F("form"),J,W,L)):l&&"abstract"==t?(T.marked="keyword",C(W)):C(F("stat"),ie):"switch"==e?C(F("form"),U,Q("{"),F("}","switch"),P,pe,L,L,B):"case"==e?C(J,Q(":")):"default"==e?C(Q(":")):"catch"==e?C(F("form"),N,D,W,L,B):"export"==e?C(F("stat"),Ue,L):"import"==e?C(F("stat"),Ke,L):"async"==e?C(W):"@"==t?C(J,W):V(F("stat"),J,Q(";"),L)}function D(e){if("("==e)return C(Le,Q(")"))}function J(e,t){return H(e,t,!1)}function R(e,t){return H(e,t,!0)}function U(e){return"("!=e?V():C(F(")"),K,Q(")"),L)}function H(e,t,r){if(T.state.fatArrowAt==T.stream.start){var n=r?te:ee;if("("==e)return C(N,F(")"),fe(Le,")"),L,Q("=>"),n,B);if("variable"==e)return V(N,Ce,Q("=>"),n,B)}var a=r?X:G;return j.hasOwnProperty(e)?C(a):"function"==e?C(Pe,a):"class"==e||l&&"interface"==t?(T.marked="keyword",C(F("form"),Qe,L)):"keyword c"==e||"async"==e?C(r?R:J):"("==e?C(F(")"),K,Q(")"),L,a):"operator"==e||"spread"==e?C(r?R:J):"["==e?C(F("]"),et,L,a):"{"==e?le(se,"}",null,a):"quasi"==e?V(Y,a):"new"==e?C(re(r)):C()}function K(e){return e.match(/[;\}\)\],]/)?V():V(J)}function G(e,t){return","==e?C(K):X(e,t,!1)}function X(e,t,r){var n=0==r?G:X,a=0==r?J:R;return"=>"==e?C(N,r?te:ee,B):"operator"==e?/\+\+|--/.test(t)||l&&"!"==t?C(n):l&&"<"==t&&T.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?C(F(">"),fe(ve,">"),L,n):"?"==t?C(J,Q(":"),a):C(a):"quasi"==e?V(Y,n):";"!=e?"("==e?le(R,")","call",n):"."==e?C(oe,n):"["==e?C(F("]"),K,Q("]"),L,n):l&&"as"==t?(T.marked="keyword",C(ve,n)):"regexp"==e?(T.state.lastType=T.marked="operator",T.stream.backUp(T.stream.pos-T.stream.start-1),C(a)):void 0:void 0}function Y(e,t){return"quasi"!=e?V():"${"!=t.slice(t.length-2)?C(Y):C(K,Z)}function Z(e){if("}"==e)return T.marked="string-2",T.state.tokenize=g,C(Y)}function ee(e){return h(T.stream,T.state),V("{"==e?W:J)}function te(e){return h(T.stream,T.state),V("{"==e?W:R)}function re(e){return function(t){return"."==t?C(e?ae:ne):"variable"==t&&l?C(Me,e?X:G):V(e?R:J)}}function ne(e,t){if("target"==t)return T.marked="keyword",C(G)}function ae(e,t){if("target"==t)return T.marked="keyword",C(X)}function ie(e){return":"==e?C(L,W):V(G,Q(";"),L)}function oe(e){if("variable"==e)return T.marked="property",C()}function se(e,t){return"async"==e?(T.marked="property",C(se)):"variable"==e||"keyword"==T.style?(T.marked="property","get"==t||"set"==t?C(ce):(l&&T.state.fatArrowAt==T.stream.start&&(r=T.stream.match(/^\s*:\s*/,!1))&&(T.state.fatArrowAt=T.stream.pos+r[0].length),C(ue))):"number"==e||"string"==e?(T.marked=c?"property":T.style+" property",C(ue)):"jsonld-keyword"==e?C(ue):l&&O(t)?(T.marked="keyword",C(se)):"["==e?C(J,de,Q("]"),ue):"spread"==e?C(R,ue):"*"==t?(T.marked="keyword",C(se)):":"==e?V(ue):void 0;var r}function ce(e){return"variable"!=e?V(ue):(T.marked="property",C(Pe))}function ue(e){return":"==e?C(R):"("==e?V(Pe):void 0}function fe(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=T.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),C((function(r,n){return r==t||n==t?V():V(e)}),n)}return a==t||i==t?C():r&&r.indexOf(";")>-1?V(e):C(Q(t))}return i(n,"proceed"),function(r,a){return r==t||a==t?C():V(e,n)}}function le(e,t,r){for(var n=3;n<arguments.length;n++)T.cc.push(arguments[n]);return C(F(t,r),fe(e,t),L)}function pe(e){return"}"==e?C():V(W,pe)}function de(e,t){if(l){if(":"==e)return C(ve);if("?"==t)return C(de)}}function me(e,t){if(l&&(":"==e||"in"==t))return C(ve)}function ye(e){if(l&&":"==e)return T.stream.match(/^\s*\w+\s+is\b/,!1)?C(J,ke,ve):C(ve)}function ke(e,t){if("is"==t)return T.marked="keyword",C()}function ve(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(T.marked="keyword",C("typeof"==t?R:ve)):"variable"==e||"void"==t?(T.marked="type",C(Ae)):"|"==t||"&"==t?C(ve):"string"==e||"number"==e||"atom"==e?C(Ae):"["==e?C(F("]"),fe(ve,"]",","),L,Ae):"{"==e?C(F("}"),we,L,Ae):"("==e?C(fe(je,")"),be,Ae):"<"==e?C(fe(ve,">"),ve):"quasi"==e?V(ge,Ae):void 0}function be(e){if("=>"==e)return C(ve)}function we(e){return e.match(/[\}\)\]]/)?C():","==e||";"==e?C(we):V(xe,we)}function xe(e,t){return"variable"==e||"keyword"==T.style?(T.marked="property",C(xe)):"?"==t||"number"==e||"string"==e?C(xe):":"==e?C(ve):"["==e?C(Q("variable"),me,Q("]"),xe):"("==e?V(Be,xe):e.match(/[;\}\)\],]/)?void 0:C()}function ge(e,t){return"quasi"!=e?V():"${"!=t.slice(t.length-2)?C(ge):C(ve,he)}function he(e){if("}"==e)return T.marked="string-2",T.state.tokenize=g,C(ge)}function je(e,t){return"variable"==e&&T.stream.match(/^\s*[?:]/,!1)||"?"==t?C(je):":"==e?C(ve):"spread"==e?C(je):V(ve)}function Ae(e,t){return"<"==t?C(F(">"),fe(ve,">"),L,Ae):"|"==t||"."==e||"&"==t?C(ve):"["==e?C(ve,Q("]"),Ae):"extends"==t||"implements"==t?(T.marked="keyword",C(ve)):"?"==t?C(ve,Q(":"),ve):void 0}function Me(e,t){if("<"==t)return C(F(">"),fe(ve,">"),L,Ae)}function Ee(){return V(ve,Te)}function Te(e,t){if("="==t)return C(ve)}function Ve(e,t){return"enum"==t?(T.marked="keyword",C(tt)):V(Ce,de,Se,Oe)}function Ce(e,t){return l&&O(t)?(T.marked="keyword",C(Ce)):"variable"==e?(z(t),C()):"spread"==e?C(Ce):"["==e?le(ze,"]"):"{"==e?le(Ie,"}"):void 0}function Ie(e,t){return"variable"!=e||T.stream.match(/^\s*:/,!1)?("variable"==e&&(T.marked="property"),"spread"==e?C(Ce):"}"==e?V():"["==e?C(J,Q("]"),Q(":"),Ie):C(Q(":"),Ce,Se)):(z(t),C(Se))}function ze(){return V(Ce,Se)}function Se(e,t){if("="==t)return C(R)}function Oe(e){if(","==e)return C(Ve)}function _e(e,t){if("keyword b"==e&&"else"==t)return C(F("form","else"),W,L)}function $e(e,t){return"await"==t?C($e):"("==e?C(F(")"),qe,L):void 0}function qe(e){return"var"==e?C(Ve,Ne):"variable"==e?C(Ne):V(Ne)}function Ne(e,t){return")"==e?C():";"==e?C(Ne):"in"==t||"of"==t?(T.marked="keyword",C(J,Ne)):V(J,Ne)}function Pe(e,t){return"*"==t?(T.marked="keyword",C(Pe)):"variable"==e?(z(t),C(Pe)):"("==e?C(N,F(")"),fe(Le,")"),L,ye,W,B):l&&"<"==t?C(F(">"),fe(Ee,">"),L,Pe):void 0}function Be(e,t){return"*"==t?(T.marked="keyword",C(Be)):"variable"==e?(z(t),C(Be)):"("==e?C(N,F(")"),fe(Le,")"),L,ye,B):l&&"<"==t?C(F(">"),fe(Ee,">"),L,Be):void 0}function Fe(e,t){return"keyword"==e||"variable"==e?(T.marked="type",C(Fe)):"<"==t?C(F(">"),fe(Ee,">"),L):void 0}function Le(e,t){return"@"==t&&C(J,Le),"spread"==e?C(Le):l&&O(t)?(T.marked="keyword",C(Le)):l&&"this"==e?C(de,Se):V(Ce,de,Se)}function Qe(e,t){return"variable"==e?We(e,t):De(e,t)}function We(e,t){if("variable"==e)return z(t),C(De)}function De(e,t){return"<"==t?C(F(">"),fe(Ee,">"),L,De):"extends"==t||"implements"==t||l&&","==e?("implements"==t&&(T.marked="keyword"),C(l?ve:J,De)):"{"==e?C(F("}"),Je,L):void 0}function Je(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||l&&O(t))&&T.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(T.marked="keyword",C(Je)):"variable"==e||"keyword"==T.style?(T.marked="property",C(Re,Je)):"number"==e||"string"==e?C(Re,Je):"["==e?C(J,de,Q("]"),Re,Je):"*"==t?(T.marked="keyword",C(Je)):l&&"("==e?V(Be,Je):";"==e||","==e?C(Je):"}"==e?C():"@"==t?C(J,Je):void 0}function Re(e,t){if("!"==t)return C(Re);if("?"==t)return C(Re);if(":"==e)return C(ve,Se);if("="==t)return C(R);var r=T.state.lexical.prev;return V(r&&"interface"==r.info?Be:Pe)}function Ue(e,t){return"*"==t?(T.marked="keyword",C(Ze,Q(";"))):"default"==t?(T.marked="keyword",C(J,Q(";"))):"{"==e?C(fe(He,"}"),Ze,Q(";")):V(W)}function He(e,t){return"as"==t?(T.marked="keyword",C(Q("variable"))):"variable"==e?V(R,He):void 0}function Ke(e){return"string"==e?C():"("==e?V(J):"."==e?V(G):V(Ge,Xe,Ze)}function Ge(e,t){return"{"==e?le(Ge,"}"):("variable"==e&&z(t),"*"==t&&(T.marked="keyword"),C(Ye))}function Xe(e){if(","==e)return C(Ge,Xe)}function Ye(e,t){if("as"==t)return T.marked="keyword",C(Ge)}function Ze(e,t){if("from"==t)return T.marked="keyword",C(J)}function et(e){return"]"==e?C():V(fe(R,"]"))}function tt(){return V(F("form"),Ce,Q("{"),F("}"),fe(rt,"}"),L,L)}function rt(){return V(Ce,Se)}function nt(e,t){return"operator"==e.lastType||","==e.lastType||m.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function at(e,t,r){return t.tokenize==b&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return i(N,"pushcontext"),i(P,"pushblockcontext"),N.lex=P.lex=!0,i(B,"popcontext"),B.lex=!0,i(F,"pushlex"),i(L,"poplex"),L.lex=!0,i(Q,"expect"),i(W,"statement"),i(D,"maybeCatchBinding"),i(J,"expression"),i(R,"expressionNoComma"),i(U,"parenExpr"),i(H,"expressionInner"),i(K,"maybeexpression"),i(G,"maybeoperatorComma"),i(X,"maybeoperatorNoComma"),i(Y,"quasi"),i(Z,"continueQuasi"),i(ee,"arrowBody"),i(te,"arrowBodyNoComma"),i(re,"maybeTarget"),i(ne,"target"),i(ae,"targetNoComma"),i(ie,"maybelabel"),i(oe,"property"),i(se,"objprop"),i(ce,"getterSetter"),i(ue,"afterprop"),i(fe,"commasep"),i(le,"contCommasep"),i(pe,"block"),i(de,"maybetype"),i(me,"maybetypeOrIn"),i(ye,"mayberettype"),i(ke,"isKW"),i(ve,"typeexpr"),i(be,"maybeReturnType"),i(we,"typeprops"),i(xe,"typeprop"),i(ge,"quasiType"),i(he,"continueQuasiType"),i(je,"typearg"),i(Ae,"afterType"),i(Me,"maybeTypeArgs"),i(Ee,"typeparam"),i(Te,"maybeTypeDefault"),i(Ve,"vardef"),i(Ce,"pattern"),i(Ie,"proppattern"),i(ze,"eltpattern"),i(Se,"maybeAssign"),i(Oe,"vardefCont"),i(_e,"maybeelse"),i($e,"forspec"),i(qe,"forspec1"),i(Ne,"forspec2"),i(Pe,"functiondef"),i(Be,"functiondecl"),i(Fe,"typename"),i(Le,"funarg"),i(Qe,"classExpression"),i(We,"className"),i(De,"classNameAfter"),i(Je,"classBody"),i(Re,"classfield"),i(Ue,"afterExport"),i(He,"exportField"),i(Ke,"afterImport"),i(Ge,"importSpec"),i(Xe,"maybeMoreImports"),i(Ye,"maybeAs"),i(Ze,"maybeFrom"),i(et,"arrayLiteral"),i(tt,"enumdef"),i(rt,"enummember"),i(nt,"isContinuedStatement"),i(at,"expressionAllowed"),{startState:function(e){var r={tokenize:b,lastType:"sof",cc:[],lexical:new A((e||0)-a,0,"block",!1),localVars:t.localVars,context:t.localVars&&new _(null,null,!1),indented:e||0};return t.globalVars&&"object"==typeof t.globalVars&&(r.globalVars=t.globalVars),r},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),h(e,t)),t.tokenize!=x&&e.eatSpace())return null;var a=t.tokenize(e,t);return"comment"==r?a:(t.lastType="operator"!=r||"++"!=n&&"--"!=n?r:"incdec",E(t,a,r,n,e))},indent:function(e,r){if(e.tokenize==x||e.tokenize==g)return s.Pass;if(e.tokenize!=b)return 0;var n,i=r&&r.charAt(0),c=e.lexical;if(!/^\s*else\b/.test(r))for(var u=e.cc.length-1;u>=0;--u){var f=e.cc[u];if(f==L)c=c.prev;else if(f!=_e&&f!=B)break}for(;("stat"==c.type||"form"==c.type)&&("}"==i||(n=e.cc[e.cc.length-1])&&(n==G||n==X)&&!/^[,\.=+\-*:?[\(]/.test(r));)c=c.prev;o&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var l=c.type,p=i==l;return"vardef"==l?c.indented+("operator"==e.lastType||","==e.lastType?c.info.length+1:0):"form"==l&&"{"==i?c.indented:"form"==l?c.indented+a:"stat"==l?c.indented+(nt(e,r)?o||a:0):"switch"!=c.info||p||0==t.doubleIndentSwitch?c.align?c.column+(p?0:1):c.indented+(p?0:a):c.indented+(/^(?:case|default)\b/.test(r)?a:2*a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:c,jsonMode:u,expressionAllowed:at,skipExpression:function(e){E(e,"atom","atom","true",new s.StringStream("",2,null))}}})),s.registerHelper("wordChars","javascript",/[\w$]/),s.defineMIME("text/javascript","javascript"),s.defineMIME("text/ecmascript","javascript"),s.defineMIME("application/javascript","javascript"),s.defineMIME("application/x-javascript","javascript"),s.defineMIME("application/ecmascript","javascript"),s.defineMIME("application/json",{name:"javascript",json:!0}),s.defineMIME("application/x-json",{name:"javascript",json:!0}),s.defineMIME("application/manifest+json",{name:"javascript",json:!0}),s.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),s.defineMIME("text/typescript",{name:"javascript",typescript:!0}),s.defineMIME("application/typescript",{name:"javascript",typescript:!0});var u=o({__proto__:null,default:c.exports},[c.exports])}}]);
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[773],{54773:(e,t,r)=>{r.r(t),r.d(t,{j:()=>u});var n=r(96539),a=Object.defineProperty,i=(e,t)=>a(e,"name",{value:t,configurable:!0});function o(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}i(o,"_mergeNamespaces");var s,c={exports:{}};(s=n.a.exports).defineMode("javascript",(function(e,t){var r,n,a=e.indentUnit,o=t.statementIndent,c=t.jsonld,u=t.json||c,f=!1!==t.trackScope,l=t.typescript,p=t.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}i(e,"kw");var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),o=e("operator"),s={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),m=/[+\-*&%=<>!?|~^@]/,y=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function k(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function v(e,t,a){return r=e,n=a,t}function b(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=w(r),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==r&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return v(r);if("="==r&&e.eat(">"))return v("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==r)return e.eat("*")?(t.tokenize=x,x(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):it(e,t,1)?(k(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==r)return t.tokenize=g,g(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==r&&e.eatWhile(p))return v("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(m.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?v("."):v("operator","operator",e.current());if(p.test(r)){e.eatWhile(p);var n=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(n)){var a=d[n];return v(a.type,a.style,n)}if("async"==n&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",n)}return v("variable","variable",n)}}function w(e){return function(t,r){var n,a=!1;if(c&&"@"==t.peek()&&t.match(y))return r.tokenize=b,v("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||a);)a=!a&&"\\"==n;return a||(r.tokenize=b),v("string","string")}}function x(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=b;break}n="*"==r}return v("comment","comment")}function g(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=b;break}n=!n&&"\\"==r}return v("quasi","string-2",e.current())}i(k,"readRegexp"),i(v,"ret"),i(b,"tokenBase"),i(w,"tokenString"),i(x,"tokenComment"),i(g,"tokenQuasi");var h="([{}])";function j(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(l){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,o=r-1;o>=0;--o){var s=e.string.charAt(o),c=h.indexOf(s);if(c>=0&&c<3){if(!a){++o;break}if(0==--a){"("==s&&(i=!0);break}}else if(c>=3&&c<6)++a;else if(p.test(s))i=!0;else if(/["'\/`]/.test(s))for(;;--o){if(0==o)return;if(e.string.charAt(o-1)==s&&"\\"!=e.string.charAt(o-2)){o--;break}}else if(i&&!a){++o;break}}i&&!a&&(t.fatArrowAt=o)}}i(j,"findFatArrow");var A={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function M(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function E(e,t){if(!f)return!1;for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}function T(e,t,r,n,a){var i=e.cc;for(V.state=e,V.stream=a,V.marked=null,V.cc=i,V.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((i.length?i.pop():u?R:D)(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return V.marked?V.marked:"variable"==r&&E(e,n)?"variable-2":t}}i(M,"JSLexical"),i(E,"inScope"),i(T,"parseJS");var V={state:null,column:null,marked:null,cc:null};function C(){for(var e=arguments.length-1;e>=0;e--)V.cc.push(arguments[e])}function I(){return C.apply(null,arguments),!0}function z(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function S(e){var r=V.state;if(V.marked="def",f){if(r.context)if("var"==r.lexical.info&&r.context&&r.context.block){var n=O(e,r.context);if(null!=n)return void(r.context=n)}else if(!z(e,r.localVars))return void(r.localVars=new q(e,r.localVars));t.globalVars&&!z(e,r.globalVars)&&(r.globalVars=new q(e,r.globalVars))}}function O(e,t){if(t){if(t.block){var r=O(e,t.prev);return r?r==t.prev?t:new $(r,t.vars,!0):null}return z(e,t.vars)?t:new $(t.prev,new q(e,t.vars),!1)}return null}function _(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function $(e,t,r){this.prev=e,this.vars=t,this.block=r}function q(e,t){this.name=e,this.next=t}i(C,"pass"),i(I,"cont"),i(z,"inList"),i(S,"register"),i(O,"registerVarScoped"),i(_,"isModifier"),i($,"Context"),i(q,"Var");var N=new q("this",new q("arguments",null));function P(){V.state.context=new $(V.state.context,V.state.localVars,!1),V.state.localVars=N}function B(){V.state.context=new $(V.state.context,V.state.localVars,!0),V.state.localVars=null}function F(){V.state.localVars=V.state.context.vars,V.state.context=V.state.context.prev}function L(e,t){var r=i((function(){var r=V.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new M(n,V.stream.column(),e,null,r.lexical,t)}),"result");return r.lex=!0,r}function Q(){var e=V.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function W(e){function t(r){return r==e?I():";"==e||"}"==r||")"==r||"]"==r?C():I(t)}return i(t,"exp"),t}function D(e,t){return"var"==e?I(L("vardef",t),Ce,W(";"),Q):"keyword a"==e?I(L("form"),H,D,Q):"keyword b"==e?I(L("form"),D,Q):"keyword d"==e?V.stream.match(/^\s*$/,!1)?I():I(L("stat"),G,W(";"),Q):"debugger"==e?I(W(";")):"{"==e?I(L("}"),B,de,Q,F):";"==e?I():"if"==e?("else"==V.state.lexical.info&&V.state.cc[V.state.cc.length-1]==Q&&V.state.cc.pop()(),I(L("form"),H,D,Q,$e)):"function"==e?I(Be):"for"==e?I(L("form"),B,qe,D,F,Q):"class"==e||l&&"interface"==t?(V.marked="keyword",I(L("form","class"==e?e:t),De,Q)):"variable"==e?l&&"declare"==t?(V.marked="keyword",I(D)):l&&("module"==t||"enum"==t||"type"==t)&&V.stream.match(/^\s*\w/,!1)?(V.marked="keyword","enum"==t?I(rt):"type"==t?I(Le,W("operator"),be,W(";")):I(L("form"),Ie,W("{"),L("}"),de,Q,Q)):l&&"namespace"==t?(V.marked="keyword",I(L("form"),R,D,Q)):l&&"abstract"==t?(V.marked="keyword",I(D)):I(L("stat"),oe):"switch"==e?I(L("form"),H,W("{"),L("}","switch"),B,de,Q,Q,F):"case"==e?I(R,W(":")):"default"==e?I(W(":")):"catch"==e?I(L("form"),P,J,D,Q,F):"export"==e?I(L("stat"),He,Q):"import"==e?I(L("stat"),Ge,Q):"async"==e?I(D):"@"==t?I(R,D):C(L("stat"),R,W(";"),Q)}function J(e){if("("==e)return I(Qe,W(")"))}function R(e,t){return K(e,t,!1)}function U(e,t){return K(e,t,!0)}function H(e){return"("!=e?C():I(L(")"),G,W(")"),Q)}function K(e,t,r){if(V.state.fatArrowAt==V.stream.start){var n=r?re:te;if("("==e)return I(P,L(")"),le(Qe,")"),Q,W("=>"),n,F);if("variable"==e)return C(P,Ie,W("=>"),n,F)}var a=r?Y:X;return A.hasOwnProperty(e)?I(a):"function"==e?I(Be,a):"class"==e||l&&"interface"==t?(V.marked="keyword",I(L("form"),We,Q)):"keyword c"==e||"async"==e?I(r?U:R):"("==e?I(L(")"),G,W(")"),Q,a):"operator"==e||"spread"==e?I(r?U:R):"["==e?I(L("]"),tt,Q,a):"{"==e?pe(ce,"}",null,a):"quasi"==e?C(Z,a):"new"==e?I(ne(r)):I()}function G(e){return e.match(/[;\}\)\],]/)?C():C(R)}function X(e,t){return","==e?I(G):Y(e,t,!1)}function Y(e,t,r){var n=0==r?X:Y,a=0==r?R:U;return"=>"==e?I(P,r?re:te,F):"operator"==e?/\+\+|--/.test(t)||l&&"!"==t?I(n):l&&"<"==t&&V.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?I(L(">"),le(be,">"),Q,n):"?"==t?I(R,W(":"),a):I(a):"quasi"==e?C(Z,n):";"!=e?"("==e?pe(U,")","call",n):"."==e?I(se,n):"["==e?I(L("]"),G,W("]"),Q,n):l&&"as"==t?(V.marked="keyword",I(be,n)):"regexp"==e?(V.state.lastType=V.marked="operator",V.stream.backUp(V.stream.pos-V.stream.start-1),I(a)):void 0:void 0}function Z(e,t){return"quasi"!=e?C():"${"!=t.slice(t.length-2)?I(Z):I(G,ee)}function ee(e){if("}"==e)return V.marked="string-2",V.state.tokenize=g,I(Z)}function te(e){return j(V.stream,V.state),C("{"==e?D:R)}function re(e){return j(V.stream,V.state),C("{"==e?D:U)}function ne(e){return function(t){return"."==t?I(e?ie:ae):"variable"==t&&l?I(Ee,e?Y:X):C(e?U:R)}}function ae(e,t){if("target"==t)return V.marked="keyword",I(X)}function ie(e,t){if("target"==t)return V.marked="keyword",I(Y)}function oe(e){return":"==e?I(Q,D):C(X,W(";"),Q)}function se(e){if("variable"==e)return V.marked="property",I()}function ce(e,t){return"async"==e?(V.marked="property",I(ce)):"variable"==e||"keyword"==V.style?(V.marked="property","get"==t||"set"==t?I(ue):(l&&V.state.fatArrowAt==V.stream.start&&(r=V.stream.match(/^\s*:\s*/,!1))&&(V.state.fatArrowAt=V.stream.pos+r[0].length),I(fe))):"number"==e||"string"==e?(V.marked=c?"property":V.style+" property",I(fe)):"jsonld-keyword"==e?I(fe):l&&_(t)?(V.marked="keyword",I(ce)):"["==e?I(R,me,W("]"),fe):"spread"==e?I(U,fe):"*"==t?(V.marked="keyword",I(ce)):":"==e?C(fe):void 0;var r}function ue(e){return"variable"!=e?C(fe):(V.marked="property",I(Be))}function fe(e){return":"==e?I(U):"("==e?C(Be):void 0}function le(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=V.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),I((function(r,n){return r==t||n==t?C():C(e)}),n)}return a==t||i==t?I():r&&r.indexOf(";")>-1?C(e):I(W(t))}return i(n,"proceed"),function(r,a){return r==t||a==t?I():C(e,n)}}function pe(e,t,r){for(var n=3;n<arguments.length;n++)V.cc.push(arguments[n]);return I(L(t,r),le(e,t),Q)}function de(e){return"}"==e?I():C(D,de)}function me(e,t){if(l){if(":"==e)return I(be);if("?"==t)return I(me)}}function ye(e,t){if(l&&(":"==e||"in"==t))return I(be)}function ke(e){if(l&&":"==e)return V.stream.match(/^\s*\w+\s+is\b/,!1)?I(R,ve,be):I(be)}function ve(e,t){if("is"==t)return V.marked="keyword",I()}function be(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(V.marked="keyword",I("typeof"==t?U:be)):"variable"==e||"void"==t?(V.marked="type",I(Me)):"|"==t||"&"==t?I(be):"string"==e||"number"==e||"atom"==e?I(Me):"["==e?I(L("]"),le(be,"]",","),Q,Me):"{"==e?I(L("}"),xe,Q,Me):"("==e?I(le(Ae,")"),we,Me):"<"==e?I(le(be,">"),be):"quasi"==e?C(he,Me):void 0}function we(e){if("=>"==e)return I(be)}function xe(e){return e.match(/[\}\)\]]/)?I():","==e||";"==e?I(xe):C(ge,xe)}function ge(e,t){return"variable"==e||"keyword"==V.style?(V.marked="property",I(ge)):"?"==t||"number"==e||"string"==e?I(ge):":"==e?I(be):"["==e?I(W("variable"),ye,W("]"),ge):"("==e?C(Fe,ge):e.match(/[;\}\)\],]/)?void 0:I()}function he(e,t){return"quasi"!=e?C():"${"!=t.slice(t.length-2)?I(he):I(be,je)}function je(e){if("}"==e)return V.marked="string-2",V.state.tokenize=g,I(he)}function Ae(e,t){return"variable"==e&&V.stream.match(/^\s*[?:]/,!1)||"?"==t?I(Ae):":"==e?I(be):"spread"==e?I(Ae):C(be)}function Me(e,t){return"<"==t?I(L(">"),le(be,">"),Q,Me):"|"==t||"."==e||"&"==t?I(be):"["==e?I(be,W("]"),Me):"extends"==t||"implements"==t?(V.marked="keyword",I(be)):"?"==t?I(be,W(":"),be):void 0}function Ee(e,t){if("<"==t)return I(L(">"),le(be,">"),Q,Me)}function Te(){return C(be,Ve)}function Ve(e,t){if("="==t)return I(be)}function Ce(e,t){return"enum"==t?(V.marked="keyword",I(rt)):C(Ie,me,Oe,_e)}function Ie(e,t){return l&&_(t)?(V.marked="keyword",I(Ie)):"variable"==e?(S(t),I()):"spread"==e?I(Ie):"["==e?pe(Se,"]"):"{"==e?pe(ze,"}"):void 0}function ze(e,t){return"variable"!=e||V.stream.match(/^\s*:/,!1)?("variable"==e&&(V.marked="property"),"spread"==e?I(Ie):"}"==e?C():"["==e?I(R,W("]"),W(":"),ze):I(W(":"),Ie,Oe)):(S(t),I(Oe))}function Se(){return C(Ie,Oe)}function Oe(e,t){if("="==t)return I(U)}function _e(e){if(","==e)return I(Ce)}function $e(e,t){if("keyword b"==e&&"else"==t)return I(L("form","else"),D,Q)}function qe(e,t){return"await"==t?I(qe):"("==e?I(L(")"),Ne,Q):void 0}function Ne(e){return"var"==e?I(Ce,Pe):"variable"==e?I(Pe):C(Pe)}function Pe(e,t){return")"==e?I():";"==e?I(Pe):"in"==t||"of"==t?(V.marked="keyword",I(R,Pe)):C(R,Pe)}function Be(e,t){return"*"==t?(V.marked="keyword",I(Be)):"variable"==e?(S(t),I(Be)):"("==e?I(P,L(")"),le(Qe,")"),Q,ke,D,F):l&&"<"==t?I(L(">"),le(Te,">"),Q,Be):void 0}function Fe(e,t){return"*"==t?(V.marked="keyword",I(Fe)):"variable"==e?(S(t),I(Fe)):"("==e?I(P,L(")"),le(Qe,")"),Q,ke,F):l&&"<"==t?I(L(">"),le(Te,">"),Q,Fe):void 0}function Le(e,t){return"keyword"==e||"variable"==e?(V.marked="type",I(Le)):"<"==t?I(L(">"),le(Te,">"),Q):void 0}function Qe(e,t){return"@"==t&&I(R,Qe),"spread"==e?I(Qe):l&&_(t)?(V.marked="keyword",I(Qe)):l&&"this"==e?I(me,Oe):C(Ie,me,Oe)}function We(e,t){return"variable"==e?De(e,t):Je(e,t)}function De(e,t){if("variable"==e)return S(t),I(Je)}function Je(e,t){return"<"==t?I(L(">"),le(Te,">"),Q,Je):"extends"==t||"implements"==t||l&&","==e?("implements"==t&&(V.marked="keyword"),I(l?be:R,Je)):"{"==e?I(L("}"),Re,Q):void 0}function Re(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||l&&_(t))&&V.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(V.marked="keyword",I(Re)):"variable"==e||"keyword"==V.style?(V.marked="property",I(Ue,Re)):"number"==e||"string"==e?I(Ue,Re):"["==e?I(R,me,W("]"),Ue,Re):"*"==t?(V.marked="keyword",I(Re)):l&&"("==e?C(Fe,Re):";"==e||","==e?I(Re):"}"==e?I():"@"==t?I(R,Re):void 0}function Ue(e,t){if("!"==t)return I(Ue);if("?"==t)return I(Ue);if(":"==e)return I(be,Oe);if("="==t)return I(U);var r=V.state.lexical.prev;return C(r&&"interface"==r.info?Fe:Be)}function He(e,t){return"*"==t?(V.marked="keyword",I(et,W(";"))):"default"==t?(V.marked="keyword",I(R,W(";"))):"{"==e?I(le(Ke,"}"),et,W(";")):C(D)}function Ke(e,t){return"as"==t?(V.marked="keyword",I(W("variable"))):"variable"==e?C(U,Ke):void 0}function Ge(e){return"string"==e?I():"("==e?C(R):"."==e?C(X):C(Xe,Ye,et)}function Xe(e,t){return"{"==e?pe(Xe,"}"):("variable"==e&&S(t),"*"==t&&(V.marked="keyword"),I(Ze))}function Ye(e){if(","==e)return I(Xe,Ye)}function Ze(e,t){if("as"==t)return V.marked="keyword",I(Xe)}function et(e,t){if("from"==t)return V.marked="keyword",I(R)}function tt(e){return"]"==e?I():C(le(U,"]"))}function rt(){return C(L("form"),Ie,W("{"),L("}"),le(nt,"}"),Q,Q)}function nt(){return C(Ie,Oe)}function at(e,t){return"operator"==e.lastType||","==e.lastType||m.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function it(e,t,r){return t.tokenize==b&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return i(P,"pushcontext"),i(B,"pushblockcontext"),P.lex=B.lex=!0,i(F,"popcontext"),F.lex=!0,i(L,"pushlex"),i(Q,"poplex"),Q.lex=!0,i(W,"expect"),i(D,"statement"),i(J,"maybeCatchBinding"),i(R,"expression"),i(U,"expressionNoComma"),i(H,"parenExpr"),i(K,"expressionInner"),i(G,"maybeexpression"),i(X,"maybeoperatorComma"),i(Y,"maybeoperatorNoComma"),i(Z,"quasi"),i(ee,"continueQuasi"),i(te,"arrowBody"),i(re,"arrowBodyNoComma"),i(ne,"maybeTarget"),i(ae,"target"),i(ie,"targetNoComma"),i(oe,"maybelabel"),i(se,"property"),i(ce,"objprop"),i(ue,"getterSetter"),i(fe,"afterprop"),i(le,"commasep"),i(pe,"contCommasep"),i(de,"block"),i(me,"maybetype"),i(ye,"maybetypeOrIn"),i(ke,"mayberettype"),i(ve,"isKW"),i(be,"typeexpr"),i(we,"maybeReturnType"),i(xe,"typeprops"),i(ge,"typeprop"),i(he,"quasiType"),i(je,"continueQuasiType"),i(Ae,"typearg"),i(Me,"afterType"),i(Ee,"maybeTypeArgs"),i(Te,"typeparam"),i(Ve,"maybeTypeDefault"),i(Ce,"vardef"),i(Ie,"pattern"),i(ze,"proppattern"),i(Se,"eltpattern"),i(Oe,"maybeAssign"),i(_e,"vardefCont"),i($e,"maybeelse"),i(qe,"forspec"),i(Ne,"forspec1"),i(Pe,"forspec2"),i(Be,"functiondef"),i(Fe,"functiondecl"),i(Le,"typename"),i(Qe,"funarg"),i(We,"classExpression"),i(De,"className"),i(Je,"classNameAfter"),i(Re,"classBody"),i(Ue,"classfield"),i(He,"afterExport"),i(Ke,"exportField"),i(Ge,"afterImport"),i(Xe,"importSpec"),i(Ye,"maybeMoreImports"),i(Ze,"maybeAs"),i(et,"maybeFrom"),i(tt,"arrayLiteral"),i(rt,"enumdef"),i(nt,"enummember"),i(at,"isContinuedStatement"),i(it,"expressionAllowed"),{startState:function(e){var r={tokenize:b,lastType:"sof",cc:[],lexical:new M((e||0)-a,0,"block",!1),localVars:t.localVars,context:t.localVars&&new $(null,null,!1),indented:e||0};return t.globalVars&&"object"==typeof t.globalVars&&(r.globalVars=t.globalVars),r},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),j(e,t)),t.tokenize!=x&&e.eatSpace())return null;var a=t.tokenize(e,t);return"comment"==r?a:(t.lastType="operator"!=r||"++"!=n&&"--"!=n?r:"incdec",T(t,a,r,n,e))},indent:function(e,r){if(e.tokenize==x||e.tokenize==g)return s.Pass;if(e.tokenize!=b)return 0;var n,i=r&&r.charAt(0),c=e.lexical;if(!/^\s*else\b/.test(r))for(var u=e.cc.length-1;u>=0;--u){var f=e.cc[u];if(f==Q)c=c.prev;else if(f!=$e&&f!=F)break}for(;("stat"==c.type||"form"==c.type)&&("}"==i||(n=e.cc[e.cc.length-1])&&(n==X||n==Y)&&!/^[,\.=+\-*:?[\(]/.test(r));)c=c.prev;o&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var l=c.type,p=i==l;return"vardef"==l?c.indented+("operator"==e.lastType||","==e.lastType?c.info.length+1:0):"form"==l&&"{"==i?c.indented:"form"==l?c.indented+a:"stat"==l?c.indented+(at(e,r)?o||a:0):"switch"!=c.info||p||0==t.doubleIndentSwitch?c.align?c.column+(p?0:1):c.indented+(p?0:a):c.indented+(/^(?:case|default)\b/.test(r)?a:2*a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:c,jsonMode:u,expressionAllowed:it,skipExpression:function(e){T(e,"atom","atom","true",new s.StringStream("",2,null))}}})),s.registerHelper("wordChars","javascript",/[\w$]/),s.defineMIME("text/javascript","javascript"),s.defineMIME("text/ecmascript","javascript"),s.defineMIME("application/javascript","javascript"),s.defineMIME("application/x-javascript","javascript"),s.defineMIME("application/ecmascript","javascript"),s.defineMIME("application/json",{name:"javascript",json:!0}),s.defineMIME("application/x-json",{name:"javascript",json:!0}),s.defineMIME("application/manifest+json",{name:"javascript",json:!0}),s.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),s.defineMIME("text/typescript",{name:"javascript",typescript:!0}),s.defineMIME("application/typescript",{name:"javascript",typescript:!0});var u=o({__proto__:null,default:c.exports},[c.exports])}}]);
|