1 | window.GraphiQL=function(e){function t(t){for(var n,i,o=t[0],s=t[1],a=0,u=[];a<o.length;a++)i=o[a],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&u.push(r[i][0]),r[i]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(l&&l(t);u.length;)u.shift()()}var n={},r={0:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(){return Promise.resolve()},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonpGraphiQL=window.webpackJsonpGraphiQL||[],s=o.push.bind(o);o.push=t,o=o.slice();for(var a=0;a<o.length;a++)t(o[a]);var l=s;return i(i.s=41)}([function(e,t){e.exports=window.React},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=Object.prototype.hasOwnProperty;function r(t,n){return e.call(t,n)}function i(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function o(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,a=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(22),c=/[&<>"]/,f=/[&<>"]/g,d={"&":"&","<":"<",">":">",'"':"""};function p(e){return d[e]}var h=/[.?*+^$[\]\\(){}|-]/g,m=n(16);t.lib={},t.lib.mdurl=n(23),t.lib.ucmicro=n(88),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=r,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(a,(function(e,t,n){return t||function(e,t){var n=0;return r(u,t)?u[t]:35===t.charCodeAt(0)&&l.test(t)&&i(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?o(n):e}(e,n)}))},t.isValidEntityCode=i,t.fromCodePoint=o,t.escapeHtml=function(e){return c.test(e)?e.replace(f,p):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return m.test(e)},t.escapeRE=function(e){return e.replace(h,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(5)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.c=e.a=e.C=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}r(i,"_mergeNamespaces");var o={exports:{}};e.a=o,function(e,n){t.c,e.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),i=/MSIE \d/.test(e),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),s=/Edge\/(\d+)/.exec(e),a=i||o||s,l=a&&(i?document.documentMode||6:+(s||o)[1]),u=!s&&/WebKit\//.test(e),c=u&&/Qt\/\d+\.\d+/.test(e),f=!s&&/Chrome\//.test(e),d=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),E=/\bCrOS\b/.test(e),T=/win/i.test(t),_=d&&e.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(d=!1,u=!0);var k=b&&(c||d&&(null==_||_<12.11)),x=n||a&&l>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}r(C,"classTest");var w,S=r((function(e,t){var n=e.className,r=C(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}}),"rmClass");function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return N(e).appendChild(t)}function O(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function I(e,t,n,r){var i=O(e,t,n,r);return i.setAttribute("role","presentation"),i}function D(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function L(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function F(e,t){var n=e.className;C(t).test(n)||(e.className+=(n?" ":"")+t)}function M(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!C(n[r]).test(t)&&(t+=" "+n[r]);return t}r(N,"removeChildren"),r(A,"removeChildrenAndAdd"),r(O,"elt"),r(I,"eltP"),w=document.createRange?r((function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}),"range"):r((function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r}),"range"),r(D,"contains"),r(L,"activeElt"),r(F,"addClass"),r(M,"joinClasses");var R=r((function(e){e.select()}),"selectInput");function P(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function j(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function V(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,s=i||0;;){var a=e.indexOf("\t",o);if(a<0||a>=t)return s+(t-o);s+=a-o,s+=n-s%n,o=a+1}}g?R=r((function(e){e.selectionStart=0,e.selectionEnd=e.value.length}),"selectInput"):a&&(R=r((function(e){try{e.select()}catch(e){}}),"selectInput")),r(P,"bind"),r(j,"copyObj"),r(V,"countColumn");var U=r((function(){this.id=null,this.f=null,this.time=0,this.handler=P(this.onTimeout,this)}),"Delayed");function B(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}U.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},U.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)},r(B,"indexOf");var q={toString:function(){return"CodeMirror.Pass"}},z={scroll:!1},$={origin:"*mouse"},H={origin:"+move"};function G(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var s=o-r;if(o==e.length||i+s>=t)return r+Math.min(s,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}r(G,"findColumn");var W=[""];function Q(e){for(;W.length<=e;)W.push(K(W)+" ");return W[e]}function K(e){return e[e.length-1]}function J(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function Y(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function Z(){}function X(e,t){var n;return Object.create?n=Object.create(e):(Z.prototype=e,n=new Z),t&&j(t,n),n}r(Q,"spaceStr"),r(K,"lst"),r(J,"map"),r(Y,"insertSorted"),r(Z,"nothing"),r(X,"createObj");var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}r(te,"isWordCharBasic"),r(ne,"isWordChar"),r(re,"isEmpty");var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function se(e,t,n){for(;(n<0?t>0:t<e.length)&&oe(e.charAt(t));)t+=n;return t}function ae(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function le(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var s=e[o];(s.from<n&&s.to>t||t==n&&s.to==t)&&(r(Math.max(s.from,t),Math.min(s.to,n),1==s.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}r(oe,"isExtendingChar"),r(se,"skipExtendingChars"),r(ae,"findFirst"),r(le,"iterateBidiSections");var ue=null;function ce(e,t,n){var r;ue=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ue=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ue=i)}return null!=r?r:ue}r(ce,"getBidiPartAt");var fe=function(){function e(e){return e<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}r(e,"charType");var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function a(e,t,n){this.level=e,this.from=t,this.to=n}return r(a,"BidiSpan"),function(r,l){var u="ltr"==l?"L":"R";if(0==r.length||"ltr"==l&&!t.test(r))return!1;for(var c=r.length,f=[],d=0;d<c;++d)f.push(e(r.charCodeAt(d)));for(var p=0,h=u;p<c;++p){var m=f[p];"m"==m?f[p]=h:h=m}for(var g=0,v=u;g<c;++g){var y=f[g];"1"==y&&"r"==v?f[g]="n":i.test(y)&&(v=y,"r"==y&&(f[g]="R"))}for(var b=1,E=f[0];b<c-1;++b){var T=f[b];"+"==T&&"1"==E&&"1"==f[b+1]?f[b]="1":","!=T||E!=f[b+1]||"1"!=E&&"n"!=E||(f[b]=E),E=T}for(var _=0;_<c;++_){var k=f[_];if(","==k)f[_]="N";else if("%"==k){var x=void 0;for(x=_+1;x<c&&"%"==f[x];++x);for(var C=_&&"!"==f[_-1]||x<c&&"1"==f[x]?"1":"N",w=_;w<x;++w)f[w]=C;_=x-1}}for(var S=0,N=u;S<c;++S){var A=f[S];"L"==N&&"1"==A?f[S]="L":i.test(A)&&(N=A)}for(var O=0;O<c;++O)if(n.test(f[O])){var I=void 0;for(I=O+1;I<c&&n.test(f[I]);++I);for(var D="L"==(O?f[O-1]:u),L=D==("L"==(I<c?f[I]:u))?D?"L":"R":u,F=O;F<I;++F)f[F]=L;O=I-1}for(var M,R=[],P=0;P<c;)if(o.test(f[P])){var j=P;for(++P;P<c&&o.test(f[P]);++P);R.push(new a(0,j,P))}else{var V=P,U=R.length,B="rtl"==l?1:0;for(++P;P<c&&"L"!=f[P];++P);for(var q=V;q<P;)if(s.test(f[q])){V<q&&(R.splice(U,0,new a(1,V,q)),U+=B);var z=q;for(++q;q<P&&s.test(f[q]);++q);R.splice(U,0,new a(2,z,q)),U+=B,V=q}else++q;V<P&&R.splice(U,0,new a(1,V,P))}return"ltr"==l&&(1==R[0].level&&(M=r.match(/^\s+/))&&(R[0].from=M[0].length,R.unshift(new a(0,0,M[0].length))),1==K(R).level&&(M=r.match(/\s+$/))&&(K(R).to-=M[0].length,R.push(new a(0,c-M[0].length,c)))),"rtl"==l?R.reverse():R}}();function de(e,t){var n=e.order;return null==n&&(n=e.order=fe(e.text,t)),n}r(de,"getOrder");var pe=[],he=r((function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||pe).concat(n)}}),"on");function me(e,t){return e._handlers&&e._handlers[t]||pe}function ge(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=B(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ve(e,t){var n=me(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function ye(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ve(e,n||t.type,e,t),xe(t)||t.codemirrorIgnore}function be(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==B(n,t[r])&&n.push(t[r])}function Ee(e,t){return me(e,t).length>0}function Te(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){ge(this,e,t)}}function _e(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ke(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function xe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){_e(e),ke(e)}function we(e){return e.target||e.srcElement}function Se(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}r(me,"getHandlers"),r(ge,"off"),r(ve,"signal"),r(ye,"signalDOMEvent"),r(be,"signalCursorActivity"),r(Ee,"hasHandler"),r(Te,"eventMixin"),r(_e,"e_preventDefault"),r(ke,"e_stopPropagation"),r(xe,"e_defaultPrevented"),r(Ce,"e_stop"),r(we,"e_target"),r(Se,"e_button");var Ne,Ae,Oe=function(){if(a&&l<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function Ie(e){if(null==Ne){var t=O("span","");A(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ne=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&l<8))}var n=Ne?O("span",""):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function De(e){if(null!=Ae)return Ae;var t=A(e,document.createTextNode("AخA")),n=w(t,0,1).getBoundingClientRect(),r=w(t,1,2).getBoundingClientRect();return N(e),!(!n||n.left==n.right)&&(Ae=r.right-n.right<3)}r(Ie,"zeroWidthElement"),r(De,"hasBadBidiRects");var Le,Fe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),s=o.indexOf("\r");-1!=s?(n.push(o.slice(0,s)),t+=s+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Me=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Re="oncopy"in(Le=O("div"))||(Le.setAttribute("oncopy","return;"),"function"==typeof Le.oncopy),Pe=null;function je(e){if(null!=Pe)return Pe;var t=A(e,O("span","x")),n=t.getBoundingClientRect(),r=w(t,0,1).getBoundingClientRect();return Pe=Math.abs(n.left-r.left)>1}r(je,"hasBadZoomedRects");var Ve={},Ue={};function Be(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ve[e]=t}function qe(e,t){Ue[e]=t}function ze(e){if("string"==typeof e&&Ue.hasOwnProperty(e))e=Ue[e];else if(e&&"string"==typeof e.name&&Ue.hasOwnProperty(e.name)){var t=Ue[e.name];"string"==typeof t&&(t={name:t}),(e=X(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ze("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ze("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function $e(e,t){t=ze(t);var n=Ve[t.name];if(!n)return $e(e,"text/plain");var r=n(e,t);if(He.hasOwnProperty(t.name)){var i=He[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var s in t.modeProps)r[s]=t.modeProps[s];return r}r(Be,"defineMode"),r(qe,"defineMIME"),r(ze,"resolveMode"),r($e,"getMode");var He={};function Ge(e,t){j(t,He.hasOwnProperty(e)?He[e]:He[e]={})}function We(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Qe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}r(Ge,"extendMode"),r(We,"copyState"),r(Qe,"innerMode"),r(Ke,"startState");var Je=r((function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n}),"StringStream");function Ye(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Ze(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Xe(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function et(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function tt(e){if(null==e.parent)return null;for(var t=e.parent,n=B(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function nt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var s=0;s<e.lines.length;++s){var a=e.lines[s].height;if(t<a)break;t-=a}return n+s}function rt(e,t){return t>=e.first&&t<e.first+e.size}function it(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ot(e,t,n){if(void 0===n&&(n=null),!(this instanceof ot))return new ot(e,t,n);this.line=e,this.ch=t,this.sticky=n}function st(e,t){return e.line-t.line||e.ch-t.ch}function at(e,t){return e.sticky==t.sticky&&0==st(e,t)}function lt(e){return ot(e.line,e.ch)}function ut(e,t){return st(e,t)<0?t:e}function ct(e,t){return st(e,t)<0?e:t}function ft(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function dt(e,t){if(t.line<e.first)return ot(e.first,0);var n=e.first+e.size-1;return t.line>n?ot(n,Ye(e,n).text.length):pt(t,Ye(e,t.line).text.length)}function pt(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}function ht(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=dt(e,t[r]);return n}Je.prototype.eol=function(){return this.pos>=this.string.length},Je.prototype.sol=function(){return this.pos==this.lineStart},Je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Je.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Je.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Je.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Je.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Je.prototype.skipToEnd=function(){this.pos=this.string.length},Je.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Je.prototype.backUp=function(e){this.pos-=e},Je.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Je.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Je.prototype.match=function(e,t,n){if("string"!=typeof e){var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var o=r((function(e){return n?e.toLowerCase():e}),"cased");if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},Je.prototype.current=function(){return this.string.slice(this.start,this.pos)},Je.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Je.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Je.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)},r(Ye,"getLine"),r(Ze,"getBetween"),r(Xe,"getLines"),r(et,"updateLineHeight"),r(tt,"lineNo"),r(nt,"lineAtHeight"),r(rt,"isLine"),r(it,"lineNumberFor"),r(ot,"Pos"),r(st,"cmp"),r(at,"equalCursorPos"),r(lt,"copyPos"),r(ut,"maxPos"),r(ct,"minPos"),r(ft,"clipLine"),r(dt,"clipPos"),r(pt,"clipToLen"),r(ht,"clipPosArray");var mt=r((function(e,t){this.state=e,this.lookAhead=t}),"SavedContext"),gt=r((function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1}),"Context");function vt(e,t,n,i){var o=[e.state.modeGen],s={};wt(e,t.text,e.doc.mode,n,(function(e,t){return o.push(e,t)}),s,i);for(var a=n.state,l=r((function(r){n.baseTokens=o;var i=e.state.overlays[r],l=1,u=0;n.state=!0,wt(e,t.text,i.mode,n,(function(e,t){for(var n=l;u<e;){var r=o[l];r>e&&o.splice(l,1,e,o[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(i.opaque)o.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var s=o[n+1];o[n+1]=(s?s+" ":"")+"overlay "+t}}),s),n.state=a,n.baseTokens=null,n.baseTokenPos=1}),"loop"),u=0;u<e.state.overlays.length;++u)l(u);return{styles:o,classes:s.bgClass||s.textClass?s:null}}function yt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=bt(e,tt(t)),i=t.text.length>e.options.maxHighlightLength&&We(e.doc.mode,r.state),o=vt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function bt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new gt(r,!0,t);var o=St(e,t,n),s=o>r.first&&Ye(r,o-1).stateAfter,a=s?gt.fromSaved(r,s,o):new gt(r,Ke(r.mode),o);return r.iter(o,t,(function(n){Et(e,n.text,a);var r=a.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?a.save():null,a.nextLine()})),n&&(r.modeFrontier=a.line),a}function Et(e,t,n,r){var i=e.doc.mode,o=new Je(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Tt(i,n.state);!o.eol();)_t(i,o,n.state),o.start=o.pos}function Tt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Qe(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function _t(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Qe(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}gt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},gt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gt.fromSaved=function(e,t,n){return t instanceof mt?new gt(e,We(e.mode,t.state),n,t.lookAhead):new gt(e,We(e.mode,t),n)},gt.prototype.save=function(e){var t=!1!==e?We(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new mt(t,this.maxLookAhead):t},r(vt,"highlightLine"),r(yt,"getLineStyles"),r(bt,"getContextBefore"),r(Et,"processLine"),r(Tt,"callBlankLine"),r(_t,"readToken");var kt=r((function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n}),"Token");function xt(e,t,n,r){var i,o,s=e.doc,a=s.mode,l=Ye(s,(t=dt(s,t)).line),u=bt(e,t.line,n),c=new Je(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=_t(a,c,u.state),r&&o.push(new kt(c,i,We(s.mode,u.state)));return r?o:new kt(c,i,u.state)}function Ct(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function wt(e,t,n,r,i,o,s){var a=n.flattenSpans;null==a&&(a=e.options.flattenSpans);var l,u=0,c=null,f=new Je(t,e.options.tabSize,r),d=e.options.addModeClass&&[null];for(""==t&&Ct(Tt(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(a=!1,s&&Et(e,t,r,f.pos),f.pos=t.length,l=null):l=Ct(_t(n,f,r.state,d),o),d){var p=d[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!a||c!=l){for(;u<f.start;)i(u=Math.min(f.start,u+5e3),c);c=l}f.start=f.pos}for(;u<f.pos;){var h=Math.min(f.pos,u+5e3);i(h,c),u=h}}function St(e,t,n){for(var r,i,o=e.doc,s=n?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>s;--a){if(a<=o.first)return o.first;var l=Ye(o,a-1),u=l.stateAfter;if(u&&(!n||a+(u instanceof mt?u.lookAhead:0)<=o.modeFrontier))return a;var c=V(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=a-1,r=c)}return i}function Nt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Ye(e,r).stateAfter;if(i&&(!(i instanceof mt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}r(xt,"takeToken"),r(Ct,"extractLineClasses"),r(wt,"runMode"),r(St,"findStartLine"),r(Nt,"retreatFrontier");var At=!1,Ot=!1;function It(){At=!0}function Dt(){Ot=!0}function Lt(e,t,n){this.marker=e,this.from=t,this.to=n}function Ft(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Mt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Rt(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Pt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],s=o.marker;if(null==o.from||(s.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==s.type&&(!n||!o.marker.insertLeft)){var a=null==o.to||(s.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Lt(s,o.from,a?null:o.to))}}return r}function jt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],s=o.marker;if(null==o.to||(s.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==s.type&&(!n||o.marker.insertLeft)){var a=null==o.from||(s.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Lt(s,a?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Vt(e,t){if(t.full)return null;var n=rt(e,t.from.line)&&Ye(e,t.from.line).markedSpans,r=rt(e,t.to.line)&&Ye(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,s=0==st(t.from,t.to),a=Pt(n,i,s),l=jt(r,o,s),u=1==t.text.length,c=K(t.text).length+(u?i:0);if(a)for(var f=0;f<a.length;++f){var d=a[f];if(null==d.to){var p=Ft(l,d.marker);p?u&&(d.to=null==p.to?null:p.to+c):d.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=c),null==m.from?Ft(a,m.marker)||(m.from=c,u&&(a||(a=[])).push(m)):(m.from+=c,u&&(a||(a=[])).push(m))}a&&(a=Ut(a)),l&&l!=a&&(l=Ut(l));var g=[a];if(!u){var v,y=t.text.length-2;if(y>0&&a)for(var b=0;b<a.length;++b)null==a[b].to&&(v||(v=[])).push(new Lt(a[b].marker,null,null));for(var E=0;E<y;++E)g.push(v);g.push(l)}return g}function Ut(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Bt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=B(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var s=r[o],a=s.find(0),l=0;l<i.length;++l){var u=i[l];if(!(st(u.to,a.from)<0||st(u.from,a.to)>0)){var c=[l,1],f=st(u.from,a.from),d=st(u.to,a.to);(f<0||!s.inclusiveLeft&&!f)&&c.push({from:u.from,to:a.from}),(d>0||!s.inclusiveRight&&!d)&&c.push({from:a.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}function qt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function zt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function $t(e){return e.inclusiveLeft?-1:0}function Ht(e){return e.inclusiveRight?1:0}function Gt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=st(r.from,i.from)||$t(e)-$t(t);if(o)return-o;var s=st(r.to,i.to)||Ht(e)-Ht(t);return s||t.id-e.id}function Wt(e,t){var n,r=Ot&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Gt(n,i.marker)<0)&&(n=i.marker);return n}function Qt(e){return Wt(e,!0)}function Kt(e){return Wt(e,!1)}function Jt(e,t){var n,r=Ot&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Gt(n,o.marker)<0)&&(n=o.marker)}return n}function Yt(e,t,n,r,i){var o=Ye(e,t),s=Ot&&o.markedSpans;if(s)for(var a=0;a<s.length;++a){var l=s[a];if(l.marker.collapsed){var u=l.marker.find(0),c=st(u.from,n)||$t(l.marker)-$t(i),f=st(u.to,r)||Ht(l.marker)-Ht(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?st(u.to,n)>=0:st(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?st(u.from,r)<=0:st(u.from,r)<0)))return!0}}}function Zt(e){for(var t;t=Qt(e);)e=t.find(-1,!0).line;return e}function Xt(e){for(var t;t=Kt(e);)e=t.find(1,!0).line;return e}function en(e){for(var t,n;t=Kt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function tn(e,t){var n=Ye(e,t),r=Zt(n);return n==r?t:tt(r)}function nn(e,t){if(t>e.lastLine())return t;var n,r=Ye(e,t);if(!rn(e,r))return t;for(;n=Kt(r);)r=n.find(1,!0).line;return tt(r)+1}function rn(e,t){var n=Ot&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&on(e,t,r))return!0}}function on(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return on(e,r.line,Ft(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&on(e,t,i))return!0}function sn(e){for(var t=0,n=(e=Zt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var s=0;s<o.children.length;++s){var a=o.children[s];if(a==n)break;t+=a.height}return t}function an(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Qt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Kt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function ln(e){var t=e.display,n=e.doc;t.maxLine=Ye(n,n.first),t.maxLineLength=an(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=an(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}r(It,"seeReadOnlySpans"),r(Dt,"seeCollapsedSpans"),r(Lt,"MarkedSpan"),r(Ft,"getMarkedSpanFor"),r(Mt,"removeMarkedSpan"),r(Rt,"addMarkedSpan"),r(Pt,"markedSpansBefore"),r(jt,"markedSpansAfter"),r(Vt,"stretchSpansOverChange"),r(Ut,"clearEmptySpans"),r(Bt,"removeReadOnlyRanges"),r(qt,"detachMarkedSpans"),r(zt,"attachMarkedSpans"),r($t,"extraLeft"),r(Ht,"extraRight"),r(Gt,"compareCollapsedMarkers"),r(Wt,"collapsedSpanAtSide"),r(Qt,"collapsedSpanAtStart"),r(Kt,"collapsedSpanAtEnd"),r(Jt,"collapsedSpanAround"),r(Yt,"conflictingCollapsedRange"),r(Zt,"visualLine"),r(Xt,"visualLineEnd"),r(en,"visualLineContinued"),r(tn,"visualLineNo"),r(nn,"visualLineEndNo"),r(rn,"lineIsHidden"),r(on,"lineIsHiddenInner"),r(sn,"heightAtLine"),r(an,"lineLength"),r(ln,"findMaxLine");var un=r((function(e,t,n){this.text=e,zt(this,t),this.height=n?n(this):1}),"Line");function cn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),qt(e),zt(e,n);var i=r?r(e):1;i!=e.height&&et(e,i)}function fn(e){e.parent=null,qt(e)}un.prototype.lineNo=function(){return tt(this)},Te(un),r(cn,"updateLine"),r(fn,"cleanUpLine");var dn={},pn={};function hn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?pn:dn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function mn(e,t){var n=I("span",null,null,u?"padding-right: .1px":null),r={pre:I("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,s=void 0;r.pos=0,r.addToken=vn,De(e.display.measure)&&(s=de(o,e.doc.direction))&&(r.addToken=bn(r.addToken,s)),r.map=[],Tn(o,r,yt(e,o,t!=e.display.externalMeasured&&tt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=M(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=M(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ie(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(u){var a=r.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=M(r.pre.className,r.textClass||"")),r}function gn(e){var t=O("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function vn(e,t,n,r,i,o,s){if(t){var u,c=e.splitSpaces?yn(t,e.trailingSpace):t,f=e.cm.state.specialChars,d=!1;if(f.test(t)){u=document.createDocumentFragment();for(var p=0;;){f.lastIndex=p;var h=f.exec(t),m=h?h.index-p:t.length-p;if(m){var g=document.createTextNode(c.slice(p,p+m));a&&l<9?u.appendChild(O("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=u.appendChild(O("span",Q(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=u.appendChild(O("span","\r"==h[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&l<9?u.appendChild(O("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&l<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||d||o||s){var E=n||"";r&&(E+=r),i&&(E+=i);var T=O("span",[u],E,o);if(s)for(var _ in s)s.hasOwnProperty(_)&&"style"!=_&&"class"!=_&&T.setAttribute(_,s[_]);return e.content.appendChild(T)}e.content.appendChild(u)}}function yn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function bn(e,t){return function(n,r,i,o,s,a,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var f=void 0,d=0;d<t.length&&!((f=t[d]).to>u&&f.from<=u);d++);if(f.to>=c)return e(n,r,i,o,s,a,l);e(n,r.slice(0,f.to-u),i,o,null,a,l),o=null,r=r.slice(f.to-u),u=f.to}}}function En(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Tn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var s,a,l,u,c,f,d,p=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=u=c=a="",d=null,f=null,v=1/0;for(var y=[],b=void 0,E=0;E<r.length;++E){var T=r[E],_=T.marker;if("bookmark"==_.type&&T.from==h&&_.widgetNode)y.push(_);else if(T.from<=h&&(null==T.to||T.to>h||_.collapsed&&T.to==h&&T.from==h)){if(null!=T.to&&T.to!=h&&v>T.to&&(v=T.to,u=""),_.className&&(l+=" "+_.className),_.css&&(a=(a?a+";":"")+_.css),_.startStyle&&T.from==h&&(c+=" "+_.startStyle),_.endStyle&&T.to==v&&(b||(b=[])).push(_.endStyle,T.to),_.title&&((d||(d={})).title=_.title),_.attributes)for(var k in _.attributes)(d||(d={}))[k]=_.attributes[k];_.collapsed&&(!f||Gt(f.marker,_)<0)&&(f=T)}else T.from>h&&v>T.from&&(v=T.from)}if(b)for(var x=0;x<b.length;x+=2)b[x+1]==v&&(u+=" "+b[x]);if(!f||f.from==h)for(var C=0;C<y.length;++C)En(t,0,y[C]);if(f&&(f.from||0)==h){if(En(t,(null==f.to?p+1:f.to)-h,f.marker,null==f.from),null==f.to)return;f.to==h&&(f=!1)}}if(h>=p)break;for(var w=Math.min(p,v);;){if(g){var S=h+g.length;if(!f){var N=S>w?g.slice(0,w-h):g;t.addToken(t,N,s?s+l:l,c,h+N.length==v?u:"",a,d)}if(S>=w){g=g.slice(w-h),h=w;break}h=S,c=""}g=i.slice(o,o=n[m++]),s=hn(n[m++],t.cm.options)}}else for(var A=1;A<n.length;A+=2)t.addToken(t,i.slice(o,o=n[A]),hn(n[A+1],t.cm.options))}function _n(e,t,n){this.line=t,this.rest=en(t),this.size=this.rest?tt(K(this.rest))-n+1:1,this.node=this.text=null,this.hidden=rn(e,t)}function kn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var s=new _n(e.doc,Ye(e.doc,o),o);r=o+s.size,i.push(s)}return i}r(hn,"interpretTokenStyle"),r(mn,"buildLineContent"),r(gn,"defaultSpecialCharPlaceholder"),r(vn,"buildToken"),r(yn,"splitSpaces"),r(bn,"buildTokenBadBidi"),r(En,"buildCollapsedSpan"),r(Tn,"insertLineContent"),r(_n,"LineView"),r(kn,"buildViewArray");var xn=null;function Cn(e){xn?xn.ops.push(e):e.ownsGroup=xn={ops:[e],delayedCallbacks:[]}}function wn(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function Sn(e,t){var n=e.ownsGroup;if(n)try{wn(n)}finally{xn=null,t(n)}}r(Cn,"pushOperation"),r(wn,"fireCallbacksForOps"),r(Sn,"finishOperation");var Nn=null;function An(e,t){var n=me(e,t);if(n.length){var i,o=Array.prototype.slice.call(arguments,2);xn?i=xn.delayedCallbacks:Nn?i=Nn:(i=Nn=[],setTimeout(On,0));for(var s=r((function(e){i.push((function(){return n[e].apply(null,o)}))}),"loop"),a=0;a<n.length;++a)s(a)}}function On(){var e=Nn;Nn=null;for(var t=0;t<e.length;++t)e[t]()}function In(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Mn(e,t):"gutter"==o?Pn(e,t,n,r):"class"==o?Rn(e,t):"widget"==o&&jn(e,t,r)}t.changes=null}function Dn(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&l<8&&(e.node.style.zIndex=2)),e.node}function Ln(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Dn(t);t.background=r.insertBefore(O("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Fn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):mn(e,t)}function Mn(e,t){var n=t.text.className,r=Fn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Rn(e,t)):n&&(t.text.className=n)}function Rn(e,t){Ln(e,t),t.line.wrapClass?Dn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Pn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Dn(t);t.gutterBackground=O("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var s=Dn(t),a=t.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(a.setAttribute("aria-hidden","true"),e.display.input.setUneditable(a),s.insertBefore(a,t.text),t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=a.appendChild(O("div",it(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&a.appendChild(O("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function jn(e,t,n){t.alignable&&(t.alignable=null);for(var r=C("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Un(e,t,n)}function Vn(e,t,n,r){var i=Fn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Rn(e,t),Pn(e,t,n,r),Un(e,t,r),t.node}function Un(e,t,n){if(Bn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Bn(e,t.rest[r],t,n,!1)}function Bn(e,t,n,r,i){if(t.widgets)for(var o=Dn(n),s=0,a=t.widgets;s<a.length;++s){var l=a[s],u=O("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),qn(l,u,n,r),e.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),An(l,"redraw")}}function qn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function zn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),A(t.display.measure,O("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function $n(e,t){for(var n=we(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Hn(e){return e.lineSpace.offsetTop}function Gn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Wn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=A(e.measure,O("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Qn(e){return 50-e.display.nativeBarWidth}function Kn(e){return e.display.scroller.clientWidth-Qn(e)-e.display.barWidth}function Jn(e){return e.display.scroller.clientHeight-Qn(e)-e.display.barHeight}function Yn(e,t,n){var r=e.options.lineWrapping,i=r&&Kn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var s=t.text.firstChild.getClientRects(),a=0;a<s.length-1;a++){var l=s[a],u=s[a+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Zn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(tt(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Xn(e,t){var n=tt(t=Zt(t)),r=e.display.externalMeasured=new _n(e.doc,t,n);r.lineN=n;var i=r.built=mn(e,r);return r.text=i.pre,A(e.display.lineMeasure,i.pre),r}function er(e,t,n,r){return rr(e,nr(e,t),n,r)}function tr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Rr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function nr(e,t){var n=tt(t),r=tr(e,n);r&&!r.text?r=null:r&&r.changes&&(In(e,r,n,Ir(e)),e.curOp.forceUpdate=!0),r||(r=Xn(e,t));var i=Zn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function rr(e,t,n,r,i){t.before&&(n=-1);var o,s=n+(r||"");return t.cache.hasOwnProperty(s)?o=t.cache[s]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Yn(e,t.view,t.rect),t.hasHeights=!0),(o=lr(e,t,n,r)).bogus||(t.cache[s]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}r(An,"signalLater"),r(On,"fireOrphanDelayed"),r(In,"updateLineForChanges"),r(Dn,"ensureLineWrapped"),r(Ln,"updateLineBackground"),r(Fn,"getLineContent"),r(Mn,"updateLineText"),r(Rn,"updateLineClasses"),r(Pn,"updateLineGutter"),r(jn,"updateLineWidgets"),r(Vn,"buildLineElement"),r(Un,"insertLineWidgets"),r(Bn,"insertLineWidgetsFor"),r(qn,"positionLineWidget"),r(zn,"widgetHeight"),r($n,"eventInWidget"),r(Hn,"paddingTop"),r(Gn,"paddingVert"),r(Wn,"paddingH"),r(Qn,"scrollGap"),r(Kn,"displayWidth"),r(Jn,"displayHeight"),r(Yn,"ensureLineHeights"),r(Zn,"mapFromLineView"),r(Xn,"updateExternalMeasurement"),r(er,"measureChar"),r(tr,"findViewForLine"),r(nr,"prepareMeasureForLine"),r(rr,"measureCharPrepared");var ir,or={left:0,right:0,top:0,bottom:0};function sr(e,t,n){for(var r,i,o,s,a,l,u=0;u<e.length;u+=3)if(a=e[u],l=e[u+1],t<a?(i=0,o=1,s="left"):t<l?o=1+(i=t-a):(u==e.length-3||t==l&&e[u+3]>t)&&(i=(o=l-a)-1,t>=l&&(s="right")),null!=i){if(r=e[u+2],a==l&&n==(r.insertLeft?"left":"right")&&(s=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],s="left";if("right"==n&&i==l-a)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],s="right";break}return{node:r,start:i,end:o,collapse:s,coverStart:a,coverEnd:l}}function ar(e,t){var n=or;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function lr(e,t,n,r){var i,o=sr(t.map,n,r),s=o.node,u=o.start,c=o.end,f=o.collapse;if(3==s.nodeType){for(var d=0;d<4;d++){for(;u&&oe(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&oe(t.line.text.charAt(o.coverStart+c));)++c;if((i=a&&l<9&&0==u&&c==o.coverEnd-o.coverStart?s.parentNode.getBoundingClientRect():ar(w(s,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,f="right"}a&&l<11&&(i=ur(e.display.measure,i))}else{var p;u>0&&(f=r="right"),i=e.options.lineWrapping&&(p=s.getClientRects()).length>1?p["right"==r?p.length-1:0]:s.getBoundingClientRect()}if(a&&l<9&&!u&&(!i||!i.left&&!i.right)){var h=s.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Or(e.display),top:h.top,bottom:h.bottom}:or}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var E=b?y[b-1]:0,T=y[b],_={left:("right"==f?i.right:i.left)-t.rect.left,right:("left"==f?i.left:i.right)-t.rect.left,top:E,bottom:T};return i.left||i.right||(_.bogus=!0),e.options.singleCursorHeightPerLine||(_.rtop=m,_.rbottom=g),_}function ur(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!je(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function cr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function fr(e){e.display.externalMeasure=null,N(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)cr(e.display.view[t])}function dr(e){fr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function pr(){return f&&v?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hr(){return f&&v?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function mr(e){var t=Zt(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=zn(t[r]));return n}function gr(e,t,n,r,i){if(!i){var o=mr(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var s=sn(t);if("local"==r?s+=Hn(e.display):s-=e.display.viewOffset,"page"==r||"window"==r){var a=e.display.lineSpace.getBoundingClientRect();s+=a.top+("window"==r?0:hr());var l=a.left+("window"==r?0:pr());n.left+=l,n.right+=l}return n.top+=s,n.bottom+=s,n}function vr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=pr(),i-=hr();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var s=e.display.lineSpace.getBoundingClientRect();return{left:r-s.left,top:i-s.top}}function yr(e,t,n,r,i){return r||(r=Ye(e.doc,t.line)),gr(e,r,er(e,r,t.ch,i),n)}function br(e,t,n,i,o,s){function a(t,r){var a=rr(e,o,t,r?"right":"left",s);return r?a.left=a.right:a.right=a.left,gr(e,i,a,n)}i=i||Ye(e.doc,t.line),o||(o=nr(e,i)),r(a,"get");var l=de(i,e.doc.direction),u=t.ch,c=t.sticky;if(u>=i.text.length?(u=i.text.length,c="before"):u<=0&&(u=0,c="after"),!l)return a("before"==c?u-1:u,"before"==c);function f(e,t,n){return a(n?e-1:e,1==l[t].level!=n)}r(f,"getBidi");var d=ce(l,u,c),p=ue,h=f(u,d,"before"==c);return null!=p&&(h.other=f(u,p,"before"!=c)),h}function Er(e,t){var n=0;t=dt(e.doc,t),e.options.lineWrapping||(n=Or(e.display)*t.ch);var r=Ye(e.doc,t.line),i=sn(r)+Hn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Tr(e,t,n,r,i){var o=ot(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function _r(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Tr(r.first,0,null,-1,-1);var i=nt(r,n),o=r.first+r.size-1;if(i>o)return Tr(r.first+r.size-1,Ye(r,o).text.length,null,1,1);t<0&&(t=0);for(var s=Ye(r,i);;){var a=wr(e,s,i,t,n),l=Jt(s,a.ch+(a.xRel>0||a.outside>0?1:0));if(!l)return a;var u=l.find(1);if(u.line==i)return u;s=Ye(r,i=u.line)}}function kr(e,t,n,r){r-=mr(t);var i=t.text.length,o=ae((function(t){return rr(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=ae((function(t){return rr(e,n,t).top>r}),o,i)}}function xr(e,t,n,r){return n||(n=nr(e,t)),kr(e,t,n,gr(e,t,rr(e,n,r),"line").top)}function Cr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function wr(e,t,n,r,i){i-=sn(t);var o=nr(e,t),s=mr(t),a=0,l=t.text.length,u=!0,c=de(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?Nr:Sr)(e,t,n,o,c,r,i);a=(u=1!=f.level)?f.from:f.to-1,l=u?f.to:f.from-1}var d,p,h=null,m=null,g=ae((function(t){var n=rr(e,o,t);return n.top+=s,n.bottom+=s,!!Cr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),a,l),v=!1;if(m){var y=r-m.left<m.right-r,b=y==u;g=h+(b?0:1),p=b?"after":"before",d=y?m.left:m.right}else{u||g!=l&&g!=a||g++,p=0==g?"after":g==t.text.length?"before":rr(e,o,g-(u?1:0)).bottom+s<=i==u?"after":"before";var E=br(e,ot(n,g,p),"line",t,o);d=E.left,v=i<E.top?-1:i>=E.bottom?1:0}return Tr(n,g=se(t.text,g,1),p,v,r-d)}function Sr(e,t,n,r,i,o,s){var a=ae((function(a){var l=i[a],u=1!=l.level;return Cr(br(e,ot(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,s,!0)}),0,i.length-1),l=i[a];if(a>0){var u=1!=l.level,c=br(e,ot(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Cr(c,o,s,!0)&&c.top>s&&(l=i[a-1])}return l}function Nr(e,t,n,r,i,o,s){var a=kr(e,t,r,s),l=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,d=0;d<i.length;d++){var p=i[d];if(!(p.from>=u||p.to<=l)){var h=rr(e,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,m=h<o?o-h+1e9:h-o;(!c||f>m)&&(c=p,f=m)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function Ar(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ir){ir=O("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ir.appendChild(document.createTextNode("x")),ir.appendChild(O("br"));ir.appendChild(document.createTextNode("x"))}A(e.measure,ir);var n=ir.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),N(e.measure),n||1}function Or(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),n=O("pre",[t],"CodeMirror-line-like");A(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ir(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,s=0;o;o=o.nextSibling,++s){var a=e.display.gutterSpecs[s].className;n[a]=o.offsetLeft+o.clientLeft+i,r[a]=o.clientWidth}return{fixedPos:Dr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Dr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Lr(e){var t=Ar(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Or(e.display)-3);return function(i){if(rn(e.doc,i))return 0;var o=0;if(i.widgets)for(var s=0;s<i.widgets.length;s++)i.widgets[s].height&&(o+=i.widgets[s].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Fr(e){var t=e.doc,n=Lr(e);t.iter((function(e){var t=n(e);t!=e.height&&et(e,t)}))}function Mr(e,t,n,r){var i=e.display;if(!n&&"true"==we(t).getAttribute("cm-not-content"))return null;var o,s,a=i.lineSpace.getBoundingClientRect();try{o=t.clientX-a.left,s=t.clientY-a.top}catch(e){return null}var l,u=_r(e,o,s);if(r&&u.xRel>0&&(l=Ye(e.doc,u.line).text).length==u.ch){var c=V(l,l.length,e.options.tabSize)-l.length;u=ot(u.line,Math.max(0,Math.round((o-Wn(e.display).left)/Or(e.display))-c))}return u}function Rr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function Pr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ot&&tn(e.doc,t)<i.viewTo&&Vr(e);else if(n<=i.viewFrom)Ot&&nn(e.doc,n+r)>i.viewFrom?Vr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Vr(e);else if(t<=i.viewFrom){var o=Ur(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Vr(e)}else if(n>=i.viewTo){var s=Ur(e,t,t,-1);s?(i.view=i.view.slice(0,s.index),i.viewTo=s.lineN):Vr(e)}else{var a=Ur(e,t,t,-1),l=Ur(e,n,n+r,1);a&&l?(i.view=i.view.slice(0,a.index).concat(kn(e,a.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Vr(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function jr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Rr(e,t)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==B(s,n)&&s.push(n)}}}function Vr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ur(e,t,n,r){var i,o=Rr(e,t),s=e.display.view;if(!Ot||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var a=e.display.viewFrom,l=0;l<o;l++)a+=s[l].size;if(a!=t){if(r>0){if(o==s.length-1)return null;i=a+s[o].size-t,o++}else i=a-t;t+=i,n+=i}for(;tn(e.doc,n)!=n;){if(o==(r<0?0:s.length-1))return null;n+=r*s[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Br(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=kn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=kn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Rr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(kn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Rr(e,n)))),r.viewTo=n}function qr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function zr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function $r(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),s=e.options.$customCursor;s&&(t=!0);for(var a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var l=n.sel.ranges[a];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var u=l.empty();if(s){var c=s(e,l);c&&Hr(e,c,i)}else(u||e.options.showCursorWhenSelecting)&&Hr(e,l.head,i);u||Wr(e,l,o)}}return r}function Hr(e,t,n){var r=br(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(O("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=yr(e,t,"div",null,null),s=o.right-o.left;i.style.width=(s>0?s:e.defaultCharWidth())+"px"}if(r.other){var a=n.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Gr(e,t){return e.top-t.top||e.left-t.left}function Wr(e,t,n){var i=e.display,o=e.doc,s=document.createDocumentFragment(),a=Wn(e.display),l=a.left,u=Math.max(i.sizerWidth,Kn(e)-i.sizer.offsetLeft)-a.right,c="ltr"==o.direction;function f(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),s.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?u-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,i){var s,a,d=Ye(o,t),p=d.text.length;function h(n,r){return yr(e,ot(t,n),"div",d,r)}function m(t,n,r){var i=xr(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return h("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}r(h,"coords"),r(m,"wrapX");var g=de(d,o.direction);return le(g,n||0,null==i?p:i,(function(e,t,r,o){var d="ltr"==r,v=h(e,d?"left":"right"),y=h(t-1,d?"right":"left"),b=null==n&&0==e,E=null==i&&t==p,T=0==o,_=!g||o==g.length-1;if(y.top-v.top<=3){var k=(c?E:b)&&_,x=(c?b:E)&&T?l:(d?v:y).left,C=k?u:(d?y:v).right;f(x,v.top,C-x,v.bottom)}else{var w,S,N,A;d?(w=c&&b&&T?l:v.left,S=c?u:m(e,r,"before"),N=c?l:m(t,r,"after"),A=c&&E&&_?u:y.right):(w=c?m(e,r,"before"):l,S=!c&&b&&T?u:v.right,N=!c&&E&&_?l:y.left,A=c?m(t,r,"after"):u),f(w,v.top,S-w,v.bottom),v.bottom<y.top&&f(l,v.bottom,null,y.top),f(N,y.top,A-N,y.bottom)}(!s||Gr(v,s)<0)&&(s=v),Gr(y,s)<0&&(s=y),(!a||Gr(v,a)<0)&&(a=v),Gr(y,a)<0&&(a=y)})),{start:s,end:a}}r(f,"add"),r(d,"drawForLine");var p=t.from(),h=t.to();if(p.line==h.line)d(p.line,p.ch,h.ch);else{var m=Ye(o,p.line),g=Ye(o,h.line),v=Zt(m)==Zt(g),y=d(p.line,p.ch,v?m.text.length+1:null).end,b=d(h.line,v?0:null,h.ch).start;v&&(y.top<b.top-2?(f(y.right,y.top,null,y.bottom),f(l,b.top,b.left,b.bottom)):f(y.right,y.top,b.left-y.right,y.bottom)),y.bottom<b.top&&f(l,y.bottom,null,b.top)}n.appendChild(s)}function Qr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||Zr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Kr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Yr(e))}function Jr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Zr(e))}),100)}function Yr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,F(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),u&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Qr(e))}function Zr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Xr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,s=0;s<t.view.length;s++){var u=t.view[s],c=e.options.lineWrapping,f=void 0,d=0;if(!u.hidden){if(i+=u.line.height,a&&l<8){var p=u.node.offsetTop+u.node.offsetHeight;f=p-n,n=p}else{var h=u.node.getBoundingClientRect();f=h.bottom-h.top,!c&&u.text.firstChild&&(d=u.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=u.line.height-f;if((m>.005||m<-.005)&&(i<r&&(o-=m),et(u.line,f),ei(u.line),u.rest))for(var g=0;g<u.rest.length;g++)ei(u.rest[g]);if(d>e.display.sizerWidth){var v=Math.ceil(d/Or(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ei(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ti(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Hn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=nt(t,r),s=nt(t,i);if(n&&n.ensure){var a=n.ensure.from.line,l=n.ensure.to.line;a<o?(o=a,s=nt(t,sn(Ye(t,a))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=s&&(o=nt(t,sn(Ye(t,l))-e.wrapper.clientHeight),s=l)}return{from:o,to:Math.max(s,o+1)}}function ni(e,t){if(!ye(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var o=O("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Hn(e.display))+"px;\n height: "+(t.bottom-t.top+Qn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ri(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ot(t.line,t.ch+1,"before"):t,t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var s=!1,a=br(e,t),l=n&&n!=t?br(e,n):a,u=oi(e,i={left:Math.min(a.left,l.left),top:Math.min(a.top,l.top)-r,right:Math.max(a.left,l.left),bottom:Math.max(a.bottom,l.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(di(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(s=!0)),null!=u.scrollLeft&&(hi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(s=!0)),!s)break}return i}function ii(e,t){var n=oi(e,t);null!=n.scrollTop&&di(e,n.scrollTop),null!=n.scrollLeft&&hi(e,n.scrollLeft)}function oi(e,t){var n=e.display,r=Ar(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Jn(e),s={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+Gn(n),l=t.top<r,u=t.bottom>a-r;if(t.top<i)s.scrollTop=l?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?a:t.bottom)-o);c!=i&&(s.scrollTop=c)}var f=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,p=Kn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?s.scrollLeft=0:t.left<d?s.scrollLeft=Math.max(0,t.left+f-(h?0:10)):t.right>p+d-3&&(s.scrollLeft=t.right+(h?0:10)-p),s}function si(e,t){null!=t&&(ci(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ai(e){ci(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function li(e,t,n){null==t&&null==n||ci(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function ui(e,t){ci(e),e.curOp.scrollToPos=t}function ci(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,fi(e,Er(e,t.from),Er(e,t.to),t.margin))}function fi(e,t,n,r){var i=oi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});li(e,i.scrollLeft,i.scrollTop)}function di(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||zi(e,{top:t}),pi(e,t,!0),n&&zi(e),Mi(e,100))}function pi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function hi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Wi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function mi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Gn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Qn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}r(sr,"nodeAndOffsetInLineMap"),r(ar,"getUsefulRect"),r(lr,"measureCharInner"),r(ur,"maybeUpdateRectForZooming"),r(cr,"clearLineMeasurementCacheFor"),r(fr,"clearLineMeasurementCache"),r(dr,"clearCaches"),r(pr,"pageScrollX"),r(hr,"pageScrollY"),r(mr,"widgetTopHeight"),r(gr,"intoCoordSystem"),r(vr,"fromCoordSystem"),r(yr,"charCoords"),r(br,"cursorCoords"),r(Er,"estimateCoords"),r(Tr,"PosWithInfo"),r(_r,"coordsChar"),r(kr,"wrappedLineExtent"),r(xr,"wrappedLineExtentChar"),r(Cr,"boxIsAfter"),r(wr,"coordsCharInner"),r(Sr,"coordsBidiPart"),r(Nr,"coordsBidiPartWrapped"),r(Ar,"textHeight"),r(Or,"charWidth"),r(Ir,"getDimensions"),r(Dr,"compensateForHScroll"),r(Lr,"estimateHeight"),r(Fr,"estimateLineHeights"),r(Mr,"posFromMouse"),r(Rr,"findViewIndex"),r(Pr,"regChange"),r(jr,"regLineChange"),r(Vr,"resetView"),r(Ur,"viewCuttingPoint"),r(Br,"adjustView"),r(qr,"countDirtyView"),r(zr,"updateSelection"),r($r,"prepareSelection"),r(Hr,"drawSelectionCursor"),r(Gr,"cmpCoords"),r(Wr,"drawSelectionRange"),r(Qr,"restartBlink"),r(Kr,"ensureFocus"),r(Jr,"delayBlurEvent"),r(Yr,"onFocus"),r(Zr,"onBlur"),r(Xr,"updateHeightsInViewport"),r(ei,"updateWidgetHeight"),r(ti,"visibleLines"),r(ni,"maybeScrollWindow"),r(ri,"scrollPosIntoView"),r(ii,"scrollIntoView"),r(oi,"calculateScrollPos"),r(si,"addToScrollTop"),r(ai,"ensureCursorVisible"),r(li,"scrollToCoords"),r(ui,"scrollToRange"),r(ci,"resolveScrollToPos"),r(fi,"scrollToCoordsRange"),r(di,"updateScrollTop"),r(pi,"setScrollTop"),r(hi,"setScrollLeft"),r(mi,"measureForScrollbars");var gi=r((function(e,t,n){this.cm=n;var r=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),he(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),he(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}),"NativeScrollbars");gi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},gi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},gi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},gi.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new U,this.disableVert=new U},gi.prototype.enableZeroWidthBar=function(e,t,n){function i(){var r=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,i)}e.style.pointerEvents="auto",r(i,"maybeDisable"),t.set(1e3,i)},gi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vi=r((function(){}),"NullScrollbars");function yi(e,t){t||(t=mi(e));var n=e.display.barWidth,r=e.display.barHeight;bi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Xr(e),bi(e,mi(e)),n=e.display.barWidth,r=e.display.barHeight}function bi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}vi.prototype.update=function(){return{bottom:0,right:0}},vi.prototype.setScrollLeft=function(){},vi.prototype.setScrollTop=function(){},vi.prototype.clear=function(){},r(yi,"updateScrollbars"),r(bi,"updateScrollbarsInner");var Ei={native:gi,null:vi};function Ti(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ei[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),he(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?hi(e,t):di(e,t)}),e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}r(Ti,"initScrollbars");var _i=0;function ki(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++_i,markArrays:null},Cn(e.curOp)}function xi(e){var t=e.curOp;t&&Sn(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Ci(e)}))}function Ci(e){for(var t=e.ops,n=0;n<t.length;n++)wi(t[n]);for(var r=0;r<t.length;r++)Si(t[r]);for(var i=0;i<t.length;i++)Ni(t[i]);for(var o=0;o<t.length;o++)Ai(t[o]);for(var s=0;s<t.length;s++)Oi(t[s])}function wi(e){var t=e.cm,n=t.display;ji(t),e.updateMaxLine&&ln(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Pi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Si(e){e.updatedDisplay=e.mustUpdate&&Bi(e.cm,e.update)}function Ni(e){var t=e.cm,n=t.display;e.updatedDisplay&&Xr(t),e.barMeasure=mi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=er(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Qn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Kn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ai(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&hi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==L();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&yi(t,e.barMeasure),e.updatedDisplay&&Gi(t,e.barMeasure),e.selectionChanged&&Qr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Kr(e.cm)}function Oi(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&qi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&pi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&hi(t,e.scrollLeft,!0,!0),e.scrollToPos&&ni(t,ri(t,dt(r,e.scrollToPos.from),dt(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var s=0;s<i.length;++s)i[s].lines.length||ve(i[s],"hide");if(o)for(var a=0;a<o.length;++a)o[a].lines.length&&ve(o[a],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ve(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ii(e,t){if(e.curOp)return t();ki(e);try{return t()}finally{xi(e)}}function Di(e,t){return function(){if(e.curOp)return t.apply(e,arguments);ki(e);try{return t.apply(e,arguments)}finally{xi(e)}}}function Li(e){return function(){if(this.curOp)return e.apply(this,arguments);ki(this);try{return e.apply(this,arguments)}finally{xi(this)}}}function Fi(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);ki(t);try{return e.apply(this,arguments)}finally{xi(t)}}}function Mi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,P(Ri,e))}function Ri(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=bt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var s=o.styles,a=o.text.length>e.options.maxHighlightLength?We(t.mode,r.state):null,l=vt(e,o,r,!0);a&&(r.state=a),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!s||s.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!f&&d<s.length;++d)f=s[d]!=o.styles[d];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Et(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Mi(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Ii(e,(function(){for(var t=0;t<i.length;t++)jr(e,i[t],"text")}))}}r(ki,"startOperation"),r(xi,"endOperation"),r(Ci,"endOperations"),r(wi,"endOperation_R1"),r(Si,"endOperation_W1"),r(Ni,"endOperation_R2"),r(Ai,"endOperation_W2"),r(Oi,"endOperation_finish"),r(Ii,"runInOp"),r(Di,"operation"),r(Li,"methodOp"),r(Fi,"docMethodOp"),r(Mi,"startWorker"),r(Ri,"highlightWorker");var Pi=r((function(e,t,n){var r=e.display;this.viewport=t,this.visible=ti(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Kn(e),this.force=n,this.dims=Ir(e),this.events=[]}),"DisplayUpdate");function ji(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Qn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Qn(e)+"px",t.scrollbarsClipped=!0)}function Vi(e){if(e.hasFocus())return null;var t=L();if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Ui(e){if(e&&e.activeElt&&e.activeElt!=L()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function Bi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Vr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==qr(e))return!1;Qi(e)&&(Vr(e),t.dims=Ir(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),s=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>s&&n.viewTo-s<20&&(s=Math.min(i,n.viewTo)),Ot&&(o=tn(e.doc,o),s=nn(e.doc,s));var a=o!=n.viewFrom||s!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Br(e,o,s),n.viewOffset=sn(Ye(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=qr(e);if(!a&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=Vi(e);return l>4&&(n.lineDiv.style.display="none"),$i(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Ui(u),N(n.cursorDiv),N(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Mi(e,400)),n.updateLineNumbers=null,!0}function qi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Kn(e))r&&(t.visible=ti(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Gn(e.display)-Jn(e),n.top)}),t.visible=ti(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Bi(e,t))break;Xr(e);var i=mi(e);zr(e),yi(e,i),Gi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function zi(e,t){var n=new Pi(e,t);if(Bi(e,n)){Xr(e),qi(e,n);var r=mi(e);zr(e),yi(e,r),Gi(e,r),n.finish()}}function $i(e,t,n){var i=e.display,o=e.options.lineNumbers,s=i.lineDiv,a=s.firstChild;function l(t){var n=t.nextSibling;return u&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}r(l,"rm");for(var c=i.view,f=i.viewFrom,d=0;d<c.length;d++){var p=c[d];if(p.hidden);else if(p.node&&p.node.parentNode==s){for(;a!=p.node;)a=l(a);var h=o&&null!=t&&t<=f&&p.lineNumber;p.changes&&(B(p.changes,"gutter")>-1&&(h=!1),In(e,p,f,n)),h&&(N(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(it(e.options,f)))),a=p.node.nextSibling}else{var m=Vn(e,p,f,n);s.insertBefore(m,a)}f+=p.size}for(;a;)a=l(a)}function Hi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",An(e,"gutterChanged",e)}function Gi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Qn(e)+"px"}function Wi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Dr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",s=0;s<n.length;s++)if(!n[s].hidden){e.options.fixedGutter&&(n[s].gutter&&(n[s].gutter.style.left=o),n[s].gutterBackground&&(n[s].gutterBackground.style.left=o));var a=n[s].alignable;if(a)for(var l=0;l<a.length;l++)a[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Qi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=it(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(O("div",[O("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,s=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-s)+1,r.lineNumWidth=r.lineNumInnerWidth+s,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Hi(e.display),!0}return!1}function Ki(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],s=null;if("string"!=typeof o&&(s=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:s})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Ji(e){var t=e.gutters,n=e.gutterSpecs;N(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,s=i.style,a=t.appendChild(O("div",null,"CodeMirror-gutter "+o));s&&(a.style.cssText=s),"CodeMirror-linenumbers"==o&&(e.lineGutter=a,a.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Hi(e)}function Yi(e){Ji(e.display),Pr(e),Wi(e)}function Zi(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=I("div",null,"CodeMirror-code"),o.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=O("div",null,"CodeMirror-cursors"),o.measure=O("div",null,"CodeMirror-measure"),o.lineMeasure=O("div",null,"CodeMirror-measure"),o.lineSpace=I("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var s=I("div",[o.lineSpace],"CodeMirror-lines");o.mover=O("div",[s],null,"position: relative"),o.sizer=O("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=O("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=O("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=O("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=O("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),o.wrapper.setAttribute("translate","no"),a&&l<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),u||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Ki(i.gutters,i.lineNumbers),Ji(o),r.init(o)}Pi.prototype.signal=function(e,t){Ee(e,t)&&this.events.push(arguments)},Pi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ve.apply(null,this.events[e])},r(ji,"maybeClipScrollbars"),r(Vi,"selectionSnapshot"),r(Ui,"restoreSelection"),r(Bi,"updateDisplayIfNeeded"),r(qi,"postUpdateDisplay"),r(zi,"updateDisplaySimple"),r($i,"patchDisplay"),r(Hi,"updateGutterSpace"),r(Gi,"setDocumentHeight"),r(Wi,"alignHorizontally"),r(Qi,"maybeUpdateLineNumberWidth"),r(Ki,"getGutters"),r(Ji,"renderGutters"),r(Yi,"updateGutters"),r(Zi,"Display");var Xi=0,eo=null;function to(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function no(e){var t=to(e);return t.x*=eo,t.y*=eo,t}function ro(e,t){var r=to(t),i=r.x,o=r.y,s=eo;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,s=1);var a=e.display,l=a.scroller,c=l.scrollWidth>l.clientWidth,f=l.scrollHeight>l.clientHeight;if(i&&c||o&&f){if(o&&b&&u)e:for(var p=t.target,h=a.view;p!=l;p=p.parentNode)for(var m=0;m<h.length;m++)if(h[m].node==p){e.display.currentWheelTarget=p;break e}if(i&&!n&&!d&&null!=s)return o&&f&&di(e,Math.max(0,l.scrollTop+o*s)),hi(e,Math.max(0,l.scrollLeft+i*s)),(!o||o&&f)&&_e(t),void(a.wheelStartX=null);if(o&&null!=s){var g=o*s,v=e.doc.scrollTop,y=v+a.wrapper.clientHeight;g<0?v=Math.max(0,v+g-50):y=Math.min(e.doc.height,y+g+50),zi(e,{top:v,bottom:y})}Xi<20&&0!==t.deltaMode&&(null==a.wheelStartX?(a.wheelStartX=l.scrollLeft,a.wheelStartY=l.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var e=l.scrollLeft-a.wheelStartX,t=l.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(eo=(eo*Xi+n)/(Xi+1),++Xi)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?eo=-.53:n?eo=15:f?eo=-.7:p&&(eo=-1/3),r(to,"wheelEventDelta"),r(no,"wheelEventPixels"),r(ro,"onScrollWheel");var io=r((function(e,t){this.ranges=e,this.primIndex=t}),"Selection");io.prototype.primary=function(){return this.ranges[this.primIndex]},io.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!at(n.anchor,r.anchor)||!at(n.head,r.head))return!1}return!0},io.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new oo(lt(this.ranges[t].anchor),lt(this.ranges[t].head));return new io(e,this.primIndex)},io.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},io.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(st(t,r.from())>=0&&st(e,r.to())<=0)return n}return-1};var oo=r((function(e,t){this.anchor=e,this.head=t}),"Range");function so(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return st(e.from(),t.from())})),n=B(t,i);for(var o=1;o<t.length;o++){var s=t[o],a=t[o-1],l=st(a.to(),s.from());if(r&&!s.empty()?l>0:l>=0){var u=ct(a.from(),s.from()),c=ut(a.to(),s.to()),f=a.empty()?s.from()==s.head:a.from()==a.head;o<=n&&--n,t.splice(--o,2,new oo(f?c:u,f?u:c))}}return new io(t,n)}function ao(e,t){return new io([new oo(e,t||e)],0)}function lo(e){return e.text?ot(e.from.line+e.text.length-1,K(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function uo(e,t){if(st(e,t.from)<0)return e;if(st(e,t.to)<=0)return lo(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=lo(t).ch-t.to.ch),ot(n,r)}function co(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new oo(uo(i.anchor,t),uo(i.head,t)))}return so(e.cm,n,e.sel.primIndex)}function fo(e,t,n){return e.line==t.line?ot(n.line,e.ch-t.ch+n.ch):ot(n.line+(e.line-t.line),e.ch)}function po(e,t,n){for(var r=[],i=ot(e.first,0),o=i,s=0;s<t.length;s++){var a=t[s],l=fo(a.from,i,o),u=fo(lo(a),i,o);if(i=a.to,o=u,"around"==n){var c=e.sel.ranges[s],f=st(c.head,c.anchor)<0;r[s]=new oo(f?u:l,f?l:u)}else r[s]=new oo(l,l)}return new io(r,e.sel.primIndex)}function ho(e){e.doc.mode=$e(e.options,e.doc.modeOption),mo(e)}function mo(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Mi(e,100),e.state.modeGen++,e.curOp&&Pr(e)}function go(e,t){return 0==t.from.ch&&0==t.to.ch&&""==K(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function vo(e,t,n,i){function o(e){return n?n[e]:null}function s(e,n,r){cn(e,n,r,i),An(e,"change",e,t)}function a(e,t){for(var n=[],r=e;r<t;++r)n.push(new un(c[r],o(r),i));return n}r(o,"spansFor"),r(s,"update"),r(a,"linesFor");var l=t.from,u=t.to,c=t.text,f=Ye(e,l.line),d=Ye(e,u.line),p=K(c),h=o(c.length-1),m=u.line-l.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(go(e,t)){var g=a(0,c.length-1);s(d,d.text,h),m&&e.remove(l.line,m),g.length&&e.insert(l.line,g)}else if(f==d)if(1==c.length)s(f,f.text.slice(0,l.ch)+p+f.text.slice(u.ch),h);else{var v=a(1,c.length-1);v.push(new un(p+f.text.slice(u.ch),h,i)),s(f,f.text.slice(0,l.ch)+c[0],o(0)),e.insert(l.line+1,v)}else if(1==c.length)s(f,f.text.slice(0,l.ch)+c[0]+d.text.slice(u.ch),o(0)),e.remove(l.line+1,m);else{s(f,f.text.slice(0,l.ch)+c[0],o(0)),s(d,p+d.text.slice(u.ch),h);var y=a(1,c.length-1);m>1&&e.remove(l.line+1,m-1),e.insert(l.line+1,y)}An(e,"change",e,t)}function yo(e,t,n){function i(e,r,o){if(e.linked)for(var s=0;s<e.linked.length;++s){var a=e.linked[s];if(a.doc!=r){var l=o&&a.sharedHist;n&&!l||(t(a.doc,l),i(a.doc,e,l))}}}r(i,"propagate"),i(e,null,!0)}function bo(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Fr(e),ho(e),Eo(e),e.options.direction=t.direction,e.options.lineWrapping||ln(e),e.options.mode=t.modeOption,Pr(e)}function Eo(e){("rtl"==e.doc.direction?F:S)(e.display.lineDiv,"CodeMirror-rtl")}function To(e){Ii(e,(function(){Eo(e),Pr(e)}))}function _o(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function ko(e,t){var n={from:lt(t.from),to:lo(t),text:Ze(e,t.from,t.to)};return Oo(e,n,t.from.line,t.to.line+1),yo(e,(function(e){return Oo(e,n,t.from.line,t.to.line+1)}),!0),n}function xo(e){for(;e.length&&K(e).ranges;)e.pop()}function Co(e,t){return t?(xo(e.done),K(e.done)):e.done.length&&!K(e.done).ranges?K(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),K(e.done)):void 0}function wo(e,t,n,r){var i=e.history;i.undone.length=0;var o,s,a=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>a-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Co(i,i.lastOp==r)))s=K(o.changes),0==st(t.from,t.to)&&0==st(t.from,s.to)?s.to=lo(t):o.changes.push(ko(e,t));else{var l=K(i.done);for(l&&l.ranges||Ao(e.sel,i.done),o={changes:[ko(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,s||ve(e,"historyAdded")}function So(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function No(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||So(e,o,K(i.done),t))?i.done[i.done.length-1]=t:Ao(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&xo(i.undone)}function Ao(e,t){var n=K(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Oo(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Io(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Do(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Io(n[i]));return r}function Lo(e,t){var n=Do(e,t),r=Vt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],s=r[i];if(o&&s)e:for(var a=0;a<s.length;++a){for(var l=s[a],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else s&&(n[i]=s)}return n}function Fo(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?io.prototype.deepCopy.call(o):o);else{var s=o.changes,a=[];r.push({changes:a});for(var l=0;l<s.length;++l){var u=s[l],c=void 0;if(a.push({from:u.from,to:u.to,text:u.text}),t)for(var f in u)(c=f.match(/^spans_(\d+)$/))&&B(t,Number(c[1]))>-1&&(K(a)[f]=u[f],delete u[f])}}}return r}function Mo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=st(t,i)<0;o!=st(n,i)<0?(i=t,t=n):o!=st(t,n)<0&&(t=n)}return new oo(i,t)}return new oo(n||t,t)}function Ro(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),qo(e,new io([Mo(e.sel.primary(),t,n,i)],0),r)}function Po(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Mo(e.sel.ranges[o],t[o],null,i);qo(e,so(e.cm,r,e.sel.primIndex),n)}function jo(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,qo(e,so(e.cm,i,e.sel.primIndex),r)}function Vo(e,t,n,r){qo(e,ao(t,n),r)}function Uo(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new oo(dt(e,t[n].anchor),dt(e,t[n].head))},origin:n&&n.origin};return ve(e,"beforeSelectionChange",e,r),e.cm&&ve(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?so(e.cm,r.ranges,r.ranges.length-1):t}function Bo(e,t,n){var r=e.history.done,i=K(r);i&&i.ranges?(r[r.length-1]=t,zo(e,t,n)):qo(e,t,n)}function qo(e,t,n){zo(e,t,n),No(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function zo(e,t,n){(Ee(e,"beforeSelectionChange")||e.cm&&Ee(e.cm,"beforeSelectionChange"))&&(t=Uo(e,t,n));var r=n&&n.bias||(st(t.primary().head,e.sel.primary().head)<0?-1:1);$o(e,Go(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||ai(e.cm)}function $o(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,be(e.cm)),An(e,"cursorActivity",e))}function Ho(e){$o(e,Go(e,e.sel,null,!1))}function Go(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var s=t.ranges[o],a=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Qo(e,s.anchor,a&&a.anchor,n,r),u=Qo(e,s.head,a&&a.head,n,r);(i||l!=s.anchor||u!=s.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new oo(l,u))}return i?so(e.cm,i,t.primIndex):t}function Wo(e,t,n,r,i){var o=Ye(e,t.line);if(o.markedSpans)for(var s=0;s<o.markedSpans.length;++s){var a=o.markedSpans[s],l=a.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==a.from||(u?a.from<=t.ch:a.from<t.ch))&&(null==a.to||(c?a.to>=t.ch:a.to>t.ch))){if(i&&(ve(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!l.atomic)continue;if(n){var f=l.find(r<0?1:-1),d=void 0;if((r<0?c:u)&&(f=Ko(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(d=st(f,n))&&(r<0?d<0:d>0))return Wo(e,f,t,r,i)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=Ko(e,p,r,p.line==t.line?o:null)),p?Wo(e,p,t,r,i):null}}return t}function Qo(e,t,n,r,i){var o=r||1,s=Wo(e,t,n,o,i)||!i&&Wo(e,t,n,o,!0)||Wo(e,t,n,-o,i)||!i&&Wo(e,t,n,-o,!0);return s||(e.cantEdit=!0,ot(e.first,0))}function Ko(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?dt(e,ot(t.line-1)):null:n>0&&t.ch==(r||Ye(e,t.line)).text.length?t.line<e.first+e.size-1?ot(t.line+1,0):null:new ot(t.line,t.ch+n)}function Jo(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),z)}function Yo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=dt(e,t)),n&&(r.to=dt(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ve(e,"beforeChange",e,r),e.cm&&ve(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Zo(e,t,n){if(e.cm){if(!e.cm.curOp)return Di(e.cm,Zo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Ee(e,"beforeChange")||e.cm&&Ee(e.cm,"beforeChange"))||(t=Yo(e,t,!0))){var r=At&&!n&&Bt(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Xo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Xo(e,t)}}function Xo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=st(t.from,t.to)){var n=co(e,t);wo(e,t,n,e.cm?e.cm.curOp.id:NaN),ns(e,t,n,Vt(e,t));var r=[];yo(e,(function(e,n){n||-1!=B(r,e.history)||(as(e.history,t),r.push(e.history)),ns(e,t,null,Vt(e,t))}))}}function es(e,t,n){var i=e.cm&&e.cm.state.suppressEdits;if(!i||n){for(var o,s=e.history,a=e.sel,l="undo"==t?s.done:s.undone,u="undo"==t?s.undone:s.done,c=0;c<l.length&&(o=l[c],n?!o.ranges||o.equals(e.sel):o.ranges);c++);if(c!=l.length){for(s.lastOrigin=s.lastSelOrigin=null;;){if(!(o=l.pop()).ranges){if(i)return void l.push(o);break}if(Ao(o,u),n&&!o.equals(e.sel))return void qo(e,o,{clearRedo:!1});a=o}var f=[];Ao(a,u),u.push({changes:f,generation:s.generation}),s.generation=o.generation||++s.maxGeneration;for(var d=Ee(e,"beforeChange")||e.cm&&Ee(e.cm,"beforeChange"),p=r((function(n){var r=o.changes[n];if(r.origin=t,d&&!Yo(e,r,!1))return l.length=0,{};f.push(ko(e,r));var i=n?co(e,r):K(l);ns(e,r,i,Lo(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:lo(r)});var s=[];yo(e,(function(e,t){t||-1!=B(s,e.history)||(as(e.history,r),s.push(e.history)),ns(e,r,null,Lo(e,r))}))}),"loop"),h=o.changes.length-1;h>=0;--h){var m=p(h);if(m)return m.v}}}}function ts(e,t){if(0!=t&&(e.first+=t,e.sel=new io(J(e.sel.ranges,(function(e){return new oo(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Pr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)jr(e.cm,r,"gutter")}}function ns(e,t,n,r){if(e.cm&&!e.cm.curOp)return Di(e.cm,ns)(e,t,n,r);if(t.to.line<e.first)ts(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ts(e,i),t={from:ot(e.first,0),to:ot(t.to.line+i,t.to.ch),text:[K(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ot(o,Ye(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ze(e,t.from,t.to),n||(n=co(e,t)),e.cm?rs(e.cm,t,r):vo(e,t,r),zo(e,n,z),e.cantEdit&&Qo(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function rs(e,t,n){var r=e.doc,i=e.display,o=t.from,s=t.to,a=!1,l=o.line;e.options.lineWrapping||(l=tt(Zt(Ye(r,o.line))),r.iter(l,s.line+1,(function(e){if(e==i.maxLine)return a=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&be(e),vo(r,t,n,Lr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=an(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,a=!1)})),a&&(e.curOp.updateMaxLine=!0)),Nt(r,o.line),Mi(e,400);var u=t.text.length-(s.line-o.line)-1;t.full?Pr(e):o.line!=s.line||1!=t.text.length||go(e.doc,t)?Pr(e,o.line,s.line+1,u):jr(e,o.line,"text");var c=Ee(e,"changes"),f=Ee(e,"change");if(f||c){var d={from:o,to:s,text:t.text,removed:t.removed,origin:t.origin};f&&An(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function is(e,t,n,r,i){var o;r||(r=n),st(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Zo(e,{from:n,to:r,text:t,origin:i})}function os(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function ss(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],s=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var a=0;a<o.ranges.length;a++)os(o.ranges[a].anchor,t,n,r),os(o.ranges[a].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=ot(u.from.line+r,u.from.ch),u.to=ot(u.to.line+r,u.to.ch);else if(t<=u.to.line){s=!1;break}}s||(e.splice(0,i+1),i=0)}}}function as(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;ss(e.done,n,r,i),ss(e.undone,n,r,i)}function ls(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Ye(e,ft(e,t)):i=tt(t),null==i?null:(r(o,i)&&e.cm&&jr(e.cm,i,n),o)}function us(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function cs(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}oo.prototype.from=function(){return ct(this.anchor,this.head)},oo.prototype.to=function(){return ut(this.anchor,this.head)},oo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},r(so,"normalizeSelection"),r(ao,"simpleSelection"),r(lo,"changeEnd"),r(uo,"adjustForChange"),r(co,"computeSelAfterChange"),r(fo,"offsetPos"),r(po,"computeReplacedSel"),r(ho,"loadMode"),r(mo,"resetModeState"),r(go,"isWholeLineUpdate"),r(vo,"updateDoc"),r(yo,"linkedDocs"),r(bo,"attachDoc"),r(Eo,"setDirectionClass"),r(To,"directionChanged"),r(_o,"History"),r(ko,"historyChangeFromChange"),r(xo,"clearSelectionEvents"),r(Co,"lastChangeEvent"),r(wo,"addChangeToHistory"),r(So,"selectionEventCanBeMerged"),r(No,"addSelectionToHistory"),r(Ao,"pushSelectionToHistory"),r(Oo,"attachLocalSpans"),r(Io,"removeClearedSpans"),r(Do,"getOldSpans"),r(Lo,"mergeOldSpans"),r(Fo,"copyHistoryArray"),r(Mo,"extendRange"),r(Ro,"extendSelection"),r(Po,"extendSelections"),r(jo,"replaceOneSelection"),r(Vo,"setSimpleSelection"),r(Uo,"filterSelectionChange"),r(Bo,"setSelectionReplaceHistory"),r(qo,"setSelection"),r(zo,"setSelectionNoUndo"),r($o,"setSelectionInner"),r(Ho,"reCheckSelection"),r(Go,"skipAtomicInSelection"),r(Wo,"skipAtomicInner"),r(Qo,"skipAtomic"),r(Ko,"movePos"),r(Jo,"selectAll"),r(Yo,"filterChange"),r(Zo,"makeChange"),r(Xo,"makeChangeInner"),r(es,"makeChangeFromHistory"),r(ts,"shiftDoc"),r(ns,"makeChangeSingleDoc"),r(rs,"makeChangeSingleDocInEditor"),r(is,"replaceRange"),r(os,"rebaseHistSelSingle"),r(ss,"rebaseHistArray"),r(as,"rebaseHist"),r(ls,"changeLine"),r(us,"LeafChunk"),us.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,fn(i),An(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},r(cs,"BranchChunk"),cs.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),s=r.height;if(r.removeInner(e,o),this.height-=s-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof us))){var a=[];this.collapse(a),this.children=[new us(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var s=i.lines.length%25+25,a=s;a<i.lines.length;){var l=new us(i.lines.slice(a,a+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,s),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new cs(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=B(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new cs(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var s=Math.min(t,o-e);if(i.iterN(e,s,n))return!0;if(0==(t-=s))break;e=0}else e-=o}}};var fs=r((function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t}),"LineWidget");function ds(e,t,n){sn(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&si(e,n)}function ps(e,t,n,r){var i=new fs(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),ls(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!rn(e,t)){var r=sn(t)<e.scrollTop;et(t,t.height+zn(i)),r&&si(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&An(o,"lineWidgetAdded",o,i,"number"==typeof t?t:tt(t)),i}fs.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=tt(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=zn(this);et(n,Math.max(0,n.height-o)),e&&(Ii(e,(function(){ds(e,n,-o),jr(e,r,"widget")})),An(e,"lineWidgetCleared",e,this,r))}},fs.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=zn(this)-t;i&&(rn(this.doc,r)||et(r,r.height+i),n&&Ii(n,(function(){n.curOp.forceUpdate=!0,ds(n,r,i),An(n,"lineWidgetChanged",n,e,tt(r))})))},Te(fs),r(ds,"adjustScrollWhenAboveVisible"),r(ps,"addLineWidget");var hs=0,ms=r((function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++hs}),"TextMarker");function gs(e,t,n,r,i){if(r&&r.shared)return ys(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Di(e.cm,gs)(e,t,n,r,i);var o=new ms(e,i),s=st(t,n);if(r&&j(r,o,!1),s>0||0==s&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=I("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Yt(e,t.line,t,n,o)||t.line!=n.line&&Yt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dt()}o.addToHistory&&wo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(r){u&&o.collapsed&&!u.options.lineWrapping&&Zt(r)==u.display.maxLine&&(a=!0),o.collapsed&&l!=t.line&&et(r,0),Rt(r,new Lt(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){rn(e,t)&&et(t,0)})),o.clearOnEnter&&he(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(It(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++hs,o.atomic=!0),u){if(a&&(u.curOp.updateMaxLine=!0),o.collapsed)Pr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)jr(u,c,"text");o.atomic&&Ho(u.doc),An(u,"markerAdded",u,o)}return o}ms.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&ki(e),Ee(this,"clear")){var n=this.find();n&&An(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var s=this.lines[o],a=Ft(s.markedSpans,this);e&&!this.collapsed?jr(e,tt(s),"text"):e&&(null!=a.to&&(i=tt(s)),null!=a.from&&(r=tt(s))),s.markedSpans=Mt(s.markedSpans,a),null==a.from&&this.collapsed&&!rn(this.doc,s)&&e&&et(s,Ar(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=Zt(this.lines[l]),c=an(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Pr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ho(e.doc)),e&&An(e,"markerCleared",e,this,r,i),t&&xi(e),this.parent&&this.parent.clear()}},ms.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],s=Ft(o.markedSpans,this);if(null!=s.from&&(n=ot(t?o:tt(o),s.from),-1==e))return n;if(null!=s.to&&(r=ot(t?o:tt(o),s.to),1==e))return r}return n&&{from:n,to:r}},ms.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Ii(r,(function(){var i=t.line,o=tt(t.line),s=tr(r,o);if(s&&(cr(s),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!rn(n.doc,i)&&null!=n.height){var a=n.height;n.height=null;var l=zn(n)-a;l&&et(i,i.height+l)}An(r,"markerChanged",r,e)}))},ms.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=B(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ms.prototype.detachLine=function(e){if(this.lines.splice(B(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Te(ms),r(gs,"markText");var vs=r((function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this}),"SharedTextMarker");function ys(e,t,n,r,i){(r=j(r)).shared=!1;var o=[gs(e,t,n,r,i)],s=o[0],a=r.widgetNode;return yo(e,(function(e){a&&(r.widgetNode=a.cloneNode(!0)),o.push(gs(e,dt(e,t),dt(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;s=K(o)})),new vs(o,s)}function bs(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),(function(e){return e.parent}))}function Es(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),s=e.clipPos(i.to);if(st(o,s)){var a=gs(e,o,s,r.primary,r.primary.type);r.markers.push(a),a.parent=r}}}function Ts(e){for(var t=r((function(t){var n=e[t],r=[n.primary.doc];yo(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==B(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}}),"loop"),n=0;n<e.length;n++)t(n)}vs.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();An(this,"clear")}},vs.prototype.find=function(e,t){return this.primary.find(e,t)},Te(vs),r(ys,"markTextShared"),r(bs,"findSharedMarkers"),r(Es,"copySharedMarkers"),r(Ts,"detachSharedMarkers");var _s=0,ks=r((function(e,t,n,r,i){if(!(this instanceof ks))return new ks(e,t,n,r,i);null==n&&(n=0),cs.call(this,[new us([new un("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ot(n,0);this.sel=ao(o),this.history=new _o(null),this.id=++_s,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),vo(this,{from:o,to:o,text:e}),qo(this,ao(o),z)}),"Doc");ks.prototype=X(cs.prototype,{constructor:ks,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Xe(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Fi((function(e){var t=ot(this.first,0),n=this.first+this.size-1;Zo(this,{from:t,to:ot(n,Ye(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&li(this.cm,0,0),qo(this,ao(t),z)})),replaceRange:function(e,t,n,r){is(this,e,t=dt(this,t),n=n?dt(this,n):t,r)},getRange:function(e,t,n){var r=Ze(this,dt(this,e),dt(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(rt(this,e))return Ye(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ye(this,e)),Zt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return dt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Fi((function(e,t,n){Vo(this,dt(this,"number"==typeof e?ot(e,t||0):e),null,n)})),setSelection:Fi((function(e,t,n){Vo(this,dt(this,e),dt(this,t||e),n)})),extendSelection:Fi((function(e,t,n){Ro(this,dt(this,e),t&&dt(this,t),n)})),extendSelections:Fi((function(e,t){Po(this,ht(this,e),t)})),extendSelectionsBy:Fi((function(e,t){Po(this,ht(this,J(this.sel.ranges,e)),t)})),setSelections:Fi((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new oo(dt(this,e[i].anchor),dt(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),qo(this,so(this.cm,r,t),n)}})),addSelection:Fi((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new oo(dt(this,e),dt(this,t||e))),qo(this,so(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Ze(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Ze(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Fi((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var s=i.ranges[o];r[o]={from:s.from(),to:s.to(),text:this.splitLines(e[o]),origin:n}}for(var a=t&&"end"!=t&&po(this,r,t),l=r.length-1;l>=0;l--)Zo(this,r[l]);a?Bo(this,a):this.cm&&ai(this.cm)})),undo:Fi((function(){es(this,"undo")})),redo:Fi((function(){es(this,"redo")})),undoSelection:Fi((function(){es(this,"undo",!0)})),redoSelection:Fi((function(){es(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new _o(this.history),yo(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Fo(this.history.done),undone:Fo(this.history.undone)}},setHistory:function(e){var t=this.history=new _o(this.history);t.done=Fo(e.done.slice(0),null,!0),t.undone=Fo(e.undone.slice(0),null,!0)},setGutterMarker:Fi((function(e,t,n){return ls(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&re(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Fi((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&ls(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,re(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!rt(this,e))return null;if(t=e,!(e=Ye(this,e)))return null}else if(null==(t=tt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Fi((function(e,t,n){return ls(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(C(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:Fi((function(e,t,n){return ls(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(C(n));if(!o)return!1;var s=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&s!=i.length?" ":"")+i.slice(s)||null}return!0}))})),addLineWidget:Fi((function(e,t,n){return ps(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return gs(this,dt(this,e),dt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return gs(this,e=dt(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Ye(this,(e=dt(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=dt(this,e),t=dt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var s=o.markedSpans;if(s)for(var a=0;a<s.length;a++){var l=s[a];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),dt(this,ot(n,t))},indexFromPos:function(e){var t=(e=dt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new ks(Xe(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new ks(Xe(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Es(r,bs(this)),r},unlinkDoc:function(e){if(e instanceof Ra&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Ts(bs(this));break}if(e.history==this.history){var n=[e.id];yo(e,(function(e){return n.push(e.id)}),!0),e.history=new _o(null),e.history.done=Fo(this.history.done,n),e.history.undone=Fo(this.history.undone,n)}},iterLinkedDocs:function(e){yo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Fe(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Fi((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&To(this.cm))}))}),ks.prototype.eachLine=ks.prototype.iter;var xs=0;function Cs(e){var t=this;if(Ns(t),!ye(t,e)&&!$n(t.display,e)){_e(e),a&&(xs=+new Date);var n=Mr(t,e,!0),i=e.dataTransfer.files;if(n&&!t.isReadOnly())if(i&&i.length&&window.FileReader&&window.File)for(var o=i.length,s=Array(o),l=0,u=r((function(){++l==o&&Di(t,(function(){var e={from:n=dt(t.doc,n),to:n,text:t.doc.splitLines(s.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};Zo(t.doc,e),Bo(t.doc,ao(dt(t.doc,n),dt(t.doc,lo(e))))}))()}),"markAsReadAndPasteIfAllFilesAreRead"),c=r((function(e,n){if(t.options.allowDropFileTypes&&-1==B(t.options.allowDropFileTypes,e.type))u();else{var r=new FileReader;r.onerror=function(){return u()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(s[n]=e),u()},r.readAsText(e)}}),"readTextFromFile"),f=0;f<i.length;f++)c(i[f],f);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),zo(t.doc,ao(n,n)),p)for(var h=0;h<p.length;++h)is(t.doc,"",p[h].anchor,p[h].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function ws(e,t){if(a&&(!e.state.draggingText||+new Date-xs<100))Ce(t);else if(!ye(e,t)&&!$n(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=O("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}function Ss(e,t){var n=Mr(e,t);if(n){var r=document.createDocumentFragment();Hr(e,n,r),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),A(e.display.dragCursor,r)}}function Ns(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function As(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}r(Cs,"onDrop"),r(ws,"onDragStart"),r(Ss,"onDragOver"),r(Ns,"clearDragCursor"),r(As,"forEachCodeMirror");var Os=!1;function Is(){Os||(Ds(),Os=!0)}function Ds(){var e;he(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,As(Ls)}),100))})),he(window,"blur",(function(){return As(Zr)}))}function Ls(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}r(Is,"ensureGlobalHandlers"),r(Ds,"registerGlobalHandlers"),r(Ls,"onResize");for(var Fs={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ms=0;Ms<10;Ms++)Fs[Ms+48]=Fs[Ms+96]=String(Ms);for(var Rs=65;Rs<=90;Rs++)Fs[Rs]=String.fromCharCode(Rs);for(var Ps=1;Ps<=12;Ps++)Fs[Ps+111]=Fs[Ps+63235]="F"+Ps;var js={};function Vs(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var s=0;s<o.length-1;s++){var a=o[s];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else{if(!/^s(hift)?$/i.test(a))throw new Error("Unrecognized modifier name: "+a);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Us(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=J(n.split(" "),Vs),o=0;o<i.length;o++){var s=void 0,a=void 0;o==i.length-1?(a=i.join(" "),s=r):(a=i.slice(0,o+1).join(" "),s="...");var l=t[a];if(l){if(l!=s)throw new Error("Inconsistent bindings for "+a)}else t[a]=s}delete e[n]}for(var u in t)e[u]=t[u];return e}function Bs(e,t,n,r){var i=(t=Hs(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Bs(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var s=Bs(e,t.fallthrough[o],n,r);if(s)return s}}}function qs(e){var t="string"==typeof e?e:Fs[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function zs(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(k?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(k?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function $s(e,t){if(d&&34==e.keyCode&&e.char)return!1;var n=Fs[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),zs(n,e,t))}function Hs(e){return"string"==typeof e?js[e]:e}function Gs(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&st(o.from,K(r).to)<=0;){var s=r.pop();if(st(s.from,o.from)<0){o.from=s.from;break}}r.push(o)}Ii(e,(function(){for(var t=r.length-1;t>=0;t--)is(e.doc,"",r[t].from,r[t].to,"+delete");ai(e)}))}function Ws(e,t,n){var r=se(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Qs(e,t,n){var r=Ws(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function Ks(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=de(n,t.doc.direction);if(o){var s,a=i<0?K(o):o[0],l=i<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var u=nr(t,n);s=i<0?n.text.length-1:0;var c=rr(t,u,s).top;s=ae((function(e){return rr(t,u,e).top==c}),i<0==(1==a.level)?a.from:a.to-1,s),"before"==l&&(s=Ws(n,s,1))}else s=i<0?a.to:a.from;return new ot(r,s,l)}}return new ot(r,i<0?n.text.length:0,i<0?"before":"after")}function Js(e,t,n,i){var o=de(t,e.doc.direction);if(!o)return Qs(t,n,i);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var s=ce(o,n.ch,n.sticky),a=o[s];if("ltr"==e.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from<n.ch))return Qs(t,n,i);var l,u=r((function(e,n){return Ws(t,e instanceof ot?e.ch:e,n)}),"mv"),c=r((function(n){return e.options.lineWrapping?(l=l||nr(e,t),xr(e,t,l,n)):{begin:0,end:t.text.length}}),"getWrappedLineExtent"),f=c("before"==n.sticky?u(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==i<0,p=u(n,d?1:-1);if(null!=p&&(d?p<=a.to&&p<=f.end:p>=a.from&&p>=f.begin)){var h=d?"before":"after";return new ot(n.line,p,h)}}var m=r((function(e,t,i){for(var s=r((function(e,t){return t?new ot(n.line,u(e,1),"before"):new ot(n.line,e,"after")}),"getRes");e>=0&&e<o.length;e+=t){var a=o[e],l=t>0==(1!=a.level),c=l?i.begin:u(i.end,-1);if(a.from<=c&&c<a.to)return s(c,l);if(c=l?a.from:u(a.to,-1),i.begin<=c&&c<i.end)return s(c,l)}}),"searchInVisualLine"),g=m(s+i,i,f);if(g)return g;var v=i>0?f.end:u(f.begin,-1);return null==v||i>0&&v==t.text.length||!(g=m(i>0?0:o.length-1,i,c(v)))?null:g}js.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},js.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},js.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},js.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},js.default=b?js.macDefault:js.pcDefault,r(Vs,"normalizeKeyName"),r(Us,"normalizeKeyMap"),r(Bs,"lookupKey"),r(qs,"isModifierKey"),r(zs,"addModifierNames"),r($s,"keyName"),r(Hs,"getKeyMap"),r(Gs,"deleteNearSelection"),r(Ws,"moveCharLogically"),r(Qs,"moveLogically"),r(Ks,"endOfLine"),r(Js,"moveVisually");var Ys={selectAll:Jo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),z)},killLine:function(e){return Gs(e,(function(t){if(t.empty()){var n=Ye(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:ot(t.head.line+1,0)}:{from:t.head,to:ot(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Gs(e,(function(t){return{from:ot(t.from().line,0),to:dt(e.doc,ot(t.to().line+1,0))}}))},delLineLeft:function(e){return Gs(e,(function(e){return{from:ot(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Gs(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Gs(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ot(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ot(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return Zs(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return ea(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return Xs(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),H)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),H)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ea(e,t.head):r}),H)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),s=V(e.getLine(o.line),o.ch,r);t.push(Q(r-s%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ii(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Ye(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ot(i.line,i.ch-1)),i.ch>0)i=new ot(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ot(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var s=Ye(e.doc,i.line-1).text;s&&(i=new ot(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+s.charAt(s.length-1),ot(i.line-1,s.length-1),i,"+transpose"))}n.push(new oo(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Ii(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);ai(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Zs(e,t){var n=Ye(e.doc,t),r=Zt(n);return r!=n&&(t=tt(r)),Ks(!0,e,r,t,1)}function Xs(e,t){var n=Ye(e.doc,t),r=Xt(n);return r!=n&&(t=tt(r)),Ks(!0,e,n,t,-1)}function ea(e,t){var n=Zs(e,t.line),r=Ye(e.doc,n.line),i=de(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),s=t.line==n.line&&t.ch<=o&&t.ch;return ot(n.line,s?0:o,n.sticky)}return n}function ta(e,t,n){if("string"==typeof t&&!(t=Ys[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=q}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function na(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Bs(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Bs(t,e.options.extraKeys,n,e)||Bs(t,e.options.keyMap,n,e)}r(Zs,"lineStart"),r(Xs,"lineEnd"),r(ea,"lineStartSmart"),r(ta,"doHandleBinding"),r(na,"lookupKeyForEditor");var ra=new U;function ia(e,t,n,r){var i=e.state.keySeq;if(i){if(qs(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ra.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),oa(e,i+" "+t,n,r))return!0}return oa(e,t,n,r)}function oa(e,t,n,r){var i=na(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&An(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(_e(n),Qr(e)),!!i}function sa(e,t){var n=$s(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?ia(e,"Shift-"+n,t,(function(t){return ta(e,t,!0)}))||ia(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ta(e,t)})):ia(e,n,t,(function(t){return ta(e,t)})))}function aa(e,t,n){return ia(e,"'"+n+"'",t,(function(t){return ta(e,t,!0)}))}r(ia,"dispatchKey"),r(oa,"dispatchKeyInner"),r(sa,"handleKeyBinding"),r(aa,"handleCharBinding");var la=null;function ua(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=L(),ye(t,e)))){a&&l<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=sa(t,e);d&&(la=i?r:null,i||88!=r||Re||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||ca(t)}}function ca(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(S(t,"CodeMirror-crosshair"),ge(document,"keyup",n),ge(document,"mouseover",n))}F(t,"CodeMirror-crosshair"),r(n,"up"),he(document,"keyup",n),he(document,"mouseover",n)}function fa(e){16==e.keyCode&&(this.doc.sel.shift=!1),ye(this,e)}function da(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||$n(t.display,e)||ye(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==la)return la=null,void _e(e);if(!d||e.which&&!(e.which<10)||!sa(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(aa(t,e,i)||t.display.input.onKeyPress(e))}}}r(ua,"onKeyDown"),r(ca,"showCrossHair"),r(fa,"onKeyUp"),r(da,"onKeyPress");var pa,ha,ma=r((function(e,t,n){this.time=e,this.pos=t,this.button=n}),"PastClick");function ga(e,t){var n=+new Date;return ha&&ha.compare(n,e,t)?(pa=ha=null,"triple"):pa&&pa.compare(n,e,t)?(ha=new ma(n,e,t),pa=null,"double"):(pa=new ma(n,e,t),ha=null,"single")}function va(e){var t=this,n=t.display;if(!(ye(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,$n(n,e))u||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!wa(t,e)){var r=Mr(t,e),i=Se(e),o=r?ga(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&ya(t,i,r,o,e)||(1==i?r?Ea(t,r,o,e):we(e)==n.scroller&&_e(e):2==i?(r&&Ro(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(x?t.display.input.onContextMenu(e):Jr(t)))}}function ya(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),ia(e,zs(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=Ys[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=q}finally{e.state.suppressEdits=!1}return r}))}function ba(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=E?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}function Ea(e,t,n,r){a?setTimeout(P(Kr,e),0):e.curOp.focus=L();var i,o=ba(e,n,r),s=e.doc.sel;e.options.dragDrop&&Oe&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(st((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(st(i.to(),t)>0||t.xRel<0)?Ta(e,r,t,o):ka(e,r,t,o)}function Ta(e,t,n,i){var o=e.display,s=!1,c=Di(e,(function(t){u&&(o.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Jr(e)),ge(o.wrapper.ownerDocument,"mouseup",c),ge(o.wrapper.ownerDocument,"mousemove",f),ge(o.scroller,"dragstart",d),ge(o.scroller,"drop",c),s||(_e(t),i.addNew||Ro(e.doc,n,null,null,i.extend),u&&!p||a&&9==l?setTimeout((function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()}),20):o.input.focus())})),f=r((function(e){s=s||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10}),"mouseMove"),d=r((function(){return s=!0}),"dragStart");u&&(o.scroller.draggable=!0),e.state.draggingText=c,c.copy=!i.moveOnDrag,he(o.wrapper.ownerDocument,"mouseup",c),he(o.wrapper.ownerDocument,"mousemove",f),he(o.scroller,"dragstart",d),he(o.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return o.input.focus()}),20),o.scroller.dragDrop&&o.scroller.dragDrop()}function _a(e,t,n){if("char"==n)return new oo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new oo(ot(t.line,0),dt(e.doc,ot(t.line+1,0)));var r=n(e,t);return new oo(r.from,r.to)}function ka(e,t,n,i){a&&Jr(e);var o=e.display,s=e.doc;_e(t);var l,u,c=s.sel,f=c.ranges;if(i.addNew&&!i.extend?(u=s.sel.contains(n),l=u>-1?f[u]:new oo(n,n)):(l=s.sel.primary(),u=s.sel.primIndex),"rectangle"==i.unit)i.addNew||(l=new oo(n,n)),n=Mr(e,t,!0,!0),u=-1;else{var d=_a(e,n,i.unit);l=i.extend?Mo(l,d.anchor,d.head,i.extend):d}i.addNew?-1==u?(u=f.length,qo(s,so(e,f.concat([l]),u),{scroll:!1,origin:"*mouse"})):f.length>1&&f[u].empty()&&"char"==i.unit&&!i.extend?(qo(s,so(e,f.slice(0,u).concat(f.slice(u+1)),0),{scroll:!1,origin:"*mouse"}),c=s.sel):jo(s,u,l,$):(u=0,qo(s,new io([l],0),$),c=s.sel);var p=n;function h(t){if(0!=st(p,t))if(p=t,"rectangle"==i.unit){for(var r=[],o=e.options.tabSize,a=V(Ye(s,n.line).text,n.ch,o),f=V(Ye(s,t.line).text,t.ch,o),d=Math.min(a,f),h=Math.max(a,f),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Ye(s,m).text,y=G(v,d,o);d==h?r.push(new oo(ot(m,y),ot(m,y))):v.length>y&&r.push(new oo(ot(m,y),ot(m,G(v,h,o))))}r.length||r.push(new oo(n,n)),qo(s,so(e,c.ranges.slice(0,u).concat(r),u),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,E=l,T=_a(e,t,i.unit),_=E.anchor;st(T.anchor,_)>0?(b=T.head,_=ct(E.from(),T.anchor)):(b=T.anchor,_=ut(E.to(),T.head));var k=c.ranges.slice(0);k[u]=xa(e,new oo(dt(s,_),b)),qo(s,so(e,k,u),$)}}r(h,"extendTo");var m=o.wrapper.getBoundingClientRect(),g=0;function v(t){var n=++g,r=Mr(e,t,!0,"rectangle"==i.unit);if(r)if(0!=st(r,p)){e.curOp.focus=L(),h(r);var a=ti(o,s);(r.line>=a.to||r.line<a.from)&&setTimeout(Di(e,(function(){g==n&&v(t)})),150)}else{var l=t.clientY<m.top?-20:t.clientY>m.bottom?20:0;l&&setTimeout(Di(e,(function(){g==n&&(o.scroller.scrollTop+=l,v(t))})),50)}}function y(t){e.state.selectingText=!1,g=1/0,t&&(_e(t),o.input.focus()),ge(o.wrapper.ownerDocument,"mousemove",b),ge(o.wrapper.ownerDocument,"mouseup",E),s.history.lastSelOrigin=null}r(v,"extend"),r(y,"done");var b=Di(e,(function(e){0!==e.buttons&&Se(e)?v(e):y(e)})),E=Di(e,y);e.state.selectingText=E,he(o.wrapper.ownerDocument,"mousemove",b),he(o.wrapper.ownerDocument,"mouseup",E)}function xa(e,t){var n=t.anchor,r=t.head,i=Ye(e.doc,n.line);if(0==st(n,r)&&n.sticky==r.sticky)return t;var o=de(i);if(!o)return t;var s=ce(o,n.ch,n.sticky),a=o[s];if(a.from!=n.ch&&a.to!=n.ch)return t;var l,u=s+(a.from==n.ch==(1!=a.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(o,r.ch,r.sticky),f=c-s||(r.ch-n.ch)*(1==a.level?-1:1);l=c==u-1||c==u?f<0:f>0}var d=o[u+(l?-1:0)],p=l==(1==d.level),h=p?d.from:d.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new oo(new ot(n.line,h,m),r)}function Ca(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&_e(t);var s=e.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!Ee(e,n))return xe(t);o-=a.top-s.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=s.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return ve(e,n,e,nt(e.doc,o),e.display.gutterSpecs[l].className,t),xe(t)}}function wa(e,t){return Ca(e,t,"gutterClick",!0)}function Sa(e,t){$n(e.display,t)||Na(e,t)||ye(e,t,"contextmenu")||x||e.display.input.onContextMenu(t)}function Na(e,t){return!!Ee(e,"gutterContextMenu")&&Ca(e,t,"gutterContextMenu",!1)}function Aa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),dr(e)}ma.prototype.compare=function(e,t,n){return this.time+400>e&&0==st(t,this.pos)&&n==this.button},r(ga,"clickRepeat"),r(va,"onMouseDown"),r(ya,"handleMappedButton"),r(ba,"configureMouse"),r(Ea,"leftButtonDown"),r(Ta,"leftButtonStartDrag"),r(_a,"rangeForUnit"),r(ka,"leftButtonSelect"),r(xa,"bidiSimplify"),r(Ca,"gutterEvent"),r(wa,"clickInGutter"),r(Sa,"onContextMenu"),r(Na,"contextMenuInGutter"),r(Aa,"themeChanged");var Oa={toString:function(){return"CodeMirror.Init"}},Ia={},Da={};function La(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Oa&&i(e,t,n)}:i)}r(n,"option"),e.defineOption=n,e.Init=Oa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,ho(e)}),!0),n("indentUnit",2,ho,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){mo(e),dr(e),Pr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ot(r,o))}r++}));for(var i=n.length-1;i>=0;i--)is(e.doc,t,n[i],ot(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Oa&&e.refresh()})),n("specialCharPlaceholder",gn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!T),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Aa(e),Yi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Hs(t),i=n!=Oa&&Hs(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ma,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Ki(t,e.options.lineNumbers),Yi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Dr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return yi(e)}),!0),n("scrollbarStyle","native",(function(e){Ti(e),yi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Ki(e.options.gutters,t),Yi(e)}),!0),n("firstLineNumber",1,Yi,!0),n("lineNumberFormatter",(function(e){return e}),Yi,!0),n("showCursorWhenSelecting",!1,zr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Zr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Fa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,zr,!0),n("singleCursorHeightPerLine",!0,zr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,mo,!0),n("addModeClass",!1,mo,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,mo,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Fa(e,t,n){if(!t!=!(n&&n!=Oa)){var r=e.display.dragFunctions,i=t?he:ge;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ma(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),ln(e)),Fr(e),Pr(e),dr(e),setTimeout((function(){return yi(e)}),100)}function Ra(e,t){var n=this;if(!(this instanceof Ra))return new Ra(e,t);this.options=t=t?j(t):{},j(Ia,t,!1);var r=t.value;"string"==typeof r?r=new ks(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ra.inputStyles[t.inputStyle](this),o=this.display=new Zi(e,r,i,t);for(var s in o.wrapper.CodeMirror=this,Aa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ti(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new U,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&l<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Pa(this),Is(),ki(this),this.curOp.forceUpdate=!0,bo(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Yr(n)}),20):Zr(this),Da)Da.hasOwnProperty(s)&&Da[s](this,t[s],Oa);Qi(this),t.finishInit&&t.finishInit(this);for(var c=0;c<ja.length;++c)ja[c](this);xi(this),u&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Pa(e){var t=e.display;he(t.scroller,"mousedown",Di(e,va)),he(t.scroller,"dblclick",a&&l<11?Di(e,(function(t){if(!ye(e,t)){var n=Mr(e,t);if(n&&!wa(e,t)&&!$n(e.display,t)){_e(t);var r=e.findWordAt(n);Ro(e.doc,r.anchor,r.head)}}})):function(t){return ye(e,t)||_e(t)}),he(t.scroller,"contextmenu",(function(t){return Sa(e,t)})),he(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Sa(e,n)}));var n,i={end:0};function o(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(i=t.activeTouch).end=+new Date)}function s(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function u(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}r(o,"finishTouch"),r(s,"isMouseLikeTouchEvent"),r(u,"farAway"),he(t.scroller,"touchstart",(function(r){if(!ye(e,r)&&!s(r)&&!wa(e,r)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-i.end<=300?i:null},1==r.touches.length&&(t.activeTouch.left=r.touches[0].pageX,t.activeTouch.top=r.touches[0].pageY)}})),he(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),he(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!$n(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var i,s=e.coordsChar(t.activeTouch,"page");i=!r.prev||u(r,r.prev)?new oo(s,s):!r.prev.prev||u(r,r.prev.prev)?e.findWordAt(s):new oo(ot(s.line,0),dt(e.doc,ot(s.line+1,0))),e.setSelection(i.anchor,i.head),e.focus(),_e(n)}o()})),he(t.scroller,"touchcancel",o),he(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(di(e,t.scroller.scrollTop),hi(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))})),he(t.scroller,"mousewheel",(function(t){return ro(e,t)})),he(t.scroller,"DOMMouseScroll",(function(t){return ro(e,t)})),he(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||Ce(t)},over:function(t){ye(e,t)||(Ss(e,t),Ce(t))},start:function(t){return ws(e,t)},drop:Di(e,Cs),leave:function(t){ye(e,t)||Ns(e)}};var c=t.input.getField();he(c,"keyup",(function(t){return fa.call(e,t)})),he(c,"keydown",Di(e,ua)),he(c,"keypress",Di(e,da)),he(c,"focus",(function(t){return Yr(e,t)})),he(c,"blur",(function(t){return Zr(e,t)}))}r(La,"defineOptions"),r(Fa,"dragDropChanged"),r(Ma,"wrappingChanged"),r(Ra,"CodeMirror"),Ra.defaults=Ia,Ra.optionHandlers=Da,r(Pa,"registerEventHandlers");var ja=[];function Va(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=bt(e,t).state:n="prev");var s=e.options.tabSize,a=Ye(o,t),l=V(a.text,null,s);a.stateAfter&&(a.stateAfter=null);var u,c=a.text.match(/^\s*/)[0];if(r||/\S/.test(a.text)){if("smart"==n&&((u=o.mode.indent(i,a.text.slice(c.length),a.text))==q||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?V(Ye(o,t-1).text,null,s):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var f="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/s);p;--p)d+=s,f+="\t";if(d<u&&(f+=Q(u-d)),f!=c)return is(o,f,ot(t,0),ot(t,c.length),"+input"),a.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){var g=ot(t,c.length);jo(o,h,new oo(g,g));break}}}Ra.defineInitHook=function(e){return ja.push(e)},r(Va,"indentLine");var Ua=null;function Ba(e){Ua=e}function qa(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var s=+new Date-200,a="paste"==i||e.state.pasteIncoming>s,l=Fe(t),u=null;if(a&&r.ranges.length>1)if(Ua&&Ua.text.join("\n")==t){if(r.ranges.length%Ua.text.length==0){u=[];for(var c=0;c<Ua.text.length;c++)u.push(o.splitLines(Ua.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=J(l,(function(e){return[e]})));for(var f=e.curOp.updateInput,d=r.ranges.length-1;d>=0;d--){var p=r.ranges[d],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=ot(h.line,h.ch-n):e.state.overwrite&&!a?m=ot(m.line,Math.min(Ye(o,m.line).text.length,m.ch+K(l).length)):a&&Ua&&Ua.lineWise&&Ua.text.join("\n")==l.join("\n")&&(h=m=ot(h.line,0)));var g={from:h,to:m,text:u?u[d%u.length]:l,origin:i||(a?"paste":e.state.cutIncoming>s?"cut":"+input")};Zo(e.doc,g),An(e,"inputRead",e,g)}t&&!a&&$a(e,t),ai(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function za(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Ii(t,(function(){return qa(t,n,0,null,"paste")})),!0}function $a(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),s=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(t.indexOf(o.electricChars.charAt(a))>-1){s=Va(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ye(e.doc,i.head.line).text.slice(0,i.head.ch))&&(s=Va(e,i.head.line,"smart"));s&&An(e,"electricInput",e,i.head.line)}}}function Ha(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:ot(i,0),head:ot(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Ga(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Wa(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return u?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),Ga(e),t}function Qa(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Di(this,t[e])(this,n,i),ve(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Hs(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Li((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");Y(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Pr(this)})),removeOverlay:Li((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Pr(this)}})),indentLine:Li((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),rt(this.doc,e)&&Va(this,e,t,n)})),indentSelection:Li((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Va(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&ai(this));else{var o=i.from(),s=i.to(),a=Math.max(n,o.line);n=Math.min(this.lastLine(),s.line-(s.ch?0:1))+1;for(var l=a;l<n;++l)Va(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&jo(this.doc,r,new oo(o,u[r].to()),z)}}})),getTokenAt:function(e,t){return xt(this,e,t)},getLineTokens:function(e,t){return xt(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=dt(this.doc,e);var t,n=yt(this,Ye(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var s=r+i>>1;if((s?n[2*s-1]:0)>=o)i=s;else{if(!(n[2*s+1]<o)){t=n[2*s+2];break}r=s+1}}var a=t?t.indexOf("overlay "):-1;return a<0?t:0==a?null:t.slice(0,a-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var s=0;s<o[t].length;s++){var a=i[o[t][s]];a&&r.push(a)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==B(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return bt(this,(e=ft(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return br(this,null==e?n.head:"object"==typeof e?dt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return yr(this,dt(this.doc,e),t||"page")},coordsChar:function(e,t){return _r(this,(e=vr(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=vr(this,{top:e,left:0},t||"page").top,nt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Ye(this.doc,e)}else r=e;return gr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-sn(r):0)},defaultTextHeight:function(){return Ar(this.display)},defaultCharWidth:function(){return Or(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,s=(e=br(this,dt(this.doc,e))).bottom,a=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)s=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?s=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(s=e.bottom),a+t.offsetWidth>u&&(a=u-t.offsetWidth)}t.style.top=s+"px",t.style.left=t.style.right="","right"==i?(a=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?a=0:"middle"==i&&(a=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=a+"px"),n&&ii(this,{left:a,top:s,right:a+t.offsetWidth,bottom:s+t.offsetHeight})},triggerOnKeyDown:Li(ua),triggerOnKeyPress:Li(da),triggerOnKeyUp:fa,triggerOnMouseDown:Li(va),execCommand:function(e){if(Ys.hasOwnProperty(e))return Ys[e].call(null,this)},triggerElectric:Li((function(e){$a(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=dt(this.doc,e),s=0;s<t&&!(o=Ka(this.doc,o,i,n,r)).hitSide;++s);return o},moveH:Li((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ka(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),H)})),deleteH:Li((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Gs(this,(function(n){var i=Ka(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var s=dt(this.doc,e),a=0;a<t;++a){var l=br(this,s,"div");if(null==o?o=l.left:l.left=o,(s=Ja(this,l,i,n)).hitSide)break}return s},moveV:Li((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(s){if(o)return e<0?s.from():s.to();var a=br(n,s.head,"div");null!=s.goalColumn&&(a.left=s.goalColumn),i.push(a.left);var l=Ja(n,a,e,t);return"page"==t&&s==r.sel.primary()&&si(n,yr(n,l,"div").top-a.top),l}),H),i.length)for(var s=0;s<r.sel.ranges.length;s++)r.sel.ranges[s].goalColumn=i[s]})),findWordAt:function(e){var t=Ye(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),s=ne(o,i)?function(e){return ne(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ne(e)};n>0&&s(t.charAt(n-1));)--n;for(;r<t.length&&s(t.charAt(r));)++r}return new oo(ot(e.line,n),ot(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?F(this.display.cursorDiv,"CodeMirror-overwrite"):S(this.display.cursorDiv,"CodeMirror-overwrite"),ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==L()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Li((function(e,t){li(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Qn(this)-this.display.barHeight,width:e.scrollWidth-Qn(this)-this.display.barWidth,clientHeight:Jn(this),clientWidth:Kn(this)}},scrollIntoView:Li((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ot(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?ui(this,e):fi(this,e.from,e.to,e.margin)})),setSize:Li((function(e,t){var n=this,i=r((function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e}),"interpret");null!=e&&(this.display.wrapper.style.width=i(e)),null!=t&&(this.display.wrapper.style.height=i(t)),this.options.lineWrapping&&fr(this);var o=this.display.viewFrom;this.doc.iter(o,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){jr(n,o,"widget");break}++o})),this.curOp.forceUpdate=!0,ve(this,"refresh",this)})),operation:function(e){return Ii(this,e)},startOperation:function(){return ki(this)},endOperation:function(){return xi(this)},refresh:Li((function(){var e=this.display.cachedTextHeight;Pr(this),this.curOp.forceUpdate=!0,dr(this),li(this,this.doc.scrollLeft,this.doc.scrollTop),Hi(this.display),(null==e||Math.abs(e-Ar(this.display))>.5||this.options.lineWrapping)&&Fr(this),ve(this,"refresh",this)})),swapDoc:Li((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),bo(this,e),dr(this),this.display.input.reset(),li(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,An(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Te(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function Ka(e,t,n,i,o){var s=t,a=n,l=Ye(e,t.line),u=o&&"rtl"==e.direction?-n:n;function c(){var n=t.line+u;return!(n<e.first||n>=e.first+e.size)&&(t=new ot(n,t.ch,t.sticky),l=Ye(e,n))}function f(r){var s;if("codepoint"==i){var a=l.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(a))s=null;else{var f=n>0?a>=55296&&a<56320:a>=56320&&a<57343;s=new ot(t.line,Math.max(0,Math.min(l.text.length,t.ch+n*(f?2:1))),-n)}}else s=o?Js(e.cm,l,t,n):Qs(l,t,n);if(null==s){if(r||!c())return!1;t=Ks(o,e.cm,l,t.line,u)}else t=s;return!0}if(r(c,"findNextLine"),r(f,"moveOnce"),"char"==i||"codepoint"==i)f();else if("column"==i)f(!0);else if("word"==i||"group"==i)for(var d=null,p="group"==i,h=e.cm&&e.cm.getHelper(t,"wordChars"),m=!0;!(n<0)||f(!m);m=!1){var g=l.text.charAt(t.ch)||"\n",v=ne(g,h)?"w":p&&"\n"==g?"n":!p||/\s/.test(g)?null:"p";if(!p||m||v||(v="s"),d&&d!=v){n<0&&(n=1,f(),t.sticky="after");break}if(v&&(d=v),n>0&&!f(!m))break}var y=Qo(e,t,s,a,!0);return at(s,y)&&(y.hitSide=!0),y}function Ja(e,t,n,r){var i,o,s=e.doc,a=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*Ar(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=_r(e,a,i)).outside;){if(n<0?i<=0:i>=s.height){o.hitSide=!0;break}i+=5*n}return o}r(Ba,"setLastCopied"),r(qa,"applyTextInput"),r(za,"handlePaste"),r($a,"triggerElectric"),r(Ha,"copyableRanges"),r(Ga,"disableBrowserMagic"),r(Wa,"hiddenTextarea"),r(Qa,"addEditorMethods"),r(Ka,"findPosH"),r(Ja,"findPosV");var Ya=r((function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new U,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}),"ContentEditableInput");function Za(e,t){var n=tr(e,t.line);if(!n||n.hidden)return null;var r=Ye(e.doc,t.line),i=Zn(n,r,t.line),o=de(r,e.doc.direction),s="left";o&&(s=ce(o,t.ch)%2?"right":"left");var a=sr(i.map,t.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function Xa(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function el(e,t){return t&&(e.bad=!0),e}function tl(e,t,n,i,o){var s="",a=!1,l=e.doc.lineSeparator(),u=!1;function c(e){return function(t){return t.id==e}}function f(){a&&(s+=l,u&&(s+=l),a=u=!1)}function d(e){e&&(f(),s+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var r,s=t.getAttribute("cm-marker");if(s){var h=e.findMarks(ot(i,0),ot(o+1,0),c(+s));return void(h.length&&(r=h[0].find(0))&&d(Ze(e.doc,r.from,r.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&f();for(var g=0;g<t.childNodes.length;g++)p(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(u=!0),m&&(a=!0)}else 3==t.nodeType&&d(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(r(c,"recognizeMarker"),r(f,"close"),r(d,"addText"),r(p,"walk");p(t),t!=n;)t=t.nextSibling,u=!1;return s}function nl(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return el(e.clipPos(ot(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return rl(o,t,n)}}function rl(e,t,n){var i=e.text.firstChild,o=!1;if(!t||!D(i,t))return el(ot(tt(e.line),0),!0);if(t==i&&(o=!0,t=i.childNodes[n],n=0,!t)){var s=e.rest?K(e.rest):e.line;return el(ot(tt(s),s.text.length),o)}var a=3==t.nodeType?t:null,l=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));l.parentNode!=i;)l=l.parentNode;var u=e.measure,c=u.maps;function f(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?u.map:c[i],s=0;s<o.length;s+=3){var a=o[s+2];if(a==t||a==n){var l=tt(i<0?e.line:e.rest[i]),f=o[s]+r;return(r<0||a!=t)&&(f=o[s+(r?1:0)]),ot(l,f)}}}r(f,"find");var d=f(a,l,n);if(d)return el(d,o);for(var p=l.nextSibling,h=a?a.nodeValue.length-n:0;p;p=p.nextSibling){if(d=f(p,p.firstChild,0))return el(ot(d.line,d.ch-h),o);h+=p.textContent.length}for(var m=l.previousSibling,g=n;m;m=m.previousSibling){if(d=f(m,m.firstChild,-1))return el(ot(d.line,d.ch+g),o);g+=m.textContent.length}}Ya.prototype.init=function(e){var t=this,n=this,i=n.cm,o=n.div=e.lineDiv;function s(e){for(var t=e.target;t;t=t.parentNode){if(t==o)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(s(e)&&!ye(i,e)){if(i.somethingSelected())Ba({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=Ha(i);Ba({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation((function(){i.setSelections(t.ranges,0,z),i.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var r=Ua.text.join("\n");if(e.clipboardData.setData("Text",r),e.clipboardData.getData("Text")==r)return void e.preventDefault()}var a=Wa(),l=a.firstChild;i.display.lineSpace.insertBefore(a,i.display.lineSpace.firstChild),l.value=Ua.text.join("\n");var u=L();R(l),setTimeout((function(){i.display.lineSpace.removeChild(a),u.focus(),u==o&&n.showPrimarySelection()}),50)}}o.contentEditable=!0,Ga(o,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize),r(s,"belongsToInput"),he(o,"paste",(function(e){!s(e)||ye(i,e)||za(e,i)||l<=11&&setTimeout(Di(i,(function(){return t.updateFromDOM()})),20)})),he(o,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),he(o,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),he(o,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),he(o,"touchstart",(function(){return n.forceCompositionEnd()})),he(o,"input",(function(){t.composing||t.readFromDOMSoon()})),r(a,"onCopyCut"),he(o,"copy",a),he(o,"cut",a)},Ya.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ya.prototype.prepareSelection=function(){var e=$r(this.cm,!1);return e.focus=L()==this.div,e},Ya.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ya.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ya.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var s=nl(t,e.anchorNode,e.anchorOffset),a=nl(t,e.focusNode,e.focusOffset);if(!s||s.bad||!a||a.bad||0!=st(ct(s,a),i)||0!=st(ut(s,a),o)){var l=t.display.view,u=i.line>=t.display.viewFrom&&Za(t,i)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Za(t,o);if(!c){var f=l[l.length-1].measure,d=f.maps?f.maps[f.maps.length-1]:f.map;c={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(u&&c){var p,h=e.rangeCount&&e.getRangeAt(0);try{p=w(u.node,u.offset,c.offset,c.node)}catch(e){}p&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ya.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Ya.prototype.showMultipleSelections=function(e){A(this.cm.display.cursorDiv,e.cursors),A(this.cm.display.selectionDiv,e.selection)},Ya.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ya.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},Ya.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&L()==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ya.prototype.blur=function(){this.div.blur()},Ya.prototype.getField=function(){return this.div},Ya.prototype.supportsTouch=function(){return!0},Ya.prototype.receivedFocus=function(){var e=this,t=this;function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Ii(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),r(n,"poll"),this.polling.set(this.cm.options.pollInterval,n)},Ya.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ya.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&f&&this.cm.display.gutterSpecs.length&&Xa(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=nl(t,e.anchorNode,e.anchorOffset),r=nl(t,e.focusNode,e.focusOffset);n&&r&&Ii(t,(function(){qo(t.doc,ao(n,r),z),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Ya.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),s=o.from(),a=o.to();if(0==s.ch&&s.line>r.firstLine()&&(s=ot(s.line-1,Ye(r.doc,s.line-1).length)),a.ch==Ye(r.doc,a.line).text.length&&a.line<r.lastLine()&&(a=ot(a.line+1,0)),s.line<i.viewFrom||a.line>i.viewTo-1)return!1;s.line==i.viewFrom||0==(e=Rr(r,s.line))?(t=tt(i.view[0].line),n=i.view[0].node):(t=tt(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=Rr(r,a.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=tt(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(tl(r,n,u,t,l)),d=Ze(r.doc,ot(t,0),ot(l,Ye(r.doc,l).text.length));f.length>1&&d.length>1;)if(K(f)==K(d))f.pop(),d.pop(),l--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),t++}for(var p=0,h=0,m=f[0],g=d[0],v=Math.min(m.length,g.length);p<v&&m.charCodeAt(p)==g.charCodeAt(p);)++p;for(var y=K(f),b=K(d),E=Math.min(y.length-(1==f.length?p:0),b.length-(1==d.length?p:0));h<E&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==f.length&&1==d.length&&t==s.line)for(;p&&p>s.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var T=ot(t,p),_=ot(l,d.length?K(d).length-h:0);return f.length>1||f[0]||st(T,_)?(is(r.doc,f,T,_,"+input"),!0):void 0},Ya.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ya.prototype.reset=function(){this.forceCompositionEnd()},Ya.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ya.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Ya.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ii(this.cm,(function(){return Pr(e.cm)}))},Ya.prototype.setUneditable=function(e){e.contentEditable="false"},Ya.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Di(this.cm,qa)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ya.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ya.prototype.onContextMenu=function(){},Ya.prototype.resetPosition=function(){},Ya.prototype.needsContentAttribute=!0,r(Za,"posToDOM"),r(Xa,"isInGutter"),r(el,"badPos"),r(tl,"domTextBetween"),r(nl,"domToPos"),r(rl,"locateNodeInLineView");var il=r((function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new U,this.hasSelection=!1,this.composing=null}),"TextareaInput");function ol(e,t){if((t=t?j(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=L();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function i(){e.value=l.getValue()}var o;if(r(i,"save"),e.form&&(he(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var s=e.form;o=s.submit;try{var a=s.submit=function(){i(),s.submit=o,s.submit(),s.submit=a}}catch(e){}}t.finishInit=function(n){n.save=i,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,i(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",i),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=o))}},e.style.display="none";var l=Ra((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return l}function sl(e){e.off=ge,e.on=he,e.wheelEventPixels=no,e.Doc=ks,e.splitLines=Fe,e.countColumn=V,e.findColumn=G,e.isWordChar=te,e.Pass=q,e.signal=ve,e.Line=un,e.changeEnd=lo,e.scrollbarModel=Ei,e.Pos=ot,e.cmpPos=st,e.modes=Ve,e.mimeModes=Ue,e.resolveMode=ze,e.getMode=$e,e.modeExtensions=He,e.extendMode=Ge,e.copyState=We,e.startState=Ke,e.innerMode=Qe,e.commands=Ys,e.keyMap=js,e.keyName=$s,e.isModifierKey=qs,e.lookupKey=Bs,e.normalizeKeyMap=Us,e.StringStream=Je,e.SharedTextMarker=vs,e.TextMarker=ms,e.LineWidget=fs,e.e_preventDefault=_e,e.e_stopPropagation=ke,e.e_stop=Ce,e.addClass=F,e.contains=D,e.rmClass=S,e.keyNames=Fs}il.prototype.init=function(e){var t=this,n=this,i=this.cm;this.createField(e);var o=this.textarea;function s(e){if(!ye(i,e)){if(i.somethingSelected())Ba({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=Ha(i);Ba({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,z):(n.prevInput="",o.value=t.text.join("\n"),R(o))}"cut"==e.type&&(i.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(o.style.width="0px"),he(o,"input",(function(){a&&l>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),he(o,"paste",(function(e){ye(i,e)||za(e,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())})),r(s,"prepareCopyCut"),he(o,"cut",s),he(o,"copy",s),he(e.scroller,"paste",(function(t){if(!$n(e,t)&&!ye(i,t)){if(!o.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var r=new Event("paste");r.clipboardData=t.clipboardData,o.dispatchEvent(r)}})),he(e.lineSpace,"selectstart",(function(t){$n(e,t)||_e(t)})),he(o,"compositionstart",(function(){var e=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}})),he(o,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},il.prototype.createField=function(e){this.wrapper=Wa(),this.textarea=this.wrapper.firstChild},il.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},il.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=$r(e);if(e.options.moveInputWithCursor){var i=br(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),s=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+s.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+s.left-o.left))}return r},il.prototype.showSelection=function(e){var t=this.cm.display;A(t.cursorDiv,e.cursors),A(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},il.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&R(this.textarea),a&&l>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&l>=9&&(this.hasSelection=null))}},il.prototype.getField=function(){return this.textarea},il.prototype.supportsTouch=function(){return!1},il.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||L()!=this.textarea))try{this.textarea.focus()}catch(e){}},il.prototype.blur=function(){this.textarea.blur()},il.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},il.prototype.receivedFocus=function(){this.slowPoll()},il.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},il.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,r(n,"p"),t.polling.set(20,n)},il.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Me(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&l>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,u=Math.min(r.length,i.length);s<u&&r.charCodeAt(s)==i.charCodeAt(s);)++s;return Ii(t,(function(){qa(t,i.slice(s),r.length-s,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},il.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},il.prototype.onKeyPress=function(){a&&l>=9&&(this.hasSelection=null),this.fastPoll()},il.prototype.onContextMenu=function(e){var t=this,n=t.cm,i=n.display,o=t.textarea;t.contextMenuPending&&t.contextMenuPending();var s=Mr(n,e),c=i.scroller.scrollTop;if(s&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(s)&&Di(n,qo)(n.doc,ao(s),z);var f,p=o.style.cssText,h=t.wrapper.style.cssText,m=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(f=window.scrollY),i.input.focus(),u&&window.scrollTo(null,f),i.input.reset(),n.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=y,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),r(v,"prepareSelectAllHack"),r(y,"rehide"),a&&l>=9&&v(),x){Ce(e);var g=r((function(){ge(window,"mouseup",g),setTimeout(y,20)}),"mouseup");he(window,"mouseup",g)}else setTimeout(y,50)}function v(){if(null!=o.selectionStart){var e=n.somethingSelected(),r=""+(e?o.value:"");o.value="⇚",o.value=r,t.prevInput=e?"":"",o.selectionStart=1,o.selectionEnd=r.length,i.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,o.style.cssText=p,a&&l<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=c),null!=o.selectionStart)){(!a||a&&l<9)&&v();var e=0,s=r((function(){i.selForContextMenu==n.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&""==t.prevInput?Di(n,Jo)(n):e++<10?i.detectingSelectAll=setTimeout(s,500):(i.selForContextMenu=null,i.input.reset())}),"poll");i.detectingSelectAll=setTimeout(s,200)}}},il.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},il.prototype.setUneditable=function(){},il.prototype.needsContentAttribute=!1,r(ol,"fromTextArea"),r(sl,"addLegacyProps"),La(Ra),Qa(Ra);var al="iter insert remove copy getEditor constructor".split(" ");for(var ll in ks.prototype)ks.prototype.hasOwnProperty(ll)&&B(al,ll)<0&&(Ra.prototype[ll]=function(e){return function(){return e.apply(this.doc,arguments)}}(ks.prototype[ll]));return Te(ks),Ra.inputStyles={textarea:il,contenteditable:Ya},Ra.defineMode=function(e){Ra.defaults.mode||"null"==e||(Ra.defaults.mode=e),Be.apply(this,arguments)},Ra.defineMIME=qe,Ra.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ra.defineMIME("text/plain","null"),Ra.defineExtension=function(e,t){Ra.prototype[e]=t},Ra.defineDocExtension=function(e,t){ks.prototype[e]=t},Ra.fromTextArea=ol,sl(Ra),Ra.version="5.65.3",Ra}()}(o);var s=o.exports;e.C=s;var a=Object.freeze(i({__proto__:null,[Symbol.toStringTag]:"Module",default:s},[o.exports]));e.c=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return r})),n.d(t,"versionInfo",(function(){return i})),n.d(t,"graphql",(function(){return to})),n.d(t,"graphqlSync",(function(){return no})),n.d(t,"resolveObjMapThunk",(function(){return Ot})),n.d(t,"resolveReadonlyArrayThunk",(function(){return At})),n.d(t,"GraphQLSchema",(function(){return Pn})),n.d(t,"GraphQLDirective",(function(){return cn})),n.d(t,"GraphQLScalarType",(function(){return It})),n.d(t,"GraphQLObjectType",(function(){return Dt})),n.d(t,"GraphQLInterfaceType",(function(){return Ut})),n.d(t,"GraphQLUnionType",(function(){return Bt})),n.d(t,"GraphQLEnumType",(function(){return zt})),n.d(t,"GraphQLInputObjectType",(function(){return Ht})),n.d(t,"GraphQLList",(function(){return bt})),n.d(t,"GraphQLNonNull",(function(){return Et})),n.d(t,"specifiedScalarTypes",(function(){return on})),n.d(t,"GraphQLInt",(function(){return Xt})),n.d(t,"GraphQLFloat",(function(){return en})),n.d(t,"GraphQLString",(function(){return tn})),n.d(t,"GraphQLBoolean",(function(){return nn})),n.d(t,"GraphQLID",(function(){return rn})),n.d(t,"GRAPHQL_MAX_INT",(function(){return Yt})),n.d(t,"GRAPHQL_MIN_INT",(function(){return Zt})),n.d(t,"specifiedDirectives",(function(){return gn})),n.d(t,"GraphQLIncludeDirective",(function(){return fn})),n.d(t,"GraphQLSkipDirective",(function(){return dn})),n.d(t,"GraphQLDeprecatedDirective",(function(){return hn})),n.d(t,"GraphQLSpecifiedByDirective",(function(){return mn})),n.d(t,"TypeKind",(function(){return Nn})),n.d(t,"DEFAULT_DEPRECATION_REASON",(function(){return pn})),n.d(t,"introspectionTypes",(function(){return Ln})),n.d(t,"__Schema",(function(){return Tn})),n.d(t,"__Directive",(function(){return _n})),n.d(t,"__DirectiveLocation",(function(){return kn})),n.d(t,"__Type",(function(){return xn})),n.d(t,"__Field",(function(){return Cn})),n.d(t,"__InputValue",(function(){return wn})),n.d(t,"__EnumValue",(function(){return Sn})),n.d(t,"__TypeKind",(function(){return An})),n.d(t,"SchemaMetaFieldDef",(function(){return On})),n.d(t,"TypeMetaFieldDef",(function(){return In})),n.d(t,"TypeNameMetaFieldDef",(function(){return Dn})),n.d(t,"isSchema",(function(){return Mn})),n.d(t,"isDirective",(function(){return ln})),n.d(t,"isType",(function(){return He})),n.d(t,"isScalarType",(function(){return We})),n.d(t,"isObjectType",(function(){return Ke})),n.d(t,"isInterfaceType",(function(){return Ye})),n.d(t,"isUnionType",(function(){return Xe})),n.d(t,"isEnumType",(function(){return tt})),n.d(t,"isInputObjectType",(function(){return rt})),n.d(t,"isListType",(function(){return ot})),n.d(t,"isNonNullType",(function(){return at})),n.d(t,"isInputType",(function(){return ut})),n.d(t,"isOutputType",(function(){return ft})),n.d(t,"isLeafType",(function(){return pt})),n.d(t,"isCompositeType",(function(){return mt})),n.d(t,"isAbstractType",(function(){return vt})),n.d(t,"isWrappingType",(function(){return Tt})),n.d(t,"isNullableType",(function(){return kt})),n.d(t,"isNamedType",(function(){return wt})),n.d(t,"isRequiredArgument",(function(){return Vt})),n.d(t,"isRequiredInputField",(function(){return Wt})),n.d(t,"isSpecifiedScalarType",(function(){return sn})),n.d(t,"isIntrospectionType",(function(){return Fn})),n.d(t,"isSpecifiedDirective",(function(){return vn})),n.d(t,"assertSchema",(function(){return Rn})),n.d(t,"assertDirective",(function(){return un})),n.d(t,"assertType",(function(){return Ge})),n.d(t,"assertScalarType",(function(){return Qe})),n.d(t,"assertObjectType",(function(){return Je})),n.d(t,"assertInterfaceType",(function(){return Ze})),n.d(t,"assertUnionType",(function(){return et})),n.d(t,"assertEnumType",(function(){return nt})),n.d(t,"assertInputObjectType",(function(){return it})),n.d(t,"assertListType",(function(){return st})),n.d(t,"assertNonNullType",(function(){return lt})),n.d(t,"assertInputType",(function(){return ct})),n.d(t,"assertOutputType",(function(){return dt})),n.d(t,"assertLeafType",(function(){return ht})),n.d(t,"assertCompositeType",(function(){return gt})),n.d(t,"assertAbstractType",(function(){return yt})),n.d(t,"assertWrappingType",(function(){return _t})),n.d(t,"assertNullableType",(function(){return xt})),n.d(t,"assertNamedType",(function(){return St})),n.d(t,"getNullableType",(function(){return Ct})),n.d(t,"getNamedType",(function(){return Nt})),n.d(t,"validateSchema",(function(){return Vn})),n.d(t,"assertValidSchema",(function(){return Un})),n.d(t,"assertName",(function(){return ze})),n.d(t,"assertEnumValueName",(function(){return $e})),n.d(t,"Token",(function(){return E})),n.d(t,"Source",(function(){return se})),n.d(t,"Location",(function(){return b})),n.d(t,"OperationTypeNode",(function(){return x})),n.d(t,"getLocation",(function(){return c})),n.d(t,"printLocation",(function(){return f})),n.d(t,"printSourceLocation",(function(){return d})),n.d(t,"Lexer",(function(){return P})),n.d(t,"TokenKind",(function(){return S})),n.d(t,"parse",(function(){return le})),n.d(t,"parseValue",(function(){return ue})),n.d(t,"parseConstValue",(function(){return ce})),n.d(t,"parseType",(function(){return fe})),n.d(t,"print",(function(){return Me})),n.d(t,"visit",(function(){return Ie})),n.d(t,"visitInParallel",(function(){return De})),n.d(t,"getVisitFn",(function(){return Fe})),n.d(t,"getEnterLeaveForKind",(function(){return Le})),n.d(t,"BREAK",(function(){return Oe})),n.d(t,"Kind",(function(){return w})),n.d(t,"DirectiveLocation",(function(){return C})),n.d(t,"isDefinitionNode",(function(){return ir})),n.d(t,"isExecutableDefinitionNode",(function(){return or})),n.d(t,"isSelectionNode",(function(){return sr})),n.d(t,"isValueNode",(function(){return ar})),n.d(t,"isConstValueNode",(function(){return lr})),n.d(t,"isTypeNode",(function(){return ur})),n.d(t,"isTypeSystemDefinitionNode",(function(){return cr})),n.d(t,"isTypeDefinitionNode",(function(){return fr})),n.d(t,"isTypeSystemExtensionNode",(function(){return dr})),n.d(t,"isTypeExtensionNode",(function(){return pr})),n.d(t,"execute",(function(){return ji})),n.d(t,"executeSync",(function(){return Vi})),n.d(t,"defaultFieldResolver",(function(){return Xi})),n.d(t,"defaultTypeResolver",(function(){return Zi})),n.d(t,"responsePathAsArray",(function(){return Kr})),n.d(t,"getArgumentValues",(function(){return ti})),n.d(t,"getVariableValues",(function(){return ei})),n.d(t,"getDirectiveValues",(function(){return ni})),n.d(t,"subscribe",(function(){return so})),n.d(t,"createSourceEventStream",(function(){return ao})),n.d(t,"validate",(function(){return Li})),n.d(t,"ValidationContext",(function(){return Di})),n.d(t,"specifiedRules",(function(){return Ni})),n.d(t,"ExecutableDefinitionsRule",(function(){return hr})),n.d(t,"FieldsOnCorrectTypeRule",(function(){return mr})),n.d(t,"FragmentsOnCompositeTypesRule",(function(){return gr})),n.d(t,"KnownArgumentNamesRule",(function(){return vr})),n.d(t,"KnownDirectivesRule",(function(){return br})),n.d(t,"KnownFragmentNamesRule",(function(){return Er})),n.d(t,"KnownTypeNamesRule",(function(){return Tr})),n.d(t,"LoneAnonymousOperationRule",(function(){return kr})),n.d(t,"NoFragmentCyclesRule",(function(){return Cr})),n.d(t,"NoUndefinedVariablesRule",(function(){return wr})),n.d(t,"NoUnusedFragmentsRule",(function(){return Sr})),n.d(t,"NoUnusedVariablesRule",(function(){return Nr})),n.d(t,"OverlappingFieldsCanBeMergedRule",(function(){return Ir})),n.d(t,"PossibleFragmentSpreadsRule",(function(){return Ur})),n.d(t,"ProvidedRequiredArgumentsRule",(function(){return zr})),n.d(t,"ScalarLeafsRule",(function(){return Gr})),n.d(t,"SingleFieldSubscriptionsRule",(function(){return li})),n.d(t,"UniqueArgumentNamesRule",(function(){return fi})),n.d(t,"UniqueDirectivesPerLocationRule",(function(){return pi})),n.d(t,"UniqueFragmentNamesRule",(function(){return vi})),n.d(t,"UniqueInputFieldNamesRule",(function(){return yi})),n.d(t,"UniqueOperationNamesRule",(function(){return bi})),n.d(t,"UniqueVariableNamesRule",(function(){return _i})),n.d(t,"ValuesOfCorrectTypeRule",(function(){return ki})),n.d(t,"VariablesAreInputTypesRule",(function(){return Ci})),n.d(t,"VariablesInAllowedPositionRule",(function(){return wi})),n.d(t,"LoneSchemaDefinitionRule",(function(){return xr})),n.d(t,"UniqueOperationTypesRule",(function(){return Ei})),n.d(t,"UniqueTypeNamesRule",(function(){return Ti})),n.d(t,"UniqueEnumValueNamesRule",(function(){return hi})),n.d(t,"UniqueFieldDefinitionNamesRule",(function(){return mi})),n.d(t,"UniqueArgumentDefinitionNamesRule",(function(){return ci})),n.d(t,"UniqueDirectiveNamesRule",(function(){return di})),n.d(t,"PossibleTypeExtensionsRule",(function(){return Br})),n.d(t,"NoDeprecatedCustomRule",(function(){return lo})),n.d(t,"NoSchemaIntrospectionCustomRule",(function(){return uo})),n.d(t,"GraphQLError",(function(){return h})),n.d(t,"syntaxError",(function(){return y})),n.d(t,"locatedError",(function(){return Ri})),n.d(t,"printError",(function(){return g})),n.d(t,"formatError",(function(){return v})),n.d(t,"getIntrospectionQuery",(function(){return co})),n.d(t,"getOperationAST",(function(){return fo})),n.d(t,"getOperationRootType",(function(){return po})),n.d(t,"introspectionFromSchema",(function(){return ho})),n.d(t,"buildClientSchema",(function(){return mo})),n.d(t,"buildASTSchema",(function(){return To})),n.d(t,"buildSchema",(function(){return _o})),n.d(t,"extendSchema",(function(){return go})),n.d(t,"lexicographicSortSchema",(function(){return ko})),n.d(t,"printSchema",(function(){return So})),n.d(t,"printType",(function(){return Do})),n.d(t,"printIntrospectionSchema",(function(){return No})),n.d(t,"typeFromAST",(function(){return er})),n.d(t,"valueFromAST",(function(){return Zr})),n.d(t,"valueFromASTUntyped",(function(){return qe})),n.d(t,"astFromValue",(function(){return bn})),n.d(t,"TypeInfo",(function(){return tr})),n.d(t,"visitWithTypeInfo",(function(){return rr})),n.d(t,"coerceInputValue",(function(){return Jr})),n.d(t,"concatAST",(function(){return Uo})),n.d(t,"separateOperations",(function(){return Bo})),n.d(t,"stripIgnoredCharacters",(function(){return $o})),n.d(t,"isEqualType",(function(){return Qt})),n.d(t,"isTypeSubTypeOf",(function(){return Kt})),n.d(t,"doTypesOverlap",(function(){return Jt})),n.d(t,"assertValidName",(function(){return Ho})),n.d(t,"isValidNameError",(function(){return Go})),n.d(t,"BreakingChangeType",(function(){return Wo})),n.d(t,"DangerousChangeType",(function(){return Qo})),n.d(t,"findBreakingChanges",(function(){return Ko})),n.d(t,"findDangerousChanges",(function(){return Jo}));const r="16.5.0",i=Object.freeze({major:16,minor:5,patch:0,preReleaseTag:null});function o(e,t){if(!Boolean(e))throw new Error(t)}function s(e){return"function"==typeof(null==e?void 0:e.then)}function a(e){return"object"==typeof e&&null!==e}function l(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const u=/\r\n|[\n\r]/g;function c(e,t){let n=0,r=1;for(const i of e.body.matchAll(u)){if("number"==typeof i.index||l(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function f(e){return d(e.source,c(e.source,e.start))}function d(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?n:0,l=t.column+a,u=`${e.name}:${s}:${l}\n`,c=r.split(/\r\n|[\n\r]/g),f=c[i];if(f.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<f.length;e+=80)n.push(f.slice(e,e+80));return u+p([[s+" |",n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+p([[s-1+" |",c[i-1]],[s+" |",f],["|","^".padStart(l)],[s+1+" |",c[i+1]]])}function p(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")}class h extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:s,positions:l,path:u,originalError:f,extensions:d}=function(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}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=f?f:void 0,this.nodes=m(Array.isArray(o)?o:o?[o]:void 0);const p=m(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==p||null===(r=p[0])||void 0===r?void 0:r.source,this.positions=null!=l?l:null==p?void 0:p.map(e=>e.start),this.locations=l&&s?l.map(e=>c(s,e)):null==p?void 0:p.map(e=>c(e.source,e.start));const g=a(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!==(i=null!=d?d:g)&&void 0!==i?i: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!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,h):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"+f(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+d(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 m(e){return void 0===e||0===e.length?void 0:e}function g(e){return e.toString()}function v(e){return e.toJSON()}function y(e,t,n){return new h("Syntax Error: "+n,{source:e,positions:[t]})}class b{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class E{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const T={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"]},_=new Set(Object.keys(T));function k(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&_.has(t)}let x,C,w,S;function N(e){return 9===e||32===e}function A(e){return e>=48&&e<=57}function O(e){return e>=97&&e<=122||e>=65&&e<=90}function I(e){return O(e)||95===e}function D(e){return O(e)||A(e)||95===e}function L(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let t=0;t<e.length;++t){var o;const s=e[t],a=F(s);a!==s.length&&(r=null!==(o=r)&&void 0!==o?o:t,i=t,0!==t&&a<n&&(n=a))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function F(e){let t=0;for(;t<e.length&&N(e.charCodeAt(t));)++t;return t}function M(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!t&&(!r||!i)}function R(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every(e=>0===e.length||N(e.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,l=e.endsWith("\\"),u=a||l,c=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||s);let f="";const d=i&&N(e.charCodeAt(0));return(c&&!d||o)&&(f+="\n"),f+=n,(c||u)&&(f+="\n"),'"""'+f+'"""'}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(x||(x={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(C||(C={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(w||(w={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(S||(S={}));class P{constructor(e){const t=new E(S.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==S.EOF)do{if(e.next)e=e.next;else{const t=H(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===S.COMMENT);return e}}function j(e){return e===S.BANG||e===S.DOLLAR||e===S.AMP||e===S.PAREN_L||e===S.PAREN_R||e===S.SPREAD||e===S.COLON||e===S.EQUALS||e===S.AT||e===S.BRACKET_L||e===S.BRACKET_R||e===S.BRACE_L||e===S.PIPE||e===S.BRACE_R}function V(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function U(e,t){return B(e.charCodeAt(t))&&q(e.charCodeAt(t+1))}function B(e){return e>=55296&&e<=56319}function q(e){return e>=56320&&e<=57343}function z(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return S.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function $(e,t,n,r,i){const o=e.line,s=1+n-e.lineStart;return new E(t,n,r,o,s,i)}function H(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return G(e,i);case 33:return $(e,S.BANG,i,i+1);case 36:return $(e,S.DOLLAR,i,i+1);case 38:return $(e,S.AMP,i,i+1);case 40:return $(e,S.PAREN_L,i,i+1);case 41:return $(e,S.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return $(e,S.SPREAD,i,i+3);break;case 58:return $(e,S.COLON,i,i+1);case 61:return $(e,S.EQUALS,i,i+1);case 64:return $(e,S.AT,i,i+1);case 91:return $(e,S.BRACKET_L,i,i+1);case 93:return $(e,S.BRACKET_R,i,i+1);case 123:return $(e,S.BRACE_L,i,i+1);case 124:return $(e,S.PIPE,i,i+1);case 125:return $(e,S.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?te(e,i):K(e,i)}if(A(t)||45===t)return W(e,i,t);if(I(t))return ne(e,i);throw y(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":V(t)||U(n,i)?`Unexpected character: ${z(e,i)}.`:`Invalid character: ${z(e,i)}.`)}return $(e,S.EOF,r,r)}function G(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(V(e))++i;else{if(!U(n,i))break;i+=2}}return $(e,S.COMMENT,t,i,n.slice(t+1,i))}function W(e,t,n){const r=e.source.body;let i=t,o=n,s=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),A(o))throw y(e.source,i,`Invalid number, unexpected digit after 0: ${z(e,i)}.`)}else i=Q(e,i,o),o=r.charCodeAt(i);if(46===o&&(s=!0,o=r.charCodeAt(++i),i=Q(e,i,o),o=r.charCodeAt(i)),69!==o&&101!==o||(s=!0,o=r.charCodeAt(++i),43!==o&&45!==o||(o=r.charCodeAt(++i)),i=Q(e,i,o),o=r.charCodeAt(i)),46===o||I(o))throw y(e.source,i,`Invalid number, expected digit but got: ${z(e,i)}.`);return $(e,s?S.FLOAT:S.INT,t,i,r.slice(t,i))}function Q(e,t,n){if(!A(n))throw y(e.source,t,`Invalid number, expected digit but got: ${z(e,t)}.`);const r=e.source.body;let i=t+1;for(;A(r.charCodeAt(i));)++i;return i}function K(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,s="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return s+=n.slice(o,i),$(e,S.STRING,t,i+1,s);if(92!==r){if(10===r||13===r)break;if(V(r))++i;else{if(!U(n,i))throw y(e.source,i,`Invalid character within String: ${z(e,i)}.`);i+=2}}else{s+=n.slice(o,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?J(e,i):Y(e,i):ee(e,i);s+=t.value,i+=t.size,o=i}}throw y(e.source,i,"Unterminated string.")}function J(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!V(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|X(e),r<0)break}throw y(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function Y(e,t){const n=e.source.body,r=Z(n,t+2);if(V(r))return{value:String.fromCodePoint(r),size:6};if(B(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=Z(n,t+8);if(q(e))return{value:String.fromCodePoint(r,e),size:12}}throw y(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function Z(e,t){return X(e.charCodeAt(t))<<12|X(e.charCodeAt(t+1))<<8|X(e.charCodeAt(t+2))<<4|X(e.charCodeAt(t+3))}function X(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ee(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw y(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function te(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,s=o,a="";const l=[];for(;o<r;){const r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){a+=n.slice(s,o),l.push(a);const r=$(e,S.BLOCK_STRING,t,o+3,L(l).join("\n"));return e.line+=l.length-1,e.lineStart=i,r}if(92!==r||34!==n.charCodeAt(o+1)||34!==n.charCodeAt(o+2)||34!==n.charCodeAt(o+3))if(10!==r&&13!==r)if(V(r))++o;else{if(!U(n,o))throw y(e.source,o,`Invalid character within String: ${z(e,o)}.`);o+=2}else a+=n.slice(s,o),l.push(a),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,a="",s=o,i=o;else a+=n.slice(s,o),s=o+1,o+=4}throw y(e.source,o,"Unterminated string.")}function ne(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){if(!D(n.charCodeAt(i)))break;++i}return $(e,S.NAME,t,i,n.slice(t,i))}function re(e){return ie(e,[])}function ie(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:ie(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(ie(e[r],t));1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`);return"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(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}(e)+"]";return"{ "+n.map(([e,n])=>e+": "+ie(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const oe=function(e,t){return e instanceof t};class se{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||o(!1,`Body must be a string. Received: ${re(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||o(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||o(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function ae(e){return oe(e,se)}function le(e,t){return new de(e,t).parseDocument()}function ue(e,t){const n=new de(e,t);n.expectToken(S.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(S.EOF),r}function ce(e,t){const n=new de(e,t);n.expectToken(S.SOF);const r=n.parseConstValueLiteral();return n.expectToken(S.EOF),r}function fe(e,t){const n=new de(e,t);n.expectToken(S.SOF);const r=n.parseTypeReference();return n.expectToken(S.EOF),r}class de{constructor(e,t){const n=ae(e)?e:new se(e);this._lexer=new P(n),this._options=t}parseName(){const e=this.expectToken(S.NAME);return this.node(e,{kind:w.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:w.DOCUMENT,definitions:this.many(S.SOF,this.parseDefinition,S.EOF)})}parseDefinition(){if(this.peek(S.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===S.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw y(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(S.BRACE_L))return this.node(e,{kind:w.OPERATION_DEFINITION,operation:x.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(S.NAME)&&(n=this.parseName()),this.node(e,{kind:w.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(S.NAME);switch(e.value){case"query":return x.QUERY;case"mutation":return x.MUTATION;case"subscription":return x.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(S.PAREN_L,this.parseVariableDefinition,S.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:w.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(S.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(S.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(S.DOLLAR),this.node(e,{kind:w.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:w.SELECTION_SET,selections:this.many(S.BRACE_L,this.parseSelection,S.BRACE_R)})}parseSelection(){return this.peek(S.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(S.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:w.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(S.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(S.PAREN_L,t,S.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(S.COLON),this.node(t,{kind:w.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(S.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(S.NAME)?this.node(e,{kind:w.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:w.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:w.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:w.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case S.BRACKET_L:return this.parseList(e);case S.BRACE_L:return this.parseObject(e);case S.INT:return this._lexer.advance(),this.node(t,{kind:w.INT,value:t.value});case S.FLOAT:return this._lexer.advance(),this.node(t,{kind:w.FLOAT,value:t.value});case S.STRING:case S.BLOCK_STRING:return this.parseStringLiteral();case S.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:w.BOOLEAN,value:!0});case"false":return this.node(t,{kind:w.BOOLEAN,value:!1});case"null":return this.node(t,{kind:w.NULL});default:return this.node(t,{kind:w.ENUM,value:t.value})}case S.DOLLAR:if(e){if(this.expectToken(S.DOLLAR),this._lexer.token.kind===S.NAME){const e=this._lexer.token.value;throw y(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:w.STRING,value:e.value,block:e.kind===S.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:w.LIST,values:this.any(S.BRACKET_L,()=>this.parseValueLiteral(e),S.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:w.OBJECT,fields:this.any(S.BRACE_L,()=>this.parseObjectField(e),S.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(S.COLON),this.node(t,{kind:w.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(S.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(S.AT),this.node(t,{kind:w.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(S.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(S.BRACKET_R),t=this.node(e,{kind:w.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(S.BANG)?this.node(e,{kind:w.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:w.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(S.STRING)||this.peek(S.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(S.BRACE_L,this.parseOperationTypeDefinition,S.BRACE_R);return this.node(e,{kind:w.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(S.COLON);const n=this.parseNamedType();return this.node(e,{kind:w.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:w.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:w.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(S.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(S.BRACE_L,this.parseFieldDefinition,S.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(S.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:w.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(S.PAREN_L,this.parseInputValueDef,S.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(S.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(S.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:w.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:w.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:w.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(S.EQUALS)?this.delimitedMany(S.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:w.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(S.BRACE_L,this.parseEnumValueDefinition,S.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:w.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw y(this._lexer.source,this._lexer.token.start,pe(this._lexer.token)+" is reserved and cannot be used for an enum value.");return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:w.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(S.BRACE_L,this.parseInputValueDef,S.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===S.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(S.BRACE_L,this.parseOperationTypeDefinition,S.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:w.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:w.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:w.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:w.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:w.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:w.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:w.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(S.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:w.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(S.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(C,t.value))return t;throw this.unexpected(e)}node(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(t.loc=new b(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw y(this._lexer.source,t.start,`Expected ${he(e)}, found ${pe(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==S.NAME||t.value!==e)throw y(this._lexer.source,t.start,`Expected "${e}", found ${pe(t)}.`);this._lexer.advance()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===S.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return y(this._lexer.source,t.start,`Unexpected ${pe(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}}function pe(e){const t=e.value;return he(e.kind)+(null!=t?` "${t}"`:"")}function he(e){return j(e)?`"${e}"`:e}function me(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const s=o.slice(0,5),a=s.pop();return i+s.join(", ")+", or "+a+"?"}function ge(e){return e}function ve(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function ye(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function be(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function Ee(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(_e(i)&&_e(o)){let s=0;do{++n,s=10*s+i-Te,i=e.charCodeAt(n)}while(_e(i)&&s>0);let a=0;do{++r,a=10*a+o-Te,o=t.charCodeAt(r)}while(_e(o)&&a>0);if(s<a)return-1;if(s>a)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}const Te=48;function _e(e){return!isNaN(e)&&Te<=e&&e<=57}function ke(e,t){const n=Object.create(null),r=new xe(e),i=Math.floor(.4*e.length)+1;for(const e of t){const t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{const r=n[e]-n[t];return 0!==r?r:Ee(e,t)})}class xe{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=Ce(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 r=Ce(n),i=this._inputArray;if(r.length<i.length){const e=r;r=i,i=e}const o=r.length,s=i.length;if(o-s>t)return;const a=this._rows;for(let e=0;e<=s;e++)a[0][e]=e;for(let e=1;e<=o;e++){const n=a[(e-1)%3],o=a[e%3];let l=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=a[(e-2)%3][t-2];u=Math.min(u,n+1)}u<l&&(l=u),o[t]=u}if(l>t)return}const l=a[o%3][s];return l<=t?l:void 0}}function Ce(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function we(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}const Se=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Ne(e){return Ae[e.charCodeAt(0)]}const Ae=["\\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"],Oe=Object.freeze({});function Ie(e,t,n=T){const r=new Map;for(const e of Object.values(w))r.set(e,Le(t,e));let i=void 0,s=Array.isArray(e),a=[e],l=-1,u=[],c=e,f=void 0,d=void 0;const p=[],h=[];do{l++;const e=l===a.length,y=e&&0!==u.length;if(e){if(f=0===h.length?void 0:p[p.length-1],c=d,d=h.pop(),y)if(s){c=c.slice();let e=0;for(const[t,n]of u){const r=t-e;null===n?(c.splice(r,1),e++):c[r]=n}}else{c=Object.defineProperties({},Object.getOwnPropertyDescriptors(c));for(const[e,t]of u)c[e]=t}l=i.index,a=i.keys,u=i.edits,s=i.inArray,i=i.prev}else if(d){if(f=s?l:a[l],c=d[f],null==c)continue;p.push(f)}let b;if(!Array.isArray(c)){var m,g;k(c)||o(!1,`Invalid AST Node: ${re(c)}.`);const n=e?null===(m=r.get(c.kind))||void 0===m?void 0:m.leave:null===(g=r.get(c.kind))||void 0===g?void 0:g.enter;if(b=null==n?void 0:n.call(t,c,f,d,p,h),b===Oe)break;if(!1===b){if(!e){p.pop();continue}}else if(void 0!==b&&(u.push([f,b]),!e)){if(!k(b)){p.pop();continue}c=b}}var v;if(void 0===b&&y&&u.push([f,c]),e)p.pop();else i={inArray:s,index:l,keys:a,edits:u,prev:i},s=Array.isArray(c),a=s?c:null!==(v=n[c.kind])&&void 0!==v?v:[],l=-1,u=[],d&&h.push(d),d=c}while(void 0!==i);return 0!==u.length?u[u.length-1][1]:e}function De(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(w)){let i=!1;const o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:n,leave:a}=Le(e[t],r);i||(i=null!=n||null!=a),o[t]=n,s[t]=a}if(!i)continue;const a={enter(...n){const r=n[0];for(let s=0;s<e.length;s++)if(null===t[s]){var i;const a=null===(i=o[s])||void 0===i?void 0:i.apply(e[s],n);if(!1===a)t[s]=r;else if(a===Oe)t[s]=Oe;else if(void 0!==a)return a}},leave(...n){const r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;const r=null===(i=s[o])||void 0===i?void 0:i.apply(e[o],n);if(r===Oe)t[o]=Oe;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}};n[r]=a}return n}function Le(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 Fe(e,t,n){const{enter:r,leave:i}=Le(e,t);return n?i:r}function Me(e){return Ie(e,Re)}const Re={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Pe(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Ve("(",Pe(e.variableDefinitions,", "),")"),n=Pe([e.operation,Pe([e.name,t]),Pe(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Ve(" = ",n)+Ve(" ",Pe(r," "))},SelectionSet:{leave:({selections:e})=>je(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Ve("",e,": ")+t;let s=o+Ve("(",Pe(n,", "),")");return s.length>80&&(s=o+Ve("(\n",Ue(Pe(n,"\n")),"\n)")),Pe([s,Pe(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ve(" ",Pe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Pe(["...",Ve("on ",e),Pe(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Ve("(",Pe(n,", "),")")} on ${t} ${Ve("",Pe(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?R(e):`"${e.replace(Se,Ne)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Pe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Pe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ve("(",Pe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Ve("",e,"\n")+Pe(["schema",Pe(t," "),je(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Ve("",e,"\n")+Pe(["scalar",t,Pe(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Ve("",e,"\n")+Pe(["type",t,Ve("implements ",Pe(n," & ")),Pe(r," "),je(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Ve("",e,"\n")+t+(Be(n)?Ve("(\n",Ue(Pe(n,"\n")),"\n)"):Ve("(",Pe(n,", "),")"))+": "+r+Ve(" ",Pe(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Ve("",e,"\n")+Pe([t+": "+n,Ve("= ",r),Pe(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Ve("",e,"\n")+Pe(["interface",t,Ve("implements ",Pe(n," & ")),Pe(r," "),je(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Ve("",e,"\n")+Pe(["union",t,Pe(n," "),Ve("= ",Pe(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Ve("",e,"\n")+Pe(["enum",t,Pe(n," "),je(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Ve("",e,"\n")+Pe([t,Pe(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Ve("",e,"\n")+Pe(["input",t,Pe(n," "),je(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Ve("",e,"\n")+"directive @"+t+(Be(n)?Ve("(\n",Ue(Pe(n,"\n")),"\n)"):Ve("(",Pe(n,", "),")"))+(r?" repeatable":"")+" on "+Pe(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Pe(["extend schema",Pe(e," "),je(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Pe(["extend scalar",e,Pe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Pe(["extend type",e,Ve("implements ",Pe(t," & ")),Pe(n," "),je(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Pe(["extend interface",e,Ve("implements ",Pe(t," & ")),Pe(n," "),je(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Pe(["extend union",e,Pe(t," "),Ve("= ",Pe(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Pe(["extend enum",e,Pe(t," "),je(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Pe(["extend input",e,Pe(t," "),je(n)]," ")}};function Pe(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function je(e){return Ve("{\n",Ue(Pe(e,"\n")),"\n}")}function Ve(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Ue(e){return Ve(" ",e.replace(/\n/g,"\n "))}function Be(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}function qe(e,t){switch(e.kind){case w.NULL:return null;case w.INT:return parseInt(e.value,10);case w.FLOAT:return parseFloat(e.value);case w.STRING:case w.ENUM:case w.BOOLEAN:return e.value;case w.LIST:return e.values.map(e=>qe(e,t));case w.OBJECT:return ye(e.fields,e=>e.name.value,e=>qe(e.value,t));case w.VARIABLE:return null==t?void 0:t[e.name.value]}}function ze(e){if(null!=e||o(!1,"Must provide name."),"string"==typeof e||o(!1,"Expected name to be a string."),0===e.length)throw new h("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!D(e.charCodeAt(t)))throw new h(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!I(e.charCodeAt(0)))throw new h(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function $e(e){if("true"===e||"false"===e||"null"===e)throw new h("Enum values cannot be named: "+e);return ze(e)}function He(e){return We(e)||Ke(e)||Ye(e)||Xe(e)||tt(e)||rt(e)||ot(e)||at(e)}function Ge(e){if(!He(e))throw new Error(`Expected ${re(e)} to be a GraphQL type.`);return e}function We(e){return oe(e,It)}function Qe(e){if(!We(e))throw new Error(`Expected ${re(e)} to be a GraphQL Scalar type.`);return e}function Ke(e){return oe(e,Dt)}function Je(e){if(!Ke(e))throw new Error(`Expected ${re(e)} to be a GraphQL Object type.`);return e}function Ye(e){return oe(e,Ut)}function Ze(e){if(!Ye(e))throw new Error(`Expected ${re(e)} to be a GraphQL Interface type.`);return e}function Xe(e){return oe(e,Bt)}function et(e){if(!Xe(e))throw new Error(`Expected ${re(e)} to be a GraphQL Union type.`);return e}function tt(e){return oe(e,zt)}function nt(e){if(!tt(e))throw new Error(`Expected ${re(e)} to be a GraphQL Enum type.`);return e}function rt(e){return oe(e,Ht)}function it(e){if(!rt(e))throw new Error(`Expected ${re(e)} to be a GraphQL Input Object type.`);return e}function ot(e){return oe(e,bt)}function st(e){if(!ot(e))throw new Error(`Expected ${re(e)} to be a GraphQL List type.`);return e}function at(e){return oe(e,Et)}function lt(e){if(!at(e))throw new Error(`Expected ${re(e)} to be a GraphQL Non-Null type.`);return e}function ut(e){return We(e)||tt(e)||rt(e)||Tt(e)&&ut(e.ofType)}function ct(e){if(!ut(e))throw new Error(`Expected ${re(e)} to be a GraphQL input type.`);return e}function ft(e){return We(e)||Ke(e)||Ye(e)||Xe(e)||tt(e)||Tt(e)&&ft(e.ofType)}function dt(e){if(!ft(e))throw new Error(`Expected ${re(e)} to be a GraphQL output type.`);return e}function pt(e){return We(e)||tt(e)}function ht(e){if(!pt(e))throw new Error(`Expected ${re(e)} to be a GraphQL leaf type.`);return e}function mt(e){return Ke(e)||Ye(e)||Xe(e)}function gt(e){if(!mt(e))throw new Error(`Expected ${re(e)} to be a GraphQL composite type.`);return e}function vt(e){return Ye(e)||Xe(e)}function yt(e){if(!vt(e))throw new Error(`Expected ${re(e)} to be a GraphQL abstract type.`);return e}class bt{constructor(e){He(e)||o(!1,`Expected ${re(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class Et{constructor(e){kt(e)||o(!1,`Expected ${re(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 Tt(e){return ot(e)||at(e)}function _t(e){if(!Tt(e))throw new Error(`Expected ${re(e)} to be a GraphQL wrapping type.`);return e}function kt(e){return He(e)&&!at(e)}function xt(e){if(!kt(e))throw new Error(`Expected ${re(e)} to be a GraphQL nullable type.`);return e}function Ct(e){if(e)return at(e)?e.ofType:e}function wt(e){return We(e)||Ke(e)||Ye(e)||Xe(e)||tt(e)||rt(e)}function St(e){if(!wt(e))throw new Error(`Expected ${re(e)} to be a GraphQL named type.`);return e}function Nt(e){if(e){let t=e;for(;Tt(t);)t=t.ofType;return t}}function At(e){return"function"==typeof e?e():e}function Ot(e){return"function"==typeof e?e():e}class It{constructor(e){var t,n,r,i;const s=null!==(t=e.parseValue)&&void 0!==t?t:ge;this.name=ze(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:ge,this.parseValue=s,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,t)=>s(qe(e,t)),this.extensions=we(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(i=e.extensionASTNodes)&&void 0!==i?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||o(!1,this.name+' must provide "specifiedByURL" as a string, '+`but got: ${re(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||o(!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||o(!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()}}class Dt{constructor(e){var t;this.name=ze(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=we(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>Ft(e),this._interfaces=()=>Lt(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||o(!1,this.name+' must provide "isTypeOf" as a function, '+`but got: ${re(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:Pt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Lt(e){var t;const n=At(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||o(!1,e.name+" interfaces must be an Array or a function which returns an Array."),n}function Ft(e){const t=Ot(e.fields);return Rt(t)||o(!1,e.name+" fields must be an object with field names as keys or a function which returns such an object."),be(t,(t,n)=>{var r;Rt(t)||o(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||o(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${re(t.resolve)}.`);const i=null!==(r=t.args)&&void 0!==r?r:{};return Rt(i)||o(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:ze(n),description:t.description,type:t.type,args:Mt(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:we(t.extensions),astNode:t.astNode}})}function Mt(e){return Object.entries(e).map(([e,t])=>({name:ze(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:we(t.extensions),astNode:t.astNode}))}function Rt(e){return a(e)&&!Array.isArray(e)}function Pt(e){return be(e,e=>({description:e.description,type:e.type,args:jt(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function jt(e){return ye(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function Vt(e){return at(e.type)&&void 0===e.defaultValue}class Ut{constructor(e){var t;this.name=ze(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=we(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Ft.bind(void 0,e),this._interfaces=Lt.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||o(!1,this.name+' must provide "resolveType" as a function, '+`but got: ${re(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:Pt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Bt{constructor(e){var t;this.name=ze(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=we(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=qt.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||o(!1,this.name+' must provide "resolveType" as a function, '+`but got: ${re(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 qt(e){const t=At(e.types);return Array.isArray(t)||o(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class zt{constructor(e){var t,n,r;this.name=ze(e.name),this.description=e.description,this.extensions=we(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(n=this.name,Rt(r=e.values)||o(!1,n+" values must be an object with value names as keys."),Object.entries(r).map(([e,t])=>(Rt(t)||o(!1,`${n}.${e} must refer to an object with a "value" key representing an internal value but got: ${re(t)}.`),{name:$e(e),description:t.description,value:void 0!==t.value?t.value:e,deprecationReason:t.deprecationReason,extensions:we(t.extensions),astNode:t.astNode}))),this._valueLookup=new Map(this._values.map(e=>[e.value,e])),this._nameLookup=ve(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 h(`Enum "${this.name}" cannot represent value: ${re(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=re(e);throw new h(`Enum "${this.name}" cannot represent non-string value: ${t}.`+$t(this,t))}const t=this.getValue(e);if(null==t)throw new h(`Value "${e}" does not exist in "${this.name}" enum.`+$t(this,e));return t.value}parseLiteral(e,t){if(e.kind!==w.ENUM){const t=Me(e);throw new h(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+$t(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=Me(e);throw new h(`Value "${t}" does not exist in "${this.name}" enum.`+$t(this,t),{nodes:e})}return n.value}toConfig(){const e=ye(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 $t(e,t){return me("the enum value",ke(t,e.getValues().map(e=>e.name)))}class Ht{constructor(e){var t;this.name=ze(e.name),this.description=e.description,this.extensions=we(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Gt.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=be(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 Gt(e){const t=Ot(e.fields);return Rt(t)||o(!1,e.name+" fields must be an object with field names as keys or a function which returns such an object."),be(t,(t,n)=>(!("resolve"in t)||o(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:ze(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:we(t.extensions),astNode:t.astNode}))}function Wt(e){return at(e.type)&&void 0===e.defaultValue}function Qt(e,t){return e===t||(at(e)&&at(t)||!(!ot(e)||!ot(t)))&&Qt(e.ofType,t.ofType)}function Kt(e,t,n){return t===n||(at(n)?!!at(t)&&Kt(e,t.ofType,n.ofType):at(t)?Kt(e,t.ofType,n):ot(n)?!!ot(t)&&Kt(e,t.ofType,n.ofType):!ot(t)&&(vt(n)&&(Ye(t)||Ke(t))&&e.isSubType(n,t)))}function Jt(e,t,n){return t===n||(vt(t)?vt(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!vt(n)&&e.isSubType(n,t))}const Yt=2147483647,Zt=-2147483648,Xt=new It({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=an(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 h("Int cannot represent non-integer value: "+re(t));if(n>Yt||n<Zt)throw new h("Int cannot represent non 32-bit signed integer value: "+re(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new h("Int cannot represent non-integer value: "+re(e));if(e>Yt||e<Zt)throw new h("Int cannot represent non 32-bit signed integer value: "+e);return e},parseLiteral(e){if(e.kind!==w.INT)throw new h("Int cannot represent non-integer value: "+Me(e),{nodes:e});const t=parseInt(e.value,10);if(t>Yt||t<Zt)throw new h("Int cannot represent non 32-bit signed integer value: "+e.value,{nodes:e});return t}}),en=new It({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=an(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 h("Float cannot represent non numeric value: "+re(t));return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new h("Float cannot represent non numeric value: "+re(e));return e},parseLiteral(e){if(e.kind!==w.FLOAT&&e.kind!==w.INT)throw new h("Float cannot represent non numeric value: "+Me(e),e);return parseFloat(e.value)}}),tn=new It({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=an(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 h("String cannot represent value: "+re(e))},parseValue(e){if("string"!=typeof e)throw new h("String cannot represent a non string value: "+re(e));return e},parseLiteral(e){if(e.kind!==w.STRING)throw new h("String cannot represent a non string value: "+Me(e),{nodes:e});return e.value}}),nn=new It({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=an(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new h("Boolean cannot represent a non boolean value: "+re(t))},parseValue(e){if("boolean"!=typeof e)throw new h("Boolean cannot represent a non boolean value: "+re(e));return e},parseLiteral(e){if(e.kind!==w.BOOLEAN)throw new h("Boolean cannot represent a non boolean value: "+Me(e),{nodes:e});return e.value}}),rn=new It({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=an(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new h("ID cannot represent value: "+re(e))},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new h("ID cannot represent value: "+re(e))},parseLiteral(e){if(e.kind!==w.STRING&&e.kind!==w.INT)throw new h("ID cannot represent a non-string and non-integer value: "+Me(e),{nodes:e});return e.value}}),on=Object.freeze([tn,Xt,en,nn,rn]);function sn(e){return on.some(({name:t})=>e.name===t)}function an(e){if(a(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!a(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function ln(e){return oe(e,cn)}function un(e){if(!ln(e))throw new Error(`Expected ${re(e)} to be a GraphQL directive.`);return e}class cn{constructor(e){var t,n;this.name=ze(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=we(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||o(!1,`@${e.name} locations must be an Array.`);const r=null!==(n=e.args)&&void 0!==n?n:{};a(r)&&!Array.isArray(r)||o(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=Mt(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:jt(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const fn=new cn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[C.FIELD,C.FRAGMENT_SPREAD,C.INLINE_FRAGMENT],args:{if:{type:new Et(nn),description:"Included when true."}}}),dn=new cn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[C.FIELD,C.FRAGMENT_SPREAD,C.INLINE_FRAGMENT],args:{if:{type:new Et(nn),description:"Skipped when true."}}}),pn="No longer supported",hn=new cn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[C.FIELD_DEFINITION,C.ARGUMENT_DEFINITION,C.INPUT_FIELD_DEFINITION,C.ENUM_VALUE],args:{reason:{type:tn,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:pn}}}),mn=new cn({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[C.SCALAR],args:{url:{type:new Et(tn),description:"The URL that specifies the behavior of this scalar."}}}),gn=Object.freeze([fn,dn,hn,mn]);function vn(e){return gn.some(({name:t})=>t===e.name)}function yn(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function bn(e,t){if(at(t)){const n=bn(e,t.ofType);return(null==n?void 0:n.kind)===w.NULL?null:n}if(null===e)return{kind:w.NULL};if(void 0===e)return null;if(ot(t)){const n=t.ofType;if(yn(e)){const t=[];for(const r of e){const e=bn(r,n);null!=e&&t.push(e)}return{kind:w.LIST,values:t}}return bn(e,n)}if(rt(t)){if(!a(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=bn(e[r.name],r.type);t&&n.push({kind:w.OBJECT_FIELD,name:{kind:w.NAME,value:r.name},value:t})}return{kind:w.OBJECT,fields:n}}if(pt(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:w.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return En.test(e)?{kind:w.INT,value:e}:{kind:w.FLOAT,value:e}}if("string"==typeof n)return tt(t)?{kind:w.ENUM,value:n}:t===rn&&En.test(n)?{kind:w.INT,value:n}:{kind:w.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${re(n)}.`)}l(!1,"Unexpected input type: "+re(t))}const En=/^-?(?:0|[1-9][0-9]*)$/,Tn=new Dt({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:tn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Et(new bt(new Et(xn))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new Et(xn),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:xn,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:xn,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Et(new bt(new Et(_n))),resolve:e=>e.getDirectives()}})}),_n=new Dt({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 Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},isRepeatable:{type:new Et(nn),resolve:e=>e.isRepeatable},locations:{type:new Et(new bt(new Et(kn))),resolve:e=>e.locations},args:{type:new Et(new bt(new Et(wn))),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),kn=new zt({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:C.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:C.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:C.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:C.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:C.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:C.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:C.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:C.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:C.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:C.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:C.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:C.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:C.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:C.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:C.UNION,description:"Location adjacent to a union definition."},ENUM:{value:C.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:C.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:C.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:C.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),xn=new Dt({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 Et(An),resolve:e=>We(e)?Nn.SCALAR:Ke(e)?Nn.OBJECT:Ye(e)?Nn.INTERFACE:Xe(e)?Nn.UNION:tt(e)?Nn.ENUM:rt(e)?Nn.INPUT_OBJECT:ot(e)?Nn.LIST:at(e)?Nn.NON_NULL:void l(!1,`Unexpected type: "${re(e)}".`)},name:{type:tn,resolve:e=>"name"in e?e.name:void 0},description:{type:tn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:tn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new bt(new Et(Cn)),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Ke(e)||Ye(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new bt(new Et(xn)),resolve(e){if(Ke(e)||Ye(e))return e.getInterfaces()}},possibleTypes:{type:new bt(new Et(xn)),resolve(e,t,n,{schema:r}){if(vt(e))return r.getPossibleTypes(e)}},enumValues:{type:new bt(new Et(Sn)),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(tt(e)){const n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new bt(new Et(wn)),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(rt(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:xn,resolve:e=>"ofType"in e?e.ofType:void 0}})}),Cn=new Dt({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 Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},args:{type:new Et(new bt(new Et(wn))),args:{includeDeprecated:{type:nn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new Et(xn),resolve:e=>e.type},isDeprecated:{type:new Et(nn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})}),wn=new Dt({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 Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},type:{type:new Et(xn),resolve:e=>e.type},defaultValue:{type:tn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=bn(n,t);return r?Me(r):null}},isDeprecated:{type:new Et(nn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})}),Sn=new Dt({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 Et(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},isDeprecated:{type:new Et(nn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})});let Nn;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(Nn||(Nn={}));const An=new zt({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Nn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Nn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Nn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Nn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Nn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Nn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Nn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Nn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),On={name:"__schema",type:new Et(Tn),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},In={name:"__type",type:xn,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Et(tn),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Dn={name:"__typename",type:new Et(tn),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Ln=Object.freeze([Tn,_n,kn,xn,Cn,wn,Sn,An]);function Fn(e){return Ln.some(({name:t})=>e.name===t)}function Mn(e){return oe(e,Pn)}function Rn(e){if(!Mn(e))throw new Error(`Expected ${re(e)} to be a GraphQL schema.`);return e}class Pn{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,a(e)||o(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||o(!1,`"types" must be Array if provided but got: ${re(e.types)}.`),!e.directives||Array.isArray(e.directives)||o(!1,'"directives" must be Array if provided but got: '+re(e.directives)+"."),this.description=e.description,this.extensions=we(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:gn;const r=new Set(e.types);if(null!=e.types)for(const t of e.types)r.delete(t),jn(t,r);null!=this._queryType&&jn(this._queryType,r),null!=this._mutationType&&jn(this._mutationType,r),null!=this._subscriptionType&&jn(this._subscriptionType,r);for(const e of this._directives)if(ln(e))for(const t of e.args)jn(t.type,r);jn(Tn,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of r){if(null==e)continue;const t=e.name;if(t||o(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,Ye(e)){for(const t of e.getInterfaces())if(Ye(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(Ke(e))for(const t of e.getInterfaces())if(Ye(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case x.QUERY:return this.getQueryType();case x.MUTATION:return this.getMutationType();case x.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return Xe(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),Xe(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function jn(e,t){const n=Nt(e);if(!t.has(n))if(t.add(n),Xe(n))for(const e of n.getTypes())jn(e,t);else if(Ke(n)||Ye(n)){for(const e of n.getInterfaces())jn(e,t);for(const e of Object.values(n.getFields())){jn(e.type,t);for(const n of e.args)jn(n.type,t)}}else if(rt(n))for(const e of Object.values(n.getFields()))jn(e.type,t);return t}function Vn(e){if(Rn(e),e.__validationErrors)return e.__validationErrors;const t=new Bn(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!Ke(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${re(n)}.`,null!==(r=qn(t,x.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const i=t.getMutationType();var o;i&&!Ke(i)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+re(i)+".",null!==(o=qn(t,x.MUTATION))&&void 0!==o?o:i.astNode);const s=t.getSubscriptionType();var a;s&&!Ke(s)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+re(s)+".",null!==(a=qn(t,x.SUBSCRIPTION))&&void 0!==a?a:s.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if(ln(n)){zn(e,n);for(const r of n.args){var t;if(zn(e,r),ut(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${re(r.type)}.`,r.astNode),Vt(r)&&null!=r.deprecationReason)e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[Xn(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${re(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const s=Object.values(o.getFields());for(const t of s)if(at(t.type)&&rt(t.type.ofType)){const o=t.type.ofType,s=r[o.name];if(n.push(t),void 0===s)i(o);else{const t=n.slice(s),r=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const r of Object.values(n))wt(r)?(Fn(r)||zn(e,r),Ke(r)||Ye(r)?($n(e,r),Hn(e,r)):Xe(r)?Qn(e,r):tt(r)?Kn(e,r):rt(r)&&(Jn(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${re(r)}.`,r.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function Un(e){const t=Vn(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}class Bn{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new h(e,{nodes:n}))}getErrors(){return this._errors}}function qn(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]}).find(e=>e.operation===t))||void 0===n?void 0:n.type}function zn(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function $n(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){var r;if(zn(e,s),!ft(s.type))e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${re(s.type)}.`,null===(r=s.astNode)||void 0===r?void 0:r.type);for(const n of s.args){const r=n.name;var i,o;if(zn(e,n),!ut(n.type))e.reportError(`The type of ${t.name}.${s.name}(${r}:) must be Input Type but got: ${re(n.type)}.`,null===(i=n.astNode)||void 0===i?void 0:i.type);if(Vt(n)&&null!=n.deprecationReason)e.reportError(`Required argument ${t.name}.${s.name}(${r}:) cannot be deprecated.`,[Xn(n.astNode),null===(o=n.astNode)||void 0===o?void 0:o.type])}}}function Hn(e,t){const n=Object.create(null);for(const r of t.getInterfaces())Ye(r)?t!==r?n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Yn(t,r)):(n[r.name]=!0,Wn(e,t,r),Gn(e,t,r)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Yn(t,r)):e.reportError(`Type ${re(t)} must only implement Interface types, it cannot implement ${re(r)}.`,Yn(t,r))}function Gn(e,t,n){const r=t.getFields();for(const l of Object.values(n.getFields())){const u=l.name,c=r[u];if(c){var i,o;if(!Kt(e.schema,c.type,l.type))e.reportError(`Interface field ${n.name}.${u} expects type ${re(l.type)} but ${t.name}.${u} is type ${re(c.type)}.`,[null===(i=l.astNode)||void 0===i?void 0:i.type,null===(o=c.astNode)||void 0===o?void 0:o.type]);for(const r of l.args){const i=r.name,o=c.args.find(e=>e.name===i);var s,a;if(o){if(!Qt(r.type,o.type))e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${re(r.type)} but ${t.name}.${u}(${i}:) is type `+re(o.type)+".",[null===(s=r.astNode)||void 0===s?void 0:s.type,null===(a=o.astNode)||void 0===a?void 0:a.type])}else e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,c.astNode])}for(const r of c.args){const i=r.name;!l.args.find(e=>e.name===i)&&Vt(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,l.astNode])}}else e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes])}}function Wn(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...Yn(n,i),...Yn(t,n)])}function Qn(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const i of n)r[i.name]?e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,Zn(t,i.name)):(r[i.name]=!0,Ke(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${re(i)}.`,Zn(t,String(i))))}function Kn(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)zn(e,t)}function Jn(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){var r,i;if(zn(e,o),!ut(o.type))e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${re(o.type)}.`,null===(r=o.astNode)||void 0===r?void 0:r.type);if(Wt(o)&&null!=o.deprecationReason)e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[Xn(o.astNode),null===(i=o.astNode)||void 0===i?void 0:i.type])}}function Yn(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]}).filter(e=>e.name.value===t.name)}function Zn(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]}).filter(e=>e.name.value===t)}function Xn(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===hn.name)}function er(e,t){switch(t.kind){case w.LIST_TYPE:{const n=er(e,t.type);return n&&new bt(n)}case w.NON_NULL_TYPE:{const n=er(e,t.type);return n&&new Et(n)}case w.NAMED_TYPE:return e.getType(t.name.value)}}class tr{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:nr,t&&(ut(t)&&this._inputTypeStack.push(t),mt(t)&&this._parentTypeStack.push(t),ft(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case w.SELECTION_SET:{const e=Nt(this.getType());this._parentTypeStack.push(mt(e)?e:void 0);break}case w.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push(ft(i)?i:void 0);break}case w.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case w.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push(Ke(n)?n:void 0);break}case w.INLINE_FRAGMENT:case w.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?er(t,n):Nt(this.getType());this._typeStack.push(ft(r)?r:void 0);break}case w.VARIABLE_DEFINITION:{const n=er(t,e.type);this._inputTypeStack.push(ut(n)?n:void 0);break}case w.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(ut(r)?r:void 0);break}case w.LIST:{const e=Ct(this.getInputType()),t=ot(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ut(t)?t:void 0);break}case w.OBJECT_FIELD:{const t=Nt(this.getInputType());let n,r;rt(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(ut(n)?n:void 0);break}case w.ENUM:{const t=Nt(this.getInputType());let n;tt(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case w.SELECTION_SET:this._parentTypeStack.pop();break;case w.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case w.DIRECTIVE:this._directive=null;break;case w.OPERATION_DEFINITION:case w.INLINE_FRAGMENT:case w.FRAGMENT_DEFINITION:this._typeStack.pop();break;case w.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case w.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case w.LIST:case w.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case w.ENUM:this._enumValue=null}}}function nr(e,t,n){const r=n.name.value;return r===On.name&&e.getQueryType()===t?On:r===In.name&&e.getQueryType()===t?In:r===Dn.name&&mt(t)?Dn:Ke(t)||Ye(t)?t.getFields()[r]:void 0}function rr(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=Le(t,r.kind).enter;if(i){const o=i.apply(t,n);return void 0!==o&&(e.leave(r),k(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=Le(t,r.kind).leave;let o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}function ir(e){return or(e)||cr(e)||dr(e)}function or(e){return e.kind===w.OPERATION_DEFINITION||e.kind===w.FRAGMENT_DEFINITION}function sr(e){return e.kind===w.FIELD||e.kind===w.FRAGMENT_SPREAD||e.kind===w.INLINE_FRAGMENT}function ar(e){return e.kind===w.VARIABLE||e.kind===w.INT||e.kind===w.FLOAT||e.kind===w.STRING||e.kind===w.BOOLEAN||e.kind===w.NULL||e.kind===w.ENUM||e.kind===w.LIST||e.kind===w.OBJECT}function lr(e){return ar(e)&&(e.kind===w.LIST?e.values.some(lr):e.kind===w.OBJECT?e.fields.some(e=>lr(e.value)):e.kind!==w.VARIABLE)}function ur(e){return e.kind===w.NAMED_TYPE||e.kind===w.LIST_TYPE||e.kind===w.NON_NULL_TYPE}function cr(e){return e.kind===w.SCHEMA_DEFINITION||fr(e)||e.kind===w.DIRECTIVE_DEFINITION}function fr(e){return e.kind===w.SCALAR_TYPE_DEFINITION||e.kind===w.OBJECT_TYPE_DEFINITION||e.kind===w.INTERFACE_TYPE_DEFINITION||e.kind===w.UNION_TYPE_DEFINITION||e.kind===w.ENUM_TYPE_DEFINITION||e.kind===w.INPUT_OBJECT_TYPE_DEFINITION}function dr(e){return e.kind===w.SCHEMA_EXTENSION||pr(e)}function pr(e){return e.kind===w.SCALAR_TYPE_EXTENSION||e.kind===w.OBJECT_TYPE_EXTENSION||e.kind===w.INTERFACE_TYPE_EXTENSION||e.kind===w.UNION_TYPE_EXTENSION||e.kind===w.ENUM_TYPE_EXTENSION||e.kind===w.INPUT_OBJECT_TYPE_EXTENSION}function hr(e){return{Document(t){for(const n of t.definitions)if(!or(n)){const t=n.kind===w.SCHEMA_DEFINITION||n.kind===w.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new h(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function mr(e){return{Field(t){const n=e.getParentType();if(n){if(!e.getFieldDef()){const r=e.getSchema(),i=t.name.value;let o=me("to use an inline fragment on",function(e,t,n){if(!vt(t))return[];const r=new Set,i=Object.create(null);for(const s of e.getPossibleTypes(t))if(s.getFields()[n]){r.add(s),i[s.name]=1;for(const e of s.getInterfaces()){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(o=i[e.name])&&void 0!==o?o:0)+1)}}return[...r].sort((t,n)=>{const r=i[n.name]-i[t.name];return 0!==r?r:Ye(t)&&e.isSubType(t,n)?-1:Ye(n)&&e.isSubType(n,t)?1:Ee(t.name,n.name)}).map(e=>e.name)}(r,n,i));""===o&&(o=me(function(e,t){if(Ke(e)||Ye(e)){const n=Object.keys(e.getFields());return ke(t,n)}return[]}(n,i))),e.reportError(new h(`Cannot query field "${i}" on type "${n.name}".`+o,{nodes:t}))}}}}}function gr(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=er(e.getSchema(),n);if(t&&!mt(t)){const t=Me(n);e.reportError(new h(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=er(e.getSchema(),t.typeCondition);if(n&&!mt(n)){const n=Me(t.typeCondition);e.reportError(new h(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function vr(e){return{...yr(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const n=t.name.value,o=ke(n,r.args.map(e=>e.name));e.reportError(new h(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+me(o),{nodes:t}))}}}}function yr(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():gn;for(const e of r)t[e.name]=e.args.map(e=>e.name);const i=e.getDocument().definitions;for(const e of i)if(e.kind===w.DIRECTIVE_DEFINITION){var o;const n=null!==(o=e.arguments)&&void 0!==o?o:[];t[e.name.value]=n.map(e=>e.name.value)}return{Directive(n){const r=n.name.value,i=t[r];if(n.arguments&&i)for(const t of n.arguments){const n=t.name.value;if(!i.includes(n)){const o=ke(n,i);e.reportError(new h(`Unknown argument "${n}" on directive "@${r}".`+me(o),{nodes:t}))}}return!1}}}function br(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():gn;for(const e of r)t[e.name]=e.locations;const i=e.getDocument().definitions;for(const e of i)e.kind===w.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map(e=>e.value));return{Directive(n,r,i,o,s){const a=n.name.value,u=t[a];if(!u)return void e.reportError(new h(`Unknown directive "@${a}".`,{nodes:n}));const c=function(e){const t=e[e.length-1];switch("kind"in t||l(!1),t.kind){case w.OPERATION_DEFINITION:return function(e){switch(e){case x.QUERY:return C.QUERY;case x.MUTATION:return C.MUTATION;case x.SUBSCRIPTION:return C.SUBSCRIPTION}}(t.operation);case w.FIELD:return C.FIELD;case w.FRAGMENT_SPREAD:return C.FRAGMENT_SPREAD;case w.INLINE_FRAGMENT:return C.INLINE_FRAGMENT;case w.FRAGMENT_DEFINITION:return C.FRAGMENT_DEFINITION;case w.VARIABLE_DEFINITION:return C.VARIABLE_DEFINITION;case w.SCHEMA_DEFINITION:case w.SCHEMA_EXTENSION:return C.SCHEMA;case w.SCALAR_TYPE_DEFINITION:case w.SCALAR_TYPE_EXTENSION:return C.SCALAR;case w.OBJECT_TYPE_DEFINITION:case w.OBJECT_TYPE_EXTENSION:return C.OBJECT;case w.FIELD_DEFINITION:return C.FIELD_DEFINITION;case w.INTERFACE_TYPE_DEFINITION:case w.INTERFACE_TYPE_EXTENSION:return C.INTERFACE;case w.UNION_TYPE_DEFINITION:case w.UNION_TYPE_EXTENSION:return C.UNION;case w.ENUM_TYPE_DEFINITION:case w.ENUM_TYPE_EXTENSION:return C.ENUM;case w.ENUM_VALUE_DEFINITION:return C.ENUM_VALUE;case w.INPUT_OBJECT_TYPE_DEFINITION:case w.INPUT_OBJECT_TYPE_EXTENSION:return C.INPUT_OBJECT;case w.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||l(!1),t.kind===w.INPUT_OBJECT_TYPE_DEFINITION?C.INPUT_FIELD_DEFINITION:C.ARGUMENT_DEFINITION}default:l(!1,"Unexpected kind: "+re(t.kind))}}(s);c&&!u.includes(c)&&e.reportError(new h(`Directive "@${a}" may not be used on ${c}.`,{nodes:n}))}}}function Er(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new h(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function Tr(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const t of e.getDocument().definitions)fr(t)&&(r[t.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,s,a,l){const u=t.name.value;if(!n[u]&&!r[u]){var c;const n=null!==(c=l[2])&&void 0!==c?c:s,r=null!=n&&("kind"in(f=n)&&(cr(f)||dr(f)));if(r&&_r.includes(u))return;const o=ke(u,r?_r.concat(i):i);e.reportError(new h(`Unknown type "${u}".`+me(o),{nodes:t}))}var f}}}const _r=[...on,...Ln].map(e=>e.name);function kr(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===w.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new h("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function xr(e){var t,n,r;const i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType();let s=0;return{SchemaDefinition(t){o?e.reportError(new h("Cannot define a new schema within a schema extension.",{nodes:t})):(s>0&&e.reportError(new h("Must provide only one schema definition.",{nodes:t})),++s)}}}function Cr(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:i=>(function i(o){if(t[o.name.value])return;const s=o.name.value;t[s]=!0;const a=e.getFragmentSpreads(o.selectionSet);if(0===a.length)return;r[s]=n.length;for(const t of a){const o=t.name.value,s=r[o];if(n.push(t),void 0===s){const t=e.getFragment(o);t&&i(t)}else{const t=n.slice(s),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new h(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[s]=void 0}(i),!1)}}function wr(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const r=i.name.value;!0!==t[r]&&e.reportError(new h(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function Sr(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const r=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==r[n]&&e.reportError(new h(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function Nr(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:e}of i)r[e.name.value]=!0;for(const i of t){const t=i.variable.name.value;!0!==r[t]&&e.reportError(new h(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function Ar(e){switch(e.kind){case w.OBJECT:return{...e,fields:(t=e.fields,t.map(e=>({...e,value:Ar(e.value)})).sort((e,t)=>Ee(e.name.value,t.name.value)))};case w.LIST:return{...e,values:e.values.map(Ar)};case w.INT:case w.FLOAT:case w.STRING:case w.BOOLEAN:case w.NULL:case w.ENUM:case w.VARIABLE:return e}var t}function Or(e){return Array.isArray(e)?e.map(([e,t])=>`subfields "${e}" conflict because `+Or(t)).join(" and "):e}function Ir(e){const t=new Vr,n=new Map;return{SelectionSet(r){const i=function(e,t,n,r,i){const o=[],[s,a]=Pr(e,t,r,i);if(function(e,t,n,r,i){for(const[o,s]of Object.entries(i))if(s.length>1)for(let i=0;i<s.length;i++)for(let a=i+1;a<s.length;a++){const l=Mr(e,n,r,!1,o,s[i],s[a]);l&&t.push(l)}}(e,o,t,n,s),0!==a.length)for(let r=0;r<a.length;r++){Dr(e,o,t,n,!1,s,a[r]);for(let i=r+1;i<a.length;i++)Lr(e,o,t,n,!1,a[r],a[i])}return o}(e,n,t,e.getParentType(),r);for(const[[t,n],r,o]of i){const i=Or(n);e.reportError(new h(`Fields "${t}" conflict because ${i}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(o)}))}}}}function Dr(e,t,n,r,i,o,s){const a=e.getFragment(s);if(!a)return;const[l,u]=jr(e,n,a);if(o!==l){Fr(e,t,n,r,i,o,l);for(const a of u)r.has(a,s,i)||(r.add(a,s,i),Dr(e,t,n,r,i,o,a))}}function Lr(e,t,n,r,i,o,s){if(o===s)return;if(r.has(o,s,i))return;r.add(o,s,i);const a=e.getFragment(o),l=e.getFragment(s);if(!a||!l)return;const[u,c]=jr(e,n,a),[f,d]=jr(e,n,l);Fr(e,t,n,r,i,u,f);for(const s of d)Lr(e,t,n,r,i,o,s);for(const o of c)Lr(e,t,n,r,i,o,s)}function Fr(e,t,n,r,i,o,s){for(const[a,l]of Object.entries(o)){const o=s[a];if(o)for(const s of l)for(const l of o){const o=Mr(e,n,r,i,a,s,l);o&&t.push(o)}}}function Mr(e,t,n,r,i,o,s){const[a,l,u]=o,[c,f,d]=s,p=r||a!==c&&Ke(a)&&Ke(c);if(!p){const e=l.name.value,t=f.name.value;if(e!==t)return[[i,`"${e}" and "${t}" are different fields`],[l],[f]];if(Rr(l)!==Rr(f))return[[i,"they have differing arguments"],[l],[f]]}const h=null==u?void 0:u.type,m=null==d?void 0:d.type;if(h&&m&&function e(t,n){if(ot(t))return!ot(n)||e(t.ofType,n.ofType);if(ot(n))return!0;if(at(t))return!at(n)||e(t.ofType,n.ofType);if(at(n))return!0;if(pt(t)||pt(n))return t!==n;return!1}(h,m))return[[i,`they return conflicting types "${re(h)}" and "${re(m)}"`],[l],[f]];const g=l.selectionSet,v=f.selectionSet;if(g&&v){return function(e,t,n,r){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}(function(e,t,n,r,i,o,s,a){const l=[],[u,c]=Pr(e,t,i,o),[f,d]=Pr(e,t,s,a);Fr(e,l,t,n,r,u,f);for(const i of d)Dr(e,l,t,n,r,u,i);for(const i of c)Dr(e,l,t,n,r,f,i);for(const i of c)for(const o of d)Lr(e,l,t,n,r,i,o);return l}(e,t,n,p,Nt(h),g,Nt(m),v),i,l,f)}}function Rr(e){var t;const n=null!==(t=e.arguments)&&void 0!==t?t:[];return Me(Ar({kind:w.OBJECT,fields:n.map(e=>({kind:w.OBJECT_FIELD,name:e.name,value:e.value}))}))}function Pr(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),s=Object.create(null);!function e(t,n,r,i,o){for(const s of r.selections)switch(s.kind){case w.FIELD:{const e=s.name.value;let t;(Ke(n)||Ye(n))&&(t=n.getFields()[e]);const r=s.alias?s.alias.value:e;i[r]||(i[r]=[]),i[r].push([n,s,t]);break}case w.FRAGMENT_SPREAD:o[s.name.value]=!0;break;case w.INLINE_FRAGMENT:{const r=s.typeCondition,a=r?er(t.getSchema(),r):n;e(t,a,s.selectionSet,i,o);break}}}(e,n,r,o,s);const a=[o,Object.keys(s)];return t.set(r,a),a}function jr(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=er(e.getSchema(),n.typeCondition);return Pr(e,t,i,n.selectionSet)}class Vr{constructor(){this._data=new Map}has(e,t,n){var r;const[i,o]=e<t?[e,t]:[t,e],s=null===(r=this._data.get(i))||void 0===r?void 0:r.get(o);return void 0!==s&&(!!n||n===s)}add(e,t,n){const[r,i]=e<t?[e,t]:[t,e],o=this._data.get(r);void 0===o?this._data.set(r,new Map([[i,n]])):o.set(i,n)}}function Ur(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(mt(n)&&mt(r)&&!Jt(e.getSchema(),n,r)){const i=re(r),o=re(n);e.reportError(new h(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,r=function(e,t){const n=e.getFragment(t);if(n){const t=er(e.getSchema(),n.typeCondition);if(mt(t))return t}}(e,n),i=e.getParentType();if(r&&i&&!Jt(e.getSchema(),r,i)){const o=re(i),s=re(r);e.reportError(new h(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:t}))}}}}function Br(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)fr(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const i=r.name.value,o=n[i],s=null==t?void 0:t.getType(i);let a;if(o?a=qr[o.kind]:s&&(a=function(e){if(We(e))return w.SCALAR_TYPE_EXTENSION;if(Ke(e))return w.OBJECT_TYPE_EXTENSION;if(Ye(e))return w.INTERFACE_TYPE_EXTENSION;if(Xe(e))return w.UNION_TYPE_EXTENSION;if(tt(e))return w.ENUM_TYPE_EXTENSION;if(rt(e))return w.INPUT_OBJECT_TYPE_EXTENSION;l(!1,"Unexpected type: "+re(e))}(s)),a){if(a!==r.kind){const t=function(e){switch(e){case w.SCALAR_TYPE_EXTENSION:return"scalar";case w.OBJECT_TYPE_EXTENSION:return"object";case w.INTERFACE_TYPE_EXTENSION:return"interface";case w.UNION_TYPE_EXTENSION:return"union";case w.ENUM_TYPE_EXTENSION:return"enum";case w.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:l(!1,"Unexpected kind: "+re(e))}}(r.kind);e.reportError(new h(`Cannot extend non-${t} type "${i}".`,{nodes:o?[o,r]:r}))}}else{const o=ke(i,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new h(`Cannot extend type "${i}" because it is not defined.`+me(o),{nodes:r.name}))}}}const qr={[w.SCALAR_TYPE_DEFINITION]:w.SCALAR_TYPE_EXTENSION,[w.OBJECT_TYPE_DEFINITION]:w.OBJECT_TYPE_EXTENSION,[w.INTERFACE_TYPE_DEFINITION]:w.INTERFACE_TYPE_EXTENSION,[w.UNION_TYPE_DEFINITION]:w.UNION_TYPE_EXTENSION,[w.ENUM_TYPE_DEFINITION]:w.ENUM_TYPE_EXTENSION,[w.INPUT_OBJECT_TYPE_DEFINITION]:w.INPUT_OBJECT_TYPE_EXTENSION};function zr(e){return{...$r(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const i=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map(e=>e.name.value));for(const n of r.args)if(!i.has(n.name)&&Vt(n)){const i=re(n.type);e.reportError(new h(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function $r(e){var t;const n=Object.create(null),r=e.getSchema(),i=null!==(t=null==r?void 0:r.getDirectives())&&void 0!==t?t:gn;for(const e of i)n[e.name]=ve(e.args.filter(Vt),e=>e.name);const o=e.getDocument().definitions;for(const e of o)if(e.kind===w.DIRECTIVE_DEFINITION){var s;const t=null!==(s=e.arguments)&&void 0!==s?s:[];n[e.name.value]=ve(t.filter(Hr),e=>e.name.value)}return{Directive:{leave(t){const r=t.name.value,i=n[r];if(i){var o;const n=null!==(o=t.arguments)&&void 0!==o?o:[],s=new Set(n.map(e=>e.name.value));for(const[n,o]of Object.entries(i))if(!s.has(n)){const i=He(o.type)?re(o.type):Me(o.type);e.reportError(new h(`Directive "@${r}" argument "${n}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function Hr(e){return e.type.kind===w.NON_NULL_TYPE&&null==e.defaultValue}function Gr(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(pt(Nt(n))){if(r){const i=t.name.value,o=re(n);e.reportError(new h(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(!r){const r=t.name.value,i=re(n);e.reportError(new h(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}function Wr(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function Qr(e,t,n){return{prev:e,key:t,typename:n}}function Kr(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function Jr(e,t,n=Yr){return function e(t,n,r,i){if(at(n))return null!=t?e(t,n.ofType,r,i):void r(Kr(i),t,new h(`Expected non-nullable type "${re(n)}" not to be null.`));if(null==t)return null;if(ot(n)){const o=n.ofType;return yn(t)?Array.from(t,(t,n)=>{const s=Qr(i,n,void 0);return e(t,o,r,s)}):[e(t,o,r,i)]}if(rt(n)){if(!a(t))return void r(Kr(i),t,new h(`Expected type "${n.name}" to be an object.`));const o={},s=n.getFields();for(const a of Object.values(s)){const s=t[a.name];if(void 0!==s)o[a.name]=e(s,a.type,r,Qr(i,a.name,n.name));else if(void 0!==a.defaultValue)o[a.name]=a.defaultValue;else if(at(a.type)){const e=re(a.type);r(Kr(i),t,new h(`Field "${a.name}" of required type "${e}" was not provided.`))}}for(const e of Object.keys(t))if(!s[e]){const o=ke(e,Object.keys(n.getFields()));r(Kr(i),t,new h(`Field "${e}" is not defined by type "${n.name}".`+me(o)))}return o}if(pt(n)){let e;try{e=n.parseValue(t)}catch(e){return void r(Kr(i),t,e instanceof h?e:new h(`Expected type "${n.name}". `+e.message,{originalError:e}))}return void 0===e&&r(Kr(i),t,new h(`Expected type "${n.name}".`)),e}l(!1,"Unexpected input type: "+re(n))}(e,t,n,void 0)}function Yr(e,t,n){let r="Invalid value "+re(t);throw e.length>0&&(r+=` at "value${Wr(e)}"`),n.message=r+": "+n.message,n}function Zr(e,t,n){if(e){if(e.kind===w.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const i=n[r];if(null===i&&at(t))return;return i}if(at(t)){if(e.kind===w.NULL)return;return Zr(e,t.ofType,n)}if(e.kind===w.NULL)return null;if(ot(t)){const r=t.ofType;if(e.kind===w.LIST){const t=[];for(const i of e.values)if(Xr(i,n)){if(at(r))return;t.push(null)}else{const e=Zr(i,r,n);if(void 0===e)return;t.push(e)}return t}const i=Zr(e,r,n);if(void 0===i)return;return[i]}if(rt(t)){if(e.kind!==w.OBJECT)return;const r=Object.create(null),i=ve(e.fields,e=>e.name.value);for(const e of Object.values(t.getFields())){const t=i[e.name];if(!t||Xr(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(at(e.type))return;continue}const o=Zr(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}return r}if(pt(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}l(!1,"Unexpected input type: "+re(t))}}function Xr(e,t){return e.kind===w.VARIABLE&&(null==t||void 0===t[e.name.value])}function ei(e,t,n,r){const i=[],o=null==r?void 0:r.maxErrors;try{const r=function(e,t,n,r){const i={};for(const o of t){const t=o.variable.name.value,s=er(e,o.type);if(!ut(s)){const e=Me(o.type);r(new h(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!ri(n,t)){if(o.defaultValue)i[t]=Zr(o.defaultValue,s);else if(at(s)){const e=re(s);r(new h(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}const a=n[t];if(null===a&&at(s)){const e=re(s);r(new h(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}))}else i[t]=Jr(a,s,(e,n,i)=>{let s=`Variable "$${t}" got invalid value `+re(n);e.length>0&&(s+=` at "${t}${Wr(e)}"`),r(new h(s+"; "+i.message,{nodes:o,originalError:i.originalError}))})}return i}(e,t,n,e=>{if(null!=o&&i.length>=o)throw new h("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function ti(e,t,n){var r;const i={},o=ve(null!==(r=t.arguments)&&void 0!==r?r:[],e=>e.name.value);for(const r of e.args){const e=r.name,s=r.type,a=o[e];if(!a){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(at(s))throw new h(`Argument "${e}" of required type "${re(s)}" was not provided.`,{nodes:t});continue}const l=a.value;let u=l.kind===w.NULL;if(l.kind===w.VARIABLE){const t=l.name.value;if(null==n||!ri(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(at(s))throw new h(`Argument "${e}" of required type "${re(s)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:l});continue}u=null==n[t]}if(u&&at(s))throw new h(`Argument "${e}" of non-null type "${re(s)}" must not be null.`,{nodes:l});const c=Zr(l,s,n);if(void 0===c)throw new h(`Argument "${e}" has invalid value ${Me(l)}.`,{nodes:l});i[e]=c}return i}function ni(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find(t=>t.name.value===e.name);if(i)return ti(e,i,n)}function ri(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ii(e,t,n,r,i){const o=new Map;return oi(e,t,n,r,i,o,new Set),o}function oi(e,t,n,r,i,o,s){for(const l of i.selections)switch(l.kind){case w.FIELD:{if(!si(n,l))continue;const e=(a=l).alias?a.alias.value:a.name.value,t=o.get(e);void 0!==t?t.push(l):o.set(e,[l]);break}case w.INLINE_FRAGMENT:if(!si(n,l)||!ai(e,l,r))continue;oi(e,t,n,r,l.selectionSet,o,s);break;case w.FRAGMENT_SPREAD:{const i=l.name.value;if(s.has(i)||!si(n,l))continue;s.add(i);const a=t[i];if(!a||!ai(e,a,r))continue;oi(e,t,n,r,a.selectionSet,o,s);break}}var a}function si(e,t){const n=ni(dn,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=ni(fn,t,e);return!1!==(null==r?void 0:r.if)}function ai(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=er(e,r);return i===n||!!vt(i)&&e.isSubType(i,n)}function li(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(const e of s.definitions)e.kind===w.FRAGMENT_DEFINITION&&(a[e.name.value]=e);const l=ii(n,a,o,r,t.selectionSet);if(l.size>1){const t=[...l.values()].slice(1).flat();e.reportError(new h(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of l.values()){t[0].name.value.startsWith("__")&&e.reportError(new h(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}}function ui(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function ci(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n("@"+e.name.value,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const r=ui(n,e=>e.name.value);for(const[n,i]of r)i.length>1&&e.reportError(new h(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}}function fi(e){return{Field:t,Directive:t};function t(t){var n;const r=ui(null!==(n=t.arguments)&&void 0!==n?n:[],e=>e.name.value);for(const[t,n]of r)n.length>1&&e.reportError(new h(`There can be only one argument named "${t}".`,{nodes:n.map(e=>e.name)}))}}function di(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(null==n||!n.getDirective(i))return t[i]?e.reportError(new h(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new h(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}}function pi(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():gn;for(const e of r)t[e.name]=!e.isRepeatable;const i=e.getDocument().definitions;for(const e of i)e.kind===w.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const o=Object.create(null),s=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let r;if(n.kind===w.SCHEMA_DEFINITION||n.kind===w.SCHEMA_EXTENSION)r=o;else if(fr(n)||pr(n)){const e=n.name.value;r=s[e],void 0===r&&(s[e]=r=Object.create(null))}else r=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(r[n]?e.reportError(new h(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],i]})):r[n]=i)}}}}function hi(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const s=null!==(i=t.values)&&void 0!==i?i:[],a=r[o];for(const t of s){const r=t.name.value,i=n[o];tt(i)&&i.getValue(r)?e.reportError(new h(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):a[r]?e.reportError(new h(`Enum value "${o}.${r}" can only be defined once.`,{nodes:[a[r],t.name]})):a[r]=t.name}return!1}}function mi(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const s=null!==(i=t.fields)&&void 0!==i?i:[],a=r[o];for(const t of s){const r=t.name.value;gi(n[o],r)?e.reportError(new h(`Field "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):a[r]?e.reportError(new h(`Field "${o}.${r}" can only be defined once.`,{nodes:[a[r],t.name]})):a[r]=t.name}return!1}}function gi(e,t){return!!(Ke(e)||Ye(e)||rt(e))&&null!=e.getFields()[t]}function vi(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new h(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function yi(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||l(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new h(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function bi(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new h(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function Ei(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;const o=null!==(i=t.operationTypes)&&void 0!==i?i:[];for(const t of o){const i=t.operation,o=n[i];r[i]?e.reportError(new h(`Type for ${i} already defined in the schema. It cannot be redefined.`,{nodes:t})):o?e.reportError(new h(`There can be only one ${i} type in schema.`,{nodes:[o,t]})):n[i]=t}return!1}}function Ti(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const i=r.name.value;if(null==n||!n.getType(i))return t[i]?e.reportError(new h(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new h(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}}function _i(e){return{OperationDefinition(t){var n;const r=ui(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],e=>e.variable.name.value);for(const[t,n]of r)n.length>1&&e.reportError(new h(`There can be only one variable named "$${t}".`,{nodes:n.map(e=>e.variable.name)}))}}}function ki(e){return{ListValue(t){if(!ot(Ct(e.getParentInputType())))return xi(e,t),!1},ObjectValue(t){const n=Nt(e.getInputType());if(!rt(n))return xi(e,t),!1;const r=ve(t.fields,e=>e.name.value);for(const i of Object.values(n.getFields())){if(!r[i.name]&&Wt(i)){const r=re(i.type);e.reportError(new h(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}}},ObjectField(t){const n=Nt(e.getParentInputType());if(!e.getInputType()&&rt(n)){const r=ke(t.name.value,Object.keys(n.getFields()));e.reportError(new h(`Field "${t.name.value}" is not defined by type "${n.name}".`+me(r),{nodes:t}))}},NullValue(t){const n=e.getInputType();at(n)&&e.reportError(new h(`Expected value of type "${re(n)}", found ${Me(t)}.`,{nodes:t}))},EnumValue:t=>xi(e,t),IntValue:t=>xi(e,t),FloatValue:t=>xi(e,t),StringValue:t=>xi(e,t),BooleanValue:t=>xi(e,t)}}function xi(e,t){const n=e.getInputType();if(!n)return;const r=Nt(n);if(pt(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=re(n);e.reportError(new h(`Expected value of type "${r}", found ${Me(t)}.`,{nodes:t}))}}catch(r){const i=re(n);r instanceof h?e.reportError(r):e.reportError(new h(`Expected value of type "${i}", found ${Me(t)}; `+r.message,{nodes:t,originalError:r}))}else{const r=re(n);e.reportError(new h(`Expected value of type "${r}", found ${Me(t)}.`,{nodes:t}))}}function Ci(e){return{VariableDefinition(t){const n=er(e.getSchema(),t.type);if(void 0!==n&&!ut(n)){const n=t.variable.name.value,r=Me(t.type);e.reportError(new h(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function wi(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:n,type:i,defaultValue:o}of r){const r=n.name.value,s=t[r];if(s&&i){const t=e.getSchema(),a=er(t,s.type);if(a&&!Si(t,a,s.defaultValue,i,o)){const t=re(a),o=re(i);e.reportError(new h(`Variable "$${r}" of type "${t}" used in position expecting type "${o}".`,{nodes:[s,n]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function Si(e,t,n,r,i){if(at(r)&&!at(t)){const o=void 0!==i;if(!(null!=n&&n.kind!==w.NULL)&&!o)return!1;return Kt(e,t,r.ofType)}return Kt(e,t,r)}const Ni=Object.freeze([hr,bi,kr,li,Tr,gr,Ci,Gr,mr,vi,Er,Sr,Ur,Cr,_i,wr,Nr,br,pi,vr,fi,ki,zr,wi,Ir,yi]),Ai=Object.freeze([xr,Ei,Ti,hi,mi,ci,di,Tr,br,pi,Br,yr,fi,yi,$r]);class Oi{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===w.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let r;for(;r=n.pop();)for(const e of r.selections)e.kind===w.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class Ii extends Oi{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class Di extends Oi{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new tr(this._schema);Ie(e,rr(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function Li(e,t,n=Ni,r,i=new tr(e)){var s;const a=null!==(s=null==r?void 0:r.maxErrors)&&void 0!==s?s:100;t||o(!1,"Must provide document."),Un(e);const l=Object.freeze({}),u=[],c=new Di(e,t,i,e=>{if(u.length>=a)throw u.push(new h("Too many validation errors, error limit reached. Validation aborted.")),l;u.push(e)}),f=De(n.map(e=>e(c)));try{Ie(t,rr(i,f))}catch(e){if(e!==l)throw e}return u}function Fi(e,t,n=Ai){const r=[],i=new Ii(e,t,e=>{r.push(e)});return Ie(e,De(n.map(e=>e(i)))),r}class Mi extends Error{constructor(e){super("Unexpected error value: "+re(e)),this.name="NonErrorThrown",this.thrownValue=e}}function Ri(e,t,n){var r;const i=(o=e)instanceof Error?o:new Mi(o);var o,s;return s=i,Array.isArray(s.path)?i:new h(i.message,{nodes:null!==(r=i.nodes)&&void 0!==r?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}const Pi=function(e){let t;return function(n,r,i){void 0===t&&(t=new WeakMap);let o=t.get(n);void 0===o&&(o=new WeakMap,t.set(n,o));let s=o.get(r);void 0===s&&(s=new WeakMap,o.set(r,s));let a=s.get(i);return void 0===a&&(a=e(n,r,i),s.set(i,a)),a}}((e,t,n)=>function(e,t,n,r,i){const o=new Map,s=new Set;for(const a of i)a.selectionSet&&oi(e,t,n,r,a.selectionSet,o,s);return o}(e.schema,e.fragments,e.variableValues,t,n));function ji(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:r,rootValue:i}=e;Bi(t,n,r);const a=qi(e);if(!("schema"in a))return{errors:a};try{const{operation:e}=a,t=zi(a,e,i);return s(t)?t.then(e=>Ui(e,a.errors),e=>(a.errors.push(e),Ui(null,a.errors))):Ui(t,a.errors)}catch(e){return a.errors.push(e),Ui(null,a.errors)}}function Vi(e){const t=ji(e);if(s(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Ui(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function Bi(e,t,n){t||o(!1,"Must provide document."),Un(e),null==n||a(n)||o(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function qi(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:s,variableValues:a,operationName:l,fieldResolver:u,typeResolver:c,subscribeFieldResolver:f}=e;let d;const p=Object.create(null);for(const e of i.definitions)switch(e.kind){case w.OPERATION_DEFINITION:if(null==l){if(void 0!==d)return[new h("Must provide operation name if query contains multiple operations.")];d=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===l&&(d=e);break;case w.FRAGMENT_DEFINITION:p[e.name.value]=e}if(!d)return null!=l?[new h(`Unknown operation named "${l}".`)]:[new h("Must provide an operation.")];const m=ei(r,null!==(n=d.variableDefinitions)&&void 0!==n?n:[],null!=a?a:{},{maxErrors:50});return m.errors?m.errors:{schema:r,fragments:p,rootValue:o,contextValue:s,operation:d,variableValues:m.coerced,fieldResolver:null!=u?u:Xi,typeResolver:null!=c?c:Zi,subscribeFieldResolver:null!=f?f:Xi,errors:[]}}function zi(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new h(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=ii(e.schema,e.fragments,e.variableValues,r,t.selectionSet);switch(t.operation){case x.QUERY:return $i(e,r,n,void 0,i);case x.MUTATION:return function(e,t,n,r,i){return function(e,t,n){let r=n;for(const n of e)r=s(r)?r.then(e=>t(e,n)):t(r,n);return r}(i.entries(),(i,[o,a])=>{const l=Qr(r,o,t.name),u=Hi(e,t,n,a,l);return void 0===u?i:s(u)?u.then(e=>(i[o]=e,i)):(i[o]=u,i)},Object.create(null))}(e,r,n,void 0,i);case x.SUBSCRIPTION:return $i(e,r,n,void 0,i)}}function $i(e,t,n,r,i){const o=Object.create(null);let a=!1;for(const[l,u]of i.entries()){const i=Hi(e,t,n,u,Qr(r,l,t.name));void 0!==i&&(o[l]=i,s(i)&&(a=!0))}return a?(l=o,Promise.all(Object.values(l)).then(e=>{const t=Object.create(null);for(const[n,r]of Object.keys(l).entries())t[r]=e[n];return t})):o;var l}function Hi(e,t,n,r,i){var o;const a=eo(e.schema,t,r[0]);if(!a)return;const l=a.type,u=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,c=Gi(e,a,r,t,i);try{const t=ti(a,r[0],e.variableValues),o=u(n,t,e.contextValue,c);let f;return f=s(o)?o.then(t=>Qi(e,l,r,c,i,t)):Qi(e,l,r,c,i,o),s(f)?f.then(void 0,t=>Wi(Ri(t,r,Kr(i)),l,e)):f}catch(t){return Wi(Ri(t,r,Kr(i)),l,e)}}function Gi(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Wi(e,t,n){if(at(t))throw e;return n.errors.push(e),null}function Qi(e,t,n,r,i,o){if(o instanceof Error)throw o;if(at(t)){const s=Qi(e,t.ofType,n,r,i,o);if(null===s)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return s}return null==o?null:ot(t)?function(e,t,n,r,i,o){if(!yn(o))throw new h(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const a=t.ofType;let l=!1;const u=Array.from(o,(t,o)=>{const u=Qr(i,o,void 0);try{let i;return i=s(t)?t.then(t=>Qi(e,a,n,r,u,t)):Qi(e,a,n,r,u,t),s(i)?(l=!0,i.then(void 0,t=>Wi(Ri(t,n,Kr(u)),a,e))):i}catch(t){return Wi(Ri(t,n,Kr(u)),a,e)}});return l?Promise.all(u):u}(e,t,n,r,i,o):pt(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${re(e)}.serialize(${re(t)})\` to return non-nullable value, returned: `+re(n));return n}(t,o):vt(t)?function(e,t,n,r,i,o){var a;const l=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,u=e.contextValue,c=l(o,u,r,t);if(s(c))return c.then(s=>Ji(e,Ki(s,e,t,n,r,o),n,r,i,o));return Ji(e,Ki(c,e,t,n,r,o),n,r,i,o)}(e,t,n,r,i,o):Ke(t)?Ji(e,t,n,r,i,o):void l(!1,"Cannot complete value of unexpected output type: "+re(t))}function Ki(e,t,n,r,i,o){if(null==e)throw new h(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(Ke(e))throw new h("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new h(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${re(o)}, received "${re(e)}".`);const s=t.schema.getType(e);if(null==s)throw new h(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!Ke(s))throw new h(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,s))throw new h(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:r});return s}function Ji(e,t,n,r,i,o){const a=Pi(e,t,n);if(t.isTypeOf){const l=t.isTypeOf(o,e.contextValue,r);if(s(l))return l.then(r=>{if(!r)throw Yi(t,o,n);return $i(e,t,o,i,a)});if(!l)throw Yi(t,o,n)}return $i(e,t,o,i,a)}function Yi(e,t,n){return new h(`Expected value of type "${e.name}" but got: ${re(t)}.`,{nodes:n})}const Zi=function(e,t,n,r){if(a(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r<i.length;r++){const a=i[r];if(a.isTypeOf){const i=a.isTypeOf(e,t,n);if(s(i))o[r]=i;else if(i)return a.name}}return o.length?Promise.all(o).then(e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name}):void 0},Xi=function(e,t,n,r){if(a(e)||"function"==typeof e){const i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function eo(e,t,n){const r=n.name.value;return r===On.name&&e.getQueryType()===t?On:r===In.name&&e.getQueryType()===t?In:r===Dn.name?Dn:t.getFields()[r]}function to(e){return new Promise(t=>t(ro(e)))}function no(e){const t=ro(e);if(s(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function ro(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:r,contextValue:i,variableValues:s,operationName:a,fieldResolver:l,typeResolver:u}=e,c=Vn(t);if(c.length>0)return{errors:c};let f;try{f=le(n)}catch(e){return{errors:[e]}}const d=Li(t,f);return d.length>0?{errors:d}:ji({schema:t,document:f,rootValue:r,contextValue:i,variableValues:s,operationName:a,fieldResolver:l,typeResolver:u})}function io(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}function oo(e,t){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function so(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,rootValue:r,contextValue:i,variableValues:s,operationName:a,fieldResolver:l,subscribeFieldResolver:u}=e,c=await ao(t,n,r,i,s,a,u);if(!io(c))return c;const f=e=>ji({schema:t,document:n,rootValue:e,contextValue:i,variableValues:s,operationName:a,fieldResolver:l});return oo(c,f)}async function ao(e,t,n,r,i,o,s){Bi(e,t,i);const a=qi({schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,subscribeFieldResolver:s});if(!("schema"in a))return{errors:a};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,s=t.getSubscriptionType();if(null==s)throw new h("Schema is not configured to execute subscription operation.",{nodes:r});const a=ii(t,n,i,s,r.selectionSet),[l,u]=[...a.entries()][0],c=eo(t,s,u[0]);if(!c){const e=u[0].name.value;throw new h(`The subscription field "${e}" is not defined.`,{nodes:u})}const f=Qr(void 0,l,s.name),d=Gi(e,c,u,s,f);try{var p;const t=ti(c,u[0],i),n=e.contextValue,r=null!==(p=c.subscribe)&&void 0!==p?p:e.subscribeFieldResolver,s=await r(o,t,n,d);if(s instanceof Error)throw s;return s}catch(e){throw Ri(e,u,Kr(f))}}(a);if(!io(e))throw new Error(`Subscription field must return Async Iterable. Received: ${re(e)}.`);return e}catch(e){if(e instanceof h)return{errors:[e]};throw e}}function lo(e){return{Field(t){const n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getParentType();null!=i||l(!1),e.reportError(new h(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getDirective();if(null!=i)e.reportError(new h(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||l(!1),e.reportError(new h(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=Nt(e.getParentInputType());if(rt(n)){const r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new h(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=Nt(e.getInputType());null!=i||l(!1),e.reportError(new h(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function uo(e){return{Field(t){const n=Nt(e.getType());n&&Fn(n)&&e.reportError(new h(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function co(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"";function o(e){return t.inputValueDeprecation?e:""}return`\n query IntrospectionQuery {\n __schema {\n ${t.schemaDescription?n:""}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${i}\n locations\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${o("isDeprecated")}\n ${o("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n `}function fo(e,t){let n=null;for(const i of e.definitions){var r;if(i.kind===w.OPERATION_DEFINITION)if(null==t){if(n)return null;n=i}else if((null===(r=i.name)||void 0===r?void 0:r.value)===t)return i}return n}function po(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new h("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new h("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new h("Schema is not configured for subscriptions.",{nodes:t});return n}throw new h("Can only have query, mutation and subscription operations.",{nodes:t})}function ho(e,t){const n=Vi({schema:e,document:le(co({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t}))});return!n.errors&&n.data||l(!1),n.data}function mo(e,t){a(e)&&a(e.__schema)||o(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${re(e)}.`);const n=e.__schema,r=ye(n.types,e=>e.name,e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case Nn.SCALAR:return new It({name:(r=e).name,description:r.description,specifiedByURL:r.specifiedByURL});case Nn.OBJECT:return new Dt({name:(n=e).name,description:n.description,interfaces:()=>h(n),fields:()=>m(n)});case Nn.INTERFACE:return new Ut({name:(t=e).name,description:t.description,interfaces:()=>h(t),fields:()=>m(t)});case Nn.UNION:return function(e){if(!e.possibleTypes){const t=re(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new Bt({name:e.name,description:e.description,types:()=>e.possibleTypes.map(d)})}(e);case Nn.ENUM:return function(e){if(!e.enumValues){const t=re(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new zt({name:e.name,description:e.description,values:ye(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}(e);case Nn.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=re(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new Ht({name:e.name,description:e.description,fields:()=>v(e.inputFields)})}(e)}var t;var n;var r;const i=re(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${i}.`)}(e));for(const e of[...on,...Ln])r[e.name]&&(r[e.name]=e);const i=n.queryType?d(n.queryType):null,s=n.mutationType?d(n.mutationType):null,l=n.subscriptionType?d(n.subscriptionType):null,u=n.directives?n.directives.map((function(e){if(!e.args){const t=re(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=re(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new cn({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:v(e.args)})})):[];return new Pn({description:n.description,query:i,mutation:s,subscription:l,types:Object.values(r),directives:u,assumeValid:null==t?void 0:t.assumeValid});function c(e){if(e.kind===Nn.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new bt(c(t))}if(e.kind===Nn.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=c(t);return new Et(xt(n))}return f(e)}function f(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${re(e)}.`);const n=r[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function d(e){return Je(f(e))}function p(e){return Ze(f(e))}function h(e){if(null===e.interfaces&&e.kind===Nn.INTERFACE)return[];if(!e.interfaces){const t=re(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(p)}function m(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${re(e)}.`);return ye(e.fields,e=>e.name,g)}function g(e){const t=c(e.type);if(!ft(t)){const e=re(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=re(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:v(e.args)}}function v(e){return ye(e,e=>e.name,y)}function y(e){const t=c(e.type);if(!ut(t)){const e=re(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?Zr(ue(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function go(e,t,n){Rn(e),null!=t&&t.kind===w.DOCUMENT||o(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e,t){const n=Fi(e,t);if(0!==n.length)throw new Error(n.map(e=>e.message).join("\n\n"))}(t,e);const r=e.toConfig(),i=vo(r,t,n);return r===i?e:new Pn(i)}function vo(e,t,n){var r,i,o,s;const a=[],u=Object.create(null),c=[];let f;const d=[];for(const e of t.definitions)if(e.kind===w.SCHEMA_DEFINITION)f=e;else if(e.kind===w.SCHEMA_EXTENSION)d.push(e);else if(fr(e))a.push(e);else if(pr(e)){const t=e.name.value,n=u[t];u[t]=n?n.concat([e]):[e]}else e.kind===w.DIRECTIVE_DEFINITION&&c.push(e);if(0===Object.keys(u).length&&0===a.length&&0===c.length&&0===d.length&&null==f)return e;const p=Object.create(null);for(const t of e.types)p[t.name]=y(t);for(const e of a){var h;const t=e.name.value;p[t]=null!==(h=yo[t])&&void 0!==h?h:I(e)}const m={query:e.query&&v(e.query),mutation:e.mutation&&v(e.mutation),subscription:e.subscription&&v(e.subscription),...f&&T([f]),...T(d)};return{description:null===(r=f)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value,...m,types:Object.values(p),directives:[...e.directives.map((function(e){const t=e.toConfig();return new cn({...t,args:be(t.args,E)})})),...c.map((function(e){var t;return new cn({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:C(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(o=f)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:null!==(s=null==n?void 0:n.assumeValid)&&void 0!==s&&s};function g(e){return ot(e)?new bt(g(e.ofType)):at(e)?new Et(g(e.ofType)):v(e)}function v(e){return p[e.name]}function y(e){return Fn(e)||sn(e)?e:We(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=Eo(e))&&void 0!==o?o:i}return new It({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):Ke(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new Dt({...n,interfaces:()=>[...e.getInterfaces().map(v),...A(r)],fields:()=>({...be(n.fields,b),...x(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):Ye(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new Ut({...n,interfaces:()=>[...e.getInterfaces().map(v),...A(r)],fields:()=>({...be(n.fields,b),...x(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):Xe(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new Bt({...n,types:()=>[...e.getTypes().map(v),...O(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):tt(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[e.name])&&void 0!==t?t:[];return new zt({...n,values:{...n.values,...N(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):rt(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=u[n.name])&&void 0!==t?t:[];return new Ht({...n,fields:()=>({...be(n.fields,e=>({...e,type:g(e.type)})),...S(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):void l(!1,"Unexpected type: "+re(e))}function b(e){return{...e,type:g(e.type),args:e.args&&be(e.args,E)}}function E(e){return{...e,type:g(e.type)}}function T(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=_(n.type)}return t}function _(e){var t;const n=e.name.value,r=null!==(t=yo[n])&&void 0!==t?t:p[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function k(e){return e.kind===w.LIST_TYPE?new bt(k(e.type)):e.kind===w.NON_NULL_TYPE?new Et(k(e.type)):_(e)}function x(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:k(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:C(n.arguments),deprecationReason:bo(n),astNode:n}}}return t}function C(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=k(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:Zr(e.defaultValue,t),deprecationReason:bo(e),astNode:e}}return n}function S(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=k(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:Zr(n.defaultValue,e),deprecationReason:bo(n),astNode:n}}}return t}function N(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:bo(n),astNode:n}}}return t}function A(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(_))&&void 0!==t?t:[]})}function O(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(_))&&void 0!==t?t:[]})}function I(e){var t;const n=e.name.value,r=null!==(t=u[n])&&void 0!==t?t:[];switch(e.kind){case w.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...r];return new Dt({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>A(t),fields:()=>x(t),astNode:e,extensionASTNodes:r})}case w.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...r];return new Ut({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>A(t),fields:()=>x(t),astNode:e,extensionASTNodes:r})}case w.ENUM_TYPE_DEFINITION:{var s;const t=[e,...r];return new zt({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,values:N(t),astNode:e,extensionASTNodes:r})}case w.UNION_TYPE_DEFINITION:{var a;const t=[e,...r];return new Bt({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,types:()=>O(t),astNode:e,extensionASTNodes:r})}case w.SCALAR_TYPE_DEFINITION:var l;return new It({name:n,description:null===(l=e.description)||void 0===l?void 0:l.value,specifiedByURL:Eo(e),astNode:e,extensionASTNodes:r});case w.INPUT_OBJECT_TYPE_DEFINITION:{var c;const t=[e,...r];return new Ht({name:n,description:null===(c=e.description)||void 0===c?void 0:c.value,fields:()=>S(t),astNode:e,extensionASTNodes:r})}}}}const yo=ve([...on,...Ln],e=>e.name);function bo(e){const t=ni(hn,e);return null==t?void 0:t.reason}function Eo(e){const t=ni(mn,e);return null==t?void 0:t.url}function To(e,t){null!=e&&e.kind===w.DOCUMENT||o(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){const t=Fi(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}(e);const n=vo({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(const e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}const r=[...n.directives,...gn.filter(e=>n.directives.every(t=>t.name!==e.name))];return new Pn({...n,directives:r})}function _o(e,t){return To(le(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function ko(e){const t=e.toConfig(),n=ye(Co(t.types),e=>e.name,(function(e){if(We(e)||Fn(e))return e;if(Ke(e)){const t=e.toConfig();return new Dt({...t,interfaces:()=>u(t.interfaces),fields:()=>a(t.fields)})}if(Ye(e)){const t=e.toConfig();return new Ut({...t,interfaces:()=>u(t.interfaces),fields:()=>a(t.fields)})}if(Xe(e)){const t=e.toConfig();return new Bt({...t,types:()=>u(t.types)})}if(tt(e)){const t=e.toConfig();return new zt({...t,values:xo(t.values,e=>e)})}if(rt(e)){const t=e.toConfig();return new Ht({...t,fields:()=>xo(t.fields,e=>({...e,type:r(e.type)}))})}l(!1,"Unexpected type: "+re(e))}));return new Pn({...t,types:Object.values(n),directives:Co(t.directives).map((function(e){const t=e.toConfig();return new cn({...t,locations:wo(t.locations,e=>e),args:s(t.args)})})),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(e){return ot(e)?new bt(r(e.ofType)):at(e)?new Et(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function s(e){return xo(e,e=>({...e,type:r(e.type)}))}function a(e){return xo(e,e=>({...e,type:r(e.type),args:e.args&&s(e.args)}))}function u(e){return Co(e).map(i)}}function xo(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(Ee))n[r]=t(e[r]);return n}function Co(e){return wo(e,e=>e.name)}function wo(e,t){return e.slice().sort((e,n)=>Ee(t(e),t(n)))}function So(e){return Oo(e,e=>!vn(e),Ao)}function No(e){return Oo(e,vn,Fn)}function Ao(e){return!sn(e)&&!Fn(e)}function Oo(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[Io(e),...r.map(e=>function(e){return Vo(e)+"directive @"+e.name+Ro(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e)),...i.map(e=>Do(e))].filter(Boolean).join("\n\n")}function Io(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();if(r&&"Subscription"!==r.name)return!1;return!0}(e))return;const t=[],n=e.getQueryType();n&&t.push(" query: "+n.name);const r=e.getMutationType();r&&t.push(" mutation: "+r.name);const i=e.getSubscriptionType();return i&&t.push(" subscription: "+i.name),Vo(e)+`schema {\n${t.join("\n")}\n}`}function Do(e){return We(e)?function(e){return Vo(e)+"scalar "+e.name+function(e){if(null==e.specifiedByURL)return"";return` @specifiedBy(url: ${Me({kind:w.STRING,value:e.specifiedByURL})})`}(e)}(e):Ke(e)?function(e){return Vo(e)+"type "+e.name+Lo(e)+Fo(e)}(e):Ye(e)?function(e){return Vo(e)+"interface "+e.name+Lo(e)+Fo(e)}(e):Xe(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Vo(e)+"union "+e.name+n}(e):tt(e)?function(e){const t=e.getValues().map((e,t)=>Vo(e," ",!t)+" "+e.name+jo(e.deprecationReason));return Vo(e)+"enum "+e.name+Mo(t)}(e):rt(e)?function(e){const t=Object.values(e.getFields()).map((e,t)=>Vo(e," ",!t)+" "+Po(e));return Vo(e)+"input "+e.name+Mo(t)}(e):void l(!1,"Unexpected type: "+re(e))}function Lo(e){const t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function Fo(e){return Mo(Object.values(e.getFields()).map((e,t)=>Vo(e," ",!t)+" "+e.name+Ro(e.args," ")+": "+String(e.type)+jo(e.deprecationReason)))}function Mo(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function Ro(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(Po).join(", ")+")":"(\n"+e.map((e,n)=>Vo(e," "+t,!n)+" "+t+Po(e)).join("\n")+"\n"+t+")"}function Po(e){const t=bn(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=" = "+Me(t)),n+jo(e.deprecationReason)}function jo(e){if(null==e)return"";if(e!==pn){return` @deprecated(reason: ${Me({kind:w.STRING,value:e})})`}return" @deprecated"}function Vo(e,t="",n=!0){const{description:r}=e;if(null==r)return"";return(t&&!n?"\n"+t:t)+Me({kind:w.STRING,value:r,block:M(r)}).replace(/\n/g,"\n"+t)+"\n"}function Uo(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:w.DOCUMENT,definitions:t}}function Bo(e){const t=[],n=Object.create(null);for(const r of e.definitions)switch(r.kind){case w.OPERATION_DEFINITION:t.push(r);break;case w.FRAGMENT_DEFINITION:n[r.name.value]=zo(r.selectionSet)}const r=Object.create(null);for(const i of t){const t=new Set;for(const e of zo(i.selectionSet))qo(t,n,e);r[i.name?i.name.value:""]={kind:w.DOCUMENT,definitions:e.definitions.filter(e=>e===i||e.kind===w.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return r}function qo(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)qo(e,t,n)}}function zo(e){const t=[];return Ie(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function $o(e){const t=ae(e)?e:new se(e),n=t.body,r=new P(t);let i="",o=!1;for(;r.advance().kind!==S.EOF;){const e=r.token,t=e.kind,s=!j(e.kind);o&&(s||e.kind===S.SPREAD)&&(i+=" ");const a=n.slice(e.start,e.end);t===S.BLOCK_STRING?i+=R(e.value,{minimize:!0}):i+=a,o=s}return i}function Ho(e){const t=Go(e);if(t)throw t;return e}function Go(e){if("string"==typeof e||o(!1,"Expected name to be a string."),e.startsWith("__"))return new h(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{ze(e)}catch(e){return e}}let Wo,Qo;function Ko(e,t){return Yo(e,t).filter(e=>e.type in Wo)}function Jo(e,t){return Yo(e,t).filter(e=>e.type in Qo)}function Yo(e,t){return[...Xo(e,t),...Zo(e,t)]}function Zo(e,t){const n=[],r=cs(e.getDirectives(),t.getDirectives());for(const e of r.removed)n.push({type:Wo.DIRECTIVE_REMOVED,description:e.name+" was removed."});for(const[e,t]of r.persisted){const r=cs(e.args,t.args);for(const t of r.added)Vt(t)&&n.push({type:Wo.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of r.removed)n.push({type:Wo.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:Wo.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const r of e.locations)t.locations.includes(r)||n.push({type:Wo.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}function Xo(e,t){const n=[],r=cs(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of r.removed)n.push({type:Wo.TYPE_REMOVED,description:sn(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:e.name+" was removed."});for(const[e,t]of r.persisted)tt(e)&&tt(t)?n.push(...ns(e,t)):Xe(e)&&Xe(t)?n.push(...ts(e,t)):rt(e)&&rt(t)?n.push(...es(e,t)):Ke(e)&&Ke(t)||Ye(e)&&Ye(t)?n.push(...is(e,t),...rs(e,t)):e.constructor!==t.constructor&&n.push({type:Wo.TYPE_CHANGED_KIND,description:e.name+" changed from "+`${ls(e)} to ${ls(t)}.`});return n}function es(e,t){const n=[],r=cs(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.added)Wt(t)?n.push({type:Wo.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:Qo.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of r.removed)n.push({type:Wo.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted){as(t.type,i.type)||n.push({type:Wo.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`})}return n}function ts(e,t){const n=[],r=cs(e.getTypes(),t.getTypes());for(const t of r.added)n.push({type:Qo.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of r.removed)n.push({type:Wo.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function ns(e,t){const n=[],r=cs(e.getValues(),t.getValues());for(const t of r.added)n.push({type:Qo.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of r.removed)n.push({type:Wo.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function rs(e,t){const n=[],r=cs(e.getInterfaces(),t.getInterfaces());for(const t of r.added)n.push({type:Qo.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of r.removed)n.push({type:Wo.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function is(e,t){const n=[],r=cs(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.removed)n.push({type:Wo.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted){n.push(...os(e,t,i));ss(t.type,i.type)||n.push({type:Wo.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`})}return n}function os(e,t,n){const r=[],i=cs(t.args,n.args);for(const n of i.removed)r.push({type:Wo.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,o]of i.persisted){if(as(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:Qo.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const i=us(n.defaultValue,n.type),s=us(o.defaultValue,o.type);i!==s&&r.push({type:Qo.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${s}.`})}}else r.push({type:Wo.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`})}for(const n of i.added)Vt(n)?r.push({type:Wo.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:Qo.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}function ss(e,t){return ot(e)?ot(t)&&ss(e.ofType,t.ofType)||at(t)&&ss(e,t.ofType):at(e)?at(t)&&ss(e.ofType,t.ofType):wt(t)&&e.name===t.name||at(t)&&ss(e,t.ofType)}function as(e,t){return ot(e)?ot(t)&&as(e.ofType,t.ofType):at(e)?at(t)&&as(e.ofType,t.ofType)||!at(t)&&as(e.ofType,t):wt(t)&&e.name===t.name}function ls(e){return We(e)?"a Scalar type":Ke(e)?"an Object type":Ye(e)?"an Interface type":Xe(e)?"a Union type":tt(e)?"an Enum type":rt(e)?"an Input type":void l(!1,"Unexpected type: "+re(e))}function us(e,t){const n=bn(e,t);return null!=n||l(!1),Me(Ar(n))}function cs(e,t){const n=[],r=[],i=[],o=ve(e,({name:e})=>e),s=ve(t,({name:e})=>e);for(const t of e){const e=s[t.name];void 0===e?r.push(t):i.push([t,e])}for(const e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(Wo||(Wo={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(Qo||(Qo={}))},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(5),n(3),n(0),n(6)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"EditorContext",{enumerable:!0,get:function(){return t.E}}),Object.defineProperty(e,"EditorContextProvider",{enumerable:!0,get:function(){return t.a}}),Object.defineProperty(e,"ExecutionContext",{enumerable:!0,get:function(){return t.q}}),Object.defineProperty(e,"ExecutionContextProvider",{enumerable:!0,get:function(){return t.r}}),Object.defineProperty(e,"ExplorerContext",{enumerable:!0,get:function(){return t.v}}),Object.defineProperty(e,"ExplorerContextProvider",{enumerable:!0,get:function(){return t.w}}),Object.defineProperty(e,"HistoryContext",{enumerable:!0,get:function(){return t.H}}),Object.defineProperty(e,"HistoryContextProvider",{enumerable:!0,get:function(){return t.y}}),Object.defineProperty(e,"ImagePreview",{enumerable:!0,get:function(){return t.b}}),Object.defineProperty(e,"SchemaContext",{enumerable:!0,get:function(){return t.S}}),Object.defineProperty(e,"SchemaContextProvider",{enumerable:!0,get:function(){return t.B}}),Object.defineProperty(e,"StorageContext",{enumerable:!0,get:function(){return t.F}}),Object.defineProperty(e,"StorageContextProvider",{enumerable:!0,get:function(){return t.G}}),Object.defineProperty(e,"onHasCompletion",{enumerable:!0,get:function(){return t.d}}),Object.defineProperty(e,"useAutoCompleteLeafs",{enumerable:!0,get:function(){return t.u}}),Object.defineProperty(e,"useCopyQuery",{enumerable:!0,get:function(){return t.e}}),Object.defineProperty(e,"useDragResize",{enumerable:!0,get:function(){return t.K}}),Object.defineProperty(e,"useEditorContext",{enumerable:!0,get:function(){return t.f}}),Object.defineProperty(e,"useExecutionContext",{enumerable:!0,get:function(){return t.s}}),Object.defineProperty(e,"useExplorerContext",{enumerable:!0,get:function(){return t.x}}),Object.defineProperty(e,"useHeaderEditor",{enumerable:!0,get:function(){return t.g}}),Object.defineProperty(e,"useHistoryContext",{enumerable:!0,get:function(){return t.z}}),Object.defineProperty(e,"useMergeQuery",{enumerable:!0,get:function(){return t.h}}),Object.defineProperty(e,"usePrettifyEditors",{enumerable:!0,get:function(){return t.j}}),Object.defineProperty(e,"useQueryEditor",{enumerable:!0,get:function(){return t.k}}),Object.defineProperty(e,"useResponseEditor",{enumerable:!0,get:function(){return t.m}}),Object.defineProperty(e,"useSchemaContext",{enumerable:!0,get:function(){return t.D}}),Object.defineProperty(e,"useSelectHistoryItem",{enumerable:!0,get:function(){return t.A}}),Object.defineProperty(e,"useStorageContext",{enumerable:!0,get:function(){return t.J}}),Object.defineProperty(e,"useVariableEditor",{enumerable:!0,get:function(){return t.n}})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){(function(r){var i,o,s,a;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,a=function(e,t,i,o){"use strict";var s;function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.A=ya,e.B=La,e.F=e.E=e.D=e.C=void 0,e.G=qi,e.J=e.I=e.H=void 0,e.K=tu,e.S=e.R=e.P=e.L=void 0,e.a=Wl,e.b=oi,e.c=void 0,e.d=qr,e.e=el,e.f=void 0,e.g=sl,e.h=tl,e.i=void 0,e.j=nl,e.k=ml,e.l=Ns,e.m=Zl,e.n=ql,e.o=Ss,e.p=Is,e.q=void 0,e.r=_a,e.s=void 0,e.t=Os,e.u=rl,e.v=void 0,e.w=Ba,e.x=void 0,e.y=da,e.z=void 0,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(i),o=(s=o)&&s.__esModule?s:{default:s};var l=Object.defineProperty,u=Object.defineProperties,c=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,h=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&h(e,n,t[n]);if(f)for(var n of f(t))p.call(t,n)&&h(e,n,t[n]);return e},g=(e,t)=>u(e,c(t)),v=(e,t)=>l(e,"name",{value:t,configurable:!0}),y=(e,t)=>{var n={};for(var r in e)d.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&f)for(var r of f(e))t.indexOf(r)<0&&p.call(e,r)&&(n[r]=e[r]);return n},b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:{};function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function T(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}e.c=b,v(E,"getDefaultExportFromCjs"),v(T,"getAugmentedNamespace");
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | var _=/["'&<>]/,k=x;function x(e){var t,n=""+e,r=_.exec(n);if(!r)return n;var i="",o=0,s=0;for(o=r.index;o<n.length;o++){switch(n.charCodeAt(o)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}s!==o&&(i+=n.substring(s,o)),s=o+1,i+=t}return s!==o?i+n.substring(s,o):i}v(x,"escapeHtml$1");var C={},w={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},S=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,N={},A={};function O(e){var t,n,r=A[e];if(r)return r;for(r=A[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function I(e,t,n){var r,i,o,s,a,l="";for("string"!=typeof t&&(n=t,t=I.defaultChars),void 0===n&&(n=!0),a=O(t),r=0,i=e.length;r<i;r++)if(o=e.charCodeAt(r),n&&37===o&&r+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3)))l+=e.slice(r,r+3),r+=2;else if(o<128)l+=a[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(s=e.charCodeAt(r+1))>=56320&&s<=57343){l+=encodeURIComponent(e[r]+e[r+1]),r++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[r]);return l}v(O,"getEncodeCache"),v(I,"encode$1"),I.defaultChars=";/?:@&=+$,-_.!~*'()#",I.componentChars="-_.!~*'()";var D=I,L={};function F(e){var t,n,r=L[e];if(r)return r;for(r=L[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)r[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function M(e,t){var n;return"string"!=typeof t&&(t=M.defaultChars),n=F(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,r,i,o,s,a,l,u="";for(t=0,r=e.length;t<r;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?u+=n[i]:192==(224&i)&&t+3<r&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(u+=(l=i<<6&1984|63&o)<128?"��":String.fromCharCode(l),t+=3):224==(240&i)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),s=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&s))?(u+=(l=i<<12&61440|o<<6&4032|63&s)<2048||l>=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&i)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),s=parseInt(e.slice(t+7,t+9),16),a=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&s)&&128==(192&a))?((l=i<<18&1835008|o<<12&258048|s<<6&4032|63&a)<65536||l>1114111?u+="����":(l-=65536,u+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):u+="�";return u}))}v(F,"getDecodeCache"),v(M,"decode$1"),M.defaultChars=";/?:@&=+$,#",M.componentChars="";var R=M,P=v((function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}),"format");function j(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}v(j,"Url");var V=/^([a-z0-9.+-]+:)/i,U=/:[0-9]*$/,B=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,q=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),z=["'"].concat(q),$=["%","/","?",";","#"].concat(z),H=["/","?","#"],G=/^[+a-z0-9A-Z_-]{0,63}$/,W=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Q={javascript:!0,"javascript:":!0},K={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function J(e,t){if(e&&e instanceof j)return e;var n=new j;return n.parse(e,t),n}v(J,"urlParse"),j.prototype.parse=function(e,t){var n,r,i,o,s,a=e;if(a=a.trim(),!t&&1===e.split("#").length){var l=B.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var u=V.exec(a);if(u&&(i=(u=u[0]).toLowerCase(),this.protocol=u,a=a.substr(u.length)),(t||u||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(s="//"===a.substr(0,2))||u&&Q[u]||(a=a.substr(2),this.slashes=!0)),!Q[u]&&(s||u&&!K[u])){var c,f,d=-1;for(n=0;n<H.length;n++)-1!==(o=a.indexOf(H[n]))&&(-1===d||o<d)&&(d=o);for(-1!==(f=-1===d?a.lastIndexOf("@"):a.lastIndexOf("@",d))&&(c=a.slice(0,f),a=a.slice(f+1),this.auth=c),d=-1,n=0;n<$.length;n++)-1!==(o=a.indexOf($[n]))&&(-1===d||o<d)&&(d=o);-1===d&&(d=a.length),":"===a[d-1]&&d--;var p=a.slice(0,d);a=a.slice(d),this.parseHost(p),this.hostname=this.hostname||"";var h="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!h){var m=this.hostname.split(/\./);for(n=0,r=m.length;n<r;n++){var g=m[n];if(g&&!g.match(G)){for(var v="",y=0,b=g.length;y<b;y++)g.charCodeAt(y)>127?v+="x":v+=g[y];if(!v.match(G)){var E=m.slice(0,n),T=m.slice(n+1),_=g.match(W);_&&(E.push(_[1]),T.unshift(_[2])),T.length&&(a=T.join(".")+a),this.hostname=E.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var k=a.indexOf("#");-1!==k&&(this.hash=a.substr(k),a=a.slice(0,k));var x=a.indexOf("?");return-1!==x&&(this.search=a.substr(x),a=a.slice(0,x)),a&&(this.pathname=a),K[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},j.prototype.parseHost=function(e){var t=U.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Y=J;N.encode=D,N.decode=R,N.format=P,N.parse=Y;var Z={},X=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ee=/[\0-\x1F\x7F-\x9F]/,te=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;Z.Any=X,Z.Cc=ee,Z.Cf=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Z.P=S,Z.Z=te,function(e){function t(e){return Object.prototype.toString.call(e)}function n(e){return"[object String]"===t(e)}v(t,"_class"),v(n,"isString");var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}function s(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function a(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function l(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}v(i,"has"),v(o,"assign"),v(s,"arrayReplaceAt"),v(a,"isValidEntityCode"),v(l,"fromCodePoint");var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=new RegExp(u.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=w;function p(e,t){var n=0;return i(d,t)?d[t]:35===t.charCodeAt(0)&&f.test(t)&&a(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?l(n):e}function h(e){return e.indexOf("\\")<0?e:e.replace(u,"$1")}function m(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(c,(function(e,t,n){return t||p(e,n)}))}v(p,"replaceEntityPattern"),v(h,"unescapeMd"),v(m,"unescapeAll");var g=/[&<>"]/,y=/[&<>"]/g,b={"&":"&","<":"<",">":">",'"':"""};function E(e){return b[e]}function T(e){return g.test(e)?e.replace(y,E):e}v(E,"replaceUnsafeChar"),v(T,"escapeHtml");var _=/[.?*+^$[\]\\(){}|-]/g;function k(e){return e.replace(_,"\\$&")}function x(e){switch(e){case 9:case 32:return!0}return!1}function C(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}v(k,"escapeRE"),v(x,"isSpace"),v(C,"isWhiteSpace");var A=S;function O(e){return A.test(e)}function I(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function D(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}v(O,"isPunctChar"),v(I,"isMdAsciiPunct"),v(D,"normalizeReference"),e.lib={},e.lib.mdurl=N,e.lib.ucmicro=Z,e.assign=o,e.isString=n,e.has=i,e.unescapeMd=h,e.unescapeAll=m,e.isValidEntityCode=a,e.fromCodePoint=l,e.escapeHtml=T,e.arrayReplaceAt=s,e.isSpace=x,e.isWhiteSpace=C,e.isMdAsciiPunct=I,e.isPunctChar=O,e.escapeRE=k,e.normalizeReference=D}(C);var ne={},re=v((function(e,t,n){var r,i,o,s,a=-1,l=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--r){i=!0;break}if(s=e.pos,e.md.inline.skipToken(e),91===o)if(s===e.pos-1)r++;else if(n)return e.pos=u,-1}return i&&(a=e.pos),e.pos=u,a}),"parseLinkLabel"),ie=C.unescapeAll,oe=v((function(e,t,n){var r,i,o=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(r=e.charCodeAt(t)))return s;if(60===r)return s;if(62===r)return s.pos=t+1,s.str=ie(e.slice(o+1,t)),s.ok=!0,s;92===r&&t+1<n?t+=2:t++}return s}for(i=0;t<n&&32!==(r=e.charCodeAt(t))&&!(r<32||127===r);)if(92===r&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===r&&++i>32)return s;if(41===r){if(0===i)break;i--}t++}return o===t||0!==i||(s.str=ie(e.slice(o,t)),s.lines=0,s.pos=t,s.ok=!0),s}),"parseLinkDestination"),se=C.unescapeAll,ae=v((function(e,t,n){var r,i,o=0,s=t,a={ok:!1,pos:0,lines:0,str:""};if(t>=n)return a;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return a;for(t++,40===i&&(i=41);t<n;){if((r=e.charCodeAt(t))===i)return a.pos=t+1,a.lines=o,a.str=se(e.slice(s+1,t)),a.ok=!0,a;if(40===r&&41===i)return a;10===r?o++:92===r&&t+1<n&&(t++,10===e.charCodeAt(t)&&o++),t++}return a}),"parseLinkTitle");ne.parseLinkLabel=re,ne.parseLinkDestination=oe,ne.parseLinkTitle=ae;var le=C.assign,ue=C.unescapeAll,ce=C.escapeHtml,fe={};function de(){this.rules=le({},fe)}fe.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+ce(e[t].content)+"</code>"},fe.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+ce(e[t].content)+"</code></pre>\n"},fe.fence=function(e,t,n,r,i){var o,s,a,l,u,c=e[t],f=c.info?ue(c.info).trim():"",d="",p="";return f&&(d=(a=f.split(/(\s+)/g))[0],p=a.slice(2).join("")),0===(o=n.highlight&&n.highlight(c.content,d,p)||ce(c.content)).indexOf("<pre")?o+"\n":f?(s=c.attrIndex("class"),l=c.attrs?c.attrs.slice():[],s<0?l.push(["class",n.langPrefix+d]):(l[s]=l[s].slice(),l[s][1]+=" "+n.langPrefix+d),u={attrs:l},"<pre><code"+i.renderAttrs(u)+">"+o+"</code></pre>\n"):"<pre><code"+i.renderAttrs(c)+">"+o+"</code></pre>\n"},fe.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},fe.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},fe.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},fe.text=function(e,t){return ce(e[t].content)},fe.html_block=function(e,t){return e[t].content},fe.html_inline=function(e,t){return e[t].content},v(de,"Renderer$1"),de.prototype.renderAttrs=v((function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+ce(e.attrs[t][0])+'="'+ce(e.attrs[t][1])+'"';return r}),"renderAttrs"),de.prototype.renderToken=v((function(e,t,n){var r,i="",o=!1,s=e[t];return s.hidden?"":(s.block&&-1!==s.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===s.nesting?"</":"<")+s.tag,i+=this.renderAttrs(s),0===s.nesting&&n.xhtmlOut&&(i+=" /"),s.block&&(o=!0,1===s.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===s.tag)&&(o=!1)),i+=o?">\n":">")}),"renderToken"),de.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,s=0,a=e.length;s<a;s++)void 0!==o[r=e[s].type]?i+=o[r](e,s,t,n,this):i+=this.renderToken(e,s,t);return i},de.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},de.prototype.render=function(e,t,n){var r,i,o,s="",a=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?s+=this.renderInline(e[r].children,t,n):void 0!==a[o]?s+=a[e[r].type](e,r,t,n,this):s+=this.renderToken(e,r,t,n);return s};var pe=de;function he(){this.__rules__=[],this.__cache__=null}v(he,"Ruler$3"),he.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},he.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},he.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},he.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},he.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},he.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},he.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},he.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},he.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},he.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var me=he,ge=/\r\n?|\n/g,ve=/\0/g,ye=v((function(e){var t;t=(t=e.src.replace(ge,"\n")).replace(ve,"�"),e.src=t}),"normalize"),be=v((function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}),"block"),Ee=v((function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}),"inline"),Te=C.arrayReplaceAt;function _e(e){return/^<a[>\s]/i.test(e)}function ke(e){return/^<\/a\s*>/i.test(e)}v(_e,"isLinkOpen"),v(ke,"isLinkClose");var xe=v((function(e){var t,n,r,i,o,s,a,l,u,c,f,d,p,h,m,g,v,y=e.tokens;if(e.md.options.linkify)for(n=0,r=y.length;n<r;n++)if("inline"===y[n].type&&e.md.linkify.pretest(y[n].content))for(p=0,t=(i=y[n].children).length-1;t>=0;t--)if("link_close"!==(s=i[t]).type){if("html_inline"===s.type&&(_e(s.content)&&p>0&&p--,ke(s.content)&&p++),!(p>0)&&"text"===s.type&&e.md.linkify.test(s.content)){for(u=s.content,v=e.md.linkify.match(u),a=[],d=s.level,f=0,l=0;l<v.length;l++)h=v[l].url,m=e.md.normalizeLink(h),e.md.validateLink(m)&&(g=v[l].text,g=v[l].schema?"mailto:"!==v[l].schema||/^mailto:/i.test(g)?e.md.normalizeLinkText(g):e.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,""),(c=v[l].index)>f&&((o=new e.Token("text","",0)).content=u.slice(f,c),o.level=d,a.push(o)),(o=new e.Token("link_open","a",1)).attrs=[["href",m]],o.level=d++,o.markup="linkify",o.info="auto",a.push(o),(o=new e.Token("text","",0)).content=g,o.level=d,a.push(o),(o=new e.Token("link_close","a",-1)).level=--d,o.markup="linkify",o.info="auto",a.push(o),f=v[l].lastIndex);f<u.length&&((o=new e.Token("text","",0)).content=u.slice(f),o.level=d,a.push(o)),y[n].children=i=Te(i,t,a)}}else for(t--;i[t].level!==s.level&&"link_open"!==i[t].type;)t--}),"linkify"),Ce=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,we=/\((c|tm|r|p)\)/i,Se=/\((c|tm|r|p)\)/gi,Ne={c:"©",r:"®",p:"§",tm:"™"};function Ae(e,t){return Ne[t.toLowerCase()]}function Oe(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(Se,Ae)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function Ie(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||Ce.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}v(Ae,"replaceFn"),v(Oe,"replace_scoped"),v(Ie,"replace_rare");var De=v((function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(we.test(e.tokens[t].content)&&Oe(e.tokens[t].children),Ce.test(e.tokens[t].content)&&Ie(e.tokens[t].children))}),"replace"),Le=C.isWhiteSpace,Fe=C.isPunctChar,Me=C.isMdAsciiPunct,Re=/['"]/,Pe=/['"]/g;function je(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function Ve(e,t){var n,r,i,o,s,a,l,u,c,f,d,p,h,m,g,v,y,b,E,T,_;for(E=[],n=0;n<e.length;n++){for(r=e[n],l=e[n].level,y=E.length-1;y>=0&&!(E[y].level<=l);y--);if(E.length=y+1,"text"===r.type){s=0,a=(i=r.content).length;e:for(;s<a&&(Pe.lastIndex=s,o=Pe.exec(i));){if(g=v=!0,s=o.index+1,b="'"===o[0],c=32,o.index-1>=0)c=i.charCodeAt(o.index-1);else for(y=n-1;y>=0&&"softbreak"!==e[y].type&&"hardbreak"!==e[y].type;y--)if(e[y].content){c=e[y].content.charCodeAt(e[y].content.length-1);break}if(f=32,s<a)f=i.charCodeAt(s);else for(y=n+1;y<e.length&&"softbreak"!==e[y].type&&"hardbreak"!==e[y].type;y++)if(e[y].content){f=e[y].content.charCodeAt(0);break}if(d=Me(c)||Fe(String.fromCharCode(c)),p=Me(f)||Fe(String.fromCharCode(f)),h=Le(c),(m=Le(f))?g=!1:p&&(h||d||(g=!1)),h?v=!1:d&&(m||p||(v=!1)),34===f&&'"'===o[0]&&c>=48&&c<=57&&(v=g=!1),g&&v&&(g=d,v=p),g||v){if(v)for(y=E.length-1;y>=0&&(u=E[y],!(E[y].level<l));y--)if(u.single===b&&E[y].level===l){u=E[y],b?(T=t.md.options.quotes[2],_=t.md.options.quotes[3]):(T=t.md.options.quotes[0],_=t.md.options.quotes[1]),r.content=je(r.content,o.index,_),e[u.token].content=je(e[u.token].content,u.pos,T),s+=_.length-1,u.token===n&&(s+=T.length-1),a=(i=r.content).length,E.length=y;continue e}g?E.push({token:n,pos:o.index,single:b,level:l}):v&&b&&(r.content=je(r.content,o.index,"’"))}else b&&(r.content=je(r.content,o.index,"’"))}}}}v(je,"replaceAt"),v(Ve,"process_inlines");var Ue=v((function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&Re.test(e.tokens[t].content)&&Ve(e.tokens[t].children,e)}),"smartquotes");function Be(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}v(Be,"Token$3"),Be.prototype.attrIndex=v((function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1}),"attrIndex"),Be.prototype.attrPush=v((function(e){this.attrs?this.attrs.push(e):this.attrs=[e]}),"attrPush"),Be.prototype.attrSet=v((function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r}),"attrSet"),Be.prototype.attrGet=v((function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n}),"attrGet"),Be.prototype.attrJoin=v((function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t}),"attrJoin");var qe=Be,ze=qe;function $e(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}v($e,"StateCore"),$e.prototype.Token=ze;var He=$e,Ge=me,We=[["normalize",ye],["block",be],["inline",Ee],["linkify",xe],["replacements",De],["smartquotes",Ue]];function Qe(){this.ruler=new Ge;for(var e=0;e<We.length;e++)this.ruler.push(We[e][0],We[e][1])}v(Qe,"Core"),Qe.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},Qe.prototype.State=He;var Ke=Qe,Je=C.isSpace;function Ye(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function Ze(e){var t,n=[],r=0,i=e.length,o=!1,s=0,a="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(a+=e.substring(s,r-1),s=r):(n.push(a+e.substring(s,r)),a="",s=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(a+e.substring(s)),n}v(Ye,"getLine"),v(Ze,"escapedSplit");var Xe=v((function(e,t,n,r){var i,o,s,a,l,u,c,f,d,p,h,m,g,v,y,b,E,T;if(t+2>n)return!1;if(u=t+1,e.sCount[u]<e.blkIndent)return!1;if(e.sCount[u]-e.blkIndent>=4)return!1;if((s=e.bMarks[u]+e.tShift[u])>=e.eMarks[u])return!1;if(124!==(E=e.src.charCodeAt(s++))&&45!==E&&58!==E)return!1;if(s>=e.eMarks[u])return!1;if(124!==(T=e.src.charCodeAt(s++))&&45!==T&&58!==T&&!Je(T))return!1;if(45===E&&Je(T))return!1;for(;s<e.eMarks[u];){if(124!==(i=e.src.charCodeAt(s))&&45!==i&&58!==i&&!Je(i))return!1;s++}for(c=(o=Ye(e,t+1)).split("|"),p=[],a=0;a<c.length;a++){if(!(h=c[a].trim())){if(0===a||a===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;58===h.charCodeAt(h.length-1)?p.push(58===h.charCodeAt(0)?"center":"right"):58===h.charCodeAt(0)?p.push("left"):p.push("")}if(-1===(o=Ye(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((c=Ze(o)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),0===(f=c.length)||f!==p.length)return!1;if(r)return!0;for(v=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),(d=e.push("table_open","table",1)).map=m=[t,0],(d=e.push("thead_open","thead",1)).map=[t,t+1],(d=e.push("tr_open","tr",1)).map=[t,t+1],a=0;a<c.length;a++)d=e.push("th_open","th",1),p[a]&&(d.attrs=[["style","text-align:"+p[a]]]),(d=e.push("inline","",0)).content=c[a].trim(),d.children=[],d=e.push("th_close","th",-1);for(d=e.push("tr_close","tr",-1),d=e.push("thead_close","thead",-1),u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){for(y=!1,a=0,l=b.length;a<l;a++)if(b[a](e,u,n,!0)){y=!0;break}if(y)break;if(!(o=Ye(e,u).trim()))break;if(e.sCount[u]-e.blkIndent>=4)break;for((c=Ze(o)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),u===t+2&&((d=e.push("tbody_open","tbody",1)).map=g=[t+2,0]),(d=e.push("tr_open","tr",1)).map=[u,u+1],a=0;a<f;a++)d=e.push("td_open","td",1),p[a]&&(d.attrs=[["style","text-align:"+p[a]]]),(d=e.push("inline","",0)).content=c[a]?c[a].trim():"",d.children=[],d=e.push("td_close","td",-1);d=e.push("tr_close","tr",-1)}return g&&(d=e.push("tbody_close","tbody",-1),g[1]=u),d=e.push("table_close","table",-1),m[1]=u,e.parentType=v,e.line=u,!0}),"table"),et=v((function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}),"code"),tt=v((function(e,t,n,r){var i,o,s,a,l,u,c,f=!1,d=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>p)return!1;if(126!==(i=e.src.charCodeAt(d))&&96!==i)return!1;if(l=d,(o=(d=e.skipChars(d,i))-l)<3)return!1;if(c=e.src.slice(l,d),s=e.src.slice(d,p),96===i&&s.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(a=t;!(++a>=n||(d=l=e.bMarks[a]+e.tShift[a])<(p=e.eMarks[a])&&e.sCount[a]<e.blkIndent);)if(e.src.charCodeAt(d)===i&&!(e.sCount[a]-e.blkIndent>=4||(d=e.skipChars(d,i))-l<o||(d=e.skipSpaces(d))<p)){f=!0;break}return o=e.sCount[t],e.line=a+(f?1:0),(u=e.push("fence","code",0)).info=s,u.content=e.getLines(t+1,a,o,!0),u.markup=c,u.map=[t,e.line],!0}),"fence"),nt=C.isSpace,rt=v((function(e,t,n,r){var i,o,s,a,l,u,c,f,d,p,h,m,g,v,y,b,E,T,_,k,x=e.lineMax,C=e.bMarks[t]+e.tShift[t],w=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(C++))return!1;if(r)return!0;for(a=d=e.sCount[t]+1,32===e.src.charCodeAt(C)?(C++,a++,d++,i=!1,b=!0):9===e.src.charCodeAt(C)?(b=!0,(e.bsCount[t]+d)%4==3?(C++,a++,d++,i=!1):i=!0):b=!1,p=[e.bMarks[t]],e.bMarks[t]=C;C<w&&(o=e.src.charCodeAt(C),nt(o));)9===o?d+=4-(d+e.bsCount[t]+(i?1:0))%4:d++,C++;for(h=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),u=C>=w,v=[e.sCount[t]],e.sCount[t]=d-a,y=[e.tShift[t]],e.tShift[t]=C-e.bMarks[t],T=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",f=t+1;f<n&&(k=e.sCount[f]<e.blkIndent,!((C=e.bMarks[f]+e.tShift[f])>=(w=e.eMarks[f])));f++)if(62!==e.src.charCodeAt(C++)||k){if(u)break;for(E=!1,s=0,l=T.length;s<l;s++)if(T[s](e,f,n,!0)){E=!0;break}if(E){e.lineMax=f,0!==e.blkIndent&&(p.push(e.bMarks[f]),h.push(e.bsCount[f]),y.push(e.tShift[f]),v.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}p.push(e.bMarks[f]),h.push(e.bsCount[f]),y.push(e.tShift[f]),v.push(e.sCount[f]),e.sCount[f]=-1}else{for(a=d=e.sCount[f]+1,32===e.src.charCodeAt(C)?(C++,a++,d++,i=!1,b=!0):9===e.src.charCodeAt(C)?(b=!0,(e.bsCount[f]+d)%4==3?(C++,a++,d++,i=!1):i=!0):b=!1,p.push(e.bMarks[f]),e.bMarks[f]=C;C<w&&(o=e.src.charCodeAt(C),nt(o));)9===o?d+=4-(d+e.bsCount[f]+(i?1:0))%4:d++,C++;u=C>=w,h.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(b?1:0),v.push(e.sCount[f]),e.sCount[f]=d-a,y.push(e.tShift[f]),e.tShift[f]=C-e.bMarks[f]}for(m=e.blkIndent,e.blkIndent=0,(_=e.push("blockquote_open","blockquote",1)).markup=">",_.map=c=[t,0],e.md.block.tokenize(e,t,f),(_=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=x,e.parentType=g,c[1]=e.line,s=0;s<y.length;s++)e.bMarks[s+t]=p[s],e.tShift[s+t]=y[s],e.sCount[s+t]=v[s],e.bsCount[s+t]=h[s];return e.blkIndent=m,!0}),"blockquote"),it=C.isSpace,ot=v((function(e,t,n,r){var i,o,s,a,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(l++))&&45!==i&&95!==i)return!1;for(o=1;l<u;){if((s=e.src.charCodeAt(l++))!==i&&!it(s))return!1;s===i&&o++}return!(o<3||(r||(e.line=t+1,(a=e.push("hr","hr",0)).map=[t,e.line],a.markup=Array(o+1).join(String.fromCharCode(i))),0))}),"hr"),st=C.isSpace;function at(e,t){var n,r,i,o;return r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r<i&&(o=e.src.charCodeAt(r),!st(o))?-1:r}function lt(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=r,o=e.eMarks[t];if(i+1>=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}return i<o&&(n=e.src.charCodeAt(i),!st(n))?-1:i}function ut(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}v(at,"skipBulletListMarker"),v(lt,"skipOrderedListMarker"),v(ut,"markTightParagraphs");var ct=v((function(e,t,n,r){var i,o,s,a,l,u,c,f,d,p,h,m,g,v,y,b,E,T,_,k,x,C,w,S,N,A,O,I,D=!1,L=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(D=!0),(w=lt(e,t))>=0){if(c=!0,N=e.bMarks[t]+e.tShift[t],g=Number(e.src.slice(N,w-1)),D&&1!==g)return!1}else{if(!((w=at(e,t))>=0))return!1;c=!1}if(D&&e.skipSpaces(w)>=e.eMarks[t])return!1;if(m=e.src.charCodeAt(w-1),r)return!0;for(h=e.tokens.length,c?(I=e.push("ordered_list_open","ol",1),1!==g&&(I.attrs=[["start",g]])):I=e.push("bullet_list_open","ul",1),I.map=p=[t,0],I.markup=String.fromCharCode(m),y=t,S=!1,O=e.md.block.ruler.getRules("list"),T=e.parentType,e.parentType="list";y<n;){for(C=w,v=e.eMarks[y],u=b=e.sCount[y]+w-(e.bMarks[t]+e.tShift[t]);C<v;){if(9===(i=e.src.charCodeAt(C)))b+=4-(b+e.bsCount[y])%4;else{if(32!==i)break;b++}C++}if((l=(o=C)>=v?1:b-u)>4&&(l=1),a=u+l,(I=e.push("list_item_open","li",1)).markup=String.fromCharCode(m),I.map=f=[t,0],c&&(I.info=e.src.slice(N,w-1)),x=e.tight,k=e.tShift[t],_=e.sCount[t],E=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=a,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=b,o>=v&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!S||(L=!1),S=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=E,e.tShift[t]=k,e.sCount[t]=_,e.tight=x,(I=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),y=t=e.line,f[1]=y,o=e.bMarks[t],y>=n)break;if(e.sCount[y]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(A=!1,s=0,d=O.length;s<d;s++)if(O[s](e,y,n,!0)){A=!0;break}if(A)break;if(c){if((w=lt(e,y))<0)break;N=e.bMarks[y]+e.tShift[y]}else if((w=at(e,y))<0)break;if(m!==e.src.charCodeAt(w-1))break}return(I=c?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(m),p[1]=y,e.line=y,e.parentType=T,L&&ut(e,h),!0}),"list"),ft=C.normalizeReference,dt=C.isSpace,pt=v((function(e,t,n,r){var i,o,s,a,l,u,c,f,d,p,h,m,g,v,y,b,E=0,T=e.bMarks[t]+e.tShift[t],_=e.eMarks[t],k=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(T))return!1;for(;++T<_;)if(93===e.src.charCodeAt(T)&&92!==e.src.charCodeAt(T-1)){if(T+1===_)return!1;if(58!==e.src.charCodeAt(T+1))return!1;break}for(a=e.lineMax,y=e.md.block.ruler.getRules("reference"),p=e.parentType,e.parentType="reference";k<a&&!e.isEmpty(k);k++)if(!(e.sCount[k]-e.blkIndent>3||e.sCount[k]<0)){for(v=!1,u=0,c=y.length;u<c;u++)if(y[u](e,k,a,!0)){v=!0;break}if(v)break}for(_=(g=e.getLines(t,k,e.blkIndent,!1).trim()).length,T=1;T<_;T++){if(91===(i=g.charCodeAt(T)))return!1;if(93===i){d=T;break}(10===i||92===i&&++T<_&&10===g.charCodeAt(T))&&E++}if(d<0||58!==g.charCodeAt(d+1))return!1;for(T=d+2;T<_;T++)if(10===(i=g.charCodeAt(T)))E++;else if(!dt(i))break;if(!(h=e.md.helpers.parseLinkDestination(g,T,_)).ok)return!1;if(l=e.md.normalizeLink(h.str),!e.md.validateLink(l))return!1;for(o=T=h.pos,s=E+=h.lines,m=T;T<_;T++)if(10===(i=g.charCodeAt(T)))E++;else if(!dt(i))break;for(h=e.md.helpers.parseLinkTitle(g,T,_),T<_&&m!==T&&h.ok?(b=h.str,T=h.pos,E+=h.lines):(b="",T=o,E=s);T<_&&(i=g.charCodeAt(T),dt(i));)T++;if(T<_&&10!==g.charCodeAt(T)&&b)for(b="",T=o,E=s;T<_&&(i=g.charCodeAt(T),dt(i));)T++;return!(T<_&&10!==g.charCodeAt(T)||!(f=ft(g.slice(1,d)))||(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[f]&&(e.env.references[f]={title:b,href:l}),e.parentType=p,e.line=t+E+1),0))}),"reference"),ht={},mt="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",gt="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",vt=new RegExp("^(?:"+mt+"|"+gt+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),yt=new RegExp("^(?:"+mt+"|"+gt+")");ht.HTML_TAG_RE=vt,ht.HTML_OPEN_CLOSE_TAG_RE=yt;var bt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Et=ht.HTML_OPEN_CLOSE_TAG_RE,Tt=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+bt.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Et.source+"\\s*$"),/^$/,!1]],_t=v((function(e,t,n,r){var i,o,s,a,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(a=e.src.slice(l,u),i=0;i<Tt.length&&!Tt[i][0].test(a);i++);if(i===Tt.length)return!1;if(r)return Tt[i][2];if(o=t+1,!Tt[i][1].test(a))for(;o<n&&!(e.sCount[o]<e.blkIndent);o++)if(l=e.bMarks[o]+e.tShift[o],u=e.eMarks[o],a=e.src.slice(l,u),Tt[i][1].test(a)){0!==a.length&&o++;break}return e.line=o,(s=e.push("html_block","",0)).map=[t,o],s.content=e.getLines(t,o,e.blkIndent,!0),!0}),"html_block"),kt=C.isSpace,xt=v((function(e,t,n,r){var i,o,s,a,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(l))||l>=u)return!1;for(o=1,i=e.src.charCodeAt(++l);35===i&&l<u&&o<=6;)o++,i=e.src.charCodeAt(++l);return!(o>6||l<u&&!kt(i)||(r||(u=e.skipSpacesBack(u,l),(s=e.skipCharsBack(u,35,l))>l&&kt(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,(a=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),a.map=[t,e.line],(a=e.push("inline","",0)).content=e.src.slice(l,u).trim(),a.map=[t,e.line],a.children=[],(a=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o)),0))}),"heading"),Ct=v((function(e,t,n){var r,i,o,s,a,l,u,c,f,d,p=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";p<n&&!e.isEmpty(p);p++)if(!(e.sCount[p]-e.blkIndent>3)){if(e.sCount[p]>=e.blkIndent&&(l=e.bMarks[p]+e.tShift[p])<(u=e.eMarks[p])&&(45===(f=e.src.charCodeAt(l))||61===f)&&(l=e.skipChars(l,f),(l=e.skipSpaces(l))>=u)){c=61===f?1:2;break}if(!(e.sCount[p]<0)){for(i=!1,o=0,s=h.length;o<s;o++)if(h[o](e,p,n,!0)){i=!0;break}if(i)break}}return!!c&&(r=e.getLines(t,p,e.blkIndent,!1).trim(),e.line=p+1,(a=e.push("heading_open","h"+String(c),1)).markup=String.fromCharCode(f),a.map=[t,e.line],(a=e.push("inline","",0)).content=r,a.map=[t,e.line-1],a.children=[],(a=e.push("heading_close","h"+String(c),-1)).markup=String.fromCharCode(f),e.parentType=d,!0)}),"lheading"),wt=v((function(e,t){var n,r,i,o,s,a,l=t+1,u=e.md.block.ruler.getRules("paragraph"),c=e.lineMax;for(a=e.parentType,e.parentType="paragraph";l<c&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3||e.sCount[l]<0)){for(r=!1,i=0,o=u.length;i<o;i++)if(u[i](e,l,c,!0)){r=!0;break}if(r)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(s=e.push("paragraph_open","p",1)).map=[t,e.line],(s=e.push("inline","",0)).content=n,s.map=[t,e.line],s.children=[],s=e.push("paragraph_close","p",-1),e.parentType=a,!0}),"paragraph"),St=qe,Nt=C.isSpace;function At(e,t,n,r){var i,o,s,a,l,u,c,f;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",f=!1,s=a=u=c=0,l=(o=this.src).length;a<l;a++){if(i=o.charCodeAt(a),!f){if(Nt(i)){u++,9===i?c+=4-c%4:c++;continue}f=!0}10!==i&&a!==l-1||(10!==i&&a++,this.bMarks.push(s),this.eMarks.push(a),this.tShift.push(u),this.sCount.push(c),this.bsCount.push(0),f=!1,u=0,c=0,s=a+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}v(At,"StateBlock"),At.prototype.push=function(e,t,n){var r=new St(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},At.prototype.isEmpty=v((function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}),"isEmpty"),At.prototype.skipEmptyLines=v((function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}),"skipEmptyLines"),At.prototype.skipSpaces=v((function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),Nt(t));e++);return e}),"skipSpaces"),At.prototype.skipSpacesBack=v((function(e,t){if(e<=t)return e;for(;e>t;)if(!Nt(this.src.charCodeAt(--e)))return e+1;return e}),"skipSpacesBack"),At.prototype.skipChars=v((function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e}),"skipChars"),At.prototype.skipCharsBack=v((function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e}),"skipCharsBack"),At.prototype.getLines=v((function(e,t,n,r){var i,o,s,a,l,u,c,f=e;if(e>=t)return"";for(u=new Array(t-e),i=0;f<t;f++,i++){for(o=0,c=a=this.bMarks[f],l=f+1<t||r?this.eMarks[f]+1:this.eMarks[f];a<l&&o<n;){if(s=this.src.charCodeAt(a),Nt(s))9===s?o+=4-(o+this.bsCount[f])%4:o++;else{if(!(a-c<this.tShift[f]))break;o++}a++}u[i]=o>n?new Array(o-n+1).join(" ")+this.src.slice(a,l):this.src.slice(a,l)}return u.join("")}),"getLines"),At.prototype.Token=St;var Ot=At,It=me,Dt=[["table",Xe,["paragraph","reference"]],["code",et],["fence",tt,["paragraph","reference","blockquote","list"]],["blockquote",rt,["paragraph","reference","blockquote","list"]],["hr",ot,["paragraph","reference","blockquote","list"]],["list",ct,["paragraph","reference","blockquote"]],["reference",pt],["html_block",_t,["paragraph","reference","blockquote"]],["heading",xt,["paragraph","reference","blockquote"]],["lheading",Ct],["paragraph",wt]];function Lt(){this.ruler=new It;for(var e=0;e<Dt.length;e++)this.ruler.push(Dt[e][0],Dt[e][1],{alt:(Dt[e][2]||[]).slice()})}v(Lt,"ParserBlock$1"),Lt.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,s=t,a=!1,l=e.md.options.maxNesting;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n))&&!(e.sCount[s]<e.blkIndent);){if(e.level>=l){e.line=n;break}for(r=0;r<o&&!i[r](e,s,n,!1);r++);e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),(s=e.line)<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}},Lt.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},Lt.prototype.State=Ot;var Ft=Lt;function Mt(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}v(Mt,"isTerminatorChar");for(var Rt=v((function(e,t){for(var n=e.pos;n<e.posMax&&!Mt(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}),"text"),Pt=C.isSpace,jt=v((function(e,t){var n,r,i=e.pos;if(10!==e.src.charCodeAt(i))return!1;for(n=e.pending.length-1,r=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),i++;i<r&&Pt(e.src.charCodeAt(i));)i++;return e.pos=i,!0}),"newline"),Vt=C.isSpace,Ut=[],Bt=0;Bt<256;Bt++)Ut.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){Ut[e.charCodeAt(0)]=1}));var qt=v((function(e,t){var n,r=e.pos,i=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(++r<i){if((n=e.src.charCodeAt(r))<256&&0!==Ut[n])return t||(e.pending+=e.src[r]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),r++;r<i&&(n=e.src.charCodeAt(r),Vt(n));)r++;return e.pos=r,!0}}return t||(e.pending+="\\"),e.pos++,!0}),"escape"),zt=v((function(e,t){var n,r,i,o,s,a,l,u,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,r=e.posMax;c<r&&96===e.src.charCodeAt(c);)c++;if(l=(i=e.src.slice(n,c)).length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=i),e.pos+=l,!0;for(s=a=c;-1!==(s=e.src.indexOf("`",a));){for(a=s+1;a<r&&96===e.src.charCodeAt(a);)a++;if((u=a-s)===l)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(c,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0;e.backticks[u]=s}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0}),"backtick"),$t={};function Ht(e,t){var n,r,i,o,s,a=[],l=t.length;for(n=0;n<l;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(s=e.tokens[i.token]).type="s_open",s.tag="s",s.nesting=1,s.markup="~~",s.content="",(s=e.tokens[o.token]).type="s_close",s.tag="s",s.nesting=-1,s.markup="~~",s.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&a.push(o.token-1));for(;a.length;){for(r=(n=a.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(s=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=s)}}$t.tokenize=v((function(e,t){var n,r,i,o,s=e.pos,a=e.src.charCodeAt(s);if(t)return!1;if(126!==a)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(a),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:a,length:0,jump:n/2,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}),"strikethrough"),v(Ht,"postProcess$1"),$t.postProcess=v((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(Ht(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&Ht(e,n[t].delimiters)}),"strikethrough");var Gt={};function Wt(e,t){var n,r,i,o,s,a;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],a=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,s=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=a?"strong_open":"em_open",o.tag=a?"strong":"em",o.nesting=1,o.markup=a?s+s:s,o.content="",(o=e.tokens[i.token]).type=a?"strong_close":"em_close",o.tag=a?"strong":"em",o.nesting=-1,o.markup=a?s+s:s,o.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}Gt.tokenize=v((function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,jump:n,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}),"emphasis"),v(Wt,"postProcess"),Gt.postProcess=v((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(Wt(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&Wt(e,n[t].delimiters)}),"emphasis");var Qt=C.normalizeReference,Kt=C.isSpace,Jt=v((function(e,t){var n,r,i,o,s,a,l,u,c="",f="",d=e.pos,p=e.posMax,h=e.pos,m=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(s=e.pos+1,(o=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((a=o+1)<p&&40===e.src.charCodeAt(a)){for(m=!1,a++;a<p&&(r=e.src.charCodeAt(a),Kt(r)||10===r);a++);if(a>=p)return!1;if(h=a,(l=e.md.helpers.parseLinkDestination(e.src,a,e.posMax)).ok){for(c=e.md.normalizeLink(l.str),e.md.validateLink(c)?a=l.pos:c="",h=a;a<p&&(r=e.src.charCodeAt(a),Kt(r)||10===r);a++);if(l=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<p&&h!==a&&l.ok)for(f=l.str,a=l.pos;a<p&&(r=e.src.charCodeAt(a),Kt(r)||10===r);a++);}(a>=p||41!==e.src.charCodeAt(a))&&(m=!0),a++}if(m){if(void 0===e.env.references)return!1;if(a<p&&91===e.src.charCodeAt(a)?(h=a+1,(a=e.md.helpers.parseLinkLabel(e,a))>=0?i=e.src.slice(h,a++):a=o+1):a=o+1,i||(i=e.src.slice(s,o)),!(u=e.env.references[Qt(i)]))return e.pos=d,!1;c=u.href,f=u.title}return t||(e.pos=s,e.posMax=o,e.push("link_open","a",1).attrs=n=[["href",c]],f&&n.push(["title",f]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=a,e.posMax=p,!0}),"link"),Yt=C.normalizeReference,Zt=C.isSpace,Xt=v((function(e,t){var n,r,i,o,s,a,l,u,c,f,d,p,h,m="",g=e.pos,v=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(a=e.pos+2,(s=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((l=s+1)<v&&40===e.src.charCodeAt(l)){for(l++;l<v&&(r=e.src.charCodeAt(l),Zt(r)||10===r);l++);if(l>=v)return!1;for(h=l,(c=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(m=e.md.normalizeLink(c.str),e.md.validateLink(m)?l=c.pos:m=""),h=l;l<v&&(r=e.src.charCodeAt(l),Zt(r)||10===r);l++);if(c=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<v&&h!==l&&c.ok)for(f=c.str,l=c.pos;l<v&&(r=e.src.charCodeAt(l),Zt(r)||10===r);l++);else f="";if(l>=v||41!==e.src.charCodeAt(l))return e.pos=g,!1;l++}else{if(void 0===e.env.references)return!1;if(l<v&&91===e.src.charCodeAt(l)?(h=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?o=e.src.slice(h,l++):l=s+1):l=s+1,o||(o=e.src.slice(a,s)),!(u=e.env.references[Yt(o)]))return e.pos=g,!1;m=u.href,f=u.title}return t||(i=e.src.slice(a,s),e.md.inline.parse(i,e.md,e.env,p=[]),(d=e.push("image","img",0)).attrs=n=[["src",m],["alt",""]],d.children=p,d.content=i,f&&n.push(["title",f])),e.pos=l,e.posMax=v,!0}),"image"),en=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,tn=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,nn=v((function(e,t){var n,r,i,o,s,a,l=e.pos;if(60!==e.src.charCodeAt(l))return!1;for(s=e.pos,a=e.posMax;;){if(++l>=a)return!1;if(60===(o=e.src.charCodeAt(l)))return!1;if(62===o)break}return n=e.src.slice(s+1,l),tn.test(n)?(r=e.md.normalizeLink(n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0)):!!en.test(n)&&(r=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0))}),"autolink"),rn=ht.HTML_TAG_RE;function on(e){var t=32|e;return t>=97&&t<=122}v(on,"isLetter");var sn=v((function(e,t){var n,r,i,o=e.pos;return!(!e.md.options.html||(i=e.posMax,60!==e.src.charCodeAt(o)||o+2>=i||33!==(n=e.src.charCodeAt(o+1))&&63!==n&&47!==n&&!on(n)||!(r=e.src.slice(o).match(rn))||(t||(e.push("html_inline","",0).content=e.src.slice(o,o+r[0].length)),e.pos+=r[0].length,0)))}),"html_inline"),an=w,ln=C.has,un=C.isValidEntityCode,cn=C.fromCodePoint,fn=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,dn=/^&([a-z][a-z0-9]{1,31});/i,pn=v((function(e,t){var n,r,i=e.pos,o=e.posMax;if(38!==e.src.charCodeAt(i))return!1;if(i+1<o)if(35===e.src.charCodeAt(i+1)){if(r=e.src.slice(i).match(fn))return t||(n="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),e.pending+=un(n)?cn(n):cn(65533)),e.pos+=r[0].length,!0}else if((r=e.src.slice(i).match(dn))&&ln(an,r[1]))return t||(e.pending+=an[r[1]]),e.pos+=r[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}),"entity");function hn(e,t){var n,r,i,o,s,a,l,u,c={},f=t.length;for(n=0;n<f;n++)if((i=t[n]).length=i.length||0,i.close){for(c.hasOwnProperty(i.marker)||(c[i.marker]=[-1,-1,-1,-1,-1,-1]),s=c[i.marker][(i.open?3:0)+i.length%3],(r=n-i.jump-1)<-1&&(r=-1),a=r;r>s;r-=o.jump+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(l=!0)),!l)){u=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+u,i.open=!1,o.end=n,o.jump=u,o.close=!1,a=-1;break}-1!==a&&(c[i.marker][(i.open?3:0)+(i.length||0)%3]=a)}}v(hn,"processDelimiters");var mn=v((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(hn(0,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&hn(0,n[t].delimiters)}),"link_pairs"),gn=v((function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}),"text_collapse"),vn=qe,yn=C.isWhiteSpace,bn=C.isPunctChar,En=C.isMdAsciiPunct;function Tn(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}v(Tn,"StateInline"),Tn.prototype.pushPending=function(){var e=new vn("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Tn.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new vn(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},Tn.prototype.scanDelims=function(e,t){var n,r,i,o,s,a,l,u,c,f=e,d=!0,p=!0,h=this.posMax,m=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;f<h&&this.src.charCodeAt(f)===m;)f++;return i=f-e,r=f<h?this.src.charCodeAt(f):32,l=En(n)||bn(String.fromCharCode(n)),c=En(r)||bn(String.fromCharCode(r)),a=yn(n),(u=yn(r))?d=!1:c&&(a||l||(d=!1)),a?p=!1:l&&(u||c||(p=!1)),t?(o=d,s=p):(o=d&&(!p||l),s=p&&(!d||c)),{can_open:o,can_close:s,length:i}},Tn.prototype.Token=vn;var _n=Tn,kn=me,xn=[["text",Rt],["newline",jt],["escape",qt],["backticks",zt],["strikethrough",$t.tokenize],["emphasis",Gt.tokenize],["link",Jt],["image",Xt],["autolink",nn],["html_inline",sn],["entity",pn]],Cn=[["balance_pairs",mn],["strikethrough",$t.postProcess],["emphasis",Gt.postProcess],["text_collapse",gn]];function wn(){var e;for(this.ruler=new kn,e=0;e<xn.length;e++)this.ruler.push(xn[e][0],xn[e][1]);for(this.ruler2=new kn,e=0;e<Cn.length;e++)this.ruler2.push(Cn[e][0],Cn[e][1])}v(wn,"ParserInline$1"),wn.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,s=e.md.options.maxNesting,a=e.cache;if(void 0===a[r]){if(e.level<s)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,a[r]=e.pos}else e.pos=a[r]},wn.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,s=e.md.options.maxNesting;e.pos<o;){if(e.level<s)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},wn.prototype.parse=function(e,t,n,r){var i,o,s,a=new this.State(e,t,n,r);for(this.tokenize(a),s=(o=this.ruler2.getRules("")).length,i=0;i<s;i++)o[i](a)},wn.prototype.State=_n;var Sn=wn,Nn=v((function(e){var t={};return t.src_Any=X.source,t.src_Cc=ee.source,t.src_Z=te.source,t.src_P=S.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),"re");function An(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function On(e){return Object.prototype.toString.call(e)}function In(e){return"[object String]"===On(e)}function Dn(e){return"[object Object]"===On(e)}function Ln(e){return"[object RegExp]"===On(e)}function Fn(e){return"[object Function]"===On(e)}function Mn(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}v(An,"assign"),v(On,"_class"),v(In,"isString"),v(Dn,"isObject$2"),v(Ln,"isRegExp"),v(Fn,"isFunction"),v(Mn,"escapeRE");var Rn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Pn(e){return Object.keys(e||{}).reduce((function(e,t){return e||Rn.hasOwnProperty(t)}),!1)}v(Pn,"isOptionsObj");var jn={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Vn="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Un(e){e.__index__=-1,e.__text_cache__=""}function Bn(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function qn(){return function(e,t){t.normalize(e)}}function zn(e){var t=e.re=Nn(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),v(r,"untpl"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},v(o,"schemaError"),Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,Dn(n))return Ln(n.validate)?r.validate=Bn(n.validate):Fn(n.validate)?r.validate=n.validate:o(t,n),void(Fn(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});In(n)?i.push(t):o(t,n)}})),i.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var s=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(Mn).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Un(e)}function $n(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Hn(e,t){var n=new $n(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Gn(e,t){if(!(this instanceof Gn))return new Gn(e,t);t||Pn(e)&&(t=e,e={}),this.__opts__=An({},Rn,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=An({},jn,e),this.__compiled__={},this.__tlds__=Vn,this.__tlds_replaced__=!1,this.re={},zn(this)}v(Un,"resetScanCache"),v(Bn,"createValidator"),v(qn,"createNormalizer"),v(zn,"compile"),v($n,"Match"),v(Hn,"createMatch"),v(Gn,"LinkifyIt$1"),Gn.prototype.add=v((function(e,t){return this.__schemas__[e]=t,zn(this),this}),"add"),Gn.prototype.set=v((function(e){return this.__opts__=An(this.__opts__,e),this}),"set"),Gn.prototype.test=v((function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,s,a,l;if(this.re.schema_test.test(e))for((a=this.re.schema_search).lastIndex=0;null!==(t=a.exec(e));)if(i=this.testSchemaAt(e,t[2],a.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s)),this.__index__>=0}),"test"),Gn.prototype.pretest=v((function(e){return this.re.pretest.test(e)}),"pretest"),Gn.prototype.testSchemaAt=v((function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0}),"testSchemaAt"),Gn.prototype.match=v((function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(Hn(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(Hn(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null}),"match"),Gn.prototype.tlds=v((function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),zn(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,zn(this),this)}),"tlds"),Gn.prototype.normalize=v((function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)}),"normalize"),Gn.prototype.onCompile=v((function(){}),"onCompile");var Wn=Gn;const Qn=2147483647,Kn=/^xn--/,Jn=/[^\0-\x7E]/,Yn=/[\x2E\u3002\uFF0E\uFF61]/g,Zn={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Xn=Math.floor,er=String.fromCharCode;function tr(e){throw new RangeError(Zn[e])}function nr(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function rr(e,t){const n=e.split("@");let r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+nr((e=e.replace(Yn,".")).split("."),t).join(".")}function ir(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}v(tr,"error"),v(nr,"map"),v(rr,"mapDomain"),v(ir,"ucs2decode");const or=v(e=>String.fromCodePoint(...e),"ucs2encode"),sr=v((function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:36}),"basicToDigit"),ar=v((function(e,t){return e+22+75*(e<26)-((0!=t)<<5)}),"digitToBasic"),lr=v((function(e,t,n){let r=0;for(e=n?Xn(e/700):e>>1,e+=Xn(e/t);e>455;r+=36)e=Xn(e/35);return Xn(r+36*e/(e+38))}),"adapt"),ur=v((function(e){const t=[],n=e.length;let r=0,i=128,o=72,s=e.lastIndexOf("-");s<0&&(s=0);for(let n=0;n<s;++n)e.charCodeAt(n)>=128&&tr("not-basic"),t.push(e.charCodeAt(n));for(let a=s>0?s+1:0;a<n;){let s=r;for(let t=1,i=36;;i+=36){a>=n&&tr("invalid-input");const s=sr(e.charCodeAt(a++));(s>=36||s>Xn((Qn-r)/t))&&tr("overflow"),r+=s*t;const l=i<=o?1:i>=o+26?26:i-o;if(s<l)break;const u=36-l;t>Xn(Qn/u)&&tr("overflow"),t*=u}const l=t.length+1;o=lr(r-s,l,0==s),Xn(r/l)>Qn-i&&tr("overflow"),i+=Xn(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)}),"decode"),cr=v((function(e){const t=[];let n=(e=ir(e)).length,r=128,i=0,o=72;for(const n of e)n<128&&t.push(er(n));let s=t.length,a=s;for(s&&t.push("-");a<n;){let n=Qn;for(const t of e)t>=r&&t<n&&(n=t);const l=a+1;n-r>Xn((Qn-i)/l)&&tr("overflow"),i+=(n-r)*l,r=n;for(const n of e)if(n<r&&++i>Qn&&tr("overflow"),n==r){let e=i;for(let n=36;;n+=36){const r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;const i=e-r,s=36-r;t.push(er(ar(r+i%s,0))),e=Xn(i/s)}t.push(er(ar(e,0))),o=lr(i,l,a==s),i=0,++a}++i,++r}return t.join("")}),"encode"),fr=v((function(e){return rr(e,(function(e){return Kn.test(e)?ur(e.slice(4).toLowerCase()):e}))}),"toUnicode"),dr=v((function(e){return rr(e,(function(e){return Jn.test(e)?"xn--"+cr(e):e}))}),"toASCII"),pr={version:"2.1.0",ucs2:{decode:ir,encode:or},decode:ur,encode:cr,toASCII:dr,toUnicode:fr};var hr=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",ucs2decode:ir,ucs2encode:or,decode:ur,encode:cr,toASCII:dr,toUnicode:fr,default:pr}),mr=C,gr=ne,vr=pe,yr=Ke,br=Ft,Er=Sn,Tr=Wn,_r=N,kr=T(hr),xr={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},Cr=/^(vbscript|javascript|file|data):/,wr=/^data:image\/(gif|png|jpeg|webp);/;function Sr(e){var t=e.trim().toLowerCase();return!Cr.test(t)||!!wr.test(t)}v(Sr,"validateLink");var Nr=["http:","https:","mailto:"];function Ar(e){var t=_r.parse(e,!0);if(t.hostname&&(!t.protocol||Nr.indexOf(t.protocol)>=0))try{t.hostname=kr.toASCII(t.hostname)}catch(e){}return _r.encode(_r.format(t))}function Or(e){var t=_r.parse(e,!0);if(t.hostname&&(!t.protocol||Nr.indexOf(t.protocol)>=0))try{t.hostname=kr.toUnicode(t.hostname)}catch(e){}return _r.decode(_r.format(t),_r.decode.defaultChars+"%")}function Ir(e,t){if(!(this instanceof Ir))return new Ir(e,t);t||mr.isString(e)||(t=e||{},e="default"),this.inline=new Er,this.block=new br,this.core=new yr,this.renderer=new vr,this.linkify=new Tr,this.validateLink=Sr,this.normalizeLink=Ar,this.normalizeLinkText=Or,this.utils=mr,this.helpers=mr.assign({},gr),this.options={},this.configure(e),t&&this.set(t)}v(Ar,"normalizeLink"),v(Or,"normalizeLinkText"),v(Ir,"MarkdownIt"),Ir.prototype.set=function(e){return mr.assign(this.options,e),this},Ir.prototype.configure=function(e){var t,n=this;if(mr.isString(e)&&!(e=xr[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},Ir.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Ir.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Ir.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Ir.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Ir.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Ir.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Ir.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Dr=new Ir;var Lr=Object.defineProperty,Fr=v((e,t)=>Lr(e,"name",{value:t,configurable:!0}),"__name$j");const Mr="graphiql",Rr="sublime";let Pr=!1;"object"==typeof window&&(Pr=0===window.navigator.platform.toLowerCase().indexOf("mac"));const jr={[Pr?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function Vr(e,t){const r=await Promise.resolve().then(n.t.bind(null,2,7)).then((function(e){return e.c})).then(e=>"function"==typeof e?e:e.default);return await Promise.all(!1===(null==t?void 0:t.useCommonAddons)?e:[Promise.resolve().then(n.t.bind(null,31,7)).then((function(e){return e.s})),Promise.resolve().then(n.t.bind(null,32,7)).then((function(e){return e.m})),Promise.resolve().then(n.t.bind(null,145,7)).then((function(e){return e.c})),Promise.resolve().then(n.t.bind(null,33,7)).then((function(e){return e.b})),Promise.resolve().then(n.t.bind(null,34,7)).then((function(e){return e.f})),Promise.resolve().then(n.t.bind(null,146,7)).then((function(e){return e.l})),Promise.resolve().then(n.t.bind(null,9,7)).then((function(e){return e.s})),Promise.resolve().then(n.t.bind(null,35,7)).then((function(e){return e.j})),Promise.resolve().then(n.t.bind(null,10,7)).then((function(e){return e.d})),Promise.resolve().then(n.t.bind(null,36,7)).then((function(e){return e.s})),...e]),r}v(Vr,"importCodeMirror"),Fr(Vr,"importCodeMirror");var Ur=Object.defineProperty,Br=v((e,t)=>Ur(e,"name",{value:t,configurable:!0}),"__name$i");function qr(e,t,n,r){function i(e){if(!(n&&r&&e.currentTarget instanceof HTMLElement&&"typeName"===e.currentTarget.className))return;const t=e.currentTarget.innerHTML,i=n.getType(t);i&&(r.show(),r.push({name:i.name,def:i}))}Vr([],{useCommonAddons:!1}).then(e=>{let n,r;e.on(t,"select",(e,t)=>{if(!n){const e=t.parentNode;let o;n=document.createElement("div"),n.className="CodeMirror-hint-information",n.addEventListener("click",i),e.appendChild(n),r=document.createElement("div"),r.className="CodeMirror-hint-deprecation",e.appendChild(r),e.addEventListener("DOMNodeRemoved",o=Br(t=>{t.target===e&&(e.removeEventListener("DOMNodeRemoved",o),n&&n.removeEventListener("click",i),n=null,r=null,o=null)},"onRemoveFn"))}const o=e.description?Dr.render(e.description):"Self descriptive.",s=e.type?'<span class="infoType">'+zr(e.type)+"</span>":"";if(n.innerHTML='<div class="content">'+("<p>"===o.slice(0,3)?"<p>"+s+o.slice(3):s+o)+"</div>",e&&r&&e.deprecationReason){const t=e.deprecationReason?Dr.render(e.deprecationReason):"";r.innerHTML='<span class="deprecation-label">Deprecated</span>'+t,r.style.display="block"}else r&&(r.style.display="none")})}),v(i,"onClickHintInformation"),Br(i,"onClickHintInformation")}function zr(e){return(0,t.isNonNullType)(e)?zr(e.ofType)+"!":(0,t.isListType)(e)?`[${zr(e.ofType)}]`:`<a class="typeName">${k(e.name)}</a>`}v(qr,"onHasCompletion"),Br(qr,"onHasCompletion"),v(zr,"renderType"),Br(zr,"renderType");var $r={exports:{}},Hr={};function Gr(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Wr(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,v(Gr,"toObject"),v(Wr,"shouldUseNative"),Wr()&&Object.assign;
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | var Qr=i.default,Kr=60103;if(Hr.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var Jr=Symbol.for;Kr=Jr("react.element"),Hr.Fragment=Jr("react.fragment")}var Yr=Qr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zr=Object.prototype.hasOwnProperty,Xr={key:!0,ref:!0,__self:!0,__source:!0};function ei(e,t,n){var r,i={},o=null,s=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(s=t.ref),t)Zr.call(t,r)&&!Xr.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:Kr,type:e,key:o,ref:s,props:i,_owner:Yr.current}}v(ei,"q"),Hr.jsx=ei,Hr.jsxs=ei,$r.exports=Hr;const ti=$r.exports.jsx,ni=$r.exports.jsxs;var ri=Object.defineProperty,ii=v((e,t)=>ri(e,"name",{value:t,configurable:!0}),"__name$h");function oi(e){var t;const[n,r]=(0,i.useState)({width:null,height:null}),[o,s]=(0,i.useState)(null),a=(0,i.useRef)(null),l=null==(t=si(e.token))?void 0:t.href;(0,i.useEffect)(()=>{if(a.current)return l?void fetch(l,{method:"HEAD"}).then(e=>{s(e.headers.get("Content-Type"))}).catch(()=>{s(null)}):(r({width:null,height:null}),void s(null))},[l]);const u=null!==n.width&&null!==n.height?ni("div",{children:[n.width,"x",n.height,null!==o?" "+o:null]}):null;return ni("div",{children:[ti("img",{onLoad:()=>{var e,t,n,i;r({width:null!=(t=null==(e=a.current)?void 0:e.naturalWidth)?t:null,height:null!=(i=null==(n=a.current)?void 0:n.naturalHeight)?i:null})},ref:a,src:l}),u]})}function si(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{const e=window.location;return new URL(t,e.protocol+"//"+e.host)}catch(e){return}}function ai(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}function li(e){return"object"==typeof e&&"function"==typeof e.then}function ui(e){return new Promise((t,n)=>{const r=e.subscribe({next:e=>{t(e),r.unsubscribe()},error:n,complete:()=>{n(new Error("no value resolved"))}})})}function ci(e){return"object"==typeof e&&"subscribe"in e&&"function"==typeof e.subscribe}function fi(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function di(e){return new Promise((t,n)=>{var r;const i=null===(r=("return"in e?e:e[Symbol.asyncIterator]()).return)||void 0===r?void 0:r.bind(e);("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)().then(e=>{t(e.value),null==i||i()}).catch(e=>{n(e)})})}function pi(e){return Promise.resolve(e).then(e=>fi(e)?di(e):ci(e)?ui(e):e)}v(oi,"ImagePreview"),ii(oi,"ImagePreview"),oi.shouldRender=ii(v((function(e){const t=si(e);return!!t&&ai(t)}),"shouldRender"),"shouldRender"),v(si,"tokenToURL"),ii(si,"tokenToURL"),v(ai,"isImageURL"),ii(ai,"isImageURL"),v(li,"isPromise"),v(ui,"observableToPromise"),v(ci,"isObservable"),v(fi,"isAsyncIterable"),v(di,"asyncIterableToPromise"),v(pi,"fetcherReturnToPromise"),globalThis&&globalThis.__awaiter;var hi=globalThis&&globalThis.__await||function(e){return this instanceof hi?(this.v=e,this):new hi(e)};function mi(e){return JSON.stringify(e,null,2)}function gi(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}function vi(e){return e instanceof Error?gi(e):e}function yi(e){return Array.isArray(e)?mi({errors:e.map(e=>vi(e))}):mi({errors:[vi(e)]})}function bi(e){return mi(e)}function Ei(e,n,r){const i=[];if(!e||!n)return{insertions:i,result:n};let o;try{o=(0,t.parse)(n)}catch(e){return{insertions:i,result:n}}const s=r||Ti,a=new t.TypeInfo(e);return(0,t.visit)(o,{leave(e){a.leave(e)},enter(e){if(a.enter(e),"Field"===e.kind&&!e.selectionSet){const r=_i(Ci(a.getType()),s);if(r&&e.loc){const o=xi(n,e.loc.start);i.push({index:e.loc.end,string:" "+(0,t.print)(r).replace(/\n/g,"\n"+o)})}}}}),{insertions:i,result:ki(n,i)}}function Ti(e){if(!("getFields"in e))return[];const n=e.getFields();if(n.id)return["id"];if(n.edges)return["edges"];if(n.node)return["node"];const r=[];return Object.keys(n).forEach(e=>{(0,t.isLeafType)(n[e].type)&&r.push(e)}),r}function _i(e,n){const r=(0,t.getNamedType)(e);if(!e||(0,t.isLeafType)(e))return;const i=n(r);return Array.isArray(i)&&0!==i.length&&"getFields"in r?{kind:t.Kind.SELECTION_SET,selections:i.map(e=>{const i=r.getFields()[e],o=i?i.type:null;return{kind:t.Kind.FIELD,name:{kind:t.Kind.NAME,value:e},selectionSet:_i(o,n)}})}:void 0}function ki(e,t){if(0===t.length)return e;let n="",r=0;return t.forEach(t=>{let{index:i,string:o}=t;n+=e.slice(r,i)+o,r=i}),n+=e.slice(r),n}function xi(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.substring(n,r)}function Ci(e){if(e)return e}function wi(e,t){var n;const r=new Map,i=[];for(const o of e)if("Field"===o.kind){const e=t(o),s=r.get(e);if(null===(n=o.directives)||void 0===n?void 0:n.length){const e=Object.assign({},o);i.push(e)}else if((null==s?void 0:s.selectionSet)&&o.selectionSet)s.selectionSet.selections=[...s.selectionSet.selections,...o.selectionSet.selections];else if(!s){const t=Object.assign({},o);r.set(e,t),i.push(t)}}else i.push(o);return i}function Si(e,n,r){var i;const o=r?(0,t.getNamedType)(r).name:null,s=[],a=[];for(let l of n){if("FragmentSpread"===l.kind){const n=l.name.value;if(!l.directives||0===l.directives.length){if(a.indexOf(n)>=0)continue;a.push(n)}const r=e[l.name.value];if(r){const{typeCondition:e,directives:n,selectionSet:i}=r;l={kind:t.Kind.INLINE_FRAGMENT,typeCondition:e,directives:n,selectionSet:i}}}if(l.kind===t.Kind.INLINE_FRAGMENT&&(!l.directives||0===(null===(i=l.directives)||void 0===i?void 0:i.length))){const t=l.typeCondition?l.typeCondition.name.value:null;if(!t||t===o){s.push(...Si(e,l.selectionSet.selections,r));continue}}s.push(l)}return s}function Ni(e,n){const r=n?new t.TypeInfo(n):null,i=Object.create(null);for(const n of e.definitions)n.kind===t.Kind.FRAGMENT_DEFINITION&&(i[n.name.value]=n);const o={SelectionSet(e){const t=r?r.getParentType():null;let{selections:n}=e;return n=Si(i,n,t),n=wi(n,e=>e.alias?e.alias.value:e.name.value),Object.assign(Object.assign({},e),{selections:n})},FragmentDefinition:()=>null};return(0,t.visit)(e,r?(0,t.visitWithTypeInfo)(r,o):o)}function Ai(e,t,n){if(!n||n.length<1)return;const r=n.map(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value});if(t&&-1!==r.indexOf(t))return t;if(t&&e){const n=e.map(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value}).indexOf(t);if(-1!==n&&n<r.length)return r[n]}return r[0]}function Oi(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}globalThis&&globalThis.__asyncValues,globalThis&&globalThis.__asyncGenerator,v(mi,"stringify"),v(gi,"formatSingleError"),v(vi,"handleSingleError"),v(yi,"formatError"),v(bi,"formatResult"),v(Ei,"fillLeafs"),v(Ti,"defaultGetDefaultFieldNames"),v(_i,"buildSelectionSet"),v(ki,"withInsertions"),v(xi,"getIndentation"),v(Ci,"isFieldType"),v(wi,"uniqueBy"),v(Si,"inlineRelevantFragmentSpreads"),v(Ni,"mergeAst"),v(Ai,"getSelectedOperationName"),v(Oi,"isQuotaError");class Ii{constructor(e){this.storage=e||(null===e?null:"undefined"!=typeof window?window.localStorage:null)}get(e){if(!this.storage)return null;const t=`${Di}:${e}`,n=this.storage.getItem(t);return"null"===n||"undefined"===n?(this.storage.removeItem(t),null):n||null}set(e,t){let n=!1,r=null;if(this.storage){const i=`${Di}:${e}`;if(t)try{this.storage.setItem(i,t)}catch(e){r=e instanceof Error?e:new Error(""+e),n=Oi(this.storage,e)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}}}v(Ii,"StorageAPI");const Di="graphiql";class Li{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName)}edit(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1,e),this.save())}delete(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items[this.items.length-1]}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let e=0;e<5;e++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(e&&e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}v(Li,"QueryStore");class Fi{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=(e,t,n,r)=>{if(this.shouldSaveQuery(e,t,n,this.history.fetchRecent())){this.history.push({query:e,variables:t,headers:n,operationName:r});const i=this.history.items,o=this.favorite.items;this.queries=i.concat(o)}},this.history=new Li("queries",this.storage,this.maxHistoryLength),this.favorite=new Li("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,n,r,i){if(!e)return!1;try{(0,t.parse)(e)}catch(e){return!1}if(e.length>1e5)return!1;if(!i)return!0;if(JSON.stringify(e)===JSON.stringify(i.query)){if(JSON.stringify(n)===JSON.stringify(i.variables)){if(JSON.stringify(r)===JSON.stringify(i.headers))return!1;if(r&&!i.headers)return!1}if(n&&!i.variables)return!1}return!0}toggleFavorite(e,t,n,r,i,o){const s={query:e,variables:t,headers:n,operationName:r,label:i};this.favorite.contains(s)?o&&(s.favorite=!1,this.favorite.delete(s)):(s.favorite=!0,this.favorite.push(s)),this.queries=[...this.history.items,...this.favorite.items]}editLabel(e,t,n,r,i,o){const s={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit(Object.assign(Object.assign({},s),{favorite:o})):this.history.edit(s),this.queries=[...this.history.items,...this.favorite.items]}}v(Fi,"HistoryStore");var Mi=Object.defineProperty,Ri=v((e,t)=>Mi(e,"name",{value:t,configurable:!0}),"__name$g");function Pi(e){const t=(0,i.createContext)(null);return t.displayName=e,t}function ji(e){function t(n){var r;const o=(0,i.useContext)(e);if(null===o&&(null==n?void 0:n.nonNull))throw new Error(`Tried to use \`${(null==(r=n.caller)?void 0:r.name)||t.caller.name}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return o}return v(t,"useGivenContext"),Ri(t,"useGivenContext"),Object.defineProperty(t,"name",{value:"use"+e.displayName}),t}v(Pi,"createNullableContext"),Ri(Pi,"createNullableContext"),v(ji,"createContextHook"),Ri(ji,"createContextHook");var Vi=Object.defineProperty,Ui=v((e,t)=>Vi(e,"name",{value:t,configurable:!0}),"__name$f");const Bi=Pi("StorageContext");function qi(e){const t=(0,i.useRef)(!0),[n,r]=(0,i.useState)(new Ii(e.storage));return(0,i.useEffect)(()=>{t.current?t.current=!1:r(new Ii(e.storage))},[e.storage]),ti(Bi.Provider,{value:n,children:e.children})}e.F=Bi,v(qi,"StorageContextProvider"),Ui(qi,"StorageContextProvider");const zi=ji(Bi);var $i,Hi,Gi,Wi,Qi,Ki,Ji,Yi,Zi,Xi,eo,to,no,ro,io,oo,so,ao,lo,uo,co,fo,po,ho,mo,go,vo,yo,bo,Eo,To;e.J=zi,function(e){function t(e){return"string"==typeof e}v(t,"is"),e.is=t}($i||($i={})),function(e){function t(e){return"string"==typeof e}v(t,"is"),e.is=t}(Hi||(Hi={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,v(t,"is"),e.is=t}(Gi||(Gi={})),function(e){function t(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=0,e.MAX_VALUE=2147483647,v(t,"is"),e.is=t}(Wi||(Wi={})),function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=Wi.MAX_VALUE),t===Number.MAX_VALUE&&(t=Wi.MAX_VALUE),{line:e,character:t}}function n(e){var t=e;return xs.objectLiteral(t)&&xs.uinteger(t.line)&&xs.uinteger(t.character)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Qi||(Qi={})),function(e){function t(e,t,n,r){if(xs.uinteger(e)&&xs.uinteger(t)&&xs.uinteger(n)&&xs.uinteger(r))return{start:Qi.create(e,t),end:Qi.create(n,r)};if(Qi.is(e)&&Qi.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,"]"))}function n(e){var t=e;return xs.objectLiteral(t)&&Qi.is(t.start)&&Qi.is(t.end)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Ki||(Ki={})),function(e){function t(e,t){return{uri:e,range:t}}function n(e){var t=e;return xs.defined(t)&&Ki.is(t.range)&&(xs.string(t.uri)||xs.undefined(t.uri))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Ji||(Ji={})),function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}function n(e){var t=e;return xs.defined(t)&&Ki.is(t.targetRange)&&xs.string(t.targetUri)&&Ki.is(t.targetSelectionRange)&&(Ki.is(t.originSelectionRange)||xs.undefined(t.originSelectionRange))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Yi||(Yi={})),function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}function n(e){var t=e;return xs.objectLiteral(t)&&xs.numberRange(t.red,0,1)&&xs.numberRange(t.green,0,1)&&xs.numberRange(t.blue,0,1)&&xs.numberRange(t.alpha,0,1)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Zi||(Zi={})),function(e){function t(e,t){return{range:e,color:t}}function n(e){var t=e;return xs.objectLiteral(t)&&Ki.is(t.range)&&Zi.is(t.color)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Xi||(Xi={})),function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}function n(e){var t=e;return xs.objectLiteral(t)&&xs.string(t.label)&&(xs.undefined(t.textEdit)||po.is(t))&&(xs.undefined(t.additionalTextEdits)||xs.typedArray(t.additionalTextEdits,po.is))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(eo||(eo={})),(no=to||(to={})).Comment="comment",no.Imports="imports",no.Region="region",function(e){function t(e,t,n,r,i,o){var s={startLine:e,endLine:t};return xs.defined(n)&&(s.startCharacter=n),xs.defined(r)&&(s.endCharacter=r),xs.defined(i)&&(s.kind=i),xs.defined(o)&&(s.collapsedText=o),s}function n(e){var t=e;return xs.objectLiteral(t)&&xs.uinteger(t.startLine)&&xs.uinteger(t.startLine)&&(xs.undefined(t.startCharacter)||xs.uinteger(t.startCharacter))&&(xs.undefined(t.endCharacter)||xs.uinteger(t.endCharacter))&&(xs.undefined(t.kind)||xs.string(t.kind))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ro||(ro={})),function(e){function t(e,t){return{location:e,message:t}}function n(e){var t=e;return xs.defined(t)&&Ji.is(t.location)&&xs.string(t.message)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(io||(io={})),(so=oo||(oo={})).Error=1,so.Warning=2,so.Information=3,so.Hint=4,(lo=ao||(ao={})).Unnecessary=1,lo.Deprecated=2,function(e){function t(e){var t=e;return xs.objectLiteral(t)&&xs.string(t.href)}v(t,"is"),e.is=t}(uo||(uo={})),function(e){function t(e,t,n,r,i,o){var s={range:e,message:t};return xs.defined(n)&&(s.severity=n),xs.defined(r)&&(s.code=r),xs.defined(i)&&(s.source=i),xs.defined(o)&&(s.relatedInformation=o),s}function n(e){var t,n=e;return xs.defined(n)&&Ki.is(n.range)&&xs.string(n.message)&&(xs.number(n.severity)||xs.undefined(n.severity))&&(xs.integer(n.code)||xs.string(n.code)||xs.undefined(n.code))&&(xs.undefined(n.codeDescription)||xs.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(xs.string(n.source)||xs.undefined(n.source))&&(xs.undefined(n.relatedInformation)||xs.typedArray(n.relatedInformation,io.is))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(co||(co={})),function(e){function t(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return xs.defined(n)&&n.length>0&&(i.arguments=n),i}function n(e){var t=e;return xs.defined(t)&&xs.string(t.title)&&xs.string(t.command)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(fo||(fo={})),function(e){function t(e,t){return{range:e,newText:t}}function n(e,t){return{range:{start:e,end:e},newText:t}}function r(e){return{range:e,newText:""}}function i(e){var t=e;return xs.objectLiteral(t)&&xs.string(t.newText)&&Ki.is(t.range)}v(t,"replace"),e.replace=t,v(n,"insert"),e.insert=n,v(r,"del"),e.del=r,v(i,"is"),e.is=i}(po||(po={})),function(e){function t(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r}function n(e){var t=e;return xs.objectLiteral(t)&&xs.string(t.label)&&(xs.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(xs.string(t.description)||void 0===t.description)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ho||(ho={})),function(e){function t(e){var t=e;return xs.string(t)}v(t,"is"),e.is=t}(mo||(mo={})),function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}function r(e,t){return{range:e,newText:"",annotationId:t}}function i(e){var t=e;return po.is(t)&&(ho.is(t.annotationId)||mo.is(t.annotationId))}v(t,"replace"),e.replace=t,v(n,"insert"),e.insert=n,v(r,"del"),e.del=r,v(i,"is"),e.is=i}(go||(go={})),function(e){function t(e,t){return{textDocument:e,edits:t}}function n(e){var t=e;return xs.defined(t)&&xo.is(t.textDocument)&&Array.isArray(t.edits)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(vo||(vo={})),function(e){function t(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"create"===t.kind&&xs.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||xs.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||xs.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||mo.is(t.annotationId))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(yo||(yo={})),function(e){function t(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i}function n(e){var t=e;return t&&"rename"===t.kind&&xs.string(t.oldUri)&&xs.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||xs.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||xs.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||mo.is(t.annotationId))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(bo||(bo={})),function(e){function t(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"delete"===t.kind&&xs.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||xs.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||xs.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||mo.is(t.annotationId))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Eo||(Eo={})),function(e){function t(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return xs.string(e.kind)?yo.is(e)||bo.is(e)||Eo.is(e):vo.is(e)})))}v(t,"is"),e.is=t}(To||(To={}));var _o,ko,xo,Co,wo,So,No,Ao,Oo,Io,Do,Lo,Fo,Mo,Ro,Po,jo,Vo,Uo,Bo,qo,zo,$o,Ho,Go,Wo,Qo,Ko,Jo,Yo,Zo,Xo,es,ts,ns,rs,is,os,ss,as,ls,us,cs,fs,ds,ps,hs,ms,gs,vs,ys,bs,Es,Ts,_s=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return v(e,"TextEditChangeImpl"),e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=po.insert(e,t):mo.is(n)?(i=n,r=go.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=go.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=po.replace(e,t):mo.is(n)?(i=n,r=go.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=go.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=po.del(e):mo.is(t)?(r=t,n=go.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=go.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ks=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return v(e,"ChangeAnnotations"),e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(mo.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ks(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(vo.is(e)){var n=new _s(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new _s(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}v(e,"WorkspaceChange"),Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(xo.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new _s(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new _s(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ks,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(ho.is(t)||mo.is(t)?r=t:n=t,void 0===r?i=yo.create(e,n):(o=mo.is(r)?r:this._changeAnnotations.manage(r),i=yo.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,s;if(ho.is(n)||mo.is(n)?i=n:r=n,void 0===i?o=bo.create(e,t,r):(s=mo.is(i)?i:this._changeAnnotations.manage(i),o=bo.create(e,t,r,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(ho.is(t)||mo.is(t)?r=t:n=t,void 0===r?i=Eo.create(e,n):(o=mo.is(r)?r:this._changeAnnotations.manage(r),i=Eo.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){function t(e){return{uri:e}}function n(e){var t=e;return xs.defined(t)&&xs.string(t.uri)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(_o||(_o={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return xs.defined(t)&&xs.string(t.uri)&&xs.integer(t.version)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ko||(ko={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return xs.defined(t)&&xs.string(t.uri)&&(null===t.version||xs.integer(t.version))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(xo||(xo={})),function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}function n(e){var t=e;return xs.defined(t)&&xs.string(t.uri)&&xs.string(t.languageId)&&xs.integer(t.version)&&xs.string(t.text)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Co||(Co={})),function(e){function t(t){var n=t;return n===e.PlainText||n===e.Markdown}e.PlainText="plaintext",e.Markdown="markdown",v(t,"is"),e.is=t}(wo||(wo={})),function(e){function t(e){var t=e;return xs.objectLiteral(e)&&wo.is(t.kind)&&xs.string(t.value)}v(t,"is"),e.is=t}(So||(So={})),(Ao=No||(No={})).Text=1,Ao.Method=2,Ao.Function=3,Ao.Constructor=4,Ao.Field=5,Ao.Variable=6,Ao.Class=7,Ao.Interface=8,Ao.Module=9,Ao.Property=10,Ao.Unit=11,Ao.Value=12,Ao.Enum=13,Ao.Keyword=14,Ao.Snippet=15,Ao.Color=16,Ao.File=17,Ao.Reference=18,Ao.Folder=19,Ao.EnumMember=20,Ao.Constant=21,Ao.Struct=22,Ao.Event=23,Ao.Operator=24,Ao.TypeParameter=25,e.I=Oo,(Io=Oo||(e.I=Oo={})).PlainText=1,Io.Snippet=2,(Do||(Do={})).Deprecated=1,function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}function n(e){var t=e;return t&&xs.string(t.newText)&&Ki.is(t.insert)&&Ki.is(t.replace)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Lo||(Lo={})),(Mo=Fo||(Fo={})).asIs=1,Mo.adjustIndentation=2,function(e){function t(e){var t=e;return t&&(xs.string(t.detail)||void 0===t.detail)&&(xs.string(t.description)||void 0===t.description)}v(t,"is"),e.is=t}(Ro||(Ro={})),function(e){function t(e){return{label:e}}v(t,"create"),e.create=t}(Po||(Po={})),function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}v(t,"create"),e.create=t}(jo||(jo={})),function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function n(e){var t=e;return xs.string(t)||xs.objectLiteral(t)&&xs.string(t.language)&&xs.string(t.value)}v(t,"fromPlainText"),e.fromPlainText=t,v(n,"is"),e.is=n}(Vo||(Vo={})),function(e){function t(e){var t=e;return!!t&&xs.objectLiteral(t)&&(So.is(t.contents)||Vo.is(t.contents)||xs.typedArray(t.contents,Vo.is))&&(void 0===e.range||Ki.is(e.range))}v(t,"is"),e.is=t}(Uo||(Uo={})),function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}v(t,"create"),e.create=t}(Bo||(Bo={})),function(e){function t(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return xs.defined(t)&&(i.documentation=t),xs.defined(n)?i.parameters=n:i.parameters=[],i}v(t,"create"),e.create=t}(qo||(qo={})),($o=zo||(zo={})).Text=1,$o.Read=2,$o.Write=3,function(e){function t(e,t){var n={range:e};return xs.number(t)&&(n.kind=t),n}v(t,"create"),e.create=t}(Ho||(Ho={})),(Wo=Go||(Go={})).File=1,Wo.Module=2,Wo.Namespace=3,Wo.Package=4,Wo.Class=5,Wo.Method=6,Wo.Property=7,Wo.Field=8,Wo.Constructor=9,Wo.Enum=10,Wo.Interface=11,Wo.Function=12,Wo.Variable=13,Wo.Constant=14,Wo.String=15,Wo.Number=16,Wo.Boolean=17,Wo.Array=18,Wo.Object=19,Wo.Key=20,Wo.Null=21,Wo.EnumMember=22,Wo.Struct=23,Wo.Event=24,Wo.Operator=25,Wo.TypeParameter=26,(Qo||(Qo={})).Deprecated=1,function(e){function t(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}v(t,"create"),e.create=t}(Ko||(Ko={})),function(e){function t(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}v(t,"create"),e.create=t}(Jo||(Jo={})),function(e){function t(e,t,n,r,i,o){var s={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(s.children=o),s}function n(e){var t=e;return t&&xs.string(t.name)&&xs.number(t.kind)&&Ki.is(t.range)&&Ki.is(t.selectionRange)&&(void 0===t.detail||xs.string(t.detail))&&(void 0===t.deprecated||xs.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(Yo||(Yo={})),(Xo=Zo||(Zo={})).Empty="",Xo.QuickFix="quickfix",Xo.Refactor="refactor",Xo.RefactorExtract="refactor.extract",Xo.RefactorInline="refactor.inline",Xo.RefactorRewrite="refactor.rewrite",Xo.Source="source",Xo.SourceOrganizeImports="source.organizeImports",Xo.SourceFixAll="source.fixAll",(ts=es||(es={})).Invoked=1,ts.Automatic=2,function(e){function t(e,t,n){var r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r}function n(e){var t=e;return xs.defined(t)&&xs.typedArray(t.diagnostics,co.is)&&(void 0===t.only||xs.typedArray(t.only,xs.string))&&(void 0===t.triggerKind||t.triggerKind===es.Invoked||t.triggerKind===es.Automatic)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ns||(ns={})),function(e){function t(e,t,n){var r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):fo.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r}function n(e){var t=e;return t&&xs.string(t.title)&&(void 0===t.diagnostics||xs.typedArray(t.diagnostics,co.is))&&(void 0===t.kind||xs.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||fo.is(t.command))&&(void 0===t.isPreferred||xs.boolean(t.isPreferred))&&(void 0===t.edit||To.is(t.edit))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(rs||(rs={})),function(e){function t(e,t){var n={range:e};return xs.defined(t)&&(n.data=t),n}function n(e){var t=e;return xs.defined(t)&&Ki.is(t.range)&&(xs.undefined(t.command)||fo.is(t.command))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(is||(is={})),function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}function n(e){var t=e;return xs.defined(t)&&xs.uinteger(t.tabSize)&&xs.boolean(t.insertSpaces)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(os||(os={})),function(e){function t(e,t,n){return{range:e,target:t,data:n}}function n(e){var t=e;return xs.defined(t)&&Ki.is(t.range)&&(xs.undefined(t.target)||xs.string(t.target))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ss||(ss={})),function(e){function t(e,t){return{range:e,parent:t}}function n(t){var n=t;return xs.objectLiteral(n)&&Ki.is(n.range)&&(void 0===n.parent||e.is(n.parent))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(as||(as={})),(us=ls||(ls={})).namespace="namespace",us.type="type",us.class="class",us.enum="enum",us.interface="interface",us.struct="struct",us.typeParameter="typeParameter",us.parameter="parameter",us.variable="variable",us.property="property",us.enumMember="enumMember",us.event="event",us.function="function",us.method="method",us.macro="macro",us.keyword="keyword",us.modifier="modifier",us.comment="comment",us.string="string",us.number="number",us.regexp="regexp",us.operator="operator",us.decorator="decorator",(fs=cs||(cs={})).declaration="declaration",fs.definition="definition",fs.readonly="readonly",fs.static="static",fs.deprecated="deprecated",fs.abstract="abstract",fs.async="async",fs.modification="modification",fs.documentation="documentation",fs.defaultLibrary="defaultLibrary",function(e){function t(e){var t=e;return xs.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}v(t,"is"),e.is=t}(ds||(ds={})),function(e){function t(e,t){return{range:e,text:t}}function n(e){var t=e;return null!=t&&Ki.is(t.range)&&xs.string(t.text)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ps||(ps={})),function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}function n(e){var t=e;return null!=t&&Ki.is(t.range)&&xs.boolean(t.caseSensitiveLookup)&&(xs.string(t.variableName)||void 0===t.variableName)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(hs||(hs={})),function(e){function t(e,t){return{range:e,expression:t}}function n(e){var t=e;return null!=t&&Ki.is(t.range)&&(xs.string(t.expression)||void 0===t.expression)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ms||(ms={})),function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}function n(e){var t=e;return xs.defined(t)&&Ki.is(e.stoppedLocation)}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(gs||(gs={})),function(e){function t(e){return 1===e||2===e}e.Type=1,e.Parameter=2,v(t,"is"),e.is=t}(vs||(vs={})),function(e){function t(e){return{value:e}}function n(e){var t=e;return xs.objectLiteral(t)&&(void 0===t.tooltip||xs.string(t.tooltip)||So.is(t.tooltip))&&(void 0===t.location||Ji.is(t.location))&&(void 0===t.command||fo.is(t.command))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(ys||(ys={})),function(e){function t(e,t,n){var r={position:e,label:t};return void 0!==n&&(r.kind=n),r}function n(e){var t=e;return xs.objectLiteral(t)&&Qi.is(t.position)&&(xs.string(t.label)||xs.typedArray(t.label,ys.is))&&(void 0===t.kind||vs.is(t.kind))&&void 0===t.textEdits||xs.typedArray(t.textEdits,po.is)&&(void 0===t.tooltip||xs.string(t.tooltip)||So.is(t.tooltip))&&(void 0===t.paddingLeft||xs.boolean(t.paddingLeft))&&(void 0===t.paddingRight||xs.boolean(t.paddingRight))}v(t,"create"),e.create=t,v(n,"is"),e.is=n}(bs||(bs={})),function(e){function t(e){var t=e;return xs.objectLiteral(t)&&Hi.is(t.uri)&&xs.string(t.name)}v(t,"is"),e.is=t}(Es||(Es={})),function(e){function t(e,t,n,r){return new ws(e,t,n,r)}function n(e){var t=e;return!!(xs.defined(t)&&xs.string(t.uri)&&(xs.undefined(t.languageId)||xs.string(t.languageId))&&xs.uinteger(t.lineCount)&&xs.func(t.getText)&&xs.func(t.positionAt)&&xs.func(t.offsetAt))}function r(e,t){for(var n=e.getText(),r=i(t,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=n.length,s=r.length-1;s>=0;s--){var a=r[s],l=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=o))throw new Error("Overlapping edit");n=n.substring(0,l)+a.newText+n.substring(u,n.length),o=l}return n}function i(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),o=e.slice(n);i(r,t),i(o,t);for(var s=0,a=0,l=0;s<r.length&&a<o.length;){var u=t(r[s],o[a]);e[l++]=u<=0?r[s++]:o[a++]}for(;s<r.length;)e[l++]=r[s++];for(;a<o.length;)e[l++]=o[a++];return e}v(t,"create"),e.create=t,v(n,"is"),e.is=n,v(r,"applyEdits"),e.applyEdits=r,v(i,"mergeSort")}(Ts||(Ts={}));var xs,Cs,ws=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return v(e,"FullTextDocument"),Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return Qi.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return Qi.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();function Ss(e){return{ofRule:e}}function Ns(e,t){return{ofRule:e,isList:!0,separator:t}}function As(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every(t=>t.match&&!t.match(e))},e}function Os(e,t){return{style:t,match:t=>t.kind===e}}function Is(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}!function(e){var t=Object.prototype.toString;function n(e){return void 0!==e}function r(e){return void 0===e}function i(e){return!0===e||!1===e}function o(e){return"[object String]"===t.call(e)}function s(e){return"[object Number]"===t.call(e)}function a(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r}function l(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647}function u(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647}function c(e){return"[object Function]"===t.call(e)}function f(e){return null!==e&&"object"==typeof e}function d(e,t){return Array.isArray(e)&&e.every(t)}v(n,"defined"),e.defined=n,v(r,"undefined$1"),e.undefined=r,v(i,"boolean"),e.boolean=i,v(o,"string"),e.string=o,v(s,"number"),e.number=s,v(a,"numberRange"),e.numberRange=a,v(l,"integer"),e.integer=l,v(u,"uinteger"),e.uinteger=u,v(c,"func"),e.func=c,v(f,"objectLiteral"),e.objectLiteral=f,v(d,"typedArray"),e.typedArray=d}(xs||(xs={})),e.C=Cs,function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Cs||(e.C=Cs={})),v(Ss,"opt"),v(Ns,"list"),v(As,"butNot"),v(Os,"t"),v(Is,"p");const Ds=v(e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,"isIgnored");e.i=Ds,e.L={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/};const Ls={Document:[Ns("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return t.Kind.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[Fs("query"),Ss(Ms("def")),Ss("VariableDefinitions"),Ns("Directive"),"SelectionSet"],Mutation:[Fs("mutation"),Ss(Ms("def")),Ss("VariableDefinitions"),Ns("Directive"),"SelectionSet"],Subscription:[Fs("subscription"),Ss(Ms("def")),Ss("VariableDefinitions"),Ns("Directive"),"SelectionSet"],VariableDefinitions:[Is("("),Ns("VariableDefinition"),Is(")")],VariableDefinition:["Variable",Is(":"),"Type",Ss("DefaultValue")],Variable:[Is("$","variable"),Ms("variable")],DefaultValue:[Is("="),"Value"],SelectionSet:[Is("{"),Ns("Selection"),Is("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[Ms("property"),Is(":"),Ms("qualifier"),Ss("Arguments"),Ns("Directive"),Ss("SelectionSet")],Field:[Ms("property"),Ss("Arguments"),Ns("Directive"),Ss("SelectionSet")],Arguments:[Is("("),Ns("Argument"),Is(")")],Argument:[Ms("attribute"),Is(":"),"Value"],FragmentSpread:[Is("..."),Ms("def"),Ns("Directive")],InlineFragment:[Is("..."),Ss("TypeCondition"),Ns("Directive"),"SelectionSet"],FragmentDefinition:[Fs("fragment"),Ss(As(Ms("def"),[Fs("on")])),"TypeCondition",Ns("Directive"),"SelectionSet"],TypeCondition:[Fs("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[Os("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Os("Name","builtin")],NullValue:[Os("Name","keyword")],EnumValue:[Ms("string-2")],ListValue:[Is("["),Ns("Value"),Is("]")],ObjectValue:[Is("{"),Ns("ObjectField"),Is("}")],ObjectField:[Ms("attribute"),Is(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[Is("["),"Type",Is("]"),Ss(Is("!"))],NonNullType:["NamedType",Ss(Is("!"))],NamedType:[Rs("atom")],Directive:[Is("@","meta"),Ms("meta"),Ss("Arguments")],DirectiveDef:[Fs("directive"),Is("@","meta"),Ms("meta"),Ss("ArgumentsDef"),Fs("on"),Ns("DirectiveLocation",Is("|"))],InterfaceDef:[Fs("interface"),Ms("atom"),Ss("Implements"),Ns("Directive"),Is("{"),Ns("FieldDef"),Is("}")],Implements:[Fs("implements"),Ns("NamedType",Is("&"))],DirectiveLocation:[Ms("string-2")],SchemaDef:[Fs("schema"),Ns("Directive"),Is("{"),Ns("OperationTypeDef"),Is("}")],OperationTypeDef:[Ms("keyword"),Is(":"),Ms("atom")],ScalarDef:[Fs("scalar"),Ms("atom"),Ns("Directive")],ObjectTypeDef:[Fs("type"),Ms("atom"),Ss("Implements"),Ns("Directive"),Is("{"),Ns("FieldDef"),Is("}")],FieldDef:[Ms("property"),Ss("ArgumentsDef"),Is(":"),"Type",Ns("Directive")],ArgumentsDef:[Is("("),Ns("InputValueDef"),Is(")")],InputValueDef:[Ms("attribute"),Is(":"),"Type",Ss("DefaultValue"),Ns("Directive")],UnionDef:[Fs("union"),Ms("atom"),Ns("Directive"),Is("="),Ns("UnionMember",Is("|"))],UnionMember:["NamedType"],EnumDef:[Fs("enum"),Ms("atom"),Ns("Directive"),Is("{"),Ns("EnumValueDef"),Is("}")],EnumValueDef:[Ms("string-2"),Ns("Directive")],InputDef:[Fs("input"),Ms("atom"),Ns("Directive"),Is("{"),Ns("InputValueDef"),Is("}")],ExtendDef:[Fs("extend"),"ObjectTypeDef"]};function Fs(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function Ms(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function Rs(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){var n;(null===(n=e.prevState)||void 0===n?void 0:n.prevState)&&(e.name=t.value,e.prevState.prevState.type=t.value)}}}e.P=Ls,v(Fs,"word"),v(Ms,"name"),v(Rs,"type");const Ps=Object.assign(Object.assign({},t.Kind),{ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"});e.R=Ps;var js={exports:{}};function Vs(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}v(Vs,"nullthrows"),js.exports=Vs,js.exports.default=Vs,Object.defineProperty(js.exports,"__esModule",{value:!0});var Us=E(js.exports);const Bs=v((e,n)=>{if(!n)return[];const r=new Map,i=new Set;(0,t.visit)(e,{FragmentDefinition(e){r.set(e.name.value,!0)},FragmentSpread(e){i.has(e.name.value)||i.add(e.name.value)}});const o=new Set;i.forEach(e=>{!r.has(e)&&n.has(e)&&o.add(Us(n.get(e)))});const s=[];return o.forEach(e=>{(0,t.visit)(e,{FragmentSpread(e){!i.has(e.name.value)&&n.get(e.name.value)&&(o.add(Us(n.get(e.name.value))),i.add(e.name.value))}}),r.has(e.name.value)||s.push(e)}),s},"getFragmentDependenciesForAST");function qs(e,n){const r=Object.create(null);return n.definitions.forEach(n=>{if("OperationDefinition"===n.kind){const i=n.variableDefinitions;i&&i.forEach(n=>{let{variable:i,type:o}=n;const s=(0,t.typeFromAST)(e,o);s?r[i.name.value]=s:o.kind===t.Kind.NAMED_TYPE&&"Float"===o.name.value&&(r[i.name.value]=t.GraphQLFloat)})}}),r}function zs(e,n){const r=n?qs(n,e):void 0,i=[];return(0,t.visit)(e,{OperationDefinition(e){i.push(e)}}),{variableToType:r,operations:i}}function $s(e,n){if(n)try{const r=(0,t.parse)(n);return Object.assign(Object.assign({},zs(r,e)),{documentAST:r})}catch(e){return}}v(qs,"collectVariables"),v(zs,"getOperationASTFacts"),v($s,"getOperationFacts"),globalThis&&globalThis.__awaiter;
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | var Hs=v((function(e){return"object"==typeof e?null===e:"function"!=typeof e}),"isPrimitive"),Gs=v((function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}),"isObject");
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | function Ws(e){return!0===Gs(e)&&"[object Object]"===Object.prototype.toString.call(e)}v(Ws,"isObjectObject");var Qs=v((function(e){var t,n;return!1!==Ws(e)&&"function"==typeof(t=e.constructor)&&!1!==Ws(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}),"isPlainObject");
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | const{deleteProperty:Ks}=Reflect,Js=Hs,Ys=Qs,Zs=v(e=>"object"==typeof e&&null!==e||"function"==typeof e,"isObject"),Xs=v(e=>"__proto__"===e||"constructor"===e||"prototype"===e,"isUnsafeKey"),ea=v(e=>{if(!Js(e))throw new TypeError("Object keys must be strings or symbols");if(Xs(e))throw new Error(`Cannot set unsafe key: "${e}"`)},"validateKey"),ta=v(e=>Array.isArray(e)?e.flat().map(String).join(","):e,"toStringKey"),na=v((e,t)=>{if("string"!=typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n},"createMemoKey"),ra=v((e,t,n)=>{const r=ta(t?na(e,t):e);ea(r);const i=aa.cache.get(r)||n();return aa.cache.set(r,i),i},"memoize"),ia=v((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"==typeof e&&!1!==r&&/\//.test(e))return[e];const i=[];let o="";const s=v(e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)},"push");for(let t=0;t<e.length;t++){const r=e[t];"\\"!==r?r!==n?o+=r:(s(o),o=""):o+=e[++t]}return o&&s(o),i}),"splitString"),oa=v((e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:ra(e,t,()=>ia(e,t)),"split"),sa=v((e,t,n,r)=>{if(ea(t),void 0===n)Ks(e,t);else if(r&&r.merge){const i="function"===r.merge?r.merge:Object.assign;i&&Ys(e[t])&&Ys(n)?e[t]=i(e[t],n):e[t]=n}else e[t]=n;return e},"assignProp"),aa=v((e,t,n,r)=>{if(!t||!Zs(e))return e;const i=oa(t,r);let o=e;for(let e=0;e<i.length;e++){const t=i[e],s=i[e+1];if(ea(t),void 0===s){sa(o,t,n,r);break}"number"!=typeof s||Array.isArray(o[t])?(Zs(o[t])||(o[t]={}),o=o[t]):o=o[t]=[]}return e},"setValue");aa.split=oa,aa.cache=new Map,aa.clear=()=>{aa.cache=new Map};var la=aa,ua=Object.defineProperty,ca=v((e,t)=>ua(e,"name",{value:t,configurable:!0}),"__name$e");const fa=Pi("HistoryContext");function da(e){var t;const n=zi(),r=(0,i.useRef)(new Fi(n||new Ii(null),e.maxHistoryLength||ha)),[o,s]=(0,i.useState)((null==(t=r.current)?void 0:t.queries)||[]),[a,l]=(0,i.useState)("true"===(null==n?void 0:n.get(ma))||!1),u=(0,i.useCallback)(e=>{let{query:t,variables:n,headers:i,operationName:o}=e;var a;null==(a=r.current)||a.updateHistory(t,n,i,o),s(r.current.queries)},[]),c=(0,i.useCallback)(e=>{let{query:t,variables:n,headers:i,operationName:o,label:a,favorite:l}=e;r.current.editLabel(t,n,i,o,a,l),s(r.current.queries)},[]),{onToggle:f}=e,d=(0,i.useCallback)(()=>{null==f||f(!1),null==n||n.set(ma,JSON.stringify(!1)),l(!1)},[f,n]),p=(0,i.useCallback)(()=>{null==f||f(!0),null==n||n.set(ma,JSON.stringify(!0)),l(!0)},[f,n]),h=(0,i.useCallback)(()=>{l(e=>{const t=!e;return null==f||f(t),null==n||n.set(ma,JSON.stringify(t)),t})},[f,n]),m=(0,i.useCallback)(e=>{let{query:t,variables:n,headers:i,operationName:o,label:a,favorite:l}=e;r.current.toggleFavorite(t,n,i,o,a,l),s(r.current.queries)},[]),g=(0,i.useMemo)(()=>({addToHistory:u,editLabel:c,hide:d,isVisible:a,items:o,show:p,toggle:h,toggleFavorite:m}),[u,c,d,a,o,p,h,m]);return ti(fa.Provider,{value:g,children:e.children})}e.H=fa,v(da,"HistoryContextProvider"),ca(da,"HistoryContextProvider");const pa=ji(fa);e.z=pa;const ha=20,ma="historyPaneOpen";var ga=Object.defineProperty,va=v((e,t)=>ga(e,"name",{value:t,configurable:!0}),"__name$d");function ya(){const{headerEditor:e,queryEditor:t,variableEditor:n}=Ql({nonNull:!0,caller:ya});return r=>{var i,o,s;null==t||t.setValue(null!=(i=r.query)?i:""),null==n||n.setValue(null!=(o=r.variables)?o:""),null==e||e.setValue(null!=(s=r.headers)?s:"")}}v(ya,"useSelectHistoryItem"),va(ya,"useSelectHistoryItem");var ba=Object.defineProperty,Ea=v((e,t)=>ba(e,"name",{value:t,configurable:!0}),"__name$c");const Ta=Pi("ExecutionContext");function _a(e){const{externalFragments:n,headerEditor:r,queryEditor:o,responseEditor:s,shouldPersistHeaders:a,variableEditor:l,updateActiveTabValues:u}=Ql({nonNull:!0,caller:_a}),c=pa(),f=rl({caller:_a}),[d,p]=(0,i.useState)(!1),[h,g]=(0,i.useState)(null),v=(0,i.useRef)(0),b=(0,i.useCallback)(()=>{null==h||h.unsubscribe(),p(!1),g(null)},[h]),{fetcher:E}=e,T=(0,i.useCallback)(async()=>{var i,d,T;if(!o||!s)return;if(h)return void b();const _=Ea(e=>{s.setValue(e),u({response:e})},"setResponse");v.current+=1;const k=v.current;let x=f()||o.getValue();const C=null==l?void 0:l.getValue();let w;try{w=xa({json:C,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(e){return void _(e instanceof Error?e.message:""+e)}const S=null==r?void 0:r.getValue();let N;try{N=xa({json:S,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(e){return void _(e instanceof Error?e.message:""+e)}if(n){const e=o.documentAST?Bs(o.documentAST,n):[];e.length>0&&(x+="\n"+e.map(e=>(0,t.print)(e)).join("\n"))}_(""),p(!0);const A=null!=(d=null!=(i=e.operationName)?i:o.operationName)?d:void 0;null==c||c.addToHistory({query:x,variables:C,headers:S,operationName:A});try{let e={data:{}};const t=Ea(t=>{if(k!==v.current)return;let n=!!Array.isArray(t)&&t;if(!n&&"object"==typeof t&&null!==t&&"hasNext"in t&&(n=[t]),n){const t={data:e.data},r=[...(null==e?void 0:e.errors)||[],...n.map(e=>e.errors).flat().filter(Boolean)];r.length&&(t.errors=r);for(const r of n){const n=r,{path:i,data:o,errors:s}=n,a=y(n,["path","data","errors"]);if(i){if(!o)throw new Error("Expected part to contain a data property, but got "+r);la(t.data,i,o,{merge:!0})}else o&&(t.data=r.data);e=m(m({},t),a)}p(!1),_(bi(e))}else{const e=bi(t);p(!1),_(e)}},"handleResponse"),n=E({query:x,variables:w,operationName:A},{headers:null!=N?N:void 0,shouldPersistHeaders:a,documentAST:null!=(T=o.documentAST)?T:void 0}),r=await Promise.resolve(n);if(ci(r))g(r.subscribe({next(e){t(e)},error(e){p(!1),e&&_(yi(e)),g(null)},complete(){p(!1),g(null)}}));else if(fi(r)){g({unsubscribe:()=>{var e,t;return null==(t=(e=r[Symbol.asyncIterator]()).return)?void 0:t.call(e)}});try{for await(const e of r)t(e);p(!1),g(null)}catch(e){p(!1),_(yi(e)),g(null)}}else t(r)}catch(e){p(!1),_(yi(e)),g(null)}},[f,n,E,r,c,e.operationName,o,s,a,b,h,u,l]),_=(0,i.useMemo)(()=>{var t;return{isFetching:d,operationName:null!=(t=e.operationName)?t:null,run:T,stop:b}},[d,e.operationName,T,b]);return ti(Ta.Provider,{value:_,children:e.children})}e.q=Ta,v(_a,"ExecutionContextProvider"),Ea(_a,"ExecutionContextProvider");const ka=ji(Ta);function xa(e){let{json:t,errorMessageParse:n,errorMessageType:r}=e,i=void 0;try{i=t&&""!==t.trim()?JSON.parse(t):void 0}catch(e){throw new Error(`${n}: ${e instanceof Error?e.message:e}.`)}const o="object"==typeof i&&null!==i&&!Array.isArray(i);if(void 0!==i&&!o)throw new Error(r);return i}e.s=ka,v(xa,"tryParseJsonObject"),Ea(xa,"tryParseJsonObject");var Ca=v((function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}),"toggleSelection"),wa={"text/plain":"Text","text/html":"Url",default:"Text"};function Sa(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Na(e,t){var n,r,i,o,s,a,l=!1;t||(t={}),n=t.debug||!1;try{if(i=Ca(),o=document.createRange(),s=document.getSelection(),(a=document.createElement("span")).textContent=e,a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=wa[t.format]||wa.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(i){n&&console.error("unable to copy using execCommand: ",i),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(i){n&&console.error("unable to copy using clipboardData: ",i),n&&console.error("falling back to prompt"),r=Sa("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return l}v(Sa,"format"),v(Na,"copy");var Aa=Na,Oa=Object.defineProperty,Ia=v((e,t)=>Oa(e,"name",{value:t,configurable:!0}),"__name$b");const Da=Pi("SchemaContext");function La(e){const{initialHeaders:n,headerEditor:r}=Ql({nonNull:!0,caller:La}),[o,s]=(0,i.useState)(),[a,l]=(0,i.useState)(!1),[u,c]=(0,i.useState)(null),f=(0,i.useRef)(0);(0,i.useEffect)(()=>{s((0,t.isSchema)(e.schema)||null===e.schema||void 0===e.schema?e.schema:void 0),f.current++},[e.schema]);const d=(0,i.useRef)(n);(0,i.useEffect)(()=>{r&&(d.current=r.getValue())});const{introspectionQuery:p,introspectionQueryName:h,introspectionQuerySansSubscriptions:m}=Ma({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:g,onSchemaChange:y}=e,b=(0,i.useCallback)(()=>{if((0,t.isSchema)(e.schema)||null===e.schema)return;const n=++f.current;s(void 0);const r=e.schema;async function i(){if(r)return r;const e=Ra(d.current);if(!e.isValidJSON)return void c("Introspection failed as headers are invalid.");const t=e.headers?{headers:e.headers}:{},n=pi(g({query:p,operationName:h},t));if(!li(n))return void c("Fetcher did not return a Promise for introspection.");l(!0);let i=await n;if("object"!=typeof i||null===i||!("data"in i)){const e=pi(g({query:m,operationName:h},t));if(!li(e))throw new Error("Fetcher did not return a Promise for introspection.");i=await e}if(l(!1),(null==i?void 0:i.data)&&"__schema"in i.data)return i.data;const o="string"==typeof i?i:bi(i);c(o)}v(i,"fetchIntrospectionData"),Ia(i,"fetchIntrospectionData"),i().then(e=>{if(n===f.current&&e)try{const n=(0,t.buildClientSchema)(e);s(n),null==y||y(n)}catch(e){c(yi(e))}}).catch(e=>{n===f.current&&(c(yi(e)),l(!1))})},[g,h,p,m,y,e.schema]);(0,i.useEffect)(()=>{b()},[b]),(0,i.useEffect)(()=>{function e(e){82===e.keyCode&&e.shiftKey&&e.ctrlKey&&b()}return v(e,"triggerIntrospection"),Ia(e,"triggerIntrospection"),window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)});const E=(0,i.useMemo)(()=>!o||e.dangerouslyAssumeSchemaIsValid?[]:(0,t.validateSchema)(o),[o,e.dangerouslyAssumeSchemaIsValid]),T=(0,i.useMemo)(()=>({fetchError:u,introspect:b,isFetching:a,schema:o,validationErrors:E}),[u,b,a,o,E]);return ti(Da.Provider,{value:T,children:e.children})}e.S=Da,v(La,"SchemaContextProvider"),Ia(La,"SchemaContextProvider");const Fa=ji(Da);function Ma(e){let{inputValueDeprecation:n,introspectionQueryName:r,schemaDescription:o}=e;return(0,i.useMemo)(()=>{const e=r||"IntrospectionQuery";let i=(0,t.getIntrospectionQuery)({inputValueDeprecation:n,schemaDescription:o});r&&(i=i.replace("query IntrospectionQuery","query "+e));const s=i.replace("subscriptionType { name }","");return{introspectionQueryName:e,introspectionQuery:i,introspectionQuerySansSubscriptions:s}},[n,r,o])}function Ra(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch(e){n=!1}return{headers:t,isValidJSON:n}}e.D=Fa,v(Ma,"useIntrospectionQuery"),Ia(Ma,"useIntrospectionQuery"),v(Ra,"parseHeaderString"),Ia(Ra,"parseHeaderString");var Pa=Object.defineProperty,ja=v((e,t)=>Pa(e,"name",{value:t,configurable:!0}),"__name$a");const Va={name:"Schema",title:"Documentation Explorer"},Ua=Pi("ExplorerContext");function Ba(e){var t,n;const{isFetching:r}=Fa({nonNull:!0,caller:Ba}),o=zi(),[s,a]=(0,i.useState)(null!=(n=null!=(t=e.isVisible)?t:"true"===(null==o?void 0:o.get(za)))&&n),[l,u]=(0,i.useState)([Va]),{onToggleVisibility:c}=e,f=(0,i.useRef)(!0);(0,i.useEffect)(()=>{f.current?f.current=!1:void 0!==e.isVisible&&a(e.isVisible)},[e.isVisible]);const d=(0,i.useCallback)(()=>{null==c||c(!1),null==o||o.set(za,"false"),a(!1)},[c,o]),p=(0,i.useCallback)(e=>{u(t=>t[t.length-1].def===e.def?t:[...t,e])},[]),h=(0,i.useCallback)(()=>{u(e=>e.length>1?e.slice(0,-1):e)},[]),v=(0,i.useCallback)(()=>{u(e=>1===e.length?e:[Va])},[]),y=(0,i.useCallback)(()=>{null==c||c(!0),null==o||o.set(za,"true"),a(!0)},[c,o]),b=(0,i.useCallback)(e=>{u(t=>{const n=t[t.length-1];return[...t.slice(0,-1),g(m({},n),{search:e})]})},[]);(0,i.useEffect)(()=>{r&&v()},[r,v]);const E=(0,i.useMemo)(()=>({explorerNavStack:l,hide:d,isVisible:s,push:p,pop:h,reset:v,show:y,showSearch:b}),[d,s,l,p,h,v,y,b]);return ti(Ua.Provider,{value:E,children:e.children})}e.v=Ua,v(Ba,"ExplorerContextProvider"),ja(Ba,"ExplorerContextProvider");const qa=ji(Ua);e.x=qa;const za="docExplorerOpen";var $a=Object.defineProperty,Ha=v((e,t)=>$a(e,"name",{value:t,configurable:!0}),"__name$9");function Ga(e,t){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,t(...i)},e)}}v(Ga,"debounce"),Ha(Ga,"debounce");var Wa=Object.defineProperty,Qa=v((e,t)=>Wa(e,"name",{value:t,configurable:!0}),"__name$8");function Ka(e,t){(0,i.useEffect)(()=>{e&&"string"==typeof t&&t!==e.getValue()&&e.setValue(t)},[e,t])}function Ja(e,t,n){(0,i.useEffect)(()=>{e&&e.setOption(t,n)},[e,t,n])}function Ya(e,t,n,r,o){const{updateActiveTabValues:s}=Ql({nonNull:!0,caller:o}),a=zi();(0,i.useEffect)(()=>{if(!e)return;const i=Ga(500,e=>{a&&null!==n&&a.set(n,e)}),o=Ga(100,e=>{s({[r]:e})}),l=Qa((e,n)=>{if(!n)return;const r=e.getValue();i(r),o(r),null==t||t(r)},"handleChange");return e.on("change",l),()=>e.off("change",l)},[t,e,a,n,r,s])}function Za(e,t){const{schema:n}=Fa({nonNull:!0,caller:t}),r=qa();(0,i.useEffect)(()=>{if(!e)return;const t=Qa((e,t)=>{qr(0,t,n,r)},"handleCompletion");return e.on("hasCompletion",t),()=>e.off("hasCompletion",t)},[e,r,n])}function Xa(e,t,n){(0,i.useEffect)(()=>{if(e){for(const n of t)e.removeKeyMap(n);if(n){const r={};for(const e of t)r[e]=()=>n();e.addKeyMap(r)}}},[e,t,n])}function el(){let{caller:e,onCopyQuery:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{queryEditor:n}=Ql({nonNull:!0,caller:e||el});return(0,i.useCallback)(()=>{if(!n)return;const e=n.getValue();Aa(e),null==t||t(e)},[n,t])}function tl(){let{caller:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{queryEditor:n}=Ql({nonNull:!0,caller:e||tl}),{schema:r}=Fa({nonNull:!0,caller:tl});return(0,i.useCallback)(()=>{const e=null==n?void 0:n.documentAST,i=null==n?void 0:n.getValue();e&&i&&n.setValue((0,t.print)(Ni(e,r)))},[n,r])}function nl(){let{caller:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{queryEditor:n,headerEditor:r,variableEditor:o}=Ql({nonNull:!0,caller:e||nl});return(0,i.useCallback)(()=>{if(o){const e=o.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&o.setValue(t)}catch{}}if(r){const e=r.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&r.setValue(t)}catch{}}if(n){const e=n.getValue(),r=(0,t.print)((0,t.parse)(e));r!==e&&n.setValue(r)}},[n,o,r])}function rl(){let{getDefaultFieldNames:e,caller:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{schema:n}=Fa({nonNull:!0,caller:t||rl}),{queryEditor:r}=Ql({nonNull:!0,caller:t||rl});return(0,i.useCallback)(()=>{if(!r)return;const t=r.getValue(),{insertions:i,result:o}=Ei(n,t,e);return i&&i.length>0&&r.operation(()=>{const e=r.getCursor(),t=r.indexFromPos(e);r.setValue(o||"");let n=0;const s=i.map(e=>{let{index:t,string:i}=e;return r.markText(r.posFromIndex(t+n),r.posFromIndex(t+(n+=i.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(()=>s.forEach(e=>e.clear()),7e3);let a=t;i.forEach(e=>{let{index:n,string:r}=e;n<t&&(a+=r.length)}),r.setCursor(r.posFromIndex(a))}),o},[e,r,n])}v(Ka,"useSynchronizeValue"),Qa(Ka,"useSynchronizeValue"),v(Ja,"useSynchronizeOption"),Qa(Ja,"useSynchronizeOption"),v(Ya,"useChangeHandler"),Qa(Ya,"useChangeHandler"),v(Za,"useCompletion"),Qa(Za,"useCompletion"),v(Xa,"useKeyMap"),Qa(Xa,"useKeyMap"),v(el,"useCopyQuery"),Qa(el,"useCopyQuery"),v(tl,"useMergeQuery"),Qa(tl,"useMergeQuery"),v(nl,"usePrettifyEditors"),Qa(nl,"usePrettifyEditors"),v(rl,"useAutoCompleteLeafs"),Qa(rl,"useAutoCompleteLeafs");var il=Object.defineProperty,ol=v((e,t)=>il(e,"name",{value:t,configurable:!0}),"__name$7");function sl(){let{editorTheme:e=Mr,keyMap:t=Rr,onEdit:r,readOnly:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{initialHeaders:s,headerEditor:a,setHeaderEditor:l,shouldPersistHeaders:u}=Ql({nonNull:!0,caller:sl}),c=ka(),f=tl({caller:sl}),d=nl({caller:sl}),p=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let t=!0;return Vr([Promise.resolve().then(n.t.bind(null,147,7)).then((function(e){return e.j}))]).then(n=>{if(!t)return;const r=p.current;if(!r)return;const i=n(r,{value:s,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!o&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:jr});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!1,container:r})},"Alt-Space"(){i.showHint({completeSingle:!1,container:r})},"Shift-Space"(){i.showHint({completeSingle:!1,container:r})}}),i.on("keyup",(e,t)=>{const n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")}),l(i)}),()=>{t=!1}},[e,s,o,l]),Ja(a,"keyMap",t),Ya(a,r,u?al:null,"headers",sl),Za(a,sl),Xa(a,["Cmd-Enter","Ctrl-Enter"],null==c?void 0:c.run),Xa(a,["Shift-Ctrl-P"],d),Xa(a,["Shift-Ctrl-M"],f),p}v(sl,"useHeaderEditor"),ol(sl,"useHeaderEditor");const al="headers";var ll=Object.defineProperty,ul=v((e,t)=>ll(e,"name",{value:t,configurable:!0}),"__name$6");const cl=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]),fl=new RegExp("["+cl.join("")+"]","g");function dl(e){return e.replace(fl," ")}v(dl,"normalizeWhitespace"),ul(dl,"normalizeWhitespace");var pl=Object.defineProperty,hl=v((e,t)=>pl(e,"name",{value:t,configurable:!0}),"__name$5");function ml(){let{editorTheme:e=Mr,keyMap:t=Rr,onClickReference:r,onCopyQuery:o,onEdit:s,readOnly:a=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{schema:l}=Fa({nonNull:!0,caller:ml}),{externalFragments:u,initialQuery:c,queryEditor:f,setOperationName:d,setQueryEditor:p,validationRules:h,variableEditor:y,updateActiveTabValues:b}=Ql({nonNull:!0,caller:ml}),E=ka(),T=zi(),_=qa(),k=el({caller:ml,onCopyQuery:o}),x=tl({caller:ml}),C=nl({caller:ml}),w=(0,i.useRef)(null),S=(0,i.useRef)(),N=(0,i.useRef)(()=>{});(0,i.useEffect)(()=>{N.current=e=>{_&&(_.show(),e&&"Type"===e.kind?_.push({name:e.type.name,def:e.type}):"Field"===e.kind||"Argument"===e.kind&&e.field?_.push({name:e.field.name,def:e.field}):"EnumValue"===e.kind&&e.type&&_.push({name:e.type.name,def:e.type}),null==r||r(e))}},[_,r]),(0,i.useEffect)(()=>{let t=!0;return Vr([Promise.resolve().then(n.t.bind(null,148,7)).then((function(e){return e.c})),Promise.resolve().then(n.t.bind(null,37,7)).then((function(e){return e.s})),Promise.resolve().then(n.t.bind(null,149,7)),Promise.resolve().then(n.t.bind(null,150,7)),Promise.resolve().then(n.t.bind(null,151,7)),Promise.resolve().then(n.t.bind(null,152,7)),Promise.resolve().then(n.t.bind(null,153,7))]).then(n=>{if(!t)return;S.current=n;const r=w.current;if(!r)return;const i=n(r,{value:c,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!a&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:r,externalFragments:void 0},info:{schema:void 0,renderDescription:e=>Dr.render(e),onClick:e=>{N.current(e)}},jump:{schema:void 0,onClick:e=>{N.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:g(m({},jr),{"Cmd-S"(){},"Ctrl-S"(){}})});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!0,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!0,container:r})},"Alt-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Space"(){i.showHint({completeSingle:!0,container:r})},"Shift-Alt-Space"(){i.showHint({completeSingle:!0,container:r})}}),i.on("keyup",(e,t)=>{bl.test(t.key)&&e.execCommand("autocomplete")}),i.on("beforeChange",(e,t)=>{var n;if("paste"===t.origin){const e=t.text.map(dl);null==(n=t.update)||n.call(t,t.from,t.to,e)}}),i.documentAST=null,i.operationName=null,i.operations=null,i.variableToType=null,p(i)}),()=>{t=!1}},[e,c,a,p]),Ja(f,"keyMap",t),(0,i.useEffect)(()=>{if(!f)return;function e(e){var t,n,r,i,o;const s=$s(l,e.getValue()),a=Ai(null!=(t=e.operations)?t:void 0,null!=(n=e.operationName)?n:void 0,null==s?void 0:s.operations);return e.documentAST=null!=(r=null==s?void 0:s.documentAST)?r:null,e.operationName=null!=a?a:null,e.operations=null!=(i=null==s?void 0:s.operations)?i:null,y&&(y.state.lint.linterOptions.variableToType=null==s?void 0:s.variableToType,y.options.lint.variableToType=null==s?void 0:s.variableToType,y.options.hintOptions.variableToType=null==s?void 0:s.variableToType,null==(o=S.current)||o.signal(y,"change",y)),s?g(m({},s),{operationName:a}):null}v(e,"getAndUpdateOperationFacts"),hl(e,"getAndUpdateOperationFacts");const t=Ga(100,t=>{var n;const r=t.getValue();null==T||T.set(El,r);const i=t.operationName,o=e(t);void 0!==(null==o?void 0:o.operationName)&&(null==T||T.set(Tl,o.operationName)),null==s||s(r,null==o?void 0:o.documentAST),(null==o?void 0:o.operationName)&&i!==o.operationName&&d(o.operationName),b({query:r,operationName:null!=(n=null==o?void 0:o.operationName)?n:null})});return e(f),f.on("change",t),()=>f.off("change",t)},[s,f,l,d,T,y,b]),gl(f,null!=l?l:null,S),vl(f,null!=h?h:null,S),yl(f,u,S),Za(f,ml);const A=null==E?void 0:E.run,O=(0,i.useCallback)(()=>{var e;if(!(A&&f&&f.operations&&f.hasFocus()))return void(null==A||A());const t=f.indexFromPos(f.getCursor());let n;for(const r of f.operations)r.loc&&r.loc.start<=t&&r.loc.end>=t&&(n=null==(e=r.name)?void 0:e.value);n&&n!==f.operationName&&d(n),A()},[f,A,d]);return Xa(f,["Cmd-Enter","Ctrl-Enter"],O),Xa(f,["Shift-Ctrl-C"],k),Xa(f,["Shift-Ctrl-P","Shift-Ctrl-F"],C),Xa(f,["Shift-Ctrl-M"],x),w}function gl(e,t,n){(0,i.useEffect)(()=>{if(!e)return;const r=e.options.lint.schema!==t;e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t,r&&n.current&&n.current.signal(e,"change",e)},[e,t,n])}function vl(e,t,n){(0,i.useEffect)(()=>{if(!e)return;const r=e.options.lint.validationRules!==t;e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t,r&&n.current&&n.current.signal(e,"change",e)},[e,t,n])}function yl(e,t,n){const r=(0,i.useMemo)(()=>[...t.values()],[t]);(0,i.useEffect)(()=>{if(!e)return;const t=e.options.lint.externalFragments!==r;e.state.lint.linterOptions.externalFragments=r,e.options.lint.externalFragments=r,e.options.hintOptions.externalFragments=r,t&&n.current&&n.current.signal(e,"change",e)},[e,r,n])}v(ml,"useQueryEditor"),hl(ml,"useQueryEditor"),v(gl,"useSynchronizeSchema"),hl(gl,"useSynchronizeSchema"),v(vl,"useSynchronizeValidationRules"),hl(vl,"useSynchronizeValidationRules"),v(yl,"useSynchronizeExternalFragments"),hl(yl,"useSynchronizeExternalFragments");const bl=/^[a-zA-Z0-9_@(]$/,El="query",Tl="operationName";var _l=Object.defineProperty,kl=v((e,t)=>_l(e,"name",{value:t,configurable:!0}),"__name$4");function xl(e){let{headers:t,query:n,variables:r,storage:i}=e;const o=null==i?void 0:i.get(Vl);try{if(!o)throw new Error("Storage for tabs is empty");const e=JSON.parse(o);if(Cl(e)){const i=Rl({query:n,variables:r,headers:t});let o=-1;for(let t=0;t<e.tabs.length;t++){const n=e.tabs[t];n.hash=Rl({query:n.query,variables:n.variables,headers:n.headers}),n.hash===i&&(o=t)}if(o>=0)e.activeTabIndex=o;else{const o=n?Pl(n):null;e.tabs.push({id:Ml(),hash:i,title:o||jl,query:n,variables:r,headers:t,operationName:o,response:null})}return e}throw new Error("Storage for tabs is invalid")}catch(e){return null==i||i.set(Vl,""),{activeTabIndex:0,tabs:[Ll()]}}}function Cl(e){return e&&"object"==typeof e&&!Array.isArray(e)&&Sl(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(wl)}function wl(e){return e&&"object"==typeof e&&!Array.isArray(e)&&Nl(e,"id")&&Nl(e,"title")&&Al(e,"query")&&Al(e,"variables")&&Al(e,"headers")&&Al(e,"operationName")&&Al(e,"response")}function Sl(e,t){return t in e&&"number"==typeof e[t]}function Nl(e,t){return t in e&&"string"==typeof e[t]}function Al(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function Ol(e){let{queryEditor:t,variableEditor:n,headerEditor:r,responseEditor:o}=e;return(0,i.useCallback)(e=>{var i,s,a,l,u;const c=null!=(i=null==t?void 0:t.getValue())?i:null,f=null!=(s=null==n?void 0:n.getValue())?s:null,d=null!=(a=null==r?void 0:r.getValue())?a:null,p=null!=(l=null==t?void 0:t.operationName)?l:null;return Fl(e,{query:c,variables:f,headers:d,response:null!=(u=null==o?void 0:o.getValue())?u:null,operationName:p})},[t,n,r,o])}function Il(e){let{storage:t,shouldPersistHeaders:n}=e;const r=(0,i.useMemo)(()=>Ga(500,e=>{null==t||t.set(Vl,e)}),[t]);return(0,i.useCallback)(e=>{r(JSON.stringify(e,(e,t)=>"hash"===e||"response"===e||!n&&"headers"===e?null:t))},[n,r])}function Dl(e){let{queryEditor:t,variableEditor:n,headerEditor:r,responseEditor:o}=e;return(0,i.useCallback)(e=>{let{query:i,variables:s,headers:a,response:l}=e;null==t||t.setValue(null!=i?i:""),null==n||n.setValue(null!=s?s:""),null==r||r.setValue(null!=a?a:""),null==o||o.setValue(null!=l?l:"")},[r,t,o,n])}function Ll(){return{id:Ml(),hash:Rl({query:null,variables:null,headers:null}),title:jl,query:null,variables:null,headers:null,operationName:null,response:null}}function Fl(e,t){return g(m({},e),{tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i=m(m({},n),t);return g(m({},i),{hash:Rl(i),title:i.operationName||(i.query?Pl(i.query):void 0)||jl})})})}function Ml(){const e=kl(()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1),"s4");return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function Rl(e){var t,n,r;return[null!=(t=e.query)?t:"",null!=(n=e.variables)?n:"",null!=(r=e.headers)?r:""].join("|")}function Pl(e){var t;const n=/^(?!.*#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/.exec(e);return null!=(t=null==n?void 0:n[2])?t:null}v(xl,"getDefaultTabState"),kl(xl,"getDefaultTabState"),v(Cl,"isTabsState"),kl(Cl,"isTabsState"),v(wl,"isTabState"),kl(wl,"isTabState"),v(Sl,"hasNumberKey"),kl(Sl,"hasNumberKey"),v(Nl,"hasStringKey"),kl(Nl,"hasStringKey"),v(Al,"hasStringOrNullKey"),kl(Al,"hasStringOrNullKey"),v(Ol,"useSynchronizeActiveTabValues"),kl(Ol,"useSynchronizeActiveTabValues"),v(Il,"useStoreTabs"),kl(Il,"useStoreTabs"),v(Dl,"useSetEditorValues"),kl(Dl,"useSetEditorValues"),v(Ll,"emptyTab"),kl(Ll,"emptyTab"),v(Fl,"setPropertiesInActiveTab"),kl(Fl,"setPropertiesInActiveTab"),v(Ml,"guid"),kl(Ml,"guid"),v(Rl,"hashFromTabContents"),kl(Rl,"hashFromTabContents"),v(Pl,"fuzzyExtractOperationName"),kl(Pl,"fuzzyExtractOperationName");const jl="<untitled>",Vl="tabState";var Ul=Object.defineProperty,Bl=v((e,t)=>Ul(e,"name",{value:t,configurable:!0}),"__name$3");function ql(){let{editorTheme:e=Mr,keyMap:t=Rr,onEdit:r,readOnly:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{initialVariables:s,variableEditor:a,setVariableEditor:l}=Ql({nonNull:!0,caller:ql}),u=ka(),c=tl({caller:ql}),f=nl({caller:ql}),d=(0,i.useRef)(null),p=(0,i.useRef)();return(0,i.useEffect)(()=>{let t=!0;return Vr([Promise.resolve().then(n.t.bind(null,154,7)),Promise.resolve().then(n.t.bind(null,155,7)),Promise.resolve().then(n.t.bind(null,156,7))]).then(n=>{if(!t)return;p.current=n;const r=d.current;if(!r)return;const i=n(r,{value:s,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!o&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:r,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:jr});i.addKeyMap({"Cmd-Space"(){i.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){i.showHint({completeSingle:!1,container:r})},"Alt-Space"(){i.showHint({completeSingle:!1,container:r})},"Shift-Space"(){i.showHint({completeSingle:!1,container:r})}}),i.on("keyup",(e,t)=>{const n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")}),l(i)}),()=>{t=!1}},[e,s,o,l]),Ja(a,"keyMap",t),Ya(a,r,zl,"variables",ql),Za(a,ql),Xa(a,["Cmd-Enter","Ctrl-Enter"],null==u?void 0:u.run),Xa(a,["Shift-Ctrl-P"],f),Xa(a,["Shift-Ctrl-M"],c),d}v(ql,"useVariableEditor"),Bl(ql,"useVariableEditor");const zl="variables";var $l=Object.defineProperty,Hl=v((e,t)=>$l(e,"name",{value:t,configurable:!0}),"__name$2");const Gl=Pi("EditorContext");function Wl(e){var n,r,o,s,a;const l=zi(),[u,c]=(0,i.useState)(null),[f,d]=(0,i.useState)(null),[p,h]=(0,i.useState)(null),[v,y]=(0,i.useState)(null);Ka(u,e.headers),Ka(f,e.query),Ka(p,e.response),Ka(v,e.variables);const[b]=(0,i.useState)(()=>{var t,n,r,i,o,s;return{headers:null!=(n=null!=(t=e.headers)?t:null==l?void 0:l.get(al))?n:null,query:null!=(i=null!=(r=e.query)?r:null==l?void 0:l.get(El))?i:null,variables:null!=(s=null!=(o=e.variables)?o:null==l?void 0:l.get(zl))?s:null}}),[E,T]=(0,i.useState)(()=>xl(g(m({},b),{storage:l}))),_=Il({storage:l,shouldPersistHeaders:e.shouldPersistHeaders}),k=Ol({queryEditor:f,variableEditor:v,headerEditor:u,responseEditor:p}),x=Dl({queryEditor:f,variableEditor:v,headerEditor:u,responseEditor:p}),{onTabChange:C}=e,w=(0,i.useCallback)(()=>{T(e=>{const t=k(e),n={tabs:[...t.tabs,Ll()],activeTabIndex:t.tabs.length};return _(n),x(n.tabs[n.activeTabIndex]),null==C||C(n),n})},[C,x,_,k]),S=(0,i.useCallback)(e=>{T(t=>{const n=g(m({},k(t)),{activeTabIndex:e});return _(n),x(n.tabs[n.activeTabIndex]),null==C||C(n),n})},[C,x,_,k]),N=(0,i.useCallback)(e=>{T(t=>{const n={tabs:t.tabs.filter((t,n)=>e!==n),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return _(n),x(n.tabs[n.activeTabIndex]),null==C||C(n),n})},[C,x,_]),A=(0,i.useCallback)(e=>{T(t=>{const n=Fl(t,e);return _(n),null==C||C(n),n})},[C,_]),{onEditOperationName:O}=e,I=(0,i.useCallback)(e=>{f&&(f.operationName=e,A({operationName:e}),null==O||O(e))},[O,f,A]),D=E.activeTabIndex>0?"":null!=(n=e.defaultQuery)?n:Kl,L=(0,i.useRef)({initialHeaders:null!=(r=b.headers)?r:"",initialQuery:null!=(o=b.query)?o:D,initialResponse:null!=(s=e.response)?s:"",initialVariables:null!=(a=b.variables)?a:""}),F=(0,i.useMemo)(()=>{const n=new Map;if(Array.isArray(e.externalFragments))for(const t of e.externalFragments)n.set(t.name.value,t);else if("string"==typeof e.externalFragments)(0,t.visit)((0,t.parse)(e.externalFragments,{}),{FragmentDefinition(e){n.set(e.name.value,e)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return n},[e.externalFragments]),M=(0,i.useMemo)(()=>e.validationRules||[],[e.validationRules]),R=(0,i.useMemo)(()=>g(m(g(m({},E),{addTab:w,changeTab:S,closeTab:N,updateActiveTabValues:A,headerEditor:u,queryEditor:f,responseEditor:p,variableEditor:v,setHeaderEditor:c,setQueryEditor:d,setResponseEditor:h,setVariableEditor:y,setOperationName:I}),L.current),{externalFragments:F,validationRules:M,shouldPersistHeaders:e.shouldPersistHeaders||!1}),[E,w,S,N,A,u,f,p,v,I,F,M,e.shouldPersistHeaders]);return ti(Gl.Provider,{value:R,children:e.children})}e.E=Gl,v(Wl,"EditorContextProvider"),Hl(Wl,"EditorContextProvider");const Ql=ji(Gl);e.f=Ql;const Kl='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n#\n# Merge Query: Shift-Ctrl-M (or press the merge button above)\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';var Jl=Object.defineProperty,Yl=v((e,t)=>Jl(e,"name",{value:t,configurable:!0}),"__name$1");function Zl(){let{ResponseTooltip:e,editorTheme:t=Mr,keyMap:r=Rr}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{fetchError:s,validationErrors:a}=Fa({nonNull:!0,caller:Zl}),{initialResponse:l,responseEditor:u,setResponseEditor:c}=Ql({nonNull:!0,caller:Zl}),f=(0,i.useRef)(null),d=(0,i.useRef)(e);return(0,i.useEffect)(()=>{d.current=e},[e]),(0,i.useEffect)(()=>{let e=!0;return Vr([Promise.resolve().then(n.t.bind(null,34,7)).then((function(e){return e.f})),Promise.resolve().then(n.t.bind(null,33,7)).then((function(e){return e.b})),Promise.resolve().then(n.t.bind(null,10,7)).then((function(e){return e.d})),Promise.resolve().then(n.t.bind(null,37,7)).then((function(e){return e.s})),Promise.resolve().then(n.t.bind(null,9,7)).then((function(e){return e.s})),Promise.resolve().then(n.t.bind(null,35,7)).then((function(e){return e.j})),Promise.resolve().then(n.t.bind(null,36,7)).then((function(e){return e.s})),Promise.resolve().then(n.t.bind(null,157,7)),Promise.resolve().then(n.t.bind(null,40,7))],{useCommonAddons:!1}).then(n=>{if(!e)return;const r=document.createElement("div");n.registerHelper("info","graphql-results",(e,t,n,i)=>{const s=[],a=d.current;return a&&s.push(ti(a,{pos:i})),oi.shouldRender(e)&&s.push(ti(oi,{token:e},"image-preview")),s.length?(o.default.render(s,r),r):(o.default.unmountComponentAtNode(r),null)});const i=f.current;if(!i)return;const s=n(i,{value:l,lineWrapping:!0,readOnly:!0,theme:t,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:jr});c(s)}),()=>{e=!1}},[t,l,c]),Ja(u,"keyMap",r),(0,i.useEffect)(()=>{s&&(null==u||u.setValue(s)),a.length>0&&(null==u||u.setValue(yi(a)))},[u,s,a]),f}v(Zl,"useResponseEditor"),Yl(Zl,"useResponseEditor");var Xl=Object.defineProperty,eu=v((e,t)=>Xl(e,"name",{value:t,configurable:!0}),"__name");function tu(e){let{defaultSizeRelation:t=nu,direction:n,initiallyHidden:r,onHiddenElementChange:o,sizeThresholdFirst:s=100,sizeThresholdSecond:a=100,storageKey:l}=e;const u=zi(),c=(0,i.useCallback)(Ga(500,e=>{u&&l&&u.set(l,e)}),[u,l]),[f,d]=(0,i.useState)(()=>{const e=u&&l?u.get(l):null;return e===ru||"first"===r?"first":e===iu||"second"===r?"second":null}),p=(0,i.useCallback)(e=>{d(e),null==o||o(e)},[o]),h=(0,i.useRef)(null),m=(0,i.useRef)(null),g=(0,i.useRef)(null),y=(0,i.useRef)(""+t);(0,i.useLayoutEffect)(()=>{const e=u&&l&&u.get(l)||y.current,t="horizontal"===n?"row":"column";h.current&&(h.current.style.display="flex",h.current.style.flexDirection=t,h.current.style.flex=e===ru||e===iu?y.current:e),g.current&&(g.current.style.display="flex",g.current.style.flexDirection=t,g.current.style.flex="1"),m.current&&(m.current.style.display="flex",m.current.style.flexDirection=t)},[n,u,l]);const b=(0,i.useCallback)(e=>{const t="first"===e?h.current:g.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",h.current)){const e=parseFloat(h.current.style.flex);(!Number.isFinite(e)||e<1)&&(h.current.style.flex="1"),h.current.style.flex}},[]),E=(0,i.useCallback)(e=>{const t="first"===e?h.current:g.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",h.current&&u&&l)){const e=null==u?void 0:u.get(l);e&&e!==ru&&e!==iu&&(h.current.style.flex=e)}},[u,l]);return(0,i.useLayoutEffect)(()=>{"first"===f?b("first"):E("first"),"second"===f?b("second"):E("second")},[f,b,E]),(0,i.useEffect)(()=>{if(!m.current||!h.current||!g.current)return;const e=m.current,t=h.current,r=t.parentElement,i="horizontal"===n?"clientX":"clientY",o="horizontal"===n?"left":"top",l="horizontal"===n?"right":"bottom",u="horizontal"===n?"clientWidth":"clientHeight";function f(n){n.preventDefault();const f=n[i]-e.getBoundingClientRect()[o];function d(n){if(0===n.buttons)return h();const d=n[i]-r.getBoundingClientRect()[o]-f,m=r.getBoundingClientRect()[l]-n[i]+f-e[u];if(d<s)p("first"),c(ru);else if(m<a)p("second"),c(iu);else{p(null);const e=""+d/m;t.style.flex=e,c(e)}}function h(){document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",h)}v(d,"handleMouseMove"),eu(d,"handleMouseMove"),v(h,"handleMouseUp"),eu(h,"handleMouseUp"),document.addEventListener("mousemove",d),document.addEventListener("mouseup",h)}function d(){h.current&&(h.current.style.flex=y.current),c(y.current),p(null)}return v(f,"handleMouseDown"),eu(f,"handleMouseDown"),e.addEventListener("mousedown",f),v(d,"reset"),eu(d,"reset"),e.addEventListener("dblclick",d),()=>{e.removeEventListener("mousedown",f),e.removeEventListener("dblclick",d)}},[n,p,s,a,c]),(0,i.useMemo)(()=>({dragBarRef:m,hiddenElement:f,firstRef:h,setHiddenElement:p,secondRef:g}),[f,p])}v(tu,"useDragResize"),eu(tu,"useDragResize");const nu=1,ru="hide-first",iu="hide-second"},o=[t,n(3),n(0),n(6)],void 0===(s="function"==typeof(i=a)?i.apply(t,o):i)||(e.exports=s)}).call(this,n(13))},function(e,t){e.exports=window.ReactDOM},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(4),n(3),n(0)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function e(i){const{push:o}=(0,t.useExplorerContext)({nonNull:!0,caller:e});if(!i.type)return null;const s=i.type;return(0,n.isNonNullType)(s)?r.default.createElement(r.default.Fragment,null,r.default.createElement(e,{type:s.ofType}),"!"):(0,n.isListType)(s)?r.default.createElement(r.default.Fragment,null,"[",r.default.createElement(e,{type:s.ofType}),"]"):r.default.createElement("a",{className:"type-name",onClick:e=>{e.preventDefault(),o({name:s.name,def:s})},href:"#"},s.name)},r=(i=r)&&i.__esModule?i:{default:i}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(5),n(3)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.o=o;var r=Object.defineProperty,i=(e,t)=>r(e,"name",{value:t,configurable:!0});function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:e=>e.eatWhile(t.i),lexRules:t.L,parseRules:t.P,editorConfig:{}};return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return u(e.parseRules,t,n.Kind.DOCUMENT),t},token:(t,n)=>s(t,n,e)}}function s(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:i,parseRules:o,eatWhitespace:s,editorConfig:d}=n;if(t.rule&&0===t.rule.length?c(t):t.needsAdvance&&(t.needsAdvance=!1,f(t,!0)),e.sol()){const n=(null==d?void 0:d.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(s(e))return"ws";const m=h(i,e);if(!m)return e.match(/\S+/)||e.match(/\s/),u(l,t,"Invalid"),"invalidchar";if("Comment"===m.kind)return u(l,t,"Comment"),"comment";const g=a({},t);if("Punctuation"===m.kind)if(/^[{([]/.test(m.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(m.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]<t.indentLevel&&(t.indentLevel=e[e.length-1])}for(;t.rule;){let n="function"==typeof t.rule?0===t.step?t.rule(m,e):null:t.rule[t.step];if(t.needsSeparator&&(n=null==n?void 0:n.separator),n){if(n.ofRule&&(n=n.ofRule),"string"==typeof n){u(o,t,n);continue}if(null===(r=n.match)||void 0===r?void 0:r.call(n,m))return n.update&&n.update(t,m),"Punctuation"===m.kind?f(t,!0):t.needsAdvance=!0,n.style}p(t)}return a(t,g),u(l,t,"Invalid"),"invalidchar"}function a(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}i(o,"onlineParser"),i(s,"getToken"),i(a,"assign");const l={Invalid:[],Comment:[]};function u(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeparator=!1}function c(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeparator=e.prevState.needsSeparator,e.prevState=e.prevState.prevState)}function f(e,t){var n;if(d(e)&&e.rule){const n=e.rule[e.step];if(n.separator){const t=n.separator;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&t.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)c(e),e.rule&&(d(e)?(null===(n=e.rule)||void 0===n?void 0:n[e.step].separator)&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function d(e){const t=Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function p(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)c(e);e.rule&&f(e,!1)}function h(e,t){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}i(u,"pushRule"),i(c,"popRule"),i(f,"advanceRule"),i(d,"isList"),i(p,"unsuccessful"),i(h,"lex")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(2)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.s=e.a=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}r(i,"_mergeNamespaces");var o={exports:{}};e.a=o,function(e){var t,n,i=e.Pos;function o(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function s(e,t){for(var n=o(e),r=n,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function a(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function l(e,t,n){t=s(t,"g");for(var r=n.line,o=n.ch,a=e.lastLine();r<=a;r++,o=0){t.lastIndex=o;var l=e.getLine(r),u=t.exec(l);if(u)return{from:i(r,u.index),to:i(r,u.index+u[0].length),match:u}}}function u(e,t,n){if(!a(t))return l(e,t,n);t=s(t,"gm");for(var r,o=1,u=n.line,c=e.lastLine();u<=c;){for(var f=0;f<o&&!(u>c);f++){var d=e.getLine(u++);r=null==r?d:r+"\n"+d}o*=2,t.lastIndex=n.ch;var p=t.exec(r);if(p){var h=r.slice(0,p.index).split("\n"),m=p[0].split("\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:i(g,v),to:i(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:p}}}}function c(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var s=o.index+o[0].length;if(s>e.length-n)break;(!r||s>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function f(e,t,n){t=s(t,"g");for(var r=n.line,o=n.ch,a=e.firstLine();r>=a;r--,o=-1){var l=e.getLine(r),u=c(l,t,o<0?0:l.length-o);if(u)return{from:i(r,u.index),to:i(r,u.index+u[0].length),match:u}}}function d(e,t,n){if(!a(t))return f(e,t,n);t=s(t,"gm");for(var r,o=1,l=e.getLine(n.line).length-n.ch,u=n.line,d=e.firstLine();u>=d;){for(var p=0;p<o&&u>=d;p++){var h=e.getLine(u--);r=null==r?h:h+"\n"+r}o*=2;var m=c(r,t,l);if(m){var g=r.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=u+g.length,b=g[g.length-1].length;return{from:i(y,b),to:i(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function p(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var s=i+o>>1,a=r(e.slice(0,s)).length;if(a==n)return s;a>n?o=s:i=s+1}}function h(e,r,o,s){if(!r.length)return null;var a=s?t:n,l=a(r).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,f=e.lastLine()+1-l.length;u<=f;u++,c=0){var d=e.getLine(u).slice(c),h=a(d);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=p(d,h,m,a)+c,{from:i(u,p(d,h,m,a)+c),to:i(u,p(d,h,m+l[0].length,a)+c)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v<l.length-1;v++)if(a(e.getLine(u+v))!=l[v])continue e;var y=e.getLine(u+l.length-1),b=a(y),E=l[l.length-1];if(b.slice(0,E.length)==E)return{from:i(u,p(d,h,g,a)+c),to:i(u+l.length-1,p(y,b,E.length,a))}}}}function m(e,r,o,s){if(!r.length)return null;var a=s?t:n,l=a(r).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,f=e.firstLine()-1+l.length;u>=f;u--,c=-1){var d=e.getLine(u);c>-1&&(d=d.slice(0,c));var h=a(d);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:i(u,p(d,h,m,a)),to:i(u,p(d,h,m+l[0].length,a))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(o=u-l.length+1;v<l.length-1;v++)if(a(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(u+1-l.length),b=a(y);if(b.slice(b.length-l[0].length)==l[0])return{from:i(u+1-l.length,p(y,b,y.length-l[0].length,a)),to:i(u,p(d,h,g.length,a))}}}}function g(e,t,n,r){var o;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):i(0,0),this.pos={from:n,to:n},"object"==typeof r?o=r.caseFold:(o=r,r=null),"string"==typeof t?(null==o&&(o=!1),this.matches=function(n,r){return(n?m:h)(e,t,r,o)}):(t=s(t,"gm"),r&&!1===r.multiline?this.matches=function(n,r){return(n?f:l)(e,t,r)}:this.matches=function(n,r){return(n?d:u)(e,t,r)})}r(o,"regexpFlags"),r(s,"ensureFlags"),r(a,"maybeMultiline"),r(l,"searchRegexpForward"),r(u,"searchRegexpForwardMultiline"),r(c,"lastMatchIn"),r(f,"searchRegexpBackward"),r(d,"searchRegexpBackwardMultiline"),String.prototype.normalize?(t=r((function(e){return e.normalize("NFD").toLowerCase()}),"doFold"),n=r((function(e){return e.normalize("NFD")}),"noFold")):(t=r((function(e){return e.toLowerCase()}),"doFold"),n=r((function(e){return e}),"noFold")),r(p,"adjustPos"),r(h,"searchStringForward"),r(m,"searchStringBackward"),r(g,"SearchCursor"),g.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=i(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var r=this.matches(t,n);if(this.afterEmptyMatch=r&&0==e.cmpPos(r.from,r.to),r)return this.pos=r,this.atOccurrence=!0,this.pos.match||!0;var o=i(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var r=e.splitLines(t);this.doc.replaceRange(r,this.pos.from,this.pos.to,n),this.pos.to=i(this.pos.from.line+r.length-1,r[r.length-1].length+(1==r.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new g(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new g(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(t.a.exports);var s=o.exports,a=Object.freeze(i({__proto__:null,[Symbol.toStringTag]:"Module",default:s},[o.exports]));e.s=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(2)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.d=e.a=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}r(i,"_mergeNamespaces");var o={exports:{}};e.a=o,function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}r(t,"dialogDiv"),r(n,"closeNotification"),e.defineExtension("openDialog",(function(i,o,s){s||(s={}),n(this,null);var a=t(this,i,s.bottom),l=!1,u=this;function c(t){if("string"==typeof t)d.value=t;else{if(l)return;l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus(),s.onClose&&s.onClose(a)}}r(c,"close");var f,d=a.getElementsByTagName("input")[0];return d?(d.focus(),s.value&&(d.value=s.value,!1!==s.selectValueOnOpen&&d.select()),s.onInput&&e.on(d,"input",(function(e){s.onInput(e,d.value,c)})),s.onKeyUp&&e.on(d,"keyup",(function(e){s.onKeyUp(e,d.value,c)})),e.on(d,"keydown",(function(t){s&&s.onKeyDown&&s.onKeyDown(t,d.value,c)||((27==t.keyCode||!1!==s.closeOnEnter&&13==t.keyCode)&&(d.blur(),e.e_stop(t),c()),13==t.keyCode&&o(d.value,t))})),!1!==s.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&c()}))):(f=a.getElementsByTagName("button")[0])&&(e.on(f,"click",(function(){c(),u.focus()})),!1!==s.closeOnBlur&&e.on(f,"blur",c),f.focus()),c})),e.defineExtension("openConfirm",(function(i,o,s){n(this,null);var a=t(this,i,s&&s.bottom),l=a.getElementsByTagName("button"),u=!1,c=this,f=1;function d(){u||(u=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}r(d,"close"),l[0].focus();for(var p=0;p<l.length;++p){var h=l[p];!function(t){e.on(h,"click",(function(n){e.e_preventDefault(n),d(),t&&t(c)}))}(o[p]),e.on(h,"blur",(function(){--f,setTimeout((function(){f<=0&&d()}),200)})),e.on(h,"focus",(function(){++f}))}})),e.defineExtension("openNotification",(function(i,o){n(this,c);var s,a=t(this,i,o&&o.bottom),l=!1,u=o&&void 0!==o.duration?o.duration:5e3;function c(){l||(l=!0,clearTimeout(s),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return r(c,"close"),e.on(a,"click",(function(t){e.e_preventDefault(t),c()})),u&&(s=setTimeout(c,u)),c}))}(t.a.exports);var s=o.exports,a=Object.freeze(i({__proto__:null,[Symbol.toStringTag]:"Module",default:s},[o.exports]));e.d=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.a=e.T=e.S=void 0;var t=Object.defineProperty,n=(e,n)=>t(e,"name",{value:n,configurable:!0});function r(e){return i(e,[])}function i(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return o(e,t);default:return String(e)}}function o(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(s(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:i(t,n)}else if(Array.isArray(e))return l(e,n);return a(e,n)}function s(e){return"function"==typeof e.toJSON}function a(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>2?"["+u(e)+"]":"{ "+n.map(e=>{let[n,r]=e;return n+": "+i(r,t)}).join(", ")+" }"}function l(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,o=[];for(let r=0;r<n;++r)o.push(i(e[r],t));return 1===r?o.push("... 1 more item"):r>1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}function u(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 c(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}let f;function d(e){return 9===e||32===e}function p(e){return e>=48&&e<=57}function h(e){return e>=97&&e<=122||e>=65&&e<=90}function m(e){return h(e)||95===e}function g(e){return h(e)||p(e)||95===e}function v(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every(e=>0===e.length||d(e.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,l=e.endsWith("\\"),u=a||l,c=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||s);let f="";const p=i&&d(e.charCodeAt(0));return(c&&!p||o)&&(f+="\n"),f+=n,(c||u)&&(f+="\n"),'"""'+f+'"""'}function y(e){return`"${e.replace(E,T)}"`}var b;n(r,"inspect"),n(i,"formatValue"),n(o,"formatObjectValue"),n(s,"isJSONable"),n(a,"formatObject"),n(l,"formatArray"),n(u,"getObjectTag"),n(c,"invariant"),(b=f||(f={})).QUERY="QUERY",b.MUTATION="MUTATION",b.SUBSCRIPTION="SUBSCRIPTION",b.FIELD="FIELD",b.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",b.FRAGMENT_SPREAD="FRAGMENT_SPREAD",b.INLINE_FRAGMENT="INLINE_FRAGMENT",b.VARIABLE_DEFINITION="VARIABLE_DEFINITION",b.SCHEMA="SCHEMA",b.SCALAR="SCALAR",b.OBJECT="OBJECT",b.FIELD_DEFINITION="FIELD_DEFINITION",b.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",b.INTERFACE="INTERFACE",b.UNION="UNION",b.ENUM="ENUM",b.ENUM_VALUE="ENUM_VALUE",b.INPUT_OBJECT="INPUT_OBJECT",b.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",n(d,"isWhiteSpace"),n(p,"isDigit$1"),n(h,"isLetter"),n(m,"isNameStart"),n(g,"isNameContinue"),n(v,"printBlockString"),n(y,"printString");const E=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function T(e){return _[e.charCodeAt(0)]}n(T,"escapedReplacer");const _=["\\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 k(e,t){if(!Boolean(e))throw new Error(t)}n(k,"devAssert");const x={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"]},C=new Set(Object.keys(x));function w(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&C.has(t)}let S,N;var A,O;n(w,"isNode"),(O=S||(S={})).QUERY="query",O.MUTATION="mutation",O.SUBSCRIPTION="subscription",(A=N||(N={})).NAME="Name",A.DOCUMENT="Document",A.OPERATION_DEFINITION="OperationDefinition",A.VARIABLE_DEFINITION="VariableDefinition",A.SELECTION_SET="SelectionSet",A.FIELD="Field",A.ARGUMENT="Argument",A.FRAGMENT_SPREAD="FragmentSpread",A.INLINE_FRAGMENT="InlineFragment",A.FRAGMENT_DEFINITION="FragmentDefinition",A.VARIABLE="Variable",A.INT="IntValue",A.FLOAT="FloatValue",A.STRING="StringValue",A.BOOLEAN="BooleanValue",A.NULL="NullValue",A.ENUM="EnumValue",A.LIST="ListValue",A.OBJECT="ObjectValue",A.OBJECT_FIELD="ObjectField",A.DIRECTIVE="Directive",A.NAMED_TYPE="NamedType",A.LIST_TYPE="ListType",A.NON_NULL_TYPE="NonNullType",A.SCHEMA_DEFINITION="SchemaDefinition",A.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",A.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",A.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",A.FIELD_DEFINITION="FieldDefinition",A.INPUT_VALUE_DEFINITION="InputValueDefinition",A.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",A.UNION_TYPE_DEFINITION="UnionTypeDefinition",A.ENUM_TYPE_DEFINITION="EnumTypeDefinition",A.ENUM_VALUE_DEFINITION="EnumValueDefinition",A.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",A.DIRECTIVE_DEFINITION="DirectiveDefinition",A.SCHEMA_EXTENSION="SchemaExtension",A.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",A.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",A.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",A.UNION_TYPE_EXTENSION="UnionTypeExtension",A.ENUM_TYPE_EXTENSION="EnumTypeExtension",A.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";const I=Object.freeze({});function D(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x;const i=new Map;for(const e of Object.values(N))i.set(e,L(t,e));let o=void 0,s=Array.isArray(e),a=[e],l=-1,u=[],c=e,f=void 0,d=void 0;const p=[],h=[];do{l++;const e=l===a.length,y=e&&0!==u.length;if(e){if(f=0===h.length?void 0:p[p.length-1],c=d,d=h.pop(),y)if(s){c=c.slice();let e=0;for(const[t,n]of u){const r=t-e;null===n?(c.splice(r,1),e++):c[r]=n}}else{c=Object.defineProperties({},Object.getOwnPropertyDescriptors(c));for(const[e,t]of u)c[e]=t}l=o.index,a=o.keys,u=o.edits,s=o.inArray,o=o.prev}else if(d){if(f=s?l:a[l],c=d[f],null==c)continue;p.push(f)}let b;if(!Array.isArray(c)){var m,g;w(c)||k(!1,`Invalid AST Node: ${r(c)}.`);const n=e?null===(m=i.get(c.kind))||void 0===m?void 0:m.leave:null===(g=i.get(c.kind))||void 0===g?void 0:g.enter;if(b=null==n?void 0:n.call(t,c,f,d,p,h),b===I)break;if(!1===b){if(!e){p.pop();continue}}else if(void 0!==b&&(u.push([f,b]),!e)){if(!w(b)){p.pop();continue}c=b}}var v;void 0===b&&y&&u.push([f,c]),e?p.pop():(o={inArray:s,index:l,keys:a,edits:u,prev:o},s=Array.isArray(c),a=s?c:null!==(v=n[c.kind])&&void 0!==v?v:[],l=-1,u=[],d&&h.push(d),d=c)}while(void 0!==o);return 0!==u.length?u[u.length-1][1]:e}function L(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 F(e){return D(e,M)}n(D,"visit"),n(L,"getEnterLeaveForKind"),n(F,"print");const M={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>R(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=j("(",R(e.variableDefinitions,", "),")"),n=R([e.operation,R([e.name,t]),R(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:e=>{let{variable:t,type:n,defaultValue:r,directives:i}=e;return t+": "+n+j(" = ",r)+j(" ",R(i," "))}},SelectionSet:{leave:e=>{let{selections:t}=e;return P(t)}},Field:{leave(e){let{alias:t,name:n,arguments:r,directives:i,selectionSet:o}=e;const s=j("",t,": ")+n;let a=s+j("(",R(r,", "),")");return a.length>80&&(a=s+j("(\n",V(R(r,"\n")),"\n)")),R([a,R(i," "),o]," ")}},Argument:{leave:e=>{let{name:t,value:n}=e;return t+": "+n}},FragmentSpread:{leave:e=>{let{name:t,directives:n}=e;return"..."+t+j(" ",R(n," "))}},InlineFragment:{leave:e=>{let{typeCondition:t,directives:n,selectionSet:r}=e;return R(["...",j("on ",t),R(n," "),r]," ")}},FragmentDefinition:{leave:e=>{let{name:t,typeCondition:n,variableDefinitions:r,directives:i,selectionSet:o}=e;return`fragment ${t}${j("(",R(r,", "),")")} on ${n} ${j("",R(i," ")," ")}`+o}},IntValue:{leave:e=>{let{value:t}=e;return t}},FloatValue:{leave:e=>{let{value:t}=e;return t}},StringValue:{leave:e=>{let{value:t,block:n}=e;return n?v(t):y(t)}},BooleanValue:{leave:e=>{let{value:t}=e;return t?"true":"false"}},NullValue:{leave:()=>"null"},EnumValue:{leave:e=>{let{value:t}=e;return t}},ListValue:{leave:e=>{let{values:t}=e;return"["+R(t,", ")+"]"}},ObjectValue:{leave:e=>{let{fields:t}=e;return"{"+R(t,", ")+"}"}},ObjectField:{leave:e=>{let{name:t,value:n}=e;return t+": "+n}},Directive:{leave:e=>{let{name:t,arguments:n}=e;return"@"+t+j("(",R(n,", "),")")}},NamedType:{leave:e=>{let{name:t}=e;return t}},ListType:{leave:e=>{let{type:t}=e;return"["+t+"]"}},NonNullType:{leave:e=>{let{type:t}=e;return t+"!"}},SchemaDefinition:{leave:e=>{let{description:t,directives:n,operationTypes:r}=e;return j("",t,"\n")+R(["schema",R(n," "),P(r)]," ")}},OperationTypeDefinition:{leave:e=>{let{operation:t,type:n}=e;return t+": "+n}},ScalarTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r}=e;return j("",t,"\n")+R(["scalar",n,R(r," ")]," ")}},ObjectTypeDefinition:{leave:e=>{let{description:t,name:n,interfaces:r,directives:i,fields:o}=e;return j("",t,"\n")+R(["type",n,j("implements ",R(r," & ")),R(i," "),P(o)]," ")}},FieldDefinition:{leave:e=>{let{description:t,name:n,arguments:r,type:i,directives:o}=e;return j("",t,"\n")+n+(U(r)?j("(\n",V(R(r,"\n")),"\n)"):j("(",R(r,", "),")"))+": "+i+j(" ",R(o," "))}},InputValueDefinition:{leave:e=>{let{description:t,name:n,type:r,defaultValue:i,directives:o}=e;return j("",t,"\n")+R([n+": "+r,j("= ",i),R(o," ")]," ")}},InterfaceTypeDefinition:{leave:e=>{let{description:t,name:n,interfaces:r,directives:i,fields:o}=e;return j("",t,"\n")+R(["interface",n,j("implements ",R(r," & ")),R(i," "),P(o)]," ")}},UnionTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,types:i}=e;return j("",t,"\n")+R(["union",n,R(r," "),j("= ",R(i," | "))]," ")}},EnumTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,values:i}=e;return j("",t,"\n")+R(["enum",n,R(r," "),P(i)]," ")}},EnumValueDefinition:{leave:e=>{let{description:t,name:n,directives:r}=e;return j("",t,"\n")+R([n,R(r," ")]," ")}},InputObjectTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,fields:i}=e;return j("",t,"\n")+R(["input",n,R(r," "),P(i)]," ")}},DirectiveDefinition:{leave:e=>{let{description:t,name:n,arguments:r,repeatable:i,locations:o}=e;return j("",t,"\n")+"directive @"+n+(U(r)?j("(\n",V(R(r,"\n")),"\n)"):j("(",R(r,", "),")"))+(i?" repeatable":"")+" on "+R(o," | ")}},SchemaExtension:{leave:e=>{let{directives:t,operationTypes:n}=e;return R(["extend schema",R(t," "),P(n)]," ")}},ScalarTypeExtension:{leave:e=>{let{name:t,directives:n}=e;return R(["extend scalar",t,R(n," ")]," ")}},ObjectTypeExtension:{leave:e=>{let{name:t,interfaces:n,directives:r,fields:i}=e;return R(["extend type",t,j("implements ",R(n," & ")),R(r," "),P(i)]," ")}},InterfaceTypeExtension:{leave:e=>{let{name:t,interfaces:n,directives:r,fields:i}=e;return R(["extend interface",t,j("implements ",R(n," & ")),R(r," "),P(i)]," ")}},UnionTypeExtension:{leave:e=>{let{name:t,directives:n,types:r}=e;return R(["extend union",t,R(n," "),j("= ",R(r," | "))]," ")}},EnumTypeExtension:{leave:e=>{let{name:t,directives:n,values:r}=e;return R(["extend enum",t,R(n," "),P(r)]," ")}},InputObjectTypeExtension:{leave:e=>{let{name:t,directives:n,fields:r}=e;return R(["extend input",t,R(n," "),P(r)]," ")}}};function R(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function P(e){return j("{\n",V(R(e,"\n")),"\n}")}function j(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function V(e){return j(" ",e.replace(/\n/g,"\n "))}function U(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}function B(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function q(e){return"object"==typeof e&&null!==e}function z(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const s=o.slice(0,5),a=s.pop();return i+s.join(", ")+", or "+a+"?"}function $(e){return e}n(R,"join"),n(P,"block"),n(j,"wrap"),n(V,"indent"),n(U,"hasMultilineItems"),n(B,"isIterableObject"),n(q,"isObjectLike"),n(z,"didYouMean"),n($,"identityFunc");const H=n((function(e,t){return e instanceof t}),"instanceOf");function G(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function W(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function Q(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function K(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(Y(i)&&Y(o)){let s=0;do{++n,s=10*s+i-J,i=e.charCodeAt(n)}while(Y(i)&&s>0);let a=0;do{++r,a=10*a+o-J,o=t.charCodeAt(r)}while(Y(o)&&a>0);if(s<a)return-1;if(s>a)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}n(G,"keyMap"),n(W,"keyValMap"),n(Q,"mapValue"),n(K,"naturalCompare");const J=48;function Y(e){return!isNaN(e)&&J<=e&&e<=57}function Z(e,t){const n=Object.create(null),r=new X(e),i=Math.floor(.4*e.length)+1;for(const e of t){const t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{const r=n[e]-n[t];return 0!==r?r:K(e,t)})}n(Y,"isDigit"),n(Z,"suggestionList");class X{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=ee(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 r=ee(n),i=this._inputArray;if(r.length<i.length){const e=r;r=i,i=e}const o=r.length,s=i.length;if(o-s>t)return;const a=this._rows;for(let e=0;e<=s;e++)a[0][e]=e;for(let e=1;e<=o;e++){const n=a[(e-1)%3],o=a[e%3];let l=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=a[(e-2)%3][t-2];u=Math.min(u,n+1)}u<l&&(l=u),o[t]=u}if(l>t)return}const l=a[o%3][s];return l<=t?l:void 0}}function ee(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function te(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}n(X,"LexicalDistance"),n(ee,"stringToArray"),n(te,"toObjMap");const ne=/\r\n|[\n\r]/g;function re(e,t){let n=0,r=1;for(const i of e.body.matchAll(ne)){if("number"==typeof i.index||c(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function ie(e){return oe(e.source,re(e.source,e.start))}function oe(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?n:0,l=t.column+a,u=`${e.name}:${s}:${l}\n`,c=r.split(/\r\n|[\n\r]/g),f=c[i];if(f.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<f.length;e+=80)n.push(f.slice(e,e+80));return u+se([[s+" |",n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+se([[s-1+" |",c[i-1]],[s+" |",f],["|","^".padStart(l)],[s+1+" |",c[i+1]]])}function se(e){const t=e.filter(e=>{let[t,n]=e;return void 0!==n}),n=Math.max(...t.map(e=>{let[t]=e;return t.length}));return t.map(e=>{let[t,r]=e;return t.padStart(n)+(r?" "+r:"")}).join("\n")}function ae(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}n(re,"getLocation"),n(ie,"printLocation"),n(oe,"printSourceLocation"),n(se,"printPrefixedLines"),n(ae,"toNormalizedOptions");class le extends Error{constructor(e){for(var t,n,r,i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];const{nodes:a,source:l,positions:u,path:c,originalError:f,extensions:d}=ae(o);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=f?f:void 0,this.nodes=ue(Array.isArray(a)?a:a?[a]:void 0);const p=ue(null===(t=this.nodes)||void 0===t?void 0:t.map(e=>e.loc).filter(e=>null!=e));this.source=null!=l?l:null==p||null===(n=p[0])||void 0===n?void 0:n.source,this.positions=null!=u?u:null==p?void 0:p.map(e=>e.start),this.locations=u&&l?u.map(e=>re(l,e)):null==p?void 0:p.map(e=>re(e.source,e.start));const h=q(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!==(r=null!=d?d:h)&&void 0!==r?r: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!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,le):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"+ie(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+oe(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 ue(e){return void 0===e||0===e.length?void 0:e}function ce(e,t){switch(e.kind){case N.NULL:return null;case N.INT:return parseInt(e.value,10);case N.FLOAT:return parseFloat(e.value);case N.STRING:case N.ENUM:case N.BOOLEAN:return e.value;case N.LIST:return e.values.map(e=>ce(e,t));case N.OBJECT:return W(e.fields,e=>e.name.value,e=>ce(e.value,t));case N.VARIABLE:return null==t?void 0:t[e.name.value]}}function fe(e){if(null!=e||k(!1,"Must provide name."),"string"==typeof e||k(!1,"Expected name to be a string."),0===e.length)throw new le("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!g(e.charCodeAt(t)))throw new le(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!m(e.charCodeAt(0)))throw new le(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function de(e){if("true"===e||"false"===e||"null"===e)throw new le("Enum values cannot be named: "+e);return fe(e)}function pe(e){return he(e)||me(e)||ge(e)||ve(e)||ye(e)||be(e)||Ee(e)||Te(e)}function he(e){return H(e,Ae)}function me(e){return H(e,Oe)}function ge(e){return H(e,Pe)}function ve(e){return H(e,je)}function ye(e){return H(e,Ue)}function be(e){return H(e,ze)}function Ee(e){return H(e,xe)}function Te(e){return H(e,Ce)}function _e(e){return he(e)||ye(e)}function ke(e){return ge(e)||ve(e)}n(le,"GraphQLError"),n(ue,"undefinedIfEmpty"),n(ce,"valueFromASTUntyped"),n(fe,"assertName"),n(de,"assertEnumValueName"),n(pe,"isType"),n(he,"isScalarType"),n(me,"isObjectType"),n(ge,"isInterfaceType"),n(ve,"isUnionType"),n(ye,"isEnumType"),n(be,"isInputObjectType"),n(Ee,"isListType"),n(Te,"isNonNullType"),n(_e,"isLeafType"),n(ke,"isAbstractType");class xe{constructor(e){pe(e)||k(!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()}}n(xe,"GraphQLList");class Ce{constructor(e){we(e)||k(!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 we(e){return pe(e)&&!Te(e)}function Se(e){return"function"==typeof e?e():e}function Ne(e){return"function"==typeof e?e():e}n(Ce,"GraphQLNonNull"),n(we,"isNullableType"),n(Se,"resolveReadonlyArrayThunk"),n(Ne,"resolveObjMapThunk");class Ae{constructor(e){var t,n,i,o;const s=null!==(t=e.parseValue)&&void 0!==t?t:$;this.name=fe(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:$,this.parseValue=s,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>s(ce(e,t)),this.extensions=te(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(o=e.extensionASTNodes)&&void 0!==o?o:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||k(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${r(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||k(!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||k(!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()}}n(Ae,"GraphQLScalarType");class Oe{constructor(e){var t;this.name=fe(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=te(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>De(e),this._interfaces=()=>Ie(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||k(!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:Me(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ie(e){var t;const n=Se(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||k(!1,e.name+" interfaces must be an Array or a function which returns an Array."),n}function De(e){const t=Ne(e.fields);return Fe(t)||k(!1,e.name+" fields must be an object with field names as keys or a function which returns such an object."),Q(t,(t,n)=>{var i;Fe(t)||k(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||k(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${r(t.resolve)}.`);const o=null!==(i=t.args)&&void 0!==i?i:{};return Fe(o)||k(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:fe(n),description:t.description,type:t.type,args:Le(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:te(t.extensions),astNode:t.astNode}})}function Le(e){return Object.entries(e).map(e=>{let[t,n]=e;return{name:fe(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:te(n.extensions),astNode:n.astNode}})}function Fe(e){return q(e)&&!Array.isArray(e)}function Me(e){return Q(e,e=>({description:e.description,type:e.type,args:Re(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function Re(e){return W(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}n(Oe,"GraphQLObjectType"),n(Ie,"defineInterfaces"),n(De,"defineFieldMap"),n(Le,"defineArguments"),n(Fe,"isPlainObj"),n(Me,"fieldsToFieldsConfig"),n(Re,"argsToArgsConfig");class Pe{constructor(e){var t;this.name=fe(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=te(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=De.bind(void 0,e),this._interfaces=Ie.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||k(!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:Me(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}n(Pe,"GraphQLInterfaceType");class je{constructor(e){var t;this.name=fe(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=te(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Ve.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||k(!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 Ve(e){const t=Se(e.types);return Array.isArray(t)||k(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}n(je,"GraphQLUnionType"),n(Ve,"defineTypes");class Ue{constructor(e){var t;this.name=fe(e.name),this.description=e.description,this.extensions=te(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=G(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 le(`Enum "${this.name}" cannot represent value: ${r(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=r(e);throw new le(`Enum "${this.name}" cannot represent non-string value: ${t}.`+Be(this,t))}const t=this.getValue(e);if(null==t)throw new le(`Value "${e}" does not exist in "${this.name}" enum.`+Be(this,e));return t.value}parseLiteral(e,t){if(e.kind!==N.ENUM){const t=F(e);throw new le(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+Be(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=F(e);throw new le(`Value "${t}" does not exist in "${this.name}" enum.`+Be(this,t),{nodes:e})}return n.value}toConfig(){const e=W(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 Be(e,t){return z("the enum value",Z(t,e.getValues().map(e=>e.name)))}function qe(e,t){return Fe(t)||k(!1,e+" values must be an object with value names as keys."),Object.entries(t).map(t=>{let[n,i]=t;return Fe(i)||k(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${r(i)}.`),{name:de(n),description:i.description,value:void 0!==i.value?i.value:n,deprecationReason:i.deprecationReason,extensions:te(i.extensions),astNode:i.astNode}})}n(Ue,"GraphQLEnumType"),n(Be,"didYouMeanEnumValue"),n(qe,"defineEnumValues");class ze{constructor(e){var t;this.name=fe(e.name),this.description=e.description,this.extensions=te(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=$e.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=Q(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 $e(e){const t=Ne(e.fields);return Fe(t)||k(!1,e.name+" fields must be an object with field names as keys or a function which returns such an object."),Q(t,(t,n)=>(!("resolve"in t)||k(!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:te(t.extensions),astNode:t.astNode}))}n(ze,"GraphQLInputObjectType"),n($e,"defineInputFieldMap");const He=new Ae({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=Je(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 le("Int cannot represent non-integer value: "+r(t));if(n>2147483647||n<-2147483648)throw new le("Int cannot represent non 32-bit signed integer value: "+r(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new le("Int cannot represent non-integer value: "+r(e));if(e>2147483647||e<-2147483648)throw new le("Int cannot represent non 32-bit signed integer value: "+e);return e},parseLiteral(e){if(e.kind!==N.INT)throw new le("Int cannot represent non-integer value: "+F(e),{nodes:e});const t=parseInt(e.value,10);if(t>2147483647||t<-2147483648)throw new le("Int cannot represent non 32-bit signed integer value: "+e.value,{nodes:e});return t}}),Ge=new Ae({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=Je(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 le("Float cannot represent non numeric value: "+r(t));return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new le("Float cannot represent non numeric value: "+r(e));return e},parseLiteral(e){if(e.kind!==N.FLOAT&&e.kind!==N.INT)throw new le("Float cannot represent non numeric value: "+F(e),e);return parseFloat(e.value)}}),We=new Ae({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=Je(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 le("String cannot represent value: "+r(e))},parseValue(e){if("string"!=typeof e)throw new le("String cannot represent a non string value: "+r(e));return e},parseLiteral(e){if(e.kind!==N.STRING)throw new le("String cannot represent a non string value: "+F(e),{nodes:e});return e.value}}),Qe=new Ae({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=Je(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new le("Boolean cannot represent a non boolean value: "+r(t))},parseValue(e){if("boolean"!=typeof e)throw new le("Boolean cannot represent a non boolean value: "+r(e));return e},parseLiteral(e){if(e.kind!==N.BOOLEAN)throw new le("Boolean cannot represent a non boolean value: "+F(e),{nodes:e});return e.value}}),Ke=new Ae({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=Je(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new le("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 le("ID cannot represent value: "+r(e))},parseLiteral(e){if(e.kind!==N.STRING&&e.kind!==N.INT)throw new le("ID cannot represent a non-string and non-integer value: "+F(e),{nodes:e});return e.value}});function Je(e){if(q(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!q(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function Ye(e,t){if(Te(t)){const n=Ye(e,t.ofType);return(null==n?void 0:n.kind)===N.NULL?null:n}if(null===e)return{kind:N.NULL};if(void 0===e)return null;if(Ee(t)){const n=t.ofType;if(B(e)){const t=[];for(const r of e){const e=Ye(r,n);null!=e&&t.push(e)}return{kind:N.LIST,values:t}}return Ye(e,n)}if(be(t)){if(!q(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=Ye(e[r.name],r.type);t&&n.push({kind:N.OBJECT_FIELD,name:{kind:N.NAME,value:r.name},value:t})}return{kind:N.OBJECT,fields:n}}if(_e(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:N.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return Ze.test(e)?{kind:N.INT,value:e}:{kind:N.FLOAT,value:e}}if("string"==typeof n)return ye(t)?{kind:N.ENUM,value:n}:t===Ke&&Ze.test(n)?{kind:N.INT,value:n}:{kind:N.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${r(n)}.`)}c(!1,"Unexpected input type: "+r(t))}Object.freeze([We,He,Ge,Qe,Ke]),n(Je,"serializeObject"),n(Ye,"astFromValue");const Ze=/^-?(?:0|[1-9][0-9]*)$/,Xe=new Oe({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 Ce(new xe(new Ce(nt))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new Ce(nt),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:nt,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:nt,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Ce(new xe(new Ce(et))),resolve:e=>e.getDirectives()}})}),et=new Oe({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 Ce(We),resolve:e=>e.name},description:{type:We,resolve:e=>e.description},isRepeatable:{type:new Ce(Qe),resolve:e=>e.isRepeatable},locations:{type:new Ce(new xe(new Ce(tt))),resolve:e=>e.locations},args:{type:new Ce(new xe(new Ce(it))),args:{includeDeprecated:{type:Qe,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;return n?e.args:e.args.filter(e=>null==e.deprecationReason)}}})}),tt=new Ue({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."}}}),nt=new Oe({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 Ce(lt),resolve:e=>he(e)?st.SCALAR:me(e)?st.OBJECT:ge(e)?st.INTERFACE:ve(e)?st.UNION:ye(e)?st.ENUM:be(e)?st.INPUT_OBJECT:Ee(e)?st.LIST:Te(e)?st.NON_NULL:void c(!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 xe(new Ce(rt)),args:{includeDeprecated:{type:Qe,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;if(me(e)||ge(e)){const t=Object.values(e.getFields());return n?t:t.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new xe(new Ce(nt)),resolve(e){if(me(e)||ge(e))return e.getInterfaces()}},possibleTypes:{type:new xe(new Ce(nt)),resolve(e,t,n,r){let{schema:i}=r;if(ke(e))return i.getPossibleTypes(e)}},enumValues:{type:new xe(new Ce(ot)),args:{includeDeprecated:{type:Qe,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;if(ye(e)){const t=e.getValues();return n?t:t.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new xe(new Ce(it)),args:{includeDeprecated:{type:Qe,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;if(be(e)){const t=Object.values(e.getFields());return n?t:t.filter(e=>null==e.deprecationReason)}}},ofType:{type:nt,resolve:e=>"ofType"in e?e.ofType:void 0}})}),rt=new Oe({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 Ce(We),resolve:e=>e.name},description:{type:We,resolve:e=>e.description},args:{type:new Ce(new xe(new Ce(it))),args:{includeDeprecated:{type:Qe,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;return n?e.args:e.args.filter(e=>null==e.deprecationReason)}},type:{type:new Ce(nt),resolve:e=>e.type},isDeprecated:{type:new Ce(Qe),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:We,resolve:e=>e.deprecationReason}})}),it=new Oe({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 Ce(We),resolve:e=>e.name},description:{type:We,resolve:e=>e.description},type:{type:new Ce(nt),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,r=Ye(n,t);return r?F(r):null}},isDeprecated:{type:new Ce(Qe),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:We,resolve:e=>e.deprecationReason}})}),ot=new Oe({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 Ce(We),resolve:e=>e.name},description:{type:We,resolve:e=>e.description},isDeprecated:{type:new Ce(Qe),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:We,resolve:e=>e.deprecationReason}})});let st;var at;(at=st||(st={})).SCALAR="SCALAR",at.OBJECT="OBJECT",at.INTERFACE="INTERFACE",at.UNION="UNION",at.ENUM="ENUM",at.INPUT_OBJECT="INPUT_OBJECT",at.LIST="LIST",at.NON_NULL="NON_NULL";const lt=new Ue({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:st.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:st.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:st.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:st.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:st.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:st.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:st.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:st.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),ut={name:"__schema",type:new Ce(Xe),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,r)=>{let{schema:i}=r;return i},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};e.S=ut;const ct={name:"__type",type:nt,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Ce(We),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,t,n,r)=>{let{name:i}=t,{schema:o}=r;return o.getType(i)},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};e.T=ct;const ft={name:"__typename",type:new Ce(We),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,r)=>{let{parentType:i}=r;return i.name},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};e.a=ft,Object.freeze([Xe,et,tt,nt,rt,it,ot,lt])})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.f=n;var t=Object.defineProperty;function n(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}t(n,"name",{value:"forEachState",configurable:!0})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0),n(7),n(21)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){let{arg:i,showDefaultValue:o}=e;return t.default.createElement("span",{className:"arg"},t.default.createElement("span",{className:"arg-name"},i.name),": ",t.default.createElement(n.default,{type:i.type}),!1!==o&&t.default.createElement(r.default,{field:i}))},t=i(t),n=i(n),r=i(r)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0),n(81)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){let{markdown:n,className:r}=e;return n?t.default.createElement("div",{className:r,dangerouslySetInnerHTML:{__html:i.render(n)}}):t.default.createElement("div",null)},t=r(t);const i=new((n=r(n)).default)({breaks:!0,linkify:!0})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},t.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},t.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},t.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},t.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=t})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},t.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},t.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},t.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(43),n(44),n(51),n(52),n(56)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))})),Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))})),Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))})),Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===i[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))})),Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QueryStore=void 0,e.QueryStore=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName)}edit(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1,e),this.save())}delete(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items[this.items.length-1]}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let e=0;e<5;e++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(e&&e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0),n(3)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){let{field:r}=e;return"defaultValue"in r&&void 0!==r.defaultValue?t.default.createElement("span",null," = ",t.default.createElement("span",{className:"arg-default-value"},(i=(0,n.astFromValue)(r.defaultValue,r.type))?(0,n.print)(i):"")):null;var i},t=(r=t)&&r.__esModule?r:{default:r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=n(83)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports.encode=n(84),e.exports.decode=n(85),e.exports.format=n(86),e.exports.parse=n(87)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=/[\0-\x1F\x7F-\x9F]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),i=new RegExp("^(?:"+t+"|"+n+")");e.exports.HTML_TAG_RE=r,e.exports.HTML_OPEN_CLOSE_TAG_RE=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t){var n,r,i,o,s,a=[],l=t.length;for(n=0;n<l;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(s=e.tokens[i.token]).type="s_open",s.tag="s",s.nesting=1,s.markup="~~",s.content="",(s=e.tokens[o.token]).type="s_close",s.tag="s",s.nesting=-1,s.markup="~~",s.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&a.push(o.token-1));for(;a.length;){for(r=(n=a.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(s=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=s)}}e.exports.tokenize=function(e,t){var n,r,i,o,s=e.pos,a=e.src.charCodeAt(s);if(t)return!1;if(126!==a)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(a),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:a,length:0,jump:n/2,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t){var n,r,i,o,s,a;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],a=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,s=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=a?"strong_open":"em_open",o.tag=a?"strong":"em",o.nesting=1,o.markup=a?s+s:s,o.content="",(o=e.tokens[i.token]).type=a?"strong_close":"em_close",o.tag=a?"strong":"em",o.nesting=-1,o.markup=a?s+s:s,o.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.tokenize=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,jump:n,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0),n(4)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){const{push:r}=(0,n.useExplorerContext)({nonNull:!0});return t.default.createElement("a",{className:"field-name",onClick:t=>{t.preventDefault(),r({name:e.field.name,def:e.field})},href:"#"},e.field.name)},t=(r=t)&&r.__esModule?r:{default:r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(2)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.s=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}r(i,"_mergeNamespaces");var o={exports:{}};!function(e){function t(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",(function(n){n=o(this,this.getCursor("start"),n);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var i=0;i<r.length;i++)if(r[i].head.line!=r[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var s=this.state.completionActive=new t(this,n);s.options.hint&&(e.signal(this,"startCompletion",this),s.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()})),r(t,"Completion");var n=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},i=window.cancelAnimationFrame||clearTimeout;function o(e,t,n){var r=e.options.hintOptions,i={};for(var o in p)i[o]=p[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}function s(e){return"string"==typeof e?e:e.text}function a(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var i=e.options.customKeys,o=i?{}:n;function s(e,i){var s;s="string"!=typeof i?r((function(e){return i(e,t)}),"bound"):n.hasOwnProperty(i)?n[i]:i,o[e]=s}if(r(s,"addBinding"),i)for(var a in i)i.hasOwnProperty(a)&&s(a,i[a]);var l=e.options.extraKeys;if(l)for(var a in l)l.hasOwnProperty(a)&&s(a,l[a]);return o}function l(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function u(t,n){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=t,this.data=n,this.picked=!1;var r=this,i=t.cm,o=i.getInputField().ownerDocument,u=o.defaultView||o.parentWindow,c=this.hints=o.createElement("ul");c.setAttribute("role","listbox"),c.setAttribute("aria-expanded","true"),c.id=this.id;var f=t.cm.options.theme;c.className="CodeMirror-hints "+f,this.selectedHint=n.selectedHint||0;for(var d=n.list,p=0;p<d.length;++p){var h=c.appendChild(o.createElement("li")),m=d[p],g="CodeMirror-hint"+(p!=this.selectedHint?"":" CodeMirror-hint-active");null!=m.className&&(g=m.className+" "+g),h.className=g,p==this.selectedHint&&h.setAttribute("aria-selected","true"),h.id=this.id+"-"+p,h.setAttribute("role","option"),m.render?m.render(h,n,m):h.appendChild(o.createTextNode(m.displayText||s(m))),h.hintId=p}var v=t.options.container||o.body,y=i.cursorCoords(t.options.alignWithWord?n.from:null),b=y.left,E=y.bottom,T=!0,_=0,k=0;if(v!==o.body){var x=-1!==["absolute","relative","fixed"].indexOf(u.getComputedStyle(v).position)?v:v.offsetParent,C=x.getBoundingClientRect(),w=o.body.getBoundingClientRect();_=C.left-w.left-x.scrollLeft,k=C.top-w.top-x.scrollTop}c.style.left=b-_+"px",c.style.top=E-k+"px";var S=u.innerWidth||Math.max(o.body.offsetWidth,o.documentElement.offsetWidth),N=u.innerHeight||Math.max(o.body.offsetHeight,o.documentElement.offsetHeight);v.appendChild(c),i.getInputField().setAttribute("aria-autocomplete","list"),i.getInputField().setAttribute("aria-owns",this.id),i.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var A,O=t.options.moveOnOverlap?c.getBoundingClientRect():new DOMRect,I=!!t.options.paddingForScrollbar&&c.scrollHeight>c.clientHeight+1;if(setTimeout((function(){A=i.getScrollInfo()})),O.bottom-N>0){var D=O.bottom-O.top;if(y.top-(y.bottom-O.top)-D>0)c.style.top=(E=y.top-D-k)+"px",T=!1;else if(D>N){c.style.height=N-5+"px",c.style.top=(E=y.bottom-O.top-k)+"px";var L=i.getCursor();n.from.ch!=L.ch&&(y=i.cursorCoords(L),c.style.left=(b=y.left-_)+"px",O=c.getBoundingClientRect())}}var F,M=O.right-S;if(I&&(M+=i.display.nativeBarWidth),M>0&&(O.right-O.left>S&&(c.style.width=S-5+"px",M-=O.right-O.left-S),c.style.left=(b=y.left-M-_)+"px"),I)for(var R=c.firstChild;R;R=R.nextSibling)R.style.paddingRight=i.display.nativeBarWidth+"px";i.addKeyMap(this.keyMap=a(t,{moveFocus:function(e,t){r.changeActive(r.selectedHint+e,t)},setFocus:function(e){r.changeActive(e)},menuSize:function(){return r.screenAmount()},length:d.length,close:function(){t.close()},pick:function(){r.pick()},data:n})),t.options.closeOnUnfocus&&(i.on("blur",this.onBlur=function(){F=setTimeout((function(){t.close()}),100)}),i.on("focus",this.onFocus=function(){clearTimeout(F)})),i.on("scroll",this.onScroll=function(){var e=i.getScrollInfo(),n=i.getWrapperElement().getBoundingClientRect();A||(A=i.getScrollInfo());var r=E+A.top-e.top,s=r-(u.pageYOffset||(o.documentElement||o.body).scrollTop);if(T||(s+=c.offsetHeight),s<=n.top||s>=n.bottom)return t.close();c.style.top=r+"px",c.style.left=b+A.left-e.left+"px"}),e.on(c,"dblclick",(function(e){var t=l(c,e.target||e.srcElement);t&&null!=t.hintId&&(r.changeActive(t.hintId),r.pick())})),e.on(c,"click",(function(e){var n=l(c,e.target||e.srcElement);n&&null!=n.hintId&&(r.changeActive(n.hintId),t.options.completeOnSingleClick&&r.pick())})),e.on(c,"mousedown",(function(){setTimeout((function(){i.focus()}),20)}));var P=this.getSelectedHintRange();return 0===P.from&&0===P.to||this.scrollToActive(),e.signal(n,"select",d[this.selectedHint],c.childNodes[this.selectedHint]),!0}function c(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}function f(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}function d(t,n){var i,o=t.getHelpers(n,"hint");if(o.length){var s=r((function(e,t,n){var i=c(e,o);function s(r){if(r==i.length)return t(null);f(i[r],e,n,(function(e){e&&e.list.length>0?t(e):s(r+1)}))}r(s,"run"),s(0)}),"resolved");return s.async=!0,s.supportsSelection=!0,s}return(i=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:i})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],i=this;this.cm.operation((function(){r.hint?r.hint(i.cm,t,r):i.cm.replaceRange(s(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),i.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(i(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),r=this.cm.getLine(t.line);if(t.line!=this.startPos.line||r.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(r.charAt(t.ch-1)))this.close();else{var o=this;this.debounce=n((function(){o.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;f(this.options.hint,this.cm,this.options,(function(r){t.tick==n&&t.finishUpdate(r,e)}))}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new u(this,t),e.signal(t,"shown")))}},r(o,"parseOptions"),r(s,"getText"),r(a,"buildKeyMap"),r(l,"getHintElement"),r(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 e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" CodeMirror-hint-active",""),r.removeAttribute("aria-selected")),(r=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",r.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",r.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-r.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},r(c,"applicableHelpers"),r(f,"fetchHints"),r(d,"resolveAutoHints"),e.registerHelper("hint","auto",{resolve:d}),e.registerHelper("hint","fromList",(function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),s=e.Pos(i.line,o.start),a=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",s=i);for(var l=[],u=0;u<n.words.length;u++){var c=n.words[u];c.slice(0,r.length)==r&&l.push(c)}if(l.length)return{list:l,from:s,to:a}})),e.commands.autocomplete=e.showHint;var p={hint:e.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};e.defineOption("hintOptions",null)}(t.a.exports);var s=o.exports,a=Object.freeze(i({__proto__:null,[Symbol.toStringTag]:"Module",default:s},[o.exports]));e.s=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(2)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.m=e.a=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}r(i,"_mergeNamespaces");var o={exports:{}};e.a=o,function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,i={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function o(e){return e&&e.bracketRegex||/[(){}[\]]/}function s(e,t,r){var s=e.getLineHandle(t.line),l=t.ch-1,u=r&&r.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=o(r),f=!u&&l>=0&&c.test(s.text.charAt(l))&&i[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&i[s.text.charAt(++l)];if(!f)return null;var d=">"==f.charAt(1)?1:-1;if(r&&r.strict&&d>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(d>0?1:0)),d,p,r);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==f.charAt(0),forward:d>0}}function a(e,t,r,s,a){for(var l=a&&a.maxScanLineLength||1e4,u=a&&a.maxScanLines||1e3,c=[],f=o(a),d=r>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=d;p+=r){var h=e.getLine(p);if(h){var m=r>0?0:h.length-1,g=r>0?h.length:-1;if(!(h.length>l))for(p==t.line&&(m=t.ch-(r<0?1:0));m!=g;m+=r){var v=h.charAt(m);if(f.test(v)&&(void 0===s||(e.getTokenTypeAt(n(p,m+1))||"")==(s||""))){var y=i[v];if(y&&">"==y.charAt(1)==r>0)c.push(v);else{if(!c.length)return{pos:n(p,m),ch:v};c.pop()}}}}}return p-r!=(r>0?e.lastLine():e.firstLine())&&null}function l(e,i,o){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,l=o&&o.highlightNonMatching,u=[],c=e.listSelections(),f=0;f<c.length;f++){var d=c[f].empty()&&s(e,c[f].head,o);if(d&&(d.match||!1!==l)&&e.getLine(d.from.line).length<=a){var p=d.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";u.push(e.markText(d.from,n(d.from.line,d.from.ch+1),{className:p})),d.to&&e.getLine(d.to.line).length<=a&&u.push(e.markText(d.to,n(d.to.line,d.to.ch+1),{className:p}))}}if(u.length){t&&e.state.focused&&e.focus();var h=r((function(){e.operation((function(){for(var e=0;e<u.length;e++)u[e].clear()}))}),"clear");if(!i)return h;setTimeout(h,800)}}function u(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=l(e,!1,e.state.matchBrackets)}))}function c(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}r(o,"bracketRegex"),r(s,"findMatchingBracket"),r(a,"scanForBracket"),r(l,"matchBrackets"),r(u,"doMatchBrackets"),r(c,"clearHighlighted"),e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",u),t.off("focus",u),t.off("blur",c),c(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",u),t.on("focus",u),t.on("blur",c))})),e.defineExtension("matchBrackets",(function(){l(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),s(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return a(this,e,t,n,r)}))}(t.a.exports);var s=o.exports,a=Object.freeze(i({__proto__:null,[Symbol.toStringTag]:"Module",default:s},[o.exports]));e.m=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(2)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.b=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}r(i,"_mergeNamespaces");var o={exports:{}};!function(e){function t(t){return function(n,i){var o=i.line,s=n.getLine(o);function a(t){for(var r,a=i.ch,l=0;;){var u=a<=0?-1:s.lastIndexOf(t[0],a-1);if(-1!=u){if(1==l&&u<i.ch)break;if(r=n.getTokenTypeAt(e.Pos(o,u+1)),!/^(comment|string)/.test(r))return{ch:u+1,tokenType:r,pair:t};a=u-1}else{if(1==l)break;l=1,a=s.length}}}function l(t){var r,i,s=1,a=n.lastLine(),l=t.ch;e:for(var u=o;u<=a;++u)for(var c=n.getLine(u),f=u==o?l:0;;){var d=c.indexOf(t.pair[0],f),p=c.indexOf(t.pair[1],f);if(d<0&&(d=c.length),p<0&&(p=c.length),(f=Math.min(d,p))==c.length)break;if(n.getTokenTypeAt(e.Pos(u,f+1))==t.tokenType)if(f==d)++s;else if(!--s){r=u,i=f;break e}++f}return null==r||o==r?null:{from:e.Pos(o,l),to:e.Pos(r,i)}}r(a,"findOpening"),r(l,"findRange");for(var u=[],c=0;c<t.length;c++){var f=a(t[c]);f&&u.push(f)}for(u.sort((function(e,t){return e.ch-t.ch})),c=0;c<u.length;c++){var d=l(u[c]);if(d)return d}return null}}r(t,"bracketFolding"),e.registerHelper("fold","brace",t([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",t([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",(function(t,n){function i(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var s=t.getLine(i).indexOf(";");if(-1!=s)return{startCh:r.end,end:e.Pos(i,s)}}}r(i,"hasImport");var o,s=n.line,a=i(s);if(!a||i(s-1)||(o=i(s-2))&&o.end.line==s-1)return null;for(var l=a.end;;){var u=i(l.line+1);if(null==u)break;l=u.end}return{from:t.clipPos(e.Pos(s,a.startCh+1)),to:l}})),e.registerHelper("fold","include",(function(t,n){function i(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}r(i,"hasInclude");var o=n.line,s=i(o);if(null==s||null!=i(o-1))return null;for(var a=o;null!=i(a+1);)++a;return{from:e.Pos(o,s+1),to:t.clipPos(e.Pos(a))}}))}(t.a.exports);var s=o.exports,a=Object.freeze(i({__proto__:null,[Symbol.toStringTag]:"Module",default:s},[o.exports]));e.b=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(2)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.f=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}r(i,"_mergeNamespaces");var o={exports:{}};!function(e){function t(t,i,s,a){if(s&&s.call){var l=s;s=null}else l=o(t,s,"rangeFinder");"number"==typeof i&&(i=e.Pos(i,0));var u=o(t,s,"minFoldSize");function c(e){var n=l(t,i);if(!n||n.to.line-n.from.line<u)return null;if("fold"===a)return n;for(var r=t.findMarksAt(n.from),o=0;o<r.length;++o)if(r[o].__isFold){if(!e)return null;n.cleared=!0,r[o].clear()}return n}r(c,"getRange");var f=c(!0);if(o(t,s,"scanUp"))for(;!f&&i.line>t.firstLine();)i=e.Pos(i.line-1,0),f=c(!1);if(f&&!f.cleared&&"unfold"!==a){var d=n(t,s,f);e.on(d,"mousedown",(function(t){p.clear(),e.e_preventDefault(t)}));var p=t.markText(f.from,f.to,{replacedWith:d,clearOnEnter:o(t,s,"clearOnEnter"),__isFold:!0});p.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,f.from,f.to)}}function n(e,t,n){var r=o(e,t,"widget");if("function"==typeof r&&(r=r(n.from,n.to)),"string"==typeof r){var i=document.createTextNode(r);(r=document.createElement("span")).appendChild(i),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}r(t,"doFold"),r(n,"makeWidget"),e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0})),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"fold")}))},e.commands.unfoldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"unfold")}))},e.registerHelper("fold","combine",(function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}})),e.registerHelper("fold","auto",(function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}}));var i={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function o(e,t,n){if(t&&void 0!==t[n])return t[n];var r=e.options.foldOptions;return r&&void 0!==r[n]?r[n]:i[n]}e.defineOption("foldOptions",null),r(o,"getOption"),e.defineExtension("foldOption",(function(e,t){return o(this,e,t)}))}(t.a.exports),function(e){e.defineOption("foldGutter",!1,(function(t,r,o){o&&o!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",c),t.off("changes",f),t.off("viewportChange",d),t.off("fold",p),t.off("unfold",p),t.off("swapDoc",f)),r&&(t.state.foldGutter=new n(i(r)),u(t),t.on("gutterClick",c),t.on("changes",f),t.on("viewportChange",d),t.on("fold",p),t.on("unfold",p),t.on("swapDoc",f))}));var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function i(e){return!0===e&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function o(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold){var o=r[i].find(-1);if(o&&o.line===n)return r[i]}}function s(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function a(e,n,r){var i=e.state.foldGutter.options,a=n-1,u=e.foldOption(i,"minFoldSize"),c=e.foldOption(i,"rangeFinder"),f="string"==typeof i.indicatorFolded&&l(i.indicatorFolded),d="string"==typeof i.indicatorOpen&&l(i.indicatorOpen);e.eachLine(n,r,(function(n){++a;var r=null,l=n.gutterMarkers;if(l&&(l=l[i.gutter]),o(e,a)){if(f&&l&&f.test(l.className))return;r=s(i.indicatorFolded)}else{var p=t(a,0),h=c&&c(e,p);if(h&&h.to.line-h.from.line>=u){if(d&&l&&d.test(l.className))return;r=s(i.indicatorOpen)}}(r||l)&&e.setGutterMarker(n,i.gutter,r)}))}function l(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function u(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){a(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function c(e,n,r){var i=e.state.foldGutter;if(i){var s=i.options;if(r==s.gutter){var a=o(e,n);a?a.clear():e.foldCode(t(n,0),s)}}}function f(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){u(e)}),n.foldOnChangeTimeSpan||600)}}function d(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?u(e):e.operation((function(){n.from<t.from&&(a(e,n.from,t.from),t.from=n.from),n.to>t.to&&(a(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function p(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&a(e,r,r+1)}}r(n,"State"),r(i,"parseOptions"),r(o,"isFolded"),r(s,"marker"),r(a,"updateFoldInfo"),r(l,"classTest"),r(u,"updateInViewport"),r(c,"onGutterClick"),r(f,"onChange"),r(d,"onViewportChange"),r(p,"onFold")}(t.a.exports);var s=o.exports,a=Object.freeze(i({__proto__:null,[Symbol.toStringTag]:"Module",default:s},[o.exports]));e.f=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(2),n(10)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.j=void 0;var r=Object.defineProperty,i=(e,t)=>r(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(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}i(o,"_mergeNamespaces");var s={exports:{}};!function(e){function t(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function n(e){return e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}function r(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.defineOption("search",{bottom:!1}),i(t,"dialog"),i(n,"getJumpDialog"),i(r,"interpretLine"),e.commands.jumpToLine=function(e){var i=e.getCursor();t(e,n(e),e.phrase("Jump to line:"),i.line+1+":"+i.ch,(function(t){var n;if(t)if(n=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(t))e.setCursor(r(e,n[1]),Number(n[2]));else if(n=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(t)){var o=Math.round(e.lineCount()*Number(n[1])/100);/^[-+]/.test(n[1])&&(o=i.line+o+1),e.setCursor(o-1,i.ch)}else(n=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(t))&&e.setCursor(r(e,n[1]),i.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(t.a.exports,n.a.exports);var a=s.exports,l=Object.freeze(o({__proto__:null,[Symbol.toStringTag]:"Module",default:a},[s.exports]));e.j=l})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(2),n(9),n(32)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.s=void 0;var i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function s(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}o(s,"_mergeNamespaces");var a={exports:{}};!function(e){var t=e.commands,n=e.Pos;function r(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var s,a="start",l=r.ch,u=l,c=i<0?0:o.length,f=0;u!=c;u+=i,f++){var d=o.charAt(i<0?u-1:u),p="_"!=d&&e.isWordChar(d)?"w":"o";if("w"==p&&d.toUpperCase()==d&&(p="W"),"start"==a)"o"!=p?(a="in",s=p):l=u+i;else if("in"==a&&s!=p){if("w"==s&&"W"==p&&i<0&&u--,"W"==s&&"w"==p&&i>0){if(u==l+1){s="w";continue}u--}break}}return n(r.line,u)}function i(e,t){e.extendSelectionsBy((function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()}))}function s(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,s=0;s<e;s++){var a=t.listSelections()[s].head;if(!(a.line<=o)){var l=n(a.line+(r?0:1),0);t.replaceRange("\n",l,null,"+insertLine"),t.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=a.line+1}}t.setSelections(i)})),t.execCommand("indentAuto")}function a(t,r){for(var i=r.ch,o=i,s=t.getLine(r.line);i&&e.isWordChar(s.charAt(i-1));)--i;for(;o<s.length&&e.isWordChar(s.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:s.slice(i,o)}}function l(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],s=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),a=e.findPosV(o.head,t,"line",o.head.goalColumn);s.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,a.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var l={anchor:s,head:a};r.push(o),r.push(l)}e.setSelections(r)}function u(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}function c(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var s=r[o],a=s.head,l=t.scanForBracket(a,-1);if(!l)return!1;for(;;){var u=t.scanForBracket(a,1);if(!u)return!1;if(u.ch=="(){}[]".charAt("(){}[]".indexOf(l.ch)+1)){var c=n(l.pos.line,l.pos.ch+1);if(0!=e.cmpPos(c,s.from())||0!=e.cmpPos(u.pos,s.to())){i.push({anchor:c,head:u.pos});break}if(!(l=t.scanForBracket(l.pos,-1)))return!1}a=n(u.pos.line,u.pos.ch+1)}}return t.setSelections(i),!0}function f(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function d(t,r,i){if(t.isReadOnly())return e.Pass;for(var o,s=t.listSelections(),a=[],l=0;l<s.length;l++){var u=s[l];if(!u.empty()){for(var c=u.from().line,f=u.to().line;l<s.length-1&&s[l+1].from().line==f;)f=s[++l].to().line;s[l].to().ch||f--,a.push(c,f)}}a.length?o=!0:a.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],s=0;s<a.length;s+=2){var l=a[s],u=a[s+1],c=n(l,0),f=n(u),d=t.getRange(c,f,!1);r?d.sort((function(e,t){return e<t?-i:e==t?0:i})):d.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-i:e==t?0:i})),t.replaceRange(d,c,f),o&&e.push({anchor:c,head:n(u+1,0)})}o&&t.setSelections(e,0)}))}function p(t,n){t.operation((function(){for(var r=t.listSelections(),i=[],o=[],s=0;s<r.length;s++)(u=r[s]).empty()?(i.push(s),o.push("")):o.push(n(t.getRange(u.from(),u.to())));var l;for(t.replaceSelections(o,"around","case"),s=i.length-1;s>=0;s--){var u=r[i[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=a(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}}))}function h(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=a(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function m(e,t){var r=h(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}o(r,"findPosSubword"),o(i,"moveSubword"),t.goSubwordLeft=function(e){i(e,-1)},t.goSubwordRight=function(e){i(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),s=t[i].to(),a=o.line;a<=s.line;++a)s.line>o.line&&a==s.line&&0==s.ch||r.push({anchor:a==o.line?o:n(a,0),head:a==s.line?s:n(a)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},o(s,"insertLine"),t.insertLineAfter=function(e){return s(e,!1)},t.insertLineBefore=function(e){return s(e,!0)},o(a,"wordAt"),t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),o=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var s=a(t,r);if(!s.word)return;t.setSelection(s.from,s.to),o=!0}else{var l=t.getRange(r,i),c=o?new RegExp("\\b"+l+"\\b"):l,f=t.getSearchCursor(c,i),d=f.findNext();if(d||(d=(f=t.getSearchCursor(c,n(t.firstLine(),0))).findNext()),!d||u(t.listSelections(),f.from(),f.to()))return;t.addSelection(f.from(),f.to())}o&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=i})))},o(l,"addCursorToSelection"),t.addCursorToPrevLine=function(e){l(e,-1)},t.addCursorToNextLine=function(e){l(e,1)},o(u,"isSelectedRange"),o(c,"selectBetweenBrackets"),t.selectScope=function(e){c(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!c(t))return e.Pass},o(f,"puncType"),t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,f(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,f(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,s=[],a=0;a<r.length;a++){var l=r[a],u=l.from().line-1,c=l.to().line;s.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--c,u>o?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],a=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+a,n(t.lastLine()),null,"+swapLine"):t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.setSelections(s),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,s=r.length-1;s>=0;s--){var a=r[s],l=a.to().line+1,u=a.from().line;0!=a.to().ch||a.empty()||l--,l<o?i.push(l,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],s=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],s=o.from(),a=s.line,l=o.to().line;i<t.length-1&&t[i+1].from().line==l;)l=t[++i].to().line;r.push({start:a,end:l,anchor:!o.empty()&&s})}e.operation((function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var s,a=r[o],l=a.anchor&&n(a.anchor.line-t,a.anchor.ch),u=a.start;u<=a.end;u++){var c=u-t;u==a.end&&(s=n(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",n(c),n(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}i.push({anchor:l||s,head:s})}e.setSelections(i,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()}))},o(d,"sortLines"),t.sortLines=function(e){d(e,!0,1)},t.reverseSortLines=function(e){d(e,!0,-1)},t.sortLinesInsensitive=function(e){d(e,!1,1)},t.reverseSortLinesInsensitive=function(e){d(e,!1,-1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),s=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),a=0;a<s.length;a++)if(s[a].sublimeBookmark){s[a].clear();for(var l=0;l<n.length;l++)n[l]==s[a]&&n.splice(l--,1);break}a==s.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},o(p,"modifyWordOrSelection"),t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var s=r[o].head,a=t.getRange({line:s.line,ch:0},s),l=e.countColumn(a,null,t.getOption("tabSize")),u=t.findPosH(s,-1,"char",!1);if(a&&!/\S/.test(a)&&l%i==0){var c=new n(s.line,e.findColumn(a,l-i,i));c.ch!=s.ch&&(u=c)}t.replaceRange("",u,s,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){p(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){p(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},o(h,"getTarget"),o(m,"findAndGoTo"),t.findUnder=function(e){m(e,!0)},t.findUnderPrevious=function(e){m(e,!1)},t.findAllUnder=function(e){var t=h(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var g=e.keyMap;g.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(g.macSublime),g.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(g.pcSublime);var v=g.default==g.macDefault;g.sublime=v?g.macSublime:g.pcSublime}(t.a.exports,n.a.exports,r.a.exports);var l=a.exports,u=Object.freeze(s({__proto__:null,[Symbol.toStringTag]:"Module",default:l},[a.exports]));e.s=u})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(2),n(9),n(10)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.s=void 0;var i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function s(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}o(s,"_mergeNamespaces");var a={exports:{}};!function(e){function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new n)}function i(e){return"string"==typeof e&&e==e.toLowerCase()}function s(e,t,n){return e.getSearchCursor(t,n,{caseFold:i(t),multiline:!0})}function a(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){m(e)},onKeyDown:i,bottom:e.options.search.bottom})}function l(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function u(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}function c(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function f(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=c(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function d(e,n,r){n.queryText=r,n.query=f(r),e.removeOverlay(n.overlay,i(n.query)),n.overlay=t(n.query,i(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,i(n.query)))}function p(t,n,i,s){var u=r(t);if(u.query)return h(t,n);var c=t.getSelection()||u.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),i&&t.openDialog){var f=null,p=o((function(n,r){e.e_stop(r),n&&(n!=u.queryText&&(d(t,u,n),u.posFrom=u.posTo=t.getCursor()),f&&(f.style.opacity=1),h(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((f=r).style.opacity=.4)})))}),"searchNext");a(t,v(t),c,p,(function(n,i){var o=e.keyName(n),s=t.getOption("extraKeys"),a=s&&s[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==a||"findPrev"==a||"findPersistentNext"==a||"findPersistentPrev"==a?(e.e_stop(n),d(t,r(t),i),t.execCommand(a)):"find"!=a&&"findPersistent"!=a||(e.e_stop(n),p(i,n))})),s&&c&&(d(t,u,c),h(t,n))}else l(t,v(t),"Search for:",c,(function(e){e&&!u.query&&t.operation((function(){d(t,u,e),u.posFrom=u.posTo=t.getCursor(),h(t,n)}))}))}function h(t,n,i){t.operation((function(){var o=r(t),a=s(t,o.query,n?o.posFrom:o.posTo);(a.find(n)||(a=s(t,o.query,n?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(n))&&(t.setSelection(a.from(),a.to()),t.scrollIntoView({from:a.from(),to:a.to()},20),o.posFrom=a.from(),o.posTo=a.to(),i&&i(a.from(),a.to()))}))}function m(e){e.operation((function(){var t=r(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function g(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i<arguments.length;i++){var o=arguments[i];n.appendChild("string"==typeof o?document.createTextNode(o):o)}return n}function v(e){return g("",null,g("span",{className:"CodeMirror-search-label"},e.phrase("Search:"))," ",g("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",g("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function y(e){return g("",null," ",g("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",g("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function b(e){return g("",null,g("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",g("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function E(e){return g("",null,g("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",g("button",{},e.phrase("Yes"))," ",g("button",{},e.phrase("No"))," ",g("button",{},e.phrase("All"))," ",g("button",{},e.phrase("Stop")))}function T(e,t,n){e.operation((function(){for(var r=s(e,t);r.findNext();)if("string"!=typeof t){var i=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,(function(e,t){return i[t]})))}else r.replace(n)}))}function _(e,t){if(!e.getOption("readOnly")){var n=e.getSelection()||r(e).lastQuery,i=t?e.phrase("Replace all:"):e.phrase("Replace:"),a=g("",null,g("span",{className:"CodeMirror-search-label"},i),y(e));l(e,a,i,n,(function(n){n&&(n=f(n),l(e,b(e),e.phrase("Replace with:"),"",(function(r){if(r=c(r),t)T(e,n,r);else{m(e);var i=s(e,n,e.getCursor("from")),a=o((function(){var t,o=i.from();!(t=i.findNext())&&(i=s(e,n),!(t=i.findNext())||o&&i.from().line==o.line&&i.from().ch==o.ch)||(e.setSelection(i.from(),i.to()),e.scrollIntoView({from:i.from(),to:i.to()}),u(e,E(e),e.phrase("Replace?"),[function(){l(t)},a,function(){T(e,n,r)}]))}),"advance"),l=o((function(e){i.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(t,n){return e[n]}))),a()}),"doReplace");a()}})))}))}}e.defineOption("search",{bottom:!1}),o(t,"searchOverlay"),o(n,"SearchState"),o(r,"getSearchState"),o(i,"queryCaseInsensitive"),o(s,"getSearchCursor"),o(a,"persistentDialog"),o(l,"dialog"),o(u,"confirmDialog"),o(c,"parseString"),o(f,"parseQuery"),o(d,"startSearch"),o(p,"doSearch"),o(h,"findNext"),o(m,"clearSearch"),o(g,"el"),o(v,"getQueryDialog"),o(y,"getReplaceQueryDialog"),o(b,"getReplacementQueryDialog"),o(E,"getDoReplaceConfirm"),o(T,"replaceAll"),o(_,"replace"),e.commands.find=function(e){m(e),p(e)},e.commands.findPersistent=function(e){m(e),p(e,!1,!0)},e.commands.findPersistentNext=function(e){p(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){p(e,!0,!0,!0)},e.commands.findNext=p,e.commands.findPrev=function(e){p(e,!0)},e.commands.clearSearch=m,e.commands.replace=_,e.commands.replaceAll=function(e){_(e,!0)}}(t.a.exports,n.a.exports,r.a.exports);var l=a.exports,u=Object.freeze(s({__proto__:null,[Symbol.toStringTag]:"Module",default:l},[a.exports]));e.s=u})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.R=e.P=e.C=void 0;var t=Object.defineProperty,n=(e,n)=>t(e,"name",{value:n,configurable:!0});class r{constructor(e){var t=this;this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=null,o=null;return"string"==typeof e?(o=new RegExp(e,r?"i":"g").test(t._sourceText.substr(t._pos,e.length)),i=e):e instanceof RegExp&&(o=t._sourceText.slice(t._pos).match(e),i=null==o?void 0:o[0]),!(null==o||!("string"==typeof e||o instanceof Array&&t._sourceText.startsWith(o[0],t._pos)))&&(n&&(t._start=t._pos,i&&i.length&&(t._pos+=i.length)),o)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}e.C=r,n(r,"CharacterStream");class i{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new o(e,t)}setEnd(e,t){this.end=new o(e,t)}}e.R=i,n(i,"Range");class o{constructor(e,t){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}}e.P=o,n(o,"Position")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(3),n(11),n(12)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.a=u,e.b=c,e.c=f,e.d=d,e.e=p,e.g=s;var i=Object.defineProperty,o=(e,t)=>i(e,"name",{value:t,configurable:!0});function s(e,n){const i={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,r.f)(n,n=>{var r,o;switch(n.kind){case"Query":case"ShortQuery":i.type=e.getQueryType();break;case"Mutation":i.type=e.getMutationType();break;case"Subscription":i.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":n.type&&(i.type=e.getType(n.type));break;case"Field":case"AliasedField":i.fieldDef=i.type&&n.name?a(e,i.parentType,n.name):null,i.type=null===(r=i.fieldDef)||void 0===r?void 0:r.type;break;case"SelectionSet":i.parentType=i.type?(0,t.getNamedType)(i.type):null;break;case"Directive":i.directiveDef=n.name?e.getDirective(n.name):null;break;case"Arguments":const s=n.prevState?"Field"===n.prevState.kind?i.fieldDef:"Directive"===n.prevState.kind?i.directiveDef:"AliasedField"===n.prevState.kind?n.prevState.name&&a(e,i.parentType,n.prevState.name):null:null;i.argDefs=s?s.args:null;break;case"Argument":if(i.argDef=null,i.argDefs)for(let e=0;e<i.argDefs.length;e++)if(i.argDefs[e].name===n.name){i.argDef=i.argDefs[e];break}i.inputType=null===(o=i.argDef)||void 0===o?void 0:o.type;break;case"EnumValue":const u=i.inputType?(0,t.getNamedType)(i.inputType):null;i.enumValue=u instanceof t.GraphQLEnumType?l(u.getValues(),e=>e.value===n.name):null;break;case"ListValue":const c=i.inputType?(0,t.getNullableType)(i.inputType):null;i.inputType=c instanceof t.GraphQLList?c.ofType:null;break;case"ObjectValue":const f=i.inputType?(0,t.getNamedType)(i.inputType):null;i.objectFieldDefs=f instanceof t.GraphQLInputObjectType?f.getFields():null;break;case"ObjectField":const d=n.name&&i.objectFieldDefs?i.objectFieldDefs[n.name]:null;i.inputType=null==d?void 0:d.type;break;case"NamedType":i.type=n.name?e.getType(n.name):null}}),i}function a(e,r,i){return i===n.S.name&&e.getQueryType()===r?n.S:i===n.T.name&&e.getQueryType()===r?n.T:i===n.a.name&&(0,t.isCompositeType)(r)?n.a:r&&r.getFields?r.getFields()[i]:void 0}function l(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}function u(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:h(e.fieldDef)?null:e.parentType}}function c(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function f(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:h(e.fieldDef)?null:e.parentType}}function d(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?(0,t.getNamedType)(e.inputType):void 0}}function p(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function h(e){return"__"===e.name.slice(0,2)}o(s,"getTypeInfo"),o(a,"getFieldDef"),o(l,"find"),o(u,"getFieldReference"),o(c,"getDirectiveReference"),o(f,"getArgumentReference"),o(d,"getEnumValueReference"),o(p,"getTypeReference"),o(h,"isMetaField")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(2),n(5),n(3),n(0),n(6)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";var o=Object.defineProperty,s=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}function l(e){const t=e.state.info.options;return(null==t?void 0:t.hoverTime)||500}function u(t,n){const r=t.state.info,i=n.target||n.srcElement;if(!(i instanceof HTMLElement))return;if("SPAN"!==i.nodeName||void 0!==r.hoverTimeout)return;const o=i.getBoundingClientRect(),a=s((function(){clearTimeout(r.hoverTimeout),r.hoverTimeout=setTimeout(f,d)}),"onMouseMove"),u=s((function(){e.C.off(document,"mousemove",a),e.C.off(t.getWrapperElement(),"mouseout",u),clearTimeout(r.hoverTimeout),r.hoverTimeout=void 0}),"onMouseOut"),f=s((function(){e.C.off(document,"mousemove",a),e.C.off(t.getWrapperElement(),"mouseout",u),r.hoverTimeout=void 0,c(t,o)}),"onHover"),d=l(t);r.hoverTimeout=setTimeout(f,d),e.C.on(document,"mousemove",a),e.C.on(t.getWrapperElement(),"mouseout",u)}function c(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),r=e.state.info.options,i=r.render||e.getHelper(n,"info");if(i){const o=e.getTokenAt(n,!0);if(o){const s=i(o,r,e,n);s&&f(e,t,s)}}}function f(t,n,r){const i=document.createElement("div");i.className="CodeMirror-info",i.appendChild(r),document.body.appendChild(i);const o=i.getBoundingClientRect(),a=window.getComputedStyle(i),l=o.right-o.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),u=o.bottom-o.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom);let c=n.bottom;u>window.innerHeight-n.bottom-15&&n.top>window.innerHeight-n.bottom&&(c=n.top-u),c<0&&(c=n.bottom);let f,d=Math.max(0,window.innerWidth-l-15);d>n.left&&(d=n.left),i.style.opacity="1",i.style.top=c+"px",i.style.left=d+"px";const p=s((function(){clearTimeout(f)}),"onMouseOverPopup"),h=s((function(){clearTimeout(f),f=setTimeout(m,200)}),"onMouseOut"),m=s((function(){e.C.off(i,"mouseover",p),e.C.off(i,"mouseout",h),e.C.off(t.getWrapperElement(),"mouseout",h),i.style.opacity?(i.style.opacity="0",setTimeout(()=>{i.parentNode&&i.parentNode.removeChild(i)},600)):i.parentNode&&i.parentNode.removeChild(i)}),"hidePopup");e.C.on(i,"mouseover",p),e.C.on(i,"mouseout",h),e.C.on(t.getWrapperElement(),"mouseout",h)}e.C.defineOption("info",!1,(t,n,r)=>{if(r&&r!==e.C.Init){const n=t.state.info.onMouseOver;e.C.off(t.getWrapperElement(),"mouseover",n),clearTimeout(t.state.info.hoverTimeout),delete t.state.info}if(n){const r=t.state.info=a(n);r.onMouseOver=u.bind(null,t),e.C.on(t.getWrapperElement(),"mouseover",r.onMouseOver)}}),s(a,"createState"),s(l,"getHoverTime"),s(u,"onMouseOver"),s(c,"onMouseHover"),s(f,"showPopup")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(42),n(19),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,s,a,l,u,c,f,d,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,p.GraphiQL.createFetcher=n.createGraphiQLFetcher;var h=p.GraphiQL;e.default=h})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=function(e){var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function a(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(e){a=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),s=new k(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=E(s,n);if(a){if(a===c)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,s),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var c={};function f(){}function d(){}function p(){}var h={};h[i]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(x([])));g&&g!==t&&n.call(g,i)&&(h=g);var v=p.prototype=f.prototype=Object.create(h);function y(e){["next","throw","return"].forEach((function(t){a(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function s(){return new t((function(r,s){!function r(i,o,s,a){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,s,a)}),(function(e){r("throw",e,s,a)})):t.resolve(f).then((function(e){c.value=e,s(c)}),(function(e){return r("throw",e,s,a)}))}a(l.arg)}(i,o,r,s)}))}return r=r?r.then(s,s):s()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=v.constructor=p,p.constructor=d,d.displayName=a(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,a(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),b.prototype[o]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var s=new b(l(t,n,r,i),o);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},y(v),a(v,s,"Generator"),v[i]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e){return"object"==typeof e&&"subscribe"in e&&"function"==typeof e.subscribe}function n(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}Object.defineProperty(e,"__esModule",{value:!0}),e.fetcherReturnToPromise=function(e){return Promise.resolve(e).then(e=>{return n(e)?(i=e,new Promise((e,t)=>{var n;const r=null===(n=("return"in i?i:i[Symbol.asyncIterator]()).return)||void 0===n?void 0:n.bind(i);("next"in i?i:i[Symbol.asyncIterator]()).next.bind(i)().then(t=>{e(t.value),null==r||r()}).catch(e=>{t(e)})})):t(e)?(r=e,new Promise((e,t)=>{const n=r.subscribe({next:t=>{e(t),n.unsubscribe()},error:t,complete:()=>{t(new Error("no value resolved"))}})})):e;var r,i})},e.isAsyncIterable=n,e.isObservable=t,e.isPromise=function(e){return"object"==typeof e&&"function"==typeof e.then}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(45),n(46)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={createGraphiQLFetcher:!0};Object.defineProperty(e,"createGraphiQLFetcher",{enumerable:!0,get:function(){return n.createGraphiQLFetcher}}),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(r,n)||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(47)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createGraphiQLFetcher=function(e){let n;if("undefined"!=typeof window&&window.fetch&&(n=window.fetch),null!==(null==e?void 0:e.enableIncrementalDelivery)&&!1===e.enableIncrementalDelivery||(e.enableIncrementalDelivery=!0),e.fetch&&(n=e.fetch),!n)throw Error("No valid fetcher implementation available");const r=(0,t.createSimpleFetcher)(e,n),i=(0,t.getWsFetcher)(e),o=e.enableIncrementalDelivery?(0,t.createMultipartFetcher)(e,n):r;return(n,s)=>{if("IntrospectionQuery"===n.operationName)return(e.schemaFetcher||r)(n,s);if((0,t.isSubscriptionWithName)(null==s?void 0:s.documentAST,n.operationName||void 0)){if(!i)throw Error("Your GraphiQL createFetcher is not properly configured for websocket subscriptions yet. "+(e.subscriptionUrl?`Provided URL ${e.subscriptionUrl} failed`:"Please provide subscriptionUrl, wsClient or legacyClient option first."));return i(n)}return o(n,s)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(3),n(48),n(49)],void 0===(o="function"==typeof(r=function(e,t,r,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSubscriptionWithName=e.getWsFetcher=e.createWebsocketsFetcherFromUrl=e.createWebsocketsFetcherFromClient=e.createSimpleFetcher=e.createMultipartFetcher=e.createLegacyWebsocketsFetcher=void 0;var o=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},s=function(e){return this instanceof s?(this.v=e,this):new s(e)},a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}},l=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||l(e,t)}))})}function l(e,t){try{(n=i[e](t)).value instanceof s?Promise.resolve(n.value.v).then(u,c):f(o[0][2],n)}catch(e){f(o[0][3],e)}var n}function u(e){l("next",e)}function c(e){l("throw",e)}function f(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}};e.isSubscriptionWithName=(e,n)=>{let r=!1;return(0,t.visit)(e,{OperationDefinition(e){var t;n===(null===(t=e.name)||void 0===t?void 0:t.value)&&"subscription"===e.operation&&(r=!0)}}),r},e.createSimpleFetcher=(e,t)=>(n,r)=>o(void 0,void 0,void 0,(function*(){return(yield t(e.url,{method:"POST",body:JSON.stringify(n),headers:Object.assign(Object.assign({"content-type":"application/json"},e.headers),null==r?void 0:r.headers)})).json()}));const u=(e,t)=>{let r;try{const{createClient:i}=n(50);return r=i({url:e,connectionParams:t}),c(r)}catch(t){if((e=>"object"==typeof e&&null!==e&&"code"in e)(t)&&"MODULE_NOT_FOUND"===t.code)throw Error("You need to install the 'graphql-ws' package to use websockets when passing a 'subscriptionUrl'");console.error(`Error creating websocket client for:\n${e}\n\n${t}`)}};e.createWebsocketsFetcherFromUrl=u;const c=e=>t=>(0,i.makeAsyncIterableIteratorFromSink)(n=>e.subscribe(t,Object.assign(Object.assign({},n),{error:e=>{e instanceof CloseEvent?n.error(new Error(`Socket closed with event ${e.code} ${e.reason||""}`.trim())):n.error(e)}})));e.createWebsocketsFetcherFromClient=c;const f=e=>t=>{const n=e.request(t);return(0,i.makeAsyncIterableIteratorFromSink)(e=>n.subscribe(e).unsubscribe)};e.createLegacyWebsocketsFetcher=f,e.createMultipartFetcher=(e,t)=>function(n,o){return l(this,arguments,(function*(){var l,u;const c=yield s(t(e.url,{method:"POST",body:JSON.stringify(n),headers:Object.assign(Object.assign({"content-type":"application/json",accept:"application/json, multipart/mixed"},e.headers),null==o?void 0:o.headers)}).then(e=>(0,r.meros)(e,{multiple:!0})));if(!(0,i.isAsyncIterable)(c))return yield s(yield yield s(c.json()));try{for(var f,d=a(c);!(f=yield s(d.next())).done;){const e=f.value;if(e.some(e=>!e.json)){const t=e.map(e=>`Headers::\n${e.headers}\n\nBody::\n${e.body}`);throw new Error("Expected multipart chunks to be of json type. got:\n"+t)}yield yield s(e.map(e=>e.body))}}catch(e){l={error:e}}finally{try{f&&!f.done&&(u=d.return)&&(yield s(u.call(d)))}finally{if(l)throw l.error}}}))},e.getWsFetcher=e=>{if(e.wsClient)return c(e.wsClient);if(e.subscriptionUrl)return u(e.subscriptionUrl,e.wsConnectionParams);const t=e.legacyClient||e.legacyWsClient;return t?f(t):void 0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.r(t),n.d(t,"meros",(function(){return i}));const r=new TextDecoder;async function i(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;const n=e.headers.get("content-type");if(!n||!~n.indexOf("multipart/mixed"))return e;const i=n.indexOf("boundary=");return async function*(e,t,n){const i=e.getReader(),o=!n||!n.multiple;let s="",a=!0,l=[];try{let e;e:for(;!(e=await i.read()).done;){const n=r.decode(e.value),i=n.indexOf(t);let u=s.length;for(s+=n,~i?u+=i:u=s.indexOf(t),l=[];~u;){const e=s.substring(0,u),n=s.substring(u+t.length);if(a)a=!1;else{const t={},r=e.indexOf("\r\n\r\n"),i=s.slice(0,r).toString().trim().split(/\r\n/);let a;for(;a=i.shift();)a=a.split(": "),t[a.shift().toLowerCase()]=a.join(": ");let u=e.substring(r+"\r\n\r\n".length,e.lastIndexOf("\r\n")),c=!1;if(a=t["content-type"],a&&~a.indexOf("application/json"))try{u=JSON.parse(u),c=!0}catch(e){}if(a={headers:t,body:u,json:c},o?yield a:l.push(a),"--"===n.substring(0,2))break e}s=n,u=s.indexOf(t)}l.length&&(yield l)}}finally{l.length&&(yield l),i.releaseLock()}}(e.body,"--"+(~i?n.substring(i+9).trim().replace(/['"]/g,""):"-"),t)}},function(e,t,n){"use strict";function r(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}n.r(t),n.d(t,"applyAsyncIterableIteratorToSink",(function(){return l})),n.d(t,"isAsyncIterable",(function(){return u})),n.d(t,"makeAsyncIterableIteratorFromSink",(function(){return a})),n.d(t,"makePushPullAsyncIterableIterator",(function(){return s}));const i=Symbol(),o=Symbol();function s(){let e=!0;const t=[];let n=r();const s=r(),a=async function*(){for(;;)if(t.length>0)yield t.shift();else{const e=await Promise.race([n.promise,s.promise]);if(e===i)break;if(e!==o)throw e}}();const l=a.return.bind(a);a.return=(...t)=>(e=!1,s.resolve(i),l(...t));const u=a.throw.bind(a);return a.throw=t=>(e=!1,s.resolve(t),u(t)),{pushValue:function(i){!1!==e&&(t.push(i),n.resolve(o),n=r())},asyncIterableIterator:a}}const a=e=>{const{pushValue:t,asyncIterableIterator:n}=s(),r=e({next:e=>{t(e)},complete:()=>{n.return()},error:e=>{n.throw(e)}}),i=n.return;let o=void 0;return n.return=()=>(void 0===o&&(r(),o=i()),o),n};function l(e,t){return(async()=>{try{for await(const n of e)t.next(n);t.complete()}catch(e){t.error(e)}})(),()=>{var t;null===(t=e.return)||void 0===t||t.call(e)}}function u(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator&&Symbol.asyncIterator in e)}},function(e,t,n){(function(n){var r,i,o;!function(n,s){i=[],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,(function(){"use strict";(function(e){const t=Object.prototype.hasOwnProperty;function r(e){return"object"==typeof e&&null!==e}function i(e,n){return t.call(e,n)}function o(e,n){return t.call(e,n)&&r(e[n])}function s(e,n){return t.call(e,n)&&"string"==typeof e[n]}function a(e,t){return e.length<124?e:t}var l,u;function c(t){if(r(t)){if(!s(t,"type"))return!1;switch(t.type){case e.MessageType.ConnectionInit:return!i(t,"payload")||void 0===t.payload||r(t.payload);case e.MessageType.ConnectionAck:case e.MessageType.Ping:case e.MessageType.Pong:return!i(t,"payload")||void 0===t.payload||r(t.payload);case e.MessageType.Subscribe:return s(t,"id")&&o(t,"payload")&&(!i(t.payload,"operationName")||void 0===t.payload.operationName||null===t.payload.operationName||"string"==typeof t.payload.operationName)&&s(t.payload,"query")&&(!i(t.payload,"variables")||void 0===t.payload.variables||null===t.payload.variables||o(t.payload,"variables"))&&(!i(t.payload,"extensions")||void 0===t.payload.extensions||null===t.payload.extensions||o(t.payload,"extensions"));case e.MessageType.Next:return s(t,"id")&&o(t,"payload");case e.MessageType.Error:return s(t,"id")&&(n=t.payload,Array.isArray(n)&&n.length>0&&n.every(e=>"message"in e));case e.MessageType.Complete:return s(t,"id");default:return!1}}var n;return!1}function f(e,t){if(c(e))return e;if("string"!=typeof e)throw new Error("Message not parsable");const n=JSON.parse(e,t);if(!c(n))throw new Error("Invalid message");return n}function d(e,t){if(!c(e))throw new Error("Cannot stringify invalid message");return JSON.stringify(e,t)}function p(e){return r(e)&&"code"in e&&"reason"in e}e.CloseCode=void 0,(l=e.CloseCode||(e.CloseCode={}))[l.InternalServerError=4500]="InternalServerError",l[l.InternalClientError=4005]="InternalClientError",l[l.BadRequest=4400]="BadRequest",l[l.BadResponse=4004]="BadResponse",l[l.Unauthorized=4401]="Unauthorized",l[l.Forbidden=4403]="Forbidden",l[l.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",l[l.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",l[l.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",l[l.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",l[l.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e.MessageType=void 0,(u=e.MessageType||(e.MessageType={})).ConnectionInit="connection_init",u.ConnectionAck="connection_ack",u.Ping="ping",u.Pong="pong",u.Subscribe="subscribe",u.Next="next",u.Error="error",u.Complete="complete",e.GRAPHQL_TRANSPORT_WS_PROTOCOL="graphql-transport-ws",e.createClient=function(t){const{url:r,connectionParams:i,lazy:o=!0,onNonLazyError:s=console.error,lazyCloseTimeout:l=0,keepAlive:u=0,disablePong:c,connectionAckWaitTimeout:h=0,retryAttempts:m=5,retryWait:g=async function(e){let t=1e3;for(let n=0;n<e;n++)t*=2;await new Promise(e=>setTimeout(e,t+Math.floor(2700*Math.random()+300)))},isFatalConnectionProblem:v=(e=>!p(e)),on:y,webSocketImpl:b,generateID:E=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:T,jsonMessageReviver:_}=t;let k;if(b){if(!("function"==typeof(x=b)&&"constructor"in x&&"CLOSED"in x&&"CLOSING"in x&&"CONNECTING"in x&&"OPEN"in x))throw new Error("Invalid WebSocket implementation provided");k=b}else"undefined"!=typeof WebSocket?k=WebSocket:void 0!==n?k=n.WebSocket||n.MozWebSocket:"undefined"!=typeof window&&(k=window.WebSocket||window.MozWebSocket);var x;if(!k)throw new Error("WebSocket implementation missing");const C=k,w=(()=>{const e=(()=>{const e={};return{on:(t,n)=>(e[t]=n,()=>{delete e[t]}),emit(t){var n;"id"in t&&(null===(n=e[t.id])||void 0===n||n.call(e,t))}}})(),t={connecting:(null==y?void 0:y.connecting)?[y.connecting]:[],opened:(null==y?void 0:y.opened)?[y.opened]:[],connected:(null==y?void 0:y.connected)?[y.connected]:[],ping:(null==y?void 0:y.ping)?[y.ping]:[],pong:(null==y?void 0:y.pong)?[y.pong]:[],message:(null==y?void 0:y.message)?[e.emit,y.message]:[e.emit],closed:(null==y?void 0:y.closed)?[y.closed]:[],error:(null==y?void 0:y.error)?[y.error]:[]};return{onMessage:e.on,on(e,n){const r=t[e];return r.push(n),()=>{r.splice(r.indexOf(n),1)}},emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(const n of[...t[e]])n(...r)}}})();function S(e){const t=[w.on("error",n=>{t.forEach(e=>e()),e(n)}),w.on("closed",n=>{t.forEach(e=>e()),e(n)})]}let N,A=0,O=!1,I=0,D=!1;async function L(){const[t,n]=await(null!=N?N:N=new Promise((t,n)=>(async()=>{if(O){if(await g(I),!A)return N=void 0,n({code:1e3,reason:"All Subscriptions Gone"});I++}w.emit("connecting");const o=new C("function"==typeof r?await r():r,"graphql-transport-ws");let s,l;function p(){isFinite(u)&&u>0&&(clearTimeout(l),l=setTimeout(()=>{o.readyState===C.OPEN&&(o.send(d({type:e.MessageType.Ping})),w.emit("ping",!1,void 0))},u))}S(e=>{N=void 0,clearTimeout(s),clearTimeout(l),n(e)}),o.onerror=e=>w.emit("error",e),o.onclose=e=>w.emit("closed",e),o.onopen=async()=>{try{w.emit("opened",o);const t="function"==typeof i?await i():i;o.send(d(t?{type:e.MessageType.ConnectionInit,payload:t}:{type:e.MessageType.ConnectionInit},T)),isFinite(h)&&h>0&&(s=setTimeout(()=>{o.close(e.CloseCode.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},h)),p()}catch(t){w.emit("error",t),o.close(e.CloseCode.InternalClientError,a(t instanceof Error?t.message:new Error(t).message,"Internal client error"))}};let m=!1;o.onmessage=n=>{let{data:r}=n;try{const n=f(r,_);if(w.emit("message",n),"ping"===n.type||"pong"===n.type)return w.emit(n.type,!0,n.payload),void("pong"===n.type?p():c||(o.send(d(n.payload?{type:e.MessageType.Pong,payload:n.payload}:{type:e.MessageType.Pong})),w.emit("pong",!1,n.payload)));if(m)return;if(n.type!==e.MessageType.ConnectionAck)throw new Error("First message cannot be of type "+n.type);clearTimeout(s),m=!0,w.emit("connected",o,n.payload),O=!1,I=0,t([o,new Promise((e,t)=>S(t))])}catch(t){o.onmessage=null,w.emit("error",t),o.close(e.CloseCode.BadResponse,a(t instanceof Error?t.message:new Error(t).message,"Bad response"))}}})()));t.readyState===C.CLOSING&&await n;let o=()=>{};const s=new Promise(e=>o=e);return[t,o,Promise.race([s.then(()=>{if(!A){const e=()=>t.close(1e3,"Normal Closure");isFinite(l)&&l>0?setTimeout(()=>{A||t.readyState!==C.OPEN||e()},l):e()}}),n])]}function F(t){if(p(t)&&(n=t.code,![1e3,1001,1006,1005,1012,1013,1013].includes(n)&&n>=1e3&&n<=1999||[e.CloseCode.InternalServerError,e.CloseCode.InternalClientError,e.CloseCode.BadRequest,e.CloseCode.BadResponse,e.CloseCode.Unauthorized,e.CloseCode.SubprotocolNotAcceptable,e.CloseCode.SubscriberAlreadyExists,e.CloseCode.TooManyInitialisationRequests].includes(t.code)))throw t;var n;if(D)return!1;if(p(t)&&1e3===t.code)return A>0;if(!m||I>=m)throw t;if(v(t))throw t;return O=!0}return o||(async()=>{for(A++;;)try{const[,,e]=await L();await e}catch(e){try{if(!F(e))return}catch(e){return null==s?void 0:s(e)}}})(),{on:w.on,subscribe(t,n){const r=E();let i=!1,o=!1,s=()=>{A--,i=!0};return(async()=>{for(A++;;)try{const[a,l,u]=await L();if(i)return l();const c=w.onMessage(r,t=>{switch(t.type){case e.MessageType.Next:return void n.next(t.payload);case e.MessageType.Error:return o=!0,i=!0,n.error(t.payload),void s();case e.MessageType.Complete:return i=!0,void s()}});return a.send(d({id:r,type:e.MessageType.Subscribe,payload:t},T)),s=()=>{i||a.readyState!==C.OPEN||a.send(d({id:r,type:e.MessageType.Complete},T)),A--,i=!0,l()},void await u.finally(c)}catch(e){if(!F(e))return}})().then(()=>{o||n.complete()}).catch(e=>{n.error(e)}),()=>{i||s()}},async dispose(){if(D=!0,N){const[e]=await N;e.close(1e3,"Normal Closure")}}}},e.isMessage=c,e.parseMessage=f,e.stringifyMessage=d,Object.defineProperty(e,"__esModule",{value:!0})})(t)}))}).call(this,n(13))},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";function t(e){return JSON.stringify(e,null,2)}function n(e){return e instanceof Error?function(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}(e):e}Object.defineProperty(e,"__esModule",{value:!0}),e.formatError=function(e){return Array.isArray(e)?t({errors:e.map(e=>n(e))}):t({errors:[n(e)]})},e.formatResult=function(e){return t(e)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(53),n(54),n(55)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))})),Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))})),Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(3)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e){if(!("getFields"in e))return[];const n=e.getFields();if(n.id)return["id"];if(n.edges)return["edges"];if(n.node)return["node"];const r=[];return Object.keys(n).forEach(e=>{(0,t.isLeafType)(n[e].type)&&r.push(e)}),r}function r(e,t){if(0===t.length)return e;let n="",r=0;return t.forEach(t=>{let{index:i,string:o}=t;n+=e.slice(r,i)+o,r=i}),n+=e.slice(r),n}Object.defineProperty(e,"__esModule",{value:!0}),e.fillLeafs=function(e,i,o){const s=[];if(!e||!i)return{insertions:s,result:i};let a;try{a=(0,t.parse)(i)}catch(e){return{insertions:s,result:i}}const l=o||n,u=new t.TypeInfo(e);return(0,t.visit)(a,{leave(e){u.leave(e)},enter(e){if(u.enter(e),"Field"===e.kind&&!e.selectionSet){const n=function e(n,r){const i=(0,t.getNamedType)(n);if(!n||(0,t.isLeafType)(n))return;const o=r(i);return Array.isArray(o)&&0!==o.length&&"getFields"in i?{kind:t.Kind.SELECTION_SET,selections:o.map(n=>{const o=i.getFields()[n],s=o?o.type:null;return{kind:t.Kind.FIELD,name:{kind:t.Kind.NAME,value:n},selectionSet:e(s,r)}})}:void 0}(function(e){if(e)return e}(u.getType()),l);if(n&&e.loc){const r=function(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.substring(n,r)}(i,e.loc.start);s.push({index:e.loc.end,string:" "+(0,t.print)(n).replace(/\n/g,"\n"+r)})}}}}),{insertions:s,result:r(i,s)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(3)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeAst=function(e,n){const r=n?new t.TypeInfo(n):null,i=Object.create(null);for(const n of e.definitions)n.kind===t.Kind.FRAGMENT_DEFINITION&&(i[n.name.value]=n);const o={SelectionSet(e){const n=r?r.getParentType():null;let{selections:o}=e;return o=function e(n,r,i){var o;const s=i?(0,t.getNamedType)(i).name:null,a=[],l=[];for(let u of r){if("FragmentSpread"===u.kind){const e=u.name.value;if(!u.directives||0===u.directives.length){if(l.indexOf(e)>=0)continue;l.push(e)}const r=n[u.name.value];if(r){const{typeCondition:e,directives:n,selectionSet:i}=r;u={kind:t.Kind.INLINE_FRAGMENT,typeCondition:e,directives:n,selectionSet:i}}}if(u.kind===t.Kind.INLINE_FRAGMENT&&(!u.directives||0===(null===(o=u.directives)||void 0===o?void 0:o.length))){const t=u.typeCondition?u.typeCondition.name.value:null;if(!t||t===s){a.push(...e(n,u.selectionSet.selections,i));continue}}a.push(u)}return a}(i,o,n),o=function(e,t){var n;const r=new Map,i=[];for(const o of e)if("Field"===o.kind){const e=t(o),s=r.get(e);if(null===(n=o.directives)||void 0===n?void 0:n.length){const e=Object.assign({},o);i.push(e)}else if((null==s?void 0:s.selectionSet)&&o.selectionSet)s.selectionSet.selections=[...s.selectionSet.selections,...o.selectionSet.selections];else if(!s){const t=Object.assign({},o);r.set(e,t),i.push(t)}}else i.push(o);return i}(o,e=>e.alias?e.alias.value:e.name.value),Object.assign(Object.assign({},e),{selections:o})},FragmentDefinition:()=>null};return(0,t.visit)(e,r?(0,t.visitWithTypeInfo)(r,o):o)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSelectedOperationName=function(e,t,n){if(!n||n.length<1)return;const r=n.map(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value});if(t&&-1!==r.indexOf(t))return t;if(t&&e){const n=e.map(e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value}).indexOf(t);if(-1!==n&&n<r.length)return r[n]}return r[0]}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(57),n(58),n(20)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))})),Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))})),Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StorageAPI=void 0,e.StorageAPI=class{constructor(e){this.storage=e||(null===e?null:"undefined"!=typeof window?window.localStorage:null)}get(e){if(!this.storage)return null;const n=`${t}:${e}`,r=this.storage.getItem(n);return"null"===r||"undefined"===r?(this.storage.removeItem(n),null):r||null}set(e,n){let r=!1,i=null;if(this.storage){const o=`${t}:${e}`;if(n)try{this.storage.setItem(o,n)}catch(e){i=e instanceof Error?e:new Error(""+e),r=function(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}(this.storage,e)}else this.storage.removeItem(o)}return{isQuotaError:r,error:i}}};const t="graphiql"})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(3),n(20)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HistoryStore=void 0,e.HistoryStore=class{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=(e,t,n,r)=>{if(this.shouldSaveQuery(e,t,n,this.history.fetchRecent())){this.history.push({query:e,variables:t,headers:n,operationName:r});const i=this.history.items,o=this.favorite.items;this.queries=i.concat(o)}},this.history=new n.QueryStore("queries",this.storage,this.maxHistoryLength),this.favorite=new n.QueryStore("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,n,r,i){if(!e)return!1;try{(0,t.parse)(e)}catch(e){return!1}if(e.length>1e5)return!1;if(!i)return!0;if(JSON.stringify(e)===JSON.stringify(i.query)){if(JSON.stringify(n)===JSON.stringify(i.variables)){if(JSON.stringify(r)===JSON.stringify(i.headers))return!1;if(r&&!i.headers)return!1}if(n&&!i.variables)return!1}return!0}toggleFavorite(e,t,n,r,i,o){const s={query:e,variables:t,headers:n,operationName:r,label:i};this.favorite.contains(s)?o&&(s.favorite=!1,this.favorite.delete(s)):(s.favorite=!0,this.favorite.push(s)),this.queries=[...this.history.items,...this.favorite.items]}editLabel(e,t,n,r,i,o){const s={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit(Object.assign(Object.assign({},s),{favorite:o})):this.history.edit(s),this.queries=[...this.history.items,...this.favorite.items]}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0),n(4),n(70),n(71),n(72),n(73),n(74),n(75),n(76),n(77),n(78),n(142),n(143),n(19),n(144)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,s,a,l,u,c,f,d,p,h,m){"use strict";function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b;if(Object.defineProperty(e,"__esModule",{value:!0}),e.GraphiQL=void 0,t=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(t),p=(b=p)&&b.__esModule?b:{default:b},parseInt(t.default.version.slice(0,2),10)<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join("\n"));class E extends t.default.Component{constructor(e){super(e),y(this,"ref",null)}componentDidMount(){"undefined"!=typeof window&&(window.g=this)}render(){return t.default.createElement(T,v({},this.props,{ref:e=>{this.ref=e}}))}getQueryEditor(){var e;return console.warn("The method `GraphiQL.getQueryEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `query` prop. To react on changes of the editor value you can pass a callback to the `onEditQuery` prop."),(null===(e=this.ref)||void 0===e?void 0:e.getQueryEditor())||null}getVariableEditor(){var e;return console.warn("The method `GraphiQL.getVariableEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `variables` prop. To react on changes of the editor value you can pass a callback to the `onEditVariables` prop."),(null===(e=this.ref)||void 0===e?void 0:e.getVariableEditor())||null}getHeaderEditor(){var e;return console.warn("The method `GraphiQL.getHeaderEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `headers` prop. To react on changes of the editor value you can pass a callback to the `onEditHeaders` prop."),(null===(e=this.ref)||void 0===e?void 0:e.getHeaderEditor())||null}refresh(){var e;console.warn("The method `GraphiQL.refresh` is deprecated and will be removed in the next major version. Already now, all editors should automatically refresh when their size changes."),null===(e=this.ref)||void 0===e||e.refresh()}autoCompleteLeafs(){var e;return console.warn("The method `GraphiQL.autoCompleteLeafs` is deprecated and will be removed in the next major version. Please switch to using the `autoCompleteLeafs` function provided by the `EditorContext` from the `@graphiql/react` package."),null===(e=this.ref)||void 0===e?void 0:e.autoCompleteLeafs()}}e.GraphiQL=E,y(E,"formatResult",e=>(console.warn("The function `GraphiQL.formatResult` is deprecated and will be removed in the next major version. Please switch to using the `formatResult` function provided by the `@graphiql/toolkit` package."),(0,h.formatResult)(e))),y(E,"formatError",e=>(console.warn("The function `GraphiQL.formatError` is deprecated and will be removed in the next major version. Please switch to using the `formatError` function provided by the `@graphiql/toolkit` package."),(0,h.formatError)(e))),y(E,"Logo",x),y(E,"Toolbar",C),y(E,"Footer",w),y(E,"QueryEditor",a.QueryEditor),y(E,"VariableEditor",l.VariableEditor),y(E,"HeaderEditor",u.HeaderEditor),y(E,"ResultViewer",c.ResultViewer),y(E,"Button",i.ToolbarButton),y(E,"ToolbarButton",i.ToolbarButton),y(E,"Group",o.ToolbarGroup),y(E,"Menu",s.ToolbarMenu),y(E,"MenuItem",s.ToolbarMenuItem);const T=(0,t.forwardRef)((function(e,r){let{dangerouslyAssumeSchemaIsValid:i,docExplorerOpen:o,externalFragments:s,fetcher:a,headers:l,inputValueDeprecation:u,introspectionQueryName:c,maxHistoryLength:f,onEditOperationName:d,onSchemaChange:p,onToggleHistory:h,onToggleDocs:m,operationName:g,query:y,response:b,storage:E,schema:T,schemaDescription:k,shouldPersistHeaders:x,validationRules:C,variables:w,...S}=e;if("function"!=typeof a)throw new TypeError("GraphiQL requires a fetcher function.");return t.default.createElement(n.StorageContextProvider,{storage:E},t.default.createElement(n.HistoryContextProvider,{maxHistoryLength:f,onToggle:h},t.default.createElement(n.EditorContextProvider,{defaultQuery:S.defaultQuery,externalFragments:s,headers:l,onEditOperationName:d,onTabChange:"object"==typeof S.tabs?S.tabs.onTabChange:void 0,query:y,response:b,shouldPersistHeaders:x,validationRules:C,variables:w},t.default.createElement(n.SchemaContextProvider,{dangerouslyAssumeSchemaIsValid:i,fetcher:a,inputValueDeprecation:u,introspectionQueryName:c,onSchemaChange:p,schema:T,schemaDescription:k},t.default.createElement(n.ExecutionContextProvider,{fetcher:a,operationName:g},t.default.createElement(n.ExplorerContextProvider,{isVisible:o,onToggleVisibility:m},t.default.createElement(_,v({},S,{ref:r}))))))))})),_=(0,t.forwardRef)((function(e,r){let{getDefaultFieldNames:i,...o}=e;const s=(0,n.useEditorContext)({nonNull:!0}),a=(0,n.useExecutionContext)({nonNull:!0}),l=(0,n.useExplorerContext)(),u=(0,n.useHistoryContext)(),c=(0,n.useSchemaContext)({nonNull:!0}),f=(0,n.useStorageContext)(),d=(0,n.useAutoCompleteLeafs)({getDefaultFieldNames:i}),p=(0,n.useCopyQuery)({onCopyQuery:o.onCopyQuery}),h=(0,n.useMergeQuery)(),m=(0,n.usePrettifyEditors)(),g=(0,n.useDragResize)({defaultSizeRelation:3,direction:"horizontal",initiallyHidden:null!=l&&l.isVisible?void 0:"second",onHiddenElementChange:e=>{"second"===e?null==l||l.hide():null==l||l.show()},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),y=(0,n.useDragResize)({direction:"horizontal",storageKey:"editorFlex"}),b=(0,n.useDragResize)({defaultSizeRelation:3,direction:"vertical",initiallyHidden:void 0!==o.defaultVariableEditorOpen?o.defaultVariableEditorOpen?void 0:"second":void 0!==o.defaultSecondaryEditorOpen?o.defaultSecondaryEditorOpen?void 0:"second":s.initialVariables||s.initialHeaders?void 0:"second",sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"});return t.default.createElement(k,v({},o,{editorContext:s,executionContext:a,explorerContext:l,historyContext:u,schemaContext:c,storageContext:f,autoCompleteLeafs:d,copy:p,merge:h,prettify:m,docResize:g,editorResize:y,secondaryEditorResize:b,ref:r}))}));class k extends t.default.Component{constructor(e){super(e),this.state={activeSecondaryEditor:"variable"}}render(){var e,n,o,s;const h=t.default.Children.toArray(this.props.children),g=(0,p.default)(h,e=>S(e,E.Logo))||t.default.createElement(E.Logo,null),v=(0,p.default)(h,e=>S(e,E.Toolbar))||t.default.createElement(E.Toolbar,null,t.default.createElement(i.ToolbarButton,{onClick:()=>{this.props.prettify()},title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),t.default.createElement(i.ToolbarButton,{onClick:()=>{this.props.merge()},title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),t.default.createElement(i.ToolbarButton,{onClick:()=>{this.props.copy()},title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),t.default.createElement(i.ToolbarButton,{onClick:()=>{var e;return null===(e=this.props.historyContext)||void 0===e?void 0:e.toggle()},title:null!==(e=this.props.historyContext)&&void 0!==e&&e.isVisible?"Hide History":"Show History",label:"History"}),t.default.createElement(i.ToolbarButton,{onClick:()=>this.props.schemaContext.introspect(),title:"Fetch GraphQL schema using introspection (Shift-Ctrl-R)",label:"Introspect"}),null!==(n=this.props.toolbar)&&void 0!==n&&n.additionalContent?this.props.toolbar.additionalContent:null),y=(0,p.default)(h,e=>S(e,E.Footer)),b=null===(o=this.props.headerEditorEnabled)||void 0===o||o;return t.default.createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},t.default.createElement("div",{ref:this.props.docResize.firstRef},(null===(s=this.props.historyContext)||void 0===s?void 0:s.isVisible)&&t.default.createElement("div",{className:"historyPaneWrap",style:{width:"230px",zIndex:7}},t.default.createElement(d.QueryHistory,null)),t.default.createElement("div",{className:"editorWrap"},t.default.createElement("div",{className:"topBarWrap"},this.props.beforeTopBarContent,t.default.createElement("div",{className:"topBar"},g,t.default.createElement(r.ExecuteButton,null),v),this.props.explorerContext&&!this.props.explorerContext.isVisible&&t.default.createElement("button",{className:"docExplorerShow",onClick:()=>{var e;null===(e=this.props.explorerContext)||void 0===e||e.show(),this.props.docResize.setHiddenElement(null)},"aria-label":"Open Documentation Explorer"},"Docs")),this.props.tabs?t.default.createElement(m.Tabs,{tabsProps:{"aria-label":"Select active operation"}},this.props.editorContext.tabs.map((e,n)=>t.default.createElement(m.Tab,{key:e.id,isActive:n===this.props.editorContext.activeTabIndex,title:e.title,isCloseable:this.props.editorContext.tabs.length>1,onSelect:()=>{this.props.executionContext.stop(),this.props.editorContext.changeTab(n)},onClose:()=>{this.props.editorContext.activeTabIndex===n&&this.props.executionContext.stop(),this.props.editorContext.closeTab(n)},tabProps:{"aria-controls":"sessionWrap",id:"session-tab-"+n}})),t.default.createElement(m.TabAddButton,{onClick:()=>{this.props.editorContext.addTab()}})):null,t.default.createElement("div",{role:"tabpanel",id:"sessionWrap",className:"editorBar","aria-labelledby":"session-tab-"+this.props.editorContext.activeTabIndex},t.default.createElement("div",{ref:this.props.editorResize.firstRef},t.default.createElement("div",{className:"queryWrap"},t.default.createElement("div",{ref:this.props.secondaryEditorResize.firstRef},t.default.createElement(a.QueryEditor,{editorTheme:this.props.editorTheme,onClickReference:()=>{"second"===this.props.docResize.hiddenElement&&this.props.docResize.setHiddenElement(null)},keyMap:this.props.keyMap,onCopyQuery:this.props.onCopyQuery,onEdit:this.props.onEditQuery,readOnly:this.props.readOnly})),t.default.createElement("div",{ref:this.props.secondaryEditorResize.dragBarRef},t.default.createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title"},t.default.createElement("div",{className:"variable-editor-title-text"+("variable"===this.state.activeSecondaryEditor?" active":""),onClick:()=>{"second"===this.props.secondaryEditorResize.hiddenElement&&this.props.secondaryEditorResize.setHiddenElement(null),this.setState({activeSecondaryEditor:"variable"},()=>{var e;null===(e=this.props.editorContext.variableEditor)||void 0===e||e.refresh()})}},"Query Variables"),b&&t.default.createElement("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text"+("header"===this.state.activeSecondaryEditor?" active":""),onClick:()=>{"second"===this.props.secondaryEditorResize.hiddenElement&&this.props.secondaryEditorResize.setHiddenElement(null),this.setState({activeSecondaryEditor:"header"},()=>{var e;null===(e=this.props.editorContext.headerEditor)||void 0===e||e.refresh()})}},"Request Headers"))),t.default.createElement("div",{ref:this.props.secondaryEditorResize.secondRef},t.default.createElement("section",{className:"variable-editor secondary-editor","aria-label":"variable"===this.state.activeSecondaryEditor?"Query Variables":"Request Headers"},t.default.createElement(l.VariableEditor,{onEdit:this.props.onEditVariables,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:"variable"===this.state.activeSecondaryEditor,keyMap:this.props.keyMap}),b&&t.default.createElement(u.HeaderEditor,{active:"header"===this.state.activeSecondaryEditor,editorTheme:this.props.editorTheme,onEdit:this.props.onEditHeaders,readOnly:this.props.readOnly,keyMap:this.props.keyMap}))))),t.default.createElement("div",{ref:this.props.editorResize.dragBarRef},t.default.createElement("div",{className:"editor-drag-bar"})),t.default.createElement("div",{ref:this.props.editorResize.secondRef},t.default.createElement("div",{className:"resultWrap"},this.props.executionContext.isFetching&&t.default.createElement("div",{className:"spinner-container"},t.default.createElement("div",{className:"spinner"})),t.default.createElement(c.ResultViewer,{editorTheme:this.props.editorTheme,ResponseTooltip:this.props.ResultsTooltip,keyMap:this.props.keyMap}),y))))),t.default.createElement("div",{ref:this.props.docResize.dragBarRef},t.default.createElement("div",{className:"docExplorerResizer"})),t.default.createElement("div",{ref:this.props.docResize.secondRef},t.default.createElement("div",{className:"docExplorerWrap"},t.default.createElement(f.DocExplorer,{onClose:()=>this.props.docResize.setHiddenElement("second")}))))}getQueryEditor(){return this.props.editorContext.queryEditor||null}getVariableEditor(){return this.props.editorContext.variableEditor||null}getHeaderEditor(){return this.props.editorContext.headerEditor||null}refresh(){var e,t,n,r;null===(e=this.props.editorContext.queryEditor)||void 0===e||e.refresh(),null===(t=this.props.editorContext.variableEditor)||void 0===t||t.refresh(),null===(n=this.props.editorContext.headerEditor)||void 0===n||n.refresh(),null===(r=this.props.editorContext.responseEditor)||void 0===r||r.refresh()}autoCompleteLeafs(){return this.props.autoCompleteLeafs()}}function x(e){return t.default.createElement("div",{className:"title"},e.children||t.default.createElement("span",null,"Graph",t.default.createElement("em",null,"i"),"QL"))}function C(e){return t.default.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function w(e){return t.default.createElement("div",{className:"footer"},e.children)}function S(e,t){var n;return!(null==e||null===(n=e.type)||void 0===n||!n.displayName||e.type.displayName!==t.displayName)||e.type===t}x.displayName="GraphiQLLogo",C.displayName="GraphiQLToolbar",w.displayName="GraphiQLFooter"})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(4),n(0)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ExecuteButton=function(){const{queryEditor:e,setOperationName:r}=(0,t.useEditorContext)({nonNull:!0}),{isFetching:i,operationName:o,run:s,stop:a}=(0,t.useExecutionContext)({nonNull:!0}),[l,u]=(0,n.useState)(!1),[c,f]=(0,n.useState)(null),d=(null==e?void 0:e.operations)||[],p=d.length>1&&"string"!=typeof o;return n.default.createElement("div",{className:"execute-button-wrap"},n.default.createElement("button",{type:"button",className:"execute-button",onMouseDown:i||!p||l?void 0:e=>{let t=!0;const n=e.currentTarget;f(null),u(!0);let r=e=>{var i;t&&e.target===n?t=!1:(document.removeEventListener("mouseup",r),r=null,e.currentTarget&&(null===(i=n.parentNode)||void 0===i?void 0:i.compareDocumentPosition(e.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY||u(!1))};document.addEventListener("mouseup",r)},onClick:i||!p?()=>{i?a():s()}:void 0,title:"Execute Query (Ctrl-Enter)"},n.default.createElement("svg",{width:"34",height:"34"},i?n.default.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):n.default.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"}))),p&&l?n.default.createElement("ul",{className:"execute-options"},d.map((t,i)=>{const o=t.name?t.name.value:`<Unnamed ${t.operation}>`;return n.default.createElement("li",{key:`${o}-${i}`,className:t===c?"selected":void 0,onMouseOver:()=>f(t),onMouseOut:()=>f(null),onMouseUp:()=>{var n;u(!1);const i=null===(n=t.name)||void 0===n?void 0:n.value;e&&i&&i!==e.operationName&&r(i),s()}},o)})):null)},n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=o?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(i,s,a):i[s]=e[s]}return i.default=e,n&&n.set(e,i),i}(n)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarButton=void 0,t=(n=t)&&n.__esModule?n:{default:n};class r extends t.default.Component{constructor(e){super(e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleClick",()=>{try{this.props.onClick(),this.setState({error:null})}catch(e){if(e instanceof Error)return void this.setState({error:e});throw e}}),this.state={error:null}}render(){const{error:e}=this.state;return t.default.createElement("button",{className:"toolbar-button"+(e?" error":""),onClick:this.handleClick,title:e?e.message:this.props.title,"aria-invalid":e?"true":"false"},this.props.label)}}e.ToolbarButton=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarGroup=function(e){let{children:n}=e;return t.default.createElement("div",{className:"toolbar-button-group"},n)},t=(n=t)&&n.__esModule?n:{default:n}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarMenuItem=e.ToolbarMenu=void 0,t=(r=t)&&r.__esModule?r:{default:r};class i extends t.default.Component{constructor(e){super(e),n(this,"_node",null),n(this,"_listener",null),n(this,"handleOpen",e=>{o(e),this.setState({visible:!0}),this._subscribe()}),this.state={visible:!1}}componentWillUnmount(){this._release()}render(){const e=this.state.visible;return t.default.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:o,ref:e=>{e&&(this._node=e)},title:this.props.title},this.props.label,t.default.createElement("svg",{width:"14",height:"8"},t.default.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),t.default.createElement("ul",{className:"toolbar-menu-items"+(e?" open":"")},this.props.children))}_subscribe(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))}_release(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)}handleClick(e){this._node!==e.target&&(e.preventDefault(),this.setState({visible:!1}),this._release())}}function o(e){e.preventDefault()}e.ToolbarMenu=i,e.ToolbarMenuItem=e=>{let{onSelect:n,title:r,label:i}=e;return t.default.createElement("li",{onMouseOver:e=>{e.currentTarget.className="hover"},onMouseOut:e=>{e.currentTarget.className=""},onMouseDown:o,onMouseUp:n,title:r},i)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(4),n(0)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.QueryEditor=function(e){const r=(0,t.useQueryEditor)(e);return n.default.createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:r})},n=(r=n)&&r.__esModule?r:{default:r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(4),n(0)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.VariableEditor=function(e){let{active:r,...i}=e;const o=(0,t.useVariableEditor)(i);return n.default.createElement("div",{className:"codemirrorWrap",style:{position:r?"relative":"absolute",visibility:r?"visible":"hidden"},ref:o})},n=(r=n)&&r.__esModule?r:{default:r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(4),n(0)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.HeaderEditor=function(e){let{active:r,...i}=e;const o=(0,t.useHeaderEditor)(i);return n.default.createElement("div",{className:"codemirrorWrap",style:{position:r?"relative":"absolute",visibility:r?"visible":"hidden"},ref:o})},n=(r=n)&&r.__esModule?r:{default:r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(4),n(0)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ResultViewer=function(e){const r=(0,t.useResponseEditor)(e);return n.default.createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:r})},n=(r=n)&&r.__esModule?r:{default:r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0),n(3),n(4),n(79),n(137),n(138),n(140),n(141)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,s,a,l){"use strict";function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.DocExplorer=function(e){const{fetchError:u,isFetching:c,schema:f,validationErrors:d}=(0,r.useSchemaContext)({nonNull:!0}),{explorerNavStack:p,hide:h,pop:m,showSearch:g}=(0,r.useExplorerContext)({nonNull:!0}),v=p[p.length-1],y=void 0===e.schema?f:e.schema;let b=null;u?b=t.default.createElement("div",{className:"error-container"},"Error fetching schema"):d.length>0?b=t.default.createElement("div",{className:"error-container"},"Schema is invalid: ",d[0].message):c?b=t.default.createElement("div",{className:"spinner-container"},t.default.createElement("div",{className:"spinner"})):y?v.search?b=t.default.createElement(a.default,null):1===p.length?b=t.default.createElement(o.default,null):(0,n.isType)(v.def)?b=t.default.createElement(l.default,null):v.def&&(b=t.default.createElement(i.default,null)):b=t.default.createElement("div",{className:"error-container"},"No Schema Available");const E=1===p.length||(0,n.isType)(v.def)&&"getFields"in v.def;let T;return p.length>1&&(T=p[p.length-2].name),t.default.createElement("section",{className:"doc-explorer",key:v.name,"aria-label":"Documentation Explorer"},t.default.createElement("div",{className:"doc-explorer-title-bar"},T&&t.default.createElement("button",{className:"doc-explorer-back",onClick:m,"aria-label":"Go back to "+T},T),t.default.createElement("div",{className:"doc-explorer-title"},v.title||v.name),t.default.createElement("div",{className:"doc-explorer-rhs"},t.default.createElement("button",{className:"docExplorerHide",onClick:()=>{var t;h(),null===(t=e.onClose)||void 0===t||t.call(e)},"aria-label":"Close Documentation Explorer"},"✕"))),t.default.createElement("div",{className:"doc-explorer-contents"},E&&t.default.createElement(s.default,{value:v.search,placeholder:`Search ${v.name}...`,onSearch:g}),b))},t=u(t),i=u(i),o=u(o),s=u(s),a=u(a),l=u(l)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0),n(3),n(4),n(14),n(80),n(15),n(7)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,s,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var e;const{explorerNavStack:l}=(0,r.useExplorerContext)({nonNull:!0}),[u,c]=t.default.useState(!1),f=l[l.length-1].def;if(!f||(0,n.isType)(f))return null;let d,p,h;if(f&&"args"in f&&f.args.length>0){d=t.default.createElement("div",{id:"doc-args",className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"arguments"),f.args.filter(e=>!e.deprecationReason).map(e=>t.default.createElement("div",{key:e.name,className:"doc-category-item"},t.default.createElement("div",null,t.default.createElement(i.default,{arg:e})),t.default.createElement(s.default,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&t.default.createElement(s.default,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}))));const e=f.args.filter(e=>Boolean(e.deprecationReason));e.length>0&&(p=t.default.createElement("div",{id:"doc-deprecated-args",className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"deprecated arguments"),u?e.map((e,n)=>t.default.createElement("div",{key:n},t.default.createElement("div",null,t.default.createElement(i.default,{arg:e})),t.default.createElement(s.default,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&t.default.createElement(s.default,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}))):t.default.createElement("button",{className:"show-btn",onClick:()=>c(!u)},"Show deprecated arguments...")))}return null!=f&&null!==(e=f.astNode)&&void 0!==e&&e.directives&&f.astNode.directives.length>0&&(h=t.default.createElement("div",{id:"doc-directives",className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"directives"),f.astNode.directives.map(e=>t.default.createElement("div",{key:e.name.value,className:"doc-category-item"},t.default.createElement("div",null,t.default.createElement(o.default,{directive:e})))))),t.default.createElement("div",null,t.default.createElement(s.default,{className:"doc-type-description",markdown:f.description||"No Description"}),f&&"deprecationReason"in f&&t.default.createElement(s.default,{className:"doc-deprecation",markdown:f.deprecationReason}),t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"type"),t.default.createElement(a.default,{type:f.type})),d,h,p)},t=l(t),i=l(i),o=l(o),s=l(s),a=l(a)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){let{directive:n}=e;return t.default.createElement("span",{className:"doc-category-item",id:n.name.value},"@",n.name.value)},t=(n=t)&&n.__esModule?n:{default:n}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=n(82)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(1),r=n(90),i=n(94),o=n(95),s=n(103),a=n(117),l=n(130),u=n(23),c=n(132),f={default:n(134),zero:n(135),commonmark:n(136)},d=/^(vbscript|javascript|file|data):/,p=/^data:image\/(gif|png|jpeg|webp);/;function h(e){var t=e.trim().toLowerCase();return!d.test(t)||!!p.test(t)}var m=["http:","https:","mailto:"];function g(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=c.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=c.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function y(e,n){if(!(this instanceof y))return new y(e,n);n||t.isString(e)||(n=e||{},e="default"),this.inline=new a,this.block=new s,this.core=new o,this.renderer=new i,this.linkify=new l,this.validateLink=h,this.normalizeLink=g,this.normalizeLinkText=v,this.utils=t,this.helpers=t.assign({},r),this.options={},this.configure(e),n&&this.set(n)}y.prototype.set=function(e){return t.assign(this.options,e),this},y.prototype.configure=function(e){var n,r=this;if(t.isString(e)&&!(e=f[n=e]))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&r.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&r[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&r[t].ruler2.enableOnly(e.components[t].rules2)})),this},y.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},y.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},y.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},y.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},y.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},y.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},y.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=y})?r.apply(t,i):r)||(e.exports=o)},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":" ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t={};function n(e,r,i){var o,s,a,l,u,c="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),u=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)i[e.charCodeAt(n)]=e[n];return i}(r),o=0,s=e.length;o<s;o++)if(a=e.charCodeAt(o),i&&37===a&&o+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))c+=e.slice(o,o+3),o+=2;else if(a<128)c+=u[a];else if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&o+1<s&&(l=e.charCodeAt(o+1))>=56320&&l<=57343){c+=encodeURIComponent(e[o]+e[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[o]);return c}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t={};function n(e,r){var i;return"string"!=typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n<e.length;n++)i[r=e.charCodeAt(n)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return i}(r),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,n,r,o,s,a,l,u="";for(t=0,n=e.length;t<n;t+=3)(r=parseInt(e.slice(t+1,t+3),16))<128?u+=i[r]:192==(224&r)&&t+3<n&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(u+=(l=r<<6&1984|63&o)<128?"��":String.fromCharCode(l),t+=3):224==(240&r)&&t+6<n&&(o=parseInt(e.slice(t+4,t+6),16),s=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&s))?(u+=(l=r<<12&61440|o<<6&4032|63&s)<2048||l>=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&r)&&t+9<n&&(o=parseInt(e.slice(t+4,t+6),16),s=parseInt(e.slice(t+7,t+9),16),a=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&s)&&128==(192&a))?((l=r<<18&1835008|o<<12&258048|s<<6&4032|63&a)<65536||l>1114111?u+="����":(l-=65536,u+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):u+="�";return u}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(o),a=["%","/","?",";","#"].concat(s),l=["/","?","#"],u=/^[+a-z0-9A-Z_-]{0,63}$/,c=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},d={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,o,s,p,h,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var g=i.exec(m);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var v=n.exec(m);if(v&&(s=(v=v[0]).toLowerCase(),this.protocol=v,m=m.substr(v.length)),(t||v||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(h="//"===m.substr(0,2))||v&&f[v]||(m=m.substr(2),this.slashes=!0)),!f[v]&&(h||v&&!d[v])){var y,b,E=-1;for(r=0;r<l.length;r++)-1!==(p=m.indexOf(l[r]))&&(-1===E||p<E)&&(E=p);for(-1!==(b=-1===E?m.lastIndexOf("@"):m.lastIndexOf("@",E))&&(y=m.slice(0,b),m=m.slice(b+1),this.auth=y),E=-1,r=0;r<a.length;r++)-1!==(p=m.indexOf(a[r]))&&(-1===E||p<E)&&(E=p);-1===E&&(E=m.length),":"===m[E-1]&&E--;var T=m.slice(0,E);m=m.slice(E),this.parseHost(T),this.hostname=this.hostname||"";var _="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!_){var k=this.hostname.split(/\./);for(r=0,o=k.length;r<o;r++){var x=k[r];if(x&&!x.match(u)){for(var C="",w=0,S=x.length;w<S;w++)x.charCodeAt(w)>127?C+="x":C+=x[w];if(!C.match(u)){var N=k.slice(0,r),A=k.slice(r+1),O=x.match(c);O&&(N.push(O[1]),A.unshift(O[2])),A.length&&(m=A.join(".")+m),this.hostname=N.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var I=m.indexOf("#");-1!==I&&(this.hash=m.substr(I),m=m.slice(0,I));var D=m.indexOf("?");return-1!==D&&(this.search=m.substr(D),m=m.slice(0,D)),m&&(this.pathname=m),d[s]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";t.Any=n(24),t.Cc=n(25),t.Cf=n(89),t.P=n(16),t.Z=n(26)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";t.parseLinkLabel=n(91),t.parseLinkDestination=n(92),t.parseLinkTitle=n(93)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t,n){var r,i,o,s,a=-1,l=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--r){i=!0;break}if(s=e.pos,e.md.inline.skipToken(e),91===o)if(s===e.pos-1)r++;else if(n)return e.pos=u,-1}return i&&(a=e.pos),e.pos=u,a}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(1).unescapeAll;e.exports=function(e,n,r){var i,o,s=n,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(n)){for(n++;n<r;){if(10===(i=e.charCodeAt(n)))return a;if(60===i)return a;if(62===i)return a.pos=n+1,a.str=t(e.slice(s+1,n)),a.ok=!0,a;92===i&&n+1<r?n+=2:n++}return a}for(o=0;n<r&&32!==(i=e.charCodeAt(n))&&!(i<32||127===i);)if(92===i&&n+1<r){if(32===e.charCodeAt(n+1))break;n+=2}else{if(40===i&&++o>32)return a;if(41===i){if(0===o)break;o--}n++}return s===n||0!==o||(a.str=t(e.slice(s,n)),a.lines=0,a.pos=n,a.ok=!0),a}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(1).unescapeAll;e.exports=function(e,n,r){var i,o,s=0,a=n,l={ok:!1,pos:0,lines:0,str:""};if(n>=r)return l;if(34!==(o=e.charCodeAt(n))&&39!==o&&40!==o)return l;for(n++,40===o&&(o=41);n<r;){if((i=e.charCodeAt(n))===o)return l.pos=n+1,l.lines=s,l.str=t(e.slice(a+1,n)),l.ok=!0,l;if(40===i&&41===o)return l;10===i?s++:92===i&&n+1<r&&(n++,10===e.charCodeAt(n)&&s++),n++}return l}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(1).assign,r=n(1).unescapeAll,i=n(1).escapeHtml,o={};function s(){this.rules=t({},o)}o.code_inline=function(e,t,n,r,o){var s=e[t];return"<code"+o.renderAttrs(s)+">"+i(e[t].content)+"</code>"},o.code_block=function(e,t,n,r,o){var s=e[t];return"<pre"+o.renderAttrs(s)+"><code>"+i(e[t].content)+"</code></pre>\n"},o.fence=function(e,t,n,o,s){var a,l,u,c,f,d=e[t],p=d.info?r(d.info).trim():"",h="",m="";return p&&(h=(u=p.split(/(\s+)/g))[0],m=u.slice(2).join("")),0===(a=n.highlight&&n.highlight(d.content,h,m)||i(d.content)).indexOf("<pre")?a+"\n":p?(l=d.attrIndex("class"),c=d.attrs?d.attrs.slice():[],l<0?c.push(["class",n.langPrefix+h]):(c[l]=c[l].slice(),c[l][1]+=" "+n.langPrefix+h),f={attrs:c},"<pre><code"+s.renderAttrs(f)+">"+a+"</code></pre>\n"):"<pre><code"+s.renderAttrs(d)+">"+a+"</code></pre>\n"},o.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},o.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},o.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},o.text=function(e,t){return i(e[t].content)},o.html_block=function(e,t){return e[t].content},o.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+i(e.attrs[t][0])+'="'+i(e.attrs[t][1])+'"';return r},s.prototype.renderToken=function(e,t,n){var r,i="",o=!1,s=e[t];return s.hidden?"":(s.block&&-1!==s.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===s.nesting?"</":"<")+s.tag,i+=this.renderAttrs(s),0===s.nesting&&n.xhtmlOut&&(i+=" /"),s.block&&(o=!0,1===s.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===s.tag)&&(o=!1)),i+=o?">\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,s=0,a=e.length;s<a;s++)void 0!==o[r=e[s].type]?i+=o[r](e,s,t,n,this):i+=this.renderToken(e,s,t);return i},s.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},s.prototype.render=function(e,t,n){var r,i,o,s="",a=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?s+=this.renderInline(e[r].children,t,n):void 0!==a[o]?s+=a[e[r].type](e,r,t,n,this):s+=this.renderToken(e,r,t,n);return s},e.exports=s})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(17),r=[["normalize",n(96)],["block",n(97)],["inline",n(98)],["linkify",n(99)],["replacements",n(100)],["smartquotes",n(101)]];function i(){this.ruler=new t;for(var e=0;e<r.length;e++)this.ruler.push(r[e][0],r[e][1])}i.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},i.prototype.State=n(102),e.exports=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=/\r\n?|\n/g,n=/\0/g;e.exports=function(e){var r;r=(r=e.src.replace(t,"\n")).replace(n,"�"),e.src=r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(1).arrayReplaceAt;function r(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var n,i,o,s,a,l,u,c,f,d,p,h,m,g,v,y,b,E,T=e.tokens;if(e.md.options.linkify)for(i=0,o=T.length;i<o;i++)if("inline"===T[i].type&&e.md.linkify.pretest(T[i].content))for(m=0,n=(s=T[i].children).length-1;n>=0;n--)if("link_close"!==(l=s[n]).type){if("html_inline"===l.type&&(E=l.content,/^<a[>\s]/i.test(E)&&m>0&&m--,r(l.content)&&m++),!(m>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(f=l.content,b=e.md.linkify.match(f),u=[],h=l.level,p=0,c=0;c<b.length;c++)g=b[c].url,v=e.md.normalizeLink(g),e.md.validateLink(v)&&(y=b[c].text,y=b[c].schema?"mailto:"!==b[c].schema||/^mailto:/i.test(y)?e.md.normalizeLinkText(y):e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),(d=b[c].index)>p&&((a=new e.Token("text","",0)).content=f.slice(p,d),a.level=h,u.push(a)),(a=new e.Token("link_open","a",1)).attrs=[["href",v]],a.level=h++,a.markup="linkify",a.info="auto",u.push(a),(a=new e.Token("text","",0)).content=y,a.level=h,u.push(a),(a=new e.Token("link_close","a",-1)).level=--h,a.markup="linkify",a.info="auto",u.push(a),p=b[c].lastIndex);p<f.length&&((a=new e.Token("text","",0)).content=f.slice(p),a.level=h,u.push(a)),T[i].children=s=t(s,n,u)}}else for(n--;s[n].level!==l.level&&"link_open"!==s[n].type;)n--}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r|p)\)/i,r=/\((c|tm|r|p)\)/gi,i={c:"©",r:"®",p:"§",tm:"™"};function o(e,t){return i[t.toLowerCase()]}function s(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(r,o)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function a(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||i||t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)"inline"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&s(e.tokens[r].children),t.test(e.tokens[r].content)&&a(e.tokens[r].children))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(1).isWhiteSpace,r=n(1).isPunctChar,i=n(1).isMdAsciiPunct,o=/['"]/,s=/['"]/g;function a(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function l(e,n){var o,l,u,c,f,d,p,h,m,g,v,y,b,E,T,_,k,x,C,w,S;for(C=[],o=0;o<e.length;o++){for(l=e[o],p=e[o].level,k=C.length-1;k>=0&&!(C[k].level<=p);k--);if(C.length=k+1,"text"===l.type){f=0,d=(u=l.content).length;e:for(;f<d&&(s.lastIndex=f,c=s.exec(u));){if(T=_=!0,f=c.index+1,x="'"===c[0],m=32,c.index-1>=0)m=u.charCodeAt(c.index-1);else for(k=o-1;k>=0&&"softbreak"!==e[k].type&&"hardbreak"!==e[k].type;k--)if(e[k].content){m=e[k].content.charCodeAt(e[k].content.length-1);break}if(g=32,f<d)g=u.charCodeAt(f);else for(k=o+1;k<e.length&&"softbreak"!==e[k].type&&"hardbreak"!==e[k].type;k++)if(e[k].content){g=e[k].content.charCodeAt(0);break}if(v=i(m)||r(String.fromCharCode(m)),y=i(g)||r(String.fromCharCode(g)),b=t(m),(E=t(g))?T=!1:y&&(b||v||(T=!1)),b?_=!1:v&&(E||y||(_=!1)),34===g&&'"'===c[0]&&m>=48&&m<=57&&(_=T=!1),T&&_&&(T=v,_=y),T||_){if(_)for(k=C.length-1;k>=0&&(h=C[k],!(C[k].level<p));k--)if(h.single===x&&C[k].level===p){h=C[k],x?(w=n.md.options.quotes[2],S=n.md.options.quotes[3]):(w=n.md.options.quotes[0],S=n.md.options.quotes[1]),l.content=a(l.content,c.index,S),e[h.token].content=a(e[h.token].content,h.pos,w),f+=S.length-1,h.token===o&&(f+=w.length-1),d=(u=l.content).length,C.length=k;continue e}T?C.push({token:o,pos:c.index,single:x,level:p}):_&&x&&(l.content=a(l.content,c.index,"’"))}else x&&(l.content=a(l.content,c.index,"’"))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&o.test(e.tokens[t].content)&&l(e.tokens[t].children,e)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(18);function r(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}r.prototype.Token=t,e.exports=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(17),r=[["table",n(104),["paragraph","reference"]],["code",n(105)],["fence",n(106),["paragraph","reference","blockquote","list"]],["blockquote",n(107),["paragraph","reference","blockquote","list"]],["hr",n(108),["paragraph","reference","blockquote","list"]],["list",n(109),["paragraph","reference","blockquote"]],["reference",n(110)],["html_block",n(111),["paragraph","reference","blockquote"]],["heading",n(113),["paragraph","reference","blockquote"]],["lheading",n(114)],["paragraph",n(115)]];function i(){this.ruler=new t;for(var e=0;e<r.length;e++)this.ruler.push(r[e][0],r[e][1],{alt:(r[e][2]||[]).slice()})}i.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,s=t,a=!1,l=e.md.options.maxNesting;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n))&&!(e.sCount[s]<e.blkIndent);){if(e.level>=l){e.line=n;break}for(r=0;r<o&&!i[r](e,s,n,!1);r++);e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),(s=e.line)<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}},i.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},i.prototype.State=n(116),e.exports=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(1).isSpace;function r(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function i(e){var t,n=[],r=0,i=e.length,o=!1,s=0,a="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(a+=e.substring(s,r-1),s=r):(n.push(a+e.substring(s,r)),a="",s=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(a+e.substring(s)),n}e.exports=function(e,n,o,s){var a,l,u,c,f,d,p,h,m,g,v,y,b,E,T,_,k,x;if(n+2>o)return!1;if(d=n+1,e.sCount[d]<e.blkIndent)return!1;if(e.sCount[d]-e.blkIndent>=4)return!1;if((u=e.bMarks[d]+e.tShift[d])>=e.eMarks[d])return!1;if(124!==(k=e.src.charCodeAt(u++))&&45!==k&&58!==k)return!1;if(u>=e.eMarks[d])return!1;if(124!==(x=e.src.charCodeAt(u++))&&45!==x&&58!==x&&!t(x))return!1;if(45===k&&t(x))return!1;for(;u<e.eMarks[d];){if(124!==(a=e.src.charCodeAt(u))&&45!==a&&58!==a&&!t(a))return!1;u++}for(p=(l=r(e,n+1)).split("|"),g=[],c=0;c<p.length;c++){if(!(v=p[c].trim())){if(0===c||c===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;58===v.charCodeAt(v.length-1)?g.push(58===v.charCodeAt(0)?"center":"right"):58===v.charCodeAt(0)?g.push("left"):g.push("")}if(-1===(l=r(e,n).trim()).indexOf("|"))return!1;if(e.sCount[n]-e.blkIndent>=4)return!1;if((p=i(l)).length&&""===p[0]&&p.shift(),p.length&&""===p[p.length-1]&&p.pop(),0===(h=p.length)||h!==g.length)return!1;if(s)return!0;for(E=e.parentType,e.parentType="table",_=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=y=[n,0],(m=e.push("thead_open","thead",1)).map=[n,n+1],(m=e.push("tr_open","tr",1)).map=[n,n+1],c=0;c<p.length;c++)m=e.push("th_open","th",1),g[c]&&(m.attrs=[["style","text-align:"+g[c]]]),(m=e.push("inline","",0)).content=p[c].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),d=n+2;d<o&&!(e.sCount[d]<e.blkIndent);d++){for(T=!1,c=0,f=_.length;c<f;c++)if(_[c](e,d,o,!0)){T=!0;break}if(T)break;if(!(l=r(e,d).trim()))break;if(e.sCount[d]-e.blkIndent>=4)break;for((p=i(l)).length&&""===p[0]&&p.shift(),p.length&&""===p[p.length-1]&&p.pop(),d===n+2&&((m=e.push("tbody_open","tbody",1)).map=b=[n+2,0]),(m=e.push("tr_open","tr",1)).map=[d,d+1],c=0;c<h;c++)m=e.push("td_open","td",1),g[c]&&(m.attrs=[["style","text-align:"+g[c]]]),(m=e.push("inline","",0)).content=p[c]?p[c].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return b&&(m=e.push("tbody_close","tbody",-1),b[1]=d),m=e.push("table_close","table",-1),y[1]=d,e.parentType=E,e.line=d,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t,n,r){var i,o,s,a,l,u,c,f=!1,d=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>p)return!1;if(126!==(i=e.src.charCodeAt(d))&&96!==i)return!1;if(l=d,(o=(d=e.skipChars(d,i))-l)<3)return!1;if(c=e.src.slice(l,d),s=e.src.slice(d,p),96===i&&s.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(a=t;!(++a>=n||(d=l=e.bMarks[a]+e.tShift[a])<(p=e.eMarks[a])&&e.sCount[a]<e.blkIndent);)if(e.src.charCodeAt(d)===i&&!(e.sCount[a]-e.blkIndent>=4||(d=e.skipChars(d,i))-l<o||(d=e.skipSpaces(d))<p)){f=!0;break}return o=e.sCount[t],e.line=a+(f?1:0),(u=e.push("fence","code",0)).info=s,u.content=e.getLines(t+1,a,o,!0),u.markup=c,u.map=[t,e.line],!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(1).isSpace;e.exports=function(e,n,r,i){var o,s,a,l,u,c,f,d,p,h,m,g,v,y,b,E,T,_,k,x,C=e.lineMax,w=e.bMarks[n]+e.tShift[n],S=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(w++))return!1;if(i)return!0;for(l=p=e.sCount[n]+1,32===e.src.charCodeAt(w)?(w++,l++,p++,o=!1,E=!0):9===e.src.charCodeAt(w)?(E=!0,(e.bsCount[n]+p)%4==3?(w++,l++,p++,o=!1):o=!0):E=!1,h=[e.bMarks[n]],e.bMarks[n]=w;w<S&&(s=e.src.charCodeAt(w),t(s));)9===s?p+=4-(p+e.bsCount[n]+(o?1:0))%4:p++,w++;for(m=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(E?1:0),c=w>=S,y=[e.sCount[n]],e.sCount[n]=p-l,b=[e.tShift[n]],e.tShift[n]=w-e.bMarks[n],_=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",d=n+1;d<r&&(x=e.sCount[d]<e.blkIndent,!((w=e.bMarks[d]+e.tShift[d])>=(S=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(w++)||x){if(c)break;for(T=!1,a=0,u=_.length;a<u;a++)if(_[a](e,d,r,!0)){T=!0;break}if(T){e.lineMax=d,0!==e.blkIndent&&(h.push(e.bMarks[d]),m.push(e.bsCount[d]),b.push(e.tShift[d]),y.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}h.push(e.bMarks[d]),m.push(e.bsCount[d]),b.push(e.tShift[d]),y.push(e.sCount[d]),e.sCount[d]=-1}else{for(l=p=e.sCount[d]+1,32===e.src.charCodeAt(w)?(w++,l++,p++,o=!1,E=!0):9===e.src.charCodeAt(w)?(E=!0,(e.bsCount[d]+p)%4==3?(w++,l++,p++,o=!1):o=!0):E=!1,h.push(e.bMarks[d]),e.bMarks[d]=w;w<S&&(s=e.src.charCodeAt(w),t(s));)9===s?p+=4-(p+e.bsCount[d]+(o?1:0))%4:p++,w++;c=w>=S,m.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(E?1:0),y.push(e.sCount[d]),e.sCount[d]=p-l,b.push(e.tShift[d]),e.tShift[d]=w-e.bMarks[d]}for(g=e.blkIndent,e.blkIndent=0,(k=e.push("blockquote_open","blockquote",1)).markup=">",k.map=f=[n,0],e.md.block.tokenize(e,n,d),(k=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=C,e.parentType=v,f[1]=e.line,a=0;a<b.length;a++)e.bMarks[a+n]=h[a],e.tShift[a+n]=b[a],e.sCount[a+n]=y[a],e.bsCount[a+n]=m[a];return e.blkIndent=g,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(1).isSpace;e.exports=function(e,n,r,i){var o,s,a,l,u=e.bMarks[n]+e.tShift[n],c=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(u++))&&45!==o&&95!==o)return!1;for(s=1;u<c;){if((a=e.src.charCodeAt(u++))!==o&&!t(a))return!1;a===o&&s++}return!(s<3||(i||(e.line=n+1,(l=e.push("hr","hr",0)).map=[n,e.line],l.markup=Array(s+1).join(String.fromCharCode(o))),0))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(1).isSpace;function r(e,n){var r,i,o,s;return i=e.bMarks[n]+e.tShift[n],o=e.eMarks[n],42!==(r=e.src.charCodeAt(i++))&&45!==r&&43!==r||i<o&&(s=e.src.charCodeAt(i),!t(s))?-1:i}function i(e,n){var r,i=e.bMarks[n]+e.tShift[n],o=i,s=e.eMarks[n];if(o+1>=s)return-1;if((r=e.src.charCodeAt(o++))<48||r>57)return-1;for(;;){if(o>=s)return-1;if(!((r=e.src.charCodeAt(o++))>=48&&r<=57)){if(41===r||46===r)break;return-1}if(o-i>=10)return-1}return o<s&&(r=e.src.charCodeAt(o),!t(r))?-1:o}e.exports=function(e,t,n,o){var s,a,l,u,c,f,d,p,h,m,g,v,y,b,E,T,_,k,x,C,w,S,N,A,O,I,D,L,F=!1,M=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(o&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(F=!0),(N=i(e,t))>=0){if(d=!0,O=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(O,N-1)),F&&1!==y)return!1}else{if(!((N=r(e,t))>=0))return!1;d=!1}if(F&&e.skipSpaces(N)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(N-1),o)return!0;for(g=e.tokens.length,d?(L=e.push("ordered_list_open","ol",1),1!==y&&(L.attrs=[["start",y]])):L=e.push("bullet_list_open","ul",1),L.map=m=[t,0],L.markup=String.fromCharCode(v),E=t,A=!1,D=e.md.block.ruler.getRules("list"),k=e.parentType,e.parentType="list";E<n;){for(S=N,b=e.eMarks[E],f=T=e.sCount[E]+N-(e.bMarks[t]+e.tShift[t]);S<b;){if(9===(s=e.src.charCodeAt(S)))T+=4-(T+e.bsCount[E])%4;else{if(32!==s)break;T++}S++}if((c=(a=S)>=b?1:T-f)>4&&(c=1),u=f+c,(L=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),L.map=p=[t,0],d&&(L.info=e.src.slice(O,N-1)),w=e.tight,C=e.tShift[t],x=e.sCount[t],_=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=u,e.tight=!0,e.tShift[t]=a-e.bMarks[t],e.sCount[t]=T,a>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!A||(M=!1),A=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=_,e.tShift[t]=C,e.sCount[t]=x,e.tight=w,(L=e.push("list_item_close","li",-1)).markup=String.fromCharCode(v),E=t=e.line,p[1]=E,a=e.bMarks[t],E>=n)break;if(e.sCount[E]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(I=!1,l=0,h=D.length;l<h;l++)if(D[l](e,E,n,!0)){I=!0;break}if(I)break;if(d){if((N=i(e,E))<0)break;O=e.bMarks[E]+e.tShift[E]}else if((N=r(e,E))<0)break;if(v!==e.src.charCodeAt(N-1))break}return(L=d?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(v),m[1]=E,e.line=E,e.parentType=k,M&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,g),!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(1).normalizeReference,r=n(1).isSpace;e.exports=function(e,n,i,o){var s,a,l,u,c,f,d,p,h,m,g,v,y,b,E,T,_=0,k=e.bMarks[n]+e.tShift[n],x=e.eMarks[n],C=n+1;if(e.sCount[n]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(k))return!1;for(;++k<x;)if(93===e.src.charCodeAt(k)&&92!==e.src.charCodeAt(k-1)){if(k+1===x)return!1;if(58!==e.src.charCodeAt(k+1))return!1;break}for(u=e.lineMax,E=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";C<u&&!e.isEmpty(C);C++)if(!(e.sCount[C]-e.blkIndent>3||e.sCount[C]<0)){for(b=!1,f=0,d=E.length;f<d;f++)if(E[f](e,C,u,!0)){b=!0;break}if(b)break}for(x=(y=e.getLines(n,C,e.blkIndent,!1).trim()).length,k=1;k<x;k++){if(91===(s=y.charCodeAt(k)))return!1;if(93===s){h=k;break}(10===s||92===s&&++k<x&&10===y.charCodeAt(k))&&_++}if(h<0||58!==y.charCodeAt(h+1))return!1;for(k=h+2;k<x;k++)if(10===(s=y.charCodeAt(k)))_++;else if(!r(s))break;if(!(g=e.md.helpers.parseLinkDestination(y,k,x)).ok)return!1;if(c=e.md.normalizeLink(g.str),!e.md.validateLink(c))return!1;for(a=k=g.pos,l=_+=g.lines,v=k;k<x;k++)if(10===(s=y.charCodeAt(k)))_++;else if(!r(s))break;for(g=e.md.helpers.parseLinkTitle(y,k,x),k<x&&v!==k&&g.ok?(T=g.str,k=g.pos,_+=g.lines):(T="",k=a,_=l);k<x&&(s=y.charCodeAt(k),r(s));)k++;if(k<x&&10!==y.charCodeAt(k)&&T)for(T="",k=a,_=l;k<x&&(s=y.charCodeAt(k),r(s));)k++;return!(k<x&&10!==y.charCodeAt(k)||!(p=t(y.slice(1,h)))||(o||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[p]&&(e.env.references[p]={title:T,href:c}),e.parentType=m,e.line=n+_+1),0))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(112),r=n(27).HTML_OPEN_CLOSE_TAG_RE,i=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+t.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var o,s,a,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(u))return!1;for(l=e.src.slice(u,c),o=0;o<i.length&&!i[o][0].test(l);o++);if(o===i.length)return!1;if(r)return i[o][2];if(s=t+1,!i[o][1].test(l))for(;s<n&&!(e.sCount[s]<e.blkIndent);s++)if(u=e.bMarks[s]+e.tShift[s],c=e.eMarks[s],l=e.src.slice(u,c),i[o][1].test(l)){0!==l.length&&s++;break}return e.line=s,(a=e.push("html_block","",0)).map=[t,s],a.content=e.getLines(t,s,e.blkIndent,!0),!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(1).isSpace;e.exports=function(e,n,r,i){var o,s,a,l,u=e.bMarks[n]+e.tShift[n],c=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(u))||u>=c)return!1;for(s=1,o=e.src.charCodeAt(++u);35===o&&u<c&&s<=6;)s++,o=e.src.charCodeAt(++u);return!(s>6||u<c&&!t(o)||(i||(c=e.skipSpacesBack(c,u),(a=e.skipCharsBack(c,35,u))>u&&t(e.src.charCodeAt(a-1))&&(c=a),e.line=n+1,(l=e.push("heading_open","h"+String(s),1)).markup="########".slice(0,s),l.map=[n,e.line],(l=e.push("inline","",0)).content=e.src.slice(u,c).trim(),l.map=[n,e.line],l.children=[],(l=e.push("heading_close","h"+String(s),-1)).markup="########".slice(0,s)),0))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t,n){var r,i,o,s,a,l,u,c,f,d,p=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";p<n&&!e.isEmpty(p);p++)if(!(e.sCount[p]-e.blkIndent>3)){if(e.sCount[p]>=e.blkIndent&&(l=e.bMarks[p]+e.tShift[p])<(u=e.eMarks[p])&&(45===(f=e.src.charCodeAt(l))||61===f)&&(l=e.skipChars(l,f),(l=e.skipSpaces(l))>=u)){c=61===f?1:2;break}if(!(e.sCount[p]<0)){for(i=!1,o=0,s=h.length;o<s;o++)if(h[o](e,p,n,!0)){i=!0;break}if(i)break}}return!!c&&(r=e.getLines(t,p,e.blkIndent,!1).trim(),e.line=p+1,(a=e.push("heading_open","h"+String(c),1)).markup=String.fromCharCode(f),a.map=[t,e.line],(a=e.push("inline","",0)).content=r,a.map=[t,e.line-1],a.children=[],(a=e.push("heading_close","h"+String(c),-1)).markup=String.fromCharCode(f),e.parentType=d,!0)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t){var n,r,i,o,s,a,l=t+1,u=e.md.block.ruler.getRules("paragraph"),c=e.lineMax;for(a=e.parentType,e.parentType="paragraph";l<c&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3||e.sCount[l]<0)){for(r=!1,i=0,o=u.length;i<o;i++)if(u[i](e,l,c,!0)){r=!0;break}if(r)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(s=e.push("paragraph_open","p",1)).map=[t,e.line],(s=e.push("inline","",0)).content=n,s.map=[t,e.line],s.children=[],s=e.push("paragraph_close","p",-1),e.parentType=a,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(18),r=n(1).isSpace;function i(e,t,n,i){var o,s,a,l,u,c,f,d;for(this.src=e,this.md=t,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",d=!1,a=l=c=f=0,u=(s=this.src).length;l<u;l++){if(o=s.charCodeAt(l),!d){if(r(o)){c++,9===o?f+=4-f%4:f++;continue}d=!0}10!==o&&l!==u-1||(10!==o&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(c),this.sCount.push(f),this.bsCount.push(0),d=!1,c=0,f=0,a=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}i.prototype.push=function(e,n,r){var i=new t(e,n,r);return i.block=!0,r<0&&this.level--,i.level=this.level,r>0&&this.level++,this.tokens.push(i),i},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},i.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),r(t));e++);return e},i.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!r(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},i.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,n,i){var o,s,a,l,u,c,f,d=e;if(e>=t)return"";for(c=new Array(t-e),o=0;d<t;d++,o++){for(s=0,f=l=this.bMarks[d],u=d+1<t||i?this.eMarks[d]+1:this.eMarks[d];l<u&&s<n;){if(a=this.src.charCodeAt(l),r(a))9===a?s+=4-(s+this.bsCount[d])%4:s++;else{if(!(l-f<this.tShift[d]))break;s++}l++}c[o]=s>n?new Array(s-n+1).join(" ")+this.src.slice(l,u):this.src.slice(l,u)}return c.join("")},i.prototype.Token=t,e.exports=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(17),r=[["text",n(118)],["newline",n(119)],["escape",n(120)],["backticks",n(121)],["strikethrough",n(28).tokenize],["emphasis",n(29).tokenize],["link",n(122)],["image",n(123)],["autolink",n(124)],["html_inline",n(125)],["entity",n(126)]],i=[["balance_pairs",n(127)],["strikethrough",n(28).postProcess],["emphasis",n(29).postProcess],["text_collapse",n(128)]];function o(){var e;for(this.ruler=new t,e=0;e<r.length;e++)this.ruler.push(r[e][0],r[e][1]);for(this.ruler2=new t,e=0;e<i.length;e++)this.ruler2.push(i[e][0],i[e][1])}o.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,s=e.md.options.maxNesting,a=e.cache;if(void 0===a[r]){if(e.level<s)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,a[r]=e.pos}else e.pos=a[r]},o.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,s=e.md.options.maxNesting;e.pos<o;){if(e.level<s)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},o.prototype.parse=function(e,t,n,r){var i,o,s,a=new this.State(e,t,n,r);for(this.tokenize(a),s=(o=this.ruler2.getRules("")).length,i=0;i<s;i++)o[i](a)},o.prototype.State=n(129),e.exports=o})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,n){for(var r=e.pos;r<e.posMax&&!t(e.src.charCodeAt(r));)r++;return r!==e.pos&&(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(1).isSpace;e.exports=function(e,n){var r,i,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;for(r=e.pending.length-1,i=e.posMax,n||(r>=0&&32===e.pending.charCodeAt(r)?r>=1&&32===e.pending.charCodeAt(r-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),o++;o<i&&t(e.src.charCodeAt(o));)o++;return e.pos=o,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";for(var t=n(1).isSpace,r=[],i=0;i<256;i++)r.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){r[e.charCodeAt(0)]=1})),e.exports=function(e,n){var i,o=e.pos,s=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o<s){if((i=e.src.charCodeAt(o))<256&&0!==r[i])return n||(e.pending+=e.src[o]),e.pos+=2,!0;if(10===i){for(n||e.push("hardbreak","br",0),o++;o<s&&(i=e.src.charCodeAt(o),t(i));)o++;return e.pos=o,!0}}return n||(e.pending+="\\"),e.pos++,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t){var n,r,i,o,s,a,l,u,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,r=e.posMax;c<r&&96===e.src.charCodeAt(c);)c++;if(l=(i=e.src.slice(n,c)).length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=i),e.pos+=l,!0;for(s=a=c;-1!==(s=e.src.indexOf("`",a));){for(a=s+1;a<r&&96===e.src.charCodeAt(a);)a++;if((u=a-s)===l)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(c,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0;e.backticks[u]=s}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(1).normalizeReference,r=n(1).isSpace;e.exports=function(e,n){var i,o,s,a,l,u,c,f,d="",p="",h=e.pos,m=e.posMax,g=e.pos,v=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(l=e.pos+1,(a=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((u=a+1)<m&&40===e.src.charCodeAt(u)){for(v=!1,u++;u<m&&(o=e.src.charCodeAt(u),r(o)||10===o);u++);if(u>=m)return!1;if(g=u,(c=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok){for(d=e.md.normalizeLink(c.str),e.md.validateLink(d)?u=c.pos:d="",g=u;u<m&&(o=e.src.charCodeAt(u),r(o)||10===o);u++);if(c=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<m&&g!==u&&c.ok)for(p=c.str,u=c.pos;u<m&&(o=e.src.charCodeAt(u),r(o)||10===o);u++);}(u>=m||41!==e.src.charCodeAt(u))&&(v=!0),u++}if(v){if(void 0===e.env.references)return!1;if(u<m&&91===e.src.charCodeAt(u)?(g=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?s=e.src.slice(g,u++):u=a+1):u=a+1,s||(s=e.src.slice(l,a)),!(f=e.env.references[t(s)]))return e.pos=h,!1;d=f.href,p=f.title}return n||(e.pos=l,e.posMax=a,e.push("link_open","a",1).attrs=i=[["href",d]],p&&i.push(["title",p]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=u,e.posMax=m,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(1).normalizeReference,r=n(1).isSpace;e.exports=function(e,n){var i,o,s,a,l,u,c,f,d,p,h,m,g,v="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(u=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((c=l+1)<b&&40===e.src.charCodeAt(c)){for(c++;c<b&&(o=e.src.charCodeAt(c),r(o)||10===o);c++);if(c>=b)return!1;for(g=c,(d=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(v=e.md.normalizeLink(d.str),e.md.validateLink(v)?c=d.pos:v=""),g=c;c<b&&(o=e.src.charCodeAt(c),r(o)||10===o);c++);if(d=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<b&&g!==c&&d.ok)for(p=d.str,c=d.pos;c<b&&(o=e.src.charCodeAt(c),r(o)||10===o);c++);else p="";if(c>=b||41!==e.src.charCodeAt(c))return e.pos=y,!1;c++}else{if(void 0===e.env.references)return!1;if(c<b&&91===e.src.charCodeAt(c)?(g=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?a=e.src.slice(g,c++):c=l+1):c=l+1,a||(a=e.src.slice(u,l)),!(f=e.env.references[t(a)]))return e.pos=y,!1;v=f.href,p=f.title}return n||(s=e.src.slice(u,l),e.md.inline.parse(s,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=i=[["src",v],["alt",""]],h.children=m,h.content=s,p&&i.push(["title",p])),e.pos=c,e.posMax=b,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var i,o,s,a,l,u,c=e.pos;if(60!==e.src.charCodeAt(c))return!1;for(l=e.pos,u=e.posMax;;){if(++c>=u)return!1;if(60===(a=e.src.charCodeAt(c)))return!1;if(62===a)break}return i=e.src.slice(l+1,c),n.test(i)?(o=e.md.normalizeLink(i),!!e.md.validateLink(o)&&(r||((s=e.push("link_open","a",1)).attrs=[["href",o]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=i.length+2,!0)):!!t.test(i)&&(o=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(o)&&(r||((s=e.push("link_open","a",1)).attrs=[["href",o]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=i.length+2,!0))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(27).HTML_TAG_RE;e.exports=function(e,n){var r,i,o,s=e.pos;return!(!e.md.options.html||(o=e.posMax,60!==e.src.charCodeAt(s)||s+2>=o||33!==(r=e.src.charCodeAt(s+1))&&63!==r&&47!==r&&!function(e){var t=32|e;return t>=97&&t<=122}(r)||!(i=e.src.slice(s).match(t))||(n||(e.push("html_inline","",0).content=e.src.slice(s,s+i[0].length)),e.pos+=i[0].length,0)))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(22),r=n(1).has,i=n(1).isValidEntityCode,o=n(1).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,a=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,n){var l,u,c=e.pos,f=e.posMax;if(38!==e.src.charCodeAt(c))return!1;if(c+1<f)if(35===e.src.charCodeAt(c+1)){if(u=e.src.slice(c).match(s))return n||(l="x"===u[1][0].toLowerCase()?parseInt(u[1].slice(1),16):parseInt(u[1],10),e.pending+=i(l)?o(l):o(65533)),e.pos+=u[0].length,!0}else if((u=e.src.slice(c).match(a))&&r(t,u[1]))return n||(e.pending+=t[u[1]]),e.pos+=u[0].length,!0;return n||(e.pending+="&"),e.pos++,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t){var n,r,i,o,s,a,l,u,c={},f=t.length;for(n=0;n<f;n++)if((i=t[n]).length=i.length||0,i.close){for(c.hasOwnProperty(i.marker)||(c[i.marker]=[-1,-1,-1,-1,-1,-1]),s=c[i.marker][(i.open?3:0)+i.length%3],(r=n-i.jump-1)<-1&&(r=-1),a=r;r>s;r-=o.jump+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(l=!0)),!l)){u=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+u,i.open=!1,o.end=n,o.jump=u,o.close=!1,a=-1;break}-1!==a&&(c[i.marker][(i.open?3:0)+(i.length||0)%3]=a)}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(0,r[n].delimiters)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(18),r=n(1).isWhiteSpace,i=n(1).isPunctChar,o=n(1).isMdAsciiPunct;function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}s.prototype.pushPending=function(){var e=new t("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,n,r){this.pending&&this.pushPending();var i=new t(e,n,r),o=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},s.prototype.scanDelims=function(e,t){var n,s,a,l,u,c,f,d,p,h=e,m=!0,g=!0,v=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h<v&&this.src.charCodeAt(h)===y;)h++;return a=h-e,s=h<v?this.src.charCodeAt(h):32,f=o(n)||i(String.fromCharCode(n)),p=o(s)||i(String.fromCharCode(s)),c=r(n),(d=r(s))?m=!1:p&&(c||f||(m=!1)),c?g=!1:f&&(d||p||(g=!1)),t?(l=m,u=g):(l=m&&(!g||f),u=g&&(!m||p)),{can_open:l,can_close:u,length:a}},s.prototype.Token=t,e.exports=s})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function r(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===r(e)}function o(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},a={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(e){var t=e.re=n(131)(e.__opts__),s=e.__tlds__.slice();function a(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||s.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),s.push(t.src_xn),t.src_tlds=s.join("|"),t.email_fuzzy=RegExp(a(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(a(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(a(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(a(t.tpl_host_fuzzy_test),"i");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var o={validate:null,link:null};if(e.__compiled__[t]=o,"[object Object]"===r(n))return function(e){return"[object RegExp]"===r(e)}(n.validate)?o.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate):i(n.validate)?o.validate=n.validate:u(t,n),void(i(n.normalize)?o.normalize=n.normalize:n.normalize?u(t,n):o.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===r(e)}(n)?u(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var c=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(o).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+c+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+c+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function c(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function f(e,t){var n=new c(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function d(e,n){if(!(this instanceof d))return new d(e,n);var r;n||(r=e,Object.keys(r||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(n=e,e={})),this.__opts__=t({},s,n),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=t({},a,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},u(this)}d.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},d.prototype.set=function(e){return this.__opts__=t(this.__opts__,e),this},d.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,s,a,l;if(this.re.schema_test.test(e))for((a=this.re.schema_search).lastIndex=0;null!==(t=a.exec(e));)if(i=this.testSchemaAt(e,t[2],a.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s)),this.__index__>=0},d.prototype.pretest=function(e){return this.re.pretest.test(e)},d.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},d.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(f(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(f(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},d.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),u(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,u(this),this)},d.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},d.prototype.onCompile=function(){},e.exports=d})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t={};return t.src_Any=n(24).source,t.src_Cc=n(25).source,t.src_Z=n(26).source,t.src_P=n(16).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){(function(e,r){var i,o,s,a;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,a=function(){"use strict";
|
38 | /*! https://mths.be/punycode v1.4.1 by @mathias */!function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r&&r;o.global!==o&&o.window!==o&&o.self;var a,l=2147483647,u=/^xn--/,c=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(d[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function v(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(f,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function b(e){return g(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=36)e=p(e/35);return p(r+36*e/(e+38))}function _(e){var t,n,r,i,o,s,a,u,c,f,d,h=[],g=e.length,v=0,y=128,E=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),h.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(o=v,s=1,a=36;i>=g&&m("invalid-input"),((u=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||u>p((l-v)/s))&&m("overflow"),v+=u*s,!(u<(c=a<=E?1:a>=E+26?26:a-E));a+=36)s>p(l/(f=36-c))&&m("overflow"),s*=f;E=T(v-o,t=h.length+1,0==o),p(v/t)>l-y&&m("overflow"),y+=p(v/t),v%=t,h.splice(v++,0,y)}return b(h)}function k(e){var t,n,r,i,o,s,a,u,c,f,d,g,v,b,_,k=[];for(g=(e=y(e)).length,t=128,n=0,o=72,s=0;s<g;++s)(d=e[s])<128&&k.push(h(d));for(r=i=k.length,i&&k.push("-");r<g;){for(a=l,s=0;s<g;++s)(d=e[s])>=t&&d<a&&(a=d);for(a-t>p((l-n)/(v=r+1))&&m("overflow"),n+=(a-t)*v,t=a,s=0;s<g;++s)if((d=e[s])<t&&++n>l&&m("overflow"),d==t){for(u=n,c=36;!(u<(f=c<=o?1:c>=o+26?26:c-o));c+=36)_=u-f,b=36-f,k.push(h(E(f+_%b,0))),u=p(_/b);k.push(h(E(u,0))),o=T(n,v,r==i),n=0,++r}++n,++t}return k.join("")}a={version:"1.4.1",ucs2:{decode:y,encode:b},decode:_,encode:k,toASCII:function(e){return v(e,(function(e){return c.test(e)?"xn--"+k(e):e}))},toUnicode:function(e){return v(e,(function(e){return u.test(e)?_(e.slice(4).toLowerCase()):e}))}},void 0===(s=function(){return a}.call(t,n,t,e))||(e.exports=s)}()},o=[],void 0===(s="function"==typeof(i=a)?i.apply(t,o):i)||(e.exports=s)}).call(this,n(133)(e),n(13))},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0),n(7),n(15),n(4)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var e,o;const{schema:s}=(0,i.useSchemaContext)({nonNull:!0});if(!s)return null;const a=s.getQueryType(),l=null===(e=s.getMutationType)||void 0===e?void 0:e.call(s),u=null===(o=s.getSubscriptionType)||void 0===o?void 0:o.call(s);return t.default.createElement("div",null,t.default.createElement(r.default,{className:"doc-type-description",markdown:s.description||"A GraphQL schema provides a root type for each kind of operation."}),t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"root types"),a?t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("span",{className:"keyword"},"query"),": ",t.default.createElement(n.default,{type:a})):null,l&&t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("span",{className:"keyword"},"mutation"),": ",t.default.createElement(n.default,{type:l})),u&&t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("span",{className:"keyword"},"subscription"),": ",t.default.createElement(n.default,{type:u}))))},t=o(t),n=o(n),r=o(r)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0),n(139)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=r(t),n=r(n);class o extends t.default.Component{constructor(e){super(e),i(this,"handleChange",e=>{const t=e.currentTarget.value;this.setState({value:t}),this.debouncedOnSearch(t)}),i(this,"handleClear",()=>{this.setState({value:""}),this.props.onSearch("")}),this.state={value:e.value||""},this.debouncedOnSearch=(0,n.default)(200,this.props.onSearch)}render(){return t.default.createElement("label",{className:"search-box"},t.default.createElement("div",{className:"search-box-icon","aria-hidden":"true"},"⚲"),t.default.createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&t.default.createElement("button",{className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"✕"))}}e.default=o})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,t.apply(this,i)},e)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0),n(14),n(7),n(4),n(30)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){try{const n=t.replace(/[^_0-9A-Za-z]/g,e=>"\\"+e);return-1!==e.search(new RegExp(n,"i"))}catch(n){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){const{explorerNavStack:e}=(0,i.useExplorerContext)({nonNull:!0}),{schema:s}=(0,i.useSchemaContext)({nonNull:!0}),l=e[e.length-1];if(!s||!l.search)return null;const u=l.search,c=l.def,f=[],d=[],p=[],h=s.getTypeMap();let m=Object.keys(h);c&&(m=m.filter(e=>e!==c.name),m.unshift(c.name));for(const e of m){if(f.length+d.length+p.length>=100)break;const i=h[e];if(c!==i&&a(e,u)&&d.push(t.default.createElement("div",{className:"doc-category-item",key:e},t.default.createElement(r.default,{type:i}))),i&&"getFields"in i){const s=i.getFields();Object.keys(s).forEach(l=>{const d=s[l];let h;if(!a(l,u)){if(!("args"in d)||!d.args.length)return;if(h=d.args.filter(e=>a(e.name,u)),0===h.length)return}const m=t.default.createElement("div",{className:"doc-category-item",key:e+"."+l},c!==i&&[t.default.createElement(r.default,{key:"type",type:i}),"."],t.default.createElement(o.default,{field:d}),h&&["(",t.default.createElement("span",{key:"args"},h.map(e=>t.default.createElement(n.default,{key:e.name,arg:e,showDefaultValue:!1}))),")"]);c===i?f.push(m):p.push(m)})}}return f.length+d.length+p.length===0?t.default.createElement("span",{className:"doc-alert-text"},"No results found."):c&&d.length+p.length>0?t.default.createElement("div",null,f,t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"other results"),d,p)):t.default.createElement("div",{className:"doc-search-items"},f,d,p)},t=s(t),n=s(n),r=s(r),o=s(o)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(4),n(3),n(0),n(14),n(21),n(30),n(15),n(7)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,s,a,l){"use strict";function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function f(e){let{field:t}=e;return r.default.createElement("div",{className:"doc-category-item"},r.default.createElement(s.default,{field:t}),"args"in t&&t.args&&t.args.length>0&&["(",r.default.createElement("span",{key:"args"},t.args.filter(e=>!e.deprecationReason).map(e=>r.default.createElement(i.default,{key:e.name,arg:e}))),")"],": ",r.default.createElement(l.default,{type:t.type}),r.default.createElement(o.default,{field:t}),t.description&&r.default.createElement(a.default,{className:"field-short-description",markdown:t.description}),"deprecationReason"in t&&t.deprecationReason&&r.default.createElement(a.default,{className:"doc-deprecation",markdown:t.deprecationReason}))}function d(e){let{value:t}=e;return r.default.createElement("div",{className:"doc-category-item"},r.default.createElement("div",{className:"enum-value"},t.name),r.default.createElement(a.default,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&r.default.createElement(a.default,{className:"doc-deprecation",markdown:t.deprecationReason}))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){const{schema:e}=(0,t.useSchemaContext)({nonNull:!0}),{explorerNavStack:i}=(0,t.useExplorerContext)({nonNull:!0}),[o,s]=(0,r.useState)(!1),u=i[i.length-1].def;if(!e||!(0,n.isNamedType)(u))return null;let c,p,h,m,g,v=null,y=[];if((0,n.isUnionType)(u)?(v="possible types",y=e.getPossibleTypes(u)):(0,n.isInterfaceType)(u)?(v="implementations",y=e.getPossibleTypes(u)):(0,n.isObjectType)(u)&&(v="implements",y=u.getInterfaces()),y&&y.length>0&&(c=r.default.createElement("div",{id:"doc-types",className:"doc-category"},r.default.createElement("div",{className:"doc-category-title"},v),y.map(e=>r.default.createElement("div",{key:e.name,className:"doc-category-item"},r.default.createElement(l.default,{type:e}))))),u&&"getFields"in u){const e=u.getFields(),t=Object.keys(e).map(t=>e[t]);p=r.default.createElement("div",{id:"doc-fields",className:"doc-category"},r.default.createElement("div",{className:"doc-category-title"},"fields"),t.filter(e=>!e.deprecationReason).map(e=>r.default.createElement(f,{key:e.name,type:u,field:e})));const n=t.filter(e=>Boolean(e.deprecationReason));n.length>0&&(h=r.default.createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},r.default.createElement("div",{className:"doc-category-title"},"deprecated fields"),o?n.map(e=>r.default.createElement(f,{key:e.name,type:u,field:e})):r.default.createElement("button",{className:"show-btn",onClick:()=>{s(!0)}},"Show deprecated fields...")))}if((0,n.isEnumType)(u)){const e=u.getValues();m=r.default.createElement("div",{className:"doc-category"},r.default.createElement("div",{className:"doc-category-title"},"values"),e.filter(e=>Boolean(!e.deprecationReason)).map(e=>r.default.createElement(d,{key:e.name,value:e})));const t=e.filter(e=>Boolean(e.deprecationReason));t.length>0&&(g=r.default.createElement("div",{className:"doc-category"},r.default.createElement("div",{className:"doc-category-title"},"deprecated values"),o?t.map(e=>r.default.createElement(d,{key:e.name,value:e})):r.default.createElement("button",{className:"show-btn",onClick:()=>{s(!0)}},"Show deprecated values...")))}return r.default.createElement("div",null,r.default.createElement(a.default,{className:"doc-type-description",markdown:"description"in u&&u.description||"No Description"}),(0,n.isObjectType)(u)&&c,p,h,m,g,!(0,n.isObjectType)(u)&&c)},r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(r),i=u(i),o=u(o),s=u(s),a=u(a),l=u(l)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(4),n(0)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function i(e){var r;const{editLabel:i,toggleFavorite:o}=(0,t.useHistoryContext)({nonNull:!0}),s=(0,t.useSelectHistoryItem)(),a=(0,n.useRef)(null),[l,u]=(0,n.useState)(!1);(0,n.useEffect)(()=>{l&&a.current&&a.current.focus()},[l]);const c=e.item.label||e.item.operationName||(null===(r=e.item.query)||void 0===r?void 0:r.split("\n").filter(e=>0!==e.indexOf("#")).join("")),f=e.item.favorite?"★":"☆";return n.default.createElement("li",{className:l?"editable":void 0},l?n.default.createElement("input",{type:"text",defaultValue:e.item.label,ref:a,onBlur:t=>{t.stopPropagation(),u(!1),i({...e.item,label:t.target.value})},onKeyDown:t=>{13===t.keyCode&&(t.stopPropagation(),u(!1),i({...e.item,label:t.currentTarget.value}))},placeholder:"Type a label"}):n.default.createElement("button",{className:"history-label",onClick:()=>{s(e.item)}},c),n.default.createElement("button",{onClick:e=>{e.stopPropagation(),u(!0)},"aria-label":"Edit label"},"✎"),n.default.createElement("button",{onClick:t=>{t.stopPropagation(),o(e.item)},"aria-label":e.item.favorite?"Remove favorite":"Add favorite"},f))}Object.defineProperty(e,"__esModule",{value:!0}),e.QueryHistory=function(){const{hide:e,items:r}=(0,t.useHistoryContext)({nonNull:!0});return n.default.createElement("section",{"aria-label":"History"},n.default.createElement("div",{className:"history-title-bar"},n.default.createElement("div",{className:"history-title"},"History"),n.default.createElement("div",{className:"doc-explorer-rhs"},n.default.createElement("button",{className:"docExplorerHide",onClick:()=>e(),"aria-label":"Close History"},"✕"))),n.default.createElement("ul",{className:"history-contents"},r.slice().reverse().map((e,t)=>n.default.createElement(i,{key:`${t}:${e.label||e.query}`,item:e}))))},e.QueryHistoryItem=i,n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=o?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(i,s,a):i[s]=e[s]}return i.default=e,n&&n.set(e,i),i}(n)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(0)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function r(e){return t.default.createElement("div",{role:"button","aria-pressed":!1,className:"close","aria-label":"Close Tab",title:"Close Tab",onClick:t=>{t.stopPropagation(),e.onClick()}})}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.Tab=function(e){return t.default.createElement("button",n({},e.tabProps,{role:"tab",type:"button","aria-selected":e.isActive,title:e.title,className:"tab"+(e.isActive?" active":""),onClick:e.onSelect}),e.title,e.isCloseable?t.default.createElement(r,{onClick:()=>e.onClose()}):null)},e.TabAddButton=function(e){return t.default.createElement("button",{onClick:e.onClick,className:"tab-add",title:"Create new tab"},t.default.createElement("span",null,"+"))},e.Tabs=function(e){return t.default.createElement("div",n({role:"tablist",className:"tabs"},e.tabsProps),e.children)},t=(i=t)&&i.__esModule?i:{default:i}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(2)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.c=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}r(i,"_mergeNamespaces");var o={exports:{}};!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function i(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.removeKeyMap(o),t.state.closeBrackets=null),n&&(s(i(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(o))})),r(i,"getOption");var o={Backspace:u,Enter:c};function s(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";o[r]||(o[r]=a(n))}}function a(e){return function(t){return p(t,e)}}function l(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function u(t){var r=l(t);if(!r||t.getOption("disableInput"))return e.Pass;for(var o=i(r,"pairs"),s=t.listSelections(),a=0;a<s.length;a++){if(!s[a].empty())return e.Pass;var u=h(t,s[a].head);if(!u||o.indexOf(u)%2!=0)return e.Pass}for(a=s.length-1;a>=0;a--){var c=s[a].head;t.replaceRange("",n(c.line,c.ch-1),n(c.line,c.ch+1),"+delete")}}function c(t){var n=l(t),r=n&&i(n,"explode");if(!r||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),s=0;s<o.length;s++){if(!o[s].empty())return e.Pass;var a=h(t,o[s].head);if(!a||r.indexOf(a)%2!=0)return e.Pass}t.operation((function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),f(t,-1),o=t.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)}}))}function f(e,t){for(var n=[],r=e.listSelections(),i=0,o=0;o<r.length;o++){var s=r[o];s.head==e.getCursor()&&(i=o);var a=s.head.ch||t>0?{line:s.head.line,ch:s.head.ch+t}:{line:s.head.line-1};n.push({anchor:a,head:a})}e.setSelections(n,i)}function d(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function p(t,r){var o=l(t);if(!o||t.getOption("disableInput"))return e.Pass;var s=i(o,"pairs"),a=s.indexOf(r);if(-1==a)return e.Pass;for(var u,c=i(o,"closeBefore"),p=i(o,"triples"),h=s.charAt(a+1)==r,g=t.listSelections(),v=a%2==0,y=0;y<g.length;y++){var b,E=g[y],T=E.head,_=t.getRange(T,n(T.line,T.ch+1));if(v&&!E.empty())b="surround";else if(!h&&v||_!=r)if(h&&T.ch>1&&p.indexOf(r)>=0&&t.getRange(n(T.line,T.ch-2),T)==r+r){if(T.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(T.line,T.ch-2))))return e.Pass;b="addFour"}else if(h){var k=0==T.ch?" ":t.getRange(n(T.line,T.ch-1),T);if(e.isWordChar(_)||k==r||e.isWordChar(k))return e.Pass;b="both"}else{if(!v||!(0===_.length||/\s/.test(_)||c.indexOf(_)>-1))return e.Pass;b="both"}else b=h&&m(t,T)?"both":p.indexOf(r)>=0&&t.getRange(T,n(T.line,T.ch+3))==r+r+r?"skipThree":"skip";if(u){if(u!=b)return e.Pass}else u=b}var x=a%2?s.charAt(a-1):r,C=a%2?r:s.charAt(a+1);t.operation((function(){if("skip"==u)f(t,1);else if("skipThree"==u)f(t,3);else if("surround"==u){for(var e=t.getSelections(),n=0;n<e.length;n++)e[n]=x+e[n]+C;for(t.replaceSelections(e,"around"),e=t.listSelections().slice(),n=0;n<e.length;n++)e[n]=d(e[n]);t.setSelections(e)}else"both"==u?(t.replaceSelection(x+C,null),t.triggerElectric(x+C),f(t,-1)):"addFour"==u&&(t.replaceSelection(x+x+x+x,"before"),f(t,1))}))}function h(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function m(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}r(s,"ensureBound"),s(t.pairs+"`"),r(a,"handler"),r(l,"getConfig"),r(u,"handleBackspace"),r(c,"handleEnter"),r(f,"moveSel"),r(d,"contractSelection"),r(p,"handleChar"),r(h,"charsAround"),r(m,"stringStartsAfter")}(t.a.exports);var s=o.exports,a=Object.freeze(i({__proto__:null,[Symbol.toStringTag]:"Module",default:s},[o.exports]));e.c=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(2)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.l=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}r(i,"_mergeNamespaces");var o={exports:{}};!function(e){var t="CodeMirror-lint-markers";function n(t,n,i){var o=document.createElement("div");function s(t){if(!o.parentNode)return e.off(document,"mousemove",s);o.style.top=Math.max(0,t.clientY-o.offsetHeight-5)+"px",o.style.left=t.clientX+5+"px"}return o.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,o.appendChild(i.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(o):document.body.appendChild(o),r(s,"position"),e.on(document,"mousemove",s),s(n),null!=o.style.opacity&&(o.style.opacity=1),o}function i(e){e.parentNode&&e.parentNode.removeChild(e)}function o(e){e.parentNode&&(null==e.style.opacity&&i(e),e.style.opacity=0,setTimeout((function(){i(e)}),600))}function s(t,i,s,a){var l=n(t,i,s);function u(){e.off(a,"mouseout",u),l&&(o(l),l=null)}r(u,"hide");var c=setInterval((function(){if(l)for(var e=a;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){u();break}}if(!l)return clearInterval(c)}),400);e.on(a,"mouseout",u)}function a(e,t,n){for(var r in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},l)this.options[r]=l[r];for(var r in t)l.hasOwnProperty(r)?null!=t[r]&&(this.options[r]=t[r]):t.options||(this.linterOptions[r]=t[r]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){E(e,t)},this.waitingFor=0}r(n,"showTooltip"),r(i,"rm"),r(o,"hideTooltip"),r(s,"showTooltipFor"),r(a,"LintState");var l={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function u(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&c(e);for(var r=0;r<n.marked.length;++r)n.marked[r].clear();n.marked.length=0}function c(e){e.eachLine((function(t){var n=t.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(t.wrapClass);n&&e.removeLineClass(t,"wrap",n[0])}))}function f(t,n,r,i,o){var a=document.createElement("div"),l=a;return a.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+r,i&&((l=a.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=o&&e.on(l,"mouseover",(function(e){s(t,e,n,l)})),a}function d(e,t){return"error"==e?e:t}function p(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r.from.line;(t[i]||(t[i]=[])).push(r)}return t}function h(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function m(t,n){var i=t.state.lint,o=++i.waitingFor;function s(){o=-1,t.off("change",s)}r(s,"abort"),t.on("change",s),n(t.getValue(),(function(n,r){t.off("change",s),i.waitingFor==o&&(r&&n instanceof e&&(n=r),t.operation((function(){v(t,n)})))}),i.linterOptions,t)}function g(t){var n=t.state.lint;if(n){var r=n.options,i=r.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(i)if(r.async||i.async)m(t,i);else{var o=i(t.getValue(),n.linterOptions,t);if(!o)return;o.then?o.then((function(e){t.operation((function(){v(t,e)}))})):t.operation((function(){v(t,o)}))}}}function v(e,n){var r=e.state.lint;if(r){var i=r.options;u(e);for(var o=p(n),s=0;s<o.length;++s){var a=o[s];if(a){var l=[];a=a.filter((function(e){return!(l.indexOf(e.message)>-1)&&l.push(e.message)}));for(var c=null,m=r.hasGutter&&document.createDocumentFragment(),g=0;g<a.length;++g){var v=a[g],y=v.severity;y||(y="error"),c=d(c,y),i.formatAnnotation&&(v=i.formatAnnotation(v)),r.hasGutter&&m.appendChild(h(v)),v.to&&r.marked.push(e.markText(v.from,v.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+y,__annotation:v}))}r.hasGutter&&e.setGutterMarker(s,t,f(e,m,c,o[s].length>1,i.tooltips)),i.highlightLines&&e.addLineClass(s,"wrap","CodeMirror-lint-line-"+c)}}i.onUpdateLinting&&i.onUpdateLinting(n,o,e)}}function y(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){g(e)}),t.options.delay))}function b(e,t,n){for(var r=n.target||n.srcElement,i=document.createDocumentFragment(),o=0;o<t.length;o++){var a=t[o];i.appendChild(h(a))}s(e,n,i,r)}function E(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var r=n.getBoundingClientRect(),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2,s=e.findMarksAt(e.coordsChar({left:i,top:o},"client")),a=[],l=0;l<s.length;++l){var u=s[l].__annotation;u&&a.push(u)}a.length&&b(e,a,t)}}r(u,"clearMarks"),r(c,"clearErrorLines"),r(f,"makeMarker"),r(d,"getMaxSeverity"),r(p,"groupByLine"),r(h,"annotationTooltip"),r(m,"lintAsync"),r(g,"startLinting"),r(v,"updateLinting"),r(y,"onChange"),r(b,"popupTooltips"),r(E,"onMouseOver"),e.defineOption("lint",!1,(function(n,r,i){if(i&&i!=e.Init&&(u(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",y),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var o=n.getOption("gutters"),s=!1,l=0;l<o.length;++l)o[l]==t&&(s=!0);var c=n.state.lint=new a(n,r,s);c.options.lintOnChange&&n.on("change",y),0!=c.options.tooltips&&"gutter"!=c.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",c.onMouseOver),g(n)}})),e.defineExtension("performLint",(function(){g(this)}))}(t.a.exports);var s=o.exports,a=Object.freeze(i({__proto__:null,[Symbol.toStringTag]:"Module",default:s},[o.exports]));e.l=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(2)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.j=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}r(i,"_mergeNamespaces");var o,s={exports:{}};(o=t.a.exports).defineMode("javascript",(function(e,t){var n,i,s=e.indentUnit,a=t.statementIndent,l=t.jsonld,u=t.json||l,c=!1!==t.trackScope,f=t.typescript,d=t.wordCharacters||/[\w$\xa1-\uffff]/,p=function(){function e(e){return{type:e,style:"keyword"}}r(e,"kw");var t=e("keyword a"),n=e("keyword b"),i=e("keyword c"),o=e("keyword d"),s=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:o,break:o,continue:o,new:e("new"),delete:i,void:i,throw:i,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:s,typeof:s,instanceof:s,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:i,export:e("export"),import:e("import"),extends:i,await:i}}(),h=/[+\-*&%=<>!?|~^@]/,m=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function v(e,t,r){return n=e,i=r,t}function y(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=b(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==n&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return v(n);if("="==n&&e.eat(">"))return v("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==n)return e.eat("*")?(t.tokenize=E,E(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):it(e,t,1)?(g(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==n)return t.tokenize=T,T(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==n&&e.eatWhile(d))return v("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(h.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?v("."):v("operator","operator",e.current());if(d.test(n)){e.eatWhile(d);var r=e.current();if("."!=t.lastType){if(p.propertyIsEnumerable(r)){var i=p[r];return v(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",r)}return v("variable","variable",r)}}function b(e){return function(t,n){var r,i=!1;if(l&&"@"==t.peek()&&t.match(m))return n.tokenize=y,v("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=y),v("string","string")}}function E(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=y;break}r="*"==n}return v("comment","comment")}function T(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=y;break}r=!r&&"\\"==n}return v("quasi","string-2",e.current())}function _(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(f){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,s=n-1;s>=0;--s){var a=e.string.charAt(s),l="([{}])".indexOf(a);if(l>=0&&l<3){if(!i){++s;break}if(0==--i){"("==a&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(d.test(a))o=!0;else if(/["'\/`]/.test(a))for(;;--s){if(0==s)return;if(e.string.charAt(s-1)==a&&"\\"!=e.string.charAt(s-2)){s--;break}}else if(o&&!i){++s;break}}o&&!i&&(t.fatArrowAt=s)}}r(g,"readRegexp"),r(v,"ret"),r(y,"tokenBase"),r(b,"tokenString"),r(E,"tokenComment"),r(T,"tokenQuasi"),r(_,"findFatArrow");var k={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function x(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function C(e,t){if(!c)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function w(e,t,n,r,i){var o=e.cc;for(S.state=e,S.stream=i,S.marked=null,S.cc=o,S.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():u?H:z)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return S.marked?S.marked:"variable"==n&&C(e,r)?"variable-2":t}}r(x,"JSLexical"),r(C,"inScope"),r(w,"parseJS");var S={state:null,column:null,marked:null,cc:null};function N(){for(var e=arguments.length-1;e>=0;e--)S.cc.push(arguments[e])}function A(){return N.apply(null,arguments),!0}function O(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function I(e){var n=S.state;if(S.marked="def",c){if(n.context)if("var"==n.lexical.info&&n.context&&n.context.block){var r=D(e,n.context);if(null!=r)return void(n.context=r)}else if(!O(e,n.localVars))return void(n.localVars=new M(e,n.localVars));t.globalVars&&!O(e,n.globalVars)&&(n.globalVars=new M(e,n.globalVars))}}function D(e,t){if(t){if(t.block){var n=D(e,t.prev);return n?n==t.prev?t:new F(n,t.vars,!0):null}return O(e,t.vars)?t:new F(t.prev,new M(e,t.vars),!1)}return null}function L(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function F(e,t,n){this.prev=e,this.vars=t,this.block=n}function M(e,t){this.name=e,this.next=t}r(N,"pass"),r(A,"cont"),r(O,"inList"),r(I,"register"),r(D,"registerVarScoped"),r(L,"isModifier"),r(F,"Context"),r(M,"Var");var R=new M("this",new M("arguments",null));function P(){S.state.context=new F(S.state.context,S.state.localVars,!1),S.state.localVars=R}function j(){S.state.context=new F(S.state.context,S.state.localVars,!0),S.state.localVars=null}function V(){S.state.localVars=S.state.context.vars,S.state.context=S.state.context.prev}function U(e,t){var n=r((function(){var n=S.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new x(r,S.stream.column(),e,null,n.lexical,t)}),"result");return n.lex=!0,n}function B(){var e=S.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function q(e){function t(n){return n==e?A():";"==e||"}"==n||")"==n||"]"==n?N():A(t)}return r(t,"exp"),t}function z(e,t){return"var"==e?A(U("vardef",t),Ne,q(";"),B):"keyword a"==e?A(U("form"),W,z,B):"keyword b"==e?A(U("form"),z,B):"keyword d"==e?S.stream.match(/^\s*$/,!1)?A():A(U("stat"),K,q(";"),B):"debugger"==e?A(q(";")):"{"==e?A(U("}"),j,de,B,V):";"==e?A():"if"==e?("else"==S.state.lexical.info&&S.state.cc[S.state.cc.length-1]==B&&S.state.cc.pop()(),A(U("form"),W,z,B,Fe)):"function"==e?A(je):"for"==e?A(U("form"),j,Me,z,V,B):"class"==e||f&&"interface"==t?(S.marked="keyword",A(U("form","class"==e?e:t),ze,B)):"variable"==e?f&&"declare"==t?(S.marked="keyword",A(z)):f&&("module"==t||"enum"==t||"type"==t)&&S.stream.match(/^\s*\w/,!1)?(S.marked="keyword","enum"==t?A(tt):"type"==t?A(Ue,q("operator"),ve,q(";")):A(U("form"),Ae,q("{"),U("}"),de,B,B)):f&&"namespace"==t?(S.marked="keyword",A(U("form"),H,z,B)):f&&"abstract"==t?(S.marked="keyword",A(z)):A(U("stat"),oe):"switch"==e?A(U("form"),W,q("{"),U("}","switch"),j,de,B,B,V):"case"==e?A(H,q(":")):"default"==e?A(q(":")):"catch"==e?A(U("form"),P,$,z,B,V):"export"==e?A(U("stat"),We,B):"import"==e?A(U("stat"),Ke,B):"async"==e?A(z):"@"==t?A(H,z):N(U("stat"),H,q(";"),B)}function $(e){if("("==e)return A(Be,q(")"))}function H(e,t){return Q(e,t,!1)}function G(e,t){return Q(e,t,!0)}function W(e){return"("!=e?N():A(U(")"),K,q(")"),B)}function Q(e,t,n){if(S.state.fatArrowAt==S.stream.start){var r=n?te:ee;if("("==e)return A(P,U(")"),ce(Be,")"),B,q("=>"),r,V);if("variable"==e)return N(P,Ae,q("=>"),r,V)}var i=n?Y:J;return k.hasOwnProperty(e)?A(i):"function"==e?A(je,i):"class"==e||f&&"interface"==t?(S.marked="keyword",A(U("form"),qe,B)):"keyword c"==e||"async"==e?A(n?G:H):"("==e?A(U(")"),K,q(")"),B,i):"operator"==e||"spread"==e?A(n?G:H):"["==e?A(U("]"),et,B,i):"{"==e?fe(ae,"}",null,i):"quasi"==e?N(Z,i):"new"==e?A(ne(n)):A()}function K(e){return e.match(/[;\}\)\],]/)?N():N(H)}function J(e,t){return","==e?A(K):Y(e,t,!1)}function Y(e,t,n){var r=0==n?J:Y,i=0==n?H:G;return"=>"==e?A(P,n?te:ee,V):"operator"==e?/\+\+|--/.test(t)||f&&"!"==t?A(r):f&&"<"==t&&S.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?A(U(">"),ce(ve,">"),B,r):"?"==t?A(H,q(":"),i):A(i):"quasi"==e?N(Z,r):";"!=e?"("==e?fe(G,")","call",r):"."==e?A(se,r):"["==e?A(U("]"),K,q("]"),B,r):f&&"as"==t?(S.marked="keyword",A(ve,r)):"regexp"==e?(S.state.lastType=S.marked="operator",S.stream.backUp(S.stream.pos-S.stream.start-1),A(i)):void 0:void 0}function Z(e,t){return"quasi"!=e?N():"${"!=t.slice(t.length-2)?A(Z):A(K,X)}function X(e){if("}"==e)return S.marked="string-2",S.state.tokenize=T,A(Z)}function ee(e){return _(S.stream,S.state),N("{"==e?z:H)}function te(e){return _(S.stream,S.state),N("{"==e?z:G)}function ne(e){return function(t){return"."==t?A(e?ie:re):"variable"==t&&f?A(Ce,e?Y:J):N(e?G:H)}}function re(e,t){if("target"==t)return S.marked="keyword",A(J)}function ie(e,t){if("target"==t)return S.marked="keyword",A(Y)}function oe(e){return":"==e?A(B,z):N(J,q(";"),B)}function se(e){if("variable"==e)return S.marked="property",A()}function ae(e,t){return"async"==e?(S.marked="property",A(ae)):"variable"==e||"keyword"==S.style?(S.marked="property","get"==t||"set"==t?A(le):(f&&S.state.fatArrowAt==S.stream.start&&(n=S.stream.match(/^\s*:\s*/,!1))&&(S.state.fatArrowAt=S.stream.pos+n[0].length),A(ue))):"number"==e||"string"==e?(S.marked=l?"property":S.style+" property",A(ue)):"jsonld-keyword"==e?A(ue):f&&L(t)?(S.marked="keyword",A(ae)):"["==e?A(H,pe,q("]"),ue):"spread"==e?A(G,ue):"*"==t?(S.marked="keyword",A(ae)):":"==e?N(ue):void 0;var n}function le(e){return"variable"!=e?N(ue):(S.marked="property",A(je))}function ue(e){return":"==e?A(G):"("==e?N(je):void 0}function ce(e,t,n){function i(r,o){if(n?n.indexOf(r)>-1:","==r){var s=S.state.lexical;return"call"==s.info&&(s.pos=(s.pos||0)+1),A((function(n,r){return n==t||r==t?N():N(e)}),i)}return r==t||o==t?A():n&&n.indexOf(";")>-1?N(e):A(q(t))}return r(i,"proceed"),function(n,r){return n==t||r==t?A():N(e,i)}}function fe(e,t,n){for(var r=3;r<arguments.length;r++)S.cc.push(arguments[r]);return A(U(t,n),ce(e,t),B)}function de(e){return"}"==e?A():N(z,de)}function pe(e,t){if(f){if(":"==e)return A(ve);if("?"==t)return A(pe)}}function he(e,t){if(f&&(":"==e||"in"==t))return A(ve)}function me(e){if(f&&":"==e)return S.stream.match(/^\s*\w+\s+is\b/,!1)?A(H,ge,ve):A(ve)}function ge(e,t){if("is"==t)return S.marked="keyword",A()}function ve(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(S.marked="keyword",A("typeof"==t?G:ve)):"variable"==e||"void"==t?(S.marked="type",A(xe)):"|"==t||"&"==t?A(ve):"string"==e||"number"==e||"atom"==e?A(xe):"["==e?A(U("]"),ce(ve,"]",","),B,xe):"{"==e?A(U("}"),be,B,xe):"("==e?A(ce(ke,")"),ye,xe):"<"==e?A(ce(ve,">"),ve):"quasi"==e?N(Te,xe):void 0}function ye(e){if("=>"==e)return A(ve)}function be(e){return e.match(/[\}\)\]]/)?A():","==e||";"==e?A(be):N(Ee,be)}function Ee(e,t){return"variable"==e||"keyword"==S.style?(S.marked="property",A(Ee)):"?"==t||"number"==e||"string"==e?A(Ee):":"==e?A(ve):"["==e?A(q("variable"),he,q("]"),Ee):"("==e?N(Ve,Ee):e.match(/[;\}\)\],]/)?void 0:A()}function Te(e,t){return"quasi"!=e?N():"${"!=t.slice(t.length-2)?A(Te):A(ve,_e)}function _e(e){if("}"==e)return S.marked="string-2",S.state.tokenize=T,A(Te)}function ke(e,t){return"variable"==e&&S.stream.match(/^\s*[?:]/,!1)||"?"==t?A(ke):":"==e?A(ve):"spread"==e?A(ke):N(ve)}function xe(e,t){return"<"==t?A(U(">"),ce(ve,">"),B,xe):"|"==t||"."==e||"&"==t?A(ve):"["==e?A(ve,q("]"),xe):"extends"==t||"implements"==t?(S.marked="keyword",A(ve)):"?"==t?A(ve,q(":"),ve):void 0}function Ce(e,t){if("<"==t)return A(U(">"),ce(ve,">"),B,xe)}function we(){return N(ve,Se)}function Se(e,t){if("="==t)return A(ve)}function Ne(e,t){return"enum"==t?(S.marked="keyword",A(tt)):N(Ae,pe,De,Le)}function Ae(e,t){return f&&L(t)?(S.marked="keyword",A(Ae)):"variable"==e?(I(t),A()):"spread"==e?A(Ae):"["==e?fe(Ie,"]"):"{"==e?fe(Oe,"}"):void 0}function Oe(e,t){return"variable"!=e||S.stream.match(/^\s*:/,!1)?("variable"==e&&(S.marked="property"),"spread"==e?A(Ae):"}"==e?N():"["==e?A(H,q("]"),q(":"),Oe):A(q(":"),Ae,De)):(I(t),A(De))}function Ie(){return N(Ae,De)}function De(e,t){if("="==t)return A(G)}function Le(e){if(","==e)return A(Ne)}function Fe(e,t){if("keyword b"==e&&"else"==t)return A(U("form","else"),z,B)}function Me(e,t){return"await"==t?A(Me):"("==e?A(U(")"),Re,B):void 0}function Re(e){return"var"==e?A(Ne,Pe):"variable"==e?A(Pe):N(Pe)}function Pe(e,t){return")"==e?A():";"==e?A(Pe):"in"==t||"of"==t?(S.marked="keyword",A(H,Pe)):N(H,Pe)}function je(e,t){return"*"==t?(S.marked="keyword",A(je)):"variable"==e?(I(t),A(je)):"("==e?A(P,U(")"),ce(Be,")"),B,me,z,V):f&&"<"==t?A(U(">"),ce(we,">"),B,je):void 0}function Ve(e,t){return"*"==t?(S.marked="keyword",A(Ve)):"variable"==e?(I(t),A(Ve)):"("==e?A(P,U(")"),ce(Be,")"),B,me,V):f&&"<"==t?A(U(">"),ce(we,">"),B,Ve):void 0}function Ue(e,t){return"keyword"==e||"variable"==e?(S.marked="type",A(Ue)):"<"==t?A(U(">"),ce(we,">"),B):void 0}function Be(e,t){return"@"==t&&A(H,Be),"spread"==e?A(Be):f&&L(t)?(S.marked="keyword",A(Be)):f&&"this"==e?A(pe,De):N(Ae,pe,De)}function qe(e,t){return"variable"==e?ze(e,t):$e(e,t)}function ze(e,t){if("variable"==e)return I(t),A($e)}function $e(e,t){return"<"==t?A(U(">"),ce(we,">"),B,$e):"extends"==t||"implements"==t||f&&","==e?("implements"==t&&(S.marked="keyword"),A(f?ve:H,$e)):"{"==e?A(U("}"),He,B):void 0}function He(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||f&&L(t))&&S.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(S.marked="keyword",A(He)):"variable"==e||"keyword"==S.style?(S.marked="property",A(Ge,He)):"number"==e||"string"==e?A(Ge,He):"["==e?A(H,pe,q("]"),Ge,He):"*"==t?(S.marked="keyword",A(He)):f&&"("==e?N(Ve,He):";"==e||","==e?A(He):"}"==e?A():"@"==t?A(H,He):void 0}function Ge(e,t){if("!"==t)return A(Ge);if("?"==t)return A(Ge);if(":"==e)return A(ve,De);if("="==t)return A(G);var n=S.state.lexical.prev;return N(n&&"interface"==n.info?Ve:je)}function We(e,t){return"*"==t?(S.marked="keyword",A(Xe,q(";"))):"default"==t?(S.marked="keyword",A(H,q(";"))):"{"==e?A(ce(Qe,"}"),Xe,q(";")):N(z)}function Qe(e,t){return"as"==t?(S.marked="keyword",A(q("variable"))):"variable"==e?N(G,Qe):void 0}function Ke(e){return"string"==e?A():"("==e?N(H):"."==e?N(J):N(Je,Ye,Xe)}function Je(e,t){return"{"==e?fe(Je,"}"):("variable"==e&&I(t),"*"==t&&(S.marked="keyword"),A(Ze))}function Ye(e){if(","==e)return A(Je,Ye)}function Ze(e,t){if("as"==t)return S.marked="keyword",A(Je)}function Xe(e,t){if("from"==t)return S.marked="keyword",A(H)}function et(e){return"]"==e?A():N(ce(G,"]"))}function tt(){return N(U("form"),Ae,q("{"),U("}"),ce(nt,"}"),B,B)}function nt(){return N(Ae,De)}function rt(e,t){return"operator"==e.lastType||","==e.lastType||h.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function it(e,t,n){return t.tokenize==y&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return r(P,"pushcontext"),r(j,"pushblockcontext"),P.lex=j.lex=!0,r(V,"popcontext"),V.lex=!0,r(U,"pushlex"),r(B,"poplex"),B.lex=!0,r(q,"expect"),r(z,"statement"),r($,"maybeCatchBinding"),r(H,"expression"),r(G,"expressionNoComma"),r(W,"parenExpr"),r(Q,"expressionInner"),r(K,"maybeexpression"),r(J,"maybeoperatorComma"),r(Y,"maybeoperatorNoComma"),r(Z,"quasi"),r(X,"continueQuasi"),r(ee,"arrowBody"),r(te,"arrowBodyNoComma"),r(ne,"maybeTarget"),r(re,"target"),r(ie,"targetNoComma"),r(oe,"maybelabel"),r(se,"property"),r(ae,"objprop"),r(le,"getterSetter"),r(ue,"afterprop"),r(ce,"commasep"),r(fe,"contCommasep"),r(de,"block"),r(pe,"maybetype"),r(he,"maybetypeOrIn"),r(me,"mayberettype"),r(ge,"isKW"),r(ve,"typeexpr"),r(ye,"maybeReturnType"),r(be,"typeprops"),r(Ee,"typeprop"),r(Te,"quasiType"),r(_e,"continueQuasiType"),r(ke,"typearg"),r(xe,"afterType"),r(Ce,"maybeTypeArgs"),r(we,"typeparam"),r(Se,"maybeTypeDefault"),r(Ne,"vardef"),r(Ae,"pattern"),r(Oe,"proppattern"),r(Ie,"eltpattern"),r(De,"maybeAssign"),r(Le,"vardefCont"),r(Fe,"maybeelse"),r(Me,"forspec"),r(Re,"forspec1"),r(Pe,"forspec2"),r(je,"functiondef"),r(Ve,"functiondecl"),r(Ue,"typename"),r(Be,"funarg"),r(qe,"classExpression"),r(ze,"className"),r($e,"classNameAfter"),r(He,"classBody"),r(Ge,"classfield"),r(We,"afterExport"),r(Qe,"exportField"),r(Ke,"afterImport"),r(Je,"importSpec"),r(Ye,"maybeMoreImports"),r(Ze,"maybeAs"),r(Xe,"maybeFrom"),r(et,"arrayLiteral"),r(tt,"enumdef"),r(nt,"enummember"),r(rt,"isContinuedStatement"),r(it,"expressionAllowed"),{startState:function(e){var n={tokenize:y,lastType:"sof",cc:[],lexical:new x((e||0)-s,0,"block",!1),localVars:t.localVars,context:t.localVars&&new F(null,null,!1),indented:e||0};return t.globalVars&&"object"==typeof t.globalVars&&(n.globalVars=t.globalVars),n},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),_(e,t)),t.tokenize!=E&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=i&&"--"!=i?n:"incdec",w(t,r,n,i,e))},indent:function(e,n){if(e.tokenize==E||e.tokenize==T)return o.Pass;if(e.tokenize!=y)return 0;var r,i=n&&n.charAt(0),l=e.lexical;if(!/^\s*else\b/.test(n))for(var u=e.cc.length-1;u>=0;--u){var c=e.cc[u];if(c==B)l=l.prev;else if(c!=Fe&&c!=V)break}for(;("stat"==l.type||"form"==l.type)&&("}"==i||(r=e.cc[e.cc.length-1])&&(r==J||r==Y)&&!/^[,\.=+\-*:?[\(]/.test(n));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var f=l.type,d=i==f;return"vardef"==f?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==f&&"{"==i?l.indented:"form"==f?l.indented+s:"stat"==f?l.indented+(rt(e,n)?a||s:0):"switch"!=l.info||d||0==t.doubleIndentSwitch?l.align?l.column+(d?0:1):l.indented+(d?0:s):l.indented+(/^(?:case|default)\b/.test(n)?s:2*s)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:l,jsonMode:u,expressionAllowed:it,skipExpression:function(e){w(e,"atom","atom","true",new o.StringStream("",2,null))}}})),o.registerHelper("wordChars","javascript",/[\w$]/),o.defineMIME("text/javascript","javascript"),o.defineMIME("text/ecmascript","javascript"),o.defineMIME("application/javascript","javascript"),o.defineMIME("application/x-javascript","javascript"),o.defineMIME("application/ecmascript","javascript"),o.defineMIME("application/json",{name:"javascript",json:!0}),o.defineMIME("application/x-json",{name:"javascript",json:!0}),o.defineMIME("application/manifest+json",{name:"javascript",json:!0}),o.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),o.defineMIME("text/typescript",{name:"javascript",typescript:!0}),o.defineMIME("application/typescript",{name:"javascript",typescript:!0});var a=s.exports,l=Object.freeze(i({__proto__:null,[Symbol.toStringTag]:"Module",default:a},[s.exports]));e.j=l})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(2)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.c=void 0;var n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function i(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}r(i,"_mergeNamespaces");var o={exports:{}};!function(e){var t={},n=/[^\s\u00a0]/,i=e.Pos,o=e.cmpPos;function s(e){var t=e.search(n);return-1==t?0:t}function a(e,t,n){return/\bstring\b/.test(e.getTokenTypeAt(i(t.line,0)))&&!/^[\'\"\`]/.test(n)}function l(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}r(s,"firstNonWS"),e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=t);for(var n=1/0,r=this.listSelections(),o=null,s=r.length-1;s>=0;s--){var a=r[s].from(),l=r[s].to();a.line>=n||(l.line>=n&&(l=i(n,0)),n=a.line,null==o?this.uncomment(a,l,e)?o="un":(this.lineComment(a,l,e),o="line"):"un"==o?this.uncomment(a,l,e):this.lineComment(a,l,e))}})),r(a,"probablyInsideString"),r(l,"getMode"),e.defineExtension("lineComment",(function(e,r,o){o||(o=t);var u=this,c=l(u,e),f=u.getLine(e.line);if(null!=f&&!a(u,e,f)){var d=o.lineComment||c.lineComment;if(d){var p=Math.min(0!=r.ch||r.line==e.line?r.line+1:r.line,u.lastLine()+1),h=null==o.padding?" ":o.padding,m=o.commentBlankLines||e.line==r.line;u.operation((function(){if(o.indent){for(var t=null,r=e.line;r<p;++r){var a=(l=u.getLine(r)).slice(0,s(l));(null==t||t.length>a.length)&&(t=a)}for(r=e.line;r<p;++r){var l=u.getLine(r),c=t.length;(m||n.test(l))&&(l.slice(0,c)!=t&&(c=s(l)),u.replaceRange(t+d+h,i(r,0),i(r,c)))}}else for(r=e.line;r<p;++r)(m||n.test(u.getLine(r)))&&u.replaceRange(d+h,i(r,0))}))}else(o.blockCommentStart||c.blockCommentStart)&&(o.fullLines=!0,u.blockComment(e,r,o))}})),e.defineExtension("blockComment",(function(e,r,s){s||(s=t);var a=this,u=l(a,e),c=s.blockCommentStart||u.blockCommentStart,f=s.blockCommentEnd||u.blockCommentEnd;if(c&&f){if(!/\bcomment\b/.test(a.getTokenTypeAt(i(e.line,0)))){var d=Math.min(r.line,a.lastLine());d!=e.line&&0==r.ch&&n.test(a.getLine(d))&&--d;var p=null==s.padding?" ":s.padding;e.line>d||a.operation((function(){if(0!=s.fullLines){var t=n.test(a.getLine(d));a.replaceRange(p+f,i(d)),a.replaceRange(c+p,i(e.line,0));var l=s.blockCommentLead||u.blockCommentLead;if(null!=l)for(var h=e.line+1;h<=d;++h)(h!=d||t)&&a.replaceRange(l+p,i(h,0))}else{var m=0==o(a.getCursor("to"),r),g=!a.somethingSelected();a.replaceRange(f,r),m&&a.setSelection(g?r:a.getCursor("from"),r),a.replaceRange(c,e)}}))}}else(s.lineComment||u.lineComment)&&0!=s.fullLines&&a.lineComment(e,r,s)})),e.defineExtension("uncomment",(function(e,r,o){o||(o=t);var s,a=this,u=l(a,e),c=Math.min(0!=r.ch||r.line==e.line?r.line:r.line-1,a.lastLine()),f=Math.min(e.line,c),d=o.lineComment||u.lineComment,p=[],h=null==o.padding?" ":o.padding;e:if(d){for(var m=f;m<=c;++m){var g=a.getLine(m),v=g.indexOf(d);if(v>-1&&!/comment/.test(a.getTokenTypeAt(i(m,v+1)))&&(v=-1),-1==v&&n.test(g))break e;if(v>-1&&n.test(g.slice(0,v)))break e;p.push(g)}if(a.operation((function(){for(var e=f;e<=c;++e){var t=p[e-f],n=t.indexOf(d),r=n+d.length;n<0||(t.slice(r,r+h.length)==h&&(r+=h.length),s=!0,a.replaceRange("",i(e,n),i(e,r)))}})),s)return!0}var y=o.blockCommentStart||u.blockCommentStart,b=o.blockCommentEnd||u.blockCommentEnd;if(!y||!b)return!1;var E=o.blockCommentLead||u.blockCommentLead,T=a.getLine(f),_=T.indexOf(y);if(-1==_)return!1;var k=c==f?T:a.getLine(c),x=k.indexOf(b,c==f?_+y.length:0),C=i(f,_+1),w=i(c,x+1);if(-1==x||!/comment/.test(a.getTokenTypeAt(C))||!/comment/.test(a.getTokenTypeAt(w))||a.getRange(C,w,"\n").indexOf(b)>-1)return!1;var S=T.lastIndexOf(y,e.ch),N=-1==S?-1:T.slice(0,e.ch).indexOf(b,S+y.length);if(-1!=S&&-1!=N&&N+b.length!=e.ch)return!1;N=k.indexOf(b,r.ch);var A=k.slice(r.ch).lastIndexOf(y,N-r.ch);return S=-1==N||-1==A?-1:r.ch+A,(-1==N||-1==S||S==r.ch)&&(a.operation((function(){a.replaceRange("",i(c,x-(h&&k.slice(x-h.length,x)==h?h.length:0)),i(c,x+b.length));var e=_+y.length;if(h&&T.slice(e,e+h.length)==h&&(e+=h.length),a.replaceRange("",i(f,_),i(f,e)),E)for(var t=f+1;t<=c;++t){var r=a.getLine(t),o=r.indexOf(E);if(-1!=o&&!n.test(r.slice(0,o))){var s=o+E.length;h&&r.slice(s,s+h.length)==h&&(s+=h.length),a.replaceRange("",i(t,o),i(t,s))}}})),!0)}))}(t.a.exports);var s=o.exports,a=Object.freeze(i({__proto__:null,[Symbol.toStringTag]:"Module",default:s},[o.exports]));e.c=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(2),n(31),n(3),n(5),n(38),n(8),n(11),n(0),n(6)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,s,a,l){"use strict";var u=Object.defineProperty,c=(e,t)=>u(e,"name",{value:t,configurable:!0});function f(e){let t;return p(e,e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t}function d(e,t,r){return r===s.S.name&&e.getQueryType()===t?s.S:r===s.T.name&&e.getQueryType()===t?s.T:r===s.a.name&&(0,n.isCompositeType)(t)?s.a:"getFields"in t?t.getFields()[r]:null}function p(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}function h(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r}function m(e,t){return g(t,y(e.string))}function g(e,t){return t?v(v(e.map(e=>({proximity:b(y(e.label),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length).map(e=>e.entry):v(e,e=>!e.isDeprecated)}function v(e,t){const n=e.filter(t);return 0===n.length?e:n}function y(e){return e.toLowerCase().replace(/\W/g,"")}function b(e,t){let n=E(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function E(e,t){let n,r;const i=[],o=e.length,s=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=s;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=s;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][s]}c(f,"getDefinitionState"),c(d,"getFieldDef"),c(p,"forEachState"),c(h,"objectValues"),c(m,"hintList"),c(g,"filterAndSortList"),c(v,"filterNonEmpty"),c(y,"normalizeText"),c(b,"getProximity"),c(E,"lexicalDistance");const T={command:"editor.action.triggerSuggest",title:"Suggestions"},_=c(e=>{const t=[];if(e)try{(0,n.visit)((0,n.parse)(e),{FragmentDefinition(e){t.push(e)}})}catch(e){return[]}return t},"collectFragmentDefs");function k(e,t,i,o,s,a){var l;const u=Object.assign(Object.assign({},a),{schema:e}),c=o||M(t,i),f="Invalid"===c.state.kind?c.state.prevState:c.state;if(!f)return[];const d=f.kind,p=f.step,g=j(e,c.state);if(d===r.R.DOCUMENT)return m(c,[{label:"query",kind:r.C.Function},{label:"mutation",kind:r.C.Function},{label:"subscription",kind:r.C.Function},{label:"fragment",kind:r.C.Function},{label:"{",kind:r.C.Constructor}]);if(d===r.R.IMPLEMENTS||d===r.R.NAMED_TYPE&&(null===(l=f.prevState)||void 0===l?void 0:l.kind)===r.R.IMPLEMENTS)return S(c,f,e,t,g);if(d===r.R.SELECTION_SET||d===r.R.FIELD||d===r.R.ALIASED_FIELD)return C(c,g,u);if(d===r.R.ARGUMENTS||d===r.R.ARGUMENT&&0===p){const e=g.argDefs;if(e)return m(c,e.map(e=>{var t;return{label:e.name,insertText:e.name+": ",command:T,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:r.C.Variable,type:e.type}}))}if((d===r.R.OBJECT_VALUE||d===r.R.OBJECT_FIELD&&0===p)&&g.objectFieldDefs){const e=h(g.objectFieldDefs),t=d===r.R.OBJECT_VALUE?r.C.Value:r.C.Field;return m(c,e.map(e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,kind:t,type:e.type}}))}if(d===r.R.ENUM_VALUE||d===r.R.LIST_VALUE&&1===p||d===r.R.OBJECT_FIELD&&2===p||d===r.R.ARGUMENT&&2===p)return w(c,g,t,e);if(d===r.R.VARIABLE&&1===p){const r=(0,n.getNamedType)(g.inputType);return m(c,I(t,e,c).filter(e=>e.detail===(null==r?void 0:r.name)))}return d===r.R.TYPE_CONDITION&&1===p||d===r.R.NAMED_TYPE&&null!=f.prevState&&f.prevState.kind===r.R.TYPE_CONDITION?N(c,g,e):d===r.R.FRAGMENT_SPREAD&&1===p?A(c,g,e,t,Array.isArray(s)?s:_(s)):d===r.R.VARIABLE_DEFINITION&&2===p||d===r.R.LIST_TYPE&&1===p||d===r.R.NAMED_TYPE&&f.prevState&&(f.prevState.kind===r.R.VARIABLE_DEFINITION||f.prevState.kind===r.R.LIST_TYPE||f.prevState.kind===r.R.NON_NULL_TYPE)?L(c,e):d===r.R.DIRECTIVE?F(c,f,e):[]}c(k,"getAutocompleteSuggestions");const x=c(e=>{const t=e.type;if((0,n.isCompositeType)(t))return" {\n $1\n}";if((0,n.isListType)(t)&&(0,n.isCompositeType)(t.ofType))return" {\n $1\n}";if((0,n.isNonNullType)(t)){if((0,n.isCompositeType)(t.ofType))return" {\n $1\n}";if((0,n.isListType)(t.ofType)&&(0,n.isCompositeType)(t.ofType.ofType))return" {\n $1\n}"}return null},"getInsertText");function C(e,t,i){var o;if(t.parentType){const s=t.parentType;let a=[];return"getFields"in s&&(a=h(s.getFields())),(0,n.isCompositeType)(s)&&a.push(n.TypeNameMetaFieldDef),s===(null===(o=null==i?void 0:i.schema)||void 0===o?void 0:o.getQueryType())&&a.push(n.SchemaMetaFieldDef,n.TypeMetaFieldDef),m(e,a.map((e,t)=>{var n;const i={sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:r.C.Field,type:e.type},o=x(e);return o&&(i.insertText=e.name+o,i.insertTextFormat=r.I.Snippet,i.command=T),i}))}return[]}function w(e,t,i,o){const s=(0,n.getNamedType)(t.inputType),a=I(i,o,e).filter(e=>e.detail===s.name);return s instanceof n.GraphQLEnumType?m(e,s.getValues().map(e=>{var t;return{label:e.name,detail:String(s),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:r.C.EnumMember,type:s}}).concat(a)):s===n.GraphQLBoolean?m(e,a.concat([{label:"true",detail:String(n.GraphQLBoolean),documentation:"Not false.",kind:r.C.Variable,type:n.GraphQLBoolean},{label:"false",detail:String(n.GraphQLBoolean),documentation:"Not true.",kind:r.C.Variable,type:n.GraphQLBoolean}])):a}function S(e,t,i,o,s){if(t.needsSeparator)return[];const a=h(i.getTypeMap()).filter(n.isInterfaceType),l=a.map(e=>{let{name:t}=e;return t}),u=new Set;R(o,(e,t)=>{var o,a,c,f,d;if(t.name&&(t.kind!==r.R.INTERFACE_DEF||l.includes(t.name)||u.add(t.name),t.kind===r.R.NAMED_TYPE&&(null===(o=t.prevState)||void 0===o?void 0:o.kind)===r.R.IMPLEMENTS))if(s.interfaceDef){if(null===(a=s.interfaceDef)||void 0===a?void 0:a.getInterfaces().find(e=>{let{name:n}=e;return n===t.name}))return;const e=i.getType(t.name),r=null===(c=s.interfaceDef)||void 0===c?void 0:c.toConfig();s.interfaceDef=new n.GraphQLInterfaceType(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new n.GraphQLInterfaceType({name:t.name,fields:{}})]}))}else if(s.objectTypeDef){if(null===(f=s.objectTypeDef)||void 0===f?void 0:f.getInterfaces().find(e=>{let{name:n}=e;return n===t.name}))return;const e=i.getType(t.name),r=null===(d=s.objectTypeDef)||void 0===d?void 0:d.toConfig();s.objectTypeDef=new n.GraphQLObjectType(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new n.GraphQLInterfaceType({name:t.name,fields:{}})]}))}});const c=s.interfaceDef||s.objectTypeDef,f=((null==c?void 0:c.getInterfaces())||[]).map(e=>{let{name:t}=e;return t});return m(e,a.concat([...u].map(e=>({name:e}))).filter(e=>{let{name:t}=e;return t!==(null==c?void 0:c.name)&&!f.includes(t)}).map(e=>{const t={label:e.name,kind:r.C.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t}))}function N(e,t,i,o){let s;if(t.parentType)if((0,n.isAbstractType)(t.parentType)){const e=(0,n.assertAbstractType)(t.parentType),r=i.getPossibleTypes(e),o=Object.create(null);r.forEach(e=>{e.getInterfaces().forEach(e=>{o[e.name]=e})}),s=r.concat(h(o))}else s=[t.parentType];else s=h(i.getTypeMap()).filter(n.isCompositeType);return m(e,s.map(e=>{const t=(0,n.getNamedType)(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:r.C.Field}}))}function A(e,t,i,o,s){if(!o)return[];const a=i.getTypeMap(),l=f(e.state),u=D(o);return s&&s.length>0&&u.push(...s),m(e,u.filter(e=>a[e.typeCondition.name.value]&&!(l&&l.kind===r.R.FRAGMENT_DEFINITION&&l.name===e.name.value)&&(0,n.isCompositeType)(t.parentType)&&(0,n.isCompositeType)(a[e.typeCondition.name.value])&&(0,n.doTypesOverlap)(i,t.parentType,a[e.typeCondition.name.value])).map(e=>({label:e.name.value,detail:String(a[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:r.C.Field,type:a[e.typeCondition.name.value]})))}c(C,"getSuggestionsForFieldNames"),c(w,"getSuggestionsForInputValues"),c(S,"getSuggestionsForImplements"),c(N,"getSuggestionsForFragmentTypeConditions"),c(A,"getSuggestionsForFragmentSpread");const O=c((e,t)=>{var n,r,i,o,s,a,l,u,c,f;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(i=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===i?void 0:i.kind)===t?e.prevState.prevState:(null===(a=null===(s=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===s?void 0:s.prevState)||void 0===a?void 0:a.kind)===t?e.prevState.prevState.prevState:(null===(f=null===(c=null===(u=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===u?void 0:u.prevState)||void 0===c?void 0:c.prevState)||void 0===f?void 0:f.kind)===t?e.prevState.prevState.prevState.prevState:void 0},"getParentDefinition");function I(e,t,n){let i,o=null;const s=Object.create({});return R(e,(e,a)=>{if((null==a?void 0:a.kind)===r.R.VARIABLE&&a.name&&(o=a.name),(null==a?void 0:a.kind)===r.R.NAMED_TYPE&&o){const e=O(a,r.R.TYPE);(null==e?void 0:e.type)&&(i=t.getType(null==e?void 0:e.type))}o&&i&&(s[o]||(s[o]={detail:i.toString(),insertText:"$"===n.string?o:"$"+o,label:o,type:i,kind:r.C.Variable},o=null,i=null))}),h(s)}function D(e){const t=[];return R(e,(e,i)=>{i.kind===r.R.FRAGMENT_DEFINITION&&i.name&&i.type&&t.push({kind:r.R.FRAGMENT_DEFINITION,name:{kind:n.Kind.NAME,value:i.name},selectionSet:{kind:r.R.SELECTION_SET,selections:[]},typeCondition:{kind:r.R.NAMED_TYPE,name:{kind:n.Kind.NAME,value:i.type}}})}),t}function L(e,t,i){return m(e,h(t.getTypeMap()).filter(n.isInputType).map(e=>({label:e.name,documentation:e.description,kind:r.C.Variable})))}function F(e,t,n,i){var o;return(null===(o=t.prevState)||void 0===o?void 0:o.kind)?m(e,n.getDirectives().filter(e=>P(t.prevState,e)).map(e=>({label:e.name,documentation:e.description||"",kind:r.C.Function}))):[]}function M(e,t){let n=null,r=null,i=null;const o=R(e,(e,o,s,a)=>{if(a===t.line&&e.getCurrentPosition()>=t.character)return n=s,r=Object.assign({},o),i=e.current(),"BREAK"});return{start:o.start,end:o.end,string:i||o.string,state:r||o.state,style:n||o.style}}function R(e,t){const n=e.split("\n"),r=(0,o.o)();let s=r.startState(),a="",l=new i.C("");for(let e=0;e<n.length;e++){for(l=new i.C(n[e]);!l.eol()&&(a=r.token(l,s),"BREAK"!==t(l,s,a,e)););t(l,s,a,e),s.kind||(s=r.startState())}return{start:l.getStartOfToken(),end:l.getCurrentPosition(),string:l.current(),state:s,style:a}}function P(e,t){var i;if(!e||!e.kind)return!1;const o=e.kind,s=t.locations;switch(o){case r.R.QUERY:return-1!==s.indexOf(n.DirectiveLocation.QUERY);case r.R.MUTATION:return-1!==s.indexOf(n.DirectiveLocation.MUTATION);case r.R.SUBSCRIPTION:return-1!==s.indexOf(n.DirectiveLocation.SUBSCRIPTION);case r.R.FIELD:case r.R.ALIASED_FIELD:return-1!==s.indexOf(n.DirectiveLocation.FIELD);case r.R.FRAGMENT_DEFINITION:return-1!==s.indexOf(n.DirectiveLocation.FRAGMENT_DEFINITION);case r.R.FRAGMENT_SPREAD:return-1!==s.indexOf(n.DirectiveLocation.FRAGMENT_SPREAD);case r.R.INLINE_FRAGMENT:return-1!==s.indexOf(n.DirectiveLocation.INLINE_FRAGMENT);case r.R.SCHEMA_DEF:return-1!==s.indexOf(n.DirectiveLocation.SCHEMA);case r.R.SCALAR_DEF:return-1!==s.indexOf(n.DirectiveLocation.SCALAR);case r.R.OBJECT_TYPE_DEF:return-1!==s.indexOf(n.DirectiveLocation.OBJECT);case r.R.FIELD_DEF:return-1!==s.indexOf(n.DirectiveLocation.FIELD_DEFINITION);case r.R.INTERFACE_DEF:return-1!==s.indexOf(n.DirectiveLocation.INTERFACE);case r.R.UNION_DEF:return-1!==s.indexOf(n.DirectiveLocation.UNION);case r.R.ENUM_DEF:return-1!==s.indexOf(n.DirectiveLocation.ENUM);case r.R.ENUM_VALUE:return-1!==s.indexOf(n.DirectiveLocation.ENUM_VALUE);case r.R.INPUT_DEF:return-1!==s.indexOf(n.DirectiveLocation.INPUT_OBJECT);case r.R.INPUT_VALUE_DEF:switch(null===(i=e.prevState)||void 0===i?void 0:i.kind){case r.R.ARGUMENTS_DEF:return-1!==s.indexOf(n.DirectiveLocation.ARGUMENT_DEFINITION);case r.R.INPUT_DEF:return-1!==s.indexOf(n.DirectiveLocation.INPUT_FIELD_DEFINITION)}}return!1}function j(e,t){let i,o,s,a,l,u,c,f,h,m,g;return p(t,t=>{var p;switch(t.kind){case r.R.QUERY:case"ShortQuery":m=e.getQueryType();break;case r.R.MUTATION:m=e.getMutationType();break;case r.R.SUBSCRIPTION:m=e.getSubscriptionType();break;case r.R.INLINE_FRAGMENT:case r.R.FRAGMENT_DEFINITION:t.type&&(m=e.getType(t.type));break;case r.R.FIELD:case r.R.ALIASED_FIELD:m&&t.name?(l=h?d(e,h,t.name):null,m=l?l.type:null):l=null;break;case r.R.SELECTION_SET:h=(0,n.getNamedType)(m);break;case r.R.DIRECTIVE:s=t.name?e.getDirective(t.name):null;break;case r.R.INTERFACE_DEF:t.name&&(c=null,g=new n.GraphQLInterfaceType({name:t.name,interfaces:[],fields:{}}));break;case r.R.OBJECT_TYPE_DEF:t.name&&(g=null,c=new n.GraphQLObjectType({name:t.name,interfaces:[],fields:{}}));break;case r.R.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case r.R.FIELD:o=l&&l.args;break;case r.R.DIRECTIVE:o=s&&s.args;break;case r.R.ALIASED_FIELD:{const n=null===(p=t.prevState)||void 0===p?void 0:p.name;if(!n){o=null;break}const r=h?d(e,h,n):null;if(!r){o=null;break}o=r.args;break}default:o=null}else o=null;break;case r.R.ARGUMENT:if(o)for(let e=0;e<o.length;e++)if(o[e].name===t.name){i=o[e];break}u=null==i?void 0:i.type;break;case r.R.ENUM_VALUE:const v=(0,n.getNamedType)(u);a=v instanceof n.GraphQLEnumType?v.getValues().find(e=>e.value===t.name):null;break;case r.R.LIST_VALUE:const y=(0,n.getNullableType)(u);u=y instanceof n.GraphQLList?y.ofType:null;break;case r.R.OBJECT_VALUE:const b=(0,n.getNamedType)(u);f=b instanceof n.GraphQLInputObjectType?b.getFields():null;break;case r.R.OBJECT_FIELD:const E=t.name&&f?f[t.name]:null;u=null==E?void 0:E.type;break;case r.R.NAMED_TYPE:t.name&&(m=e.getType(t.name))}}),{argDef:i,argDefs:o,directiveDef:s,enumValue:a,fieldDef:l,inputType:u,objectFieldDefs:f,parentType:h,type:m,interfaceDef:g,objectTypeDef:c}}c(I,"getVariableCompletions"),c(D,"getFragmentDefinitions"),c(L,"getSuggestionsForVariableDefinition"),c(F,"getSuggestionsForDirective"),c(M,"getTokenAtPosition"),c(R,"runOnlineParser"),c(P,"canUseDirective"),c(j,"getTypeInfo"),e.C.registerHelper("hint","graphql",(t,n)=>{const r=n.schema;if(!r)return;const o=t.getCursor(),s=t.getTokenAt(o),a=null!==s.type&&/"|\w/.test(s.string[0])?s.start:s.end,l=new i.P(o.line,a),u={list:k(r,t.getValue(),l,s,n.externalFragments).map(e=>({text:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason})),from:{line:o.line,ch:a},to:{line:o.line,ch:s.end}};return(null==u?void 0:u.list)&&u.list.length>0&&(u.from=e.C.Pos(u.from.line,u.from.ch),u.to=e.C.Pos(u.to.line,u.to.ch),e.C.signal(t,"hasCompletion",t,u,s)),u})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(2),n(3),n(5),n(38),n(8),n(0),n(6)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,s){"use strict";var a=Object.defineProperty,l=(e,t)=>a(e,"name",{value:t,configurable:!0});const u=[t.LoneSchemaDefinitionRule,t.UniqueOperationTypesRule,t.UniqueTypeNamesRule,t.UniqueEnumValueNamesRule,t.UniqueFieldDefinitionNamesRule,t.UniqueDirectiveNamesRule,t.KnownTypeNamesRule,t.KnownDirectivesRule,t.UniqueDirectivesPerLocationRule,t.PossibleTypeExtensionsRule,t.UniqueArgumentNamesRule,t.UniqueInputFieldNamesRule];function c(e,n,r,i,o){const s=t.specifiedRules.filter(e=>e!==t.NoUnusedFragmentsRule&&e!==t.ExecutableDefinitionsRule&&(!i||e!==t.KnownFragmentNamesRule));return r&&Array.prototype.push.apply(s,r),o&&Array.prototype.push.apply(s,u),(0,t.validate)(e,n,s).filter(e=>{if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){const n=e.nodes[0];if(n&&n.kind===t.Kind.DIRECTIVE){const e=n.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0})}l(c,"validateWithCustomRules");const f="Error",d="Warning",p="Information",h="Hint",m={[f]:1,[d]:2,[p]:3,[h]:4},g=l((e,t)=>{if(!e)throw new Error(t)},"invariant");function v(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;var s,a;let l=null;o&&(e+="string"==typeof o?"\n\n"+o:"\n\n"+o.reduce((e,n)=>e+=(0,t.print)(n)+"\n\n",""));try{l=(0,t.parse)(e)}catch(n){if(n instanceof t.GraphQLError){const t=T(null!==(a=null===(s=n.locations)||void 0===s?void 0:s[0])&&void 0!==a?a:{line:0,column:0},e);return[{severity:m.Error,message:n.message,source:"GraphQL: Syntax",range:t}]}throw n}return y(l,n,r,i)}function y(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if(!n)return[];const o=b(c(n,e,r,i),e=>E(e,m.Error,"Validation")),s=b((0,t.validate)(n,e,[t.NoDeprecatedCustomRule]),e=>E(e,m.Warning,"Deprecation"));return o.concat(s)}function b(e,t){return Array.prototype.concat.apply([],e.map(t))}function E(e,t,n){if(!e.nodes)return[];const i=[];return e.nodes.forEach(o=>{const s="Variable"!==o.kind&&"name"in o&&void 0!==o.name?o.name:"variable"in o&&void 0!==o.variable?o.variable:o;if(s){g(e.locations,"GraphQL validation error requires locations.");const o=e.locations[0],a=_(s),l=o.column+(a.end-a.start);i.push({source:"GraphQL: "+n,message:e.message,severity:t,range:new r.R(new r.P(o.line-1,o.column-1),new r.P(o.line-1,l))})}}),i}function T(e,t){const n=(0,i.o)(),o=n.startState(),s=t.split("\n");g(s.length>=e.line,"Query text must have more lines than where the error happened");let a=null;for(let t=0;t<e.line;t++)for(a=new r.C(s[t]);!a.eol()&&"invalidchar"!==n.token(a,o););g(a,"Expected Parser stream to be available.");const l=e.line-1,u=a.getStartOfToken(),c=a.getCurrentPosition();return new r.R(new r.P(l,u),new r.P(l,c))}function _(e){const t=e.loc;return g(t,"Expected ASTNode to have a location."),t}l(v,"getDiagnostics"),l(y,"validateQuery"),l(b,"mapCat"),l(E,"annotations"),l(T,"getRange"),l(_,"getLocation");const k=["error","warning","information","hint"],x={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};e.C.registerHelper("lint","graphql",(t,n)=>v(t,n.schema,n.validationRules,void 0,n.externalFragments).map(t=>({message:t.message,severity:t.severity?k[t.severity-1]:k[0],type:t.source?x[t.source]:void 0,from:e.C.Pos(t.range.start.line,t.range.start.character),to:e.C.Pos(t.range.end.line,t.range.end.character)})))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(3),n(2),n(39),n(40),n(5),n(0),n(6),n(11),n(12)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,s,a,l){"use strict";var u=Object.defineProperty,c=(e,t)=>u(e,"name",{value:t,configurable:!0});function f(e,t,n){d(e,t,n),m(e,t,n,t.type)}function d(e,t,r){var i;const o=(null===(i=t.fieldDef)||void 0===i?void 0:i.name)||"";"__"!==o.slice(0,2)&&(v(e,t,r,t.parentType),E(e,".")),E(e,o,"field-name",r,(0,n.a)(t))}function p(e,t,r){var i;E(e,"@"+((null===(i=t.directiveDef)||void 0===i?void 0:i.name)||""),"directive-name",r,(0,n.b)(t))}function h(e,t,r){var i;t.directiveDef?p(e,t,r):t.fieldDef&&d(e,t,r);const o=(null===(i=t.argDef)||void 0===i?void 0:i.name)||"";E(e,"("),E(e,o,"arg-name",r,(0,n.c)(t)),m(e,t,r,t.inputType),E(e,")")}function m(e,t,n,r){E(e,": "),v(e,t,n,r)}function g(e,t,r){var i;const o=(null===(i=t.enumValue)||void 0===i?void 0:i.name)||"";v(e,t,r,t.inputType),E(e,"."),E(e,o,"enum-value",r,(0,n.d)(t))}function v(t,r,i,o){o instanceof e.GraphQLNonNull?(v(t,r,i,o.ofType),E(t,"!")):o instanceof e.GraphQLList?(E(t,"["),v(t,r,i,o.ofType),E(t,"]")):E(t,(null==o?void 0:o.name)||"","type-name",i,(0,n.e)(r,o))}function y(e,t,n){const r=n.description;if(r){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(r):n.appendChild(document.createTextNode(r)),e.appendChild(n)}b(e,t,n)}function b(e,t,n){const r=n.deprecationReason;if(r){const n=document.createElement("div");n.className="info-deprecation",t.renderDescription?n.innerHTML=t.renderDescription(r):n.appendChild(document.createTextNode(r));const i=document.createElement("span");i.className="info-deprecation-label",i.appendChild(document.createTextNode("Deprecated: ")),n.insertBefore(i,n.firstChild),e.appendChild(n)}}function E(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{onClick:null},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(n){const o=r.onClick;let s;o?(s=document.createElement("a"),s.href="javascript:void 0",s.addEventListener("click",e=>{o(i,e)})):s=document.createElement("span"),s.className=n,s.appendChild(document.createTextNode(t)),e.appendChild(s)}else e.appendChild(document.createTextNode(t))}t.C.registerHelper("info","graphql",(e,t)=>{if(!t.schema||!e.state)return;const r=e.state,i=r.kind,o=r.step,s=(0,n.g)(t.schema,e.state);if("Field"===i&&0===o&&s.fieldDef||"AliasedField"===i&&2===o&&s.fieldDef){const e=document.createElement("div");return f(e,s,t),y(e,t,s.fieldDef),e}if("Directive"===i&&1===o&&s.directiveDef){const e=document.createElement("div");return p(e,s,t),y(e,t,s.directiveDef),e}if("Argument"===i&&0===o&&s.argDef){const e=document.createElement("div");return h(e,s,t),y(e,t,s.argDef),e}if("EnumValue"===i&&s.enumValue&&s.enumValue.description){const e=document.createElement("div");return g(e,s,t),y(e,t,s.enumValue),e}if("NamedType"===i&&s.type&&s.type.description){const e=document.createElement("div");return v(e,s,t,s.type),y(e,t,s.type),e}}),c(f,"renderField"),c(d,"renderQualifiedField"),c(p,"renderDirective"),c(h,"renderArg"),c(m,"renderTypeAnnotation"),c(g,"renderEnumValue"),c(v,"renderType"),c(y,"renderDescription"),c(b,"renderDeprecation"),c(E,"text")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(2),n(39),n(5),n(3),n(0),n(6),n(11),n(12)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,s,a){"use strict";var l=Object.defineProperty,u=(e,t)=>l(e,"name",{value:t,configurable:!0});function c(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement))return;if("SPAN"!==(null==n?void 0:n.nodeName))return;const r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&m(e)}function f(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&g(e):e.state.jump.cursor=null}function d(t,n){if(t.state.jump.isHoldingModifier||!h(n.key))return;t.state.jump.isHoldingModifier=!0,t.state.jump.cursor&&m(t);const r=u(s=>{s.code===n.code&&(t.state.jump.isHoldingModifier=!1,t.state.jump.marker&&g(t),e.C.off(document,"keyup",r),e.C.off(document,"click",i),t.off("mousedown",o))},"onKeyUp"),i=u(e=>{const n=t.state.jump.destination;n&&t.state.jump.options.onClick(n,e)},"onClick"),o=u((e,n)=>{t.state.jump.destination&&(n.codemirrorIgnore=!0)},"onMouseDown");e.C.on(document,"keyup",r),e.C.on(document,"click",i),t.on("mousedown",o)}e.C.defineOption("jump",!1,(t,n,r)=>{if(r&&r!==e.C.Init){const n=t.state.jump.onMouseOver;e.C.off(t.getWrapperElement(),"mouseover",n);const r=t.state.jump.onMouseOut;e.C.off(t.getWrapperElement(),"mouseout",r),e.C.off(document,"keydown",t.state.jump.onKeyDown),delete t.state.jump}if(n){const r=t.state.jump={options:n,onMouseOver:c.bind(null,t),onMouseOut:f.bind(null,t),onKeyDown:d.bind(null,t)};e.C.on(t.getWrapperElement(),"mouseover",r.onMouseOver),e.C.on(t.getWrapperElement(),"mouseout",r.onMouseOut),e.C.on(document,"keydown",r.onKeyDown)}}),u(c,"onMouseOver"),u(f,"onMouseOut"),u(d,"onKeyDown");const p="undefined"!=typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf("Mac");function h(e){return e===(p?"Meta":"Control")}function m(e){if(e.state.jump.marker)return;const t=e.state.jump.cursor,n=e.coordsChar(t),r=e.getTokenAt(n,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(n,"jump");if(o){const t=o(r,i,e);if(t){const i=e.markText({line:n.line,ch:r.start},{line:n.line,ch:r.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=i,e.state.jump.destination=t}}}function g(e){const t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}u(h,"isJumpModifier"),u(m,"enableJumpMode"),u(g,"disableJumpMode"),e.C.registerHelper("jump","graphql",(e,n)=>{if(!n.schema||!n.onClick||!e.state)return;const r=e.state,i=r.kind,o=r.step,s=(0,t.g)(n.schema,r);return"Field"===i&&0===o&&s.fieldDef||"AliasedField"===i&&2===o&&s.fieldDef?(0,t.a)(s):"Directive"===i&&1===o&&s.directiveDef?(0,t.b)(s):"Argument"===i&&0===o&&s.argDef?(0,t.c)(s):"EnumValue"===i&&s.enumValue?(0,t.d)(s):"NamedType"===i&&s.type?(0,t.e)(s):void 0})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(2),n(3),n(5),n(8),n(0),n(6)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";var s=Object.defineProperty,a=(e,t)=>s(e,"name",{value:t,configurable:!0});function l(e,t){var n,r;const i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}a(l,"indent");const u=a(e=>{const t=(0,r.o)({eatWhitespace:e=>e.eatWhile(n.i),lexRules:n.L,parseRules:n.P,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:l,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}},"graphqlModeFactory");e.C.defineMode("graphql",u)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(2),n(3),n(12),n(5),n(0),n(6)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";var s=Object.defineProperty,a=(e,t)=>s(e,"name",{value:t,configurable:!0});function l(e,t,n){const r=u(n,f(t.string));if(!r)return;const i=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}function u(e,t){return t?c(c(e.map(e=>({proximity:d(f(e.text),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length).map(e=>e.entry):c(e,e=>!e.isDeprecated)}function c(e,t){const n=e.filter(t);return 0===n.length?e:n}function f(e){return e.toLowerCase().replace(/\W/g,"")}function d(e,t){let n=p(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function p(e,t){let n,r;const i=[],o=e.length,s=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=s;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=s;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][s]}function h(e,n,r){const i="Invalid"===n.state.kind?n.state.prevState:n.state,o=i.kind,s=i.step;if("Document"===o&&0===s)return l(e,n,[{text:"{"}]);const a=r.variableToType;if(!a)return;const u=m(a,n.state);if("Document"===o||"Variable"===o&&0===s)return l(e,n,Object.keys(a).map(e=>({text:`"${e}": `,type:a[e]})));if(("ObjectValue"===o||"ObjectField"===o&&0===s)&&u.fields)return l(e,n,Object.keys(u.fields).map(e=>u.fields[e]).map(e=>({text:`"${e.name}": `,type:e.type,description:e.description})));if("StringValue"===o||"NumberValue"===o||"BooleanValue"===o||"NullValue"===o||"ListValue"===o&&1===s||"ObjectField"===o&&2===s||"Variable"===o&&2===s){const r=u.type?(0,t.getNamedType)(u.type):void 0;if(r instanceof t.GraphQLInputObjectType)return l(e,n,[{text:"{"}]);if(r instanceof t.GraphQLEnumType)return l(e,n,r.getValues().map(e=>({text:`"${e.name}"`,type:r,description:e.description})));if(r===t.GraphQLBoolean)return l(e,n,[{text:"true",type:t.GraphQLBoolean,description:"Not false."},{text:"false",type:t.GraphQLBoolean,description:"Not true."}])}}function m(e,r){const i={type:null,fields:null};return(0,n.f)(r,n=>{if("Variable"===n.kind)i.type=e[n.name];else if("ListValue"===n.kind){const e=i.type?(0,t.getNullableType)(i.type):void 0;i.type=e instanceof t.GraphQLList?e.ofType:null}else if("ObjectValue"===n.kind){const e=i.type?(0,t.getNamedType)(i.type):void 0;i.fields=e instanceof t.GraphQLInputObjectType?e.getFields():null}else if("ObjectField"===n.kind){const e=n.name&&i.fields?i.fields[n.name]:null;i.type=null==e?void 0:e.type}}),i}a(l,"hintList"),a(u,"filterAndSortList"),a(c,"filterNonEmpty"),a(f,"normalizeText"),a(d,"getProximity"),a(p,"lexicalDistance"),e.C.registerHelper("hint","graphql-variables",(t,n)=>{const r=t.getCursor(),i=t.getTokenAt(r),o=h(r,i,n);return(null==o?void 0:o.list)&&o.list.length>0&&(o.from=e.C.Pos(o.from.line,o.from.ch),o.to=e.C.Pos(o.to.line,o.to.ch),e.C.signal(t,"hasCompletion",t,o,i)),o}),a(h,"getVariablesHint"),a(m,"getTypeInfo")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(2),n(3),n(5),n(0),n(6)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";var o=Object.defineProperty,s=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(e){l=e,u=e.length,c=f=d=-1,x(),C();const t=m();return E("EOF"),t}let l,u,c,f,d,p,h;function m(){const e=c,t=[];if(E("{"),!k("}")){do{t.push(g())}while(k(","));E("}")}return{kind:"Object",start:e,end:d,members:t}}function g(){const e=c,t="String"===h?b():null;E("String"),E(":");const n=y();return{kind:"Member",start:e,end:d,key:t,value:n}}function v(){const e=c,t=[];if(E("["),!k("]")){do{t.push(y())}while(k(","));E("]")}return{kind:"Array",start:e,end:d,values:t}}function y(){switch(h){case"[":return v();case"{":return m();case"String":case"Number":case"Boolean":case"Null":const e=b();return C(),e}E("Value")}function b(){return{kind:h,start:c,end:f,value:JSON.parse(l.slice(c,f))}}function E(e){if(h===e)return void C();let t;if("EOF"===h)t="[end of file]";else if(f-c>1)t="`"+l.slice(c,f)+"`";else{const e=l.slice(c).match(/^.+?\b/);t="`"+(e?e[0]:l[c])+"`"}throw _(`Expected ${e} but found ${t}.`)}s(a,"jsonParse"),s(m,"parseObj"),s(g,"parseMember"),s(v,"parseArr"),s(y,"parseVal"),s(b,"curToken"),s(E,"expect");class T extends Error{constructor(e,t){super(e),this.position=t}}function _(e){return new T(e,{start:c,end:f})}function k(e){if(h===e)return C(),!0}function x(){return f<u&&(f++,p=f===u?0:l.charCodeAt(f)),p}function C(){for(d=f;9===p||10===p||13===p||32===p;)x();if(0!==p){switch(c=f,p){case 34:return h="String",w();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return h="Number",N();case 102:if("false"!==l.slice(c,c+5))break;return f+=4,x(),void(h="Boolean");case 110:if("null"!==l.slice(c,c+4))break;return f+=3,x(),void(h="Null");case 116:if("true"!==l.slice(c,c+4))break;return f+=3,x(),void(h="Boolean")}h=l[c],x()}else h="EOF"}function w(){for(x();34!==p&&p>31;)if(92===p)switch(p=x(),p){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:x();break;case 117:x(),S(),S(),S(),S();break;default:throw _("Bad character escape sequence.")}else{if(f===u)throw _("Unterminated string.");x()}if(34!==p)throw _("Unterminated string.");x()}function S(){if(p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102)return x();throw _("Expected hexadecimal digit.")}function N(){45===p&&x(),48===p?x():A(),46===p&&(x(),A()),69!==p&&101!==p||(p=x(),43!==p&&45!==p||x(),A())}function A(){if(p<48||p>57)throw _("Expected decimal digit.");do{x()}while(p>=48&&p<=57)}function O(e,t,n){const r=[];return n.members.forEach(n=>{var i;if(n){const o=null===(i=n.key)||void 0===i?void 0:i.value,s=t[o];s?I(s,n.value).forEach(t=>{let[n,i]=t;r.push(D(e,n,i))}):r.push(D(e,n.key,`Variable "$${o}" does not appear in any GraphQL query.`))}}),r}function I(e,n){if(!e||!n)return[];if(e instanceof t.GraphQLNonNull)return"Null"===n.kind?[[n,`Type "${e}" is non-nullable and cannot be null.`]]:I(e.ofType,n);if("Null"===n.kind)return[];if(e instanceof t.GraphQLList){const t=e.ofType;return"Array"===n.kind?F(n.values||[],e=>I(t,e)):I(t,n)}if(e instanceof t.GraphQLInputObjectType){if("Object"!==n.kind)return[[n,`Type "${e}" must be an Object.`]];const r=Object.create(null),i=F(n.members,t=>{var n;const i=null===(n=null==t?void 0:t.key)||void 0===n?void 0:n.value;r[i]=!0;const o=e.getFields()[i];return o?I(o?o.type:void 0,t.value):[[t.key,`Type "${e}" does not have a field "${i}".`]]});return Object.keys(e.getFields()).forEach(o=>{r[o]||e.getFields()[o].type instanceof t.GraphQLNonNull&&i.push([n,`Object of type "${e}" is missing required field "${o}".`])}),i}return"Boolean"===e.name&&"Boolean"!==n.kind||"String"===e.name&&"String"!==n.kind||"ID"===e.name&&"Number"!==n.kind&&"String"!==n.kind||"Float"===e.name&&"Number"!==n.kind||"Int"===e.name&&("Number"!==n.kind||(0|n.value)!==n.value)||(e instanceof t.GraphQLEnumType||e instanceof t.GraphQLScalarType)&&("String"!==n.kind&&"Number"!==n.kind&&"Boolean"!==n.kind&&"Null"!==n.kind||L(e.parseValue(n.value)))?[[n,`Expected value of type "${e}".`]]:[]}function D(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function L(e){return null==e||e!=e}function F(e,t){return Array.prototype.concat.apply([],e.map(t))}s(T,"JSONSyntaxError"),s(_,"syntaxError"),s(k,"skip"),s(x,"ch"),s(C,"lex"),s(w,"readString"),s(S,"readHex"),s(N,"readNumber"),s(A,"readDigits"),e.C.registerHelper("lint","graphql-variables",(e,t,n)=>{if(!e)return[];let r;try{r=a(e)}catch(e){if(e instanceof T)return[D(n,e.position,e.message)];throw e}const i=t.variableToType;return i?O(n,i,r):[]}),s(O,"validateVariables"),s(I,"validateValue"),s(D,"lintError"),s(L,"isNullish"),s(F,"mapCat")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(2),n(3),n(5),n(8),n(0),n(6)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";var s=Object.defineProperty,a=(e,t)=>s(e,"name",{value:t,configurable:!0});function l(e,t){var n,r;const i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}e.C.defineMode("graphql-variables",e=>{const t=(0,r.o)({eatWhitespace:e=>e.eatSpace(),lexRules:u,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:l,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}),a(l,"indent");const u={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[(0,n.p)("{"),(0,n.l)("Variable",(0,n.o)((0,n.p)(","))),(0,n.p)("}")],Variable:[f("variable"),(0,n.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,n.t)("Number","number")],StringValue:[(0,n.t)("String","string")],BooleanValue:[(0,n.t)("Keyword","builtin")],NullValue:[(0,n.t)("Keyword","keyword")],ListValue:[(0,n.p)("["),(0,n.l)("Value",(0,n.o)((0,n.p)(","))),(0,n.p)("]")],ObjectValue:[(0,n.p)("{"),(0,n.l)("ObjectField",(0,n.o)((0,n.p)(","))),(0,n.p)("}")],ObjectField:[f("attribute"),(0,n.p)(":"),"Value"]};function f(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}a(f,"namedKey")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[n(2),n(3),n(5),n(8),n(0),n(6)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";var s=Object.defineProperty;function a(e,t){var n,r;const i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}e.C.defineMode("graphql-results",e=>{const t=(0,r.o)({eatWhitespace:e=>e.eatSpace(),lexRules:l,parseRules:u,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}),s(a,"name",{value:"indent",configurable:!0});const l={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},u={Document:[(0,n.p)("{"),(0,n.l)("Entry",(0,n.p)(",")),(0,n.p)("}")],Entry:[(0,n.t)("String","def"),(0,n.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,n.t)("Number","number")],StringValue:[(0,n.t)("String","string")],BooleanValue:[(0,n.t)("Keyword","builtin")],NullValue:[(0,n.t)("Keyword","keyword")],ListValue:[(0,n.p)("["),(0,n.l)("Value",(0,n.p)(",")),(0,n.p)("]")],ObjectValue:[(0,n.p)("{"),(0,n.l)("ObjectField",(0,n.p)(",")),(0,n.p)("}")],ObjectField:[(0,n.t)("String","property"),(0,n.p)(":"),"Value"]}})?r.apply(t,i):r)||(e.exports=o)}]).default;
|
39 | //# sourceMappingURL=graphiql.min.js.map |
\ | No newline at end of file |